[nto] Implement TARGET_OBJECT_AUXV.
[external/binutils.git] / gdb / ChangeLog
1 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
2
3         * nto-procfs.c (sys/auxv.h): Include.
4         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
5         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
6         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
7
8 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
9
10         * nto-procfs.c (nto_procfs_path): Rename to...
11         (nodestr): ... this, and change type.
12         (nto_node): Use new variable and logic accordingly.
13         (procfs_open_1): Use new variable name. Use local buffer to construct
14         procfrs path.
15         (procfs_pidlist): Use NODESTR to construct procfs path.
16         (procfs_files_info): Use NODESTR to output meaningful text.
17         (do_attach): Construct procfs using NODESTR.
18         (procfs_create_inferior): Compare pointer to NULL.
19
20 2015-10-19  Josh Stone  <jistone@redhat.com>
21
22         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
23         return state, even when not actively catching syscalls at all.
24         (linux_handle_extended_wait): Mark syscall_state like an entry.
25         (wait_lwp): Set syscall_state ignored for other traps.
26         (linux_nat_filter_event): Likewise.
27
28 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
29
30         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
31         when handling 'E', 'T', 'S', 'X' and 'W' packets.
32         Do not set rs->waiting_for_stop_reply back to 1.
33
34 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
35
36         * nto-procfs.c (common/filestuff.h): Include.
37         (procfs_can_use_hw_breakpoint): Fix enum name.
38         (procfs_open_1): Fix compiler warning.
39         (procfs_pidlist): Make static.
40         (procfs_meminfo): Make static, fix type name, add missing argument.
41         (procfs_store_registers): Make static.
42         (procfs_thread_info): Remove unused function.
43         (_initialize_procfs): Forward declare.
44
45 2015-10-16  Yao Qi  <yao.qi@arm.com>
46
47         * MAINTAINERS: Update my email address.
48
49 2015-10-15  Yao Qi  <yao.qi@linaro.org>
50
51         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
52         Call gdbarch_breakpoint_from_pc to instruction length.
53         (aarch64_linux_remove_hw_breakpoint): Likewise.
54         * common/common-regcache.h (regcache_register_size): Declare.
55         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
56         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
57         the process is 32bit, otherwise set alignment to 4.
58         (aarch64_handle_breakpoint): Update comments.
59         * regcache.c (regcache_register_size): New function.
60
61 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
62
63         * gdbarch.sh (core_regset_section): Remove.
64         * gdbarch.h: Regenerate.
65
66 2015-10-14  Yao Qi  <yao.qi@linaro.org>
67
68         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
69         out of it.
70         (enum aarch64_memory_operand_type): New.
71
72 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
73
74         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
75
76 2015-10-13  Pedro Alves  <palves@redhat.com>
77
78         * ada-lang.c (ada_enum_name): Constify local.
79         * ada-typeprint.c (print_range_bound): Constify locals.
80         * c-varobj.c (c_describe_child): Likewise.
81         * cli/cli-setshow.c (do_set_command): Likewise.
82         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
83         * dwarf2read.c (find_file_and_directory): Likewise.
84         (anonymous_struct_prefix, dwarf2_name): Likewise.
85         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
86         * go-lang.c (unpack_mangled_go_symbol): Likewise.
87         * jv-typeprint.c (java_type_print_base): Likewise.
88         * ser-tcp.c (net_open): Likewise.
89         * symfile.c (deduce_language_from_filename): Likewise.
90         * symtab.c (gdb_mangle_name): Likewise.
91         * tui/tui-io.c (tui_redisplay_readline): Likewise.
92
93 2015-10-13  Pedro Alves  <palves@redhat.com>
94
95         * infrun.c (restore_execution_direction): New function.
96         (fetch_inferior_event): Use it instead of
97         make_cleanup_restore_integer.
98         (execution_direction): Change type to enum
99         exec_direction_kind.
100         * infrun.h (execution_direction): Likewise.
101
102 2015-10-13  Pedro Alves  <palves@redhat.com>
103
104         * ada-lang.c (ada_value_primitive_packed_val): Constify
105         locals.  Use value_contents_writeable.  Remove casts.
106
107 2015-10-13  Pedro Alves  <palves@redhat.com>
108
109         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
110         and alloca calls.
111
112 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
113
114         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
115         write_memory with write_memory_unsigned_integer.
116
117 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
118
119         * solib-dsbt.c (cmp_name): Constify arguments.
120         * solib-frv.c (cmp_name): Likewise.
121         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
122         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
123         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
124         (gdb_bfd_lookup_symbol): Likewise.
125         * solib.h (gdb_bfd_lookup_symbol): Likewise.
126         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
127
128 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
129
130         * stack.c (parse_frame_specification): Remove message parameter,
131         replace with fixed string in function body, update function
132         comment.
133         (frame_info): Remove message to parse_frame_specification.
134         (select_frame_command): Likewise.
135
136 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
137
138         * stack.c (parse_frame_specification): Delete.
139         (parse_frame_specification_1): Rename to
140         parse_frame_specification.
141         (frame_info): Use parse_frame_specification.
142         (select_frame_command): Likewise.
143         (return_command): Use select_frame and print_stack_frame rather
144         than frame_command and select_frame_command.
145         (func_command): Use get_current_frame rather than
146         parse_frame_specification.
147
148 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
149
150         * stack.c (func_command): Return early when there is no ARG
151         string.
152
153 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
154
155         * stack.c: Include safe-ctype.h not ctype.h.
156         (parse_frame_specification): Use ISSPACE not isspace.
157         (backtrace_command): Use TOLOWER not tolower.
158
159 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
160
161         * mep-tdep.c (current_me_module): Add cast.
162         (mep_gdbarch_init): Likewise.
163
164 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
165
166         * m32c-tdep.c (m32c_move_reg_t): Replace with...
167         (m32c_write_reg_t): ...this and...
168         (m32c_read_reg_t): ...this.
169         (struct m32c_reg): Update types of read and write.
170         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
171         adjust definition.
172         (m32c_banked_read): Likewise.
173         (m32c_sb_read): Likewise.
174         (m32c_part_read): Likewise.
175         (m32c_cat_read): Likewise.
176         (m32c_r3r2r1r0_read): Likewise.
177         (m32c_raw_write): Change declaration type to m32c_write_reg_t
178         and adjust definition.
179         (m32c_banked_write): Likewise.
180         (m32c_sb_write): Likewise.
181         (m32c_part_write): Likewise.
182         (m32c_cat_write): Likewise.
183         (m32c_r3r2r1r0_write): Likewise.
184
185 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
186
187         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
188
189 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
190
191         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
192         gdb_sys_no_syscall instead of -1.
193
194 2015-10-12  Yao Qi  <yao.qi@linaro.org>
195
196         * NEWS: Mention the change.
197
198 2015-10-12  Yao Qi  <yao.qi@linaro.org>
199
200         * arch/aarch64-insn.c (emit_load_store): Rename to ...
201         (aarch64_emit_load_store): ... it.  All callers updated.
202
203 2015-10-12  Yao Qi  <yao.qi@linaro.org>
204
205         * arch/aarch64-insn.c (emit_insn): Rename to ...
206         (aarch64_emit_insn): ... it.  All callers updated.
207
208 2015-10-12  Yao Qi  <yao.qi@linaro.org>
209
210         * aarch64-linux-tdep.c: Include arch-utils.h.
211         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
212         set_gdbarch_displaced_step_copy_insn,
213         set_gdbarch_displaced_step_fixup,
214         set_gdbarch_displaced_step_free_closure,
215         set_gdbarch_displaced_step_location,
216         and set_gdbarch_displaced_step_hw_singlestep.
217         * aarch64-tdep.c (struct displaced_step_closure): New.
218         (struct aarch64_displaced_step_data): New.
219         (aarch64_displaced_step_b): New function.
220         (aarch64_displaced_step_b_cond): Likewise.
221         (aarch64_register): Likewise.
222         (aarch64_displaced_step_cb): Likewise.
223         (aarch64_displaced_step_tb): Likewise.
224         (aarch64_displaced_step_adr): Likewise.
225         (aarch64_displaced_step_ldr_literal): Likewise.
226         (aarch64_displaced_step_others): Likewise.
227         (aarch64_displaced_step_copy_insn): Likewise.
228         (aarch64_displaced_step_fixup): Likewise.
229         (aarch64_displaced_step_hw_singlestep): Likewise.
230         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
231         (aarch64_displaced_step_copy_insn): Declare.
232         (aarch64_displaced_step_fixup): Declare.
233         (aarch64_displaced_step_hw_singlestep): Declare.
234         * arch/aarch64-insn.c (emit_insn): Moved from
235         gdbserver/linux-aarch64-low.c.
236         (emit_load_store): Likewise.
237         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
238         gdbserver/linux-aarch64-low.c.
239         (struct aarch64_register): Likewise.
240         (struct aarch64_memory_operand): Likewise.
241         (ENCODE): Likewise.
242         (can_encode_int32): New macro.
243         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
244         (emit_tb, emit_nop): Likewise.
245         (emit_insn): Declare.
246         (emit_load_store): Declare.
247
248 2015-10-12  Yao Qi  <yao.qi@linaro.org>
249
250         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
251         gdbserver/linux-aarch64-low.c.
252         (aarch64_relocate_instruction): Likewise.
253         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
254         (struct aarch64_insn_data): Moved from
255         gdbserver/linux-aarch64-low.c.
256         (struct aarch64_insn_visitor): Likewise.
257         (aarch64_relocate_instruction): Declare.
258
259 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
260
261         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
262         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
263         to the returned value.
264
265 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
266
267         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
268         is large enough for BIT_SIZE.  Update function comment.
269
270 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
271
272         * ada-lang.c (ada_value_primitive_packed_val): Move
273         src_len variable to local block where used.  Override
274         BIT_SIZE if bigger than size of resolved type.
275
276 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
277
278         * gdbtypes.h (is_scalar_type): Add extern declaration.
279         * gdbtypes.c (is_scalar_type): Make non-static.
280         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
281         to compute IS_SCALAR instead of doing it ourselves.
282
283 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
284
285         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
286         of case where TYPE is dynamic.
287
288 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
289
290         * ada-lang.c (ada_unpack_from_contents): New function,
291         extracted from ada_value_primitive_packed_val.
292         (ada_value_primitive_packed_val): Replace extracted out code
293         by call to ada_unpack_from_contents.
294
295 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
296
297         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
298         variable declarations.
299
300 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
301
302         * ada-lang.c (ada_value_primitive_packed_val): Change the type
303         of local variables src and unpacked to "gdb_type *" instead of
304         "unsigned char *".
305
306 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
307
308         * ada-lang.c (ada_value_primitive_packed_val): Make the name
309         of various local variables more explicit and consistent.
310         No real code change otherwise.
311
312 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
313
314         * i386-tdep.h (struct gdbarch_tdep): Change type of
315         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
316
317 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
318
319         * cris-tdep.c (struct instruction_environment): Change type of
320         byte_order to enum bfd_endian.
321
322 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
323
324         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
325         enum gdb_syscall casts.
326
327 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
328
329         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
330         * arm-tdep.c (struct stack_item): Likewise.
331         (push_stack_item): Add gdb_byte* cast.
332         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
333         (push_stack_item): Add gdb_byte* cast.
334         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
335         and add cast.
336         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
337         (push_stack_item): Add gdb_byte* cast.
338         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
339         add cast.
340         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
341         gdb_byte*.
342         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
343         gdb_byte* and remove unnecessary cast.
344         (h8300h_extract_return_value): Likewise.
345         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
346         (h8300h_store_return_value): Likewise.
347         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
348         gdb_byte* and remove unnecessary cast.
349         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
350         and add cast.
351         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
352         gdb_byte* and remove unnecessary cast.
353         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
354         valbuf.
355         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
356         (mep_pseudo_cr64_read): Likewise.
357         (mep_pseudo_csr_write): Likewise.
358         (mep_pseudo_cr32_write): Likewise.
359         (mep_pseudo_cr64_write): Likewise.
360         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
361         gdb_byte* and add cast.
362         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
363         gdb_byte* and remove unnecessary cast.
364         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
365         valbuf.
366         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
367         gdb_byte*.
368         * printcmd.c (void): Likewise.
369         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
370         gdb_byte* and add cast.
371         (infpy_write_memory): Likewise.
372         (infpy_search_memory): Likewise.
373         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
374         and add cast.
375         (regcache_raw_write_unsigned): Likewise.
376         (regcache_cooked_write_signed): Likewise.
377         (regcache_cooked_write_unsigned): Likewise.
378         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
379         gdb_byte*.
380
381 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
382
383         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
384         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
385
386 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
387
388         * stack.c (print_stack_frame):
389         * utils.c (printchar): Fix typos in commentary.
390
391 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
392
393         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
394         (PostfixExpression): Support `expr.sizeof' expressions.
395         (PrimaryExpression): Support `typeof(expr)' expressions.
396
397 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
398
399         * MAINTAINERS: Update my email address.
400
401 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
402
403         * record-btrace.c (record_btrace_resume): Fix void return.
404
405 2015-10-07  Yao Qi  <yao.qi@linaro.org>
406
407         * aarch64-tdep.c: Include opcode/aarch64.h.
408         (submask): Move it above.
409         (bit): Likewise.
410         (bits): Likewise.
411         (aarch64_software_single_step): Call aarch64_decode_insn.
412         Decode instruction by aarch64_inst instead of using
413         aarch64_decode_bcond and decode_masked_match.
414
415 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
416
417         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
418         only when the file is binary.
419
420 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
421
422         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
423         subroutine handling.
424
425 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
426
427         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
428
429 2015-09-30  Doug Evans  <dje@google.com>
430
431         * dwarf2read.c (setup_type_unit_groups): Add comment.
432
433 2015-09-30  Pedro Alves  <palves@redhat.com>
434
435         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
436         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
437         (x86_linux_create_target): Don't install
438         x86_linux_always_non_stop_p.
439
440 2015-09-30  Don Breazeal  <donb@codesourcery.com>
441
442         * remote.c (remote_parse_stop_reply): Call strprefix instead
443         of strncmp.
444
445 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
446
447         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
448         * gdbarch.h: Regenerate.
449         * i386-tdep.c (i386_gdbarch_init): Remove cast to
450         struct gdbarch_tdep_info *.
451         * mips-tdep.c (mips_gdbarch_init): Likewise.
452         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
453         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
454         * spu-multiarch.c (spu_gdbarch): Likewise.
455
456 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
457
458         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
459         record a NULL value.
460
461 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
462
463         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
464         and union arguments the same as pointer arguments when determining
465         size of argument.
466
467 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
468
469         * ft32-tdep.c: #include "opcode/ft32.h".
470         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
471         (ft32_analyze_prologue): Use FT32_* macros.
472
473 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
474
475         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
476         comment.
477
478 2015-09-28  Doug Evans  <dje@google.com>
479
480         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
481
482 2015-09-28  Doug Evans  <dje@google.com>
483
484         * common/filestuff.c (make_cleanup_close): Update comment.
485
486 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
487
488         * btrace.c (parse_xml_btrace_block): Fix cast of
489         xml_find_attribute's return value.
490         * memory-map.c (memory_map_start_memory): Likewise.
491         * solib-svr4.c (library_list_start_library): Likewise.
492         * solib-target.c (library_list_start_segment): Likewise.
493         (library_list_start_section): Likewise.
494         * tracepoint.c (traceframe_info_start_memory): Likewise.
495
496 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
497
498         * d-namespace.c (d_lookup_symbol): New arg langdef.
499         All callers updated.  Support looking up symbol as a primitive type.
500         (lookup_module_scope): New arg langdef.  All callers updated.
501         Call d_lookup_symbol directly for simple bare symbols.
502
503 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
504
505         * macrocmd.c (print_macro_callback): Add cast(s).
506         * macrotab.c (macro_bcache_str): Likewise.
507         (new_macro_definition): Likewise.
508         * main.c (captured_main): Likewise.
509         * maint.c (print_bfd_section_info): Likewise.
510         * mdebugread.c (mdebug_build_psymtabs): Likewise.
511         (basic_type): Likewise.
512         * memattr.c (mem_region_cmp): Likewise.
513         * memory-map.c (memory_map_start_memory): Likewise.
514         (memory_map_end_memory): Likewise.
515         (memory_map_start_property): Likewise.
516         (memory_map_end_property): Likewise.
517         (clear_result): Likewise.
518         * memrange.c (compare_mem_ranges): Likewise.
519         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
520         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
521         * mi/mi-console.c (mi_console_file_delete): Likewise.
522         (mi_console_file_fputs): Likewise.
523         (mi_console_raw_packet): Likewise.
524         (mi_console_file_flush): Likewise.
525         (mi_console_set_raw): Likewise.
526         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
527         (mi_new_thread): Likewise.
528         (mi_thread_exit): Likewise.
529         (mi_record_changed): Likewise.
530         (mi_inferior_added): Likewise.
531         (mi_inferior_appeared): Likewise.
532         (mi_inferior_exit): Likewise.
533         (mi_inferior_removed): Likewise.
534         (mi_interp_data): Likewise.
535         (mi_on_normal_stop): Likewise.
536         (mi_traceframe_changed): Likewise.
537         (mi_tsv_created): Likewise.
538         (mi_tsv_deleted): Likewise.
539         (mi_tsv_modified): Likewise.
540         (mi_breakpoint_created): Likewise.
541         (mi_breakpoint_deleted): Likewise.
542         (mi_breakpoint_modified): Likewise.
543         (mi_output_running_pid): Likewise.
544         (mi_inferior_count): Likewise.
545         (mi_solib_loaded): Likewise.
546         (mi_solib_unloaded): Likewise.
547         (mi_command_param_changed): Likewise.
548         (mi_memory_changed): Likewise.
549         (report_initial_inferior): Likewise.
550         (mi_ui_out): Likewise.
551         (mi_set_logging): Likewise.
552         * mi/mi-main.c (collect_cores): Likewise.
553         (print_one_inferior): Likewise.
554         (free_vector_of_ints): Likewise.
555         (free_splay_tree): Likewise.
556         (mi_execute_command): Likewise.
557         * mi/mi-out.c (mi_table_body): Likewise.
558         (mi_table_end): Likewise.
559         (mi_table_header): Likewise.
560         (mi_begin): Likewise.
561         (mi_end): Likewise.
562         (mi_field_int): Likewise.
563         (mi_field_string): Likewise.
564         (mi_field_fmt): Likewise.
565         (mi_flush): Likewise.
566         (mi_redirect): Likewise.
567         (field_separator): Likewise.
568         (mi_open): Likewise.
569         (mi_close): Likewise.
570         (mi_out_buffered): Likewise.
571         (mi_out_rewind): Likewise.
572         (mi_out_put): Likewise.
573         (mi_version): Likewise.
574         (mi_out_data_dtor): Likewise.
575         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
576         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
577         * minidebug.c (lzma_open): Likewise.
578         (lzma_pread): Likewise.
579         (lzma_close): Likewise.
580         (lzma_stat): Likewise.
581         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
582         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
583         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
584         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
585         (mips_micro_frame_cache): Likewise.
586         (mips_insn32_frame_cache): Likewise.
587         (mips_stub_frame_cache): Likewise.
588         (gdb_print_insn_mips): Likewise.
589         (value_of_mips_user_reg): Likewise.
590         (mips_gdbarch_init): Likewise.
591         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
592         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
593         (mipsnbsd_supply_gregset): Likewise.
594         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
595         (am33_collect_gregset_method): Likewise.
596         (am33_collect_fpregset_method): Likewise.
597         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
598         * moxie-tdep.c (moxie_frame_cache): Likewise.
599         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
600         (msp430_analyze_frame_prologue): Likewise.
601         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
602         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
603         (nios2_collect_gregset): Likewise.
604         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
605         (nios2_stub_frame_cache): Likewise.
606         * objc-lang.c (find_methods): Likewise.
607         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
608         (get_objfile_pspace_data): Likewise.
609         (get_objfile_bfd_data): Likewise.
610         (objfile_bfd_data_free): Likewise.
611         (add_to_objfile_sections): Likewise.
612         (do_free_objfile_cleanup): Likewise.
613         (resume_section_map_updates_cleanup): Likewise.
614         * opencl-lang.c (builtin_opencl_type): Likewise.
615         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
616         * osdata.c (osdata_start_osdata): Likewise.
617         (osdata_start_item): Likewise.
618         (osdata_start_column): Likewise.
619         (osdata_end_column): Likewise.
620         (clear_parsing_data): Likewise.
621         (osdata_free_cleanup): Likewise.
622         * parse.c (type_stack_cleanup): Likewise.
623         (exp_uses_objfile_iter): Likewise.
624         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
625         (ppc_linux_collect_gregset): Likewise.
626         (ppu2spu_prev_arch): Likewise.
627         (ppu2spu_this_id): Likewise.
628         (ppu2spu_prev_register): Likewise.
629         (ppu2spu_unwind_register): Likewise.
630         (ppu2spu_sniffer): Likewise.
631         (ppu2spu_dealloc_cache): Likewise.
632         (ppc_linux_init_abi): Likewise.
633         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
634         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
635         * progspace.c (restore_program_space): Likewise.
636         * psymtab.c (find_pc_sect_psymtab): Likewise.
637         (compare_psymbols): Likewise.
638         (psymbol_bcache_full): Likewise.
639         (allocate_psymtab): Likewise.
640         (discard_psymtabs_upto): Likewise.
641         * python/py-block.c (set_block): Likewise.
642         (del_objfile_blocks): Likewise.
643         * python/py-breakpoint.c (build_bp_list): Likewise.
644         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
645         (build_inferior_list): Likewise.
646         (py_free_inferior): Likewise.
647         * python/py-objfile.c (py_free_objfile): Likewise.
648         (objfile_to_objfile_object): Likewise.
649         * python/py-prettyprint.c (py_restore_tstate): Likewise.
650         * python/py-progspace.c (py_free_pspace): Likewise.
651         (pspace_to_pspace_object): Likewise.
652         * python/py-symbol.c (set_symbol): Likewise.
653         (del_objfile_symbols): Likewise.
654         * python/py-symtab.c (set_sal): Likewise.
655         (set_symtab): Likewise.
656         (del_objfile_symtab): Likewise.
657         (del_objfile_sal): Likewise.
658         * python/py-type.c (save_objfile_types): Likewise.
659         (set_type): Likewise.
660         * python/py-unwind.c (pyuw_prev_register): Likewise.
661         (pyuw_on_new_gdbarch): Likewise.
662         * python/py-utils.c (py_decref): Likewise.
663         (py_xdecref): Likewise.
664         (gdb_py_generic_dict): Likewise.
665         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
666         (gdbpy_clone_xmethod_worker_data): Likewise.
667         (gdbpy_get_xmethod_arg_types): Likewise.
668         (gdbpy_get_xmethod_result_type): Likewise.
669         (gdbpy_invoke_xmethod): Likewise.
670         * python/python.c (gdbpy_apply_type_printers): Likewise.
671         (gdbpy_free_type_printers): Likewise.
672         * record-btrace.c (record_btrace_disable_callback): Likewise.
673         (bfcache_hash): Likewise.
674         (bfcache_eq): Likewise.
675         (btrace_get_frame_function): Likewise.
676         (record_btrace_frame_unwind_stop_reason): Likewise.
677         (record_btrace_frame_this_id): Likewise.
678         (record_btrace_frame_prev_register): Likewise.
679         (record_btrace_frame_dealloc_cache): Likewise.
680         * record-full.c (record_full_message_wrapper): Likewise.
681         (record_full_save_cleanups): Likewise.
682         * regcache.c (regcache_descr): Likewise.
683         (do_regcache_xfree): Likewise.
684         (do_regcache_invalidate): Likewise.
685         (do_cooked_read): Likewise.
686         (regcache_transfer_regset): Likewise.
687         * reggroups.c (reggroup_add): Likewise.
688         (reggroup_next): Likewise.
689         (reggroup_prev): Likewise.
690         * remote-fileio.c (do_remote_fileio_request): Likewise.
691         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
692         (do_notif_event_xfree): Likewise.
693         * remote.c (get_remote_arch_state): Likewise.
694         (remote_pspace_data_cleanup): Likewise.
695         (get_remote_exec_file): Likewise.
696         (set_pspace_remote_exec_file): Likewise.
697         (compare_pnums): Likewise.
698         (clear_threads_listing_context): Likewise.
699         (remote_newthread_step): Likewise.
700         (start_thread): Likewise.
701         (end_thread): Likewise.
702         (remove_child_of_pending_fork): Likewise.
703         (remove_stop_reply_for_inferior): Likewise.
704         (remove_stop_reply_of_remote_state): Likewise.
705         (remote_notif_remove_once_on_match): Likewise.
706         (stop_reply_match_ptid_and_ws): Likewise.
707         (kill_child_of_pending_fork): Likewise.
708         (register_remote_g_packet_guess): Likewise.
709         (remote_read_description_p): Likewise.
710         (remote_read_description): Likewise.
711         (free_actions_list_cleanup_wrapper): Likewise.
712         (remote_async_serial_handler): Likewise.
713         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
714         (rl78_analyze_frame_prologue): Likewise.
715         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
716         (ppc_supply_fpregset): Likewise.
717         (ppc_supply_vsxregset): Likewise.
718         (ppc_supply_vrregset): Likewise.
719         (ppc_collect_gregset): Likewise.
720         (ppc_collect_fpregset): Likewise.
721         (ppc_collect_vsxregset): Likewise.
722         (ppc_collect_vrregset): Likewise.
723         (e500_move_ev_register): Likewise.
724         (do_regcache_raw_write): Likewise.
725         (rs6000_frame_cache): Likewise.
726         (rs6000_epilogue_frame_cache): Likewise.
727         (rs6000_gdbarch_init): Likewise.
728         * rx-tdep.c (rx_get_opcode_byte): Likewise.
729         (rx_analyze_frame_prologue): Likewise.
730         (rx_frame_type): Likewise.
731         (rx_frame_sniffer_common): Likewise.
732         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
733         (s390_frame_unwind_cache): Likewise.
734         (s390_stub_frame_unwind_cache): Likewise.
735         (s390_sigtramp_frame_unwind_cache): Likewise.
736         * score-tdep.c (score_make_prologue_cache): Likewise.
737         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
738         (sentinel_frame_prev_arch): Likewise.
739         * ser-base.c (fd_event): Likewise.
740         (push_event): Likewise.
741         (ser_base_write): Likewise.
742         * ser-pipe.c (pipe_close): Likewise.
743         * serial.c (serial_write): Likewise.
744         * sh-tdep.c (sh_frame_cache): Likewise.
745         (sh_stub_this_id): Likewise.
746         * sh64-tdep.c (sh64_frame_cache): Likewise.
747         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
748         (library_list_start_library): Likewise.
749         (library_list_start_list): Likewise.
750         (solib_aix_free_library_list): Likewise.
751         * solib-darwin.c (get_darwin_info): Likewise.
752         * solib-dsbt.c (get_dsbt_info): Likewise.
753         * solib-spu.c (append_ocl_sos): Likewise.
754         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
755         (get_svr4_info): Likewise.
756         (library_list_start_library): Likewise.
757         (svr4_library_list_start_list): Likewise.
758         (hash_probe_and_action): Likewise.
759         (equal_probe_and_action): Likewise.
760         (svr4_update_solib_event_breakpoint): Likewise.
761         (set_solib_svr4_fetch_link_map_offsets): Likewise.
762         (svr4_fetch_link_map_offsets): Likewise.
763         (svr4_have_link_map_offsets): Likewise.
764         * solib-target.c (library_list_start_segment): Likewise.
765         (library_list_start_section): Likewise.
766         (library_list_start_library): Likewise.
767         (library_list_end_library): Likewise.
768         (library_list_start_list): Likewise.
769         (solib_target_free_library_list): Likewise.
770         * solib.c (solib_ops): Likewise.
771         (set_solib_ops): Likewise.
772         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
773         * sparc-tdep.c (sparc_frame_cache): Likewise.
774         (sparc32_frame_cache): Likewise.
775         (sparc32_supply_gregset): Likewise.
776         (sparc32_collect_gregset): Likewise.
777         (sparc32_supply_fpregset): Likewise.
778         (sparc32_collect_fpregset): Likewise.
779         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
780         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
781         (sparc64_collect_gregset): Likewise.
782         (sparc64_supply_fpregset): Likewise.
783         (sparc64_collect_fpregset): Likewise.
784         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
785         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
786         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
787         (sparc64obsd_trapframe_cache): Likewise.
788         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
789         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
790         * spu-multiarch.c (spu_gdbarch): Likewise.
791         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
792         (spu2ppu_prev_arch): Likewise.
793         (spu2ppu_this_id): Likewise.
794         (spu2ppu_prev_register): Likewise.
795         (spu2ppu_dealloc_cache): Likewise.
796         (spu_dis_asm_print_address): Likewise.
797         (gdb_print_insn_spu): Likewise.
798         (spu_get_overlay_table): Likewise.
799         * stabsread.c (rs6000_builtin_type): Likewise.
800         * stack.c (do_print_variable_and_value): Likewise.
801         * stap-probe.c (get_stap_base_address_1): Likewise.
802         * symfile-debug.c (debug_qf_has_symbols): Likewise.
803         (debug_qf_find_last_source_symtab): Likewise.
804         (debug_qf_forget_cached_source_info): Likewise.
805         (debug_qf_map_symtabs_matching_filename): Likewise.
806         (debug_qf_lookup_symbol): Likewise.
807         (debug_qf_print_stats): Likewise.
808         (debug_qf_dump): Likewise.
809         (debug_qf_relocate): Likewise.
810         (debug_qf_expand_symtabs_for_function): Likewise.
811         (debug_qf_expand_all_symtabs): Likewise.
812         (debug_qf_expand_symtabs_with_fullname): Likewise.
813         (debug_qf_map_matching_symbols): Likewise.
814         (debug_qf_expand_symtabs_matching): Likewise.
815         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
816         (debug_qf_map_symbol_filenames): Likewise.
817         (debug_sym_get_probes): Likewise.
818         (debug_sym_new_init): Likewise.
819         (debug_sym_init): Likewise.
820         (debug_sym_read): Likewise.
821         (debug_sym_read_psymbols): Likewise.
822         (debug_sym_finish): Likewise.
823         (debug_sym_offsets): Likewise.
824         (debug_sym_read_linetable): Likewise.
825         (debug_sym_relocate): Likewise.
826         (uninstall_symfile_debug_logging): Likewise.
827         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
828         * symfile.c (place_section): Likewise.
829         (add_section_size_callback): Likewise.
830         (load_progress): Likewise.
831         (load_section_callback): Likewise.
832         (clear_memory_write_data): Likewise.
833         (allocate_symtab): Likewise.
834         * symmisc.c (maintenance_expand_file_matcher): Likewise.
835         * symtab.c (lookup_symtab_callback): Likewise.
836         (hash_demangled_name_entry): Likewise.
837         (eq_demangled_name_entry): Likewise.
838         (get_symbol_cache): Likewise.
839         (symbol_cache_cleanup): Likewise.
840         (set_symbol_cache_size): Likewise.
841         (symbol_cache_flush): Likewise.
842         (maintenance_print_symbol_cache): Likewise.
843         (maintenance_print_symbol_cache_statistics): Likewise.
844         (delete_filename_seen_cache): Likewise.
845         (output_partial_symbol_filename): Likewise.
846         (search_symbols_file_matches): Likewise.
847         (search_symbols_name_matches): Likewise.
848         (do_free_completion_list): Likewise.
849         (maybe_add_partial_symtab_filename): Likewise.
850         (get_main_info): Likewise.
851         (main_info_cleanup): Likewise.
852         * target-dcache.c (target_dcache_cleanup): Likewise.
853         (target_dcache_init_p): Likewise.
854         (target_dcache_invalidate): Likewise.
855         (target_dcache_get): Likewise.
856         (target_dcache_get_or_init): Likewise.
857         * target-descriptions.c (target_find_description): Likewise.
858         (tdesc_find_type): Likewise.
859         (tdesc_data_cleanup): Likewise.
860         (tdesc_find_arch_register): Likewise.
861         (tdesc_register_name): Likewise.
862         (tdesc_register_type): Likewise.
863         (tdesc_register_reggroup_p): Likewise.
864         (set_tdesc_pseudo_register_name): Likewise.
865         (set_tdesc_pseudo_register_type): Likewise.
866         (set_tdesc_pseudo_register_reggroup_p): Likewise.
867         (tdesc_use_registers): Likewise.
868         (free_target_description): Likewise.
869         * target-memory.c (compare_block_starting_address): Likewise.
870         (cleanup_request_data): Likewise.
871         (cleanup_write_requests_vector): Likewise.
872         * target.c (open_target): Likewise.
873         (cleanup_restore_target_terminal): Likewise.
874         (free_memory_read_result_vector): Likewise.
875         * thread.c (disable_thread_stack_temporaries): Likewise.
876         (finish_thread_state_cleanup): Likewise.
877         (do_restore_current_thread_cleanup): Likewise.
878         (restore_current_thread_cleanup_dtor): Likewise.
879         (set_thread_refcount): Likewise.
880         (tp_array_compar): Likewise.
881         (do_captured_thread_select): Likewise.
882         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
883         (tic6x_stub_this_id): Likewise.
884         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
885         * top.c (do_restore_instream_cleanup): Likewise.
886         (gdb_readline_wrapper_cleanup): Likewise.
887         (kill_or_detach): Likewise.
888         (print_inferior_quit_action): Likewise.
889         * tracefile-tfile.c (match_blocktype): Likewise.
890         (build_traceframe_info): Likewise.
891         * tracefile.c (trace_file_writer_xfree): Likewise.
892         * tracepoint.c (memrange_cmp): Likewise.
893         (do_collect_symbol): Likewise.
894         (do_clear_collection_list): Likewise.
895         (do_restore_current_traceframe_cleanup): Likewise.
896         (restore_current_traceframe_cleanup_dtor): Likewise.
897         (free_current_marker): Likewise.
898         (traceframe_info_start_memory): Likewise.
899         (traceframe_info_start_tvar): Likewise.
900         (free_result): Likewise.
901         * tramp-frame.c (tramp_frame_cache): Likewise.
902         * tui/tui-file.c (tui_file_delete): Likewise.
903         (tui_fileopen): Likewise.
904         (tui_sfileopen): Likewise.
905         (tui_file_isatty): Likewise.
906         (tui_file_rewind): Likewise.
907         (tui_file_put): Likewise.
908         (tui_file_fputs): Likewise.
909         (tui_file_get_strbuf): Likewise.
910         (tui_file_adjust_strbuf): Likewise.
911         (tui_file_flush): Likewise.
912         * tui/tui-layout.c (make_command_window): Likewise.
913         (make_data_window): Likewise.
914         (show_source_disasm_command): Likewise.
915         (show_data): Likewise.
916         (make_source_or_disasm_window): Likewise.
917         (show_source_or_disasm_and_command): Likewise.
918         * tui/tui-out.c (tui_field_int): Likewise.
919         (tui_field_string): Likewise.
920         (tui_field_fmt): Likewise.
921         (tui_text): Likewise.
922         * typeprint.c (hash_typedef_field): Likewise.
923         (eq_typedef_field): Likewise.
924         (do_free_typedef_hash): Likewise.
925         (copy_typedef_hash_element): Likewise.
926         (do_free_global_table): Likewise.
927         (find_global_typedef): Likewise.
928         (find_typedef_in_hash): Likewise.
929         * ui-file.c (ui_file_write_for_put): Likewise.
930         (do_ui_file_xstrdup): Likewise.
931         (mem_file_delete): Likewise.
932         (mem_file_rewind): Likewise.
933         (mem_file_put): Likewise.
934         (mem_file_write): Likewise.
935         (stdio_file_delete): Likewise.
936         (stdio_file_flush): Likewise.
937         (stdio_file_read): Likewise.
938         (stdio_file_write): Likewise.
939         (stdio_file_write_async_safe): Likewise.
940         (stdio_file_fputs): Likewise.
941         (stdio_file_isatty): Likewise.
942         (stdio_file_fseek): Likewise.
943         (tee_file_delete): Likewise.
944         (tee_file_flush): Likewise.
945         (tee_file_write): Likewise.
946         (tee_file_fputs): Likewise.
947         (tee_file_isatty): Likewise.
948         * ui-out.c (do_cleanup_table_end): Likewise.
949         (do_cleanup_end): Likewise.
950         * user-regs.c (user_reg_add): Likewise.
951         (user_reg_map_name_to_regnum): Likewise.
952         (usernum_to_user_reg): Likewise.
953         (maintenance_print_user_registers): Likewise.
954         * utils.c (do_bfd_close_cleanup): Likewise.
955         (do_fclose_cleanup): Likewise.
956         (do_obstack_free): Likewise.
957         (do_ui_file_delete): Likewise.
958         (do_ui_out_redirect_pop): Likewise.
959         (do_free_section_addr_info): Likewise.
960         (restore_integer): Likewise.
961         (do_unpush_target): Likewise.
962         (do_htab_delete_cleanup): Likewise.
963         (do_restore_ui_file): Likewise.
964         (do_value_free): Likewise.
965         (do_free_so): Likewise.
966         (free_current_contents): Likewise.
967         (do_regfree_cleanup): Likewise.
968         (core_addr_hash): Likewise.
969         (core_addr_eq): Likewise.
970         (do_free_char_ptr_vec): Likewise.
971         * v850-tdep.c (v850_frame_cache): Likewise.
972         * varobj.c (do_free_variable_cleanup): Likewise.
973         * vax-tdep.c (vax_supply_gregset): Likewise.
974         (vax_frame_cache): Likewise.
975         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
976         * xml-support.c (gdb_xml_body_text): Likewise.
977         (gdb_xml_values_cleanup): Likewise.
978         (gdb_xml_start_element): Likewise.
979         (gdb_xml_start_element_wrapper): Likewise.
980         (gdb_xml_end_element): Likewise.
981         (gdb_xml_end_element_wrapper): Likewise.
982         (gdb_xml_cleanup): Likewise.
983         (gdb_xml_fetch_external_entity): Likewise.
984         (gdb_xml_parse_attr_enum): Likewise.
985         (xinclude_start_include): Likewise.
986         (xinclude_end_include): Likewise.
987         (xml_xinclude_default): Likewise.
988         (xml_xinclude_start_doctype): Likewise.
989         (xml_xinclude_end_doctype): Likewise.
990         (xml_xinclude_cleanup): Likewise.
991         (xml_fetch_content_from_file): Likewise.
992         * xml-syscall.c (free_syscalls_info): Likewise.
993         (syscall_start_syscall): Likewise.
994         * xml-tdesc.c (tdesc_end_arch): Likewise.
995         (tdesc_end_osabi): Likewise.
996         (tdesc_end_compatible): Likewise.
997         (tdesc_start_target): Likewise.
998         (tdesc_start_feature): Likewise.
999         (tdesc_start_reg): Likewise.
1000         (tdesc_start_union): Likewise.
1001         (tdesc_start_struct): Likewise.
1002         (tdesc_start_flags): Likewise.
1003         (tdesc_start_field): Likewise.
1004         (tdesc_start_vector): Likewise.
1005         (fetch_available_features_from_target): Likewise.
1006         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1007         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1008         (xtensa_frame_cache): Likewise.
1009         (xtensa_frame_prev_register): Likewise.
1010         (xtensa_extract_return_value): Likewise.
1011
1012 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1013
1014         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1015         (aarch64_make_stub_cache): Likewise.
1016         (value_of_aarch64_user_reg): Likewise.
1017         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1018         (get_ada_inferior_data): Likewise.
1019         (get_ada_pspace_data): Likewise.
1020         (ada_pspace_data_cleanup): Likewise.
1021         (ada_complete_symbol_matcher): Likewise.
1022         (ada_exc_search_name_matches): Likewise.
1023         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1024         (get_ada_tasks_inferior_data): Likewise.
1025         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1026         (splay_obstack_alloc): Likewise.
1027         (splay_obstack_free): Likewise.
1028         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1029         (alpha_linux_collect_gregset): Likewise.
1030         (alpha_linux_supply_fpregset): Likewise.
1031         (alpha_linux_collect_fpregset): Likewise.
1032         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1033         * alpha-tdep.c (alpha_lds): Likewise.
1034         (alpha_sts): Likewise.
1035         (alpha_sigtramp_frame_unwind_cache): Likewise.
1036         (alpha_heuristic_frame_unwind_cache): Likewise.
1037         (alpha_supply_int_regs): Likewise.
1038         (alpha_fill_int_regs): Likewise.
1039         (alpha_supply_fp_regs): Likewise.
1040         (alpha_fill_fp_regs): Likewise.
1041         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1042         (alphanbsd_aout_supply_gregset): Likewise.
1043         (alphanbsd_supply_gregset): Likewise.
1044         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1045         (amd64_x32_linux_init_abi): Likewise.
1046         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1047         (amd64_collect_native_gregset): Likewise.
1048         * amd64-tdep.c (amd64_frame_cache): Likewise.
1049         (amd64_sigtramp_frame_cache): Likewise.
1050         (amd64_epilogue_frame_cache): Likewise.
1051         (amd64_supply_fxsave): Likewise.
1052         (amd64_supply_xsave): Likewise.
1053         (amd64_collect_fxsave): Likewise.
1054         (amd64_collect_xsave): Likewise.
1055         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1056         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1057         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1058         (arm_linux_collect_gregset): Likewise.
1059         (arm_linux_supply_nwfpe): Likewise.
1060         (arm_linux_collect_nwfpe): Likewise.
1061         (arm_linux_supply_vfp): Likewise.
1062         (arm_linux_collect_vfp): Likewise.
1063         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1064         (arm_prologue_unwind_stop_reason): Likewise.
1065         (arm_prologue_this_id): Likewise.
1066         (arm_prologue_prev_register): Likewise.
1067         (arm_exidx_data_free): Likewise.
1068         (arm_find_exidx_entry): Likewise.
1069         (arm_stub_this_id): Likewise.
1070         (arm_m_exception_this_id): Likewise.
1071         (arm_m_exception_prev_register): Likewise.
1072         (arm_normal_frame_base): Likewise.
1073         (gdb_print_insn_arm): Likewise.
1074         (arm_objfile_data_free): Likewise.
1075         (arm_record_special_symbol): Likewise.
1076         (value_of_arm_user_reg): Likewise.
1077         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1078         (armbsd_supply_gregset): Likewise.
1079         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1080         (get_auto_load_pspace_data): Likewise.
1081         (hash_loaded_script_entry): Likewise.
1082         (eq_loaded_script_entry): Likewise.
1083         (clear_section_scripts): Likewise.
1084         (collect_matching_scripts): Likewise.
1085         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1086         (get_auxv_inferior_data): Likewise.
1087         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1088         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1089         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1090         (target_bfd_xclose): Likewise.
1091         (target_bfd_get_section_table): Likewise.
1092         * bfin-tdep.c (bfin_frame_cache): Likewise.
1093         * block.c (find_block_in_blockvector): Likewise.
1094         (call_site_for_pc): Likewise.
1095         (block_find_non_opaque_type_preferred): Likewise.
1096         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1097         (signal_catchpoint_remove_location): Likewise.
1098         (signal_catchpoint_breakpoint_hit): Likewise.
1099         (signal_catchpoint_print_one): Likewise.
1100         (signal_catchpoint_print_mention): Likewise.
1101         (signal_catchpoint_print_recreate): Likewise.
1102         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1103         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1104         (bp_location_compare_addrs): Likewise.
1105         (get_first_locp_gte_addr): Likewise.
1106         (check_tracepoint_command): Likewise.
1107         (do_map_commands_command): Likewise.
1108         (get_breakpoint_objfile_data): Likewise.
1109         (free_breakpoint_probes): Likewise.
1110         (do_captured_breakpoint_query): Likewise.
1111         (compare_breakpoints): Likewise.
1112         (bp_location_compare): Likewise.
1113         (bpstat_remove_breakpoint_callback): Likewise.
1114         (do_delete_breakpoint_cleanup): Likewise.
1115         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1116         (bsd_uthread_set_collect_uthread): Likewise.
1117         (bsd_uthread_activate): Likewise.
1118         (bsd_uthread_fetch_registers): Likewise.
1119         (bsd_uthread_store_registers): Likewise.
1120         * btrace.c (check_xml_btrace_version): Likewise.
1121         (parse_xml_btrace_block): Likewise.
1122         (parse_xml_btrace_pt_config_cpu): Likewise.
1123         (parse_xml_btrace_pt_raw): Likewise.
1124         (parse_xml_btrace_pt): Likewise.
1125         (parse_xml_btrace_conf_bts): Likewise.
1126         (parse_xml_btrace_conf_pt): Likewise.
1127         (do_btrace_data_cleanup): Likewise.
1128         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1129         * charset.c (cleanup_iconv): Likewise.
1130         (do_cleanup_iterator): Likewise.
1131         * cli-out.c (cli_uiout_dtor): Likewise.
1132         (cli_table_begin): Likewise.
1133         (cli_table_body): Likewise.
1134         (cli_table_end): Likewise.
1135         (cli_table_header): Likewise.
1136         (cli_begin): Likewise.
1137         (cli_end): Likewise.
1138         (cli_field_int): Likewise.
1139         (cli_field_skip): Likewise.
1140         (cli_field_string): Likewise.
1141         (cli_field_fmt): Likewise.
1142         (cli_spaces): Likewise.
1143         (cli_text): Likewise.
1144         (cli_message): Likewise.
1145         (cli_wrap_hint): Likewise.
1146         (cli_flush): Likewise.
1147         (cli_redirect): Likewise.
1148         (out_field_fmt): Likewise.
1149         (field_separator): Likewise.
1150         (cli_out_set_stream): Likewise.
1151         * cli/cli-cmds.c (compare_symtabs): Likewise.
1152         * cli/cli-dump.c (call_dump_func): Likewise.
1153         (restore_section_callback): Likewise.
1154         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1155         (do_restore_user_call_depth): Likewise.
1156         (do_free_command_lines_cleanup): Likewise.
1157         * coff-pe-read.c (get_section_vmas): Likewise.
1158         (pe_as16): Likewise.
1159         (pe_as32): Likewise.
1160         * coffread.c (coff_symfile_read): Likewise.
1161         * common/agent.c (agent_look_up_symbols): Likewise.
1162         * common/filestuff.c (do_close_cleanup): Likewise.
1163         * common/format.c (free_format_pieces_cleanup): Likewise.
1164         * common/vec.c (vec_o_reserve): Likewise.
1165         * compile/compile-c-support.c (print_one_macro): Likewise.
1166         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1167         (eq_symbol_error): Likewise.
1168         (del_symbol_error): Likewise.
1169         (error_symbol_once): Likewise.
1170         (gcc_convert_symbol): Likewise.
1171         (gcc_symbol_address): Likewise.
1172         (hash_symname): Likewise.
1173         (eq_symname): Likewise.
1174         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1175         (eq_type_map_instance): Likewise.
1176         (insert_type): Likewise.
1177         (convert_type): Likewise.
1178         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1179         (setup_sections): Likewise.
1180         (link_hash_table_free): Likewise.
1181         (copy_sections): Likewise.
1182         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1183         * compile/compile.c (compile_print_value): Likewise.
1184         (do_rmdir): Likewise.
1185         (cleanup_compile_instance): Likewise.
1186         (cleanup_unlink_file): Likewise.
1187         * completer.c (free_completion_tracker): Likewise.
1188         * corelow.c (add_to_spuid_list): Likewise.
1189         * cp-namespace.c (reset_directive_searched): Likewise.
1190         * cp-support.c (reset_directive_searched): Likewise.
1191         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1192         (cris_frame_unwind_cache): Likewise.
1193         * d-lang.c (builtin_d_type): Likewise.
1194         * d-namespace.c (reset_directive_searched): Likewise.
1195         * dbxread.c (dbx_free_symfile_info): Likewise.
1196         (do_free_bincl_list_cleanup): Likewise.
1197         * disasm.c (hash_dis_line_entry): Likewise.
1198         (eq_dis_line_entry): Likewise.
1199         (dis_asm_print_address): Likewise.
1200         (fprintf_disasm): Likewise.
1201         (do_ui_file_delete): Likewise.
1202         * doublest.c (convert_floatformat_to_doublest): Likewise.
1203         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1204         (dummy_frame_prev_register): Likewise.
1205         (dummy_frame_this_id): Likewise.
1206         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1207         (cache_eq): Likewise.
1208         (cache_find): Likewise.
1209         (tailcall_frame_this_id): Likewise.
1210         (dwarf2_tailcall_prev_register_first): Likewise.
1211         (tailcall_frame_prev_register): Likewise.
1212         (tailcall_frame_dealloc_cache): Likewise.
1213         (tailcall_frame_prev_arch): Likewise.
1214         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1215         (dwarf2_frame_set_init_reg): Likewise.
1216         (dwarf2_frame_init_reg): Likewise.
1217         (dwarf2_frame_set_signal_frame_p): Likewise.
1218         (dwarf2_frame_signal_frame_p): Likewise.
1219         (dwarf2_frame_set_adjust_regnum): Likewise.
1220         (dwarf2_frame_adjust_regnum): Likewise.
1221         (clear_pointer_cleanup): Likewise.
1222         (dwarf2_frame_cache): Likewise.
1223         (find_cie): Likewise.
1224         (dwarf2_frame_find_fde): Likewise.
1225         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1226         (free_dwarf_expr_context_cleanup): Likewise.
1227         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1228         (locexpr_get_frame_base): Likewise.
1229         (loclist_find_frame_base_location): Likewise.
1230         (loclist_get_frame_base): Likewise.
1231         (dwarf_expr_dwarf_call): Likewise.
1232         (dwarf_expr_get_base_type): Likewise.
1233         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1234         (dwarf_expr_get_obj_addr): Likewise.
1235         (entry_data_value_coerce_ref): Likewise.
1236         (entry_data_value_copy_closure): Likewise.
1237         (entry_data_value_free_closure): Likewise.
1238         (get_frame_address_in_block_wrapper): Likewise.
1239         (dwarf2_evaluate_property): Likewise.
1240         (dwarf2_compile_property_to_c): Likewise.
1241         (needs_frame_read_addr_from_reg): Likewise.
1242         (needs_frame_get_reg_value): Likewise.
1243         (needs_frame_frame_base): Likewise.
1244         (needs_frame_frame_cfa): Likewise.
1245         (needs_frame_tls_address): Likewise.
1246         (needs_frame_dwarf_call): Likewise.
1247         (needs_dwarf_reg_entry_value): Likewise.
1248         (get_ax_pc): Likewise.
1249         (locexpr_read_variable): Likewise.
1250         (locexpr_read_variable_at_entry): Likewise.
1251         (locexpr_read_needs_frame): Likewise.
1252         (locexpr_describe_location): Likewise.
1253         (locexpr_tracepoint_var_ref): Likewise.
1254         (locexpr_generate_c_location): Likewise.
1255         (loclist_read_variable): Likewise.
1256         (loclist_read_variable_at_entry): Likewise.
1257         (loclist_describe_location): Likewise.
1258         (loclist_tracepoint_var_ref): Likewise.
1259         (loclist_generate_c_location): Likewise.
1260         * dwarf2read.c (line_header_hash_voidp): Likewise.
1261         (line_header_eq_voidp): Likewise.
1262         (dwarf2_has_info): Likewise.
1263         (dwarf2_get_section_info): Likewise.
1264         (locate_dwz_sections): Likewise.
1265         (hash_file_name_entry): Likewise.
1266         (eq_file_name_entry): Likewise.
1267         (delete_file_name_entry): Likewise.
1268         (dw2_setup): Likewise.
1269         (dw2_get_file_names_reader): Likewise.
1270         (dw2_find_pc_sect_compunit_symtab): Likewise.
1271         (hash_signatured_type): Likewise.
1272         (eq_signatured_type): Likewise.
1273         (add_signatured_type_cu_to_table): Likewise.
1274         (create_debug_types_hash_table): Likewise.
1275         (lookup_dwo_signatured_type): Likewise.
1276         (lookup_dwp_signatured_type): Likewise.
1277         (lookup_signatured_type): Likewise.
1278         (hash_type_unit_group): Likewise.
1279         (eq_type_unit_group): Likewise.
1280         (get_type_unit_group): Likewise.
1281         (process_psymtab_comp_unit_reader): Likewise.
1282         (sort_tu_by_abbrev_offset): Likewise.
1283         (process_skeletonless_type_unit): Likewise.
1284         (psymtabs_addrmap_cleanup): Likewise.
1285         (dwarf2_read_symtab): Likewise.
1286         (psymtab_to_symtab_1): Likewise.
1287         (die_hash): Likewise.
1288         (die_eq): Likewise.
1289         (load_full_comp_unit_reader): Likewise.
1290         (reset_die_in_process): Likewise.
1291         (free_cu_line_header): Likewise.
1292         (handle_DW_AT_stmt_list): Likewise.
1293         (hash_dwo_file): Likewise.
1294         (eq_dwo_file): Likewise.
1295         (hash_dwo_unit): Likewise.
1296         (eq_dwo_unit): Likewise.
1297         (create_dwo_cu_reader): Likewise.
1298         (create_dwo_unit_in_dwp_v1): Likewise.
1299         (create_dwo_unit_in_dwp_v2): Likewise.
1300         (lookup_dwo_unit_in_dwp): Likewise.
1301         (dwarf2_locate_dwo_sections): Likewise.
1302         (dwarf2_locate_common_dwp_sections): Likewise.
1303         (dwarf2_locate_v2_dwp_sections): Likewise.
1304         (hash_dwp_loaded_cutus): Likewise.
1305         (eq_dwp_loaded_cutus): Likewise.
1306         (lookup_dwo_cutu): Likewise.
1307         (abbrev_table_free_cleanup): Likewise.
1308         (dwarf2_free_abbrev_table): Likewise.
1309         (find_partial_die_in_comp_unit): Likewise.
1310         (free_line_header_voidp): Likewise.
1311         (follow_die_offset): Likewise.
1312         (follow_die_sig_1): Likewise.
1313         (free_heap_comp_unit): Likewise.
1314         (free_stack_comp_unit): Likewise.
1315         (dwarf2_free_objfile): Likewise.
1316         (per_cu_offset_and_type_hash): Likewise.
1317         (per_cu_offset_and_type_eq): Likewise.
1318         (get_die_type_at_offset): Likewise.
1319         (partial_die_hash): Likewise.
1320         (partial_die_eq): Likewise.
1321         (dwarf2_per_objfile_free): Likewise.
1322         (hash_strtab_entry): Likewise.
1323         (eq_strtab_entry): Likewise.
1324         (add_string): Likewise.
1325         (hash_symtab_entry): Likewise.
1326         (eq_symtab_entry): Likewise.
1327         (delete_symtab_entry): Likewise.
1328         (cleanup_mapped_symtab): Likewise.
1329         (add_indices_to_cpool): Likewise.
1330         (hash_psymtab_cu_index): Likewise.
1331         (eq_psymtab_cu_index): Likewise.
1332         (add_address_entry_worker): Likewise.
1333         (unlink_if_set): Likewise.
1334         (write_one_signatured_type): Likewise.
1335         (save_gdb_index_command): Likewise.
1336         * elfread.c (elf_symtab_read): Likewise.
1337         (elf_gnu_ifunc_cache_hash): Likewise.
1338         (elf_gnu_ifunc_cache_eq): Likewise.
1339         (elf_gnu_ifunc_record_cache): Likewise.
1340         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1341         (elf_get_probes): Likewise.
1342         (probe_key_free): Likewise.
1343         * f-lang.c (builtin_f_type): Likewise.
1344         * frame-base.c (frame_base_append_sniffer): Likewise.
1345         (frame_base_set_default): Likewise.
1346         (frame_base_find_by_frame): Likewise.
1347         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1348         (frame_unwind_append_unwinder): Likewise.
1349         (frame_unwind_find_by_frame): Likewise.
1350         * frame.c (frame_addr_hash): Likewise.
1351         (frame_addr_hash_eq): Likewise.
1352         (frame_stash_find): Likewise.
1353         (do_frame_register_read): Likewise.
1354         (unwind_to_current_frame): Likewise.
1355         (frame_cleanup_after_sniffer): Likewise.
1356         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1357         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1358         * ft32-tdep.c (ft32_frame_cache): Likewise.
1359         * gcore.c (do_bfd_delete_cleanup): Likewise.
1360         (gcore_create_callback): Likewise.
1361         * gdb_bfd.c (hash_bfd): Likewise.
1362         (eq_bfd): Likewise.
1363         (gdb_bfd_open): Likewise.
1364         (free_one_bfd_section): Likewise.
1365         (gdb_bfd_ref): Likewise.
1366         (gdb_bfd_unref): Likewise.
1367         (get_section_descriptor): Likewise.
1368         (gdb_bfd_map_section): Likewise.
1369         (gdb_bfd_crc): Likewise.
1370         (gdb_bfd_mark_parent): Likewise.
1371         (gdb_bfd_record_inclusion): Likewise.
1372         (gdb_bfd_requires_relocations): Likewise.
1373         (print_one_bfd): Likewise.
1374         * gdbtypes.c (type_pair_hash): Likewise.
1375         (type_pair_eq): Likewise.
1376         (builtin_type): Likewise.
1377         (objfile_type): Likewise.
1378         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1379         (vtable_address_point_offset): Likewise.
1380         (gnuv3_get_vtable): Likewise.
1381         (hash_value_and_voffset): Likewise.
1382         (eq_value_and_voffset): Likewise.
1383         (compare_value_and_voffset): Likewise.
1384         (compute_vtable_size): Likewise.
1385         (gnuv3_get_typeid_type): Likewise.
1386         * go-lang.c (builtin_go_type): Likewise.
1387         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1388         (bkscm_eq_block_smob): Likewise.
1389         (bkscm_objfile_block_map): Likewise.
1390         (bkscm_del_objfile_blocks): Likewise.
1391         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1392         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1393         (gdbscm_disasm_print_address): Likewise.
1394         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1395         (frscm_eq_frame_smob): Likewise.
1396         (frscm_inferior_frame_map): Likewise.
1397         (frscm_del_inferior_frames): Likewise.
1398         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1399         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1400         (ofscm_objfile_smob_from_objfile): Likewise.
1401         * guile/scm-ports.c (ioscm_write): Likewise.
1402         (ioscm_file_port_delete): Likewise.
1403         (ioscm_file_port_rewind): Likewise.
1404         (ioscm_file_port_put): Likewise.
1405         (ioscm_file_port_write): Likewise.
1406         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1407         (psscm_pspace_smob_from_pspace): Likewise.
1408         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1409         (scscm_recording_unwind_handler): Likewise.
1410         (gdbscm_with_catch): Likewise.
1411         (scscm_call_0_body): Likewise.
1412         (scscm_call_1_body): Likewise.
1413         (scscm_call_2_body): Likewise.
1414         (scscm_call_3_body): Likewise.
1415         (scscm_call_4_body): Likewise.
1416         (scscm_apply_1_body): Likewise.
1417         (scscm_eval_scheme_string): Likewise.
1418         (gdbscm_safe_eval_string): Likewise.
1419         (scscm_source_scheme_script): Likewise.
1420         (gdbscm_safe_source_script): Likewise.
1421         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1422         (gdbscm_call_scm_from_stringn): Likewise.
1423         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1424         (syscm_eq_symbol_smob): Likewise.
1425         (syscm_get_symbol_map): Likewise.
1426         (syscm_del_objfile_symbols): Likewise.
1427         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1428         (stscm_eq_symtab_smob): Likewise.
1429         (stscm_objfile_symtab_map): Likewise.
1430         (stscm_del_objfile_symtabs): Likewise.
1431         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1432         (tyscm_eq_type_smob): Likewise.
1433         (tyscm_type_map): Likewise.
1434         (tyscm_copy_type_recursive): Likewise.
1435         (save_objfile_types): Likewise.
1436         * guile/scm-utils.c (extract_arg): Likewise.
1437         * h8300-tdep.c (h8300_frame_cache): Likewise.
1438         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1439         * hppa-tdep.c (compare_unwind_entries): Likewise.
1440         (find_unwind_entry): Likewise.
1441         (hppa_frame_cache): Likewise.
1442         (hppa_stub_frame_unwind_cache): Likewise.
1443         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1444         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1445         (hppaobsd_supply_fpregset): Likewise.
1446         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1447         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1448         * i386-tdep.c (i386_frame_cache): Likewise.
1449         (i386_epilogue_frame_cache): Likewise.
1450         (i386_sigtramp_frame_cache): Likewise.
1451         (i386_supply_gregset): Likewise.
1452         (i386_collect_gregset): Likewise.
1453         (i386_gdbarch_init): Likewise.
1454         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1455         (i386obsd_trapframe_cache): Likewise.
1456         * i387-tdep.c (i387_supply_fsave): Likewise.
1457         (i387_collect_fsave): Likewise.
1458         (i387_supply_fxsave): Likewise.
1459         (i387_collect_fxsave): Likewise.
1460         (i387_supply_xsave): Likewise.
1461         (i387_collect_xsave): Likewise.
1462         * ia64-tdep.c (ia64_frame_cache): Likewise.
1463         (ia64_sigtramp_frame_cache): Likewise.
1464         * infcmd.c (attach_command_continuation): Likewise.
1465         (attach_command_continuation_free_args): Likewise.
1466         * inferior.c (restore_inferior): Likewise.
1467         (delete_thread_of_inferior): Likewise.
1468         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1469         (get_inflow_inferior_data): Likewise.
1470         (inflow_inferior_exit): Likewise.
1471         * infrun.c (displaced_step_clear_cleanup): Likewise.
1472         (restore_current_uiout_cleanup): Likewise.
1473         (release_stop_context_cleanup): Likewise.
1474         (do_restore_infcall_suspend_state_cleanup): Likewise.
1475         (do_restore_infcall_control_state_cleanup): Likewise.
1476         (restore_inferior_ptid): Likewise.
1477         * inline-frame.c (block_starting_point_at): Likewise.
1478         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1479         * jit.c (get_jit_objfile_data): Likewise.
1480         (get_jit_program_space_data): Likewise.
1481         (jit_object_close_impl): Likewise.
1482         (jit_find_objf_with_entry_addr): Likewise.
1483         (jit_breakpoint_deleted): Likewise.
1484         (jit_unwind_reg_set_impl): Likewise.
1485         (jit_unwind_reg_get_impl): Likewise.
1486         (jit_dealloc_cache): Likewise.
1487         (jit_frame_sniffer): Likewise.
1488         (jit_frame_prev_register): Likewise.
1489         (jit_prepend_unwinder): Likewise.
1490         (jit_inferior_exit_hook): Likewise.
1491         (free_objfile_data): Likewise.
1492         * jv-lang.c (jv_per_objfile_free): Likewise.
1493         (get_dynamics_objfile): Likewise.
1494         (get_java_class_symtab): Likewise.
1495         (builtin_java_type): Likewise.
1496         * language.c (language_string_char_type): Likewise.
1497         (language_bool_type): Likewise.
1498         (language_lookup_primitive_type): Likewise.
1499         (language_lookup_primitive_type_as_symbol): Likewise.
1500         * linespec.c (hash_address_entry): Likewise.
1501         (eq_address_entry): Likewise.
1502         (iterate_inline_only): Likewise.
1503         (iterate_name_matcher): Likewise.
1504         (decode_line_2_compare_items): Likewise.
1505         (collect_one_symbol): Likewise.
1506         (compare_symbols): Likewise.
1507         (compare_msymbols): Likewise.
1508         (add_symtabs_to_list): Likewise.
1509         (collect_symbols): Likewise.
1510         (compare_msyms): Likewise.
1511         (add_minsym): Likewise.
1512         (cleanup_linespec_result): Likewise.
1513         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1514         * linux-nat.c (delete_lwp_cleanup): Likewise.
1515         (count_events_callback): Likewise.
1516         (select_event_lwp_callback): Likewise.
1517         (resume_stopped_resumed_lwps): Likewise.
1518         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1519         (invalidate_linux_cache_inf): Likewise.
1520         (get_linux_inferior_data): Likewise.
1521         (linux_find_memory_regions_thunk): Likewise.
1522         (linux_make_mappings_callback): Likewise.
1523         (linux_corefile_thread_callback): Likewise.
1524         (find_mapping_size): Likewise.
1525         * linux-thread-db.c (find_new_threads_callback): Likewise.
1526         * lm32-tdep.c (lm32_frame_cache): Likewise.
1527         * m2-lang.c (builtin_m2_type): Likewise.
1528         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1529         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1530         (m32r_linux_supply_gregset): Likewise.
1531         (m32r_linux_collect_gregset): Likewise.
1532         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1533         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1534         * m68k-tdep.c (m68k_frame_cache): Likewise.
1535         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1536         (m68kbsd_supply_gregset): Likewise.
1537         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1538         * m88k-tdep.c (m88k_frame_cache): Likewise.
1539         (m88k_supply_gregset): Likewise.
1540
1541 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1542
1543         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1544         to allocation result assignment.
1545         * ada-exp.y (write_object_renaming): Likewise.
1546         (write_ambiguous_var): Likewise.
1547         (ada_nget_field_index): Likewise.
1548         (write_var_or_type): Likewise.
1549         * ada-lang.c (ada_decode_symbol): Likewise.
1550         (ada_value_assign): Likewise.
1551         (value_pointer): Likewise.
1552         (cache_symbol): Likewise.
1553         (add_nonlocal_symbols): Likewise.
1554         (ada_name_for_lookup): Likewise.
1555         (symbol_completion_add): Likewise.
1556         (ada_to_fixed_type_1): Likewise.
1557         (ada_get_next_arg): Likewise.
1558         (defns_collected): Likewise.
1559         * ada-lex.l (processId): Likewise.
1560         (processString): Likewise.
1561         * ada-tasks.c (read_known_tasks_array): Likewise.
1562         (read_known_tasks_list): Likewise.
1563         * ada-typeprint.c (decoded_type_name): Likewise.
1564         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1565         * amd64-tdep.c (amd64_push_arguments): Likewise.
1566         (amd64_displaced_step_copy_insn): Likewise.
1567         (amd64_classify_insn_at): Likewise.
1568         (amd64_relocate_instruction): Likewise.
1569         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1570         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1571         (initialize_current_architecture): Likewise.
1572         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1573         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1574         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1575         (arm_push_dummy_call): Likewise.
1576         (extend_buffer_earlier): Likewise.
1577         (arm_adjust_breakpoint_address): Likewise.
1578         (arm_skip_stub): Likewise.
1579         * auto-load.c (filename_is_in_pattern): Likewise.
1580         (maybe_add_script_file): Likewise.
1581         (maybe_add_script_text): Likewise.
1582         (auto_load_objfile_script_1): Likewise.
1583         * auxv.c (ld_so_xfer_auxv): Likewise.
1584         * ax-general.c (new_agent_expr): Likewise.
1585         (grow_expr): Likewise.
1586         (ax_reg_mask): Likewise.
1587         * bcache.c (bcache_full): Likewise.
1588         * breakpoint.c (program_breakpoint_here_p): Likewise.
1589         * btrace.c (parse_xml_raw): Likewise.
1590         * build-id.c (build_id_to_debug_bfd): Likewise.
1591         * buildsym.c (end_symtab_with_blockvector): Likewise.
1592         * c-exp.y (string_exp): Likewise.
1593         (qualified_name): Likewise.
1594         (write_destructor_name): Likewise.
1595         (operator_stoken): Likewise.
1596         (parse_number): Likewise.
1597         (scan_macro_expansion): Likewise.
1598         (yylex): Likewise.
1599         (c_print_token): Likewise.
1600         * c-lang.c (c_get_string): Likewise.
1601         (emit_numeric_character): Likewise.
1602         * charset.c (wchar_iterate): Likewise.
1603         * cli/cli-cmds.c (complete_command): Likewise.
1604         (make_command): Likewise.
1605         * cli/cli-dump.c (restore_section_callback): Likewise.
1606         (restore_binary_file): Likewise.
1607         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1608         * cli/cli-script.c (execute_control_command): Likewise.
1609         * cli/cli-setshow.c (do_set_command): Likewise.
1610         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1611         (read_pe_exported_syms): Likewise.
1612         * coffread.c (coff_read_struct_type): Likewise.
1613         (coff_read_enum_type): Likewise.
1614         * common/btrace-common.c (btrace_data_append): Likewise.
1615         * common/buffer.c (buffer_grow): Likewise.
1616         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1617         * common/format.c (parse_format_string): Likewise.
1618         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1619         * common/xml-utils.c (xml_escape_text): Likewise.
1620         * compile/compile-object-load.c (copy_sections): Likewise.
1621         (compile_object_load): Likewise.
1622         * compile/compile-object-run.c (compile_object_run): Likewise.
1623         * completer.c (filename_completer): Likewise.
1624         * corefile.c (read_memory_typed_address): Likewise.
1625         (write_memory_unsigned_integer): Likewise.
1626         (write_memory_signed_integer): Likewise.
1627         (complete_set_gnutarget): Likewise.
1628         * corelow.c (get_core_register_section): Likewise.
1629         * cp-name-parser.y (d_grab): Likewise.
1630         (allocate_info): Likewise.
1631         (cp_new_demangle_parse_info): Likewise.
1632         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1633         (cp_lookup_symbol_in_namespace): Likewise.
1634         (lookup_namespace_scope): Likewise.
1635         (find_symbol_in_baseclass): Likewise.
1636         (cp_lookup_nested_symbol): Likewise.
1637         (cp_lookup_transparent_type_loop): Likewise.
1638         * cp-support.c (copy_string_to_obstack): Likewise.
1639         (make_symbol_overload_list): Likewise.
1640         (make_symbol_overload_list_namespace): Likewise.
1641         (make_symbol_overload_list_adl_namespace): Likewise.
1642         (first_component_command): Likewise.
1643         * cp-valprint.c (cp_print_value): Likewise.
1644         * ctf.c (ctf_xfer_partial): Likewise.
1645         * d-exp.y (StringExp): Likewise.
1646         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1647         (lookup_module_scope): Likewise.
1648         (find_symbol_in_baseclass): Likewise.
1649         (d_lookup_nested_symbol): Likewise.
1650         * dbxread.c (find_stab_function_addr): Likewise.
1651         (read_dbx_symtab): Likewise.
1652         (dbx_end_psymtab): Likewise.
1653         (cp_set_block_scope): Likewise.
1654         * dcache.c (dcache_alloc): Likewise.
1655         * demangle.c (_initialize_demangler): Likewise.
1656         * dicos-tdep.c (dicos_load_module_p): Likewise.
1657         * dictionary.c (dict_create_hashed_expandable): Likewise.
1658         (dict_create_linear_expandable): Likewise.
1659         (expand_hashtable): Likewise.
1660         (add_symbol_linear_expandable): Likewise.
1661         * dwarf2-frame.c (add_cie): Likewise.
1662         (add_fde): Likewise.
1663         (dwarf2_build_frame_info): Likewise.
1664         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1665         (dwarf_expr_fetch_address): Likewise.
1666         (add_piece): Likewise.
1667         (execute_stack_op): Likewise.
1668         * dwarf2loc.c (chain_candidate): Likewise.
1669         (dwarf_entry_parameter_to_value): Likewise.
1670         (read_pieced_value): Likewise.
1671         (write_pieced_value): Likewise.
1672         * dwarf2read.c (dwarf2_read_section): Likewise.
1673         (add_type_unit): Likewise.
1674         (read_comp_units_from_section): Likewise.
1675         (fixup_go_packaging): Likewise.
1676         (dwarf2_compute_name): Likewise.
1677         (dwarf2_physname): Likewise.
1678         (create_dwo_unit_in_dwp_v1): Likewise.
1679         (create_dwo_unit_in_dwp_v2): Likewise.
1680         (read_func_scope): Likewise.
1681         (read_call_site_scope): Likewise.
1682         (dwarf2_attach_fields_to_type): Likewise.
1683         (process_structure_scope): Likewise.
1684         (mark_common_block_symbol_computed): Likewise.
1685         (read_common_block): Likewise.
1686         (abbrev_table_read_table): Likewise.
1687         (guess_partial_die_structure_name): Likewise.
1688         (fixup_partial_die): Likewise.
1689         (add_file_name): Likewise.
1690         (dwarf2_const_value_data): Likewise.
1691         (dwarf2_const_value_attr): Likewise.
1692         (build_error_marker_type): Likewise.
1693         (guess_full_die_structure_name): Likewise.
1694         (anonymous_struct_prefix): Likewise.
1695         (typename_concat): Likewise.
1696         (dwarf2_canonicalize_name): Likewise.
1697         (dwarf2_name): Likewise.
1698         (write_constant_as_bytes): Likewise.
1699         (dwarf2_fetch_constant_bytes): Likewise.
1700         (copy_string): Likewise.
1701         (parse_macro_definition): Likewise.
1702         * elfread.c (elf_symfile_segments): Likewise.
1703         (elf_rel_plt_read): Likewise.
1704         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1705         (elf_gnu_ifunc_resolve_by_got): Likewise.
1706         (elf_read_minimal_symbols): Likewise.
1707         (elf_gnu_ifunc_record_cache): Likewise.
1708         * event-top.c (top_level_prompt): Likewise.
1709         (command_line_handler): Likewise.
1710         * exec.c (resize_section_table): Likewise.
1711         * expprint.c (print_subexp_standard): Likewise.
1712         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1713         * findcmd.c (parse_find_args): Likewise.
1714         * findvar.c (address_from_register): Likewise.
1715         * frame.c (get_prev_frame_always): Likewise.
1716         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1717         (get_section_descriptor): Likewise.
1718         * gdb_obstack.c (obconcat): Likewise.
1719         (obstack_strdup): Likewise.
1720         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1721         (create_set_type): Likewise.
1722         (lookup_unsigned_typename): Likewise.
1723         (lookup_signed_typename): Likewise.
1724         (resolve_dynamic_union): Likewise.
1725         (resolve_dynamic_struct): Likewise.
1726         (add_dyn_prop): Likewise.
1727         (copy_dynamic_prop_list): Likewise.
1728         (arch_flags_type): Likewise.
1729         (append_composite_type_field_raw): Likewise.
1730         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1731         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1732         * go-exp.y (string_exp): Likewise.
1733         * go-lang.c (go_demangle): Likewise.
1734         * guile/guile.c (compute_scheme_string): Likewise.
1735         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1736         (gdbscm_canonicalize_command_name): Likewise.
1737         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1738         (ioscm_init_memory_port): Likewise.
1739         (ioscm_reinit_memory_port): Likewise.
1740         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1741         (gdbscm_gc_dup_argv): Likewise.
1742         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1743         * hppa-tdep.c (internalize_unwinds): Likewise.
1744         (read_unwind_info): Likewise.
1745         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1746         (windows_core_xfer_shared_libraries): Likewise.
1747         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1748         (i386_stap_parse_special_token_triplet): Likewise.
1749         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1750         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1751         * inf-child.c (inf_child_fileio_readlink): Likewise.
1752         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1753         (inf_ptrace_store_register): Likewise.
1754         * infrun.c (follow_exec): Likewise.
1755         (displaced_step_prepare_throw): Likewise.
1756         (save_stop_context): Likewise.
1757         (save_infcall_suspend_state): Likewise.
1758         * jit.c (jit_read_descriptor): Likewise.
1759         (jit_read_code_entry): Likewise.
1760         (jit_symtab_line_mapping_add_impl): Likewise.
1761         (finalize_symtab): Likewise.
1762         (jit_unwind_reg_get_impl): Likewise.
1763         * jv-exp.y (QualifiedName): Likewise.
1764         * jv-lang.c (get_java_utf8_name): Likewise.
1765         (type_from_class): Likewise.
1766         (java_demangle_type_signature): Likewise.
1767         (java_class_name_from_physname): Likewise.
1768         * jv-typeprint.c (java_type_print_base): Likewise.
1769         * jv-valprint.c (java_value_print): Likewise.
1770         * language.c (add_language): Likewise.
1771         * linespec.c (add_sal_to_sals_basic): Likewise.
1772         (add_sal_to_sals): Likewise.
1773         (decode_objc): Likewise.
1774         (find_linespec_symbols): Likewise.
1775         * linux-fork.c (fork_save_infrun_state): Likewise.
1776         * linux-nat.c (linux_nat_detach): Likewise.
1777         (linux_nat_fileio_readlink): Likewise.
1778         * linux-record.c (record_linux_sockaddr): Likewise.
1779         (record_linux_msghdr): Likewise.
1780         (Do): Likewise.
1781         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1782         (linux_collect_regset_section_cb): Likewise.
1783         (linux_get_siginfo_data): Likewise.
1784         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1785         (try_thread_db_load_from_dir): Likewise.
1786         (thread_db_load_search): Likewise.
1787         (info_auto_load_libthread_db): Likewise.
1788         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1789         (m32c_m16c_pointer_to_address): Likewise.
1790         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1791         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1792         * machoread.c (macho_check_dsym): Likewise.
1793         * macroexp.c (resize_buffer): Likewise.
1794         (gather_arguments): Likewise.
1795         (maybe_expand): Likewise.
1796         * macrotab.c (new_macro_key): Likewise.
1797         (new_source_file): Likewise.
1798         (new_macro_definition): Likewise.
1799         * mdebugread.c (parse_symbol): Likewise.
1800         (parse_type): Likewise.
1801         (parse_partial_symbols): Likewise.
1802         (psymtab_to_symtab_1): Likewise.
1803         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1804         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1805         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1806         (mi_cmd_data_read_memory_bytes): Likewise.
1807         (mi_cmd_data_write_memory_bytes): Likewise.
1808         (mi_cmd_trace_frame_collected): Likewise.
1809         * mi/mi-parse.c (mi_parse_argv): Likewise.
1810         (mi_parse): Likewise.
1811         * minidebug.c (lzma_open): Likewise.
1812         (lzma_pread): Likewise.
1813         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1814         (mips_print_fp_register): Likewise.
1815         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1816         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1817         * mt-tdep.c (mt_register_name): Likewise.
1818         (mt_registers_info): Likewise.
1819         (mt_push_dummy_call): Likewise.
1820         * namespace.c (add_using_directive): Likewise.
1821         * nat/linux-btrace.c (perf_event_read): Likewise.
1822         (linux_enable_bts): Likewise.
1823         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1824         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1825         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1826         (nto_parse_redirection): Likewise.
1827         * objc-lang.c (objc_demangle): Likewise.
1828         (find_methods): Likewise.
1829         * objfiles.c (get_objfile_bfd_data): Likewise.
1830         (set_objfile_main_name): Likewise.
1831         (allocate_objfile): Likewise.
1832         (objfile_relocate): Likewise.
1833         (update_section_map): Likewise.
1834         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1835         * p-exp.y (exp): Likewise.
1836         (yylex): Likewise.
1837         * p-valprint.c (pascal_object_print_value): Likewise.
1838         * parse.c (initialize_expout): Likewise.
1839         (mark_completion_tag): Likewise.
1840         (copy_name): Likewise.
1841         (parse_float): Likewise.
1842         (type_stack_reserve): Likewise.
1843         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1844         (ppu2spu_prev_register): Likewise.
1845         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1846         * printcmd.c (printf_wide_c_string): Likewise.
1847         (printf_pointer): Likewise.
1848         * probe.c (parse_probes): Likewise.
1849         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1850         (cmdpy_init): Likewise.
1851         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1852         * python/py-symtab.c (set_sal): Likewise.
1853         * python/py-unwind.c (pyuw_sniffer): Likewise.
1854         * python/python.c (python_interactive_command): Likewise.
1855         (compute_python_string): Likewise.
1856         * ravenscar-thread.c (get_running_thread_id): Likewise.
1857         * record-full.c (record_full_exec_insn): Likewise.
1858         (record_full_core_open_1): Likewise.
1859         * regcache.c (regcache_raw_read_signed): Likewise.
1860         (regcache_raw_read_unsigned): Likewise.
1861         (regcache_cooked_read_signed): Likewise.
1862         (regcache_cooked_read_unsigned): Likewise.
1863         * remote-fileio.c (remote_fileio_func_open): Likewise.
1864         (remote_fileio_func_rename): Likewise.
1865         (remote_fileio_func_unlink): Likewise.
1866         (remote_fileio_func_stat): Likewise.
1867         (remote_fileio_func_system): Likewise.
1868         * remote-mips.c (mips_xfer_memory): Likewise.
1869         (mips_load_srec): Likewise.
1870         (pmon_end_download): Likewise.
1871         * remote.c (new_remote_state): Likewise.
1872         (map_regcache_remote_table): Likewise.
1873         (remote_register_number_and_offset): Likewise.
1874         (init_remote_state): Likewise.
1875         (get_memory_packet_size): Likewise.
1876         (remote_pass_signals): Likewise.
1877         (remote_program_signals): Likewise.
1878         (remote_start_remote): Likewise.
1879         (remote_check_symbols): Likewise.
1880         (remote_query_supported): Likewise.
1881         (extended_remote_attach): Likewise.
1882         (process_g_packet): Likewise.
1883         (store_registers_using_G): Likewise.
1884         (putpkt_binary): Likewise.
1885         (read_frame): Likewise.
1886         (compare_sections_command): Likewise.
1887         (remote_hostio_pread): Likewise.
1888         (remote_hostio_readlink): Likewise.
1889         (remote_file_put): Likewise.
1890         (remote_file_get): Likewise.
1891         (remote_pid_to_exec_file): Likewise.
1892         (_initialize_remote): Likewise.
1893         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1894         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1895         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1896         (bfd_uses_spe_extensions): Likewise.
1897         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1898         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1899         * solib-dsbt.c (decode_loadmap): Likewise.
1900         (fetch_loadmap): Likewise.
1901         (scan_dyntag): Likewise.
1902         (enable_break): Likewise.
1903         (dsbt_relocate_main_executable): Likewise.
1904         * solib-frv.c (fetch_loadmap): Likewise.
1905         (enable_break2): Likewise.
1906         (frv_relocate_main_executable): Likewise.
1907         * solib-spu.c (spu_relocate_main_executable): Likewise.
1908         (spu_bfd_open): Likewise.
1909         * solib-svr4.c (lm_info_read): Likewise.
1910         (read_program_header): Likewise.
1911         (find_program_interpreter): Likewise.
1912         (scan_dyntag): Likewise.
1913         (elf_locate_base): Likewise.
1914         (open_symbol_file_object): Likewise.
1915         (read_program_headers_from_bfd): Likewise.
1916         (svr4_relocate_main_executable): Likewise.
1917         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1918         * solib.c (solib_find_1): Likewise.
1919         (exec_file_find): Likewise.
1920         (solib_find): Likewise.
1921         * source.c (openp): Likewise.
1922         (print_source_lines_base): Likewise.
1923         (forward_search_command): Likewise.
1924         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1925         * spu-tdep.c (spu2ppu_prev_register): Likewise.
1926         (spu_get_overlay_table): Likewise.
1927         * stabsread.c (patch_block_stabs): Likewise.
1928         (define_symbol): Likewise.
1929         (again:): Likewise.
1930         (read_member_functions): Likewise.
1931         (read_one_struct_field): Likewise.
1932         (read_enum_type): Likewise.
1933         (common_block_start): Likewise.
1934         * stack.c (read_frame_arg): Likewise.
1935         (backtrace_command): Likewise.
1936         * stap-probe.c (stap_parse_register_operand): Likewise.
1937         * symfile.c (syms_from_objfile_1): Likewise.
1938         (find_separate_debug_file): Likewise.
1939         (load_command): Likewise.
1940         (load_progress): Likewise.
1941         (load_section_callback): Likewise.
1942         (reread_symbols): Likewise.
1943         (add_filename_language): Likewise.
1944         (allocate_compunit_symtab): Likewise.
1945         (read_target_long_array): Likewise.
1946         (simple_read_overlay_table): Likewise.
1947         * symtab.c (symbol_set_names): Likewise.
1948         (resize_symbol_cache): Likewise.
1949         (rbreak_command): Likewise.
1950         (completion_list_add_name): Likewise.
1951         (completion_list_objc_symbol): Likewise.
1952         (add_filename_to_list): Likewise.
1953         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1954         * target-memory.c (target_write_memory_blocks): Likewise.
1955         * target.c (target_read_string): Likewise.
1956         (read_whatever_is_readable): Likewise.
1957         (target_read_alloc_1): Likewise.
1958         (simple_search_memory): Likewise.
1959         (target_fileio_read_alloc_1): Likewise.
1960         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1961         * top.c (command_line_input): Likewise.
1962         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1963         * tracefile.c (tracefile_fetch_registers): Likewise.
1964         * tracepoint.c (add_memrange): Likewise.
1965         (init_collection_list): Likewise.
1966         (add_aexpr): Likewise.
1967         (trace_dump_actions): Likewise.
1968         (parse_trace_status): Likewise.
1969         (parse_tracepoint_definition): Likewise.
1970         (parse_tsv_definition): Likewise.
1971         (parse_static_tracepoint_marker_definition): Likewise.
1972         * tui/tui-file.c (tui_sfileopen): Likewise.
1973         (tui_file_adjust_strbuf): Likewise.
1974         * tui/tui-io.c (tui_expand_tabs): Likewise.
1975         * tui/tui-source.c (tui_set_source_content): Likewise.
1976         * typeprint.c (find_global_typedef): Likewise.
1977         * ui-file.c (do_ui_file_xstrdup): Likewise.
1978         (ui_file_obsavestring): Likewise.
1979         (mem_file_write): Likewise.
1980         * utils.c (make_hex_string): Likewise.
1981         (get_regcomp_error): Likewise.
1982         (puts_filtered_tabular): Likewise.
1983         (gdb_realpath_keepfile): Likewise.
1984         (ldirname): Likewise.
1985         (gdb_bfd_errmsg): Likewise.
1986         (substitute_path_component): Likewise.
1987         * valops.c (search_struct_method): Likewise.
1988         (find_oload_champ_namespace_loop): Likewise.
1989         * valprint.c (print_decimal_chars): Likewise.
1990         (read_string): Likewise.
1991         (generic_emit_char): Likewise.
1992         * varobj.c (varobj_delete): Likewise.
1993         (varobj_value_get_print_value): Likewise.
1994         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1995         * windows-tdep.c (display_one_tib): Likewise.
1996         * xcoffread.c (read_xcoff_symtab): Likewise.
1997         (process_xcoff_symbol): Likewise.
1998         (swap_sym): Likewise.
1999         (scan_xcoff_symtab): Likewise.
2000         (xcoff_initial_scan): Likewise.
2001         * xml-support.c (gdb_xml_end_element): Likewise.
2002         (xml_process_xincludes): Likewise.
2003         (xml_fetch_content_from_file): Likewise.
2004         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2005         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2006
2007 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2008
2009         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2010         instead of builtin_func_ptr.
2011         (ft32_pointer_to_address): New function.
2012         (ft32_address_class_type_flags): New function.
2013         (ft32_address_class_type_flags_to_name): New function.
2014         (ft32_address_class_name_to_type_flags): New function.
2015         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2016         set_gdbarch_pointer_to_address,
2017         set_gdbarch_address_class_type_flags
2018         set_gdbarch_address_class_name_to_type_flags,
2019         and set_gdbarch_address_class_type_flags_to_name.
2020         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2021
2022 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2023
2024         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2025         value is a reference, actually dereference it in order to get
2026         the underlying value.
2027
2028 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2029
2030         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2031
2032 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2033
2034         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2035         * linespec.c (linespec_lexer_lex_string): Same.
2036
2037 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2038
2039         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2040
2041 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2042
2043         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2044         variable.  Call aarch64_decode_adr instead of
2045         aarch64_decode_adrp.
2046         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2047         (aarch64_decode_adr): New function declaration.
2048         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2049         (aarch64_decode_adr): New function, factored out from
2050         aarch64_decode_adrp to decode both adr and adrp instructions.
2051
2052 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2053
2054         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2055         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2056         (aarch64-insn.o): New rule.
2057         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2058         (aarch64*-*-linux*): Likewise.
2059         * arch/aarch64-insn.c: New file.
2060         * arch/aarch64-insn.h: New file.
2061         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2062         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2063         arch/aarch64-insn.h.
2064         (decode_add_sub_imm): Rename to ...
2065         (aarch64_decode_add_sub_imm): ... this.
2066         (decode_adrp): Rename to ...
2067         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2068         Declare in arch/aarch64-insn.h.
2069         (decode_b): Rename to ...
2070         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2071         Declare in arch/aarch64-insn.h.
2072         (decode_bcond): Rename to ...
2073         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2074         Declare in arch/aarch64-insn.h.
2075         (decode_br): Rename to ...
2076         (aarch64_decode_br): ... this.
2077         (decode_cb): Rename to ...
2078         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2079         Declare in arch/aarch64-insn.h.
2080         (decode_eret): Rename to ...
2081         (aarch64_decode_eret): ... this.
2082         (decode_movz): Rename to ...
2083         (aarch64_decode_movz): ... this.
2084         (decode_orr_shifted_register_x): Rename to ...
2085         (aarch64_decode_orr_shifted_register_x): ... this.
2086         (decode_ret): Rename to ...
2087         (aarch64_decode_ret): ... this.
2088         (decode_stp_offset): Rename to ...
2089         (aarch64_decode_stp_offset): ... this.
2090         (decode_stp_offset_wb): Rename to ...
2091         (aarch64_decode_stp_offset_wb): ... this.
2092         (decode_stur): Rename to ...
2093         (aarch64_decode_stur): ... this.
2094         (decode_tb): Rename to ...
2095         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2096         Declare in arch/aarch64-insn.h.
2097         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2098
2099 2015-09-20  Doug Evans  <xdje42@gmail.com>
2100
2101         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2102
2103 2015-09-20  Doug Evans  <xdje42@gmail.com>
2104
2105         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2106         variable name that collides with a parameter.
2107
2108 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2109
2110         * dwarf2loc.c (locexpr_get_frame_base): Renames
2111         block_op_get_frame_base.
2112         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2113         block_op_get_frame_base by reference to locexpr_get_frame_base.
2114         (loclist_get_frame_base): New function, near identical copy of
2115         locexpr_get_frame_base.
2116         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2117         block_op_get_frame_base by reference to loclist_get_frame_base.
2118
2119 2015-09-19  Doug Evans  <xdje42@gmail.com>
2120
2121         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2122         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2123
2124 2015-09-18  Doug Evans  <xdje42@gmail.com>
2125
2126         * linux-thread-db.c (record_thread): Return the created thread.
2127         (thread_from_lwp): Likewise.
2128         (thread_db_get_thread_local_address): Update.
2129
2130 2015-09-18  Doug Evans  <xdje42@gmail.com>
2131
2132         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2133         move only member demangled_name up.  All uses updated.
2134
2135 2015-09-18  Doug Evans  <xdje42@gmail.com>
2136
2137         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2138         kind of minimal symbol in the error message.
2139         * objfiles.c (objfile_flavour_name): New function.
2140         * objfiles.h (objfile_flavour_name): Declare.
2141
2142 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2143
2144         * nat/aarch64-linux.c: Include elf/common.h,
2145         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2146         (aarch64_ps_get_thread_area): New function.
2147         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2148         (aarch64_ps_get_thread_area): Declare.
2149         * aarch64-linux-nat.c (ps_get_thread_area): Call
2150         aarch64_ps_get_thread_area.
2151
2152 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2153
2154         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2155
2156 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2157
2158         * NEWS: Announce new scheduler-locking mode.
2159         * infrun.c (schedlock_replay): New.
2160         (scheduler_enums): Add schedlock_replay.
2161         (scheduler_mode): Change default to schedlock_replay.
2162         (user_visible_resume_ptid): Handle schedlock_replay.
2163         (clear_proceed_status_thread): Stop replaying if resumed thread is
2164         not replaying.
2165         (schedlock_applies): Handle schedlock_replay.
2166         (_initialize_infrun): Document new scheduler-locking mode.
2167         * record-btrace.c (record_btrace_resume): Remove code to stop other
2168         threads when not replaying the resumed thread.
2169
2170 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2171
2172         * record-btrace.c ((record_btrace_will_replay): New.
2173         (init_record_btrace_ops): Initialize to_record_will_replay.
2174         * record-full.c ((record_full_will_replay): New.
2175         (init_record_full_ops): Initialize to_record_will_replay.
2176         * target-delegates.c: Regenerated.
2177         * target.c (target_record_will_replay): New.
2178         * target.h (struct target_ops) <to_record_will_replay>: New.
2179         (target_record_will_replay): New.
2180
2181 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2182
2183         * record-btrace.c (record_btrace_resume): Call
2184         target_record_stop_replaying.
2185         (record_btrace_stop_replaying_all): New.
2186         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2187         * record-full.c (record_full_stop_replaying): New.
2188         (init_record_full_ops ): Initialize to_record_stop_replaying.
2189         * target-delegates.c: Regenerated.
2190         * target.c (target_record_stop_replaying): New.
2191         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2192         (target_record_stop_replaying): New.
2193
2194 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2195
2196         * record-btrace.c (record_btrace_xfer_partial)
2197         (record_btrace_store_registers, record_btrace_prepare_to_store):
2198         Call record_btrace_is_replaying with inferior_ptid instead of
2199         minus_one_ptid.
2200         (record_btrace_store_registers): Change error message.
2201
2202 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2203
2204         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2205         Update users to pass minus_one_ptid.
2206         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2207         * record.c (cmd_record_delete): Pass inferior_ptid to
2208         target_record_is_replaying.
2209         * target-delegates.c: Regenerated.
2210         * target.c (target_record_is_replaying): Add ptid argument.
2211         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2212         argument.
2213         (target_record_is_replaying): Add ptid argument.
2214
2215 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2216
2217         * record-btrace.c (record_btrace_open): Remove non_stop check.
2218         * NEWS: Announce that record btrace supports non-stop mode.
2219
2220 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2221
2222         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2223         in the TARKET_WAITKIND_NO_HISTORY case.
2224
2225 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2226
2227         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2228         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2229
2230 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2231
2232         * record-btrace.c (get_thread_current_frame): New.
2233         (record_btrace_start_replaying): Call get_thread_current_frame.
2234
2235 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2236
2237         * record-btrace.c (record_btrace_resume_thread): A move request
2238         overwrites a previous move request.
2239         (record_btrace_find_resume_thread): Removed.
2240         (record_btrace_resume): Resume all requested threads.
2241
2242 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2243
2244         * record-btrace.c: Include vec.h.
2245         (record_btrace_find_thread_to_move): Removed.
2246         (btrace_step_no_resumed, btrace_step_again)
2247         (record_btrace_stop_replaying_at_end): New.
2248         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2249         (record_btrace_single_step_forward): Remove calls to
2250         record_btrace_stop_replaying.
2251         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2252         BTHR_RCONT.  Keep threads at the end of their history moving.
2253         (record_btrace_wait): Call record_btrace_step_thread for all threads
2254         until one reports an event.  Call record_btrace_stop_replaying_at_end
2255         for the eventing thread.
2256
2257 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2258
2259         * record-btrace.c (record_btrace_single_step_forward): Return
2260         NO_HISTORY if a step brings us to the end of the execution history.
2261
2262 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2263
2264         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2265         to ...
2266         (record_btrace_single_step_forward): ... here and
2267         (record_btrace_single_step_backward): ... here.
2268
2269 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2270
2271         * record-btrace.c (btrace_step_spurious)
2272         (record_btrace_single_step_forward)
2273         (record_btrace_single_step_backward): New.
2274         (record_btrace_step_thread): Call record_btrace_single_step_forward
2275         and record_btrace_single_step_backward.
2276
2277 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2278
2279         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2280         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2281
2282 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2283
2284         * record-btrace.c (btrace_thread_flag_to_str)
2285         (record_btrace_cancel_resume): New.
2286         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2287         (record_btrace_resume): Print execution direction.
2288         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2289         (record_btrace_wait): Call record_btrace_cancel_resume.
2290
2291 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2292
2293         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2294         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2295         (record_btrace_find_thread_to_move): Also accept threads that have
2296         BTHR_STOP set.
2297         (btrace_step_stopped_on_request, record_btrace_stop): New.
2298         (record_btrace_step_thread): Support BTHR_STOP.
2299         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2300         (init_record_btrace_ops): Initialize to_stop.
2301
2302 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2303
2304         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2305         target_is_non_stop_p ().
2306
2307 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2308
2309         * ada-typeprint.c (print_array_type): Do not describe arrays as
2310         packed when they embed dynamic elements.
2311
2312 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2313
2314         * symtab.h (address_class): Document that TLS variables
2315         are handled by LOC_UNRESOLVED.
2316         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2317         * printcmd.c (address_info): Don't relocate TLS variables.
2318
2319 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2320
2321         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2322         (decode_adrp): Likewise.
2323         (decode_b): Likewise.
2324         (decode_bcond): Likewise.
2325         (decode_br): Likewise.
2326         (decode_cb): Likewise.
2327         (decode_eret): Likewise.
2328         (decode_movz): Likewise.
2329         (decode_orr_shifted_register_x): Likewise.
2330         (decode_ret): Likewise.
2331         (decode_stp_offset): Likewise.
2332         (decode_stp_offset_wb): Likewise.
2333         (decode_stur): Likewise.
2334         (decode_tb): Likewise.
2335         (aarch64_analyze_prologue): Likewise.
2336         (pass_in_x): Likewise.
2337         (pass_in_v): Likewise.
2338         (pass_on_stack): Likewise.
2339         (aarch64_push_dummy_call): Likewise.
2340         (aarch64_extract_return_value): Likewise.
2341         (aarch64_store_return_value): Likewise.
2342         (aarch64_return_value): Likewise.
2343         (aarch64_record_asimd_load_store): Likewise.
2344         (aarch64_record_load_store): Likewise.
2345         (aarch64_record_data_proc_simd_fp): Likewise.
2346
2347 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2348
2349         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2350         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2351         (ppc64_skip_trampoline_code_1): ... here.
2352         (ppc64_skip_trampoline_code): New wrapper function.
2353         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2354
2355 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2356
2357         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2358         function.
2359         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2360         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2361         if target_can_do_single_step returns 1.
2362         * remote.c (struct vCont_action_support) <s, S>: New fields.
2363         (PACKET_vContSupported): New enum.
2364         (remote_protocol_features): New element for vContSupported.
2365         (remote_query_supported): Append "vContSupported+".
2366         (remote_vcont_probe): Remove support_s and support_S, use
2367         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2368         vCont packet if c and C actions are not supported.
2369         (remote_can_do_single_step): New function.
2370         (init_remote_ops): Install it to to_can_do_single_step.
2371         (_initialize_remote): Call add_packet_config_cmd.
2372         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2373         (target_can_do_single_step): New macro.
2374         * target-delegates.c: Re-generated.
2375
2376 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2377
2378         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2379         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2380         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2381         New function.
2382         (aarch64_siginfo_from_compat_siginfo): New function.
2383         * nat/aarch64-linux.h: Include signal.h.
2384         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2385         (compat_timer_t, compat_clock_t): Likewise.
2386         (struct compat_timeval): New.
2387         (union compat_sigval): New.
2388         (struct compat_siginfo): New.
2389         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2390         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2391         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2392         (cpt_si_band, cpt_si_fd): Likewise.
2393
2394 2015-09-14  Pedro Alves  <palves@redhat.com>
2395
2396         * infrun.c (current_stop_id): New global.
2397         (get_stop_id, new_stop_id): New functions.
2398         (fetch_inferior_event): Handle normal_stop proceeding the target.
2399         (struct stop_context): New.
2400         (save_stop_context, release_stop_context_cleanup)
2401         (stop_context_changed): New functions.
2402         (normal_stop): Return true if the hook-stop changes the stop
2403         context.
2404         * infrun.h (get_stop_id): Declare.
2405         (normal_stop): Now returns int.  Add documentation.
2406
2407 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2408
2409         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2410         comment.  Handle packed arrays.
2411
2412 2015-09-14  Pedro Alves  <palves@redhat.com>
2413
2414         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2415         mention of maint set/show target-non-stop.
2416
2417 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2418
2419         * NEWS: Announce new remote packets for the exec-events
2420         feature and the exec-events feature and associated commands.
2421
2422 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2423
2424         * remote.c (remote_exec_event_p): New function.
2425         (remote_insert_exec_catchpoint): New function.
2426         (remote_remove_exec_catchpoint): New function.
2427         (init_extended_remote_ops): Initialize extended_remote_ops
2428         members to_insert_exec_catchpoint and
2429         to_remove_exec_catchpoint.
2430
2431 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2432             Luis Machado  <lgustavo@codesourcery.com>
2433
2434         * infrun.c (follow_exec): Use process-style ptid for
2435         exec message.  Call add_inferior_with_spaces and
2436         target_follow_exec.
2437         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2438         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2439         * remote.c (remote_pspace_data): New static variable.
2440         (remote_pspace_data_cleanup): New function.
2441         (get_remote_exec_file): New function.
2442         (set_remote_exec_file_1): New function.
2443         (set_remote_exec_file): New function.
2444         (show_remote_exec_file): New function.
2445         (remote_exec_file): Delete static variable.
2446         (anonymous enum) <PACKET_exec_event_feature>: New
2447         enumeration constant.
2448         (remote_protocol_features): Add entry for exec-events feature.
2449         (remote_query_supported): Add client side of qSupported query
2450         for exec-events feature.
2451         (remote_follow_exec): New function.
2452         (remote_parse_stop_reply): Handle 'exec' stop reason.
2453         (extended_remote_run, extended_remote_create_inferior): Call
2454         get_remote_exec_file and set_remote_exec_file_1.
2455         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2456         member.
2457         (_initialize_remote): Call
2458         register_program_space_data_with_cleanup.  Call
2459         add_packet_config_cmd for remote exec-events feature.
2460         Modify call to add_setshow_string_noescape_cmd for exec-file
2461         to use new functions set_remote_exec_file and
2462         show_remote_exec_file.
2463         * target-debug.h, target-delegates.c: Regenerated.
2464         * target.c (target_follow_exec): New function.
2465         * target.h (struct target_ops) <to_follow_exec>: New member.
2466         (target_follow_exec): Declare new function.
2467
2468 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2469
2470         * aarch64-tdep.c (decode_cb): Move up comment describing the
2471         encoding.
2472         (decode_tb): Fix a typo in comment above the function.  Move up
2473         comment describing the encoding.
2474
2475 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2476
2477         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2478
2479 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2480
2481         PR gdb/18947
2482         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2483         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2484
2485 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2486
2487         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2488         operations.
2489
2490 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2491
2492         * ada-lang.c (ada_search_struct_field): Constify parameters
2493         and/or variables..
2494         (xget_renaming_scope): Likewise.
2495         (ada_is_redundant_range_encoding): Likewise.
2496         (scan_discrim_bound): Likewise.
2497         (to_fixed_range_type): Likewise.
2498
2499 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2500
2501         * breakpoint.c (download_tracepoint_locations): New local
2502         can_download_tracepoint.  Check the result of
2503         target_can_download_tracepoint and save it in
2504         can_download_tracepoint if there are tracepoints to download.
2505         * linux-nat.h (enum tribool): Move it to ...
2506         * common/common-types.h: ... here.
2507
2508 2015-09-09  Pedro Alves  <palves@redhat.com>
2509
2510         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2511         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2512
2513 2015-09-09  Pedro Alves  <palves@redhat.com>
2514
2515         * continuations.c (add_continuation, restore_thread_cleanup)
2516         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2517         (do_all_continuations_thread, do_all_continuations)
2518         (discard_all_continuations_thread_callback)
2519         (discard_all_continuations_thread, discard_all_continuations)
2520         (add_intermediate_continuation)
2521         (do_all_intermediate_continuations_thread_callback)
2522         (do_all_intermediate_continuations_thread)
2523         (do_all_intermediate_continuations)
2524         (discard_all_intermediate_continuations_thread_callback)
2525         (discard_all_intermediate_continuations_thread)
2526         (discard_all_intermediate_continuations): Delete.
2527         * continuations.h (add_continuation, do_all_continuations)
2528         (do_all_continuations_thread, discard_all_continuations)
2529         (discard_all_continuations_thread, add_intermediate_continuation)
2530         (do_all_intermediate_continuations)
2531         (do_all_intermediate_continuations_thread)
2532         (discard_all_intermediate_continuations)
2533         (discard_all_intermediate_continuations_thread): Delete
2534         declarations.
2535         * event-top.c (stdin_event_handler): Delete references to
2536         continuations.
2537         * gdbthread.h (struct thread_info): Delete continuations and
2538         intermediate_continuations fields.
2539         * inf-loop.c (inferior_event_handler): Remove references to
2540         continuations.
2541         * infrun.c (infrun_thread_stop_requested_callback): Remove
2542         references to continuations.
2543         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2544         * thread.c: Don't include "continuations.h".
2545         (clear_thread_inferior_resources): Remove references to
2546         continuations.
2547
2548 2015-09-09  Pedro Alves  <palves@redhat.com>
2549
2550         * infcall.c (struct dummy_frame_context_saver): Delete.
2551         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2552         (dummy_frame_context_saver_drop)
2553         (dummy_frame_context_saver_cleanup)
2554         (dummy_frame_context_saver_get_regs)
2555         (dummy_frame_context_saver_setup): Delete.
2556         * infcall.h (dummy_frame_context_saver_drop)
2557         (dummy_frame_context_saver_cleanup)
2558         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2559         Delete.
2560         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2561         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2562         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2563
2564 2015-09-09  Pedro Alves  <palves@redhat.com>
2565
2566         * breakpoint.c: Include "thread-fsm.h".
2567         (struct until_break_command_continuation_args): Delete.
2568         (struct until_break_fsm): New.
2569         (until_break_fsm_ops): New global.
2570         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2571         (until_break_command_continuation): Delete.
2572         (until_break_fsm_clean_up): New function.
2573         (until_break_fsm_async_reply_reason): New function.
2574         (until_break_command): Adjust to create an until_break_fsm instead
2575         of a continuation.
2576         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2577         here.
2578         * infcmd.c (struct until_next_fsm): New.
2579         (until_next_fsm_ops): New global.
2580         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2581         (until_next_continuation): Delete.
2582         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2583         functions.
2584         (until_next_command): Adjust to create a new until_next_fsm
2585         instead of a continuation.
2586
2587 2015-09-09  Pedro Alves  <palves@redhat.com>
2588
2589         * infcall.c: Include thread_fsm.h.
2590         (struct call_return_meta_info): New.
2591         (get_call_return_value): New function, factored out from
2592         call_function_by_hand_dummy.
2593         (struct call_thread_fsm): New.
2594         (call_thread_fsm_ops): New global.
2595         (new_call_thread_fsm, call_thread_fsm_should_stop)
2596         (call_thread_fsm_should_notify_stop): New functions.
2597         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2598         the thread.
2599         (call_function_by_hand_dummy): Create a new call_thread_fsm
2600         instance, associate it with the thread, and wait for the FSM to
2601         finish.  If finished successfully, fetch the function's result
2602         value out of the FSM.
2603         * infrun.c (fetch_inferior_event): If the FSM says the stop
2604         shouldn't be notified, don't call normal_stop.
2605         (maybe_remove_breakpoints): New function, factored out from ...
2606         (normal_stop): ... here.  Simplify.
2607         * infrun.h (maybe_remove_breakpoints): Declare.
2608         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2609         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2610         (thread_fsm_should_notify_stop): Declare.
2611
2612 2015-09-09  Pedro Alves  <palves@redhat.com>
2613
2614         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2615         * breakpoint.c (handle_jit_event): Print debug output.
2616         (bpstat_what): Split event callback handling to ...
2617         (bpstat_run_callbacks): ... this new function.
2618         (momentary_bkpt_print_it): No longer handle bp_finish here.
2619         * breakpoint.h (bpstat_run_callbacks): Declare.
2620         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2621         <thread_fsm>: New field.
2622         (thread_cancel_execution_command): Declare.
2623         * infcmd.c: Include thread-fsm.h.
2624         (struct step_command_fsm): New.
2625         (step_command_fsm_ops): New global.
2626         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2627         (step_1): Adjust to use step_command_fsm_prepare and
2628         prepare_one_step.
2629         (struct step_1_continuation_args): Delete.
2630         (step_1_continuation): Delete.
2631         (step_command_fsm_should_stop): New function.
2632         (step_once): Delete.
2633         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2634         (prepare_one_step): New function, based on step_once.
2635         (until_next_command): Remove step_multi reference.
2636         (struct return_value_info): New.
2637         (print_return_value): Rename to ...
2638         (print_return_value_1): ... this.  New struct return_value_info
2639         parameter.  Adjust.
2640         (print_return_value): Reimplement as wrapper around
2641         print_return_value_1.
2642         (struct finish_command_fsm): New.
2643         (finish_command_continuation): Delete.
2644         (finish_command_fsm_ops): New global.
2645         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2646         functions.
2647         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2648         New.
2649         (finish_command_continuation_free_arg): Delete.
2650         (finish_command_fsm_async_reply_reason): New.
2651         (finish_backward, finish_forward): Change symbol parameter to a
2652         finish_command_fsm.  Adjust.
2653         (finish_command): Create a finish_command_fsm.  Adjust.
2654         * infrun.c: Include "thread-fsm.h".
2655         (clear_proceed_status_thread): Delete the thread's FSM.
2656         (infrun_thread_stop_requested_callback): Cancel the thread's
2657         execution command.
2658         (clean_up_just_stopped_threads_fsms): New function.
2659         (fetch_inferior_event): Handle the event_thread's should_stop
2660         method saying the command isn't done yet.
2661         (process_event_stop_test): Run breakpoint callbacks here.
2662         (print_stop_event): Rename to ...
2663         (print_stop_location): ... this.
2664         (restore_current_uiout_cleanup): New function.
2665         (print_stop_event): Reimplement.
2666         (normal_stop): No longer notify the end_stepping_range observers
2667         here handle "step N" nor "finish" here.  No longer call
2668         print_stop_event here.
2669         * infrun.h (struct return_value_info): Forward declare.
2670         (print_return_value): Declare.
2671         (print_stop_event): Change prototype.
2672         * thread-fsm.c: New file.
2673         * thread-fsm.h: New file.
2674         * thread.c: Include "thread-fsm.h".
2675         (thread_cancel_execution_command): New function.
2676         (clear_thread_inferior_resources): Call it.
2677         * cli/cli-interp.c (cli_on_normal_stop): New function.
2678         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2679         observer.
2680         * mi/mi-interp.c: Include "thread-fsm.h".
2681         (restore_current_uiout_cleanup): Delete.
2682         (mi_on_normal_stop): If the thread has an FSM associated, and it
2683         finished, ask it for the async-reply-reason to print.  Always call
2684         print_stop_event here, regardless of the top-level interpreter.
2685         Check bpstat_what to tell whether an asynchronous breakpoint hit
2686         triggered.
2687         * tui/tui-interp.c (tui_on_normal_stop): New function.
2688         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2689
2690 2015-09-09  Pedro Alves  <palves@redhat.com>
2691
2692         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2693         check whether the target can async.
2694         * inf-loop.c (inferior_event_handler): Only call target_async if
2695         the target can async.
2696         * infcall.c: Include top.h and interps.h.
2697         (run_inferior_call): For the interpreter to sync mode while
2698         running the infcall.  Call wait_sync_command_done instead of
2699         wait_for_inferior plus normal_stop.
2700         * infcmd.c (prepare_execution_command): Don't check whether the
2701         target can async when running in the foreground.
2702         (step_1): Delete synchronous case handling.
2703         (step_once): Always install a continuation, even in sync mode.
2704         (until_next_command, finish_forward): Don't check whether the
2705         target can async.
2706         (attach_command_post_wait, notice_new_inferior): Always install a
2707         continuation, even in sync mode.
2708         * infrun.c (mark_infrun_async_event_handler): New function.
2709         (proceed): In sync mode, mark infrun's event source instead of
2710         waiting for events here.
2711         (fetch_inferior_event): If the target can't async, do a blocking
2712         wait.
2713         (prepare_to_wait): In sync mode, mark infrun's event source.
2714         (infrun_async_inferior_event_handler): No longer bail out if the
2715         target can't async.
2716         * infrun.h (mark_infrun_async_event_handler): New declaration.
2717         * linux-nat.c (linux_nat_wait_1): Remove calls to
2718         set_sigint_trap/clear_sigint_trap.
2719         (linux_nat_terminal_inferior): No longer check whether the target
2720         can async.
2721         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2722         comment.
2723         (mi_execute_command_input_handler): No longer check whether the
2724         target is async.  Update and simplify comment.
2725         * target.c (default_target_wait): New function.
2726         * target.h (struct target_ops) <to_wait>: Now defaults to
2727         default_target_wait.
2728         (default_target_wait): Declare.
2729         * top.c (wait_sync_command_done): New function, factored out from
2730         ...
2731         (maybe_wait_sync_command_done): ... this.
2732         * top.h (wait_sync_command_done): Declare.
2733         * target-delegates.c: Regenerate.
2734
2735 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2736
2737         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2738         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2739         Remove include of sys/utsname.h.
2740         (linux_determine_kernel_ptr_bits): Remove.
2741         (linux_determine_kernel_start): New.
2742         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2743         Update check.
2744         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2745         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2746         initialization.
2747         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2748         assignment.
2749
2750 2015-09-07  Pedro Alves  <palves@redhat.com>
2751
2752         * guile/guile-internal.h (as_a_scm_t_subr): New.
2753         * guile/guile.c (misc_guile_functions): Use it.
2754         * guile/scm-arch.c (arch_functions): Use it.
2755         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2756         Use it.
2757         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2758         * guile/scm-cmd.c (command_functions): Use it.
2759         * guile/scm-disasm.c (disasm_functions): Use it.
2760         * guile/scm-exception.c (exception_functions)
2761         (private_exception_functions): Use it.
2762         * guile/scm-frame.c (frame_functions)
2763         * guile/scm-gsmob.c (gsmob_functions): Use it.
2764         * guile/scm-iterator.c (iterator_functions): Use it.
2765         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2766         * guile/scm-math.c (math_functions): Use it.
2767         * guile/scm-objfile.c (objfile_functions): Use it.
2768         * guile/scm-param.c (parameter_functions): Use it.
2769         * guile/scm-ports.c (port_functions, private_port_functions): Use
2770         it.
2771         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2772         * guile/scm-progspace.c (pspace_functions): Use it.
2773         * guile/scm-string.c (string_functions): Use it.
2774         * guile/scm-symbol.c (symbol_functions): Use it.
2775         * guile/scm-symtab.c (symtab_functions): Use it.
2776         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2777         it.
2778         * guile/scm-value.c (value_functions): Use it.
2779
2780 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2781
2782         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2783         (tui_next_win): Likewise.
2784         (tui_prev_win): Likewise.
2785         (tui_partial_win_by_name): Likewise.
2786         (tui_init_generic_part): Likewise.
2787         (init_content_element): Likewise.
2788         (tui_del_window): Likewise.
2789         (tui_free_window): Likewise.
2790         (tui_del_data_windows): Likewise.
2791         (tui_free_data_content): Likewise.
2792         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2793         * tui/tui-regs.c (tui_show_register_group): Likewise.
2794         * tui/tui-win.c (tui_resize_all): Likewise.
2795         (tui_set_focus): Likewise.
2796         (tui_set_win_height): Likewise.
2797         (make_invisible_and_set_new_height): Likewise.
2798         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2799         * tui/tui-wingeneral.c (make_visible): Likewise.
2800
2801 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2802
2803         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2804
2805 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2806
2807         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2808         pointer.
2809         * dbxread.c (dbx_end_psymtab): Likewise.
2810         * gnu-nat.c (gnu_write_inferior): Likewise.
2811         * mdebugread.c (cross_ref): Likewise.
2812         * p-valprint.c (pascal_val_print): Likewise.
2813         * xcoffread.c (xcoff_end_psymtab): Likewise.
2814
2815 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2816
2817         * NEWS: Mention the aarch64 multi-arch debugging support.
2818
2819 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2820
2821         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2822         type instead of a TYPE_CODE_INT one for the string_char_type
2823         and the ada_primitive_type_char types.
2824
2825 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2826
2827         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2828         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2829         aarch64_linux_region_ok_for_watchpoint.
2830         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2831         New function.
2832         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2833         Declare it.
2834
2835 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2836
2837         * gdb_obstack.h (obstack_strdup): Declare.
2838         * gdb_obstack.c (obstack_strdup): Define.
2839         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2840         * gdbarch.c: Regenerate.
2841         * gdbarch.h: Regenerate.
2842         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2843
2844 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2845
2846         * gdbtypes.c (copy_type_recursive): Update documentation.
2847
2848 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2849
2850         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2851         as zero.
2852
2853 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2854
2855         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2856
2857 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2858
2859         * solib-svr4.c (solib_event_probe_action): Call
2860         get_probe_argument_count using TRY...CATCH.
2861         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2862
2863 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2864
2865         * probe.h (struct probe_ops) <get_probe_argument_count,
2866         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2867         the comment that the function can throw an exception.
2868         (get_probe_argument_count): Likewise.
2869         (evaluate_probe_argument): Likewise.
2870         * stap-probe.c (stap_get_opcode): Call error instead of
2871         internal_error.
2872         (stap_get_expected_argument_type): Likewise.  Add argument
2873         'probe'.  Improve error message by mentioning the probe's name.
2874         (stap_parse_probe_arguments): Adjust call to
2875         stap_get_expected_argument_type.
2876         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
2877         not zero.  Call internal_error if GDB requests an argument but the
2878         probe has no arguments.
2879
2880 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2881
2882         * ada-lang.c (ada_resolve_function): Do not ask the user what
2883         match to use when in completion mode.
2884
2885 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
2886
2887         * tui/tui-data.c (tui_win_name): Make local variable const, remove
2888         cast of NULL.
2889
2890 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
2891
2892         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2893         call_abi using XSHAL_ABI macro.
2894
2895 2015-08-29  Doug Evans  <xdje42@gmail.com>
2896
2897         * symtab.h (struct symbol): Tweak comment.
2898
2899 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
2900
2901         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2902         gdbarch obstack instead of on the heap.  Update commentary
2903         accordingly.
2904
2905 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
2906
2907         GDB 7.10 released.
2908
2909 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
2910
2911         * NEWS: Update entry about non-8-bits addressable memory.
2912
2913 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
2914
2915         Revert:
2916         2014-11-06  Doug Evans  <xdje42@gmail.com>
2917         * solib.c (solib_global_lookup): Fetch arch from objfile,
2918         not target_gdbarch.
2919
2920 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2921
2922         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2923         attempt to relocate a TLS variable offset.
2924
2925 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2926
2927         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2928         registered yet.  Set inferior_ptid while calling target_read_memory.
2929
2930 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2931
2932         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2933         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
2934         * linux-nat.c (check_stopped_by_breakpoint): Use
2935         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2936
2937 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2938
2939         * linux-thread-db.c (thread_db_get_thread_local_address): If the
2940         thread was not yet discovered, use thread_from_lwp instead of
2941         calling thread_db_find_new_threads_1.
2942
2943 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2944
2945         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2946         statements.
2947
2948 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2949
2950         * NEWS: Document support for non-8-bits addressable memory.
2951
2952 2015-08-27  Pedro Alves  <palves@redhat.com>
2953
2954         * configure.ac: Remove AC_TYPE_SIGNAL call.
2955         * configure, config.in: Regenerate.
2956
2957 2015-08-27  Pedro Alves  <palves@redhat.com>
2958
2959         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
2960         * extension-priv.h: Include signal.h.
2961         (struct signal_handler) <handler>: Change type to sighandler_t.
2962         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2963         * inflow.c (sigint_ours, sigquit_ours): Change type to
2964         sighandler_t.
2965         (child_terminal_inferior): Remove casts.
2966         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
2967         (osig): Change type to sighandler_t.
2968         * nto-procfs.c (ofunc): Change type to sighandler_t.
2969         (procfs_wait): Remove casts.
2970         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2971         * remote-sim.c (gdbsim_wait): Use sighandler_t.
2972         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2973
2974 2015-08-27  Pedro Alves  <palves@redhat.com>
2975
2976         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2977         * gnulib/aclocal.m4: Renegerate.
2978         * gnulib/config.in: Renegerate.
2979         * gnulib/configure: Renegerate.
2980         * gnulib/import/Makefile.am: Update.
2981         * gnulib/import/Makefile.in: Regenerate.
2982         * gnulib/import/m4/gnulib-cache.m4: Update.
2983         * gnulib/import/m4/gnulib-comp.m4: Update.
2984         * gnulib/import/m4/signal_h.m4: New file.
2985         * gnulib/import/signal.in.h: New file.
2986
2987 2015-08-27  Pedro Alves  <palves@redhat.com>
2988
2989         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2990         (MIN_MEMORY_PACKET_SIZE): New.
2991         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2992         (get_memory_packet_size): Adjust.  No longer limit the max packet
2993         size.
2994         (set_memory_packet_size): Adjust, and remove dead code.
2995         (remote_check_symbols): Use xmalloc and a cleanup instead of
2996         alloca.
2997         (remote_packet_size): No longer cap the packet size.
2998         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2999
3000 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3001
3002         * compile/compile.c (compile_to_object): Mention language in
3003         error message.
3004
3005 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3006
3007         * target.c (target_pre_inferior): Unset attach_flag.
3008
3009 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3010
3011         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3012         * gdbarch.c: Re-generate.
3013
3014 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3015
3016         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3017         function with the XNEW-family equivalent.
3018         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3019         * ada-exp.y (write_ambiguous_var): Likewise.
3020         * ada-lang.c (resolve_subexp): Likewise.
3021         (user_select_syms): Likewise.
3022         (assign_aggregate): Likewise.
3023         (ada_evaluate_subexp): Likewise.
3024         (cache_symbol): Likewise.
3025         * addrmap.c (allocate_key): Likewise.
3026         (addrmap_create_mutable): Likewise.
3027         * aix-thread.c (sync_threadlists): Likewise.
3028         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3029         (alpha_gdbarch_init): Likewise.
3030         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3031         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3032         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3033         * arm-tdep.c (push_stack_item): Likewise.
3034         (arm_displaced_step_copy_insn): Likewise.
3035         (arm_gdbarch_init): Likewise.
3036         (_initialize_arm_tdep): Likewise.
3037         * avr-tdep.c (push_stack_item): Likewise.
3038         * ax-general.c (new_agent_expr): Likewise.
3039         * block.c (block_initialize_namespace): Likewise.
3040         * breakpoint.c (alloc_counted_command_line): Likewise.
3041         (update_dprintf_command_list): Likewise.
3042         (parse_breakpoint_sals): Likewise.
3043         (decode_static_tracepoint_spec): Likewise.
3044         (until_break_command): Likewise.
3045         (clear_command): Likewise.
3046         (update_global_location_list): Likewise.
3047         (get_breakpoint_objfile_data) Likewise.
3048         * btrace.c (ftrace_new_function): Likewise.
3049         (btrace_set_insn_history): Likewise.
3050         (btrace_set_call_history): Likewise.
3051         * buildsym.c (add_symbol_to_list): Likewise.
3052         (record_pending_block): Likewise.
3053         (start_subfile): Likewise.
3054         (start_buildsym_compunit): Likewise.
3055         (push_subfile): Likewise.
3056         (end_symtab_get_static_block): Likewise.
3057         (buildsym_init): Likewise.
3058         * cli/cli-cmds.c (source_command): Likewise.
3059         * cli/cli-decode.c (add_cmd): Likewise.
3060         * cli/cli-script.c (build_command_line): Likewise.
3061         (setup_user_args): Likewise.
3062         (realloc_body_list): Likewise.
3063         (process_next_line): Likewise.
3064         (copy_command_lines): Likewise.
3065         * cli/cli-setshow.c (do_set_command): Likewise.
3066         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3067         * coffread.c (coff_locate_sections): Likewise.
3068         (coff_symtab_read): Likewise.
3069         (coff_read_struct_type): Likewise.
3070         * common/cleanups.c (make_my_cleanup2): Likewise.
3071         * common/common-exceptions.c (throw_it): Likewise.
3072         * common/filestuff.c (make_cleanup_close): Likewise.
3073         * common/format.c (parse_format_string): Likewise.
3074         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3075         * compile/compile-object-load.c (munmap_list_add): Likewise.
3076         (compile_object_load): Likewise.
3077         * compile/compile-object-run.c (compile_object_run): Likewise.
3078         * compile/compile.c (append_args): Likewise.
3079         * corefile.c (specify_exec_file_hook): Likewise.
3080         * cp-support.c (make_symbol_overload_list): Likewise.
3081         * cris-tdep.c (push_stack_item): Likewise.
3082         (cris_gdbarch_init): Likewise.
3083         * ctf.c (ctf_trace_file_writer_new): Likewise.
3084         * dbxread.c (init_header_files): Likewise.
3085         (add_new_header_file): Likewise.
3086         (init_bincl_list): Likewise.
3087         (dbx_end_psymtab): Likewise.
3088         (start_psymtab): Likewise.
3089         (dbx_end_psymtab): Likewise.
3090         * dcache.c (dcache_init): Likewise.
3091         * dictionary.c (dict_create_hashed): Likewise.
3092         (dict_create_hashed_expandable): Likewise.
3093         (dict_create_linear): Likewise.
3094         (dict_create_linear_expandable): Likewise.
3095         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3096         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3097         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3098         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3099         (decode_frame_entry_1): Likewise.
3100         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3101         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3102         * dwarf2read.c (dwarf2_has_info): Likewise.
3103         (create_signatured_type_table_from_index): Likewise.
3104         (dwarf2_read_index): Likewise.
3105         (dw2_get_file_names_reader): Likewise.
3106         (create_all_type_units): Likewise.
3107         (read_cutu_die_from_dwo): Likewise.
3108         (init_tu_and_read_dwo_dies): Likewise.
3109         (init_cutu_and_read_dies): Likewise.
3110         (create_all_comp_units): Likewise.
3111         (queue_comp_unit): Likewise.
3112         (inherit_abstract_dies): Likewise.
3113         (read_call_site_scope): Likewise.
3114         (dwarf2_add_field): Likewise.
3115         (dwarf2_add_typedef): Likewise.
3116         (dwarf2_add_member_fn): Likewise.
3117         (attr_to_dynamic_prop): Likewise.
3118         (abbrev_table_alloc_abbrev): Likewise.
3119         (abbrev_table_read_table): Likewise.
3120         (add_include_dir): Likewise.
3121         (add_file_name): Likewise.
3122         (dwarf_decode_line_header): Likewise.
3123         (dwarf2_const_value_attr): Likewise.
3124         (dwarf_alloc_block): Likewise.
3125         (parse_macro_definition): Likewise.
3126         (set_die_type): Likewise.
3127         (write_psymtabs_to_index): Likewise.
3128         (create_cus_from_index): Likewise.
3129         (dwarf2_create_include_psymtab): Likewise.
3130         (process_psymtab_comp_unit_reader): Likewise.
3131         (build_type_psymtab_dependencies): Likewise.
3132         (read_comp_units_from_section): Likewise.
3133         (compute_compunit_symtab_includes): Likewise.
3134         (create_dwo_unit_in_dwp_v1): Likewise.
3135         (create_dwo_unit_in_dwp_v2): Likewise.
3136         (read_func_scope): Likewise.
3137         (process_structure_scope): Likewise.
3138         (mark_common_block_symbol_computed): Likewise.
3139         (load_partial_dies): Likewise.
3140         (dwarf2_symbol_mark_computed): Likewise.
3141         * elfread.c (elf_symfile_segments): Likewise.
3142         (elf_read_minimal_symbols): Likewise.
3143         * environ.c (make_environ): Likewise.
3144         * eval.c (evaluate_subexp_standard): Likewise.
3145         * event-loop.c (create_file_handler): Likewise.
3146         (create_async_signal_handler): Likewise.
3147         (create_async_event_handler): Likewise.
3148         (create_timer): Likewise.
3149         * exec.c (build_section_table): Likewise.
3150         * fbsd-nat.c (fbsd_remember_child): Likewise.
3151         * fork-child.c (fork_inferior): Likewise.
3152         * frv-tdep.c (new_variant): Likewise.
3153         * gdbarch.sh (gdbarch_alloc): Likewise.
3154         (append_name): Likewise.
3155         * gdbtypes.c (rank_function): Likewise.
3156         (copy_type_recursive): Likewise.
3157         (add_dyn_prop): Likewise.
3158         * gnu-nat.c (make_proc): Likewise.
3159         (make_inf): Likewise.
3160         (gnu_write_inferior): Likewise.
3161         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3162         (build_std_type_info_type): Likewise.
3163         * guile/scm-param.c (compute_enum_list): Likewise.
3164         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3165         * guile/scm-value.c (gdbscm_value_call): Likewise.
3166         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3167         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3168         (read_unwind_info): Likewise.
3169         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3170         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3171         (call_function_by_hand_dummy): Likewise.
3172         * infcmd.c (step_once): Likewise.
3173         (finish_forward): Likewise.
3174         (attach_command): Likewise.
3175         (notice_new_inferior): Likewise.
3176         * inferior.c (add_inferior_silent): Likewise.
3177         * infrun.c (add_displaced_stepping_state): Likewise.
3178         (save_infcall_control_state): Likewise.
3179         (save_inferior_ptid): Likewise.
3180         (_initialize_infrun): Likewise.
3181         * jit.c (bfd_open_from_target_memory): Likewise.
3182         (jit_gdbarch_data_init): Likewise.
3183         * language.c (add_language): Likewise.
3184         * linespec.c (decode_line_2): Likewise.
3185         * linux-nat.c (add_to_pid_list): Likewise.
3186         (add_initial_lwp): Likewise.
3187         * linux-thread-db.c (add_thread_db_info): Likewise.
3188         (record_thread): Likewise.
3189         (info_auto_load_libthread_db): Likewise.
3190         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3191         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3192         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3193         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3194         * macrocmd.c (macro_define_command): Likewise.
3195         * macroexp.c (gather_arguments): Likewise.
3196         * macroscope.c (sal_macro_scope): Likewise.
3197         * macrotab.c (new_macro_table): Likewise.
3198         * mdebugread.c (push_parse_stack): Likewise.
3199         (parse_partial_symbols): Likewise.
3200         (parse_symbol): Likewise.
3201         (psymtab_to_symtab_1): Likewise.
3202         (new_block): Likewise.
3203         (new_psymtab): Likewise.
3204         (mdebug_build_psymtabs): Likewise.
3205         (add_pending): Likewise.
3206         (elfmdebug_build_psymtabs): Likewise.
3207         * mep-tdep.c (mep_gdbarch_init): Likewise.
3208         * mi/mi-main.c (mi_execute_command): Likewise.
3209         * mi/mi-parse.c (mi_parse_argv): Likewise.
3210         * minidebug.c (lzma_open): Likewise.
3211         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3212         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3213         * mips-tdep.c (mips_gdbarch_init): Likewise.
3214         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3215         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3216         * mt-tdep.c (mt_registers_info): Likewise.
3217         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3218         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3219         (linux_enable_pt): Likewise.
3220         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3221         (linux_xfer_osdata_processgroups): Likewise.
3222         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3223         * nto-procfs.c (procfs_meminfo): Likewise.
3224         * objc-lang.c (start_msglist): Likewise.
3225         (selectors_info): Likewise.
3226         (classes_info): Likewise.
3227         (find_methods): Likewise.
3228         * objfiles.c (allocate_objfile): Likewise.
3229         (update_section_map): Likewise.
3230         * osabi.c (gdbarch_register_osabi): Likewise.
3231         (gdbarch_register_osabi_sniffer): Likewise.
3232         * parse.c (start_arglist): Likewise.
3233         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3234         (hwdebug_insert_point): Likewise.
3235         * printcmd.c (display_command): Likewise.
3236         (ui_printf): Likewise.
3237         * procfs.c (create_procinfo): Likewise.
3238         (load_syscalls): Likewise.
3239         (proc_get_LDT_entry): Likewise.
3240         (proc_update_threads): Likewise.
3241         * prologue-value.c (make_pv_area): Likewise.
3242         (pv_area_store): Likewise.
3243         * psymtab.c (extend_psymbol_list): Likewise.
3244         (init_psymbol_list): Likewise.
3245         (allocate_psymtab): Likewise.
3246         * python/py-inferior.c (add_thread_object): Likewise.
3247         * python/py-param.c (compute_enum_values): Likewise.
3248         * python/py-value.c (valpy_call): Likewise.
3249         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3250         * python/python.c (ensure_python_env): Likewise.
3251         * record-btrace.c (record_btrace_start_replaying): Likewise.
3252         * record-full.c (record_full_reg_alloc): Likewise.
3253         (record_full_mem_alloc): Likewise.
3254         (record_full_end_alloc): Likewise.
3255         (record_full_core_xfer_partial): Likewise.
3256         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3257         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3258         * remote-notif.c (remote_notif_state_allocate): Likewise.
3259         * remote.c (demand_private_info): Likewise.
3260         (remote_notif_stop_alloc_reply): Likewise.
3261         (remote_enable_btrace): Likewise.
3262         * reverse.c (save_bookmark_command): Likewise.
3263         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3264         * rx-tdep.c (rx_gdbarch_init): Likewise.
3265         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3266         * ser-go32.c (dos_get_tty_state): Likewise.
3267         (dos_copy_tty_state): Likewise.
3268         * ser-mingw.c (ser_windows_open): Likewise.
3269         (ser_console_wait_handle): Likewise.
3270         (ser_console_get_tty_state): Likewise.
3271         (make_pipe_state): Likewise.
3272         (net_windows_open): Likewise.
3273         * ser-unix.c (hardwire_get_tty_state): Likewise.
3274         (hardwire_copy_tty_state): Likewise.
3275         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3276         * solib-dsbt.c (dsbt_current_sos): Likewise.
3277         (dsbt_relocate_main_executable): Likewise.
3278         * solib-frv.c (frv_current_sos): Likewise.
3279         (frv_relocate_main_executable): Likewise.
3280         * solib-spu.c (spu_bfd_fopen): Likewise.
3281         * solib-svr4.c (lm_info_read): Likewise.
3282         (svr4_copy_library_list): Likewise.
3283         (svr4_default_sos): Likewise.
3284         * source.c (find_source_lines): Likewise.
3285         (line_info): Likewise.
3286         (add_substitute_path_rule): Likewise.
3287         * spu-linux-nat.c (spu_bfd_open): Likewise.
3288         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3289         * stabsread.c (dbx_lookup_type): Likewise.
3290         (read_type): Likewise.
3291         (read_member_functions): Likewise.
3292         (read_struct_fields): Likewise.
3293         (read_baseclasses): Likewise.
3294         (read_args): Likewise.
3295         (_initialize_stabsread): Likewise.
3296         * stack.c (func_command): Likewise.
3297         * stap-probe.c (handle_stap_probe): Likewise.
3298         * symfile.c (addrs_section_sort): Likewise.
3299         (addr_info_make_relative): Likewise.
3300         (load_section_callback): Likewise.
3301         (add_symbol_file_command): Likewise.
3302         (init_filename_language_table): Likewise.
3303         * symtab.c (create_filename_seen_cache): Likewise.
3304         (sort_search_symbols_remove_dups): Likewise.
3305         (search_symbols): Likewise.
3306         * target.c (make_cleanup_restore_target_terminal): Likewise.
3307         * thread.c (new_thread): Likewise.
3308         (enable_thread_stack_temporaries): Likewise.
3309         (make_cleanup_restore_current_thread): Likewise.
3310         (thread_apply_all_command): Likewise.
3311         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3312         * top.c (gdb_readline_wrapper): Likewise.
3313         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3314         * tracepoint.c (trace_find_line_command): Likewise.
3315         (all_tracepoint_actions_and_cleanup): Likewise.
3316         (make_cleanup_restore_current_traceframe): Likewise.
3317         (get_uploaded_tp): Likewise.
3318         (get_uploaded_tsv): Likewise.
3319         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3320         (tui_alloc_win_info): Likewise.
3321         (tui_alloc_content): Likewise.
3322         (tui_add_content_elements): Likewise.
3323         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3324         (tui_set_disassem_content): Likewise.
3325         * ui-file.c (ui_file_new): Likewise.
3326         (stdio_file_new): Likewise.
3327         (tee_file_new): Likewise.
3328         * utils.c (make_cleanup_restore_integer): Likewise.
3329         (add_internal_problem_command): Likewise.
3330         * v850-tdep.c (v850_gdbarch_init): Likewise.
3331         * valops.c (find_oload_champ): Likewise.
3332         * value.c (allocate_value_lazy): Likewise.
3333         (record_latest_value): Likewise.
3334         (create_internalvar): Likewise.
3335         * varobj.c (install_variable): Likewise.
3336         (new_variable): Likewise.
3337         (new_root_variable): Likewise.
3338         (cppush): Likewise.
3339         (_initialize_varobj): Likewise.
3340         * windows-nat.c (windows_make_so): Likewise.
3341         * x86-nat.c (x86_add_process): Likewise.
3342         * xcoffread.c (arrange_linetable): Likewise.
3343         (allocate_include_entry): Likewise.
3344         (process_linenos): Likewise.
3345         (SYMBOL_DUP): Likewise.
3346         (xcoff_start_psymtab): Likewise.
3347         (xcoff_end_psymtab): Likewise.
3348         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3349         * xtensa-tdep.c (xtensa_register_type): Likewise.
3350         * gdbarch.c: Regenerate.
3351         * gdbarch.h: Regenerate.
3352
3353 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3354
3355         * infrun.c (follow_exec): Re-order operations for
3356         handling follow-exec-mode "new".
3357         (handle_inferior_event_1): Assign ecs->event_thread
3358         to the current thread.
3359         * remote.c (get_remote_arch_state): Add an assertion.
3360
3361 2015-08-26  Pedro Alves  <palves@redhat.com>
3362
3363         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3364
3365 2015-08-25  Pedro Alves  <palves@redhat.com>
3366
3367         PR gdb/18804
3368         * defs.h (maybe_quit): Declare.
3369         (QUIT): Now calls maybe_quit.
3370         * event-loop.c (clear_async_signal_handler)
3371         (async_signal_handler_is_marked): New functions.
3372         * event-loop.h (async_signal_handler_is_marked)
3373         (clear_async_signal_handler): New declarations.
3374         * remote.c (remote_check_pending_interrupt): New function.
3375         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3376         longer check whether the target is async.  If waiting for a stop
3377         reply, and a Ctrl-C as been sent to the target, offer to
3378         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3379         Otherwise do not disconnect and throw a quit.
3380         (_initialize_remote): Install remote_check_pending_interrupt as
3381         to_check_pending_interrupt.
3382         * target.c (target_check_pending_interrupt): New function.
3383         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3384         field.
3385         (target_check_pending_interrupt): New declaration.
3386         * utils.c (maybe_quit): New function.
3387         * target-delegates.c: Regenerate.
3388
3389 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3390
3391         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3392         Rename local variable pid to tid, and get lwpid of lwp.  Update
3393         debug output.
3394
3395 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3396
3397         * ada-lang.c (ada_read_var_value): Add a var_block argument
3398         and pass it to default_read_var_value.
3399         * block.c (block_static_link): New accessor.
3400         * block.h (block_static_link): Declare it.
3401         * buildsym.c (finish_block_internal): Add a static_link
3402         argument.  If there is a static link, associate it to the new
3403         block.
3404         (finish_block): Add a static link argument and pass it to
3405         finish_block_internal.
3406         (end_symtab_get_static_block): Update calls to finish_block and
3407         to finish_block_internal.
3408         (end_symtab_with_blockvector): Update call to
3409         finish_block_internal.
3410         * buildsym.h: Forward-declare struct dynamic_prop.
3411         (struct context_stack): Add a static_link field.
3412         (finish_block): Add a static link argument.
3413         * c-exp.y: Remove an obsolete comment (evaluation of variables
3414         already start from the selected frame, and now they climb *up*
3415         the call stack) and propagate the block information to the
3416         produced expression.
3417         * d-exp.y: Likewise.
3418         * f-exp.y: Likewise.
3419         * go-exp.y: Likewise.
3420         * jv-exp.y: Likewise.
3421         * m2-exp.y: Likewise.
3422         * p-exp.y: Likewise.
3423         * coffread.c (coff_symtab_read): Update calls to finish_block.
3424         * dbxread.c (process_one_symbol): Likewise.
3425         * xcoffread.c (read_xcoff_symtab): Likewise.
3426         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3427         "sym" parameter to struct block_symbol, update its uses and pass
3428         its block to calls to read_var_value.
3429         (convert_symbol_sym): Update the calls to convert_one_symbol.
3430         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3431         call to read_var_value.
3432         * dwarf2loc.c (block_op_get_frame_base): New.
3433         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3434         get_frame_base method.
3435         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3436         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3437         instead of the selected frame in order to evaluate the
3438         expression.
3439         (dwarf2_evaluate_property): Add a frame argument.  Update call
3440         to dwarf2_locexpr_baton_eval to provide a frame in available and
3441         to handle the absence of address stack.
3442         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3443         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3444         declaration.
3445         (read_func_scope): Record any available static link description.
3446         Update call to finish_block.
3447         (read_lexical_block_scope): Update call to finish_block.
3448         * findvar.c (follow_static_link): New.
3449         (get_hosting_frame): New.
3450         (default_read_var_value): Add a var_block argument.  Use
3451         get_hosting_frame to handle non-local references.
3452         (read_var_value): Add a var_block argument and pass it to the
3453         LA_READ_VAR_VALUE method.
3454         * gdbtypes.c (resolve_dynamic_range): Update calls to
3455         dwarf2_evaluate_property.
3456         (resolve_dynamic_type_internal): Likewise.
3457         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3458         read_var_value, passing it the block coming from symbol lookup.
3459         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3460         read_var_value (TODO).
3461         * infcmd.c (finish_command_continuation): Update call to
3462         read_var_value, passing it the block coming from symbol lookup.
3463         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3464         * language.h (struct language_defn): Add a var_block argument to
3465         the LA_READ_VAR_VALUE method.
3466         * objfiles.c (struct static_link_htab_entry): New.
3467         (static_link_htab_entry_hash): New.
3468         (static_link_htab_entry_eq): New.
3469         (objfile_register_static_link): New.
3470         (objfile_lookup_static_link): New.
3471         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3472         * objfiles.h: Include hashtab.h.
3473         (struct objfile): Add a static_links field.
3474         (objfile_register_static_link): New.
3475         (objfile_lookup_static_link): New.
3476         * printcmd.c (print_variable_and_value): Update call to
3477         read_var_value.
3478         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3479         * python/py-frame.c (frapy_read_var): Update call to
3480         read_var_value, passing it the block coming from symbol lookup.
3481         * python/py-framefilter.c (extract_sym): Add a sym_block
3482         parameter and set the pointed value to NULL (TODO).
3483         (enumerate_args): Update call to extract_sym.
3484         (enumerate_locals): Update calls to extract_sym and to
3485         read_var_value.
3486         * python/py-symbol.c (sympy_value): Update call to
3487         read_var_value (TODO).
3488         * stack.c (read_frame_local): Update call to read_var_value.
3489         (read_frame_arg): Likewise.
3490         (return_command): Likewise.
3491         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3492         method.
3493         (struct symbol): Add a block field.
3494         (SYMBOL_BLOCK): New accessor.
3495         * valops.c (value_of_variable): Remove frame/block handling and
3496         pass the block argument to read_var_value, which does this job
3497         now.
3498         (value_struct_elt_for_reference): Update calls to
3499         read_var_value.
3500         (value_of_this): Pass the block found to read_var_value.
3501         * value.h (read_var_value): Add a var_block argument.
3502         (default_read_var_value): Likewise.
3503
3504 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3505
3506         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3507         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3508         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3509
3510 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3511
3512         * Makefile.in (aarch64-liunx.o): New rule.
3513         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3514         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3515         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3516         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3517         extern.
3518         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3519         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3520         * nat/aarch64-linux.c: New file.
3521         * nat/aarch64-linux.h: New file.
3522
3523 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3524
3525         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3526         lwp_arch_private_info and ptid_of_lwp.
3527
3528 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3529
3530         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3531         Move it to nat/aarch64-linux-hw-point.c.
3532         (debug_reg_change_callback): Likewise.
3533         (aarch64_notify_debug_reg_change): :Likewise.
3534         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3535         (aarch64_dr_update_callback_param): New.
3536         (debug_reg_change_callback): New function.
3537         (aarch64_notify_debug_reg_change): Likewise.
3538         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3539         Remove the declaration.
3540
3541 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3542
3543         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3544         Call current_lwp_ptid.
3545
3546 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3547
3548         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3549         debug_printf.
3550
3551 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3552
3553         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3554         ptid_get_pid rather than ptid_get_lwp.
3555
3556 2015-08-24  Pedro Alves  <palves@redhat.com>
3557
3558         * NEWS (New commands): Mention set/show remote
3559         multiprocess-extensions-packet.
3560         * remote.c (remote_query_supported): Only tell the server to use
3561         the multiprocess extensions if the user hasn't force-disabled them
3562         with "set remote multiprocess-extensions-packet off".
3563
3564 2015-08-24  Pedro Alves  <palves@redhat.com>
3565
3566         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3567         1029a8112290f6eee9d7878a391c49db42c999bd.
3568         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3569         Regenerate.
3570         * gnulib/import/Makefile.am: Update.
3571         * gnulib/import/Makefile.in: Update.
3572         * gnulib/import/alloca.in.h: Update.
3573         * gnulib/import/basename-lgpl.c: Update.
3574         * gnulib/import/canonicalize-lgpl.c: Update.
3575         * gnulib/import/config.charset: Update.
3576         * gnulib/import/dirent.in.h: Update.
3577         * gnulib/import/dirfd.c: Update.
3578         * gnulib/import/dirname-lgpl.c: Update.
3579         * gnulib/import/dirname.h: Update.
3580         * gnulib/import/dosname.h: Update.
3581         * gnulib/import/errno.in.h: Update.
3582         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3583         * gnulib/import/extra/snippet/c++defs.h: Update.
3584         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3585         * gnulib/import/extra/update-copyright: Update.
3586         * gnulib/import/float+.h: Update.
3587         * gnulib/import/float.c: Update.
3588         * gnulib/import/float.in.h: Update.
3589         * gnulib/import/fnmatch.c: Update.
3590         * gnulib/import/fnmatch.in.h: Update.
3591         * gnulib/import/fnmatch_loop.c: Update.
3592         * gnulib/import/fpucw.h: Update.
3593         * gnulib/import/frexp.c: Update.
3594         * gnulib/import/frexpl.c: Update.
3595         * gnulib/import/gettimeofday.c: Update.
3596         * gnulib/import/inttypes.in.h: Update.
3597         * gnulib/import/isnan.c: Update.
3598         * gnulib/import/isnand-nolibm.h: Update.
3599         * gnulib/import/isnand.c: Update.
3600         * gnulib/import/isnanl-nolibm.h: Update.
3601         * gnulib/import/isnanl.c: Update.
3602         * gnulib/import/itold.c: Update.
3603         * gnulib/import/localcharset.c: Update.
3604         * gnulib/import/localcharset.h: Update.
3605         * gnulib/import/lstat.c: Update.
3606         * gnulib/import/m4/00gnulib.m4: Update.
3607         * gnulib/import/m4/absolute-header.m4: Update.
3608         * gnulib/import/m4/alloca.m4: Update.
3609         * gnulib/import/m4/canonicalize.m4: Update.
3610         * gnulib/import/m4/codeset.m4: Update.
3611         * gnulib/import/m4/configmake.m4: Update.
3612         * gnulib/import/m4/dirent_h.m4: Update.
3613         * gnulib/import/m4/dirfd.m4: Update.
3614         * gnulib/import/m4/dirname.m4: Update.
3615         * gnulib/import/m4/double-slash-root.m4: Update.
3616         * gnulib/import/m4/eealloc.m4: Update.
3617         * gnulib/import/m4/errno_h.m4: Update.
3618         * gnulib/import/m4/exponentd.m4: Update.
3619         * gnulib/import/m4/exponentl.m4: Update.
3620         * gnulib/import/m4/extensions.m4: Update.
3621         * gnulib/import/m4/extern-inline.m4: Update.
3622         * gnulib/import/m4/fcntl-o.m4: Update.
3623         * gnulib/import/m4/float_h.m4: Update.
3624         * gnulib/import/m4/fnmatch.m4: Update.
3625         * gnulib/import/m4/fpieee.m4: Update.
3626         * gnulib/import/m4/frexp.m4: Update.
3627         * gnulib/import/m4/frexpl.m4: Update.
3628         * gnulib/import/m4/gettimeofday.m4: Update.
3629         * gnulib/import/m4/glibc21.m4: Update.
3630         * gnulib/import/m4/gnulib-cache.m4: Update.
3631         * gnulib/import/m4/gnulib-common.m4: Update.
3632         * gnulib/import/m4/gnulib-comp.m4: Update.
3633         * gnulib/import/m4/gnulib-tool.m4: Update.
3634         * gnulib/import/m4/include_next.m4: Update.
3635         * gnulib/import/m4/inttypes-pri.m4: Update.
3636         * gnulib/import/m4/inttypes.m4: Update.
3637         * gnulib/import/m4/isnand.m4: Update.
3638         * gnulib/import/m4/isnanl.m4: Update.
3639         * gnulib/import/m4/largefile.m4: Update.
3640         * gnulib/import/m4/localcharset.m4: Update.
3641         * gnulib/import/m4/locale-fr.m4: Update.
3642         * gnulib/import/m4/locale-ja.m4: Update.
3643         * gnulib/import/m4/locale-zh.m4: Update.
3644         * gnulib/import/m4/longlong.m4: Update.
3645         * gnulib/import/m4/lstat.m4: Update.
3646         * gnulib/import/m4/malloc.m4: Update.
3647         * gnulib/import/m4/malloca.m4: Update.
3648         * gnulib/import/m4/math_h.m4: Update.
3649         * gnulib/import/m4/mbrtowc.m4: Update.
3650         * gnulib/import/m4/mbsinit.m4: Update.
3651         * gnulib/import/m4/mbsrtowcs.m4: Update.
3652         * gnulib/import/m4/mbstate_t.m4: Update.
3653         * gnulib/import/m4/memchr.m4: Update.
3654         * gnulib/import/m4/memmem.m4: Update.
3655         * gnulib/import/m4/mmap-anon.m4: Update.
3656         * gnulib/import/m4/multiarch.m4: Update.
3657         * gnulib/import/m4/nocrash.m4: Update.
3658         * gnulib/import/m4/off_t.m4: Update.
3659         * gnulib/import/m4/pathmax.m4: Update.
3660         * gnulib/import/m4/readlink.m4: Update.
3661         * gnulib/import/m4/rename.m4: Update.
3662         * gnulib/import/m4/rmdir.m4: Update.
3663         * gnulib/import/m4/ssize_t.m4: Update.
3664         * gnulib/import/m4/stat.m4: Update.
3665         * gnulib/import/m4/stdbool.m4: Update.
3666         * gnulib/import/m4/stddef_h.m4: Update.
3667         * gnulib/import/m4/stdint.m4: Update.
3668         * gnulib/import/m4/stdio_h.m4: Update.
3669         * gnulib/import/m4/stdlib_h.m4: Update.
3670         * gnulib/import/m4/string_h.m4: Update.
3671         * gnulib/import/m4/strstr.m4: Update.
3672         * gnulib/import/m4/strtok_r.m4: Update.
3673         * gnulib/import/m4/sys_socket_h.m4: Update.
3674         * gnulib/import/m4/sys_stat_h.m4: Update.
3675         * gnulib/import/m4/sys_time_h.m4: Update.
3676         * gnulib/import/m4/sys_types_h.m4: Update.
3677         * gnulib/import/m4/time_h.m4: Update.
3678         * gnulib/import/m4/unistd_h.m4: Update.
3679         * gnulib/import/m4/warn-on-use.m4: Update.
3680         * gnulib/import/m4/wchar_h.m4: Update.
3681         * gnulib/import/m4/wchar_t.m4: Update.
3682         * gnulib/import/m4/wctype_h.m4: Update.
3683         * gnulib/import/m4/wint_t.m4: Update.
3684         * gnulib/import/malloc.c: Update.
3685         * gnulib/import/malloca.c: Update.
3686         * gnulib/import/malloca.h: Update.
3687         * gnulib/import/math.in.h: Update.
3688         * gnulib/import/mbrtowc.c: Update.
3689         * gnulib/import/mbsinit.c: Update.
3690         * gnulib/import/mbsrtowcs-impl.h: Update.
3691         * gnulib/import/mbsrtowcs-state.c: Update.
3692         * gnulib/import/mbsrtowcs.c: Update.
3693         * gnulib/import/memchr.c: Update.
3694         * gnulib/import/memmem.c: Update.
3695         * gnulib/import/pathmax.h: Update.
3696         * gnulib/import/readlink.c: Update.
3697         * gnulib/import/ref-add.sin: Update.
3698         * gnulib/import/ref-del.sin: Update.
3699         * gnulib/import/rename.c: Update.
3700         * gnulib/import/rmdir.c: Update.
3701         * gnulib/import/same-inode.h: Update.
3702         * gnulib/import/stat.c: Update.
3703         * gnulib/import/stdbool.in.h: Update.
3704         * gnulib/import/stddef.in.h: Update.
3705         * gnulib/import/stdint.in.h: Update.
3706         * gnulib/import/stdio.c: Update.
3707         * gnulib/import/stdio.in.h: Update.
3708         * gnulib/import/stdlib.in.h: Update.
3709         * gnulib/import/str-two-way.h: Update.
3710         * gnulib/import/streq.h: Update.
3711         * gnulib/import/string.in.h: Update.
3712         * gnulib/import/stripslash.c: Update.
3713         * gnulib/import/strnlen1.c: Update.
3714         * gnulib/import/strnlen1.h: Update.
3715         * gnulib/import/strstr.c: Update.
3716         * gnulib/import/strtok_r.c: Update.
3717         * gnulib/import/sys_stat.in.h: Update.
3718         * gnulib/import/sys_time.in.h: Update.
3719         * gnulib/import/sys_types.in.h: Update.
3720         * gnulib/import/time.in.h: Update.
3721         * gnulib/import/unistd.in.h: Update.
3722         * gnulib/import/verify.h: Update.
3723         * gnulib/import/wchar.in.h: Update.
3724         * gnulib/import/wctype.in.h: Update.
3725         * gnulib/import/gettimeofday.c: New file.
3726         * gnulib/import/m4/absolute-header.m4: New file.
3727         * gnulib/import/m4/gettimeofday.m4: New file.
3728         * gnulib/import/m4/sys_socket_h.m4: New file.
3729         * gnulib/import/m4/sys_time_h.m4: New file.
3730         * gnulib/import/stdio.c: Delete file.
3731         * gnulib/import/sys_time.in.h: New file.
3732
3733 2015-08-24  Pedro Alves  <palves@redhat.com>
3734
3735         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3736         * common/gdb_sys_time.h: New file.
3737         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3738         * gdb_select.h: Likewise.
3739         * gdb_usleep.c: Likewise.
3740         * maint.c: Likewise.
3741         * mi/mi-main.c: Likewise.
3742         * mi/mi-parse.h: Likewise.
3743         * remote-fileio.c: Likewise.
3744         * remote-m32r-sdi.c: Likewise.
3745         * remote.c: Likewise.
3746         * ser-base.c: Likewise.
3747         * ser-pipe.c: Likewise.
3748         * ser-tcp.c: Likewise.
3749         * ser-unix.c: Likewise.
3750         * symfile.c: Likewise.
3751         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3752         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3753         * utils.c: Likewise.
3754
3755 2015-08-24  Pedro Alves  <palves@redhat.com>
3756
3757         * NEWS: Mention removed support for the various ROM monitors.
3758         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3759         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3760         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3761         gdb_target_obs.
3762         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3763         gdb_target_obs.
3764         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3765         dsrec.o from gdb_target_obs.
3766         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3767         from gdb_target_obs.
3768         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3769         gdb_target_obs.
3770         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3771         dink32-rom.o from gdb_target_obs.
3772         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3773         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3774         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3775         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3776
3777 2015-08-21  Pedro Alves  <palves@redhat.com>
3778
3779         * frame.c (null_frame_id): Explicitly zero-initialize.
3780
3781 2015-08-21  Tom Tromey  <tromey@redhat.com>
3782
3783         * dwarf2read.c (struct dwarf2_section_info): Rename field
3784         'asection' to 'section'.
3785         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3786         (dwarf2_locate_sections, dwarf2_locate_sections)
3787         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3788         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3789         (dwarf2_locate_v2_dwp_sections): Adjust.
3790
3791 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3792
3793         * top.h (gdb_in_secondary_prompt_p): Declare.
3794         * top.c (gdb_secondary_prompt_depth): Define.
3795         (gdb_in_secondary_prompt_p): Define.
3796         (gdb_readline_wrapper_cleanup): Decrement
3797         gdb_secondary_prompt_depth.
3798         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3799         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3800         are in a secondary prompt.
3801
3802 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3803
3804         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3805         emit the newline.
3806
3807 2015-08-21  Gary Benson  <gbenson@redhat.com>
3808
3809         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3810
3811 2015-08-21  Gary Benson  <gbenson@redhat.com>
3812
3813         * target.h (struct target_ops) <to_fileio_open>: New argument
3814         warn_if_slow.  Update comment.  All implementations updated.
3815         (target_fileio_open_warn_if_slow): New declaration.
3816         * target.c (target_fileio_open): Renamed as...
3817         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3818         Pass warn_if_slow to implementation.  Update debug printing.
3819         (target_fileio_open): New function.
3820         (target_fileio_open_warn_if_slow): Likewise.
3821         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3822         target_fileio_open_warn_if_slow.
3823
3824 2015-08-21  Gary Benson  <gbenson@redhat.com>
3825
3826         * nat/linux-namespaces.c (linux_mntns_access_fs):
3827         Do not overwrite old_chain.
3828
3829 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3830
3831         * arch/xtensa.h: New file.
3832         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3833         (ps_get_thread_area): New function.
3834         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3835         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3836         * xtensa-tdep.c (osabi.h): New #include.
3837         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3838         xtensa-specific hooks.
3839         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3840         member and move the structure to arch/xtensa.h.
3841
3842 2015-08-21  Pedro Alves  <palves@redhat.com>
3843
3844         * remote.c (struct readahead_cache): New.
3845         (struct remote_state) <readahead_cache>: New field.
3846         (remote_open_1): Invalidate the cache.
3847         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3848         functions.
3849         (remote_hostio_pwrite): Invalidate the readahead cache.
3850         (remote_hostio_pread): Rename to ...
3851         (remote_hostio_pread_vFile): ... this.
3852         (remote_hostio_pread_from_cache): New function.
3853         (remote_hostio_pread): Reimplement.
3854         (remote_hostio_close): Invalidate the readahead cache.
3855
3856 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3857
3858         PR build/18843
3859         * procfs.c: Include "filestuff.h".
3860
3861 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3862
3863         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3864         curch.
3865         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3866         cur_line or curch, instead call wmove().
3867         (init_win_info) [CMD_WIN]: Likewise.
3868         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3869         instead call getcury().
3870         (tui_redisplay_readline): Don't set cur_line or curch.
3871         (tui_mld_erase_entire_line): Don't read cur_line, instead call
3872         getcury().
3873         (tui_cont_sig): Remove call to wmove.
3874         (tui_getc): Don't read cur_line or curch, instead call getcury()
3875         or getyx().  Don't set curch.
3876         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3877         set cur_line or curch.  Always move cursor to (0,0).
3878
3879 2015-08-20  Pedro Alves  <palves@redhat.com>
3880
3881         * infrun.c (print_target_wait_results): Make extern.
3882         * infrun.h (print_target_wait_results): Declare.
3883         * remote.c (set_stop_requested_callback): Delete.
3884         (process_initial_stop_replies): New function.
3885         (remote_start_remote): Use it.
3886         (stop_reply_queue_length): New function.
3887
3888 2015-08-20  Pedro Alves  <palves@redhat.com>
3889
3890         * dwarf2read.c (process_full_comp_unit): To tell whether
3891         start_subfile managed to deduce a language, test for
3892         language_unknown instead of language_c.
3893
3894 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
3895
3896         * ada-lex.l: Reset the start condition to INITIAL in the rule that
3897         matches attributes.
3898
3899 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
3900
3901         * dwarf2read.c (dwarf2_string_attr): New function.
3902         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3903         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3904         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3905         (anonymous_struct_prefix, prepare_one_comp_unit): Use
3906         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3907
3908 2015-08-18  Doug Evans  <dje@google.com>
3909             Adrian Sendroiu <adrian.sendroiu@freescale.com>
3910
3911         PR mi/18833
3912         * cli/cli-logging.c (pop_output_files): Don't restore redirection
3913         if MI-like.
3914         * mi/mi-out.c: #include "vec.h".
3915         (ui_filep): New type.
3916         (DEV_VEC_P (ui_filep)): New type.
3917         (struct ui_out_data) <buffer, original_buffer>: Delete.
3918         (struct ui_out_data) <streams>: New member.
3919         (mi_ui_out_impl): Add data_destroy field.
3920         (mi_field_string, mi_field_fmt): Update.
3921         (mi_flush, mi_redirect, field_separator): Update.
3922         (mi_open, mi_close): Update.
3923         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3924         (mi_out_data_ctor, mi_out_data_dtor): New functions.
3925         (mi_out_new): Call mi_out_data_ctor.
3926
3927 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
3928
3929         * remote.c (strprefix): New.
3930         (remote_parse_stop_reply): Use strprefix instead of strncmp
3931         to ensure exact match of keyword.
3932
3933 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3934
3935         * gdb_bfd.c (debug_bfd_cache): New variable.
3936         (show_bfd_cache_debug): New function.
3937         (gdb_bfd_open): Add debug logging.
3938         (gdb_bfd_ref): Likewise.
3939         (gdb_bfd_unref): Likewise.
3940         (_initialize_gdb_bfd): Add new set/show command.
3941         * NEWS: Mention new command.
3942
3943 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3944
3945         * gdb_bfd.c (bfd_sharing): New variable.
3946         (show_bfd_sharing): New function.
3947         (gdb_bfd_open): Check bfd_sharing variable.
3948         (_initialize_gdb_bfd): Add new set/show command.
3949         * NEWS: Mention new command.
3950
3951 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3952
3953         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3954         field.
3955         (struct gdb_bfd_cache_search): Likewise.
3956         (eq_bfd): Compare the size, inode, and device id fields.
3957         (gdb_bfd_open): Initialise the size, inode, and device id fields.
3958         (gdb_bfd_ref): Likewise.
3959         (gdb_bfd_unref): Likewise.
3960
3961 2015-08-18  Pedro Alves  <palves@redhat.com>
3962
3963         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3964         target implements to_always_non_stop_p, call it.
3965         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3966         (x86_linux_create_target): Install it as to_always_non_stop_p
3967         method.
3968
3969 2015-08-17  Doug Evans  <dje@google.com>
3970
3971         * ui-out.c (default_ui_out_impl): Add comment.
3972
3973 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
3974
3975         * d-exp.y (type_aggregate_p): New function.
3976         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3977         (classify_inner_name): Likewise.
3978         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3979
3980 2015-08-15  Doug Evans  <xdje42@gmail.com>
3981
3982         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
3983         updated.
3984         (add_psymbol_to_list): Ditto.
3985
3986 2015-08-15  Doug Evans  <xdje42@gmail.com>
3987
3988         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
3989         updated.  Call end_psymtab_common.
3990         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3991         end_psymtab_common.
3992         (build_type_psymtabs_reader): Ditto.
3993         * psympriv.h (sort_pst_symbols): Delete.
3994         (end_psymtab_common): Declare.
3995         * psymtab.c (sort_pst_symbols): Make static.
3996         (end_psymtab_common): New function.
3997         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3998
3999 2015-08-15  Doug Evans  <xdje42@gmail.com>
4000
4001         * defs.h (LANGUAGE_BITS): Define.
4002         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4003         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4004         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4005         (minimal_symbol_type): Add nr_minsym_types.
4006         (MINSYM_TYPE_BITS): Define.
4007         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4008         (domain_enum_tag): Add NR_DOMAINS.
4009         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4010         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4011
4012 2015-08-15  Doug Evans  <xdje42@gmail.com>
4013
4014         * objfiles.h: Whitespace cleanup.
4015         * psympriv.h: Whitespace cleanup.
4016         * psymtab.c: Whitespace/coding convention cleanup.
4017
4018 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4019
4020         * inferior.c (detach_inferior_command): Don't call
4021         any_thread_of_process when pid is 0.
4022         (kill_inferior_command): Likewise.
4023
4024 2015-08-14  Doug Evans  <xdje42@gmail.com>
4025
4026         PR gdb/11833
4027         * NEWS: Document new /s modifier for the disassemble command.
4028         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4029         (_initialize_cli_cmds): Update online docs of disassemble command.
4030         * disasm.c: #include "source.h".
4031         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4032         All uses updated.
4033         (dis_line_entry): New struct.
4034         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4035         (allocate_dis_line_table): New functions.
4036         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4037         (dump_insns): New arg end_pc.  All callers updated.
4038         (do_mixed_source_and_assembly_deprecated): Renamed from
4039         do_mixed_source_and_assembly.  All callers updated.
4040         (do_mixed_source_and_assembly): New function.
4041         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4042         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4043         DISASSEMBLY_SOURCE.  All uses updated.
4044         (DISASSEMBLY_SOURCE): New macro.
4045         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4046
4047 2015-08-14  Keith Seitz  <keiths@redhat.com>
4048
4049         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4050         `typename' to `type_name' to avoid C++ reserved word.
4051
4052 2015-08-14  Keith Seitz  <keiths@redhat.com>
4053
4054         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4055         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4056         silence ARI errors.
4057
4058 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4059
4060         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4061         xstrprintf instead of malloc and sprintf.
4062         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4063         (lex_one_token): Likewise.
4064
4065 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4066
4067         * solib-svr4.c (read_program_header): Add base_addr argument to
4068         report the runtime address of the segment.
4069         (find_program_interpreter): Update read_program_header call to pass
4070         a NULL pointer for the new argument.
4071         (scan_dyntag): Add ptr_addr argument to report the runtime address
4072         of the tag payload.
4073         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4074         read_program_header to get the base address of the dynamic segment.
4075         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4076         read_program_header.
4077         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4078
4079 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4080
4081         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4082
4083 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4084
4085         * d-exp.y (%union): Add voidval.
4086         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4087         name in the lexing stage.
4088         (PostfixExpression): Move symbol completion handling in grammar here
4089         from PrimaryExpression.
4090         (PrimaryExpression): Move routines to handle resolving identifier
4091         tokens in the grammar here from push_expression_name.
4092         (IdentifierExp): Remove the handling of alternating '.' and identifier
4093         tokens.
4094         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4095         (BasicType): Remove C-style typename rules.
4096         (d_type_from_name, d_module_from_name, push_variable)
4097         (push_fieldnames, push_type_name, push_module_name)
4098         (push_expression_name): Remove.
4099         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4100         (token_and_value): New type.
4101         (token_fifo, popping, name_obstack): New globals.
4102         (classify_name): New function.
4103         (classify_inner_name): Likewise.
4104         (yylex): Likewise.
4105         (d_parse): Initialize token_fifo, popping and name_obstack.
4106
4107 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4108
4109         * Makefile.in (SFILES): Add d-namespace.c.
4110         (COMMON_OBS): Add d-namespace.o.
4111         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4112         la_lookup_symbol_nonlocal callback function pointer.
4113         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4114         (d_lookup_nested_symbol): New declaration.
4115         * d-namespace.c: New file.
4116
4117 2015-08-13  Pedro Alves  <palves@redhat.com>
4118
4119         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4120         cleanup after the decref cleanup, not before.
4121
4122 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4123
4124         * ada-lang.c: Include namespace.h
4125         (aux_add_nonlocal_symbols): Fix a function name in comment.
4126         (ada_add_block_renamings): New.
4127         (add_nonlocal_symbols): Add global renamings handling.
4128         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4129         to...
4130         (ada_add_all_symbols): ... this new function.
4131         (ada_add_block_symbols): Try to match the input name against the
4132         "using directives list", perform a recursive symbol lookup on
4133         the matched declarations.
4134         * block.h (struct block): Move the_namespace to top-level as
4135         namespace_info. Remove the language_specific field.
4136         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4137         * buildsym.h (using_directives): Rename into...
4138         (local_using_directives): ... this.
4139         (global_using_directives): New.
4140         (struct context_stack): Rename the using_directives field into
4141         local_using_directives.
4142         * buildsym.c (finish_block_internal): Deal with the proper
4143         using directives repository (local or global).
4144         (prepare_for_building): Reset local_using_directives. Assert
4145         that there is no pending global using directive.
4146         (reset_symtab_globals): Reset global_using_directives and
4147         local_using_directives.
4148         (end_symtab_get_static_block): Don't ignore symtabs that have
4149         only using directives.
4150         (push_context): Update references to local_using_directives.
4151         (buildsym_init): Do not reset using_directives.
4152         * cp-support.c: Include namespace.h.
4153         * cp-support.h (struct using_direct): Move to namespace.h.
4154         (cp_add_using_directives): Move to namespace.h.
4155         * cp-namespace.c: Include namespace.h
4156         (cp_add_using_directive): Move to namespace.c, rename it to
4157         add_using_directive, add a "using_directives" argument and use
4158         it as the pending using directives repository.  All callers
4159         updated.
4160         * dwarf2read.c (using_directives): New.
4161         (read_import_statement): Call using_directives.
4162         (read_func_scope): Update references to local_using_directives.
4163         (read_lexical_block_scope): Likewise.
4164         (read_namespace): Update the heading comment, call
4165         using_directives.
4166         * namespace.h: New file.
4167         * namespace.c: New file.
4168         * Makefile.in (SFILES): Add namespace.c.
4169         (COMMON_OBS): Add namespace.o
4170
4171 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4172
4173         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4174         compute RETADDR.
4175
4176 2015-08-12  Keith Seitz  <keiths@redhat.com>
4177
4178         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4179         reserved C++ keyword "explicit" to "explicit_loc".
4180         * breakpoint.c (create_overlay_event_breakpoint)
4181         (create_longjmp_master_breakpoint)
4182         (create_std_terminate_master_breakpoint)
4183         (create_exception_master_breakpoint, update_static_tracepoint):
4184         Rename reserved C++ keyword "explicit" to "explicit_loc".
4185         * completer.c (collect_explicit_location_matches)
4186         (explicit_location_completer): Rename reserved C++ keyword
4187         "explicit" to "explicit_loc".
4188         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4189         (canonicalize_linespec, create_sals_line_offset)
4190         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4191         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4192         "explicit" to "explicit_loc".
4193         * location.c (struct event_location) <explicit>: Rename to
4194         "explicit_loc".
4195         (initialize_explicit_location, new_explicit_location)
4196         (explicit_location_to_string_internal, explicit_location_to_linespec):
4197         Rename reserved C++ keyword "explicit" to "explicit_loc".
4198         * location.h (explicit_location_to_string)
4199         (explicit_location_to_linespec, initialize_explicit_location)
4200         (new_explicit_location): Rename reserved C++ keyword "explicit"
4201         to "explicit_loc".
4202         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4203         keyword "explicit" to "explicit_loc".
4204
4205 2015-08-12  Keith Seitz  <keiths@redhat.com>
4206
4207         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4208         and only call decode_line_1 when it is non-NULL.
4209
4210 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4211
4212         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4213         location address is not meaningful.
4214         (breakpoint_address_is_meaningful): Update comment.
4215
4216 2015-08-11  Keith Seitz  <keiths@redhat.com>
4217
4218         * NEWS: Mention explicit locations.
4219         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4220         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4221         (_initialize_breakpoint): Update documentation for
4222         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4223
4224 2015-08-11  Keith Seitz  <keiths@redhat.com>
4225
4226         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4227         explicit locations, options "--source", "--function",
4228         "--label", and "--line".
4229
4230 2015-08-11  Keith Seitz  <keiths@redhat.com>
4231
4232         * completer.c: Include location.h.
4233         (enum match_type): New enum.
4234         (location_completer): Rename to ...
4235         (linespec_completer): ... this.
4236         (collect_explicit_location_matches, backup_text_ptr)
4237         (explicit_location_completer): New functions.
4238         (location_completer): "New" function; handle linespec
4239         and explicit location completions.
4240         (complete_line_internal): Remove all location completer-specific
4241         handling.
4242         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4243         (find_toplevel_char): Export.
4244         (linespec_parse_line_offset): Export.
4245         Issue error if STRING is not numerical.
4246         (gdb_get_linespec_parser_quote_characters): New function.
4247         * linespec.h (linespec_parse_line_offset): Declare.
4248         (get_gdb_linespec_parser_quote_characters): Declare.
4249         (is_ada_operator): Declare.
4250         (find_toplevel_char): Declare.
4251         (linespec_lexer_lex_keyword): Declare.
4252         * location.c (explicit_to_event_location): New function.
4253         (explicit_location_lex_one): New function.
4254         (string_to_explicit_location): New function.
4255         (string_to_event_location): Handle explicit locations.
4256         * location.h (explicit_to_event_location): Declare.
4257         (string_to_explicit_location): Declare.
4258
4259 2015-08-11  Keith Seitz  <keiths@redhat.com>
4260
4261         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4262         linespec into explicit location.
4263         * breakpoint.c (create_overlay_breakpoint)
4264         (create_longjmp_master_breakpoint)
4265         (create_std_terminate_master_breakpoint)
4266         (create_exception_master_breakpoint): Convert linespec into explicit
4267         location.
4268         (update_static_tracepoint): Convert linespec into explicit location.
4269         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4270         location.h.
4271         (struct linespec) <expression, expr_pc, source_filename>
4272         <function_name, label_name, line_offset>: Replace with ...
4273         <explicit>: ... this.
4274         <is_linespec>: New member.
4275         (PARSER_EXPLICIT): New accessor macro.
4276         (undefined_label_error): New function.
4277         (source_file_not_found_error): New function.
4278         (linespec_parse_basic): The parser result is now an explicit location.
4279         Use PARSER_EXPLICIT to access it.
4280         Use undefined_label_error.
4281         (canonicalize_linespec): Convert canonical linespec into explicit
4282         location.
4283         Move string representation of location to explicit_location_to_linespec
4284         and use it and explicit_location_to_string to save string
4285         representations of the canonical location.
4286         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4287         explicit location.  Update all references.
4288         (convert_explicit_location_to_sals): New function.
4289         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4290         result's explicit location.
4291         (linespec_state_constructor): Initialize is_linespec.
4292         Use PARSER_EXPLICIT.
4293         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4294         result.
4295         (event_location_to_sals): For linespec locations, set is_linespec.
4296         Handle explicit locations.
4297         (decode_objc): 'ls' contains an explicit location now. Update all
4298         references.
4299         (symtabs_from_filename): Use source_file_not_found_error.
4300         * location.c (struct event_location.u) <explicit>: New member.
4301         (initialize_explicit_location): New function.
4302         (initialize_event_location): Initialize explicit locations.
4303         (new_explicit_location, get_explicit_location)
4304         (get_explicit_location_const): New functions.
4305         (explicit_to_string_internal): New function; most of contents moved
4306         from canonicalize_linespec.
4307         (explicit_location_to_string): New function.
4308         (explicit_location_to_linespec): New function.
4309         (copy_event_location, delete_event_location)
4310         (event_location_to_string_const, event_location_empty_p): Handle
4311         explicit locations.
4312         * location.h (enum offset_relative_sign, struct line_offset): Move
4313         here from linespec.h.
4314         (enum event_location_type): Add EXPLICIT_LOCATION.
4315         (struct explicit_location): New structure.
4316         (explicit_location_to_string): Declare.
4317         (explicit_location_to_linespec): Declare.
4318         (new_explicit_location, get_explicit_locationp
4319         (get_explicit_location_const, initialize_explicit_location): Declare.
4320
4321 2015-08-11  Keith Seitz  <keiths@redhat.com>
4322
4323         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4324         linespec for stap probe to probe location.
4325         * breakpoint.c (create_longjmp_master_breakpoint)
4326         (create_exception_master_breakpoint): Likewise.
4327         (break_command_1): Remove local variable `arg_cp'.
4328         Check location type to set appropriate breakpoint ops methods.
4329         (trace_command): Likewise.
4330         * linespec.c (event_location_to_sals): Assert on probe locations.
4331         * location.c (EL_PROBE): Add macro definition.
4332         (new_probe_location, get_probe_location): New functions.
4333         (copy_event_location, delete_event_location, event_location_to_string)
4334         (string_to_event_location, event_location_empty_p): Handle probe
4335         locations.
4336         * location.h (enum event_location_type): Add PROBE_LOCATION.
4337         (new_probe_location, get_probe_location): Declare.
4338         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4339         Convert linespec into probe location.
4340
4341 2015-08-11  Keith Seitz  <keiths@redhat.com>
4342
4343         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4344         Convert linespec to address location.
4345         * linespec.c (canonicalize_linespec): Do not handle address
4346         locations here.
4347         (convert_address_location_to_sals): New function; contents moved
4348         from ...
4349         (convert_linespc_to_sals): ... here.
4350         (parse_linespec): Remove address locations from linespec grammar.
4351         Remove handling of address locations.
4352         (linespec_lex_to_end): Remove handling of address linespecs.
4353         (event_location_to_sals): Handle ADDRESS_LOCATION.
4354         (linespec_expression_to_pc): Export.
4355         * linespec.h (linespec_expression_to_pc): Add declaration.
4356         * location.c (struct event_location.u) <address>: New member.
4357         (new_address_location, get_address_location): New functions.
4358         (copy_event_location, delete_event_location, event_location_to_string)
4359         (string_to_event_location, event_location_empty_p): Handle address
4360         locations.
4361         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4362         (new_address_location, get_address_location): Declare.
4363         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4364         to address location.
4365         * spu-tdep.c (spu_catch_start): Likewise.
4366
4367 2015-08-11  Keith Seitz  <keiths@redhat.com>
4368
4369         * ax-gdb.c: Include location.h.
4370         (agent_command_1) Use linespec location instead of address
4371         string.
4372         * break-catch-throw.c: Include location.h.
4373         (re_set_exception_catchpoint): Use linespec locations instead
4374         of address strings.
4375         * breakpoint.c: Include location.h.
4376         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4377         (create_std_terminate_master_breakpoint)
4378         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4379         Use linespec location instead of address string.
4380         (print_breakpoint_location):  Use locations and
4381         event_location_to_string.
4382         Print extra_string for pending locations for non-MI streams.
4383         (print_one_breakpoint_location): Use locations and
4384         event_location_to_string.
4385         (init_raw_breakpoint_without_location): Initialize b->location.
4386         (create_thread_event_breakpoint): Use linespec location instead of
4387         address string.
4388         (init_breakpoint_sal): Likewise.
4389         Only save extra_string if it is non-NULL and not the empty string.
4390         Use event_location_to_string instead of `addr_string'.
4391         Constify `p' and `endp'.
4392         Use skip_spaces_const/skip_space_const instead of non-const versions.
4393         Copy the location into the breakpoint.
4394         If LOCATION is NULL, save the breakpoint address as a linespec location
4395         instead of an address string.
4396         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4397         event_location. All uses updated.
4398         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4399         (parse_breakpoint_sals): Use locations instead of address strings.
4400         Remove check for empty linespec with conditional.
4401         Refactor.
4402         (decode_static_tracepoint_spec): Make argument const and update
4403         function.
4404         (create_breakpoint): Change `arg' to a struct event_location and
4405         rename.
4406         Remove `copy_arg' and `addr_start'.
4407         If EXTRA_STRING is empty, set it to NULL.
4408         Don't populate `canonical' for pending breakpoints.
4409         Pass `extra_string' to find_condition_and_thread.
4410         Clear `extra_string' if `rest' was NULL.
4411         Do not error with "garbage after location" if setting a dprintf
4412         breakpoint.
4413         Copy the location into the breakpoint instead of an address string.
4414         (break_command_1): Use string_to_event_location and pass this to
4415         create_breakpoint instead of an address string.
4416         Check against `arg_cp' for a probe linespec.
4417         (dprintf_command): Use string_to_event_location and pass this to
4418         create_breakpoint instead of an address string.
4419         Throw an exception if no format string was specified.
4420         (print_recreate_ranged_breakpoint): Use event_location_to_string
4421         instead of address strings.
4422         (break_range_command, until_break_command)
4423         (init_ada_exception_breakpoint): Use locations instead
4424         of address strings.
4425         (say_where): Print out extra_string for pending locations.
4426         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4427         the breakpoint.
4428         (base_breakpoint_create_sals_from_location): Use struct event_location
4429         instead of address string.
4430         Remove `addr_start' and `copy_arg' parameters.
4431         (base_breakpoint_decode_location): Use struct event_location instead of
4432         address string.
4433         (bkpt_re_set): Use locations instead of address strings.
4434         Use event_location_empty_p to check for unset location.
4435         (bkpt_print_recreate): Use event_location_to_string instead of
4436         an address string.
4437         Print out extra_string for pending locations.
4438         (bkpt_create_sals_from_location, bkpt_decode_location)
4439         (bkpt_probe_create_sals_from_location): Use struct event_location
4440         instead of address string.
4441         (bkpt_probe_decode_location): Use struct event_location instead of
4442         address string.
4443         (tracepoint_print_recreate): Use event_location_to_string to
4444         recreate the tracepoint.
4445         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4446         (tracepoint_probe_create_sals_from_location)
4447         (tracepoint_probe_decode_location): Use struct event_location
4448         instead of address string.
4449         (dprintf_print_recreate): Use event_location_to_string to recreate
4450         the dprintf.
4451         (dprintf_re_set): Remove check for valid/missing format string.
4452         (strace_marker_create_sals_from_location)
4453         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4454         (update_static_tracepoint): Use struct event_location instead of
4455         address string.
4456         (location_to_sals): Likewise.
4457         Pass `extra_string' to find_condition_and_thread.
4458         For newly resolved pending breakpoint locations, clear the location's
4459         string representation.
4460         Assert that the breakpoint's condition string is NULL when
4461         condition_not_parsed.
4462         (breakpoint_re_set_default, create_sals_from_location_default)
4463         (decode_location_default, trace_command, ftrace_command)
4464         (strace_command, create_tracepoint_from_upload): Use locations
4465         instead of address strings.
4466         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4467         Use struct event_location instead of address string.
4468         Update all uses.
4469         <decode_location>: Likewise.
4470         (struct breakpoint) <addr_string>: Change to struct event_location
4471         and rename `location'.
4472         <addr_string_range_end>: Change to struct event_location and rename
4473         `location_range_end'.
4474         (create_breakpoint): Use struct event_location instead of address
4475         string.
4476         * cli/cli-cmds.c: Include location.h.
4477         (edit_command, list_command): Use locations instead of address strings.
4478         * elfread.c: Include location.h.
4479         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4480         * guile/scm-breakpoint.c: Include location.h.
4481         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4482         (gdbscm_register_breakpoint): Use locations instead of address
4483         strings.
4484         * linespec.c: Include location.h.
4485         (struct ls_parser) <stream>: Change to const char *.
4486         (PARSER_STREAM): Update.
4487         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4488         keywords must be followed by whitespace.
4489         (canonicalize_linespec): Save a linespec location into `canonical'.
4490         Save a canonical linespec into `canonical'.
4491         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4492         All uses updated.
4493         Update function description.
4494         (linespec_parser_new): Initialize `parser'.
4495         Update initialization of  parsing stream.
4496         (event_location_to_sals): New function.
4497         (decode_line_full): Change `argptr' to a struct event_location and
4498         rename it `location'.
4499         Use locations instead of address strings.
4500         Call event_location_to_sals instead of parse_linespec.
4501         (decode_line_1): Likewise.
4502         (decode_line_with_current_source, decode_line_with_last_displayed)
4503         Use locations instead of address strings.
4504         (decode_objc): Likewise.
4505         Change `argptr' to const char * and rename `arg'.
4506         (destroy_linespec_result): Delete the linespec result's location
4507         instead of freeing the address string.
4508         * linespec.h (struct linespec_result) <addr_string>: Change to
4509         struct event_location and rename to ...
4510         <location>: ... this.
4511         (decode_line_1, decode_line_full): Change `argptr' to struct
4512         event_location.  All callers updated.
4513         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4514         (mi_cmd_break_insert_1): Use locations instead of address strings.
4515         Throw an error if there was "garbage" at the end of the specified
4516         linespec.
4517         * probe.c: Include location.h.
4518         (parse_probes): Change `argptr' to struct event_location.
4519         Use event locations instead of address strings.
4520         * probe.h (parse_probes): Change `argptr' to struct event_location.
4521         * python/py-breakpoint.c: Include location.h.
4522         (bppy_get_location): Constify local variable `str'.
4523         Use event_location_to_string.
4524         (bppy_init): Use locations instead of address strings.
4525         * python/py-finishbreakpoint.c: Include location.h.
4526         (bpfinishpy_init): Remove local variable `addr_str'.
4527         Use locations instead of address strings.
4528         * python/python.c: Include location.h.
4529         (gdbpy_decode_line): Use locations instead of address strings.
4530         * remote.c: Include location.h.
4531         (remote_download_tracepoint): Use locations instead of address
4532         strings.
4533         * spu-tdep.c: Include location.h.
4534         (spu_catch_start): Remove local variable `buf'.
4535         Use locations instead of address strings.
4536         * tracepoint.c: Include location.h.
4537         (scope_info): Use locations instead of address strings.
4538         (encode_source_string): Constify parameter `src'.
4539         * tracepoint.h (encode_source_string): Likewise.
4540
4541 2015-08-11  Keith Seitz  <keiths@redhat.com>
4542
4543         * Makefile.in (SFILES): Add location.c.
4544         (HFILES_NO_SRCDIR): Add location.h.
4545         (COMMON_OBS): Add location.o.
4546         * linespec.c (linespec_lex_to_end): New function.
4547         * linespec.h (linespec_lex_to_end): Declare.
4548         * location.c: New file.
4549         * location.h: New file.
4550
4551 2015-08-11  Keith Seitz  <keiths@redhat.com>
4552
4553         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4554         Renamed to create_sals_from_location.
4555         <decode_linespec>: Renamed to decode_location.
4556         Update all callers.
4557         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4558         (create_sals_from_location_default): ... this.
4559         (addr_string_to_sals): Renamed to ...
4560         (location_to_sals): ... this.
4561         (decode_linespec_default): Renamed to ...
4562         (decode_location_default): ... this.
4563         (base_breakpoint_create_sals_from_address): Renamed to ...
4564         (base_breakpoint_create_sals_from_location): ... this.
4565         (bkpt_create_sals_from_address): Renamed to ...
4566         (bkpt_create_sals_from_location): ... this.
4567         (bkpt_decode_linespec): Renamed to ...
4568         (bkpt_decode_location): ... this.
4569         (bkpt_probe_create_sals_from_address): Renamed to ...
4570         (bkpt_probe_create_sals_from_location): ... this.
4571         (tracepoint_create_sals_from_address): Renamed to ...
4572         (tracepoint_create_sals_from_location): ... this.
4573         (tracepoint_decode_linespec): Renamed to ...
4574         (tracepoint_decode_location): ... this.
4575         (tracepoint_probe_create_sals_from_address): Renamed to ...
4576         (tracepoint_probe_create_sals_from_location): ... this.
4577         (tracepoint_probe_decode_linespec): Renamed to ...
4578         (tracepoint_probe_decode_location): ... this.
4579         (strace_marker_create_sals_from_address): Renamed to ...
4580         (strace_marker_create_sals_from_location): ... this.
4581         (decode_linespec_default): Renamed to ...
4582         (decode_location_default): ... this.
4583
4584 2015-08-10  Doug Evans  <dje@google.com>
4585             Keith Seitz  <keiths@redhat.com>
4586
4587         PR gdb/17960
4588         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4589         make_file_symbol_completion_list and made static.
4590         (make_file_symbol_completion_list): New function.
4591
4592 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4593
4594         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4595         trailing new-line at end of warning message.
4596         (proceed): Add i18n marker to error messages.
4597
4598 2015-08-07  Pedro Alves  <palves@redhat.com>
4599
4600         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4601
4602 2015-08-07  Pedro Alves  <palves@redhat.com>
4603
4604         * s390-linux-tdep.c (is_non_branch_ril)
4605         (s390_displaced_step_copy_insn): New functions.
4606         (s390_displaced_step_fixup): Update comment.
4607         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4608         gdbarch_displaced_step_copy_insn hook.
4609
4610 2015-08-07  Pedro Alves  <palves@redhat.com>
4611
4612         * infrun.c (displaced_step_prepare_throw): Return -1 if
4613         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4614         comment.
4615         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4616         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4617         in file.
4618         (ppc_displaced_step_copy_insn): New function.
4619         (ppc_displaced_step_fixup): Update comment.
4620         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4621         gdbarch_displaced_step_copy_insn hook.
4622         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4623         NULL return.
4624         * gdbarch.h: Regenerate.
4625
4626 2015-08-07  Pedro Alves  <palves@redhat.com>
4627
4628         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4629         field.
4630         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4631         Return false if dispaced stepping failed before.
4632         (resume): Pass the current inferior to
4633         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4634         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4635         displaced_stepping_failed flag, and fall back to an in-line
4636         step-over.
4637
4638 2015-08-07  Pedro Alves  <palves@redhat.com>
4639
4640         * darwin-nat.c (darwin_stop): Rename to ...
4641         (darwin_interrupt): ... this.
4642         (_initialize_darwin_inferior): Adjust.
4643         * gnu-nat.c (gnu_stop): Delete.
4644         (gnu_target): Don't install gnu_stop.
4645         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4646         (inf_ptrace_interrupt): ... this.
4647         (inf_ptrace_target): Adjust.
4648         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4649         target_stop.
4650         * linux-nat (linux_nat_stop): Rename to ...
4651         (linux_nat_interrupt): ... this.
4652         (linux_nat_stop): Reimplement.
4653         (linux_nat_add_target): Install linux_nat_interrupt.
4654         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4655         (nto_handle_sigint_twice): ... this.
4656         (nto_interrupt): Rename to ...
4657         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4658         target_stop.
4659         (procfs_wait): Adjust.
4660         (procfs_stop): Rename to ...
4661         (procfs_interrupt): ... this.
4662         (init_procfs_targets): Adjust.
4663         * procfs.c (procfs_stop): Rename to ...
4664         (procfs_interrupt): ... this.
4665         (procfs_target): Adjust.
4666         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4667         (m32r_interrupt): ... this.
4668         (init_m32r_ops): Adjust.
4669         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4670         (gdbsim_interrupt_inferior): ... this.
4671         (gdbsim_stop): Rename to ...
4672         (gdbsim_interrupt): ... this.
4673         (gdbsim_cntrl_c): Adjust.
4674         (init_gdbsim_ops): Adjust.
4675         * remote.c (sync_remote_interrupt): Adjust comments.
4676         (remote_stop_as): Rename to ...
4677         (remote_interrupt_as): ... this.
4678         (remote_stop): Adjust comment.
4679         (remote_interrupt): New function.
4680         (init_remote_ops): Install remote_interrupt.
4681         * target.c (target_interrupt): New function.
4682         * target.h (struct target_ops) <to_interrupt>: New field.
4683         (target_interrupt): New declaration.
4684         * windows-nat.c (windows_stop): Rename to ...
4685         (windows_interrupt): ... this.
4686         * target-delegates.c: Regenerate.
4687
4688 2015-08-07  Pedro Alves  <palves@redhat.com>
4689
4690         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4691         threads" as alternative to "switching back to stepped thread".
4692
4693 2015-08-07  Pedro Alves  <palves@redhat.com>
4694
4695         * NEWS: Mention "maint set/show target-non-stop".
4696         * breakpoint.c (update_global_location_list): Check
4697         target_is_non_stop_p instead of non_stop.
4698         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4699         * infrun.c (show_can_use_displaced_stepping)
4700         (can_use_displaced_stepping_p, start_step_over_inferior):
4701         Likewise.
4702         (internal_resume_ptid): New function.
4703         (resume): Use it.
4704         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4705         all-stop mode but the target is always in non-stop mode, start all
4706         the other threads that are implicitly resumed too.
4707         (for_each_just_stopped_thread, fetch_inferior_event)
4708         (adjust_pc_after_break, stop_all_threads): Check
4709         target_is_non_stop_p instead of non_stop.
4710         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4711         with the target always in non-stop mode.
4712         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4713         instead of non_stop.
4714         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4715         instead of non_stop.
4716         (keep_going_stepped_thread): Use internal_resume_ptid.
4717         (stop_waiting): If in all-stop mode, and the target is in non-stop
4718         mode, stop all threads.
4719         (keep_going_pass): Likewise, when starting a new in-line step-over
4720         sequence.
4721         * linux-nat.c (get_pending_status, select_event_lwp)
4722         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4723         target_is_non_stop_p instead of non_stop.
4724         (linux_nat_always_non_stop_p): New function.
4725         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4726         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4727         * target-delegates.c: Regenerate.
4728         * target.c (target_is_non_stop_p): New function.
4729         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4730         (maint_set_target_non_stop_command)
4731         (maint_show_target_non_stop_command): New functions.
4732         (_initilize_target): Install "maint set/show target-non-stop"
4733         commands.
4734         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4735         (target_non_stop_enabled): New declaration.
4736         (target_is_non_stop_p): New declaration.
4737
4738 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4739
4740         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4741         has a pending status, return true.
4742         * gdbthread.h: Include target/waitstatus.h.
4743         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4744         stop_pc>: New fields.
4745         (struct thread_info) <resumed>: New field.
4746         (set_resumed): Declare.
4747         * infrun.c: Include "event-loop.h".
4748         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4749         (infrun_async): New function.
4750         (clear_step_over_info): Add debug output.
4751         (displaced_step_in_progress_any_inferior): New function.
4752         (displaced_step_fixup): New returns int.
4753         (start_step_over): Handle in-line step-overs too.  Assert the
4754         thread is marked resumed.
4755         (resume_cleanups): Clear the thread's resumed flag.
4756         (resume): Set the thread's resumed flag.  Return early if the
4757         thread has a pending status.  Allow stepping a breakpoint with no
4758         signal.
4759         (proceed): Adjust to check 'resumed' instead of 'executing'.
4760         (clear_proceed_status_thread): If the thread has a pending status,
4761         and that status is a finished step, discard the pending status.
4762         (clear_proceed_status): Don't clear step_over_info here.
4763         (random_pending_event_thread, do_target_wait): New functions.
4764         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4765         do_target_wait.
4766         (wait_one): New function.
4767         (THREAD_STOPPED_BY): New macro.
4768         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4769         (thread_stopped_by_hw_breakpoint): New functions.
4770         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4771         functions.
4772         (handle_inferior_event): Also call set_resumed(false) on all
4773         threads implicitly stopped by the event.
4774         (restart_threads, resumed_thread_with_pending_status): New
4775         functions.
4776         (finish_step_over): If we were doing an in-line step-over before,
4777         and no longer are after trying to start a new step-over, restart
4778         all threads.  If we have multiple threads with pending events,
4779         save the current event and go through the event loop again.
4780         (handle_signal_stop): Return early if finish_step_over returns
4781         false.
4782         <random signal>: If we get a signal while stepping over a
4783         breakpoint in-line in non-stop mode, restart all threads.  Clear
4784         step_over_info before delivering the signal.
4785         (keep_going_stepped_thread): Use internal_error instead of
4786         gdb_assert.  Mark the thread as resumed.
4787         (keep_going_pass_signal): Assert the thread isn't already resumed.
4788         If some other thread is doing an in-line step-over, defer the
4789         resume.  If we just started a new in-line step-over, stop all
4790         threads.  Don't clear step_over_info.
4791         (infrun_async_inferior_event_handler): New function.
4792         (_initialize_infrun): Create async event handler with
4793         infrun_async_inferior_event_handler as callback.
4794         (infrun_async): New declaration.
4795         * target.c (target_async): New function.
4796         * target.h (target_async): Declare macro and readd as function
4797         declaration.
4798         * target/waitstatus.h (enum target_stop_reason)
4799         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4800         * thread.c (new_thread): Clear the new waitstatus field.
4801         (set_resumed): New function.
4802
4803 2015-08-07  Pedro Alves  <palves@redhat.com>
4804
4805         * infrun.c (keep_going_stepped_thread): New function, factored out
4806         from ...
4807         (switch_back_to_stepped_thread): ... here.
4808
4809 2015-08-07  Pedro Alves  <palves@redhat.com>
4810
4811         * infrun.c (currently_stepping): Extend intro comment.
4812         * target.h (target_resume): Extend intro comment.
4813
4814 2015-08-07  Pedro Alves  <palves@redhat.com>
4815
4816         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4817         of inferior_ptid.  If the stepped thread vanished, return 0
4818         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4819         the current stop_pc in log message.  Clear trap_expected if the
4820         thread advanced.  Don't pass currently_stepping to
4821         do_target_resume.
4822
4823 2015-08-07  Pedro Alves  <palves@redhat.com>
4824
4825         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4826         * infrun.c (struct execution_control_state): Move higher up in the
4827         file.
4828         (reset_ecs): New function.
4829         (start_step_over): Now returns int.  Rewrite to use
4830         keep_going_pass_signal instead of manually starting a displaced step.
4831         (resume): Don't call set_running here.  If displaced stepping
4832         can't start now, clear trap_expected.
4833         (find_thread_needs_step_over): Delete function.
4834         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4835         If the current thread needs a step over, push it in the step-over
4836         chain.  Don't set insert breakpoints nor call resume directly
4837         here.  Instead rewrite to use start_step_over and
4838         keep_going_pass_signal.
4839         (finish_step_over): New function.
4840         (handle_signal_stop): Call finish_step_over instead of
4841         start_step_over.
4842         (switch_back_to_stepped_thread): If the event thread needs another
4843         step-over do that first.  Use start_step_over.
4844         (keep_going_pass_signal): New function, factored out from ...
4845         (keep_going): ... here.
4846         (_initialize_infrun): Comment moved here.
4847         * thread.c (set_running_thread): New function.
4848         (set_running, finish_thread_state): Use set_running_thread.
4849
4850 2015-08-07  Pedro Alves  <palves@redhat.com>
4851
4852         * gdbthread.h (struct thread_info) <step_over_prev,
4853         step_over_next>: New fields.
4854         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4855         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4856         declarations.
4857         * infrun.c (struct displaced_step_request): Delete.
4858         (struct displaced_step_inferior_state) <step_request_queue>:
4859         Delete field.
4860         (displaced_step_prepare): Assert that trap_expected is set.  Use
4861         thread_step_over_chain_enqueue.  Split starting a new displaced
4862         step to ...
4863         (start_step_over): ... this new function.
4864         (resume): Assert the thread isn't waiting for a step over already.
4865         (proceed): Assert the thread isn't waiting for a step over
4866         already.
4867         (infrun_thread_stop_requested): Adjust to remove threads from the
4868         embedded step-over chain.
4869         (handle_inferior_event) <fork/vfork>: Call start_step_over after
4870         displaced_step_fixup.
4871         (handle_signal_stop): Call start_step_over after
4872         displaced_step_fixup.
4873         * infrun.h (step_over_queue_head): New declaration.
4874         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4875         (thread_step_over_chain_next, thread_is_in_step_over_chain)
4876         (thread_step_over_chain_enqueue)
4877         (thread_step_over_chain_remove): New functions.
4878         (delete_thread_1): Remove thread from the step-over chain.
4879
4880 2015-08-07  Pedro Alves  <palves@redhat.com>
4881
4882         * infrun.c (thread_still_needs_step_over): Rename to ...
4883         (thread_still_needs_step_over_bp): ... this.
4884         (enum step_over_what): New.
4885         (thread_still_needs_step_over): Reimplement.
4886
4887 2015-08-07  Pedro Alves  <palves@redhat.com>
4888
4889         * remote.c (remote_wait_as): If not waiting for a stop reply,
4890         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
4891         requested, don't block waiting forever.
4892
4893 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4894
4895         * infrun.c (adjust_pc_after_break): Now takes thread_info and
4896         waitstatus pointers instead of an ecs.  Adjust.
4897         (handle_inferior_event): Adjust caller.
4898
4899 2015-08-07  Pedro Alves  <palves@redhat.com>
4900
4901         * infrun.c (handle_inferior_event): If we get
4902         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4903         mode, mark all threads of the exiting process as not-executing.
4904         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4905         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4906         exiting process, if inferior_ptid still points at a process.
4907         * thread.c (struct current_thread_cleanup) <next>: New field.
4908         (current_thread_cleanup_chain): New global.
4909         (restore_current_thread_ptid_changed): New function.
4910         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4911         current_thread_cleanup_chain list.
4912         (make_cleanup_restore_current_thread): Add the cleanup data to the
4913         current_thread_cleanup_chain list.
4914         (_initialize_thread): Install restore_current_thread_ptid_changed
4915         as thread_ptid_changed observer.
4916
4917 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
4918
4919         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4920         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4921         smaller than expected.
4922
4923 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4924
4925         * stack.c (get_frame_language): Moved ...
4926         * frame.c (get_frame_language): ... to here.
4927         * language.h (get_frame_language): Declaration moved to frame.h.
4928         * frame.h: Add language.h include, for language enum.
4929         (get_frame_language): Declaration moved from language.h.
4930         * language.c: Add frame.h include.
4931         * top.c: Add frame.h include.
4932         * symtab.h (struct obj_section): Declare.
4933         (struct cmd_list_element): Declare.
4934
4935 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4936
4937         * language.c (show_language_command): Find selected frame before
4938         asking for the language of that frame.
4939         (set_language_command): Likewise.
4940         * language.h (get_frame_language): Add frame parameter.
4941         * stack.c (get_frame_language): Add frame parameter, assert
4942         parameter is not NULL, update comment and reindent.
4943         * top.c (check_frame_language_change): Pass the selected frame
4944         into get_frame_language.
4945
4946 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4947
4948         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4949         (pt_btrace_insn_flags): New.
4950         (ftrace_add_pt): Call pt_btrace_insn_flags.
4951         * btrace.h (btrace_insn_flag): New.
4952         (btrace_insn) <flags>: New.
4953         * record-btrace.c (btrace_insn_history): Print insn prefix.
4954         * NEWS: Announce it.
4955
4956 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4957
4958         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4959         * configure: Regenerate.
4960
4961 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
4962
4963         * Makefile.in (LIBICONV): Define.
4964         (CLIBS): Add LIBICONV.
4965         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4966         * configure: Regenerate.
4967
4968 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4969             Pedro Alves  <palves@redhat.com>
4970
4971         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4972         (arm_set_abi): Likewise.
4973         * ax-general.c (ax_print): Likewise.
4974         * c-exp.y (exp : string_exp): Likewise.
4975         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4976         (do_compile_dwarf_expr_to_c): Likewise.
4977         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4978         Likewise.
4979         * dwarf2expr.c (execute_stack_op): Likewise.
4980         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4981         (disassemble_dwarf_expression): Likewise.
4982         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4983         (read_array_order): Likewise.
4984         (abbrev_table_read_table): Likewise.
4985         (read_attribute_value): Likewise.
4986         (skip_unknown_opcode): Likewise.
4987         (dwarf_decode_macro_bytes): Likewise.
4988         (dwarf_decode_macros): Likewise.
4989         * eval.c (value_f90_subarray): Likewise.
4990         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4991         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4992         * infrun.c (handle_command): Likewise.
4993         * memory-map.c (memory_map_start_memory): Likewise.
4994         * osabi.c (set_osabi): Likewise.
4995         * parse.c (operator_length_standard): Likewise.
4996         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4997         single return point.
4998         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4999         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5000         (gdbpy_lookup_global_symbol): Likewise.
5001         * record-full.c (record_full_restore): Likewise.
5002         * regcache.c (regcache_register_status): Likewise.
5003         (regcache_raw_read): Likewise.
5004         (regcache_cooked_read): Likewise.
5005         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5006         * symtab.c (initialize_ordinary_address_classes): Likewise.
5007         * target-debug.h (target_debug_print_signals): Likewise.
5008         * utils.c (do_restore_current_language): Likewise.
5009
5010 2015-08-06  Clem Dickey  <clemd@acm.org>
5011
5012         PR python/17136
5013         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5014
5015 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5016
5017         * complaints.c (enum complaint_series): Add newlines and remove
5018         out of date comment.
5019         (struct complaints) <series>: Change type to enum
5020         complaint_series and remove out of date comment.
5021         (symfile_complaint_hook): Use equivalent enum value
5022         ISOLATED_MESSAGE instead of 0.
5023
5024 2015-08-06  Pedro Alves  <palves@redhat.com>
5025
5026         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5027         returned > 0.
5028
5029 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5030
5031         * common/agent.c (symbol_list) <required>: Remove.
5032
5033 2015-08-06  Pedro Alves  <palves@redhat.com>
5034
5035         * target/waitstatus.h (enum target_stop_reason)
5036         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5037
5038 2015-08-05  Pedro Alves  <palves@redhat.com>
5039             Joel Brobecker  <brobecker@adacore.com>
5040
5041         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5042         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5043         case where BS->STOP is not set.
5044
5045 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5046
5047         * nat/gdb_thread_db.h: Add copyright header.
5048         Protect against multiple inclusion.
5049
5050 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5051
5052         * aarch64-linux-nat.c (get_thread_id): Remove.
5053         (debug_reg_change_callback): Call ptid_get_lwp instead of
5054         get_thread_id.
5055         (fetch_gregs_from_thread): Likewise.
5056         (store_gregs_to_thread): Likewise.
5057         (fetch_fpregs_from_thread): Likewise.
5058         (store_fpregs_to_thread): Likewise.
5059         (aarch64_linux_get_debug_reg_capacity): Likewise.
5060         * arm-linux-nat.c (get_thread_id): Remove.
5061         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5062         * xtensa-linux-nat.c (get_thread_id): Remove.
5063         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5064         * arm-linux-nat.c (get_thread_id): Remove.
5065         (GET_THREAD_ID): Remove.
5066         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5067         (store_fpregs, fetch_regs, store_regs): Likewise.
5068         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5069         (fetch_vfp_regs, store_vfp_regs): Likewise.
5070         (arm_linux_read_description): Likewise.
5071         (arm_linux_get_hwbp_cap): Likewise.
5072         * xtensa-linux-nat.c (get_thread_id): Remove.
5073         (GET_THREAD_ID): Remove.
5074         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5075         GET_THREAD_ID.
5076
5077 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5078
5079         * python/py-linetable.c: Fix case of Linetable to LineTable
5080         in docstrings and code comments.
5081         * python/py-symtab.c: Same.
5082
5083 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5084
5085         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5086
5087 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5088
5089         PR gdb/18767
5090         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5091         use.
5092
5093 2015-08-04  Pedro Alves  <palves@redhat.com>
5094
5095         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5096         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5097         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5098         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5099         (td_thr_validate_ftype, td_thr_get_info_ftype)
5100         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5101         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5102         New typedefs.
5103         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5104         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5105         local macros and use them instead of verbose_dlsym and dlsym
5106         calls.
5107
5108 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5109
5110         * nios2-tdep.h: Include opcode/nios2.h here.
5111         (NIOS2_CDX_OPCODE_SIZE): New.
5112         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5113         * nios2-tdep.c: Don't include opcode/nios2.h here.
5114         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5115         4-byte read fails.
5116         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5117         (nios2_match_addi, nios2_match_orhi): Likewise.
5118         (nios2_match_stw, nios2_match_ldw): Likewise.
5119         (nios2_match_rdctl): Likewise.
5120         (nios2_match_stwm, nios2_match_ldwm): New.
5121         (nios2_match_branch): Add cases for R2 encodings.
5122         (nios2_match_jmpi, nios2_match_calli): Likewise.
5123         (nios2_match_jmpr, nios2_match_callr): Likewise.
5124         (nios2_match_break, nios2_match_trap): Likewise.
5125         (nios2_in_epilogue_p): Add R2 support.
5126         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5127         prologues.
5128         (nios2_breakpoint_from_pc): Handle R2 instructions.
5129         (nios2_get_next_pc): Likewise.  Adjust call to
5130         tdep->syscall_next_pc.
5131         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5132         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5133         instruction field macros instead of literal hex values.
5134         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5135         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5136         Use size field from OP instead of assuming all instructions
5137         are the same size.
5138         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5139
5140 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5141
5142         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5143         variable warning with some compilers.
5144
5145 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5146
5147         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5148         in comment.  Replace "rw" with "type".
5149         (arm_linux_remove_watchpoint): Change type of "rw" to
5150         "enum target_hw_bp_type".
5151
5152 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5153
5154         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5155         lookup_symbol.
5156         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5157         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5158         * mt-tdep.c (mt_skip_prologue): Likewise.
5159         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5160
5161 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5162
5163         * ada-exp.y (write_object_renaming): Replace struct
5164         ada_symbol_info with struct block_symbol.  Update field
5165         references accordingly.
5166         (block_lookup, select_possible_type_sym): Likewise.
5167         (find_primitive_type): Likewise.  Also update call to
5168         ada_lookup_symbol to extract the symbol itself.
5169         (write_var_or_type, write_name_assoc): Likewise.
5170         * ada-lang.h (struct ada_symbol_info): Remove.
5171         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5172         struct block_symbol.
5173         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5174         (ada_lookup_symbol): Return struct block_symbol instead of a
5175         mere symbol.
5176         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5177         with struct block_symbol.
5178         (resolve_subexp, ada_resolve_function, sort_choices,
5179         user_select_syms, is_nonfunction, add_defn_to_vec,
5180         num_defns_collected, defns_collected,
5181         symbols_are_identical_enums, remove_extra_symbols,
5182         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5183         ada_lookup_symbol_list, ada_iterate_over_symbols,
5184         ada_lookup_encoded_symbol, get_var_value): Likewise.
5185         (ada_lookup_symbol): Return a block_symbol instead of a mere
5186         symbol.  Replace struct ada_symbol_info with struct
5187         block_symbol.
5188         (ada_lookup_symbol_nonlocal): Likewise.
5189         (standard_lookup): Make block passing explicit through
5190         lookup_symbol_in_language.
5191         * ada-tasks.c (get_tcb_types_info): Update the calls to
5192         lookup_symbol_in_language to extract the mere symbol out of the
5193         returned value.
5194         (ada_tasks_inferior_data_sniffer): Likewise.
5195         * ax-gdb.c (gen_static_field): Likewise for the call to
5196         lookup_symbol.
5197         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5198         lookup functions.
5199         (gen_expr): Likewise.
5200         * c-exp.y: Likewise.  Remove uses of block_found.
5201         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5202         (classify_name): Likewise.  Rename the "sym" local variable to
5203         "bsym".
5204         * c-valprint.c (print_unpacked_pointer): Likewise.
5205         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5206         "sym" parameter from struct symbol * to struct block_symbol.
5207         Use it to remove uses of block_found.  Deal with struct
5208         block_symbol from lookup functions.
5209         (gcc_convert_symbol): Likewise.  Update the call to
5210         convert_symbol_sym.
5211         * compile/compile-object-load.c (compile_object_load): Deal with
5212         struct block_symbol from lookup functions.
5213         * cp-namespace.c (cp_lookup_nested_symbol_1,
5214         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5215         cp_search_static_and_baseclasses,
5216         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5217         cp_lookup_symbol_imports_or_template,
5218         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5219         lookup_namespace_scope, cp_lookup_nonlocal,
5220         find_symbol_in_baseclass): Return struct block_symbol instead of
5221         mere symbols and deal with struct block_symbol from lookup
5222         functions.
5223         * cp-support.c (inspect_type, replace_typedefs,
5224         cp_lookup_rtti_type): Deal with struct block_symbol from
5225         lookup functions.
5226         * cp-support.h (cp_lookup_symbol_nonlocal,
5227         cp_lookup_symbol_from_namespace,
5228         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5229         Return struct block_symbol instead of mere symbols.
5230         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5231         push_module_name):
5232         Deal with struct block_symbol from lookup functions.  Remove
5233         uses of block_found.
5234         * eval.c (evaluate_subexp_standard): Update call to
5235         cp_lookup_symbol_namespace.
5236         * f-exp.y: Deal with struct block_symbol from lookup functions.
5237         Remove uses of block_found.
5238         (yylex): Likewise.
5239         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5240         lookup_enum, lookup_template_type, check_typedef): Deal with
5241         struct block_symbol from lookup functions.
5242         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5243         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5244         (gdbscm_lookup_global_symbol): Likewise.
5245         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5246         * go-exp.y: Likewise.  Remove uses of block_found.
5247         (package_name_p, classify_packaged_name, classify_name):
5248         Likewise.
5249         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5250         * jv-exp.y (push_variable): Likewise.
5251         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5252         * language.c (language_bool_type): Likewise.
5253         * language.h (struct language_defn): Update
5254         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5255         than a mere symbol.
5256         * linespec.c (find_label_symbols): Deal with struct block_symbol
5257         from lookup functions.
5258         * m2-exp.y: Likewise.  Remove uses of block_found.
5259         (yylex): Likewise.
5260         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5261         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5262         * p-exp.y: Likewise.  Remove uses of block_found.
5263         (yylex): Likewise.
5264         * p-valprint.c (pascal_val_print): Likewise.
5265         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5266         block_found.
5267         * parser-defs.h (struct symtoken): Turn the SYM field into a
5268         struct block_symbol.
5269         * printcmd.c (address_info): Deal with struct block_symbol from
5270         lookup functions.
5271         * python/py-frame.c (frapy_read_var): Likewise.
5272         * python/py-symbol.c (gdbpy_lookup_symbol,
5273         gdbpy_lookup_global_symbol): Likewise.
5274         * skip.c (skip_function_command): Likewise.
5275         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5276         block_symbol instead of a mere symbol.
5277         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5278         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5279         * solib.c (solib_global_lookup): Likewise.
5280         * solist.h (solib_global_lookup): Likewise.
5281         (struct target_so_ops): Update lookup_lib_global_symbol to
5282         return a struct block_symbol rather than a mere symbol.
5283         * source.c (select_source_symtab): Deal with struct block_symbol
5284         from lookup functions.
5285         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5286         Likewise.
5287         * symfile.c (set_initial_language): Likewise.
5288         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5289         block_symbol.
5290         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5291         (struct symbol_cache_slot): Turn the FOUND field into a struct
5292         block_symbol.
5293         (block_found): Remove.
5294         (eq_symbol_entry): Update to deal with struct block_symbol in
5295         cache slots.
5296         (symbol_cache_lookup): Return a struct block_symbol rather than
5297         a mere symbol.
5298         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5299         appropriately the cache slots.  Update callers.
5300         (symbol_cache_dump): Update cache slots handling to the type
5301         change.
5302         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5303         lookup_symbol_aux, lookup_local_symbol,
5304         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5305         lookup_symbol_in_objfile_symtabs,
5306         lookup_symbol_in_objfile_from_linkage_name,
5307         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5308         lookup_symbol_in_static_block, lookup_static_symbol,
5309         lookup_global_symbol):
5310         Return a struct block_symbol rather than a mere symbol.  Deal
5311         with struct block_symbol from other lookup functions.  Remove
5312         uses of block_found.
5313         (lookup_symbol_in_block): Remove uses of block_found.
5314         (struct global_sym_lookup_data): Turn the RESULT field into a
5315         struct block_symbol.
5316         (lookup_symbol_global_iterator_cb): Update references to the
5317         RESULT field.
5318         (search_symbols): Deal with struct block_symbol from lookup
5319         functions.
5320         * symtab.h (struct block_symbol): New structure.
5321         (block_found): Remove.
5322         (lookup_symbol_in_language, lookup_symbol,
5323         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5324         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5325         lookup_global_symbol_from_objfile): Return a struct block_symbol
5326         rather than just a mere symbol.  Update comments to remove
5327         mentions of block_found.
5328         * valops.c (find_function_in_inferior,
5329         value_struct_elt_for_reference, value_maybe_namespace_elt,
5330         value_of_this):  Deal with struct block_symbol from lookup
5331         functions.
5332         * value.c (value_static_field, value_fn_field): Likewise.
5333
5334 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5335
5336         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5337         instead of integer.
5338
5339 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5340             Pedro Alves  <palves@redhat.com>
5341
5342         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5343         type or value instead of integer.
5344         (aarch64_linux_insert_watchpoint): Likewise.
5345         (aarch64_linux_remove_watchpoint): Likewise.
5346         * ada-lang.c (ada_op_print_tab): Likewise.
5347         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5348         (amd64_linux_syscall_record_common): Likewise.
5349         * arch-utils.c (target_byte_order_user): Likewise.
5350         (default_byte_order): Likewise.
5351         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5352         (arm_linux_get_hwbp_type): Likewise.
5353         (arm_linux_hw_watchpoint_initialize): Likewise.
5354         (arm_linux_insert_watchpoint): Likewise.
5355         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5356         (arm_linux_syscall_record): Likewise.
5357         * breakpoint.c (update_watchpoint): Likewise.
5358         (breakpoint_here_p): Likewise.
5359         (bpstat_print): Likewise.
5360         (enable_breakpoint_disp): Likewise.
5361         * c-lang.c (c_op_print_tab): Likewise.
5362         * cli/cli-decode.c (add_info_alias): Likewise.
5363         * d-lang.c (d_op_print_tab): Likewise.
5364         * eval.c (evaluate_subexp_standard): Likewise.
5365         * f-exp.y (dot_ops): Likewise.
5366         (f77_keywords): Likewise.
5367         * f-lang.c (f_op_print_tab): Likewise.
5368         * go-lang.c (go_op_print_tab): Likewise.
5369         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5370         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5371         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5372         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5373         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5374         (struct scm_from_stringn_data): Likewise.
5375         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5376         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5377         (ia64_linux_remove_watchpoint): Likewise.
5378         (ia64_linux_can_use_hw_breakpoint): Likewise.
5379         * infrun.c (print_stop_event): Likewise.
5380         * jv-lang.c (java_op_print_tab): Likewise.
5381         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5382         * linux-nat.h (struct lwp_info): Likewise.
5383         * linux-thread-db.c (enable_thread_event): Likewise.
5384         * m2-lang.c (m2_op_print_tab): Likewise.
5385         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5386         (mi_cmd_stack_list_variables): Likewise.
5387         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5388         * mi/mi-out.c (mi_table_begin): Likewise.
5389         (mi_table_header): Likewise.
5390         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5391         (mips_linux_insert_watchpoint): Likewise.
5392         (mips_linux_remove_watchpoint): Likewise.
5393         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5394         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5395         (mips_linux_watch_type_to_irw): Likewise.
5396         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5397         (procfs_insert_hw_watchpoint): Likewise.
5398         (procfs_remove_hw_watchpoint): Likewise.
5399         (procfs_hw_watchpoint): Likewise.
5400         (procfs_can_use_hw_breakpoint): Likewise.
5401         (procfs_remove_hw_watchpoint): Likewise.
5402         (procfs_insert_hw_watchpoint): Likewise.
5403         * p-lang.c (pascal_op_print_tab): Likewise.
5404         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5405         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5406         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5407         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5408         (procfs_insert_watchpoint): Likewise.
5409         (procfs_remove_watchpoint): Likewise.
5410         * psymtab.c (recursively_search_psymtabs): Likewise.
5411         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5412         (m32r_insert_watchpoint): Likewise.
5413         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5414         (mips_insert_watchpoint): Likewise.
5415         (mips_remove_watchpoint): Likewise.
5416         * remote.c (watchpoint_to_Z_packet): Likewise.
5417         (remote_insert_watchpoint): Likewise.
5418         (remote_remove_watchpoint): Likewise.
5419         (remote_check_watch_resources): Likewise.
5420         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5421         (s390_remove_watchpoint): Likewise.
5422         (s390_can_use_hw_breakpoint): Likewise.
5423         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5424         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5425         * target.h (struct target_ops): Likewise.
5426         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5427         * ui-out.c (struct ui_out_hdr): Likewise.
5428         (append_header_to_list): Likewise.
5429         (get_next_header): Likewise.
5430         (verify_field): Likewise.
5431         (ui_out_begin): Likewise.
5432         (ui_out_field_int): Likewise.
5433         (ui_out_field_fmt_int): Likewise.
5434         (ui_out_field_skip): Likewise.
5435         (ui_out_field_string): Likewise.
5436         (ui_out_field_fmt): Likewise.
5437         * varobj.c (new_variable): Likewise.
5438         * x86-nat.c (x86_insert_watchpoint): Likewise.
5439         (x86_remove_watchpoint): Likewise.
5440         (x86_can_use_hw_breakpoint): Likewise.
5441         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5442         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5443         previously anonymous enumeration type..
5444         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5445         value.
5446         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5447         (target_debug_print_enum_bptype): New.
5448         * target-delegates.c: Regenerate.
5449
5450 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5451
5452         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5453         already says and disallow non-stack memory writes in the prologue.
5454
5455 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5456
5457         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5458         reflect how current GCC emits stack overflow checks.  Match
5459         both trap and break instructions for backward compatbility.
5460         Disallow other trap and break instructions in the prologue.
5461
5462 2015-07-30  Pedro Alves  <palves@redhat.com>
5463
5464         PR threads/18600
5465         * linux-nat.c (wait_lwp): Report to the core when thread group
5466         leader exits.
5467
5468 2015-07-30  Pedro Alves  <palves@redhat.com>
5469             Simon Marchi  <simon.marchi@ericsson.com>
5470
5471         PR threads/18600
5472         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5473         mark the new thread as resumed.  Remove STOPPING parameter.
5474         (wait_lwp): Adjust call to linux_handle_extended_wait.
5475         (linux_nat_filter_event): Adjust call to
5476         linux_handle_extended_wait.
5477         (resume_stopped_resumed_lwps): Add debug output.
5478
5479 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5480
5481         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5482         isize argument.
5483         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5484         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5485         gdbarch_fast_tracepoint_valid_at.
5486         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5487         * gdbarch.h: Regenerate.
5488         * gdbarch.c: Regenerate.
5489         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5490         argument.  Do not set it.
5491         * remote.c (remote_download_tracepoint): Adjust call to
5492         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5493         the instruction length.
5494
5495 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5496
5497         * arm-tdep.h (enum gdb_regnum): Move it to ...
5498         * arch/arm.h: ... here.  New file.
5499         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5500
5501 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5502
5503         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5504         Change its type to int *.
5505         (decode_br): Rename link argument to is_blr.  Change its type to
5506         int *.
5507         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5508         int *.
5509         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5510         int *.  Set is_tbnz to either 1 or 0.
5511         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5512         new variables is_cbnz and is_tbnz.  Adjust call to
5513         aarch64_decode_cb and aarch64_decode_tb.
5514
5515 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5516
5517         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5518         parameter.
5519         (mips_linux_new_thread): Likewise.
5520         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5521
5522 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5523
5524         * top.c: Include "tui/tui.h".
5525         (undo_terminal_modifications_before_exit): New static function.
5526         (quit_force): Use it.
5527
5528 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5529
5530         * target.c (terminal_state): Initialize to terminal_is_ours.
5531
5532 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5533
5534         PR record/18691
5535         * dcache.c (dcache_read_memory_partial): Call
5536         raw_memory_xfer_partial.
5537         * target.c (raw_memory_xfer_partial): Make it non-static.
5538         * target.h (raw_memory_xfer_partial): Declare.
5539
5540 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5541
5542         * c-valprint.c (c_val_print_array): Consider addressable memory
5543         unit size.
5544         (c_val_print_ptr): Likewise.
5545         (c_val_print_int): Likewise.
5546         * findvar.c (read_frame_register_value): Likewise.
5547         * valarith.c (find_size_for_pointer_math): Likewise.
5548         (value_ptrdiff): Likewise.
5549         (value_subscripted_rvalue): Likewise.
5550         * valops.c (read_value_memory): Likewise (and rename variables).
5551         (value_assign): Likewise.
5552         (value_repeat): Likewise.
5553         (value_array): Likewise.
5554         (value_slice): Likewise.
5555         * valprint.c (generic_val_print_ptr): Likewise.
5556         (generic_val_print_enum): Likewise.
5557         (generic_val_print_bool): Likewise.
5558         (generic_val_print_int): Likewise.
5559         (generic_val_print_char): Likewise.
5560         (generic_val_print_float): Likewise.
5561         (generic_val_print_decfloat): Likewise.
5562         (generic_val_print_complex): Likewise.
5563         (val_print_scalar_formatted): Likewise.
5564         (val_print_array_elements): Likewise.
5565         * value.c (set_value_parent): Likewise.
5566         (value_contents_copy_raw): Likewise.
5567         (set_internalvar_component): Likewise.
5568         (value_primitive_field): Likewise.
5569         (value_fetch_lazy): Likewise.
5570         * value.h (read_value_memory): Update comment.
5571
5572 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5573
5574         * value.c (get_value_arch): New function.
5575         * value.h (get_value_arch): New declaration.
5576
5577 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5578
5579         * value.c (struct value): Update comments.
5580
5581 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5582
5583         * gdbtypes.c (type_length_units): New function.
5584         * gdbtypes.h (type_length_units): New declaration.
5585         (struct type) <length>: Update comment.
5586
5587 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5588
5589         * valprint.c (generic_val_print): Factor out complex
5590         printing code to ...
5591         (generic_val_print_complex): ... this new function.
5592
5593 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5594
5595         * valprint.c (generic_val_print): Factor out decfloat
5596         printing code to ...
5597         (generic_val_print_decfloat): ... this new function.
5598
5599 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5600
5601         * valprint.c (generic_val_print): Factor out float
5602         printing code to ...
5603         (generic_val_print_float): ... this new function.
5604
5605 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5606
5607         * valprint.c (generic_val_print): Factor out char
5608         printing code to ...
5609         (generic_val_print_char): ... this new function.
5610
5611 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5612
5613         * valprint.c (generic_val_print): Factor out integer
5614         printing code to ...
5615         (generic_val_print_int): ... this new function.
5616
5617 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5618
5619         * valprint.c (generic_val_print): Factor out bool
5620         printing code to ...
5621         (generic_val_print_bool): ... this new function.
5622
5623 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5624
5625         * valprint.c (generic_val_print): Factor out function/method
5626         printing code to ...
5627         (generic_val_print_func): ... this new function.
5628
5629 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5630
5631         * valprint.c (generic_val_print): Factor out flags
5632         printing code to ...
5633         (generic_val_print_flags): ... this new function.
5634
5635 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5636
5637         * valprint.c (generic_val_print): Factor out enum
5638         printing code to ...
5639         (generic_val_print_enum): ... this new function.
5640
5641 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5642
5643         * valprint.c (generic_val_print): Factor out reference
5644         printing code to ...
5645         (generic_val_print_ref): ... this new function.
5646
5647 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5648
5649         * valprint.c (generic_val_print): Factor out memberptr
5650         printing code to ...
5651         (generic_val_print_memberptr): ... this new function.
5652
5653 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5654
5655         * valprint.c (generic_val_print): Factor out pointer
5656         printing code to ...
5657         (generic_val_print_ptr): ... this new function.
5658
5659 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5660
5661         * valprint.c (generic_val_print): Factor out array
5662         printing code to ...
5663         (generic_val_print_array): ... this new function.
5664
5665 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5666
5667         * valprint.c (generic_val_print): Factor out
5668         print_unpacked_pointer code to ...
5669         (print_unpacked_pointer): ... this new function.
5670
5671 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5672
5673         * event-top.c (handle_sigterm): Don't inspect
5674         target_can_async_p.  Always set the quit flag and always mark
5675         the async signal handler.
5676
5677 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5678
5679         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5680
5681 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5682
5683         * remote.c (read_ptid): Return null_ptid when no thread id
5684         is found.
5685         (remote_current_thread): Add log warning for malformed
5686         qC reply.
5687         (remote_start_remote): Add log warning when current thread
5688         not found.
5689
5690 2015-07-24  Pedro Alves  <palves@redhat.com>
5691
5692         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5693         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5694         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5695
5696 2015-07-24  Pedro Alves  <palves@redhat.com>
5697
5698         PR gdb/18717
5699         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5700         is resumed, and extend the debug log.
5701
5702 2015-07-24  Pedro Alves  <palves@redhat.com>
5703
5704         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5705
5706 2015-07-24  Pedro Alves  <palves@redhat.com>
5707
5708         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5709         sys/ptrace.h.
5710         * alpha-linux-nat.c: Likewise.
5711         * amd64-linux-nat.c: Likewise.
5712         * arm-linux-nat.c: Likewise.
5713         * hppa-linux-nat.c: Likewise.
5714         * i386-linux-nat.c: Likewise.
5715         * ia64-linux-nat.c: Likewise.
5716         * linux-fork.c: Likewise.
5717         * linux-nat.c: Likewise.
5718         * m32r-linux-nat.c: Likewise.
5719         * m68klinux-nat.c: Likewise.
5720         * mips-linux-nat.c: Likewise.
5721         * nat/linux-btrace.c: Likewise.
5722         * nat/linux-ptrace.c: Likewise.
5723         * nat/linux-ptrace.h
5724         * nat/mips-linux-watch.c: Likewise.
5725         * nat/x86-linux-dregs.c: Likewise.
5726         * ppc-linux-nat.c: Likewise.
5727         * s390-linux-nat.c: Likewise.
5728         * spu-linux-nat.c: Likewise.
5729         * tilegx-linux-nat.c: Likewise.
5730         * x86-linux-nat.c: Likewise.
5731         * xtensa-linux-nat.c: Likewise.
5732
5733 2015-07-24  Pedro Alves  <palves@redhat.com>
5734
5735         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5736         __ptrace_request as first parameter type instead of int.
5737         (PTRACE_TYPE_ARG1): Define.
5738         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5739         that casts first argument to PTRACE_TYPE_ARG1.
5740         * config.in: Regenerate.
5741         * configure: Regenerate.
5742
5743 2015-07-24  Pedro Alves  <palves@redhat.com>
5744
5745         * gdb_ptrace.h: Move ...
5746         * nat/gdb_ptrace.h: ... here.
5747         * inf-ptrace.c: Adjust.
5748
5749 2015-07-24  Pedro Alves  <palves@redhat.com>
5750
5751         * acinclude.m4: Include ptrace.m4.
5752         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5753         * ptrace.m4: ... to this new file.
5754
5755 2015-07-23  Doug Evans  <dje@google.com>
5756
5757         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5758         (load_cu): Handle dummy CUs.
5759         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5760         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5761
5762 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5763
5764         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5765         documentation to say that it returns a list rather than
5766         a FrozenSet.
5767         (linetable_object_methods): Update the docstring of the
5768         "source_line" entry.
5769
5770 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5771
5772         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5773         type to the recursive call instead of the original (maybe
5774         TYPE_CODE_TYPEDEF) type.
5775
5776 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5777
5778         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5779         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5780         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5781
5782 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5783
5784         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5785         Move it to nat/aarch64-linux-hw-point.c.
5786         (aarch64_linux_child_post_startup_inferior): Update.
5787         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5788         New function.
5789         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5790         Declare it.
5791
5792 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5793
5794         * common/btrace-common.c (btrace_data_append): Change case label.
5795
5796 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5797
5798         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5799         Re-indent the code.
5800         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5801         "unsigned long long".
5802
5803 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5804
5805         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5806         to be set for SEC_ALLOC sections too.
5807
5808 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5809
5810         * Makefile.in (HFILES_NO_SRCDIR): Add
5811         nat/aarch64-linux-hw-point.h.
5812         (aarch64-linux-hw-point.o): New rule.
5813         * nat/aarch64-linux-hw-point.h: New file.
5814         * nat/aarch64-linux-hw-point.c: New file.
5815         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5816         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5817         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5818         (AARCH64_HWP_ALIGNMENT): Likewise.
5819         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5820         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5821         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5822         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5823         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5824         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5825         (struct aarch64_debug_reg_state): Likewise.
5826         (struct arch_lwp_info): Likewise.
5827         (aarch64_linux_set_debug_regs): Likewise.
5828         (aarch64_notify_debug_reg_change): Remove static.
5829         (aarch64_align_watchpoint): Likewise.
5830         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5831         (aarch64_watchpoint_length): Likewise.
5832         (aarch64_point_encode_ctrl_reg): Likewise
5833         (aarch64_point_is_aligned): Likewise.
5834         (aarch64_dr_state_insert_one_point): Likewise.
5835         (aarch64_dr_state_remove_one_point): Likewise.
5836         (aarch64_handle_breakpoint): Likewise.
5837         (aarch64_handle_aligned_watchpoint): Likewise.
5838         (aarch64_handle_unaligned_watchpoint): Likewise.
5839         (aarch64_handle_watchpoint): Likewise.
5840         * config/aarch64/linux.mh (NAT_FILE): Add
5841         aarch64-linux-hw-point.o.
5842
5843 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5844
5845         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5846         state and don't call aarch64_get_debug_reg_state.  All callers
5847         update.
5848         (aarch64_linux_insert_hw_breakpoint): Call
5849         aarch64_get_debug_reg_state earlier.
5850         (aarch64_linux_remove_hw_breakpoint): Likewise.
5851         (aarch64_handle_aligned_watchpoint): Add argument state and
5852         don't call aarch64_get_debug_reg_state.  All callers update.
5853         (aarch64_handle_unaligned_watchpoint): Likewise.
5854         (aarch64_handle_watchpoint): Add argument state.
5855         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5856         earlier.
5857         (aarch64_linux_remove_watchpoint): Likewise.
5858
5859 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5860
5861         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5862         debug_printf.
5863         (aarch64_handle_unaligned_watchpoint): Likewise.
5864
5865 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5866
5867         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5868         argument type's type to 'enum target_hw_bp_type'.
5869         (aarch64_dr_state_remove_one_point): Likewise.
5870         (aarch64_handle_breakpoint): Likewise.
5871         (aarch64_linux_insert_hw_breakpoint): Likewise.
5872         (aarch64_linux_remove_hw_breakpoint): Likewise.
5873         (aarch64_handle_aligned_watchpoint): Likewise.
5874
5875 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5876
5877         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5878         ptid_get_pid instead of get_thread_id.
5879
5880 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5881
5882         * remote.c (get_current_thread): Initialise ptid to null_ptid.
5883         (add_current_inferior_and_thread): Don't initialise ptid.
5884
5885 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
5886
5887         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5888         unavailable if invalid.
5889
5890 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5891
5892         Revert the previous 6 commits:
5893         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5894         Move gdb_regex* to common/
5895         Prepare linux_find_memory_regions_full & co. for move
5896         Move linux_find_memory_regions_full & co.
5897         gdbserver build-id attribute generator
5898         Validate symbol file using build-id
5899
5900 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5901             Jan Kratochvil  <jan.kratochvil@redhat.com>
5902
5903         Validate symbol file using build-id.
5904         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5905         and 'show validate-build-id'.  Add build-id attribute.
5906         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5907         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5908         * solib-frv.c (_initialize_frv_solib): Ditto.
5909         * solib-spu.c (set_spu_solib_ops): Ditto.
5910         * solib-svr4.c: Include rsp-low.h.
5911         (NOTE_GNU_BUILD_ID_NAME): New define.
5912         (svr4_validate): New function.
5913         (svr4_copy_library_list): Duplicate field build_id.
5914         (library_list_start_library): Parse 'build-id' attribute.
5915         (svr4_library_attributes): Add 'build-id' attribute.
5916         (_initialize_svr4_solib): Assign validate value.
5917         * solib-target.c (solib.h): Include.
5918         (_initialize_solib_target): Assign validate value.
5919         * solib.c (validate_build_id, show_validate_build_id): New.
5920         (solib_map_sections): Use ops->validate.
5921         (clear_so): Free build_id.
5922         (default_solib_validate): New function.
5923         (_initialize_solib): Add "validate-build-id".
5924         * solib.h (default_solib_validate): New declaration.
5925         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5926         (target_so_ops): New field 'validate'.
5927
5928 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5929             Jan Kratochvil  <jan.kratochvil@redhat.com>
5930
5931         gdbserver build-id attribute generator.
5932         * features/library-list-svr4.dtd (library-list-svr4): New
5933         'build-id' attribute.
5934
5935 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5936             Jan Kratochvil  <jan.kratochvil@redhat.com>
5937
5938         Move linux_find_memory_regions_full & co.
5939         * linux-tdep.c (nat/linux-maps.h): Include.
5940         (gdb_regex.h): Remove the include.
5941         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5942         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5943         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5944         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5945         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5946         and target/target.h.
5947         (struct smaps_vmflags, read_mapping, decode_vmflags)
5948         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5949         (linux_find_memory_regions_full): Move from linux-tdep.c.
5950         * nat/linux-maps.h (read_mapping): New declaration.
5951         (linux_find_memory_region_ftype, enum filterflags): Moved from
5952         linux-tdep.c.
5953         (linux_find_memory_regions_full): New declaration.
5954         * target.c (target/target-utils.h): Include.
5955         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5956         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5957         definitions to target/target-utils.c.
5958         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5959         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5960         from target.c.
5961         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5962         (read_alloc): New declaration.
5963         (read_stralloc_func_ftype): New typedef.
5964         (read_stralloc): New declaration.
5965         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5966
5967 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5968             Jan Kratochvil  <jan.kratochvil@redhat.com>
5969
5970         Prepare linux_find_memory_regions_full & co. for move.
5971         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5972         (linux_find_memory_regions_full): Change signature and prepare
5973         for moving to linux-maps.
5974         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5975         (linux_find_memory_regions_thunk): New.
5976         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5977         (linux_find_memory_regions_gdb): New.
5978         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5979         (linux_make_mappings_corefile_notes): Use
5980         linux_find_memory_regions_gdb.
5981         * target.c (read_alloc_pread_ftype): New typedef.
5982         (target_fileio_read_alloc_1_pread): New function.
5983         (read_alloc): Refactor from target_fileio_read_alloc_1.
5984         (read_stralloc_func_ftype): New typedef.
5985         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5986         (read_stralloc): Refactored from target_fileio_read_stralloc.
5987         (target_fileio_read_stralloc): New implementation, use read_stralloc.
5988
5989 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5990
5991         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5992         common/gdb_regex.h.
5993         (COMMON_OBS): Add gdb_regex.o.
5994         (gdb_regex.o): New.
5995         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5996         --without-included-regex and USE_INCLUDED_REGEX.
5997         * common/gdb_regex.c: New file from utils.c functions.
5998         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5999         file wrapping define name.
6000         * configure: Rebuilt.
6001         * configure.ac (gdb_use_included_regex, --without-included-regex)
6002         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6003         * gdb_regex.h: Move it to common/gdb_regex.h.
6004         * utils.c: Remove include gdb_regex.h.
6005         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6006         (compile_rx_or_error): Move them to common/gdb_regex.c.
6007
6008 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6009             Jan Kratochvil  <jan.kratochvil@redhat.com>
6010
6011         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6012         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6013         common/target-utils.h.
6014         (COMMON_OBS): Add target-utils.o.
6015         (linux-maps.o, target-utils.o): New.
6016         * target/target-utils.c: New file.
6017         * target/target-utils.h: New file.
6018         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6019         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6020         * nat/linux-maps.c: New file.
6021         * nat/linux-maps.h: New file.
6022
6023 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6024             Pedro Alves <palves@redhat.com>
6025
6026         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6027         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6028         (perf_event_read_bts): Change the type of SIZE and READ.
6029         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6030         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6031         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6032         mmap page.
6033         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6034         buffer size to UINT_MAX.
6035         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6036         DATA_TAIL.
6037         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6038         <last_head>: Change type.
6039         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6040         * common/btrace-common.c (btrace_data_append): Change the type of
6041         SIZE.
6042         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6043         check.
6044
6045 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6046
6047         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6048         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6049         with check_typedef.
6050         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6051         (ada_array_length): Likewise.
6052         (find_parallel_type_by_descriptive_type): Likewise.
6053         (ada_check_typedef): Likewise.
6054         * arm-tdep.c (arm_return_in_memory): Likewise.
6055         * ax-gdb.c (gen_trace_static_fields): Likewise.
6056         (gen_struct_ref_recursive): Likewise.
6057         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6058         (variable: block COLONCOLON name): Likewise.
6059         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6060         * c-lang.c (classify_type): Likewise.
6061         * c-typeprint.c (c_print_type): Likewise.
6062         (c_print_typedef): Likewise.
6063         (c_type_print_base): Likewise.
6064         * c-valprint.c (c_val_print): Likewise.
6065         * compile/compile-c-types.c (convert_type): Likewise.
6066         * compile/compile-object-load.c (get_out_value_type): Likewise.
6067         * completer.c (add_struct_fields): Likewise.
6068         (expression_completer): Likewise.
6069         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6070         (cp_lookup_nested_symbol_1): Likewise.
6071         (cp_lookup_nested_symbol): Likewise.
6072         * cp-valprint.c (cp_print_value_fields): Likewise.
6073         (cp_print_static_field): Likewise.
6074         * d-valprint.c (d_val_print): Likewise.
6075         * eval.c (evaluate_subexp_standard): Likewise.
6076         (evaluate_subexp_for_sizeof): Likewise.
6077         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6078         * f-typeprint.c (f_type_print_base): Likewise.
6079         * f-valprint.c (f_val_print): Likewise.
6080         * gdbtypes.c (get_discrete_bounds): Likewise.
6081         (create_array_type_with_stride): Likewise.
6082         (type_name_no_tag_or_error): Likewise.
6083         (lookup_struct_elt_type): Likewise.
6084         (get_unsigned_type_max): Likewise.
6085         (internal_type_vptr_fieldno): Likewise.
6086         (set_type_vptr_fieldno): Likewise.
6087         (internal_type_vptr_basetype): Likewise.
6088         (set_type_vptr_basetype): Likewise.
6089         (get_vptr_fieldno): Likewise.
6090         (is_integral_type): Likewise.
6091         (is_scalar_type): Likewise.
6092         (is_scalar_type_recursive): Likewise.
6093         (distance_to_ancestor): Likewise.
6094         (is_unique_ancestor_worker): Likewise.
6095         (check_types_equal): Likewise.
6096         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6097
6098 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6099
6100         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6101         also test for language_d.
6102         (dwarf2_compute_name): Likewise.
6103         (read_func_scope): Likewise.
6104         (read_structure_type): Likewise.
6105         (new_symbol_full): Likewise.
6106         (determine_prefix): Likewise.
6107         (read_import_statement): Use dot as the separator for language_d.
6108         (typename_concat): Likewise, but don't prefix the D main function.
6109
6110 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6111
6112         * nat/linux-namespaces.c (setns): Rename from this ...
6113         (do_setns): ... to this.  Support calling setns if it exists.
6114         (mnsh_handle_setns): Call do_setns.
6115
6116 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6117
6118         * exec.c (exec_file_attach): Add period at the end of error
6119         message.
6120
6121 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6122
6123         * tui/tui-win.c (window_name_completer): New function.
6124         (focus_completer): Call window_name_completer.  All old content
6125         moved into window_name_completer.
6126         (winheight_completer): New function.
6127         (_initialize_tui_win): Rename variable.  Add completer to
6128         winheight command.  Update doc string on winheight.
6129
6130 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6131
6132         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6133         all nios2 mach variants.
6134
6135 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6136
6137         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6138         of target_read_memory.
6139
6140 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6141
6142         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6143         string copy.
6144         (parse_scrolling_args): Likewise.
6145
6146 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6147
6148         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6149         names in this function.
6150
6151 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6152
6153         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6154         (CMD_NAME): Likewise.
6155         (DATA_NAME): Likewise.
6156         (DISASSEM_NAME): Likewise.
6157         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6158         (tui_set_win_height): Likewise.
6159         (parse_scrolling_args): Likewise.
6160
6161 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6162
6163         * record-btrace.c (record_btrace_goto_begin)
6164         (record_btrace_goto_end, record_btrace_goto): Move call to
6165         print_stack_frame ...
6166         (record_btrace_set_replay): ... here.  Set stop_pc.
6167         * record-full.c (record_full_goto_entry): Set stop_pc.
6168
6169 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6170
6171         * NEWS: Mention support for tracepoints on aarch64-linux.
6172
6173 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6174
6175         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6176         function.  Return 1.
6177         (the_low_target): Install it.
6178
6179 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6180
6181         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6182         * gdb.trace/collection.exp: Likewise.
6183         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6184         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6185         * gdb.trace/report.exp: Likewise.
6186         * gdb.trace/trace-break.exp: Likewise.
6187         * gdb.trace/unavailable.exp: Likewise.
6188         * gdb.trace/while-dyn.exp: Likewise.
6189
6190 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6191
6192         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6193         (aarch64_gen_return_address): New function.
6194         (aarch64_gdbarch_init): Hook it.
6195
6196 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6197
6198         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6199         swallow NOT_AVAILABLE_ERROR.
6200         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6201         available_p is not set.
6202         (aarch64_stub_frame_unwind_stop_reason): New function.
6203         (aarch64_stub_unwind): Install it.
6204
6205 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6206
6207         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6208         field.
6209         (aarch64_make_prologue_cache_1): New function, factored out from
6210         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6211         available_p.
6212         (aarch64_make_prologue_cache): Reimplement wrapping
6213         aarch64_make_prologue_cache_1, and swallowing
6214         NOT_AVAILABLE_ERROR.
6215         (aarch64_prologue_frame_unwind_stop_reason): New function.
6216         Return UNWIND_UNAVAILABLE if available_p is not set.
6217         (aarch64_prologue_unwind): Install it.
6218         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6219         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6220         frame_id_build_unavailable_stack if available_p is not set.
6221
6222 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6223
6224         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6225         fields.
6226         (aarch64_scan_prologue): Set prev_pc.
6227         (aarch64_make_prologue_cache): Set func.
6228         (aarch64_make_stub_cache): Set prev_pc.
6229         (aarch64_prologue_this_id): Remove local variables id, pc and
6230         func.  Read prev_pc and func from cache.
6231         (aarch64_stub_this_id): Read prev_pc from cache.
6232
6233 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6234
6235         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6236         argument this_cache.  Remove unused local variables reg and
6237         unwound_fp.  Return early if this_cache is already set.  Set
6238         this_cache.
6239         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6240
6241 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6242
6243         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6244         New argument this_cache.  Return early if this_cache is already
6245         set.  Set this_cache.
6246         (aarch64_prologue_this_id): Update call to
6247         aarch64_make_prologue_cache.
6248         (aarch64_prologue_prev_register): Likewise.
6249         (aarch64_normal_frame_base): Likewise.
6250
6251 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6252
6253         * c-valprint.c (c_val_print): Factor out memberptr printing code
6254         from c_val_print to ...
6255         (c_val_print_memberptr): ... this new function.
6256
6257 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6258
6259         * c-valprint.c (c_val_print): Factor out int printing code to ...
6260         (c_val_print_int): ... this new function.
6261
6262 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6263
6264         * c-valprint.c (c_val_print): Factor out struct and union
6265         printing code to ...
6266         (c_val_print_struct): ... this new function ...
6267         (c_val_print_union): ... and this new function.
6268
6269 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6270
6271         * c-valprint.c (c_val_print): Factor out pointer printing code
6272         to ...
6273         (c_val_print_ptr): ... this new function.
6274
6275 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6276
6277         * c-valprint.c (c_valprint): Factor our array printing code from
6278         c_val_print to ...
6279         (c_val_print_array): ... this new function.
6280
6281 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6282
6283         * c-valprint.c (c_val_print): Factor out pointer printing code
6284         to ...
6285         (print_unpacked_pointer): ... this new function.
6286
6287 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6288
6289         * c-valprint.c (c_val_print): Remove an assignment to i and move
6290         its declaration.
6291
6292 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6293
6294         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6295         argument ptid.  Update comments.  Caller update.
6296
6297 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6298
6299         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6300         mnt packets.
6301
6302 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6303
6304         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6305
6306 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6307
6308         * progspace.c (delete_program_space): Add missing spaces.
6309
6310 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6311
6312         * inferior.c (delete_inferior_1): Rename to ...
6313         (delete_inferior): ..., remove 'silent' parameter, delete
6314         program space when unused and remove call to prune_program_spaces.
6315         Remove the old, unused, delete_inferior.
6316         (delete_inferior_silent): Remove.
6317         (prune_inferiors): Change call from delete_inferior_1 to
6318         delete_inferior and remove 'silent' parameter. Remove call to
6319         prune_program_spaces.
6320         (remove_inferior_command): Idem.
6321         * inferior.h (delete_inferior_1): Rename to...
6322         (delete_inferior): ..., remove 'silent' parameter and remove the
6323         original delete_inferior.
6324         (delete_inferior_silent): Remove.
6325         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6326         delete_inferior_1 to delete_inferior and remove 'silent'
6327         parameter.
6328         * progspace.c (prune_program_spaces): Remove.
6329         (pspace_empty_p): Rename to...
6330         (program_space_empty_p): ... and make non-static.
6331         (delete_program_space): New.
6332         * progspace.h (prune_program_spaces): Remove declaration.
6333         (program_space_empty_p): New declaration.
6334         (delete_program_space): New declaration.
6335         * monitor.c (monitor_close): Replace call to
6336         delete_thread_silent and delete_inferior_silent with
6337         discard_all_inferiors.
6338
6339 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6340
6341         * defs.h (deprecated_register_changed_hook): Remove prototype.
6342         * interps.c (clear_iterpreter_hooks): Remove reference to
6343         deprecated_register_changed_hook.
6344         * top.c (deprecated_register_changed_hook): Remove prototype.
6345         * valops.c (value_assign): Remove reference to
6346         deprecated_register_changed_hook.
6347         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6348         Add comment documenting the function.
6349         (tui_register_changed_observer): Define.
6350         (tui_install_hooks): Remove reference to
6351         deprecated_register_changed_hook.  Set
6352         tui_register_changed_observer.
6353         (tui_remove_hooks): Remove reference to
6354         deprecated_register_changed_hook.  Unset
6355         tui_register_changed_observer.
6356
6357 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6358
6359         PR compile/18484
6360         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6361
6362 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6363
6364         PR exp/18617
6365         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6366
6367 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6368
6369         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6370
6371 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6372
6373         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6374         Use safe_strerror() instead of strerror().
6375
6376 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6377
6378         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6379         * features/arm-with-m-fpa-layout.c: Regenerated.
6380         * features/arm-with-m-vfp-d16.xml: Likewise.
6381         * features/arm-with-m-vfp-d16.c: Regenerated.
6382         * features/arm-with-m.xml: Likewise.
6383         * features/arm-with-m.c: Regenerated.
6384         * features/arm-with-neon.xml: Likewise.
6385         * features/arm-with-neon.c: Regenerated.
6386         * features/arm-with-vfpv2.xml: Likewise.
6387         * features/arm-with-vfpv2.c: Regenerated.
6388         * features/arm-with-vfpv3.xml: Likewise.
6389         * features/arm-with-vfpv3.c: Regenerated.
6390
6391 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6392
6393         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6394         arm-linux-nat.c.
6395         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6396         elf/external.h.
6397         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6398         if target is 32-bit.
6399         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6400         if target is 32-bit.
6401         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6402         if target is 32-bit.
6403         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6404         if target is 32-bit.
6405         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6406         (aarch64_linux_read_description): Return the right target
6407         description.
6408         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6409         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6410         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6411         arm-linux-tdep.o.
6412
6413 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6414
6415         * aarch32-linux-nat.c: New file.
6416         * aarch32-linux-nat.h: New file.
6417         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6418         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6419         aarch32_gp_regcache_supply.
6420         (store_regs): Move code to aarch32-linux-nat.c.  Call
6421         aarch32_gp_regcache_collect.
6422         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6423         aarch32_vfp_regcache_supply.
6424         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6425         aarch32_vfp_regcache_collect.
6426         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6427
6428 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6429
6430         * arm-linux-nat.c (store_fpregister): Remove.
6431         (store_register): Likewise.
6432         (fetch_fpregister): Likewise.
6433         (fetch_register): Likewise.
6434         (arm_linux_store_inferior_registers): Call store_regs and
6435         store_fpregs instead.
6436         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6437         fetch_regs instead.
6438
6439 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6440
6441         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6442         and focus commands.
6443
6444 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6445
6446         * NEWS: Create a new section for the next release branch.
6447         Rename the section of the current branch, now that it has
6448         been cut.
6449
6450 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6451
6452         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6453         * version.in: Bump version to 7.10.50.DATE-cvs.
6454
6455 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6456
6457         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6458         breakpoints in a special way.
6459         (remove_breakpoint): Likewise.
6460         (mark_breakpoints_out): Likewise.
6461
6462 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6463
6464         * doc/gdb.texinfo (TUI): Add comma after @xref.
6465
6466 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6467
6468         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6469         instead of casting the structure type.
6470
6471 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6472
6473         * valops.c (search_struct_field): Remove OFFSET parameter.
6474         (value_cast_structs): Adjust calls to search_struct_field.
6475         (value_struct_elt): Same.
6476         (find_overload_match): Same.
6477
6478 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6479
6480         * value.c (value_fetch_lazy): Update comment, change return
6481         value to void.
6482         * value.h (value_fetch_lazy): Change return value to void.
6483
6484 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6485
6486         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6487         (tui_win_name): Make parameter and result const.
6488         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6489
6490 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6491
6492         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6493         use printf_unfiltered.
6494         (set_mpx_cmd): Add missing trailing space to command string
6495         literal.
6496         (_initialize_i386_tdep): Give the "mpx" prefix command its
6497         correct name.
6498
6499 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6500
6501         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6502         (enum rx_frame_type): New.
6503         (struct rx_prologue): Add new field `frame_type'.
6504         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6505         parameter in the prologue struct.  Add code for recording
6506         locations of PC and PSW for fast interrupt and exception frames.
6507         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6508         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6509         (rx_frame_type): New function.
6510         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6511         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6512         `this_cache'.
6513         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6514         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6515         RX_FRAME_TYPE_FAST_INTERRUPT.
6516         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6517         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6518         (rx_frame_unwind): Use rx_frame_sniffer instead of
6519         default_frame_sniffer.
6520         (rx_frame_unwind): New unwinder.
6521         (rx_gdbarch_init): Register new unwinder.
6522
6523 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6524
6525         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6526         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6527         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6528         and RX_FPSW_REGNUM.
6529         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6530
6531 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6532
6533         Fix GCC false warning.
6534         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6535
6536 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6537
6538         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6539         typo in the debugging message.
6540
6541 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6542
6543         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6544         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6545         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6546         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6547         (btrace_maint_clear): New.
6548         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6549         (pt_print_packet, btrace_maint_decode_pt)
6550         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6551         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6552         (maint_btrace_packet_history_cmd)
6553         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6554         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6555         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6556         (maint_info_btrace_cmd, _initialize_btrace): New.
6557         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6558         (btrace_maint_packet_history, btrace_maint_info): New.
6559         (btrace_thread_info) <maint>: New.
6560         * NEWS: Announce it.
6561
6562 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6563
6564         * btrace.c (btrace_fetch): Append the new trace data.
6565         (btrace_clear): Clear the stored trace data.
6566         * btrace.h (btrace_thread_info) <data>: New.
6567         * common/btrace-common.h (btrace_data_clear)
6568         (btrace_data_append): New.
6569         * common/btrace-common.c (btrace_data_clear)
6570         (btrace_data_append): New.
6571
6572 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6573
6574         * nat/linux-btrace.c (linux_enable_bts): Check for
6575         PERF_ATTR_SIZE_VER5.
6576         Check for data_offset and data_size fields.  Use them.
6577
6578 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6579
6580         * NEWS: Announce new commands "record btrace pt" and "record pt".
6581         Announce new options "set|show record btrace pt buffer-size".
6582         * btrace.c: Include "rsp-low.h".
6583         Include "inttypes.h".
6584         (btrace_add_pc): Add forward declaration.
6585         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6586         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6587         (btrace_compute_ftrace_pt): New.
6588         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6589         (check_xml_btrace_version): Update version check.
6590         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6591         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6592         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6593         (btrace_pt_children): New.
6594         (btrace_children): Add support for "pt".
6595         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6596         (btrace_conf_children): Add support for "pt".
6597         * btrace.h: Include "intel-pt.h".
6598         (btrace_pt_error): New.
6599         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6600         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6601         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6602         (struct btrace_config_pt): New.
6603         (struct btrace_config)<pt>: New.
6604         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6605         (struct btrace_data)<pt>: New.
6606         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6607         (pt): New.
6608         * features/btrace.dtd (btrace)<pt>: New.
6609         (pt, pt-config, cpu): New.
6610         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6611         (perf_event_pt_event_type, kernel_supports_pt)
6612         (linux_supports_pt): New.
6613         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6614         (linux_enable_bts): Free tinfo on error.
6615         (linux_enable_pt): New.
6616         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6617         (linux_disable_pt): New.
6618         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6619         (linux_fill_btrace_pt_config, linux_read_pt): New.
6620         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6621         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6622         (struct btrace_target_info)<pt>: New.
6623         * record-btrace.c (set_record_btrace_pt_cmdlist)
6624         (show_record_btrace_pt_cmdlist): New.
6625         (record_btrace_print_pt_conf): New.
6626         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6627         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6628         (cmd_record_btrace_pt_start): New.
6629         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6630         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6631         (_initialize_record_btrace): Add new commands.
6632         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6633         (remote_protocol_features): Add "Qbtrace:pt".
6634         Add "Qbtrace-conf:pt:size".
6635         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6636         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6637         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6638         (_initialize_remote): Add new commands.
6639
6640 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6641
6642         * configure.ac: check for libipt
6643         * configure: Regenerate.
6644         * config.in: Regenerate.
6645         * Makefile.in (LIBIPT): New.
6646         (CLIBS): Add $LIBIPT.
6647         * NEWS: document new configure options
6648
6649 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6650
6651         * compile/compile-object-load.c (compile_object_load): Replace debug
6652         message "lookup undefined ELF symbol" by 3 more specific messages.
6653
6654 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6655
6656         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6657         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6658         (rl78_gdbarch_init): Initialize rl78_psw_type.
6659
6660 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6661
6662         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6663         Update commentary.  Always refresh the registers when frame
6664         information has changed.
6665         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6666         Change return type to int.  Return 1 if frame information has
6667         changed, 0 otherwise.
6668         (tui_before_prompt): Update commentary.
6669         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6670         int.
6671
6672 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6673
6674         PR tui/13378
6675         * frame.c (select_frame): Remove reference to
6676         deprecated_selected_frame_level_changed_hook.
6677         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6678         declaration.
6679         * stack.c (deprecated_selected_frame_level_changed_hook):
6680         Likewise.
6681         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6682         Rename to ...
6683         (tui_refresh_frame_and_register_information): ... this.  Bail
6684         out if there is no stack.  Don't update register information
6685         unless registers_too_p is true.
6686         (tui_print_frame_info_listing_hook): Rename to ...
6687         (tui_dummy_print_frame_info_listing_hook): ... this.
6688         (tui_before_prompt): New function.
6689         (tui_normal_stop): New function.
6690         (tui_before_prompt_observer): New observer.
6691         (tui_normal_stop_observer): New observer.
6692         (tui_install_hooks): Set
6693         deprecated_print_frame_info_listing_hook to
6694         tui_dummy_print_frame_info_listing_hook.  Register
6695         tui_before_prompt_observer to call tui_before_prompt and
6696         tui_normal_stop_observer to call tui_normal_stop.  Remove
6697         reference to deprecated_selected_frame_level_changed_hook.
6698         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6699         and tui_normal_stop_observer.  Remove reference to
6700         deprecated_selected_frame_level_changed_hook.
6701
6702 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6703
6704         PR tui/13378
6705         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6706         return an int instead of void.  Return whether the locator
6707         window has changed.
6708         (tui_show_frame_info): If the locator info has not changed, then
6709         bail out early to avoid refreshing the windows.
6710
6711 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6712
6713         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6714         LOCATOR_WIN to tui_alloc_content.
6715
6716 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6717
6718         PR tdep/18605
6719         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6720         instructions.
6721
6722 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6723
6724         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6725         (rx_dwarf_reg_to_regnum): New function.
6726         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6727         unwinding.
6728
6729 2015-06-29  Pedro Alves  <palves@redhat.com>
6730
6731         PR threads/18127
6732         * infcall.c (run_inferior_call): On infcall success, if the thread
6733         was marked stopped before, reset it back to stopped.
6734         * infrun.c (resume): Don't suppress the set_running calls when
6735         doing an infcall.
6736         (normal_stop): Only discard the finish_thread_state cleanup if the
6737         infcall succeeded.
6738
6739 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6740
6741         * MAINTAINERS (Write After Approval): Update my email address.
6742
6743 2015-06-26  Keith Seitz  <keiths@redhat.com>
6744             Doug Evans  <dje@google.com>
6745
6746         PR 16253
6747         * block.c (block_lookup_symbol): For non-function blocks,
6748         continue to search for a symbol with an exact domain match
6749         Otherwise, return any previously found "best domain" symbol.
6750         (block_lookup_symbol_primary): Likewise.
6751
6752 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6753
6754         * NEWS: Mention the new option "history remove-duplicates".
6755         * top.c (history_remove_duplicates): New static variable.
6756         (show_history_remove_duplicates): New static function.
6757         (gdb_add_history): Conditionally remove duplicate history
6758         entries.
6759         (init_main): Add "history remove-duplicates" option.
6760
6761 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6762
6763         * tui/tui-win.c (focus_completer): New static function.
6764         (_initialize_tui_win): Set the completion function of the
6765         "focus" command to focus_completer.
6766
6767 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6768
6769         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6770         and language_asm..
6771         * symtab.c (find_function_start_sal): Likewise.
6772
6773 2015-06-25  Gary Benson  <gbenson@redhat.com>
6774
6775         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6776         it is the empty string after trailing slashes have been stripped.
6777
6778 2015-06-25  Gary Benson  <gbenson@redhat.com>
6779
6780         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6781         * infrun.c (follow_exec): Likewise.
6782         * remote.c (remote_filesystem_is_local): Likewise.
6783         * solib.c (solib_find_1): Likewise.
6784
6785 2015-06-24  Keith Seitz  <keiths@redhat.com>
6786
6787         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6788         return value from lrealpath.
6789
6790 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6791
6792         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6793
6794 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6795
6796         * remote-sim.c: Include gdb_bfd.h.
6797         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6798         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6799
6800 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6801
6802         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6803         set_gdbarch_get_siginfo_type.
6804         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6805         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6806         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6807         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6808         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6809         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6810         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6811         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6812         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6813         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6814
6815 2015-06-24  Gary Benson  <gbenson@redhat.com>
6816
6817         * common/buffer.c (stdint.h): Do not include.
6818         * common/print-utils.c (stdint.h): Likewise.
6819         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6820         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6821         * ft32-tdep.c (gdb_assert.h): Likewise.
6822         * guile/scm-utils.c (stdint.h): Likewise.
6823         * i386-linux-tdep.c (stdint.h): Likewise.
6824         * i386-tdep.c (stdint.h): Likewise.
6825         * nat/linux-btrace.c (stdint.h): Likewise.
6826         * nat/linux-btrace.h (stdint.h): Likewise.
6827         * nat/linux-ptrace.c (stdint.h): Likewise.
6828         * nat/mips-linux-watch.h (stdint.h): Likewise.
6829         * ppc-linux-nat.c (stdint.h): Likewise.
6830         * python/python-internal.h (stdint.h): Likewise.
6831         * stub-termcap.c (stdlib.h): Likewise.
6832         * target/target.h (stdint.h): Likewise.
6833         * xtensa-linux-nat.c (stdint.h): Likewise.
6834
6835 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6836
6837         * top.c (init_history): Look at errno after calling strtol to
6838         properly map large GDBHISTSIZE values to infinity.
6839
6840 2015-06-23  Doug Evans  <dje@google.com>
6841
6842         * inferior.h (struct inferior_suspend_state): Delete, unused.
6843         All references deleted.
6844
6845 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6846
6847         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6848         (microblaze_push_dummy_call): Likewise.
6849         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6850         and set_gdbarch_push_dummy_call.
6851
6852 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6853
6854         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6855         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6856         (amd64_linux_store_inferior_registers): Likewise.
6857         * arm-linux-nat.c (fetch_fpregister): Likewise.
6858         (fetch_fpregs, store_fpregister): Likewise.
6859         (store_fpregister, store_fpregs): Likewise.
6860         (fetch_register, fetch_regs): Likewise.
6861         (store_register, store_regs): Likewise.
6862         (fetch_vfp_regs, store_vfp_regs): Likewise.
6863         (arm_linux_read_description): Check have_ptrace_getregset is
6864         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
6865         or TRIBOOL_FALSE.
6866         * i386-linux-nat.c (fetch_xstateregs): Check
6867         have_ptrace_getregset is not TRIBOOL_TRUE.
6868         (store_xstateregs): Likewise.
6869         * linux-nat.c (have_ptrace_getregset): Change its type to
6870         enum tribool.
6871         * linux-nat.h (tribool): New enum.
6872         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6873         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6874
6875 2015-06-19  Doug Evans  <dje@google.com>
6876
6877         * NEWS: Mention Sun's version of stabs is no longer supported.
6878         * elfread.c (free_elfinfo): Delete.  All uses updated.
6879         (elfstab_offset_sections): Delete.  All uses updated.
6880         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
6881         * psympriv.h (partial_symtab) <section_offsets>: Delete.
6882         All uses updated.
6883         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6884         All callers updated.
6885
6886 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
6887
6888         * common/rsp-low.c (needs_escaping): New.
6889         (remote_escape_output): Add unit_size parameter. Refactor to
6890         support multi-byte addressable units.  Rename parameters.
6891         * common/rsp-low.h (remote_escape_output): Add unit_size
6892         parameter and rename others. Update doc.
6893         * remote.c (align_for_efficient_write): New.
6894         (remote_write_bytes_aux): Add unit_size parameter and use it.
6895         Rename some variables.  Update doc.
6896         (remote_xfer_partial): Get unit size and use it.
6897         (remote_read_bytes_1): Add unit_size parameter and use it.
6898         Rename some variables. Update doc.
6899         (remote_write_bytes): Same.
6900         (remote_xfer_live_readonly_partial): Same.
6901         (remote_read_bytes): Same.
6902         (remote_flash_write): Update call to remote_write_bytes_aux.
6903         (remote_write_qxfer): Update call to remote_escape_output.
6904         (remote_search_memory): Same.
6905         (remote_hostio_pwrite): Same.
6906
6907 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6908
6909         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6910         locations as inserted.
6911         Update and expand comment about permanent locations.
6912         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6913         Move comment to add_location_to_breakpoint.
6914         (update_global_location_list): Don't error out if a permanent
6915         breakpoint is not marked inserted.
6916         Don't error out if a non-permanent breakpoint location is inserted on
6917         top of a permanent breakpoint.
6918
6919 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6920
6921         * breakpoint.c (make_breakpoint_permanent): Remove unused
6922         function.
6923         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6924
6925 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6926
6927         PR gdb/16999
6928         * NEWS: Mention new GDBHISTSIZE behavior.
6929         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6930         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
6931
6932 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6933
6934         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6935         * top.c (init_history): Read from GDBHISTSIZE instead of
6936         HISTSIZE.
6937         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6938
6939 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6940
6941         * top.c (gdb_safe_append_history): Do not call
6942         history_truncate_file if the history is not stifled.
6943
6944 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6945
6946         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6947         * syscalls/s390x-linux.xml: Likewise.
6948
6949 2015-06-16  Michael Eager  <eager@eagercon.com>
6950
6951         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6952
6953 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
6954
6955         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6956         target_terminal_ours_for_output() before calling
6957         tui_show_frame_info(), and restore the original terminal
6958         settings afterwards.
6959
6960 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
6961
6962         * arm-linux-nat.c: Include nat/linux-ptrace.h.
6963
6964 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6965
6966         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6967         memory unit size.
6968         (mi_cmd_data_write_memory_bytes): Same.
6969
6970 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6971
6972         * corefile.c (write_memory): Update doc.
6973         * gdbcore.h (write_memory): Same.
6974
6975 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6976
6977         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6978         (dump_mapping_p): Use it for parameter filterflags.
6979         (linux_find_memory_regions_full): Use it for variable filterflags.
6980
6981 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6982             Jan Kratochvil  <jan.kratochvil@redhat.com>
6983
6984         Merge multiple hex conversions.
6985         * monitor.c: Include rsp-low.h.
6986         (fromhex): Remove definition.
6987
6988 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6989             Jan Kratochvil  <jan.kratochvil@redhat.com>
6990
6991         Move utility functions to common/.
6992         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6993         Move defs to common/common-utils.c.
6994         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6995         (skip_to_space_const): Move decls to common/common-utils.h.
6996         * common/common-defs.h: Move include of common-types.h before
6997         common-utils.h.
6998         * common/common-utils.c: Include host-defs.h and ctype.h.
6999         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7000         from utils.c.
7001         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7002         cli/cli-utils.c.
7003         * common/common-utils.h (strtoulst): Move decl from utils.h.
7004         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7005         Move from cli/cli-utils.h.
7006         * common/host-defs.h: Include limits.h.
7007         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7008         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7009         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7010         common/common-utils.h.
7011         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7012         (strtoulst): Move to common/common-utils.c.
7013         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7014
7015 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7016
7017         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7018
7019 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7020
7021         * build-id.c: Don't include elf-bfd.h.
7022         (build_id_bfd_get): Use bfd_build_id.
7023         (build_id_verify): Ditto.
7024         * build-id.h: Ditto.
7025         (find_separate_debug_file_by_buildid): Ditto.
7026         * python/py-objfile.c: Don't include elf-bfd.h.
7027         (objfpy_get_build_id) Use bfd_build_id.
7028         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7029         * coffread.c: Include build-id.h.
7030         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7031
7032 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7033
7034         * windows-nat.c (do_windows_fetch_inferior_registers)
7035         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7036         conditional with __CYGWIN__.
7037
7038 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7039
7040         * completer.c: Add arch-utils.h include.
7041         (enum reg_completer_targets): New enum.
7042         (reg_or_group_completer_1): New function containing old
7043         reg_or_group_completer, add and use new parameter to control what
7044         is completed on.  Use get_current_arch rather than architecture of
7045         currently selected frame.
7046         (reg_or_group_completer): Call new reg_or_group_completer_1.
7047         (reggroup_completer): Call new reg_or_group_completer_1.
7048         * completer.h (reggroup_completer): Add declaration.
7049         * tui/tui-regs.c: Add 'completer.h' include.
7050         (tui_reg_next_command): Renamed to...
7051         (tui_reg_next): ...this.  Adjust parameters and return rather than
7052         display new group.
7053         (tui_reg_prev_command): Renamed to...
7054         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7055         display new group.
7056         (tui_reg_float_command): Delete.
7057         (tui_reg_general_command): Delete.
7058         (tui_reg_system_command): Delete.
7059         (tui_reg_command): Rewrite to perform switching of register group.
7060         Add header comment.
7061         (tuireglist): Remove.
7062         (tui_reggroup_completer): New function.
7063         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7064         creation of 'tui reg' command.
7065         * NEWS: Add comment about 'tui reg' changes.
7066
7067 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7068
7069         * target.c (target_read): Consider addressable unit size when
7070         reading from a memory object.
7071         (read_memory_robust): Same.
7072         (read_whatever_is_readable): Same.
7073         (target_write_with_progress): Consider addressable unit size
7074         when writing to a memory object.
7075         * target.h (target_read): Update documentation.
7076         (target_write): Add documentation.
7077
7078 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7079
7080         * arch-utils.h (default_addressable_memory_unit_size): New.
7081         * arch-utils.c (default_addressable_memory_unit_size): New.
7082         * gdbarch.sh (addressable_memory_unit_size): New.
7083         * gdbarch.h: Re-generate.
7084         * gdbarch.c: Re-generate.
7085
7086 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7087
7088         * target.c (target_read): Rename variables and use
7089         TARGET_XFER_E_IO.
7090         (target_read_with_progress): Same.
7091         (read_memory_robust): Constify parameters and rename
7092         variables.
7093         (read_whatever_is_readable): Constify parameters,
7094         rename variables, adjust formatting.
7095         * target.h (read_memory_robust): Constify parameters.
7096
7097 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7098
7099         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7100         synthetic (non-AltiVec) vector types.
7101         (ppc64_sysv_abi_return_value): Likewise.
7102
7103 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7104
7105         PR breakpoints/16465
7106         * breakpoint.c (create_breakpoint): Save extra_string for
7107         pending breakpoints.
7108
7109 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7110
7111         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7112         and bt_mask to CORE_ADDR.
7113
7114 2015-06-11  Gary Benson <gbenson@redhat.com>
7115
7116         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7117         (mnsh_recv_message): Likewise.
7118
7119 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7120
7121         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7122         long long int and plongest instead of %ll.
7123
7124 2015-06-11  Gary Benson <gbenson@redhat.com>
7125
7126         * nat/linux-namespaces.c (gdb_wait.h): New include.
7127         (sys/wait.h): Do not include.
7128
7129 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7130
7131         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7132         end_sequence is true.
7133
7134 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7135
7136         Code cleanup.
7137         * solib-target.c (library_list_start_list): Use explicit NULL
7138         comparison.
7139
7140 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7141
7142         * solib-target.c (library_list_start_list): Do not dereference
7143         variable version in its initialization.  Make the VERSION check handle
7144         NULL.
7145         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7146
7147 2015-06-10  Gary Benson <gbenson@redhat.com>
7148
7149         * NEWS: Announce support for direct access of executable and
7150         shared library files when attaching to inferiors in containers
7151         on GNU/Linux systems.
7152
7153 2015-06-10  Gary Benson <gbenson@redhat.com>
7154
7155         * remote.c (struct remote_state) <fs_pid>: New field.
7156         (new_remote_state): Initialize the above.
7157         (PACKET_vFile_setfs): New enum value.
7158         (remote_hostio_set_filesystem): New function.
7159         (remote_hostio_open): Call the above.
7160         (remote_hostio_unlink): Likewise.
7161         (remote_hostio_readlink): Likewise.
7162         (_initialize_remote): Register new "set/show remote
7163         hostio-setfs-packet" command.
7164         * NEWS: Announce new vFile:setfs packet.
7165
7166 2015-06-10  Gary Benson <gbenson@redhat.com>
7167
7168         * linux-nat.c (nat/linux-namespaces.h): New include.
7169         (fileio.h): Likewise.
7170         (linux_nat_filesystem_is_local): New function.
7171         (linux_nat_fileio_pid_of): Likewise.
7172         (linux_nat_fileio_open): Likewise.
7173         (linux_nat_fileio_readlink): Likewise.
7174         (linux_nat_fileio_unlink): Likewise.
7175         (linux_nat_add_target): Initialize to_filesystem_is_local,
7176         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7177         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7178         commands.
7179         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7180
7181 2015-06-10  Gary Benson <gbenson@redhat.com>
7182
7183         * target.h (struct inferior): New forward declaration.
7184         (struct target_ops) <to_filesystem_is_local>: Update comment.
7185         (struct target_ops) <to_fileio_open>: New argument inf.
7186         Update comment.  All implementations updated.
7187         (struct target_ops) <to_fileio_unlink>: Likewise.
7188         (struct target_ops) <to_fileio_readlink>: Likewise.
7189         (target_filesystem_is_local): Update comment.
7190         (target_fileio_open): New argument inf.  Update comment.
7191         (target_fileio_unlink): Likewise.
7192         (target_fileio_readlink): Likewise.
7193         (target_fileio_read_alloc): Likewise.
7194         (target_fileio_read_stralloc): Likewise.
7195         * target.c (target_fileio_open): New argument inf.
7196         Pass inf to implementation.  Update debug printing.
7197         (target_fileio_unlink): Likewise.
7198         (target_fileio_readlink): Likewise.
7199         (target_fileio_read_alloc_1): New argument inf. Pass inf
7200         to target_fileio_open.
7201         (target_fileio_read_alloc): New argument inf. Pass inf to
7202         target_fileio_read_alloc_1.
7203         (target_fileio_read_stralloc): Likewise.
7204         * gdb_bfd.c (inferior.h): New include.
7205         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7206         argument with new argument "inferior".  Pass inferior to
7207         target_fileio_open.
7208         (gdb_bfd_open): Supply inferior argument to
7209         gdb_bfd_iovec_fileio_open.
7210         * linux-tdep.c (linux_info_proc): Supply inf argument to
7211         relevant target_fileio calls.
7212         (linux_find_memory_regions_full): Likewise.
7213         (linux_fill_prpsinfo): Likewise.
7214         * remote.c (remote_filesystem_is_local): Supply inf
7215         argument to remote_hostio_open.
7216         (remote_file_put): Likewise.
7217         (remote_file_get): Likewise.
7218         (remote_file_delete): Supply inf argument to
7219         remote_hostio_unlink.
7220
7221 2015-06-10  Gary Benson <gbenson@redhat.com>
7222
7223         * inf-child.c (inf_child_fileio_open): Replace comment.
7224         (inf_child_fileio_pwrite): Likewise.
7225         (inf_child_fileio_pread): Likewise.
7226         (inf_child_fileio_fstat): Insert blank line before comment.
7227         (inf_child_fileio_close): Replace comment.
7228         (inf_child_fileio_unlink): Likewise.
7229         (inf_child_fileio_readlink): Likewise.
7230         * remote.c (remote_hostio_open): Likewise.
7231         (remote_hostio_pread): Likewise.
7232         (remote_hostio_pwrite): Likewise.
7233         (remote_hostio_close): Likewise.
7234         (remote_hostio_unlink): Likewise.
7235         (remote_hostio_readlink): Likewise.
7236         (remote_hostio_fstat): Likewise.
7237         (remote_filesystem_is_local): Likewise.
7238         * target.c (target_fileio_open): Likewise.
7239         (target_fileio_pwrite): Likewise.
7240         (target_fileio_pread): Likewise.
7241         (target_fileio_fstat): Insert blank line before comment.
7242         (target_fileio_close): Replace comment.
7243         (target_fileio_unlink): Likewise.
7244         (target_fileio_readlink): Likewise.
7245         (target_fileio_read_alloc): Likewise.
7246         (target_fileio_read_stralloc): Likewise.
7247
7248 2015-06-10  Gary Benson <gbenson@redhat.com>
7249
7250         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7251         (check_pid_namespace_match): Use linux_ns_same rather than
7252         linux_proc_pid_get_ns to spot PID namespace mismatches.
7253         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7254         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7255
7256 2015-06-10  Gary Benson <gbenson@redhat.com>
7257
7258         * configure.ac (AC_CHECK_FUNCS): Add setns.
7259         * config.in: Regenerate.
7260         * configure: Likewise.
7261         * nat/linux-namespaces.h: New file.
7262         * nat/linux-namespaces.c: Likewise.
7263         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7264         (linux-namespaces.o): New rule.
7265         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7266         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7267         * config/arm/linux.mh (NATDEPFILES): Likewise.
7268         * config/i386/linux.mh (NATDEPFILES): Likewise.
7269         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7270         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7271         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7272         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7273         * config/mips/linux.mh (NATDEPFILES): Likewise.
7274         * config/pa/linux.mh (NATDEPFILES): Likewise.
7275         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7276         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7277         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7278         * config/s390/linux.mh (NATDEPFILES): Likewise.
7279         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7280         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7281         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7282         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7283
7284 2015-06-10  Gary Benson <gbenson@redhat.com>
7285
7286         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7287         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7288         (make_cleanup_close): Likewise.
7289         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7290         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7291         (make_cleanup_close): Likewise.
7292
7293 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7294
7295         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7296         from SuspendThread().
7297
7298 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7299
7300         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7301         from OutputDebugString.
7302
7303 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7304                         Mircea Gherzan  <mircea.gherzan@intel.com>
7305
7306         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7307         MPX_BT_MASK_32): New macros.
7308         (i386_mpx_set_bounds): New function that implements
7309         the command "set-mpx-bound".
7310         (i386_mpx_enabled): Helper function to test MPX availability.
7311         (i386_mpx_bd_base): Helper function to calculate the base directory
7312         address.
7313         (i386_mpx_get_bt_entry): Helper function to access a bound
7314         table entry.
7315         (i386_mpx_print_bounds): Effectively display bound information.
7316         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7317         "show mpx".
7318         (_initialize_i386_tdep):
7319         Add "bound" to the commands "show mpx" and "set mpx" commands.
7320         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7321         and "show mpx" commands.
7322         * NEWS: List new commands for MPX support.
7323
7324 2015-06-09  Gary Benson <gbenson@redhat.com>
7325
7326         * common/fileio.h (fileio_to_host_mode): New declaration.
7327         * common/fileio.c (fileio_to_host_mode): New Function.
7328         * inf-child.c (inf_child_fileio_open): Process mode argument
7329         with fileio_to_host_mode.
7330
7331 2015-06-09  Gary Benson <gbenson@redhat.com>
7332
7333         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7334         conditional.
7335
7336 2015-06-05  Gary Benson <gbenson@redhat.com>
7337
7338         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7339         * remote.c (remote_filesystem_is_local): ...here.
7340
7341 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7342
7343         * gdbarch.c: Regenerate it.
7344
7345 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7346
7347         * arch-utils.c (default_infcall_munmap): New.
7348         * arch-utils.h (default_infcall_munmap): New declaration.
7349         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7350         (munmap_list_free, munmap_listp_free_cleanup): New.
7351         (struct setup_sections_data): Add field munmap_list_headp.
7352         (setup_sections): Call munmap_list_add.
7353         (compile_object_load): New variable munmap_list_head, initialize
7354         setup_sections_data.munmap_list_headp, return munmap_list_head.
7355         * compile/compile-object-load.h (struct munmap_list): New declaration.
7356         (struct compile_module): Add field munmap_list_head.
7357         (munmap_list_free): New declaration.
7358         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7359         munmap_list_head.
7360         (do_module_cleanup): Call munmap_list_free.
7361         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7362         * gdbarch.c: Regenerate.
7363         * gdbarch.h: Regenerate.
7364         * gdbarch.sh (infcall_munmap): New.
7365         * linux-tdep.c (linux_infcall_munmap): New.
7366         (linux_init_abi): Install it.
7367
7368 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7369
7370         PR gdb/15564
7371         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7372
7373 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7374
7375         * i386-linux-nat.c: Include linux-nat.h.
7376
7377 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7378             Jan Kratochvil  <jan.kratochvil@redhat.com>
7379
7380         PR symtab/18392
7381         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7382         assertion.
7383         * dwarf2loc.c (chain_candidate): Likewise.
7384
7385 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7386
7387         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7388         (store_vfp_regs): Use PTRACE_SETREGSET.
7389
7390 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7391
7392         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7393         (fetch_fpregs): Likewise.
7394         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7395         (store_fpregs): Likewise.
7396
7397 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7398
7399         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7400         (fetch_regs): Likewise.
7401         (store_regs): Use PTRACE_SETREGSET.
7402         (store_register): Likewise.
7403
7404 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7405
7406         * arm-linux-nat.c (arm_linux_read_description): Check whether
7407         kernel supports PTRACE_GETREGSET.
7408
7409 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7410
7411         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7412         * linux-nat.c: ... here.
7413         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7414         to ...
7415         * linux-nat.h: ... here.
7416
7417 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7418
7419         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7420         * i386-linux-nat.c: Likewise.
7421         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7422         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7423         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7424         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7425         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7426
7427 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7428
7429         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7430         compatible to what read_child and write_child return.  This
7431         unbreaks that DJGPP build of GDB which was broken since v7.7.
7432
7433 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7434
7435         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7436
7437 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7438
7439         PR gdb/18464
7440         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7441         rather than internal_error for an unrecognized value.
7442
7443 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7444
7445         * xtensa-tdep.c (xtensa_pseudo_register_read)
7446         (xtensa_pseudo_register_write): Don't alias last pseudo register
7447         to a1.
7448
7449 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7450
7451         * infrun.c (follow_fork_inferior): Ensure the use of
7452         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7453         messages.
7454
7455 2015-05-28  Doug Evans  <dje@google.com>
7456
7457         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7458
7459 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7460
7461         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7462         (arm_linux_fetch_inferior_registers): Use
7463         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7464         (arm_linux_store_inferior_registers): Likewise.
7465         (arm_linux_read_description): Don't set
7466         arm_linux_has_wmmx_registers.
7467         * arm-tdep.c (arm_gdbarch_init): Set
7468         tdep->have_wmmx_registers according target descriptions.
7469         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7470         field.
7471
7472 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7473
7474         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7475         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7476         instead of arm_linux_vfp_register_count.
7477         (store_vfp_regs): Likewise.
7478         (arm_linux_fetch_inferior_registers): Likewise.
7479         (arm_linux_store_inferior_registers): Likewise.
7480         (arm_linux_read_description): Don't set
7481         arm_linux_vfp_register_count.
7482         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7483         Adjust.
7484         * arm-tdep.c (arm_gdbarch_init): Add assert on
7485         vfp_register_count.
7486         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7487         field to vfp_register_count.  All users updated.
7488
7489 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7490
7491         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7492         ELFOSABI_GNU binaries.
7493
7494 2015-05-27  Doug Evans  <dje@google.com>
7495
7496         * dwarf2read.c (lnp_state_machine): New typedef.
7497         (lnp_reader_state): New typedef.
7498         (dwarf_record_line_1): Renamed from dwarf_record_line.
7499         All callers updated.
7500         (dwarf_record_line): New function.
7501         (init_lnp_state_machine): New function.
7502         (check_line_address): Replace p_record_line parameter with state.
7503         All callers updated.
7504         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7505         Update to record state in lnp_state_machine.
7506
7507 2015-05-27  Doug Evans  <dje@google.com>
7508
7509         * dwarf2read.c (record_line_ftype): New typedef.
7510         (check_line_address): New function.
7511         (dwarf_decode_lines_1): Call it.
7512
7513 2015-05-27  Doug Evans  <dje@google.com>
7514
7515         * NEWS: Mention "set debug dwarf-line".
7516         * dwarf2read.c (dwarf_line_debug): New static global.
7517         (add_include_dir): Add debug dwarf-line support.
7518         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7519         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7520
7521 2015-05-27  Doug Evans  <dje@google.com>
7522
7523         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7524         All callers updated.
7525         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7526         * cp-support.h (cp_lookup_nested_symbol): Update.
7527
7528 2015-05-27  Doug Evans  <dje@google.com>
7529
7530         PR symtab/18258
7531         * block.c (block_find_symbol): New function.
7532         (block_find_non_opaque_type): Ditto.
7533         (block_find_non_opaque_type_preferred): Ditto.
7534         * block.h (block_symbol_matcher_ftype): New typedef.
7535         (block_find_symbol): Declare.
7536         (block_find_non_opaque_type): Ditto.
7537         (block_find_non_opaque_type_preferred): Ditto.
7538         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7539         * psymtab.c (psym_lookup_symbol): Ditto.
7540         * symtab.c (basic_lookup_transparent_type_1): New function.
7541         (basic_lookup_transparent_type): Call it.
7542
7543 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7544
7545         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7546         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7547
7548 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7549
7550         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7551         before operator &&.
7552         (aarch64_record_load_store): Likewise.
7553
7554 2015-05-26  Doug Evans  <dje@google.com>
7555
7556         PR c++/18141, c++/18417.
7557         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7558         a typedef.
7559
7560 2015-05-26  Doug Evans  <dje@google.com>
7561
7562         * NEWS: Add entries for command renamings.
7563         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7564         All uses updated.
7565         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7566         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7567         All uses updated.
7568         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7569         All callers updated.  Fix spelling of DWARF in help text.
7570         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7571         All uses updated.
7572         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7573         All uses updated.
7574         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7575         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7576         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7577         All uses updated.
7578         (show_dwarf_always_disassemble): Renamed from
7579         show_dwarf2_always_disassemble.  All callers updated.
7580         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7581         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7582         "set/show dwarf max-cache-age".  Rename
7583         "set/show dwarf2 always-disassemble" to
7584         "set/show dwarf always-disassemble".  Rename
7585         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7586         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7587
7588 2015-05-26  Doug Evans  <dje@google.com>
7589
7590         PR python/18438
7591         * python/py-lazy-string.c (stpy_convert_to_value): Use
7592         gdbpy_gdb_memory_error not PyExc_MemoryError.
7593         (gdbpy_create_lazy_string_object): Ditto.
7594
7595 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7596
7597         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7598
7599 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7600
7601         * tui/tui-regs.c (tui_reg_prev_command): New function.
7602         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7603         * reggroups.c (reggroup_prev): New function.
7604         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7605
7606 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7607             Yao Qi  <yao.qi@linaro.org>
7608
7609         * aarch64-linux-tdep.c: Include linux-record.h and
7610         record-full.h.
7611         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7612         (aarch64_syscall): New enum.
7613         (aarch64_canonicalize_syscall): New function.
7614         (aarch64_all_but_pc_registers_record): New function.
7615         (aarch64_linux_syscall_record): New function.
7616         (aarch64_linux_init_abi): Install AArch64 process record
7617         handler.  Update to handle syscall recording.
7618         * aarch64-tdep.c: Include record.h and record-full.h.
7619         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7620         (struct aarch64_mem_r): Define.
7621         (aarch64_record_result): New enum.
7622         (struct insn_decode_record): Define.
7623         (insn_decode_record): New typedef.
7624         (aarch64_record_data_proc_reg): New function.
7625         (aarch64_record_data_proc_imm): New function.
7626         (aarch64_record_branch_except_sys): New function.
7627         (aarch64_record_load_store): New function.
7628         (aarch64_record_data_proc_simd_fp): New function.
7629         (aarch64_record_asimd_load_store): New function.
7630         (aarch64_record_decode_insn_handler): New function.
7631         (deallocate_reg_mem): New function.
7632         (aarch64_process_record): New function.
7633         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7634         New field.
7635         (aarch64_process_record): New extern declaration.
7636         * configure.tgt: Add linux-record.o to gdb_target_obs.
7637         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7638
7639 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7640
7641         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7642         targets.
7643
7644 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7645
7646         * amd64-tdep.c: Replace in_function_epilogue_p with
7647         stack_frame_destroyed_p throughout.
7648         * arch-utils.c: Ditto.
7649         * arch-utils.h: Ditto.
7650         * arm-tdep.c: Ditto.
7651         * breakpoint.c: Ditto.
7652         * gdbarch.sh: Ditto.
7653         * hppa-tdep.c: Ditto.
7654         * i386-tdep.c: Ditto.
7655         * mips-tdep.c: Ditto.
7656         * nios2-tdep.c: Ditto.
7657         * rs6000-tdep.c: Ditto.
7658         * s390-linux-tdep.c: Ditto.
7659         * score-tdep.c: Ditto.
7660         * sh-tdep.c: Ditto.
7661         * sparc-tdep.c: Ditto.
7662         * sparc-tdep.h: Ditto.
7663         * sparc64-tdep.c: Ditto.
7664         * spu-tdep.c: Ditto.
7665         * tic6x-tdep.c: Ditto.
7666         * tilegx-tdep.c: Ditto.
7667         * xstormy16-tdep.c: Ditto.
7668         * gdbarch.c, gdbarch.h: Re-generated.
7669
7670 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7671
7672         * NEWS: Mention 'tui enable' and 'tui disable'.
7673         * tui/tui.c (tui_enable_command): New function.
7674         (tui_disable_command): New function.
7675         (_initialize_tui): New function.
7676
7677 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7678
7679         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7680
7681 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7682
7683         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7684         buf_ptr is freed.
7685
7686 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7687
7688         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7689         into ...
7690         (tui_set_layout_for_display_command): ...here, before calling
7691         tui_set_layout.  Only set the layout if gdb has not already
7692         entered the TUI_FAILURE state.
7693
7694 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7695
7696         * tui/tui-layout.c (layout_completer): New function.
7697         (_initialize_tui_layout): Set completer on layout command.
7698
7699 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7700
7701         * tui/tui-layout.c (tui_set_layout): Remove
7702         tui_register_display_type parameter.  Remove all checking of this
7703         parameter, and reindent function.  Update header comment.
7704         (tui_set_layout_for_display_command): Rename to...
7705         (tui_set_layout_by_name): ...this, and don't check for different
7706         register class types, don't pass a tui_register_display_type to
7707         tui_set_layout.  Update header comment.
7708         (layout_names): Remove register set specific names.
7709         * tui/tui-layout.h (tui_set_layout): Remove
7710         tui_register_display_type parameter.
7711         * tui/tui.c (tui_rl_change_windows): Don't pass a
7712         tui_register_display_type to tui_set_layout.
7713         (tui_rl_delete_other_windows): Likewise.
7714         (tui_enable): Likewise.
7715         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7716         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7717         (TUI_GENERAL_REGS_NAME): Remove.
7718         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7719         (TUI_SPECIAL_REGS_NAME): Remove.
7720         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7721         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7722         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7723         (enum tui_register_display_type): Remove.
7724         (struct tui_layout_def): Remove regs_display_type and
7725         float_regs_display_type fields.
7726         (struct tui_data_info): Remove regs_display_type field.
7727         (tui_layout_command): Use new name for
7728         tui_set_layout_for_display_command.
7729         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7730         (tui_clear_win_detail): Don't initialise removed fields of
7731         win_info.
7732         * tui/tui-regs.c (tui_show_registers): Use new name for
7733         tui_set_layout_for_display_command.
7734         * tui/tui.h (tui_set_layout_for_display_command): Rename
7735         declaration to...
7736         (tui_set_layout_by_name): ...this.
7737         * printcmd.c (display_command): Remove tui related layout call,
7738         and reindent.
7739
7740 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7741
7742         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7743         (handle_inferior_event): New function.
7744
7745 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7746
7747         * ada-lang.c (to_fixed_array_type): Rename local variable
7748         typename into type_name.
7749
7750 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7751
7752         Fix ASAN crash for gdb.compile/compile.exp.
7753         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7754
7755 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7756
7757         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7758         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7759         * compile/compile-object-load.c (setup_sections, compile_object_load):
7760         Likewise.
7761         * compile/compile.c (compile_to_object): Likewise.
7762
7763 2015-05-16  Doug Evans  <xdje42@gmail.com>
7764
7765         * NEWS: Mention support for unbuffered Guile memory ports.
7766         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7767         (ioscm_lseek_address): Improve overflow calculation.
7768         (gdbscm_memory_port_fill_input): Add assert.
7769         (gdbscm_memory_port_write): Handle unbuffered ports.
7770         Handle large writes identical to Guile's fport_write.
7771         (gdbscm_memory_port_seek): Fix seeking past end check.
7772         (gdbscm_memory_port_close): Handle closing unbuffered port.
7773         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7774         (ioscm_init_memory_port): Handle unbuffered ports.
7775         (ioscm_reinit_memory_port): Ditto.
7776         (ioscm_init_memory_port): Update size calculation.
7777         (gdbscm_open_memory): Support zero sized ports.
7778
7779 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7780
7781         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7782         variable compiler warnings.
7783
7784 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7785
7786         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7787
7788 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7789             Phil Muldoon  <pmuldoon@redhat.com>
7790
7791         * NEWS (Changes since GDB 7.9): Add compile print.
7792         * compile/compile-c-support.c (add_code_header, add_code_footer)
7793         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7794         COMPILE_I_PRINT_VALUE_SCOPE.
7795         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7796         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7797         New.
7798         * compile/compile-object-load.c: Include block.h.
7799         (get_out_value_type): New function.
7800         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7801         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7802         OUT_VALUE_TYPE.
7803         * compile/compile-object-load.h (struct compile_module): Add fields
7804         out_value_addr and out_value_type.
7805         * compile/compile-object-run.c: Include valprint.h and compile.h.
7806         (struct do_module_cleanup): Add fields out_value_addr and
7807         out_value_type.
7808         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7809         COMPILE_I_PRINT_VALUE_SCOPE.
7810         (compile_object_run): Propagate out_value_addr and out_value_type.
7811         Pass OUT_VALUE_ADDR.
7812         * compile/compile.c: Include valprint.h.
7813         (compile_print_value, compile_print_command): New functions.
7814         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7815         (_initialize_compile): Update compile code help text.  Install
7816         compile_print_command.
7817         * compile/compile.h (compile_print_value): New prototype.
7818         * defs.h (enum compile_i_scope_types): Add
7819         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7820
7821 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7822
7823         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7824         Rely on its parameter count.
7825         (compile_object_load): Replace lookup_minimal_symbol_text by
7826         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7827         return value.
7828         * compile/compile-object-load.h (struct compile_module): Replace
7829         func_addr by func_sym.
7830         * compile/compile-object-run.c: Include block.h.
7831         (compile_object_run): Reset module variable after it is freed.  Use
7832         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7833
7834 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7835
7836         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7837         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7838         (c_compute_program): Call generate_register_struct after typedefs.
7839         * compile/compile-loc2c.c (push, pushf_register_address)
7840         (pushf_register): Cast to GCC_UINTPTR.
7841         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7842         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7843         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7844         * compile/compile.c (_initialize_compile): Enable warnings for
7845         COMPILE_ARGS.
7846
7847 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7848
7849         * cli/cli-script.c (execute_control_command): Update
7850         eval_compile_command caller.
7851         * compile/compile-object-load.c (compile_object_load): Add parameters
7852         scope and scope_data.  Set them.
7853         * compile/compile-object-load.h (struct compile_module): Add fields
7854         scope and scope_data.
7855         (compile_object_load): Add parameters scope and scope_data.
7856         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7857         scope and scope_data.
7858         (compile_object_run): Propagate the fields scope and scope_data.
7859         * compile/compile.c (compile_file_command, compile_code_command):
7860         Update eval_compile_command callers.
7861         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
7862         * compile/compile.h (eval_compile_command): Add parameter scope_data.
7863         * defs.h (struct command_line): Add field scope_data.
7864
7865 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7866
7867         * printcmd.c (struct format_data): Move it to valprint.h.
7868         (print_command_parse_format, print_value): New functions from ...
7869         (print_command_1): ... here.  Call them.
7870         * valprint.h (struct format_data): Move it here from printcmd.c.
7871         (print_command_parse_format, print_value): New declarations.
7872
7873 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7874
7875         * compile/compile-object-load.c (compile_object_load): Add
7876         COMPILE_DEBUG message.
7877
7878 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7879
7880         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7881         index to get element instead of enum value.
7882         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7883         of index to compute length, but enum values to compute bounds.
7884         (ada_array_length): Use enum position of index instead of enum value.
7885         (pos_atr): Move position computation to...
7886         (ada_evaluate_subexp): Use enum values to compute bounds.
7887         * gdbtypes.c (discrete_position): ...this new function.
7888         * gdbtypes.h (discrete_position): New function declaration.
7889         * valprint.c (val_print_array_elements): Call discrete_position
7890         to handle array indexed by non-contiguous enumeration types.
7891
7892 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7893
7894         * ada-lang.c (find_parallel_type_by_descriptive_type):
7895         Go through typedefs during lookup.
7896         (to_fixed_array_type): Add support for non-bit packed arrays
7897         as variable-length fields.
7898
7899 2015-05-15  Pedro Alves  <palves@redhat.com>
7900             Simon Marchi  <simon.marchi@ericsson.com>
7901
7902         * event-loop.c (gdb_notifier) <next_file_handler,
7903         next_poll_fds_index>: New fields.
7904         (get_next_file_handler_to_handle_and_advance): New function.
7905         (delete_file_handler): If deleting the next file handler to
7906         handle, advance to the next file handler.
7907         (gdb_wait_for_event): Bail early if no event fired.  Poll file
7908         handlers in round-robin fashion.
7909
7910 2015-05-15  Pedro Alves  <palves@redhat.com>
7911
7912         * linux-tdep.c (linux_find_memory_regions_full): Rename local
7913         'private' to 'priv'.
7914
7915 2015-05-15  Pedro Alves  <palves@redhat.com>
7916
7917         * nat/linux-nat.h: Include "target/waitstatus.h".
7918
7919 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
7920
7921         * python/py-unwind.c (struct reg_info): Move out of ...
7922         (struct cached_frame_info): ... this scope.
7923         (pending_frame_object_type, unwind_info_object_type): Make extern.
7924
7925 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
7926
7927         * ada-lang.c (ada_value_primitive_packed_val): Make sure
7928         accumSize is never negative.
7929
7930 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
7931
7932         * tui/tui-command.c: Remove include of <ctype.h>.
7933         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7934
7935 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
7936
7937         * dwarf2read.c (die_needs_namespace): Return 1 for
7938         DW_TAG_inlined_subroutine.
7939
7940 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7941
7942         * regcache.c (regcache_cpy_no_passthrough): New declaration.
7943         (regcache_cpy_no_passthrough): Make it static, add function comment.
7944         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7945         (regcache_cpy_no_passthrough): Remove declaration.
7946
7947 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7948
7949         * gdbthread.h (struct thread_control_state): Update comment for
7950         proceed_to_finish.
7951         * infcall.c (run_inferior_call): Update comment about
7952         proceed_to_finish.
7953         * infcmd.c (get_return_value): Update comment about stop_registers.
7954         (finish_forward): Update comment about proceed_to_finish.
7955         * infrun.c (stop_registers): Remove.
7956         (clear_proceed_status, normal_stop): Remove stop_registers handling.
7957         * infrun.h (stop_registers): Remove.
7958
7959 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7960
7961         * infcall.c (struct dummy_frame_context_saver)
7962         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7963         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7964         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7965         New.
7966         (call_function_by_hand_dummy): Move discard_cleanups of
7967         inf_status_cleanup before dummy_frame_push.  Call
7968         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7969         Use dummy_frame_context_saver_get_regs instead of stop_registers.
7970         * infcall.h (struct dummy_frame_context_saver)
7971         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7972         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7973         New declarations.
7974         * infcmd.c: Include infcall.h.
7975         (get_return_value): Add parameter ctx_saver, use it instead of
7976         stop_registers.
7977         (print_return_value): Add parameter ctx_saver, pass it.
7978         (struct finish_command_continuation_args): Add field ctx_saver.
7979         (finish_command_continuation): Update print_return_value caller.
7980         (finish_command_continuation_free_arg): Free also ctx_saver.
7981         (finish_forward): Call dummy_frame_context_saver_setup.
7982         * inferior.h (struct dummy_frame_context_saver): New declaration.
7983         (get_return_value): Add parameter ctx_saver.
7984         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7985         get_return_value caller.
7986
7987 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7988
7989         * dummy-frame.c (struct dummy_frame_dtor_list): New.
7990         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7991         (remove_dummy_frame): Process dtor_list.
7992         (pop_dummy_frame): Process dtor_list.
7993         (register_dummy_frame_dtor): Maintain dtor_list.
7994         (find_dummy_frame_dtor): Handle dtor_list.
7995         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7996         Update comments.
7997
7998 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7999
8000         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8001         registers_valid.
8002         (compile_object_run): Update do_module_cleanup caller.
8003         * dummy-frame.c: Include infcall.h.
8004         (struct dummy_frame): Update dtor comment.
8005         (remove_dummy_frame): Call dtor.
8006         (pop_dummy_frame): Update dtor caller.
8007         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8008         registers_valid.
8009
8010 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8011
8012         GDB 7.9.1 released.
8013
8014 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8015
8016         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8017         Xmethods now being able to specify a result type to that new
8018         sectioin.
8019
8020 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8021
8022         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8023         first before resizing the window.
8024         * tui/tui.c (tui_enable): Likewise.
8025
8026 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8027
8028         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8029         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8030         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8031         dummy_dtor parameter.
8032         * infcall.h: Include dummy-frame.h.
8033         (call_function_by_hand_dummy_dtor_ftype): Remove.
8034         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8035         parameter.
8036
8037 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8038
8039         PR gdb/17820
8040         * top.c (history_size_setshow_var): Change type to signed.
8041         Initialize to -2.  Update documentation.
8042         (set_readline_history_size): Define.
8043         (set_history_size_command): Use it.  Remove logic for handling
8044         out-of-range sizes.
8045         (init_history): Use set_readline_history_size().  Test for a
8046         value of -2 instead of 0 when determining whether to set a
8047         default history size.
8048         (init_main): Decode the argument of the "size" command as a
8049         zuinteger_unlimited.
8050
8051 2015-05-12  Doug Evans  <dje@google.com>
8052
8053         * dwarf2read.c (struct file_entry): Tweak comments.
8054         (get_debug_line_section): Tweak comments.
8055
8056 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8057
8058         * NEWS: Announce fork support in the RSP and support
8059         for fork debugging in extended mode.
8060
8061 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8062
8063         * remote.c (remote_insert_fork_catchpoint): New function.
8064         (remote_remove_fork_catchpoint): New function.
8065         (remote_insert_vfork_catchpoint): New function.
8066         (remote_remove_vfork_catchpoint): New function.
8067         (pending_fork_parent_callback): New function.
8068         (remove_new_fork_child): New function.
8069         (remote_update_thread_list): Call remote_notif_get_pending_events
8070         and remove_new_fork_child.
8071         (extended_remote_kill): Kill fork child when killing the
8072         parent before follow_fork completes.
8073         (init_extended_remote_ops): Initialize target vector with
8074         new fork catchpoint functions.
8075
8076 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8077
8078         * remote.c (remove_vfork_event_p): New function.
8079         (remote_follow_fork): Add vfork event type to event checking.
8080         (remote_parse_stop_reply): New stop reasons "vfork" and
8081         "vforkdone" for RSP 'T' Stop Reply Packet.
8082
8083 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8084
8085         * linux-nat.c (linux_nat_ptrace_options): New function.
8086         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8087         Call linux_nat_ptrace_options and use different argument to
8088         linux_enable_event_reporting.
8089         (_initialize_linux_nat): Delete call to
8090         linux_ptrace_set_additional_flags.
8091         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8092         supported_ptrace_options.
8093         (additional_flags): Delete variable.
8094         (linux_check_ptrace_features): Use supported_ptrace_options.
8095         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8096         Likewise, and remove additional_flags check.
8097         (linux_enable_event_reporting): Change 'attached' argument to
8098         'options'.  Use supported_ptrace_options.
8099         (ptrace_supports_feature): Change comment.  Use
8100         supported_ptrace_options.
8101         (linux_ptrace_set_additional_flags): Delete function.
8102         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8103         Delete function prototype.
8104         * remote.c (remote_fork_event_p): New function.
8105         (remote_detach_pid): New function.
8106         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8107         if doing detach-on-fork.
8108         (remote_follow_fork): New function.
8109         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8110         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8111         (init_extended_remote_ops): Initialize to_follow_fork.
8112
8113 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8114
8115         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8116         from static to extern.
8117         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8118         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8119         * PACKET_vfork_event_feature>: New enumeration constants.
8120         (remote_protocol_features): Add table entries for new packets.
8121         (remote_query_supported): Add new feature queries to qSupported
8122         packet.
8123
8124 2015-05-12  Gary Benson <gbenson@redhat.com>
8125
8126         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8127         for fake PIDs as well as real ones.
8128         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8129
8130 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8131
8132         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8133         * python/py-value.c (valpy_reference_value): New function.
8134         (valpy_const_value): Likewise.
8135         (value_object_methods): Add new methods.
8136         * value.c (make_cv_value): New function.
8137         * value.h (make_cv_value): Declare.
8138
8139 2015-05-08  Yao Qi  <yao@codesourcery.com>
8140             Sandra Loosemore  <sandra@codesourcery.com>
8141
8142         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8143         to 'lh->include_dirs' before accessing to it.
8144         (psymtab_include_file_name): Likewise.
8145         (dwarf_decode_lines_1): Likewise.
8146         (dwarf_decode_lines): Likewise.
8147         (file_file_name): Likewise.
8148
8149 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8150
8151         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8152         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8153         (nios2_linux_rt_sigreturn_init): Adjust base address of
8154         register save area.
8155
8156 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8157
8158         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8159         "trap 31" as the breakpoint instruction on all targets.
8160
8161 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8162
8163         * infcmd.c (print_return_value): Remove unused declaration.
8164
8165 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8166
8167         * dwarf2read.c (attr_to_dynamic_prop)
8168         <DW_AT_data_member_location>: Use read_type_die isntead of
8169         get_die_type.
8170
8171 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8172
8173         * ada-lang.c (ada_convert_actual): Add handling of formals
8174         passed inside an aligner type.
8175
8176 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8177
8178         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8179
8180 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8181
8182         PR python/18291
8183         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8184         Print xmethod matcher status.
8185
8186 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8187
8188         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8189         register in the regcache when treating the PSWM register, and vice
8190         versa.
8191
8192 2015-05-07  Gary Benson <gbenson@redhat.com>
8193
8194         * linux-thread-db.c (struct thread_db_info)
8195         <td_ta_map_id2thr_p>: Remove field.
8196         (try_thread_db_load_1): Remove initialization for the above.
8197
8198 2015-05-07  Gary Benson <gbenson@redhat.com>
8199
8200         * linux-thread-db.c (struct thread_db_info)
8201         <td_thr_validate_p>: Remove field.
8202         (try_thread_db_load_1): Remove initialization for the above.
8203
8204 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8205
8206         * compile/compile-object-load.c (compile_object_load): Support
8207         mst_text_gnu_ifunc.
8208
8209 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8210
8211         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8212         const.  Use new variables for the const compatibility.
8213         (eval_compile_command): Make the cmd_string parameter const.
8214         * compile/compile.h (eval_compile_command): Make the cmd_string
8215         parameter const.
8216
8217 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8218
8219         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8220         comment.
8221         * top.c (deprecated_init_ui_hook): Delete.
8222         (gdb_init): Remove handling of deprecated_init_ui_hook.
8223         * interps.c (clear_interpreter_hooks): Remove handling of
8224         deprecated_init_ui_hook.
8225         * main.c (captured_main): Update comment.
8226
8227 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8228
8229         * solib.c (_initialize_solib): Add "info dll" alias creation.
8230         * windows-nat.c (set_windows_aliases): Delete.
8231         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8232         assignment.
8233         * NEWS: Add news entry about "info dll" now being available
8234         on all platforms.
8235
8236 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8237
8238         * ada-lang.c (value_assign_to_component): Reformat and improve
8239         documentation. Remove all trailing spaces.
8240
8241 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8242
8243         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8244         Stop counting inlined frames as soon as an out-of-line function
8245         is found.
8246
8247 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8248
8249         * dwarf2read.c (inherit_abstract_dies): Skip
8250         DW_TAG_GNU_call_site dies while inheriting children of an
8251         abstract DIE into a scope.
8252         (read_lexical_block_scope): Inherit abstract DIE's for
8253         lexical scopes.
8254
8255 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8256
8257         * ada-valprint.c (val_print_packed_array_elements): Delete
8258         variable "len".  Add a type-length check when comparing two
8259         consecutive elements of the array.  Use the element's actual
8260         length in call to value_contents_eq.
8261         * ada-lang.c (ada_value_primitive_packed_val): Always return
8262         a value whose type has been resolved.
8263
8264 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8265
8266         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8267         BIT_SIZE and LEN if the size of the resolved type is smaller
8268         than BIT_SIZE * HOST_CHAR_BIT.
8269
8270 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8271
8272         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8273         correct address in call to value_at.  Adjust call to
8274         value_address accordingly.
8275
8276 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8277
8278         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8279         to print it.
8280
8281 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8282
8283         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8284         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8285         pinfo->valaddr.
8286         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8287         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8288         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8289         Add handling of addr_stack->valaddr.
8290         (resolve_dynamic_type): Add "valaddr" parameter.
8291         Set pinfo.valaddr field.
8292         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8293         resolve_dynamic_type.
8294         (ada_discrete_type_low_bound): Likewise.
8295         * findvar.c (default_read_var_value): Likewise.
8296         * value.c (value_from_contents_and_address): Likewise.
8297
8298 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8299
8300         * gdbtypes.c (resolve_dynamic_array): Use
8301         create_array_type_with_stride instead of create_array_type.
8302
8303 2015-04-30  DJ Delorie  <dj@redhat.com>
8304
8305         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8306         rl78_decode_opcode
8307
8308 2015-04-29  Doug Evans  <dje@google.com>
8309
8310         PR python/18285
8311         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8312         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8313         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8314         * extension-priv.h (struct extension_language_ops)
8315         <get_xmethod_result_type>: New member.
8316         * extension.c (get_xmethod_result_type): New function.
8317         * extension.h (get_xmethod_result_type): Declare.
8318         * python/py-xmethods.c (get_result_type_method_name): New static
8319         global.
8320         (py_get_result_type_method_name): Ditto.
8321         (gdbpy_get_xmethod_result_type): New function.
8322         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8323         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8324         * python/python.c (python_extension_ops): Add
8325         gdbpy_get_xmethod_result_type.
8326         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8327         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8328         xmethods.
8329         (value_x_unop): Ditto.
8330         * value.c (result_type_of_xmethod): New function.
8331         * value.h (result_type_of_xmethod): Declare.
8332
8333 2015-04-29  Gary Benson <gbenson@redhat.com>
8334
8335         * solib.c (solib_find_1): Allow fd argument to be NULL.
8336         (exec_file_find): Update comment.
8337         (solib_find): Likewise.
8338         * exec.c (exec_file_locate_attach): Use NULL as fd
8339         argument to exec_file_find to avoid having to close
8340         the opened file.
8341         * infrun.c (follow_exec): Likewise.
8342
8343 2015-04-28  Doug Evans  <dje@google.com>
8344
8345         PR python/18299
8346         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8347         name or __name__ attributes.  Handle gdb module as first argument.
8348
8349 2015-04-28  Doug Evans  <dje@google.com>
8350
8351         PR python/18089
8352         * python/py-prettyprint.c (print_children): Verify result of children
8353         iterator.  Provide better error message.
8354         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8355         * python/python.c (gdbpy_print_python_errors_p): New function.
8356
8357 2015-04-28  Doug Evans  <dje@google.com>
8358
8359         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8360
8361 2015-04-28  Sasha Smundak  <asmundak@google.com>
8362
8363         * NEWS: Mention gdb.Type.optimized_out method.
8364         * python/py-type.c (typy_optimized_out):  New function.
8365
8366 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8367
8368         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8369
8370 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8371
8372         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8373         (initialize_utils): Move call of init_page_info() to ...
8374         * top.c (gdb_init): ... here.
8375
8376 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8377
8378         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8379         (tui_sigwinch_handler): Still update our idea of
8380         the terminal's width and height even when TUI is not active.
8381
8382 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8383
8384         * utils.h (set_screen_width_and_height): Declare.
8385         * utils.c (set_screen_width_and_height): Define.
8386         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8387
8388 2015-04-28  Gary Benson <gbenson@redhat.com>
8389
8390         * infrun.c (solist.h): New include.
8391         (follow_exec): Use exec_file_find to prefix execd_pathname
8392         with gdb_sysroot.
8393
8394 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8395
8396         * tui/tui-source.c (tui_set_source_content): Avoid calling
8397         strcpy() when offset is 0.
8398
8399 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8400
8401         PR gdb/18155
8402         * tui/tui-data.c (tui_free_window): Don't free the locator
8403         window when passed an SRC_WIN or a DISASSEM_WIN.
8404
8405 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8406
8407         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8408         (tui_win_content): Move declaration.
8409         (struct tui_gen_win_info): Give 'content' field the
8410         type tui_win_content.
8411         * tui/tui-data.c (init_content_element): Remove redundant and
8412         erroneous casts.
8413         (tui_add_content_elements): Remove erroneous cast.
8414         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8415         casts.
8416         (tui_get_begin_asm_address): Likewise.
8417         * tui/tui-regs.c (tui_show_registers): Likewise.
8418         (tui_show_register_group): Likewise.
8419         (tui_display_registers_from): Likewise.
8420         (tui_check_register_values): Likewise.
8421         * tui/tui-source.c (tui_set_source_content): Likewise.
8422         (tui_set_source_content_nil): Likewise.
8423         (tui_source_is_displayed): Likewise.
8424         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8425         (tui_set_locator_fullname): Likewise.
8426         (tui_set_locator_info): Likewise.
8427         (tui_show_frame_info): Likewise.
8428         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8429         (tui_show_source_line): Likewise.
8430         (tui_horizontal_source_scroll): Likewise.
8431         (tui_update_breakpoint_info): Likewise.
8432         (tui_set_exec_info_content): Likewise.
8433         (tui_show_exec_info_content): Likewise.
8434         (tui_alloc_source_buffer): Likewise.
8435         (tui_line_is_displayed): Likewise.
8436         (tui_addr_is_displayed): Likewise.
8437
8438 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8439
8440         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8441         event if PL_FLAG_EXEC is set.
8442         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8443         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8444         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8445         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8446         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8447
8448 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8449
8450         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8451         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8452         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8453         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8454         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8455         [PT_LWPINFO] (fbsd_wait): New function.
8456         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8457         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8458         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8459         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8460         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8461         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8462         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8463         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8464         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8465         "fbsd_wait".
8466         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8467         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8468         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8469         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8470         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8471         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8472         Set "to_post_attach" to "fbsd_post_attach".
8473
8474 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8475
8476         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8477         (fbsd_find_memory_regions): Mark static.
8478         (fbsd_nat_add_target): New function.
8479         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8480         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8481         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8482         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8483         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8484         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8485
8486 2015-04-27  Gary Benson <gbenson@redhat.com>
8487
8488         * objfiles.c (allocate_objfile): Do not attempt to expand name
8489         if name is a "target:" filename.
8490         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8491         to load auto-load scripts for objfiles with "target:" filenames.
8492
8493 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8494
8495         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8496         (enum s390_vector_abi_kind): New enum.
8497         (struct gdbarch_tdep)<vector_abi>: New field.
8498         (s390_effective_inner_type): Add parameter min_size.  Stop
8499         unwrapping if the inner type is smaller than min_size.
8500         (s390_function_arg_float): Adjust call to
8501         s390_effective_inner_type.
8502         (s390_function_arg_vector): New function.
8503         (s390_function_arg_integer): Adjust comment.
8504         (struct s390_arg_state)<vr>: New field.
8505         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8506         arguments according to vector ABI when appropriate.
8507         (s390_push_dummy_call): Initialize the argument state's field
8508         'vr'.  Adjust calls to s390_handle_arg.
8509         (s390_register_return_value): Handle vector return values.
8510         (s390_return_value): Apply the "register" return value convention
8511         to a vector when appropriate.
8512         (s390_gdbarch_init): Initialize tdep->vector_abi.
8513         * NEWS: Announce S390 vector ABI support.
8514
8515 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8516
8517         * s390-linux-tdep.c (s390_return_value_convention): Remove
8518         function.  Inline its logic...
8519         (s390_return_value): ...here.  Instead, move the handling of the
8520         "register" return value convention...
8521         (s390_register_return_value): ...here.  New function.
8522
8523 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8524
8525         * s390-linux-tdep.c
8526         (is_float_singleton): Remove function.  Move the "singleton" part
8527         of the logic...
8528         (s390_effective_inner_type): ...here.  New function.
8529         (is_float_like): Remove function.  Inline its logic...
8530         (s390_function_arg_float): ...here.
8531         (is_pointer_like, is_integer_like, is_struct_like): Remove
8532         functions.  Inline their logic...
8533         (s390_function_arg_integer): ...here.
8534         (s390_function_arg_pass_by_reference): Remove function.
8535         (extend_simple_arg): Remove function.
8536         (alignment_of): Remove function.
8537         (struct s390_arg_state): New structure.
8538         (s390_handle_arg): New function.
8539         (s390_push_dummy_call): Move parameter placement logic to the new
8540         function s390_handle_arg.  Call it for calculating the stack area
8541         sizes first, and again for actually writing the parameters.
8542
8543 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8544
8545         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8546           false if the argument is zero.
8547
8548 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8549
8550         * ada-lang.c (template_to_static_fixed_type): Return input type
8551         when it is already fixed.  Cache the input type itself when not
8552         creating a static fixed copy.  Make it explicit that we never
8553         molestate the input type.
8554         * gdbtypes.c (resolve_dynamic_struct): Reset the
8555         TYPE_TARGET_TYPE field for resolved copies.
8556
8557 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8558
8559         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8560         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8561         (template_to_static_fixed_type): Call ada_check_typedef only
8562         when necessary.
8563
8564 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8565
8566         * cli/cli-dump.c (srec_dump_command): Add internationalization
8567         mark ups.
8568         (ihex_dump_command): Likewise.
8569         (tekhex_dump_command): Likewise.
8570         (binary_dump_command): Likewise.
8571         (binary_append_command): Likewise.
8572
8573 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8574
8575         * cli/cli-dump.c (verilog_cmdlist): New variable.
8576         (dump_verilog_memory): New function.
8577         (dump_verilog_value): New function.
8578         (verilog_dump_command): New function.
8579         (_initialize_cli_dump): Add new commands to support verilog dump
8580         format.
8581         * NEWS: Add entry for "dump verilog".
8582
8583 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8584
8585         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8586         descriptive type when there is none.
8587
8588 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8589
8590         * tui/tui-win.c (tui_async_resize_screen): Call
8591         rl_resize_terminal().
8592
8593 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8594
8595         * windows-nat.c (handle_output_debug_string): Don't change
8596         current_event.dwThreadId.
8597         (get_windows_debug_event): Use thread_id, rather than relying on
8598         current_event.dwThreadId being changed.
8599
8600 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8601
8602         * windows-nat.c (windows_continue): Report an error if
8603         ContinueDebugEvent() fails.
8604
8605 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8606
8607         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8608
8609 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8610
8611         * windows-nat.c (get_windows_debug_event): Replace retval with
8612         thread_id throughout.  Update stale comment.
8613
8614 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8615
8616         * windows-nat.c (get_windows_debug_event): Don't use ternary
8617         conditional operator.
8618
8619 2015-04-21  Pierre Muller  <muller@sourceware.org>
8620
8621         PR pascal/17815
8622         p-exp.y (yylex): Reorganize code to return the matched pattern
8623         for a field of this.
8624
8625 2015-04-21  Gary Benson <gbenson@redhat.com>
8626
8627         * common/fileio.h (fileio_to_host_openflags): New declaration.
8628         * common/fileio.c (fcntl.h): New include.
8629         (fileio_to_host_openflags): New function, factored out from...
8630         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8631         Single use updated.
8632
8633 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8634
8635         * rl78-tdep.c (RL78_SP_ADDR): Define.
8636         (opc_reg_to_gdb_regnum): New static function.
8637         (rl78_analyze_prologue): Recognize instructions forming slightly
8638         more interesting prologues.
8639
8640 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8641
8642         Revert:
8643         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8644         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8645         TYPE_CODE_REF types so that they are not considered as dynamic
8646         depending on the referenced type.
8647         (resolve_dynamic_type_internal): Likewise.
8648
8649 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8650
8651         Revert:
8652         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8653         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8654         "top_level" parameter.
8655         (resolve_dynamic_type_internal): Remove the unused "top_level"
8656         parameter.  Update call to is_dynamic_type_internal.
8657         (is_dynamic_type): Update call to is_dynamic_type_internal.
8658         (resolve_dynamic_range): Update call to
8659         resolve_dynamic_type_internal.
8660         (resolve_dynamic_union): Likewise.
8661         (resolve_dynamic_struct): Likewise.
8662         (resolve_dynamic_type): Likewise.
8663
8664 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8665
8666         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8667         xmalloc.
8668
8669 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8670
8671         * reply_mig_hack.awk: Robustify parsing.
8672
8673         * reply_mig_hack.awk: Don't bother to declare an intermediate
8674         function pointer variable.
8675
8676 2015-04-17  Doug Evans  <dje@google.com>
8677
8678         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8679         to "exec_displacement" to avoid confusion with inner use of the name.
8680
8681 2015-04-17  Pedro Alves  <palves@redhat.com>
8682
8683         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8684         if HW point of TYPE isn't supported.
8685
8686 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8687             Pedro Alves  <palves@redhat.com>
8688
8689         * target.h (target_can_use_hardware_watchpoint): Update comments.
8690         Remove trailing ";".
8691
8692 2015-04-17  Gary Benson <gbenson@redhat.com>
8693
8694         * remote.c (remote_add_inferior): New argument try_open_exec.
8695         If nonzero, attempt to open the inferior's executable file as
8696         the main executable if no main executable is open already.
8697         All callers updated.
8698         * NEWS: Mention that GDB now supports automatic location and
8699         retrieval of executable + files from remote targets.
8700
8701 2015-04-17  Gary Benson <gbenson@redhat.com>
8702
8703         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8704         * remote.c (PACKET_qXfer_exec_file): Likewise.
8705         (remote_protocol_features): Register the
8706         "qXfer:exec-file:read" feature.
8707         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8708         (remote_pid_to_exec_file): New function.
8709         (init_remote_ops): Initialize to_pid_to_exec_file.
8710         (_initialize_remote): Register new "set/show remote
8711         pid-to-exec-file-packet" command.
8712         * NEWS: Announce new qXfer:exec-file:read packet.
8713
8714 2015-04-17  Gary Benson <gbenson@redhat.com>
8715
8716         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8717         New declaration.
8718         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8719         New function, factored out from...
8720         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8721
8722 2015-04-17  Gary Benson <gbenson@redhat.com>
8723
8724         * exec.c (solist.h): New include.
8725         (exec_file_locate_attach): Prefix absolute executable
8726         paths with gdb_sysroot if set.
8727         * NEWS: Mention that executable paths may be prepended
8728         with sysroot.
8729
8730 2015-04-17  Gary Benson <gbenson@redhat.com>
8731
8732         * solist.h (exec_file_find): New declaration.
8733         * solib.c (solib_find_1): New function, factored out from...
8734         (solib_find): ...here.
8735         (exec_file_find): New function.
8736
8737 2015-04-17  Gary Benson <gbenson@redhat.com>
8738
8739         * gdbcore.h (exec_file_locate_attach): New declaration.
8740         * exec.c (exec_file_locate_attach): New function, factored
8741         out from...
8742         * infcmd.c (attach_command_post_wait): ...here.
8743
8744 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8745
8746         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8747
8748 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8749
8750         * infrun.c (maybe_software_singlestep): Declare.
8751         (displaced_step_fixup): Call maybe_software_singlestep.
8752
8753 2015-04-15  Doug Evans  <dje@google.com>
8754
8755         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8756
8757 2015-04-15  Doug Evans  <dje@google.com>
8758
8759         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8760
8761 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8762
8763         * python/lib/gdb/command/unwinders.py: Add parentheses.
8764
8765 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8766
8767         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8768
8769 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8770
8771         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8772
8773 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8774
8775         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8776         dsc->insn_size instead of 4.
8777
8778 2015-04-14  Gary Benson <gbenson@redhat.com>
8779
8780         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8781         * minidebug.c (lzma_stat): Likewise.
8782         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8783         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8784
8785 2015-04-13  Stan Shebs  <stanshebs@google.com>
8786
8787         * MAINTAINERS: Update my email address.
8788
8789 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8790
8791         * amd64-tdep.c (amd64_target_description): New function.
8792         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8793         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8794         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8795         x86 extended save area.
8796         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8797         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8798         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8799         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8800         "amd64fbsd_read_description".
8801         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8802         (amd64fbsd_supply_xstateregset): New function.
8803         (amd64fbsd_collect_xstateregset): New function.
8804         Add "amd64fbsd_xstateregset".
8805         (amd64fbsd_iterate_over_regset_sections): New function.
8806         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8807         "I386_FBSD_XSAVE_XCR0_OFFSET".
8808         Add "iterate_over_regset_sections" gdbarch method.
8809         Add "core_read_description" gdbarch method.
8810         * i386-tdep.c (i386_target_description): New function.
8811         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8812         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8813         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8814         x86 extended save area.
8815         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8816         * i386bsd-nat.h: Export i386bsd_xsave_len.
8817         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8818         (_initialize_i386fbsd_nat): Set "to_read_description" to
8819         "i386fbsd_read_description".
8820         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8821         (i386fbsd_core_read_description): New function.
8822         (i386fbsd_supply_xstateregset): New function.
8823         (i386fbsd_collect_xstateregset): New function.
8824         Add "i386fbsd_xstateregset".
8825         (i386fbsd_iterate_over_regset_sections): New function.
8826         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8827         "I386_FBSD_XSAVE_XCR0_OFFSET".
8828         Add "iterate_over_regset_sections" gdbarch method.
8829         Add "core_read_description" gdbarch method.
8830         * i386fbsd-tdep.h: New file.
8831
8832 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8833
8834         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8835         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8836         conditional.
8837         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8838         and lb.
8839         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8840         va.
8841         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8842         conditional.
8843         * defs.h (xdb_commands): Remove declaration.
8844         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8845         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8846         * infcmd.c (run_no_args_command, go_command): Remove.
8847         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8848         * infrun.c (xdb_handle_command): Remove.
8849         (_initialize_infrun): Remove xdb_commands for lz and z.
8850         * main.c (xdb_commands): Remove variable.
8851         (captured_main): Remove "xdb" from long_options.
8852         (print_gdb_help): Remove --xdb from help.
8853         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8854         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8855         * stack.c (backtrace_full_command, args_plus_locals_info)
8856         (current_frame_command): Remove.
8857         (_initialize_stack): Remove xdb_commands for t, T and l.
8858         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8859         * thread.c (_initialize_thread): Remove xdb_commands condition.
8860         * tui/tui-layout.c (tui_toggle_layout_command)
8861         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8862         (_initialize_tui_layout): Remove xdb_commands for td and ts.
8863         * tui/tui-regs.c (tui_scroll_regs_forward_command)
8864         (tui_scroll_regs_backward_command): Remove.
8865         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8866         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8867         (_initialize_tui_win): Remove xdb_commands for U and w.
8868         * utils.c (pagination_on_command, pagination_off_command): Remove.
8869         (initialize_utils): Remove xdb_commands for am and sm.
8870
8871 2015-04-10  Pedro Alves  <palves@redhat.com>
8872
8873         * infrun.c (displaced_step_fixup): Switch to the event ptid
8874         earlier.  If the thread stopped for a watchpoint and the
8875         target/arch has non-continuable watchpoints, cancel the displaced
8876         step.
8877         (resume): Don't start a displaced step if in-line step-over info
8878         is valid.
8879
8880 2015-04-10  Pedro Alves  <palves@redhat.com>
8881
8882         * infrun.c (displaced_step_in_progress): New function.
8883         (do_target_resume): Advise target to report all signals if
8884         displaced stepping.
8885
8886 2015-04-10  Pedro Alves  <palves@redhat.com>
8887
8888         PR gdb/18216
8889         * infrun.c (process_event_stop_test): Don't assume a step-resume
8890         is set if tp->stepped_breakpoint is true.
8891
8892 2015-04-10  Yao Qi  <yao.qi@linaro.org>
8893
8894         * arm-tdep.c (install_alu_reg): Update comment.
8895         (thumb_copy_alu_reg): Remove local variable rn.  Update
8896         debugging message.  Use r2 instead of r1 in the modified
8897         instruction.
8898
8899 2015-04-10  Pedro Alves  <palves@redhat.com>
8900
8901         PR gdb/13858
8902         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8903         linux_displaced_step_location as gdbarch_displaced_step_location
8904         hook.
8905         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8906         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8907         * linux-tdep.c (linux_displaced_step_location): New function,
8908         based on ppc_linux_displaced_step_location.
8909         * linux-tdep.h (linux_displaced_step_location): New declaration.
8910         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8911         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8912         Delete.
8913         (ppc_linux_init_abi): Install linux_displaced_step_location as
8914         gdbarch_displaced_step_location hook, even without Cell/B.E..
8915         (_initialize_ppc_linux_tdep): Don't install
8916         ppc_linux_inferior_created as inferior_created observer.
8917         * s390-linux-tdep.c (s390_gdbarch_init): Install
8918         linux_displaced_step_location as gdbarch_displaced_step_location
8919         hook.
8920
8921 2015-04-09  Gary Benson <gbenson@redhat.com>
8922
8923         * common/common-remote-fileio.h: Rename to...
8924         * common/fileio.h: ...this.  Update all references.
8925         (remote_fileio_to_fio_error): Rename to...
8926         (host_to_fileio_error): ...this.
8927         (remote_fileio_to_be): Rename to...
8928         (host_to_bigendian): ...this.  Update all callers.
8929         (remote_fileio_to_fio_uint): Rename to...
8930         (host_to_fileio_uint): ...this.  Update all callers.
8931         (remote_fileio_to_fio_time): Rename to...
8932         (host_to_fileio_time): ...this.  Update all callers.
8933         (remote_fileio_to_fio_stat): Rename to...
8934         (host_to_fileio_stat): ...this.
8935         Update all references.
8936         * common/common-remote-fileio.c: Rename to...
8937         * common/fileio.c: ...this.  Update all references.
8938         (remote_fileio_to_fio_error): Rename to...
8939         (host_to_fileio_error): ...this.  Update all callers.
8940         (remote_fileio_mode_to_target): Rename to...
8941         (fileio_mode_pack): ...this.  Update all callers.
8942         (remote_fileio_to_fio_mode): Rename to...
8943         (host_to_fileio_mode): ...this.  Update all callers.
8944         (remote_fileio_to_fio_ulong): Rename to...
8945         (host_to_fileio_ulong): ...this.  Update all callers.
8946         (remote_fileio_to_fio_stat): Rename to...
8947         (host_to_fileio_stat): ...this.  Update all callers.
8948
8949 2015-04-09  Andy Wingo  <wingo@igalia.com>
8950
8951         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8952         (frame_functions): Bind gdbscm_frame_read_register to
8953         frame-read-register.
8954         * guile/lib/gdb.scm (frame-read-register): Export.
8955
8956 2015-04-09  Gary Benson <gbenson@redhat.com>
8957
8958         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8959         New declaration.
8960         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8961         New function, factored out the named functions below.
8962         * inf-child.c (gdb/fileio.h): Remove include.
8963         (common-remote-fileio.h): New include.
8964         (inf_child_errno_to_fileio_error): Remove function.  Update
8965         all callers to use remote_fileio_to_fio_error.
8966         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8967
8968 2015-04-09  Andy Wingo  <wingo@igalia.com>
8969
8970         * MAINTAINERS (Write After Approval): Add Andy Wingo.
8971
8972 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
8973
8974         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8975         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8976         * configure: Regenerated.
8977
8978 2015-04-09  Pedro Alves  <palves@redhat.com>
8979
8980         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8981         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8982         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8983         * gnulib/import/Makefile.am: Update.
8984         * gnulib/import/Makefile.in: Update.
8985         * gnulib/import/m4/gnulib-cache.m4: Update.
8986         * gnulib/import/m4/gnulib-comp.m4: Update.
8987         * gnulib/import/m4/strtok_r.m4: New file.
8988         * gnulib/import/strtok_r.c: New file.
8989
8990 2015-04-09  Pedro Alves  <palves@redhat.com>
8991
8992         * gnulib/update-gnulib.sh (aclocal version check): Filter out
8993         "called too early to check prototype".
8994
8995 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
8996
8997         PR python/16699
8998         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8999         use a caching mechanism.  Adjust comments and code to reflect
9000         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9001         (cmdpy_completer_handle_brkchars): Adjust call to
9002         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9003         (cmdpy_completer): Likewise.
9004
9005 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9006
9007         * spu-tdep.c (spu_gdbarch_init): Don't call
9008         set_gdbarch_cannot_step_breakpoint.
9009
9010 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9011
9012         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9013
9014 2015-04-07  Pedro Alves  <palves@redhat.com>
9015
9016         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9017         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9018         (delete_exited_threads): New declaration.
9019         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9020         * linux-nat.c (linux_nat_update_thread_list): New function.
9021         (linux_nat_add_target): Install it.
9022         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9023         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9024         (delete_exited_threads): New function.
9025
9026 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9027
9028         * infrun.c (resume) <displaced stepping debug output>: Get the
9029         leader thread's regcache, not resume_ptid's.
9030
9031 2015-04-06  Doug Evans  <xdje42@gmail.com>
9032
9033         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9034         VAR_DOMAIN.
9035         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9036         Include symbol domain in debugging output.
9037
9038 2015-04-06  Pedro Alves  <palves@redhat.com>
9039             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9040
9041         * configure.ac: Remove the mingw32-specific stub-termcap.o
9042         fallback, and instead fallback to the stub termcap on all hosts.
9043         * configure: Regenerate.
9044         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9045         symbols.
9046
9047 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9048
9049         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9050         "top_level" parameter.
9051         (resolve_dynamic_type_internal): Remove the unused "top_level"
9052         parameter.  Update call to is_dynamic_type_internal.
9053         (is_dynamic_type): Update call to is_dynamic_type_internal.
9054         (resolve_dynamic_range): Update call to
9055         resolve_dynamic_type_internal.
9056         (resolve_dynamic_union): Likewise.
9057         (resolve_dynamic_struct): Likewise.
9058         (resolve_dynamic_type): Likewise.
9059
9060 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9061
9062         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9063         TYPE_CODE_REF types so that they are not considered as dynamic
9064         depending on the referenced type.
9065         (resolve_dynamic_type_internal): Likewise.
9066
9067 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9068
9069         * Makefile.in (top_srcdir): New.
9070         * configure: Regenerated.
9071
9072 2015-04-02  Gary Benson <gbenson@redhat.com>
9073
9074         * NEWS: Announce the new default sysroot of "target:".
9075
9076 2015-04-02  Gary Benson <gbenson@redhat.com>
9077
9078         * main.c (captured_main): Set gdb_sysroot to "target:"
9079         if not otherwise set.
9080
9081 2015-04-02  Gary Benson <gbenson@redhat.com>
9082
9083         * exec.c (exec_file_attach): Support "target:" filenames.
9084
9085 2015-04-02  Gary Benson <gbenson@redhat.com>
9086
9087         * solib.c (solib_find): Strip "target:" prefix from sysroot
9088         if accessing local files.
9089
9090 2015-04-02  Gary Benson <gbenson@redhat.com>
9091
9092         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9093         checks and error messages.
9094
9095 2015-04-02  Gary Benson <gbenson@redhat.com>
9096
9097         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9098         (remote_filename_p): Remove declaration.
9099         (remote_bfd_open): Likewise.
9100         * remote.c (remote_bfd_iovec_open): Remove function.
9101         (remote_bfd_iovec_close): Likewise.
9102         (remote_bfd_iovec_pread): Likewise.
9103         (remote_bfd_iovec_stat): Likewise.
9104         (remote_filename_p): Likewise.
9105         (remote_bfd_open): Likewise.
9106         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9107         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9108         (gdb_bfd_open_maybe_remote): Remove function.
9109         (symfile_bfd_open):  Replace remote filename check with
9110         target filename check.
9111         (reread_symbols): Use gdb_bfd_open.
9112         * build-id.c (gdbcore.h): New include.
9113         (build_id_to_debug_bfd): Use gdb_bfd_open.
9114         * infcmd.c (attach_command_post_wait): Remove remote filename
9115         check.
9116         * solib.c (solib_find): Replace remote-specific handling with
9117         target-specific handling.  Update comments where necessary.
9118         (solib_bfd_open): Replace remote-specific handling with
9119         target-specific handling.
9120         (gdb_sysroot_changed): New function.
9121         (_initialize_solib): Call the above when gdb_sysroot changes.
9122         * windows-tdep.c (gdbcore.h): New include.
9123         (windows_xfer_shared_library): Use gdb_bfd_open.
9124
9125 2015-04-02  Gary Benson <gbenson@redhat.com>
9126
9127         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9128         (is_target_filename): New declaration.
9129         (gdb_bfd_has_target_filename): Likewise.
9130         (gdb_bfd_open): Update documentation comment.
9131         * gdb_bfd.c (target.h): New include.
9132         (gdb/fileio.h): Likewise.
9133         (is_target_filename): New function.
9134         (gdb_bfd_has_target_filename): Likewise.
9135         (fileio_errno_to_host): Likewise.
9136         (gdb_bfd_iovec_fileio_open): Likewise.
9137         (gdb_bfd_iovec_fileio_pread): Likewise.
9138         (gdb_bfd_iovec_fileio_close): Likewise.
9139         (gdb_bfd_iovec_fileio_fstat): Likewise.
9140         (gdb_bfd_open): Use target fileio to access paths prefixed
9141         with "target:" where necessary.
9142
9143 2015-04-02  Gary Benson <gbenson@redhat.com>
9144
9145         * target.h (struct target_ops) <to_filesystem_is_local>:
9146         New field.
9147         (target_filesystem_is_local): New macro.
9148         * target-delegates.c: Regenerate.
9149         * remote.c (remote_filesystem_is_local): New function.
9150         (init_remote_ops): Initialize to_filesystem_is_local.
9151
9152 2015-04-02  Gary Benson <gbenson@redhat.com>
9153
9154         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9155         (target_fileio_fstat): New declaration.
9156         * target.c (target_fileio_fstat): New function.
9157         * inf-child.c (inf_child_fileio_fstat): Likewise.
9158         (inf_child_target): Initialize to_fileio_fstat.
9159         * remote.c (init_remote_ops): Likewise.
9160
9161 2015-04-01  Sasha Smundak  <asmundak@google.com>
9162
9163         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9164         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9165         (py-unwind.o): New recipe.
9166         * NEWS: mention Python frame unwinding.
9167         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9168         gdb/unwinder.py and gdb/command/unwinder.py
9169         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9170         list.
9171         (execute_unwinders): New function.
9172         * python/lib/gdb/command/unwinders.py: New file.
9173         * python/lib/gdb/unwinder.py: New file.
9174         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9175         (objfpy_dealloc): Decrement frame_unwinders reference count.
9176         (objfpy_initialize): Create frame_unwinders list.
9177         (objfpy_get_frame_unwinders): New function.
9178         (objfpy_set_frame_unwinders): Ditto.
9179         (objfile_getset): Add frame_unwinders attribute to Objfile.
9180         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9181         (pspy_dealloc): Decrement frame_unwinders reference count.
9182         (pspy_initialize): Create frame_unwinders list.
9183         (pspy_get_frame_unwinders): New function.
9184         (pspy_set_frame_unwinders): Ditto.
9185         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9186         * python/py-unwind.c: New file.
9187         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9188         (objpy_get_frame_unwinders): New prototype.
9189         (gdbpy_initialize_unwind): New prototype.
9190         * python/python.c (gdbpy_apply_type_printers): Call
9191         gdbpy_initialize_unwind.
9192
9193 2015-04-01  Pedro Alves  <palves@redhat.com>
9194
9195         * infrun.c (resume): Check currently_stepping after clearing
9196         stepped_breakpoint, not before.
9197
9198 2015-04-01  Pedro Alves  <palves@redhat.com>
9199
9200         * infrun.c (print_target_wait_results): Print all the ptid
9201         elements.
9202
9203 2015-04-01  Pedro Alves  <palves@redhat.com>
9204
9205         * infrun.c (keep_going): Also discard cleanups if inserting
9206         breakpoints fails.
9207
9208 2015-04-01  Pedro Alves  <palves@redhat.com>
9209
9210         * infrun.c (wait_for_inferior): Install the
9211         finish_thread_state_cleanup cleanup across the whole function, not
9212         just around handle_inferior_event.
9213
9214 2015-04-01  Pedro Alves  <palves@redhat.com>
9215
9216         * infrun.c (resume) <step past permanent breakpoint>: Use
9217         do_target_resume.
9218
9219 2015-04-01  Pedro Alves  <palves@redhat.com>
9220
9221         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9222
9223 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9224
9225         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9226
9227 2015-04-01  Pedro Alves  <palves@redhat.com>
9228
9229         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9230         list if it was marked exited.
9231
9232 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9233
9234         * configure: Regenerated.
9235
9236 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9237             Jan Kratochvil  <jan.kratochvil@redhat.com>
9238             Oleg Nesterov  <oleg@redhat.com>
9239
9240         PR corefiles/16092
9241         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9242         New enum identifying the various options of the coredump_filter
9243         file.
9244         (struct smaps_vmflags): New struct.
9245         (use_coredump_filter): New variable.
9246         (decode_vmflags): New function.
9247         (mapping_is_anonymous_p): Likewise.
9248         (dump_mapping_p): Likewise.
9249         (linux_find_memory_regions_full): New variables
9250         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9251         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9252         parsing of its information.  Implement memory mapping filtering
9253         based on its contents.
9254         (show_use_coredump_filter): New function.
9255         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9256         * NEWS: Mention the possibility of using the
9257         '/proc/PID/coredump_filter' file when generating a corefile.
9258         Mention new command 'set use-coredump-filter'.
9259
9260 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9261
9262         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9263         read_memory_unsigned_integer.
9264
9265 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9266
9267         * Makefile.in (ZLIB): New.
9268         (ZLIBINC): Likewise.
9269         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9270         (CLIBS): Add $(ZLIB).
9271         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9272         Add -lz to LIBS.
9273         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9274         * top.c (print_gdb_configuration): Remove --with-zlib and
9275         --without-zlib.
9276         * config.in: Regenerated.
9277         * configure: Likewise.
9278
9279 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9280
9281         * NEWS: Mention info os cpus support.
9282         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9283         (struct osdata_type): Add cpus entry, reorder the entries in
9284         alphabetical order.
9285
9286 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9287
9288         * compile/compile.c (compile_to_object): Allow triplets with or
9289         without vendor set.
9290
9291 2015-03-30  Doug Evans  <dje@google.com>
9292
9293         PR c++/18141
9294         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9295         klass in VAR_DOMAIN.
9296
9297 2015-03-30  Gary Benson <gbenson@redhat.com>
9298
9299         * remote.c (remote_mourn_1): Remove function.  Update all callers
9300         to use remote_mourn.
9301         (extended_remote_mourn_1): Remove function.  Update all callers
9302         to use extended_remote_mourn.
9303         (extended_remote_attach_1): Remove function.  Update all callers
9304         to use extended_remote_attach.
9305
9306 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9307
9308         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9309         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9310         (ALLDEPFILES): Add ft32-tdep.c.
9311         * configure.tgt: Add FT32 entry.
9312         * ft32-tdep.c: New file, FT32 target-dependent code.
9313         * ft32-tdep.h: New file, FT32 target-dependent code.
9314
9315 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9316
9317         Revert:
9318         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9319         Code cleanup.
9320         * printcmd.c (print_command_1): Move expr variable scope.
9321
9322 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9323
9324         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9325
9326 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9327
9328         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9329         sections.
9330
9331 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9332
9333         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9334         exception raised while parsing the probe arguments.
9335         Force parsing to be done using the C language parser.
9336         * expression.h (parse_expression_with_language): Declare.
9337         * parse.c (parse_expression_with_language): New function.
9338
9339 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9340
9341         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9342
9343 2015-03-26  Andy Wingo  <wingo@igalia.com>
9344
9345         PR symtab/18148
9346         * dwarf2read.c (struct partial_die_info): Add has_const_value
9347         member.
9348         (add_partial_symbol): Don't punt on symbols that have const_value
9349         attributes.
9350         (read_partial_die): Detect DW_AT_const_value.
9351
9352 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9353
9354         Code cleanup.
9355         * printcmd.c (print_command_1): Move expr variable scope.
9356
9357 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9358
9359         Code cleanup.
9360         * printcmd.c (validate_format): Make the parameter cmdname const.
9361
9362 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9363
9364         * remote.c (_initialize_remote): Update comment.
9365
9366 2015-03-26  Pedro Alves  <palves@redhat.com>
9367             Jon TURNEY  <jon.turney@dronecode.org.uk>
9368
9369         * coffread.c (coff_symfile_read): When constructing the name of an
9370         import stub symbol from import symbol for amd64, only skip the
9371         char after _imp_ if the target is underscored (like i386) and the
9372         char is indeed the target's leading char.
9373
9374 2015-03-25  Pedro Alves  <palves@redhat.com>
9375
9376         * target.h <to_async>: Replace 'callback' and 'context' parameters
9377         with boolean 'enable' parameter.
9378         (target_async): Replace CALLBACK and CONTEXT parameters with
9379         boolean ENABLE parameter.
9380         * inf-loop.c (inferior_event_handler): Adjust.
9381         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9382         (linux_nat_resume): Adjust.
9383         (async_client_callback, async_client_context): Delete.
9384         (handle_target_event): Call inferior_event_handler directly.
9385         (linux_nat_async): Replace 'callback' and 'context' parameters
9386         with boolean 'enable' parameter.  Adjust.  Remove references to
9387         async_client_callback and async_client_context.
9388         (linux_nat_close): Adjust.
9389         * record-btrace.c (record_btrace_async): Replace 'callback' and
9390         'context' parameters with boolean 'enable' parameter.  Adjust.
9391         (record_btrace_resume): Adjust.
9392         * record-full.c (record_full_async): Replace 'callback' and
9393         'context' parameters with boolean 'enable' parameter.  Adjust.
9394         (record_full_resume, record_full_core_resume): Adjust.
9395         * remote.c (struct remote_state) <async_client_callback,
9396         async_client_context>: Delete fields.
9397         (remote_start_remote, extended_remote_attach_1, remote_resume)
9398         (extended_remote_create_inferior): Adjust.
9399         (remote_async_serial_handler): Call inferior_event_handler
9400         directly.
9401         (remote_async): Replace 'callback' and 'context' parameters with
9402         boolean 'enable' parameter.  Adjust.
9403         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9404         Adjust.
9405         * target-delegates.c: Regenerate.
9406
9407 2015-03-25  Gary Benson <gbenson@redhat.com>
9408             Pedro Alves  <palves@redhat.com>
9409
9410         * target.c (fileio_ft_t): New typedef, define object vector.
9411         (fileio_fhandles): New static variable.
9412         (is_closed_fileio_fh): New macro.
9413         (lowest_closed_fd): New static variable.
9414         (acquire_fileio_fd): New function.
9415         (release_fileio_fd): Likewise.
9416         (fileio_fd_to_fh): New macro.
9417         (target_fileio_open): Wrap the file descriptor on success.
9418         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9419         (target_fileio_pread): Likewise.
9420         (target_fileio_close): Likewise.
9421
9422 2015-03-24  Pedro Alves  <palves@redhat.com>
9423
9424         * thread.c (thread_apply_all_command): Take exited threads into
9425         account.
9426
9427 2015-03-24  Pedro Alves  <palves@redhat.com>
9428
9429         * infrun.c (resume, proceed): Mention
9430         switch_back_to_stepped_thread, not switch_back_to_stepping.
9431
9432 2015-03-24  Pedro Alves  <palves@redhat.com>
9433
9434         * infrun.c (user_visible_resume_ptid): Rewrite going from
9435         most-locked to unlocked instead of the opposite.  Move comment ...
9436         * infrun.h (user_visible_resume_ptid): ... here.
9437
9438 2015-03-24  Pedro Alves  <palves@redhat.com>
9439
9440         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9441         to resume the event lwp.  Use the lwp's ptid instead of the passed
9442         in (maybe wildcard) ptid.
9443         (stop_wait_callback): Tweak debug log output.
9444         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9445         TRAP_TRACE.
9446         (linux_nat_filter_event): In debug output, distinguish a
9447         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9448         before trying to resume the lwp.
9449
9450 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9451
9452         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9453         pointer indirection.
9454         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9455         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9456
9457 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9458
9459         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9460         Renames DYN_ATTR_DATA_LOCATION.
9461         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9462         DYN_ATTR_DATA_LOCATION.
9463         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9464         instead of DYN_ATTR_DATA_LOCATION.
9465
9466 2015-03-24  Pedro Alves  <palves@redhat.com>
9467
9468         * breakpoint.c (until_break_command): Adjust call to proceed.
9469         * gdbthread.h (struct thread_control_state) <stepping_command>:
9470         New field.
9471         * infcall.c (run_inferior_call): Adjust call to proceed.
9472         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9473         Adjust calls to proceed.
9474         (set_step_frame): Set the current thread's step_start_function
9475         here.
9476         (step_once): Adjust calls to proceed.
9477         (jump_command, signal_command, until_next_command)
9478         (finish_backward, finish_forward, proceed_after_attach_callback)
9479         (attach_command_post_wait): Adjust calls to proceed.
9480         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9481         (do_target_resume): New function, factored out from ...
9482         (resume): ... here.  Remove 'step' parameter.  Instead, check
9483         currently_stepping to determine whether the thread should be
9484         single-stepped.
9485         (proceed): Remove 'step' parameter and don't set the thread's
9486         step_start_function here.  Adjust call to 'resume'.
9487         (handle_inferior_event): Adjust calls to 'resume'.
9488         (switch_back_to_stepped_thread): Use do_target_resume instead of
9489         'resume'.
9490         (keep_going): Adjust calls to 'resume'.
9491         * infrun.h (proceed): Remove 'step' parameter.
9492         (resume): Likewise.
9493         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9494         'resume'.
9495         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9496
9497 2015-03-24  Pedro Alves  <palves@redhat.com>
9498
9499         * gdbthread.h (struct thread_control_state) <stepping_command>:
9500         New field.
9501         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9502         the thread's stepping_command field.
9503         * infrun.c (resume): Check the thread's stepping_command flag to
9504         determine which threads should be resumed.  Rename 'entry_step'
9505         local to user_step.
9506         (clear_proceed_status_thread): Clear 'stepping_command'.
9507         (schedlock_applies): Change parameter type to struct thread_info
9508         pointer.  Adjust.
9509         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9510         (switch_back_to_stepped_thread): Adjust calls to
9511         'schedlock_applies'.
9512         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9513
9514 2015-03-24  Pedro Alves  <palves@redhat.com>
9515
9516         * infrun.c (step_start_function): Delete and ...
9517         * gdbthread.h (struct thread_control_state) <step_start_function>:
9518         ... now a field here.
9519         * infrun.c (clear_proceed_status_thread): Clear the thread's
9520         step_start_function.
9521         (proceed, process_event_stop_test, print_stop_event): Adjust.
9522
9523 2015-03-24  Pedro Alves  <palves@redhat.com>
9524
9525         * infrun.c (proceed): No longer handle negative step.
9526
9527 2015-03-24  Gary Benson  <gbenson@redhat.com>
9528
9529         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9530         (x86_linux_prepare_to_resume): Likewise.
9531         * x86-linux-nat.c (x86_linux_new_thread):
9532         Moved to nat/x86-linux.c.
9533         (x86_linux_prepare_to_resume): Likewise.
9534         * nat/x86-linux.c (x86_linux_new_thread): New function.
9535         (x86_linux_prepare_to_resume): Likewise.
9536
9537 2015-03-24  Gary Benson  <gbenson@redhat.com>
9538
9539         * nat/x86-linux-dregs.h: New file.
9540         * nat/x86-linux-dregs.c: Likewise.
9541         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9542         (x86-linux-dregs.o): New rule.
9543         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9544         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9545         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9546         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9547         (x86_linux_dr_get): Likewise.
9548         (x86_linux_dr_set): Likewise.
9549         (x86_linux_dr_get_addr): Likewise.
9550         (x86_linux_dr_get_control): Likewise.
9551         (x86_linux_dr_get_status): Likewise.
9552         (update_debug_registers_callback): Likewise.
9553         (x86_linux_dr_set_control): Likewise.
9554         (x86_linux_dr_set_addr): Likewise.
9555         (x86_linux_update_debug_registers): Likewise.
9556
9557 2015-03-24  Gary Benson  <gbenson@redhat.com>
9558
9559         * x86-linux-nat.c (x86_linux_update_debug_registers):
9560         New function, factored out from...
9561         (x86_linux_prepare_to_resume): ...this.
9562
9563 2015-03-24  Gary Benson  <gbenson@redhat.com>
9564
9565         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9566         (x86_linux_dr_set): Likewise.
9567         (x86_linux_dr_get_addr): Likewise.
9568         (x86_linux_dr_get_control): Likewise.
9569         (x86_linux_dr_get_status): Likewise.
9570         (update_debug_registers_callback): Likewise.
9571         (x86_linux_dr_set_control): Likewise.
9572         (x86_linux_dr_set_addr): Likewise.
9573         (x86_linux_prepare_to_resume): Likewise.
9574         (x86_linux_new_thread): Likewise.
9575
9576 2015-03-24  Gary Benson  <gbenson@redhat.com>
9577
9578         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9579         (x86_linux_new_thread): Rename argument.
9580
9581 2015-03-24  Gary Benson  <gbenson@redhat.com>
9582
9583         * nat/x86-linux.h: New file.
9584         * nat/x86-linux.c: Likewise.
9585         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9586         (x86-linux.o): New rule.
9587         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9588         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9589         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9590         (lwp_set_arch_private_info): New declaration.
9591         (lwp_arch_private_info): Likewise.
9592         * linux-nat.c (lwp_set_arch_private_info): New function.
9593         (lwp_arch_private_info): Likewise.
9594         * x86-linux-nat.c: Include nat/x86-linux.h.
9595         (arch_lwp_info): Removed structure.
9596         (update_debug_registers_callback):
9597         Use lwp_set_debug_registers_changed.
9598         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9599         and lwp_set_debug_registers_changed.
9600         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9601
9602 2015-03-24  Gary Benson  <gbenson@redhat.com>
9603
9604         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9605         (lwp_is_stopped): Likewise.
9606         (lwp_stop_reason): Likewise.
9607         * linux-nat.c (ptid_of_lwp): New function.
9608         (lwp_is_stopped): Likewise.
9609         (lwp_is_stopped_by_watchpoint): Likewise.
9610         * x86-linux-nat.c (update_debug_registers_callback):
9611         Use lwp_is_stopped.
9612         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9613         lwp_stop_reason.
9614
9615 2015-03-24  Gary Benson  <gbenson@redhat.com>
9616
9617         * linux-nat.h (linux_stop_lwp): Move declaration to...
9618         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9619
9620 2015-03-24  Gary Benson  <gbenson@redhat.com>
9621
9622         * linux-nat.h: Include nat/linux-nat.h.
9623         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9624         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9625         (iterate_over_lwps_ftype): New typedef.
9626         (iterate_over_lwps): New declaration.
9627         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9628         iterate_over_lwps_ftype.  Update callback return value check.
9629
9630 2015-03-24  Gary Benson  <gbenson@redhat.com>
9631
9632         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9633         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9634
9635 2015-03-24  Gary Benson  <gbenson@redhat.com>
9636
9637         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9638         * linux-nat.c (current_lwp_ptid): New function.
9639         * x86-linux-nat.c: Include nat/linux-nat.h.
9640         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9641         (x86_linux_dr_get_control): Likewise.
9642         (x86_linux_dr_get_status): Likewise.
9643         (x86_linux_dr_set_control): Likewise.
9644         (x86_linux_dr_set_addr): Likewise.
9645
9646 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9647
9648         PR breakpoints/16466
9649         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9650
9651 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9652
9653         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9654         * ser-unix.c (hardwire_setparity): Likewise.
9655
9656 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9657
9658         * NEWS: Mention set/show serial parity command.
9659         * monitor.c (monitor_open): Call serial_setparity.
9660         * remote.c (remote_open_1): Likewise.
9661         * ser-base.c (ser_base_serparity): New function.
9662         * ser-base.h (ser_base_setparity): Add  declaration.
9663         * ser-go32.c (dos_ops): Set "setparity" field.
9664         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9665         state.Parity.
9666         (ser_windows_setparity): New function.
9667         (hardwire_ops): Add ser_windows_setparity.
9668         (tty_ops): Add NULL for setparity field.
9669         (pipe_ops): Add ser_base_setparity.
9670         (tcp_ops): Likewise.
9671         * ser-pipe.c (pipe_ops): Likewise.
9672         * ser-tcp.c (tcp_ops): Likewise.
9673         * ser-unix.c (hardwire_setparity): Add declaration.
9674         (hardwire_raw): Don't reset PARENB flag.
9675         (hardwire_setparity): New function.
9676         (hardwire_ops): Add hardwire_setparity.
9677         * serial.c (serial_setparity): New function.
9678         (serial_parity): New global.
9679         (parity_none, parity_odd, parity_even, parity_enums, parity):
9680         New static globals.
9681         (set_parity): New function.
9682         (_initialize_serial): Add set/show serial parity commands.
9683         * serial.h (GDBPARITY_NONE): Define.
9684         (GDBPARITY_ODD): Define.
9685         (GDBPARITY_EVEN): Define.
9686         (serial_setparity) Add declaration.
9687         (struct serial_ops): Add setparity field.
9688         * target.h (serial_parity): Add declaration.
9689
9690 2015-03-23  Keith Seitz  <keiths@redhat.com>
9691
9692         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9693
9694 2015-03-23  Keith Seitz  <keiths@redhat.com>
9695
9696         * breakpoint.c (parse_breakpoint_sals): Use
9697         linespec_lexer_lex_keyword to ascertain if the user specified
9698         a NULL location.
9699         * linespec.c [IF_KEYWORD_INDEX]: Define.
9700         (linespec_lexer_lex_keyword): Export.
9701         (struct ls_parser) <keyword_ok>: Remove.
9702         A keyword is only a keyword if not followed by another keyword.
9703         (linespec_lexer_lex_one): Remove keyword_ok handling.
9704         Add comment explaining why the parsing stream is not advanced
9705         when a keyword is seen.
9706         (parse_linespec): Remove parser->keyword_ok.
9707         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9708
9709 2015-03-23  Keith Seitz  <keiths@redhat.com>
9710
9711         PR gdb/18021
9712         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9713         if we find a static method with DW_AT_vtable_elem_location.
9714
9715 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9716
9717         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9718         before the second loop, to avoid undefined behavior.  Reported by
9719         Anton Blanchard <anton@samba.org>.
9720
9721 2015-03-20  Keven Boell  <keven.boell@intel.com>
9722
9723         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9724         data_location usage to linked list.
9725         (resolve_dynamic_type_internal): Adapt data_location to
9726         linked list.
9727         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9728         (copy_type_recursive, copy_type): Add copy of linked list.
9729         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9730         (struct dynamic_prop_list): New struct.
9731         * dwarf2read.c (set_die_type): Set data_location data.
9732
9733 2015-03-20  Pedro Alves  <palves@redhat.com>
9734
9735         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9736         inner block and make it const.
9737         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9738
9739 2015-03-20  Pedro Alves  <palves@redhat.com>
9740
9741         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9742         * breakpoint.h (set_breakpoint_condition): Update declaration.
9743
9744 2015-03-20  Pedro Alves  <palves@redhat.com>
9745
9746         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9747
9748 2015-03-20  Pedro Alves  <palves@redhat.com>
9749
9750         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9751
9752 2015-03-20  Pedro Alves  <palves@redhat.com>
9753
9754         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9755
9756 2015-03-20  Pedro Alves  <palves@redhat.com>
9757
9758         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9759         (nto_init_solib_absolute_prefix): Likewise.
9760
9761 2015-03-20  Pedro Alves  <palves@redhat.com>
9762
9763         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9764         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9765
9766 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9767
9768         * config/djgpp/README: Remove gdb.hp.
9769
9770 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9771
9772         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9773         set_gdbarch_cannot_step_breakpoint.
9774
9775 2015-03-19  Pedro Alves  <palves@redhat.com>
9776
9777         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9778         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9779         instead call perror_with_name.
9780         (check_ptrace_stopped_lwp_gone): New function.
9781         (linux_resume_one_lwp): Reimplement as wrapper around
9782         linux_resume_one_lwp_throw that swallows errors if the LWP is
9783         gone.
9784         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9785         swallows errors if the LWP is gone.  Use
9786         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9787
9788 2015-03-19  Pedro Alves  <palves@redhat.com>
9789
9790         * linux-nat.c (status_callback): Return early if the LWP has no
9791         status pending.
9792
9793 2015-03-19  Pedro Alves  <palves@redhat.com>
9794
9795         * linux-nat.c (select_event_lwp_callback): Update comment to no
9796         longer mention SIGTRAP.
9797
9798 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9799
9800         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9801         redirection code to ...
9802         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9803         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9804
9805 2015-03-18  Gary Benson <gbenson@redhat.com>
9806
9807         (remote_protocol_features): Remove the "vFile:fstat" feature.
9808         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9809
9810 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9811
9812         PR tdep/18107
9813         * aarch64-linux-tdep.c: Include xml-syscall.h
9814         (aarch64_linux_get_syscall_number): New function.
9815         (aarch64_linux_init_abi): Call
9816         set_gdbarch_get_syscall_number.
9817         * syscalls/aarch64-linux.xml: New file.
9818
9819 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9820
9821         * ser-base.h (ser_base_setstopbits): Change second argument name
9822         from "rate" to "num".
9823
9824 2015-03-17  Gary Benson <gbenson@redhat.com>
9825             Luke Allardyce <lukeallardyce@gmail.com>
9826
9827         PR gdb/18131
9828         * common/common-remote-fileio.h (sys/stat.h): New include.
9829         (stuct stat): Remove forward declaration.
9830
9831 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9832
9833         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9834         before writing core register notes.
9835
9836 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9837             Pedro Alves  <palves@redhat.com>
9838
9839         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9840         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9841         (tgoto): Wrap with extern "C".
9842
9843 2015-03-16  Pedro Alves  <palves@redhat.com>
9844             Yuanhui Zhang  <asmwarrior@gmail.com>
9845
9846         * stub-termcap.c (tputs): Change prototype.
9847
9848 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9849             Pedro Alves  <palves@redhat.com>
9850
9851         * windows-nat.c (struct thread_info_struct): Rename to ...
9852         (struct windows_thread_info_struct): ... this.
9853         (thread_info): Rename to ...
9854         (windows_thread_info): ... this.
9855         All users updated.
9856
9857 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9858             Pedro Alves  <palves@redhat.com>
9859
9860         * NEWS: New Removed targets and native configurations.
9861
9862 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9863
9864         Remove HPUX.
9865         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9866         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9867         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9868         ia64-hpux-tdep.h, solib-ia64-hpux.h.
9869         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9870         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9871         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9872         hppa-hpux-tdep.c.
9873         * config/ia64/hpux.mh: Remove file.
9874         * config/pa/hpux.mh: Remove file.
9875         * configure: Rebuilt.
9876         * configure.ac (dlgetmodinfo, somread.o): Remove.
9877         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9878         (ia64-*-hpux*): Remove its float format exception.
9879         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9880         * hppa-hpux-nat.c: Remove file.
9881         * hppa-hpux-tdep.c: Remove file.
9882         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9883         Move them here from hppa-tdep.h
9884         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9885         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9886         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9887         Move them to hppa-tdep.c.
9888         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9889         declarations.
9890         * ia64-hpux-nat.c: Remove file.
9891         * ia64-hpux-tdep.c: Remove file.
9892         * ia64-hpux-tdep.h: Remove file.
9893         * inf-ttrace.c: Remove file.
9894         * inf-ttrace.h: Remove file.
9895         * solib-ia64-hpux.c: Remove file.
9896         * solib-ia64-hpux.h: Remove file.
9897         * solib-pa64.c: Remove file.
9898         * solib-pa64.h: Remove file.
9899         * solib-som.c: Remove file.
9900         * solib-som.h: Remove file.
9901         * somread.c: Remove file.
9902
9903 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9904
9905         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9906         * config.in: Regenerate.
9907         * configure: Regenerate.
9908         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9909         define.
9910         (fbsd_find_memory_regions): Use kinfo_getvmmap to
9911         enumerate memory regions if present.
9912
9913 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9914
9915         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9916         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9917         expressions.
9918         (i386fbsd_sigtramp_p): Likewise.
9919
9920 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
9921
9922         * MAINTAINERS (Write After Approval): Add John Baldwin.
9923
9924 2015-03-12  Gary Benson <gbenson@redhat.com>
9925
9926         * solib.c (_initialize_solib): Make "set/show sysroot" use
9927         add_setshow_optional_filename_cmd so it can be restored to
9928         empty after being set.
9929
9930 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9931
9932         * Makefile.in (SFILES): New source break-catch-syscall.c.
9933         (COMMON_OBS): New object break-catch-syscall.o.
9934         * break-catch-syscall.c: New file.
9935         * breakpoint.c: Remove inclusion of "xml-syscall.h".
9936         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9937         (struct syscall_catchpoint): Likewise.
9938         (dtor_catch_syscall): Likewise.
9939         (catch_syscall_inferior_data): Likewise.
9940         (struct catch_syscall_inferior_data): Likewise.
9941         (get_catch_syscall_inferior_data): Likewise.
9942         (catch_syscall_inferior_data_cleanup): Likewise.
9943         (insert_catch_syscall): Likewise.
9944         (remove_catch_syscall): Likewise.
9945         (breakpoint_hit_catch_syscall): Likewise.
9946         (print_it_catch_syscall): Likewise.
9947         (print_one_catch_syscall): Likewise.
9948         (print_mention_catch_syscall): Likewise.
9949         (print_recreate_catch_syscall): Likewise.
9950         (catch_syscall_breakpoint_ops): Likewise.
9951         (syscall_catchpoint_p): Likewise.
9952         (create_syscall_event_catchpoint): Likewise.
9953         (catch_syscall_split_args): Likewise.
9954         (catch_syscall_command_1): Likewise.
9955         (is_syscall_catchpoint_enabled): Likewise.
9956         (catch_syscall_enabled): Likewise.
9957         (catching_syscall_number): Likewise.
9958         (catch_syscall_completer): Likewise.
9959         (clear_syscall_counts): Likewise.
9960         (initialize_breakpoint_ops): Move initialization of syscall
9961         catchpoints to break-catch-syscall.c.
9962         (_initialize_breakpoint): Move code related to syscall catchpoints
9963         to break-catch-syscall.c.
9964
9965 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9966
9967         * breakpoint.c (breakpoint_find_if): New function.
9968         * breakpoint.h (breakpoint_find_if): New prototype.
9969
9970 2015-03-11  Gary Benson <gbenson@redhat.com>
9971
9972         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9973         * remote-fileio.c (remote_fileio_to_host_uint): New function.
9974         (remote_fileio_to_host_ulong): Likewise.
9975         (remote_fileio_to_host_mode): Likewise.
9976         (remote_fileio_to_host_time): Likewise.
9977         (remote_fileio_to_host_stat): Likewise.
9978         * remote.c (PACKET_vFile_fstat): New enum value.
9979         (remote_protocol_features): Register the "vFile:fstat" feature.
9980         (remote_hostio_fstat): New function.
9981         (remote_bfd_iovec_stat): Use the above.
9982         (_initialize_remote): Register new "set/show remote
9983         hostio-fstat-packet" command.
9984         * symfile.c (separate_debug_file_exists): Update comment.
9985         * NEWS: Announce new vFile:fstat packet.
9986
9987 2015-03-11  Gary Benson <gbenson@redhat.com>
9988
9989         * common/common-remote-fileio.h: New file.
9990         * common/common-remote-fileio.c: Likewise.
9991         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9992         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9993         (COMMON_OBS): Add common-remote-fileio.o.
9994         (common-remote-fileio.o): New rule.
9995         * remote-fileio.h (common-remote-fileio.h): New include.
9996         * remote-fileio.c (gdb/fileio.h): Do not include.
9997         (remote_fileio_to_be): Moved to common-remote-fileio.h.
9998         (remote_fileio_to_fio_uint): Likewise.
9999         (remote_fileio_to_fio_time): Likewise.
10000         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10001         (remote_fileio_to_fio_mode): Likewise.
10002         (remote_fileio_to_fio_ulong): Likewise.
10003         (remote_fileio_to_fio_stat): Likewise.
10004
10005 2015-03-11  Andy Wingo  <wingo@igalia.com>
10006
10007         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10008         we were checking the cached type, not the cached dynamic type.
10009
10010 2015-03-11  Andy Wingo  <wingo@igalia.com>
10011
10012         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10013         other strings, as these are on the GC'd heap, and will be
10014         collected along with the smob.
10015
10016 2015-03-11  Andy Wingo  <wingo@igalia.com>
10017
10018         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10019         (objfile_functions): Bind gdbscm_objfile_progspace to
10020         objfile-progspace.
10021         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10022
10023 2015-03-11  Andy Wingo  <wingo@igalia.com>
10024
10025         * guile/guile.c (_initialize_guile): Disable automatic
10026         finalization, if Guile offers us that possibility.
10027         * guile/guile.c (call_initialize_gdb_module):
10028         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10029         finalizers in appropriate places.
10030         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10031         scm_set_automatic_finalization_enabled.
10032         * configure: Regenerated.
10033
10034 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10035
10036         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10037         SAL, if possible.
10038
10039 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10040
10041         * s390-linux-nat.c (struct arch_lwp_info): New.
10042         (s390_fix_watch_points): Rename to...
10043         (s390_prepare_to_resume): ...this.  Skip the PER info update
10044         unless the watch points have changed.
10045         (s390_refresh_per_info, s390_new_thread): New functions.
10046         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10047         s390_fix_watch_points.
10048         (s390_remove_watchpoint): Likewise.
10049         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10050         Register s390_prepare_to_resume.
10051
10052 2015-03-09  Pedro Alves  <palves@redhat.com>
10053
10054         Revert:
10055         2015-03-07  Pedro Alves  <palves@redhat.com>
10056         * common/gdb_socket.h: New file.
10057         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10058         sys/socket.h.
10059         (net_open): Use union gdb_sockaddr_u.
10060
10061 2015-03-07  Pedro Alves  <palves@redhat.com>
10062
10063         * configure.ac (build_warnings): Move -Wmissing-prototypes
10064         -Wdeclaration-after-statement -Wmissing-parameter-type
10065         -Wold-style-declaration -Wold-style-definition to the C-specific
10066         set.
10067         * configure: Regenerate.
10068
10069 2015-03-07  Pedro Alves  <palves@redhat.com>
10070
10071         * common/gdb_socket.h: New file.
10072         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10073         sys/socket.h.
10074         (net_open): Use union gdb_sockaddr_u.
10075
10076 2015-03-07  Pedro Alves  <palves@redhat.com>
10077
10078         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10079         (exceptions_state_mc_action_iter)
10080         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10081         Don't define.
10082         [__cplusplus] (try_scope_depth): New global.
10083         [__cplusplus] (exception_try_scope_entry)
10084         (exception_try_scope_exit, gdb_exception_sliced_copy)
10085         (exception_rethrow): New functions.
10086         (throw_exception): In C++ mode, throw
10087         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10088         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10089         (throw_it): In C++ mode, use try_scope_depth.
10090         * common/common-exceptions.h [!__cplusplus]
10091         (exceptions_state_mc_action_iter)
10092         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10093         Don't declare.
10094         [__cplusplus] (exception_try_scope_entry)
10095         (exception_try_scope_exit, exception_rethrow): Declare.
10096         [__cplusplus] (struct exception_try_scope): New struct.
10097         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10098         C++ exceptions.
10099         (struct gdb_exception_RETURN_MASK_ALL)
10100         (struct gdb_exception_RETURN_MASK_ERROR)
10101         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10102
10103 2015-03-07  Pedro Alves  <palves@redhat.com>
10104
10105         * main.c (handle_command_errors): Remove volatile qualifier from
10106         parameter.
10107
10108 2015-03-07  Pedro Alves  <palves@redhat.com>
10109
10110         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10111         TRY and CATCH.
10112         * gdbtypes.c (safe_parse_type): Remove empty line.
10113         (types_deeply_equal):
10114         * guile/scm-frame.c (gdbscm_frame_name):
10115         * linux-thread-db.c (find_new_threads_once):
10116         * python/py-breakpoint.c (bppy_get_commands):
10117         * record-btrace.c (record_btrace_insert_breakpoint)
10118         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10119         (record_btrace_start_replaying): Adjust to avoid code between TRY
10120         and CATCH.
10121
10122 2015-03-07  Pedro Alves  <palves@redhat.com>
10123
10124         * common/common-exceptions.c (struct catcher) <exception>: No
10125         longer a pointer to volatile exception.  Now an exception value.
10126         <mask>: Delete field.
10127         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10128         (exceptions_state_mc): No longer pop the catcher here.
10129         (exceptions_state_mc_catch): New function.
10130         (throw_exception): Adjust.
10131         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10132         all parameters.
10133         (exceptions_state_mc_catch): Declare.
10134         (TRY_CATCH): Rename to ...
10135         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10136         (CATCH, END_CATCH): New.
10137         All callers adjusted.
10138
10139 2015-03-07  Tom Tromey  <tromey@redhat.com>
10140
10141         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10142
10143 2015-03-07  Pedro Alves  <palves@redhat.com>
10144
10145         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10146         (amd64_epilogue_frame_cache): Normal exception handling code.
10147         * break-catch-throw.c (check_status_exception_catchpoint)
10148         (re_set_exception_catchpoint): Ditto.
10149         * cli/cli-interp.c (safe_execute_command):
10150         * cli/cli-script.c (script_from_file): Ditto.
10151         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10152         Ditto.
10153         * compile/compile-object-run.c (compile_object_run): Ditto.
10154         * cp-abi.c (baseclass_offset): Ditto.
10155         * cp-valprint.c (cp_print_value): Ditto.
10156         * exceptions.c (catch_exceptions_with_msg):
10157         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10158         * frame.c (get_frame_address_in_block_if_available): Ditto.
10159         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10160         (i386_sigtramp_frame_cache): Ditto.
10161         * infcmd.c (post_create_inferior): Ditto.
10162         * linespec.c (parse_linespec, find_linespec_symbols):
10163         * p-valprint.c (pascal_object_print_value): Ditto.
10164         * parse.c (parse_expression_for_completion): Ditto.
10165         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10166         * remote.c (remote_get_noisy_reply): Ditto.
10167         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10168         * solib-svr4.c (solib_svr4_r_map): Ditto.
10169
10170 2015-03-06  Gary Benson  <gbenson@redhat.com>
10171
10172         * common/common-utils.h (startswith): New inline function.
10173         All places where this logic was used updated to use the above.
10174
10175 2015-03-05  Pedro Alves  <palves@redhat.com>
10176
10177         PR gdb/18002
10178         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10179         after reading the breakpoint's shadow memory.
10180
10181 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10182
10183         * hppabsd-nat.c: Remove file.
10184         * hppaobsd-nat.c: New file.
10185         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10186         hppaobsd-nat.c.
10187         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10188         hppaobsd-nat.o.
10189
10190 2015-03-04  Pedro Alves  <palves@redhat.com>
10191
10192         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10193         (target_decr_pc_after_break): Delete declaration.
10194         * target.c (default_target_decr_pc_after_break)
10195         (target_decr_pc_after_break): Delete.
10196         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10197         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10198         * linux-thread-db.c (check_event): Likewise.
10199         * infrun.c (adjust_pc_after_break): Likewise.
10200         * darwin-nat.c (cancel_breakpoint): Likewise.
10201         * aix-thread.c (aix_thread_wait): Likewise.
10202         * target-delegates.c: Regenerate.
10203
10204 2015-03-04  Pedro Alves  <palves@redhat.com>
10205
10206         * linux-nat.c (save_sigtrap): Check for breakpoints before
10207         checking watchpoints.
10208         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10209         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10210         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10211         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10212         (linux_nat_stopped_by_sw_breakpoint)
10213         (linux_nat_supports_stopped_by_sw_breakpoint)
10214         (linux_nat_stopped_by_hw_breakpoint)
10215         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10216         (linux_nat_wait_1): Don't re-increment the PC if relying on
10217         SIGTRAP's siginfo->si_code.
10218         (linux_nat_add_target): Install new target methods.
10219         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10220         offset if the target already adjusted the PC.
10221         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10222         (GDB_ARCH_TRAP_BRKPT): New.
10223         (TRAP_HWBKPT): Define if not already defined.
10224
10225 2015-03-04  Pedro Alves  <palves@redhat.com>
10226
10227         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10228         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10229         Delete field.
10230         <stop_reason>: New field.
10231         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10232         (packet_set_cmd_state): New function.
10233         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10234         features.
10235         (remote_query_supported): If not disabled with the corresponding
10236         "set remote foo-packet" command, report support for the swbreak
10237         and hwbreak features.
10238         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10239         field.
10240         <stop_reason>: New field.
10241         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10242         (remote_wait_as): Adjust.
10243         (remote_stopped_by_sw_breakpoint)
10244         (remote_supports_stopped_by_sw_breakpoint)
10245         (remote_stopped_by_hw_breakpoint)
10246         (remote_supports_stopped_by_hw_breakpoint): New functions.
10247         (remote_stopped_by_watchpoint): New function.
10248         (init_remote_ops): Install them.
10249         (_initialize_remote): Register new "set/show remote
10250         swbreak-feature-packet" and "set/show remote
10251         swbreak-feature-packet" commands.
10252
10253 2015-03-04  Pedro Alves  <palves@redhat.com>
10254
10255         * btrace.h: Include target/waitstatus.h.
10256         (struct btrace_thread_info) <stop_reason>: New field.
10257         * record-btrace.c (record_btrace_step_thread): Use
10258         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10259         (record_btrace_decr_pc_after_break): Delete.
10260         (record_btrace_stopped_by_sw_breakpoint)
10261         (record_btrace_supports_stopped_by_sw_breakpoint)
10262         (record_btrace_stopped_by_hw_breakpoint)
10263         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10264         (init_record_btrace_ops): Install them.
10265         * record-full.c (record_full_hw_watchpoint): Delete and replace
10266         with ...
10267         (record_full_stop_reason): ... this throughout.
10268         (record_full_exec_insn): Adjust.
10269         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10270         (record_full_wait_1): Adjust.  Use
10271         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10272         (record_full_stopped_by_watchpoint): Adjust.
10273         (record_full_stopped_by_sw_breakpoint)
10274         (record_full_supports_stopped_by_sw_breakpoint)
10275         (record_full_supports_stopped_by_sw_breakpoint)
10276         (record_full_stopped_by_hw_breakpoint)
10277         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10278         (init_record_full_ops, init_record_full_core_ops): Install them.
10279         * record.c (record_check_stopped_by_breakpoint): New function.
10280         * record.h: Include target/waitstatus.h.
10281         (record_check_stopped_by_breakpoint): New declaration.
10282
10283 2015-03-04  Pedro Alves  <palves@redhat.com>
10284
10285         enum lwp_stop_reason -> enum target_stop_reason
10286         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10287         (linux_nat_stopped_by_watchpoint, status_callback)
10288         (linux_nat_wait_1): Adjust.
10289         * linux-nat.h (enum lwp_stop_reason): Delete.
10290         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10291         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10292         * target/waitstatus.h (enum target_stop_reason): New.
10293
10294 2015-03-04  Pedro Alves  <palves@redhat.com>
10295
10296         * breakpoint.c (need_moribund_for_location_type): New function.
10297         (bpstat_stop_status): Don't skipping checking moribund locations
10298         of breakpoint types which the target tell caused a stop.
10299         (program_breakpoint_here_p): New function, factored out from ...
10300         (bp_loc_is_permanent): ... this.
10301         (update_global_location_list): Don't create a moribund location if
10302         the target supports reporting stops of the type of the removed
10303         breakpoint.
10304         * breakpoint.h (program_breakpoint_here_p): New declaration.
10305         * infrun.c (adjust_pc_after_break): Return early if the target has
10306         already adjusted the PC.  Add comments.
10307         (handle_signal_stop): If nothing explains a signal, and the target
10308         tells us the stop was caused by a software breakpoint, check if
10309         there's a breakpoint instruction in the memory.  If so, adjust the
10310         PC before presenting the stop to the user.  Otherwise, ignore the
10311         trap.  If nothing explains a signal, and the target tells us the
10312         stop was caused by a hardware breakpoint, ignore the trap.
10313         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10314         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10315         to_supports_stopped_by_hw_breakpoint>: New fields.
10316         (target_stopped_by_sw_breakpoint)
10317         (target_supports_stopped_by_sw_breakpoint)
10318         (target_stopped_by_hw_breakpoint)
10319         (target_supports_stopped_by_hw_breakpoint): Define.
10320         * target-delegates.c: Regenerate.
10321
10322 2015-03-04  Pedro Alves  <palves@redhat.com>
10323
10324         * infrun.c (follow_fork_inferior): Use the whole of the
10325         inferior_ptid and pending_follow.related_pid ptids instead of
10326         building ptids from the process components.  Adjust verbose output
10327         to use target_pid_to_str.
10328         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10329         inferior_ptid and pending_follow.related_pid ptids instead of
10330         building ptids from the process components.
10331
10332 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10333
10334         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10335         (inf_ptrace_insert_fork_catchpoint): New function.
10336         (inf_ptrace_remove_fork_catchpoint): New function.
10337         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10338
10339 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10340
10341         * s390-linux-tdep.c (s390_register_name): Return empty string
10342         instead of NULL for registers that shouldn't be visible.
10343
10344 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10345
10346         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10347         XML file for 64-bit targets.
10348
10349 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10350
10351         * target.h (find_default_create_inferior): Remove declaration.
10352         (find_default_attach): Likewise.
10353
10354 2015-03-03  Pedro Alves  <palves@redhat.com>
10355
10356         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10357         Use ptid_get_pid to get the overall process id when resuming all
10358         threads.
10359
10360 2015-03-03  Pedro Alves  <palves@redhat.com>
10361
10362         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10363         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10364         * inf-ptrace.c (get_ptrace_pid): New function.
10365         (inf_ptrace_resume): Use it.
10366         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10367         to the lower layer.
10368
10369 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10370
10371         * nat/linux-btrace.c: Include sys/utsname.h.
10372         (linux_determine_kernel_ptr_bits): New.
10373         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10374         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10375         ptr_bits.
10376
10377 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10378
10379         * btrace.c (ftrace_update_function): Treat return as tailcall for
10380         "_dl_runtime_resolve".
10381
10382 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10383
10384         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10385         * btrace.c (ftrace_debug): Do not print the line range.
10386         (ftrace_skip_file, ftrace_update_lines): Remove.
10387         (ftrace_new_function): Remove lbegin and lend initialization.
10388         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10389         * record-btrace.c (btrace_compute_src_line_range): New.
10390         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10391
10392 2015-03-02  Pedro Alves  <palves@redhat.com>
10393
10394         * infrun.c (follow_exec): Delete all threads of the process except
10395         the event thread.  Extended comments.
10396
10397 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10398
10399         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10400
10401 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10402
10403         * utils.h: Remove <stdbool.h> #include.
10404         (producer_is_gcc): Change return type to "int".
10405         * utils.c (producer_is_gcc): Change return type to int.
10406         Return 1 instead of true, and 0 instead of false.
10407         Adjust function documentation accordingly.
10408
10409 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10410
10411         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10412         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10413         present.
10414         (s390_linux_store_inferior_registers): Likewise.
10415         (s390_get_hwcap): Remove function.  Embed its logic...
10416         (s390_read_description): ...here.  Yield a target description with
10417         vector registers if applicable.
10418         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10419         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10420         "features/s390x-tevx-linux64.c".
10421         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10422         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10423         for "GNU/Linux-specific registers".
10424         (s390_dwarf_reg_r0l): New enum value.
10425         (s390_dwarf_reg_to_regnum): Support vector registers.
10426         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10427         of GPR lower halves.
10428         (regnum_is_vxr_full): New function.
10429         (s390_register_name): New function.
10430         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10431         f0-f15 and v0l-v15l.
10432         (s390_pseudo_register_type): Likewise.
10433         (s390_pseudo_register_read): Likewise.
10434         (s390_pseudo_register_write): Likewise.
10435         (s390_value_from_register): Account for the fact that values are
10436         placed left-justified in vector registers.
10437         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10438         the vector reggroup and omit them from the general reggroup.
10439         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10440         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10441         (s390_iterate_over_regset_sections): Add iterations for the two
10442         new vector regsets.
10443         (s390_core_read_description): Yield a target description with
10444         vector registers if applicable.
10445         (s390_gdbarch_init): Handle target descriptions with vector
10446         registers.  Add "register_name" gdbarch method.
10447         (_initialize_s390_tdep): Call new tdesc initialization functions.
10448         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10449         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10450         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10451         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10452         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10453         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10454         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10455         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10456         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10457         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10458         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10459         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10460         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10461         (S390_NUM_REGS): Adjust value.
10462         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10463         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10464         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10465         * NEWS: Announce S/390 vector register support.
10466
10467 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10468
10469         * features/s390-tevx-linux64.xml: New file.
10470         * features/s390-vx-linux64.xml: New file.
10471         * features/s390-vx.xml: New file.
10472         * features/s390x-tevx-linux64.xml: New file.
10473         * features/s390x-vx-linux64.xml: New file.
10474         * features/Makefile (WHICH): Add s390-vx-linux64,
10475         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10476         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10477         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10478         macros.
10479         * features/s390-tevx-linux64.c: New generated file.
10480         * features/s390-vx-linux64.c: Likewise.
10481         * features/s390x-tevx-linux64.c: Likewise.
10482         * features/s390x-vx-linux64.c: Likewise.
10483         * regformats/s390-tevx-linux64.dat: Likewise.
10484         * regformats/s390-vx-linux64.dat: Likewise.
10485         * regformats/s390x-tevx-linux64.dat: Likewise.
10486         * regformats/s390x-vx-linux64.dat: Likewise.
10487
10488 2015-02-28  Doug Evans  <xdje42@gmail.com>
10489
10490         * symtab.h (struct symtab) <next>: Fix comment.
10491
10492 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10493
10494         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10495         python_GdbMethods.
10496
10497 2015-02-27  Pedro Alves  <palves@redhat.com>
10498
10499         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10500
10501 2015-02-27  Pedro Alves  <palves@redhat.com>
10502
10503         * common/common-exceptions.h (exception_none): Declare.
10504         * common/common-exceptions.c (exception_none): Moved from
10505         exceptions.c.
10506         (exceptions_state_mc_init): Use exception_none.
10507         * exceptions.c (exception_none): Move to
10508         common/common-exceptions.c.
10509         * exceptions.h (exception_none): Move to
10510         common/common-exceptions.h.
10511
10512 2015-02-27  Pedro Alves  <palves@redhat.com>
10513
10514         * main.c (catch_command_errors, catch_command_errors_const):
10515         Remove 'mask' argument.  Adjust.
10516         (captured_main): Adjust callers.
10517
10518 2015-02-27  Pedro Alves  <palves@redhat.com>
10519
10520         * python/python-internal.h: Include "extension-priv.h".
10521
10522 2015-02-27  Pedro Alves  <palves@redhat.com>
10523
10524         * breakpoint.h (enum print_stop_action): Move further up in the
10525         file.
10526
10527 2015-02-27  Pedro Alves  <palves@redhat.com>
10528
10529         * gdbarch.sh: Include regcache.h.
10530         * gdbarch.h: Regenerate.
10531
10532 2015-02-27  Pedro Alves  <palves@redhat.com>
10533
10534         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10535         Remove duplicate const.
10536         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10537         duplicate const.
10538
10539 2015-02-27  Pedro Alves  <palves@redhat.com>
10540
10541         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10542         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10543         * features/feature_to_c.sh: Tag the generated xml_builtin array
10544         with extern const in C++ mode.
10545
10546 2015-02-27  Tom Tromey  <tromey@redhat.com>
10547
10548         * minidebug.c (struct lzma_stream): Rename to ...
10549         (struct gdb_lzma_stream): ... this.
10550         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10551
10552 2015-02-27  Pedro Alves  <palves@redhat.com>
10553
10554         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10555         function.
10556         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10557         (mi_cmd_stack_list_variables): Use it.
10558
10559 2015-02-27  Pedro Alves  <palves@redhat.com>
10560
10561         * x86-linux-nat.c (u_debugreg_offset): New function.
10562         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10563
10564 2015-02-27  Pedro Alves  <palves@redhat.com>
10565
10566         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10567         declaration.
10568         Include break-common.h.
10569
10570 2015-02-27  Tom Tromey  <tromey@redhat.com>
10571             Pedro Alves <palves@redhat.com>
10572
10573         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10574         local used to iterate over enums.
10575         * completer.c (signal_completer): Likewise.
10576         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10577         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10578         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10579         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10580         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10581         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10582         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10583
10584 2015-02-27  Pedro Alves  <palves@redhat.com>
10585
10586         * target.h: Include "infrun.h".
10587
10588 2015-02-27  Pedro Alves  <palves@redhat.com>
10589
10590         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10591
10592 2015-02-27  Pedro Alves  <palves@redhat.com>
10593
10594         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10595         (IPA_SYM): Use it.
10596         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10597
10598 2015-02-27  Pedro Alves  <palves@redhat.com>
10599
10600         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10601         cli_mld_erase_entire_line, and make it extern "C".
10602         * common/common-defs.h (EXTERN_C): New.
10603         * completer.c (_rl_completion_prefix_display_length)
10604         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10605         out of gdb_display_match_list_1.
10606         (_rl_qsort_string_compare): Move declaration out of
10607         gdb_display_match_list_1, and make it extern "C".
10608         * defs.h (re_comp): Use EXTERN_C.
10609         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10610         and make it extern "C".
10611         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10612         and make it extern "C".
10613         (main): Move declaration out of maintenance_set_profile_cmd.
10614         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10615         EXTERN_C.
10616
10617 2015-02-27  Pedro Alves  <palves@redhat.com>
10618
10619         * python/python.c (GdbMethods): Rename to ...
10620         (python_GdbMethods): ... this and make extern.
10621         (GdbModuleDef): Rename to ...
10622         (python_GdbModuleDef): ... this and make extern.
10623
10624 2015-02-27  Pedro Alves  <palves@redhat.com>
10625
10626         * record-btrace.c (set_record_btrace_cmdlist)
10627         (show_record_btrace_cmdlist): Remove redefinitions.
10628
10629 2015-02-27  Tom Tromey  <tromey@redhat.com>
10630             Pedro Alves  <palves@redhat.com>
10631
10632         * dwarf2-frame.c (enum cfa_how_kind, struct
10633         dwarf2_frame_state_reg_info): Move out of struct
10634         dwarf2_frame_state.
10635         * dwarf2read.c (struct tu_stats): Move out of struct
10636         dwarf2_per_objfile.
10637         (struct file_entry): Move out of struct line_header.
10638         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10639         typedef_field_list): Move out of struct field_info.
10640         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10641         Move out of struct dynamic_prop.
10642         (union type_owner, union field_location, struct field, struct
10643         range_bounds, union type_specific): Move out of struct main_type.
10644         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10645         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10646         (struct call_site_target, union call_site_parameter_u, struct
10647         call_site_parameter): Move out of struct call_site.
10648         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10649         m32c_prologue.
10650         (enum srcdest_kind): Move out of struct srcdest.
10651         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10652         * prologue-value.h (enum prologue_value_kind): Move out of struct
10653         prologue_value.
10654         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10655         gdbarch_tdep.
10656         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10657         out of struct field_info.
10658         * symfile.h (struct other_sections): Move out of struct
10659         section_addr_info.
10660         * symtab.c (struct symbol_cache_slot): Move out struct
10661         block_symbol_cache.
10662         * target-descriptions.c (enum tdesc_type_kind): Move out of
10663         typedef struct tdesc_type.
10664         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10665         struct tui_line_or_address.
10666         * value.c (enum internalvar_kind, union internalvar_data): Move
10667         out of struct internalvar.
10668         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10669         gdbarch_tdep.
10670
10671 2015-02-27  Tom Tromey  <tromey@redhat.com>
10672             Pedro Alves  <palves@redhat.com>
10673
10674         Rename symbols whose names are reserved C++ keywords throughout.
10675
10676 2015-02-27  Pedro Alves  <palves@redhat.com>
10677
10678         * Makefile.in (COMPILER): New, get it from autoconf.
10679         (COMPILE.pre, CC_LD): Use COMPILER.
10680         (CXX): Get from autoconf instead.
10681         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10682         * acinclude.m4: Include build-with-cxx.m4.
10683         * build-with-cxx.m4: New file.
10684         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10685         Disable -Werror by default if building in C++ mode.
10686         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10687         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10688         Run supported-warning-flags tests with the C++ compiler.
10689         Save/restore CXXFLAGS too.
10690         * configure: Regenerate.
10691
10692 2015-02-27  Pedro Alves  <palves@redhat.com>
10693
10694         * libiberty.m4: New file.
10695         * acinclude.m4: Include libiberty.m4.
10696         * configure.ac: Call libiberty_INIT.
10697         * config.in, configure: Regenerate.
10698
10699 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10700
10701         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10702         31-bit targets, but 64-bit targets as well.
10703         (s390_gnu_triplet_regexp): New function.
10704         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10705         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10706         method.
10707
10708 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10709
10710         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10711         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10712         from CONTEXT_DEBUGGER.
10713
10714 2015-02-26  Doug Evans  <dje@google.com>
10715
10716         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10717         CHECK_TYPEDEF.
10718         (set_type_vptr_fieldno): Ditto.
10719         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10720         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10721
10722 2015-02-26  Pedro Alves  <palves@redhat.com>
10723
10724         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10725         * complaints.c (vcomplaint): Pass argument FMT directly to
10726         printf-like functions instead of complaint->fmt.
10727         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10728         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10729         * compile/compile-loc2c.c (pushf, unary, binary): Add
10730         ATTRIBUTE_PRINTF.
10731         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10732         to pushf.
10733         (BINARY): Pass string literal as format string to 'binary'.
10734         * compile/compile-object-load.c (link_callbacks_einfo): Add
10735         ATTRIBUTE_PRINTF.
10736         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10737
10738 2015-02-26  Pedro Alves  <palves@redhat.com>
10739
10740         * windows-termcap.c: Rename to ...
10741         * stub-termcap.c: ... this.  Adjust header line.
10742         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10743         windows-termcap.c.
10744         * configure: Regenerate.
10745         * configure.ac: Refer to stub-termcap.o instead of
10746         windows-termcap.o.
10747         * gdb_curses.h: Mention stub-termcap.c instead of
10748         windows-termcap.c.
10749
10750 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10751
10752         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10753         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10754
10755 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10756
10757         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10758
10759 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10760
10761         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10762         bfd_canonicalize_symtab.
10763
10764 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10765
10766         * amd64fbsd-nat.c: Include sys/user.h.
10767         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10768         instead of KERN_PS_STRINGS to locate the signal trampoline.
10769         * i386fbsd-nat.c: Include sys/user.h.
10770         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10771         instead of KERN_PS_STRINGS to locate the signal trampoline.
10772         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10773         (amd64fbsd_sigtramp_p): New.
10774         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10775         longer set default values.
10776         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10777         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10778         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10779         (i386fbsd_freebsd4_sigtramp_start)
10780         (i386fbsd_freebsd4_sigtramp_middle)
10781         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10782         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10783         (i386fbsd_sigtramp_p): New.
10784         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10785         longer set default values.
10786         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10787
10788 2015-02-25  John Baldwin  <jhb@freebsd.org>
10789
10790         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10791         get_frame_register instead of frame_unwind_register_unsigned.
10792
10793 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10794
10795         PR build/18033
10796         * compile/compile-c-support.c (c_compute_program): Change // comment.
10797         * compile/compile-object-load.c (setup_sections): Change // comment.
10798
10799 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10800
10801         PR build/18033:
10802         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10803
10804 2015-02-23  Pedro Alves  <palves@redhat.com>
10805
10806         * remote.c (skip_to_semicolon): New function.
10807         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10808         special case the stop reasons that look like hex numbers
10809         upfront.  Instead handle real register numbers after matching
10810         all the known stop reasons.
10811
10812 2015-02-21  Doug Evans  <dje@google.com>
10813
10814         PR c++/17976, symtab/17821
10815         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10816         is_in_anonymous.  All callers updated.
10817         (find_symbol_in_baseclass): Ditto.
10818         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10819         for symbols in an anonymous namespace.
10820         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10821         DW_AT_name directly.
10822         (dwarf2_name): Convert missing namespace name to
10823         CP_ANONYMOUS_NAMESPACE_STR.
10824
10825 2015-02-20  Pedro Alves  <palves@redhat.com>
10826
10827         * linux-nat.c (linux_handle_extended_wait): Call
10828         thread_db_notice_clone whenever a new clone LWP is detected.
10829         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10830         functions.
10831         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10832         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10833         (linux_unstop_all_lwps): Declare.
10834         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10835         (thread_get_info_callback): Delete.
10836         (thread_from_lwp): Use td_thr_get_info and record_thread.
10837         (thread_db_attach_lwp): Delete.
10838         (thread_db_notice_clone): New function.
10839         (try_thread_db_load_1): If /proc is mounted and shows the
10840         process'es task list, walk over all LWPs and call thread_from_lwp
10841         instead of relying on td_ta_thr_iter.
10842         (attach_thread): Don't call check_thread_signals here.  Split the
10843         tail part of the function (which adds the thread to the core GDB
10844         thread list) to ...
10845         (record_thread): ... this function.  Call check_thread_signals
10846         here.
10847         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10848         call thread_from_lwp.
10849         (thread_db_update_thread_list): Rename to ...
10850         (thread_db_update_thread_list_org): ... this.
10851         (thread_db_update_thread_list): New function.
10852         (thread_db_find_thread_from_tid): Delete.
10853         (thread_db_get_ada_task_ptid): Simplify.
10854         * nat/linux-procfs.c: Include <sys/stat.h>.
10855         (linux_proc_task_list_dir_exists): New function.
10856         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10857
10858 2015-02-20  Pedro Alves  <palves@redhat.com>
10859
10860         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10861         main LWP.  Handle the case of waitpid returning 0 if we're already
10862         attached to the LWP.  Don't set the LWP's last_resume_kind to
10863         resume_stop if we already knew about the LWP.
10864         (linux_nat_filter_event): Add debug logs.
10865
10866 2015-02-20  Pedro Alves  <palves@redhat.com>
10867
10868         * target.h (forward_target_decr_pc_after_break): Delete
10869         declaration.
10870
10871 2015-02-20  Pedro Alves  <palves@redhat.com>
10872
10873         PR threads/18006
10874         * linux-thread-db.c (thread_get_info_callback): Return early if
10875         the thread's lwp id is -1.
10876
10877 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
10878
10879         GDB 7.9 released.
10880
10881 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
10882
10883         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10884         (dtrace_get_probes) Change type of variable 'dof'.
10885
10886 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10887
10888         PR breakpoints/16812
10889         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10890         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10891         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10892
10893 2015-02-19  David Taylor  <dtaylor@emc.com>
10894
10895         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10896
10897 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
10898
10899         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10900         function.
10901         (tui_putc): Don't call tui_handle_resize_during_io.
10902         (tui_getc): Likewise.
10903         (tui_mld_getc): Likewise.
10904         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10905         (tui_sigwinch_token): New static variable.
10906         (tui_initialize_win): Adjust documentation.  Set
10907         tui_sigwinch_token.
10908         (tui_async_resize_screen): New asynchronous callback.
10909         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
10910         invoke tui_async_resize_screen.
10911
10912 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
10913
10914         * configure: Regenerated.
10915         * configure.ac: Use GDB_AC_TRANSFORM.
10916         * Makefile.in (aclocal_m4_deps): Added transform.m4.
10917         * acinclude.m4: sinclude transform.m4.
10918         * transform.m4: New file.
10919         (GDB_AC_TRANSFORM): New macro.
10920
10921 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10922
10923         * NEWS: Announce the support for DTrace SDT probes.
10924
10925 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10926
10927         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10928         (amd64_dtrace_parse_probe_argument): New function.
10929         (amd64_dtrace_probe_is_enabled): Likewise.
10930         (amd64_dtrace_enable_probe): Likewise.
10931         (amd64_dtrace_disable_probe): Likewise.
10932         (amd64_linux_init_abi): Register the
10933         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10934         `gdbarch_dtrace_disable_probe' and
10935         `gdbarch_dtrace_probe_is_enabled' hooks.
10936         (amd64_dtrace_disabled_probe_sequence_1): New constant.
10937         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10938         (amd64_dtrace_enable_probe_sequence): Likewise.
10939         (amd64_dtrace_disable_probe_sequence): Likewise.
10940
10941 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10942
10943         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10944         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10945         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10946         handle ELF files.
10947         * Makefile.in (SFILES): dtrace-probe.c added.
10948         * configure: Regenerate.
10949         * dtrace-probe.c: New file.
10950         (SHT_SUNW_dof): New constant.
10951         (dtrace_probe_type): New enum.
10952         (dtrace_probe_arg): New struct.
10953         (dtrace_probe_arg_s): New typedef.
10954         (struct dtrace_probe_enabler): New struct.
10955         (dtrace_probe_enabler_s): New typedef.
10956         (dtrace_probe): New struct.
10957         (dtrace_probe_is_linespec): New function.
10958         (dtrace_dof_sect_type): New enum.
10959         (dtrace_dof_dofh_ident): Likewise.
10960         (dtrace_dof_encoding): Likewise.
10961         (DTRACE_DOF_ENCODE_LSB): Likewise.
10962         (DTRACE_DOF_ENCODE_MSB): Likewise.
10963         (dtrace_dof_hdr): New struct.
10964         (dtrace_dof_sect): Likewise.
10965         (dtrace_dof_provider): Likewise.
10966         (dtrace_dof_probe): Likewise.
10967         (DOF_UINT): New macro.
10968         (DTRACE_DOF_PTR): Likewise.
10969         (DTRACE_DOF_SECT): Likewise.
10970         (dtrace_process_dof_probe): New function.
10971         (dtrace_process_dof): Likewise.
10972         (dtrace_build_arg_exprs): Likewise.
10973         (dtrace_get_arg): Likewise.
10974         (dtrace_get_probes): Likewise.
10975         (dtrace_get_probe_argument_count): Likewise.
10976         (dtrace_can_evaluate_probe_arguments): Likewise.
10977         (dtrace_evaluate_probe_argument): Likewise.
10978         (dtrace_compile_to_ax): Likewise.
10979         (dtrace_probe_destroy): Likewise.
10980         (dtrace_gen_info_probes_table_header): Likewise.
10981         (dtrace_gen_info_probes_table_values): Likewise.
10982         (dtrace_probe_is_enabled): Likewise.
10983         (dtrace_probe_ops): New variable.
10984         (info_probes_dtrace_command): New function.
10985         (_initialize_dtrace_probe): Likewise.
10986         (dtrace_type_name): Likewise.
10987
10988 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10989
10990         * gdbarch.sh (dtrace_parse_probe_argument): New.
10991         (dtrace_probe_is_enabled): Likewise.
10992         (dtrace_enable_probe): Likewise.
10993         (dtrace_disable_probe): Likewise.
10994         * gdbarch.c: Regenerate.
10995         * gdbarch.h: Regenerate.
10996
10997 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10998
10999         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11000         stap_probe_ops for `enable_probe' and `disable_probe'.
11001         * probe.c (enable_probes_command): New function.
11002         (disable_probes_command): Likewise.
11003         (_initialize_probe): Define the cli commands `enable probe' and
11004         `disable probe'.
11005         (parse_probe_linespec): New function.
11006         (info_probes_for_ops): Use parse_probe_linespec.
11007         * probe.h (probe_ops): New hooks `enable_probe' and
11008         `disable_probe'.
11009
11010 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11011
11012         * probe.c (compute_probe_arg): Moved from stap-probe.c
11013         (compile_probe_arg): Likewise.
11014         (probe_funcs): Likewise.
11015         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11016         (compile_probe_arg): Likewise.
11017         (probe_funcs): Likewise.
11018
11019 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11020
11021         * probe.c (print_ui_out_not_applicables): New function.
11022         (exists_probe_with_pops): Likewise.
11023         (info_probes_for_ops): Do not include column headers for probe
11024         types for which no probe has been actually found on any object.
11025         Also invoke `print_ui_out_not_applicables' in order to match the
11026         column rows with the header when probes of several types are
11027         listed.
11028         Print the "Type" column.
11029         * probe.h (probe_ops): Added a new probe operation `type_name'.
11030         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11031         (stap_type_name): New function.
11032
11033 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11034
11035         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11036         (key_is_command_char): Delete.
11037
11038 2015-02-17  Pedro Alves  <palves@redhat.com>
11039
11040         * tui/tui.c (tui_enable): Resize windows before anything
11041         might show a window.
11042
11043 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11044
11045         PR gdb/17984
11046         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11047         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11048         call.
11049         * aarch64-tdep.h (tdesc_aarch64): Declare.
11050
11051 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11052
11053         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11054
11055 2015-02-13  Doug Evans  <dje@google.com>
11056
11057         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11058         anonymous_namespace to is_in_anonymous for consistency with the rest
11059         of the file.
11060         (cp_lookup_bare_symbol): Fix typo in comment.
11061         (cp_search_static_and_baseclasses): Ditto.
11062         (search_symbol_list): Use vertical space in comment better.
11063         (reset_directive_searched): Ditto. Fix typo.
11064         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11065
11066 2015-02-13  Yao Qi  <yao.qi@arm.com>
11067
11068         * MAINTAINERS: Update my email address.
11069
11070 2015-02-12  Doug Evans  <dje@google.com>
11071
11072         * symtab.c (completion_list_add_name): Fix memory leak.
11073
11074 2015-02-12  Doug Evans  <dje@google.com>
11075
11076         * completer.c (complete_line): Remove incorrect comment.
11077
11078 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11079
11080         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11081         (py_print_frame): Use RETURN_MASK_ERROR.
11082
11083 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11084
11085         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11086         function comment.  Wrap all function that can throw in cleanups.
11087         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11088         cleanups.
11089
11090 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11091
11092         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11093         Remove the error label.
11094
11095 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11096
11097         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11098         with goto first, indent the former else codepath left.  Put variable
11099         'elided' to a new inner block.
11100
11101 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11102
11103         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11104
11105 2015-02-11  Pedro Alves  <palves@redhat.com>
11106
11107         * xcoffread.c (within_function): Delete.
11108
11109 2015-02-11  Tom Tromey  <tromey@redhat.com>
11110             Pedro Alves <palves@redhat.com>
11111
11112         * breakpoint.c (base_breakpoint_ops): Delete.
11113         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11114         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11115         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11116         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11117         * python/py-arch.c (arch_object_type): Make extern.
11118         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11119         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11120         * python/py-cmd.c (cmdpy_object_type): Make extern.
11121         * python/py-continueevent.c (continue_event_object_type)
11122         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11123         parameter.  Update all callers.
11124         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11125         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11126         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11127         * python/py-function.c (fnpy_object_type): Make extern.
11128         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11129         * python/py-infevents.c (call_pre_event_object_type)
11130         (inferior_call_post_event_object_type).
11131         (memory_changed_event_object_type): Make extern.
11132         * python/py-infthread.c (thread_object_type): Make extern.
11133         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11134         * python/py-linetable.c (linetable_entry_object_type)
11135         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11136         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11137         (clear_objfiles_event_object_type): Make extern.
11138         * python/py-objfile.c (objfile_object_type): Make extern.
11139         * python/py-param.c (parmpy_object_type): Make extern.
11140         * python/py-progspace.c (pspace_object_type): Make extern.
11141         * python/py-signalevent.c (signal_event_object_type): Make extern.
11142         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11143         * python/py-type.c (type_object_type, field_object_type)
11144         (type_iterator_object_type): Make extern.
11145         * python/python.c (python_extension_script_ops)
11146         (python_extension_ops): Make extern.
11147         * stap-probe.c (stap_probe_ops): Make extern.
11148
11149 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11150
11151         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11152         because the event thread is not the current thread.
11153
11154 2015-02-11  Doug Evans  <xdje42@gmail.com>
11155
11156         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11157         been initialized yet, return NULL.
11158
11159 2015-02-11  Doug Evans  <dje@google.com>
11160
11161         * symfile.h (new_symfile_objfile): Delete.
11162         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11163         All callers updated.
11164
11165 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11166
11167         * tui/tui-io.c (tui_handle_resize_during_io): Call
11168         tui_update_gdb_sizes() after resizing the screen.
11169         * tui/tui.c (tui_enable): Resize the terminal before
11170         calling tui_update_gdb_sizes().
11171
11172 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11173
11174         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11175         line before printing a newline.
11176
11177 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11178
11179         * utils.c (producer_is_gcc): Return true or false.
11180
11181 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11182
11183         * utils.h (producer_is_gcc): Change return type to bool. Add major
11184         argument.
11185         * utils.c (producer_is_gcc): Likewise.
11186         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11187         * dwarf2read.c (check_producer): Likewise.
11188
11189 2015-02-10  Pedro Alves  <palves@redhat.com>
11190
11191         * infrun.c (displaced_step_fixup): Switch to the event thread
11192         before calling gdbarch_displaced_step_fixup.
11193
11194 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11195
11196         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11197
11198 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11199
11200         * ada-varobj.c (ada_name_of_child): Constify parent.
11201         (ada_path_expr_of_child): Same.
11202         (ada_value_of_child): Same.
11203         (ada_type_of_child): Same.
11204         * c-varobj.c (c_is_path_expr_parent): Same.
11205         (c_describe_child): Same.
11206         (c_name_of_child): Same.
11207         (c_value_of_child): Same.
11208         (c_type_of_child): Same.
11209         (cplus_number_of_children): Same.
11210         (cplus_describe_child): Constify var.
11211         (cplus_name_of_child): Constify parent.
11212         (cplus_value_of_child): Same.
11213         (cplus_type_of_child): Same.
11214         * jv-varobj.c (java_name_of_child): Same.
11215         (java_value_of_child): Same.
11216         (java_type_of_child): Same.
11217         * varobj.c (value_of_child): Same.
11218         (varobj_default_is_path_expr_parent): Constify var, parent and return
11219         value.
11220         (varobj_get_path_expr): Constify var, modify path_expr through
11221         mutable_var.
11222         (install_new_value): Constify parent.
11223         (value_of_child): Constify parent.
11224         * varobj.h (struct varobj): Constify parent.
11225         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11226         type_of_child.
11227         (varobj_get_path_expr): Constify var.
11228         (varobj_get_path_expr_parent): Constify var and return value.
11229
11230 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11231
11232         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11233         (arm_prologue_this_id): Move PC and SP limit checks to
11234         arm_prologue_unwind_stop_reason.
11235         (arm_prologue_unwind) <stop_reason> : Set to
11236         arm_prologue_unwind_stop_reason.
11237
11238 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11239
11240         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11241         DW_LANG_Fortran08 as language_fortran.
11242
11243 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11244
11245         PR remote/17946
11246         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11247         of pointer against char.
11248
11249 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11250
11251         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11252         (c_type_print_modifier): Likewise.
11253         * dwarf2read.c (read_tag_atomic_type): New function.
11254         (read_type_die_1): Handle DW_TAG_atomic_type.
11255         * gdbtypes.c (make_atomic_type): New function.
11256         (recursive_dump_type): Handle TYPE_ATOMIC.
11257         * gdbtypes.h (enum type_flag_values): Renumber.
11258         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11259         (TYPE_ATOMIC): New macro.
11260         (make_atomic_type): Declare.
11261
11262 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11263
11264         * btrace.c (ftrace_find_call): Skip gaps.
11265         (ftrace_new_function): Initialize level.
11266         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11267         (ftrace_new_switch): Update
11268         level computation.
11269         (ftrace_new_gap): New.
11270         (ftrace_update_function): Create new function after gap.
11271         (btrace_compute_ftrace_bts): Create gap on error.
11272         (btrace_stitch_bts): Update parameters.  Clear trace if it
11273         becomes empty.
11274         (btrace_stitch_trace): Update parameters.  Update callers.
11275         (btrace_clear): Reset the number of gaps.
11276         (btrace_insn_get): Return NULL if the iterator points to a gap.
11277         (btrace_insn_number): Return zero if the iterator points to a gap.
11278         (btrace_insn_end): Allow gaps at the end.
11279         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11280         (btrace_find_insn_by_number): Assert that the found iterator does
11281         not point to a gap.
11282         (btrace_call_next, btrace_call_prev): Assert that the last function
11283         is not a gap.
11284         * btrace.h (btrace_bts_error): New.
11285         (btrace_function): Update comment.
11286         (btrace_function) <insn, insn_offset, number>: Update comment.
11287         (btrace_function) <errcode>: New.
11288         (btrace_thread_info) <ngaps>: New.
11289         (btrace_thread_info) <replay>: Update comment.
11290         (btrace_insn_get): Update comment.
11291         * record-btrace.c (btrace_ui_out_decode_error): New.
11292         (record_btrace_info): Print number of gaps.
11293         (btrace_insn_history, btrace_call_history): Call
11294         btrace_ui_out_decode_error for gaps.
11295         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11296
11297 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11298
11299         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11300         * nat/linux-btrace.c: (btrace_this_cpu): New.
11301         (cpu_supports_bts): Call btrace_this_cpu.
11302         (intel_supports_bts): Add cpu parameter.
11303
11304 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11305
11306         * btrace.h (btrace_insn_class): New.
11307         (btrace_insn) <size, iclass>: New.
11308         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11309         Use instruction classification.
11310         (ftrace_new_return): Update parameters.  Update users.
11311         (ftrace_update_function): Update parameters.  Update users.  Use
11312         instruction classification.
11313         (ftrace_update_insns): Update parameters.  Update users.
11314         (ftrace_classify_insn): New.
11315         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11316         TRY_CATCH around call to gdb_insn_length.
11317
11318 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11319
11320         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11321         Update parameters.  Update users.
11322
11323 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11324
11325         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11326         (btrace_conf_bts_attributes): New.
11327         (btrace_conf_children): Add attributes.
11328         * common/btrace-common.h (btrace_config_bts): New.
11329         (btrace_config)<bts>: New.
11330         (btrace_config): Update comment.
11331         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11332         Use config.
11333         * features/btrace-conf.dtd: Increment version.  Add size
11334         attribute to bts element.
11335         * record-btrace.c (set_record_btrace_bts_cmdlist,
11336         show_record_btrace_bts_cmdlist): New.
11337         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11338         record_btrace_print_conf, cmd_set_record_btrace_bts,
11339         cmd_show_record_btrace_bts): New.
11340         (record_btrace_info): Call record_btrace_print_conf.
11341         (_initialize_record_btrace): Add commands.
11342         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11343         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11344         (btrace_sync_conf): Synchronize bts size.
11345         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11346         * NEWS: Announce new commands and new packets.
11347
11348 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11349
11350         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11351         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11352         (x86_linux_btrace_conf): New.
11353         (x86_linux_create_target): Initialize to_btrace_conf.
11354         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11355         Check format.  Split into this and ...
11356         (linux_enable_bts): ... this.
11357         (linux_btrace_conf): New.
11358         (perf_event_skip_record): Renamed into ...
11359         (perf_event_skip_bts_record): ... this.  Updated users.
11360         (linux_disable_btrace): Split into this and ...
11361         (linux_disable_bts): ... this.
11362         (linux_read_btrace): Check format.
11363         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11364         (linux_btrace_conf): New.
11365         (btrace_target_info)<ptid>: Moved.
11366         (btrace_target_info)<conf>: New.
11367         (btrace_target_info): Split into this and ...
11368         (btrace_tinfo_bts): ... this.  Updated users.
11369         * btrace.c (btrace_enable): Update parameters.
11370         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11371         (btrace_conf_children, btrace_conf_attributes)
11372         (btrace_conf_elements): New.
11373         * btrace.h (btrace_enable): Update parameters.
11374         (btrace_conf, parse_xml_btrace_conf): New.
11375         * common/btrace-common.h (btrace_config): New.
11376         * feature/btrace-conf.dtd: New.
11377         * record-btrace.c (record_btrace_conf): New.
11378         (record_btrace_cmdlist): New.
11379         (record_btrace_enable_warn, record_btrace_open): Pass
11380         &record_btrace_conf.
11381         (record_btrace_info): Print recording format.
11382         (cmd_record_btrace_bts_start): New.
11383         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11384         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11385         Add "record bts" alias command.
11386         * remote.c (remote_state)<btrace_config>: New.
11387         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11388         (remote_protocol_features): Add qXfer:btrace-conf:read.
11389         (remote_open_1): Call remote_btrace_reset.
11390         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11391         (btrace_target_info)<conf>: New.
11392         (btrace_sync_conf, btrace_read_config): New.
11393         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11394         btrace_read_conf.
11395         (remote_btrace_conf): New.
11396         (init_remote_ops): Initialize to_btrace_conf.
11397         (_initialize_remote): Add qXfer:btrace-conf packet.
11398         * target.c (target_enable_btrace): Update parameters.
11399         (target_btrace_conf): New.
11400         * target.h (target_enable_btrace): Update parameters.
11401         (target_btrace_conf): New.
11402         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11403         (target_ops)<to_enable_btrace>: Update parameters and comment.
11404         (target_ops)<to_btrace_conf>: New.
11405         * target-delegates: Regenerate.
11406         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11407         (target_debug_print_const_struct_btrace_target_info_p): New.
11408         * NEWS: Announce new command and new packet.
11409
11410 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11411
11412         * nat/linux-btrace.h (perf_event_buffer): New.
11413         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11414         <bts>: ... this.
11415         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11416         (perf_event_buffer_size, perf_event_buffer_begin)
11417         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11418         Updated users.
11419         (perf_event_new_data): New.
11420
11421 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11422
11423         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11424         * record-btrace.c (record_btrace_open): Remove call to
11425         target_supports_btrace.
11426         * remote.c (remote_supports_btrace): Update parameters.
11427         * target.c (target_supports_btrace): Update parameters.
11428         * target.h (to_supports_btrace, target_supports_btrace): Update
11429         parameters.
11430         * target-delegates.c: Regenerate.
11431         * target-debug.h (target_debug_print_enum_btrace_format): New.
11432         * nat/linux-btrace.c
11433         (kernel_supports_btrace): Rename into ...
11434         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11435         (intel_supports_btrace): Rename into ...
11436         (intel_supports_bts): ... this.  Update users.
11437         (cpu_supports_btrace): Rename into ...
11438         (cpu_supports_bts): ... this.  Update users.
11439         (linux_supports_btrace): Update parameters.  Split into this and ...
11440         (linux_supports_bts): ... this.
11441         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11442
11443 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11444
11445         * Makefile.in (SFILES): Add common/btrace-common.c.
11446         (COMMON_OBS): Add common/btrace-common.o.
11447         (btrace-common.o): Add build rules.
11448         * btrace.c (parse_xml_btrace): Update parameters.
11449         (parse_xml_btrace_block): Set format field.
11450         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11451         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11452         (btrace_compute_ftrace): Split into this and...
11453         (btrace_compute_ftrace_bts): ...this.
11454         (btrace_stitch_trace): Split into this and...
11455         (btrace_stitch_bts): ...this.
11456         * btrace.h (parse_xml_btrace): Update parameters.
11457         (make_cleanup_btrace_data): New.
11458         * common/btrace-common.c: New.
11459         * common/btrace-common.h: Include common-defs.h.
11460         (btrace_block_s): Update comment.
11461         (btrace_format): New.
11462         (btrace_format_string): New.
11463         (btrace_data_bts): New.
11464         (btrace_data): New.
11465         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11466         * remote.c (remote_read_btrace): Update parameters.
11467         * target.c (target_read_btrace): Update parameters.
11468         * target.h (target_read_btrace): Update parameters.
11469         (target_ops)<to_read_btrace>: Update parameters.
11470         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11471         * target-delegates.c: Regenerate.
11472         * target-debug (target_debug_print_struct_btrace_data_p): New.
11473         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11474         (linux_read_bts): ...this.
11475         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11476
11477 2015-02-06  Doug Evans  <dje@google.com>
11478
11479         * remote-m32r-sdi.c: Include symfile.h.
11480
11481 2015-02-06  Doug Evans  <dje@google.com>
11482
11483         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11484         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11485         to here.
11486
11487 2015-02-06  Pedro Alves  <palves@redhat.com>
11488
11489         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11490
11491 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11492
11493         PR gdb/15678
11494         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11495         (enable_count_command): Check args for NULL value.
11496
11497 2015-02-05  Doug Evans  <xdje42@gmail.com>
11498
11499         * guile/scm-frame.c: Fix spelling errors in a comment.
11500
11501 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11502
11503         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11504         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11505         return type.
11506
11507 2015-02-04  Pedro Alves  <palves@redhat.com>
11508
11509         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11510         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11511         returns true.
11512         (resume_stopped_resumed_lwps): Don't check whether the thread is
11513         marked as executing.
11514         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11515
11516 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11517
11518         * regset.h (struct regset): Add flags field.
11519         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11520         * corelow.c (get_core_register_section): Add warning if the size
11521         exceeds the requested size and the regset does not have the
11522         REGSET_VARIABLE_SIZE flag set.
11523         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11524         flag.
11525         * armbsd-tdep.c (armbsd_gregset): Likewise.
11526         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11527         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11528         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11529         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11530
11531 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11532
11533         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11534         For ".reg-xstate", explicitly specify the requested section size
11535         via X86_XSTATE_SIZE instead of just 0 on input and
11536         X86_XSTATE_MAX_SIZE on output.
11537         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11538         Likewise.
11539
11540 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11541
11542         PR corefiles/17808:
11543         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11544         function type, particularly its SIZE parameter.
11545         * gdbarch.h: Regenerate.
11546         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11547         actual against required size using ">=" instead of "==".
11548         (amd64_collect_fpregset): Likewise.
11549         * i386-tdep.c (i386_supply_gregset): Likewise.
11550         (i386_collect_gregset): Likewise.
11551         (i386_supply_fpregset): Likewise.
11552         (i386_collect_fpregset): Likewise.
11553         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11554         (mips_fill_gregset_wrapper): Likewise.
11555         (mips_supply_fpregset_wrapper): Likewise.
11556         (mips_fill_fpregset_wrapper): Likewise.
11557         (mips64_supply_gregset_wrapper): Likewise.
11558         (mips64_fill_gregset_wrapper): Likewise.
11559         (mips64_supply_fpregset_wrapper): Likewise.
11560         (mips64_fill_fpregset_wrapper): Likewise.
11561         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11562         (am33_supply_fpregset_method): Likewise.
11563         (am33_collect_gregset_method): Likewise.
11564         (am33_collect_fpregset_method): Likewise.
11565
11566 2015-02-04  Doug Evans  <dje@google.com>
11567             Pedro Alves  <palves@redhat.com>
11568             Eli Zaretskii  <eliz@gnu.org>
11569
11570         PR tui/17810
11571         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11572         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11573         * tui/tui-file.c: #include tui/tui-command.h.
11574         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11575         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11576         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11577
11578 2015-02-04  Pedro Alves  <palves@redhat.com>
11579
11580         Fix build breakage.
11581         * event-loop.c (gdb_do_one_event): Add default switch case.
11582
11583 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11584
11585         Filter out inferior gcc option -fpreprocessed.
11586         * compile/compile.c (filter_args): New function.
11587         (get_args): Use it.
11588
11589 2015-02-03  Pedro Alves  <palves@redhat.com>
11590
11591         * event-loop.c: Don't declare nor define a queue type for
11592         gdb_event_p.
11593         (event_queue): Delete.
11594         (create_event, create_file_event, gdb_event_xfree)
11595         (initialize_event_loop, process_event): Delete.
11596         (gdb_do_one_event): Return as soon as one event is handled.
11597         (handle_file_event): Change prototype.  Used the passed in
11598         file_handler pointer and ready_mask instead of looping over all
11599         file handlers.
11600         (gdb_wait_for_event): Update the poll/select timeouts before
11601         blocking.  Run event handlers directly instead of queueing events.
11602         Return as soon as one event is handled.
11603         (struct async_event_handler_data): Delete.
11604         (invoke_async_event_handler): Delete.
11605         (check_async_event_handlers): Change return type to int.  Run
11606         event handlers directly instead of queueing events.  Return as
11607         soon as one event is handled.
11608         (handle_timer_event): Delete.
11609         (update_wait_timeout): New function, factored out from
11610         poll_timers.
11611         (poll_timers): Reimplement.
11612         * event-loop.h (initialize_event_loop): Delete declaration.
11613         * top.c (gdb_init): Don't call initialize_event_loop.
11614
11615 2015-02-03  Pedro Alves  <palves@redhat.com>
11616
11617         * event-loop.c (clear_async_event_handler): New function.
11618         * event-loop.h (clear_async_event_handler): New declaration.
11619         * record-btrace.c (record_btrace_async): New function.
11620         (init_record_btrace_ops): Install record_btrace_async.
11621         * record-full.c (record_full_async): New function.
11622         (record_full_resume): Don't mark the async event source here.
11623         (init_record_full_ops): Install record_full_async.
11624         (record_full_core_resume): Don't mark the async event source here.
11625         (init_record_full_core_ops): Install record_full_async.
11626         * remote.c (remote_async): Mark and clear the async stop reply
11627         queue event-loop token as appropriate.
11628
11629 2015-02-03  Pedro Alves  <palves@redhat.com>
11630
11631         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11632         target_is_async_p instead of target_can_async.
11633         (linux_nat_wait): Use target_is_async_p instead of
11634         target_can_async.  Don't enable async here.
11635         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11636         target_is_async_p instead of target_can_async.
11637
11638 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11639
11640         * varobj.h (lang_varobj_ops): Mention which return values need
11641         to be freed.
11642
11643 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11644
11645         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11646
11647 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11648
11649         PR gdb/17856:
11650         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11651         results found in the cache.
11652
11653 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11654
11655         PR gdb/17854:
11656         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11657         when allocating a new one.
11658
11659 2015-02-01  Tom Tromey  <tom@tromey.com>
11660
11661         * MAINTAINERS: Remove myself.
11662
11663 2015-01-31  Doug Evans  <xdje42@gmail.com>
11664
11665         * dwarf2read.c (process_structure_scope): Update setting of
11666         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11667         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11668         (set_type_vptr_fieldno): New function.
11669         (internal_type_vptr_basetype): New function.
11670         (set_type_vptr_basetype): New function.
11671         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11672         TYPE_VPTR_BASETYPE.
11673         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11674         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11675         (print_cplus_stuff): ... moved here.
11676         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11677         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11678         moved to ...
11679         (struct cplus_struct_type): ... here.  All uses updated.
11680         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11681         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11682         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11683         * stabsread.c (read_tilde_fields): Update setting of
11684         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11685
11686 2015-01-31  Doug Evans  <xdje42@gmail.com>
11687
11688         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11689         to self_p.
11690         (cp_print_class_member): Rename local domain to self_type.
11691         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11692         domain_type to self_type.
11693         (set_die_type) <need_gnat_info>: Handle
11694         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11695         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11696         TYPE_SPECIFIC_SELF_TYPE.
11697         * gdbtypes.c (internal_type_self_type): New function.
11698         (set_type_self_type): New function.
11699         (smash_to_memberptr_type): Rename parameter domain to self_type.
11700         Update setting of TYPE_SELF_TYPE.
11701         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11702         (smash_to_method_type): Rename parameter domain to self_type.
11703         Update setting of TYPE_SELF_TYPE.
11704         (check_stub_method): Call smash_to_method_type.
11705         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11706         (copy_type_recursive): Ditto.
11707         * gdbtypes.h (enum type_specific_kind): New value
11708         TYPE_SPECIFIC_SELF_TYPE.
11709         (struct main_type) <type_specific>: New member self_type.
11710         (struct cplus_struct_type) <fn_field.type>: Update comment.
11711         (TYPE_SELF_TYPE): Rewrite.
11712         (internal_type_self_type, set_type_self_type): Declare.
11713         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11714         self_type.
11715         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11716         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11717         TYPE_TARGET_TYPE.
11718         * stabsread.c (read_member_functions): Mark methods with
11719         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11720         TYPE_SELF_TYPE.
11721
11722 2015-01-31  Doug Evans  <xdje42@gmail.com>
11723
11724         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11725         All uses updated.
11726
11727 2015-01-31  Doug Evans  <xdje42@gmail.com>
11728
11729         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11730         or unions.  Return zero if union.
11731         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11732         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11733         gnuv3_get_vtable.
11734         (compute_vtable_size): Assert only passed structs.
11735         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11736
11737 2015-01-31  Doug Evans  <xdje42@gmail.com>
11738
11739         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11740         kinds.
11741
11742 2015-01-31  Gary Benson <gbenson@redhat.com>
11743             Doug Evans  <dje@google.com>
11744
11745         PR cli/9007
11746         PR cli/11920
11747         PR cli/15548
11748         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11749         reached.
11750         * common/common-exceptions.h (enum errors)
11751         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11752         * completer.h (get_max_completions_reached_message): New declaration.
11753         (max_completions): Likewise.
11754         (completion_tracker_t): New typedef.
11755         (new_completion_tracker): New declaration.
11756         (make_cleanup_free_completion_tracker): Likewise.
11757         (maybe_add_completion_enum): New enum.
11758         (maybe_add_completion): New declaration.
11759         (throw_max_completions_reached_error): Likewise.
11760         * completer.c (max_completions): New global variable.
11761         (new_completion_tracker): New function.
11762         (free_completion_tracker): Likewise.
11763         (make_cleanup_free_completion_tracker): Likewise.
11764         (maybe_add_completions): Likewise.
11765         (throw_max_completions_reached_error): Likewise.
11766         (complete_line): Remove duplicates and limit result to max_completions
11767         entries.
11768         (get_max_completions_reached_message): New function.
11769         (gdb_display_match_list): Handle max_completions.
11770         (_initialize_completer): New declaration and function.
11771         * symtab.c: Include completer.h.
11772         (completion_tracker): New static variable.
11773         (completion_list_add_name): Call maybe_add_completion.
11774         (default_make_symbol_completion_list_break_on_1): Renamed from
11775         default_make_symbol_completion_list_break_on.  Maintain
11776         completion_tracker across calls to completion_list_add_name.
11777         (default_make_symbol_completion_list_break_on): New function.
11778         * top.c (init_main): Set rl_completion_display_matches_hook.
11779         * tui/tui-io.c: Include completer.h.
11780         (tui_old_rl_display_matches_hook): New static global.
11781         (tui_rl_display_match_list): Notify user if max-completions reached.
11782         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11783         * NEWS (New Options): Mention set/show max-completions.
11784
11785 2015-01-31  Gary Benson  <gbenson@redhat.com>
11786
11787         * symtab.c (struct add_name_data) <code>: New field.
11788         Updated comments.
11789         (add_symtab_completions): New function.
11790         (symtab_expansion_callback): Likewise.
11791         (default_make_symbol_completion_list_break_on): Set datum.code.
11792         Move minimal symbol scan before calling expand_symtabs_matching.
11793         Scan known primary symtabs for externs and statics before calling
11794         expand_symtabs_matching.  Pass symtab_expansion_callback as
11795         expansion_notify argument to expand_symtabs_matching.  Do not scan
11796         primary symtabs for externs and statics after calling
11797         expand_symtabs_matching.
11798
11799 2015-01-31  Gary Benson  <gbenson@redhat.com>
11800
11801         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11802         (struct quick_symbol_functions) <expand_symtabs_matching>:
11803         New argument expansion_notify.  All uses updated.
11804         (expand_symtabs_matching): New argument expansion_notify.
11805         All uses updated.
11806         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11807         Also print expansion notify.
11808         * symtab.c (expand_symtabs_matching_via_partial): Call
11809         expansion_notify whenever a partial symbol table is expanded.
11810         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11811         expansion_notify whenever a symbol table is instantiated.
11812
11813 2015-01-31  Doug Evans  <xdje42@gmail.com>
11814
11815         * cli-out.c: #include completer.h, readline/readline.h.
11816         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11817         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11818         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11819         * cli-out.h (cli_display_match_list): Declare.
11820         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11821         (ELLIPSIS_LEN): Ditto.
11822         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11823         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11824         (gdb_fnprint, gdb_print_filename): Ditto.
11825         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11826         (gdb_display_match_list): Ditto.
11827         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11828         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11829         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11830         (match_list_displayer): New struct.
11831         (gdb_display_match_list): Declare.
11832         * top.c (init_main): Set rl_completion_display_matches_hook.
11833         * tui/tui-io.c: #include completer.h.
11834         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11835         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11836         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11837         (tui_mld_getc, tui_mld_read_key): Ditto.
11838         (tui_rl_display_match_list): Rewrite.
11839         (tui_handle_resize_during_io): New arg for_completion.  All callers
11840         updated.
11841
11842 2015-01-31  Doug Evans  <xdje42@gmail.com>
11843
11844         Add symbol lookup cache.
11845         * NEWS: Document new options and commands.
11846         * symtab.c (symbol_cache_key): New static global.
11847         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11848         (SYMBOL_LOOKUP_FAILED): New macro.
11849         (symbol_cache_slot_state): New enum.
11850         (block_symbol_cache): New struct.
11851         (symbol_cache): New struct.
11852         (new_symbol_cache_size, symbol_cache_size): New static globals.
11853         (hash_symbol_entry, eq_symbol_entry): New functions.
11854         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11855         (make_symbol_cache, free_symbol_cache): New functions.
11856         (get_symbol_cache, symbol_cache_cleanup): New function.
11857         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11858         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11859         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11860         (symbol_cache_flush, symbol_cache_dump): New functions.
11861         (maintenance_print_symbol_cache): New function.
11862         (maintenance_flush_symbol_cache): New function.
11863         (symbol_cache_stats): New function.
11864         (maintenance_print_symbol_cache_statistics): New function.
11865         (symtab_new_objfile_observer): New function.
11866         (symtab_free_objfile_observer): New function.
11867         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11868         (_initialize_symtab): Init symbol_cache_key.  New parameter
11869         maint symbol-cache-size.  New maint commands print symbol-cache,
11870         print symbol-cache-statistics, flush-symbol-cache.
11871         Install new_objfile, free_objfile observers.
11872
11873 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
11874
11875         PR symtab/17855
11876         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11877         to end.
11878
11879 2015-01-31  Doug Evans  <xdje42@gmail.com>
11880
11881         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11882         * auto-load.c: #include ctype.h.
11883         (struct auto_load_pspace_info): Replace member loaded_scripts with
11884         new members loaded_script_files, loaded_script_texts.
11885         (auto_load_pspace_data_cleanup): Update.
11886         (init_loaded_scripts_info): Update.
11887         (get_auto_load_pspace_data_for_loading): Update.
11888         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
11889         updated.
11890         (maybe_add_script_text): New function.
11891         (clear_section_scripts): Update.
11892         (source_script_file, execute_script_contents): New functions.
11893         (source_section_scripts): Add support for
11894         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11895         (print_scripts): New function.
11896         (auto_load_info_scripts): Also print inlined scripts.
11897         (maybe_print_unsupported_script_warning): Renamed from
11898         unsupported_script_warning_print.  All callers updated.
11899         (maybe_print_script_not_found_warning): Renamed from
11900         script_not_found_warning_print.  All callers updated.
11901         * extension-priv.h (struct extension_language_script_ops): New member
11902         objfile_script_executor.
11903         * extension.c (ext_lang_objfile_script_executor): New function.
11904         * extension.h (objfile_script_executor_func): New typedef.
11905         (ext_lang_objfile_script_executor): Declare.
11906         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11907         * guile/guile.c (guile_extension_script_ops): Update.
11908         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11909         * python/python.c (python_extension_script_ops): Update.
11910         (gdbpy_execute_objfile_script): New function.
11911
11912 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
11913
11914         * tui/tui-io.c (tui_expand_tabs): New function.
11915         (tui_puts, tui_redisplay_readline): Expand TABs into the
11916         appropriate number of spaces.
11917         * tui/tui-regs.c: Include tui-io.h.
11918         (tui_register_format): Call tui_expand_tabs to expand TABs into
11919         the appropriate number of spaces.
11920         * tui/tui-io.h: Add prototype for tui_expand_tabs.
11921
11922 2015-01-30  Doug Evans  <dje@google.com>
11923
11924         * NEWS: "info source" command now display producer string if present.
11925         * source.c (source_info): Print producer string if present.
11926
11927 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11928
11929         * varobj.c (varobj_delete): Fix comment.
11930
11931 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11932
11933         * varobj.c (create_child): Modify comment.
11934
11935 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11936
11937         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11938         parameter.
11939         (ada_name_of_variable): Same.
11940         (ada_path_expr_of_child): Same.
11941         (ada_value_of_variable): Same.
11942         (ada_value_is_changeable_p): Same.
11943         (ada_value_has_mutated): Same.
11944         * c-varobj.c (varobj_is_anonymous_child): Same.
11945         (c_is_path_expr_parent): Same.
11946         (c_number_of_children): Same.
11947         (c_name_of_variable): Same.
11948         (c_path_expr_of_child): Same.
11949         (get_type): Same.
11950         (c_value_of_variable): Same.
11951         (cplus_number_of_children): Same.
11952         (cplus_name_of_variable): Same.
11953         (cplus_path_expr_of_child): Same.
11954         (cplus_value_of_variable): Same.
11955         * jv-varobj.c (java_number_of_children): Same.
11956         (java_name_of_variable): Same.
11957         (java_path_expr_of_child): Same.
11958         (java_value_of_variable): Same.
11959         * varobj.c (number_of_children): Same.
11960         (name_of_variable): Same.
11961         (is_root_p): Same.
11962         (varobj_ensure_python_env): Same.
11963         (varobj_get_objname): Same.
11964         (varobj_get_expression): Same.
11965         (varobj_get_display_format): Same.
11966         (varobj_get_display_hint): Same.
11967         (varobj_has_more): Same.
11968         (varobj_get_thread_id): Same.
11969         (varobj_get_frozen): Same.
11970         (dynamic_varobj_has_child_method): Same.
11971         (varobj_get_gdb_type): Same.
11972         (is_path_expr_parent): Same.
11973         (varobj_default_is_path_expr_parent): Same.
11974         (varobj_get_language): Same.
11975         (varobj_get_attributes): Same.
11976         (varobj_is_dynamic_p): Same.
11977         (varobj_get_child_range): Same.
11978         (varobj_value_has_mutated): Same.
11979         (varobj_get_value_type): Same.
11980         (number_of_children): Same.
11981         (name_of_variable): Same.
11982         (check_scope): Same.
11983         (varobj_editable_p): Same.
11984         (varobj_value_is_changeable_p): Same.
11985         (varobj_floating_p): Same.
11986         (varobj_default_value_is_changeable_p): Same.
11987
11988 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11989
11990         * varobj.c (varobj_get_path_expr): Set var->path_expr.
11991         * c-varobj.c (c_path_expr_of_child): Set local var instead of
11992         child->path_expr.
11993         (cplus_path_expr_of_child): Same.
11994
11995 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11996
11997         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11998         result.
11999         (mi_cmd_var_info_expression): Same.
12000         * varobj.c (varobj_get_expression): Mention in the comment that
12001         the result must by freed by the caller.
12002
12003 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12004
12005         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12006         varobj_get_type.
12007         (varobj_update_one): Same.
12008         * varobj.c (update_type_if_necessary): Free curr_type_str and
12009         new_type_str.
12010         (varobj_get_type): Specify in comment that the result needs to be
12011         freed by the caller.
12012
12013 2015-01-29  Doug Evans  <dje@google.com>
12014
12015         PR symtab/17890
12016         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12017
12018 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12019
12020         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12021         * utils.c (producer_is_gcc_ge_4): Likewise.
12022         (producer_is_gcc): New function.
12023         * utils.h (producer_is_gcc): New declaration.
12024
12025 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12026
12027         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12028         kind.
12029         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12030         parameter by "addr_stack" parameter.
12031         (resolve_dynamic_range): Replace "addr" parameter by
12032         "stack_addr" parameter.  Update function documentation.
12033         Update code accordingly.
12034         (resolve_dynamic_array, resolve_dynamic_union)
12035         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12036         (resolve_dynamic_type): Update code, following the changes made
12037         to resolve_dynamic_type_internal's interface.
12038         * dwarf2loc.h (struct property_addr_info): New.
12039         (dwarf2_evaluate_property): Replace "address" parameter
12040         by "addr_stack" parameter.  Adjust function documentation.
12041         (struct dwarf2_offset_baton): New.
12042         (struct dwarf2_property_baton): Update documentation of
12043         field "referenced_type" to be more general. New field
12044         "offset_info" in union data field.
12045         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12046         parameter by "addr_stack" parameter.  Adjust code accordingly.
12047         Add support for PROP_ADDR_OFFSET properties.
12048         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12049         DW_AT_data_member_location attributes as well.  Use case
12050         statements instead of if/else condition.
12051
12052 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12053
12054         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12055         Return zero if PARENT_VALUE is NULL and parent_type's
12056         range type is dynamic.
12057
12058 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12059
12060         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12061         nonzero if the type's subtype is dynamic.
12062         (resolve_dynamic_range): Also resolve the range's subtype.
12063
12064 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12065
12066         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12067         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12068
12069 2015-01-27  Doug Evans  <dje@google.com>
12070
12071         * NEWS: Mention gdb.Objfile.username.
12072         * python/py-objfile.c (objfpy_get_username): New function.
12073         (objfile_getset): Add "username".
12074
12075 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12076
12077         * stack.c (return_command): Markup warning message with _.
12078
12079 2015-01-24  Doug Evans  <xdje42@gmail.com>
12080
12081         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12082
12083 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12084
12085         Fix 100x slowdown regression on DWZ files.
12086         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12087         (struct line_header): Add offset and offset_in_dwz.
12088         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12089         (free_line_header_voidp): New declaration.
12090         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12091         functions.
12092         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12093         (handle_DW_AT_stmt_list): Use line_header_hash.
12094         (free_line_header_voidp): New function.
12095         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12096         (dwarf_decode_lines): New parameter decode_mapping, use it.
12097         (dwarf2_free_objfile): Free line_header_hash.
12098
12099 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12100
12101         PR gdb/17416
12102         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12103         value_ind.
12104
12105 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12106
12107         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12108         DW_AT_noreturn.
12109         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12110         calling_convention an 8 bit bit field.
12111         (TYPE_NO_RETURN): New macro.
12112         * infcmd.c (finish_command): Query if function does not return
12113         normally.
12114         * stack.c (return_command): Likewise.
12115
12116 2015-01-23  Pedro Alves  <palves@redhat.com>
12117
12118         * linux-nat.c (linux_is_async_p): New macro.
12119         (linux_nat_is_async_p):
12120         (linux_nat_terminal_inferior): Check whether the target can async
12121         instead of whether it is already async.
12122         (linux_nat_terminal_ours): Don't check whether the target is
12123         async.
12124         (linux_async_pipe): Use linux_is_async_p.
12125
12126 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12127
12128         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12129         '-ascending'.
12130         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12131         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12132         Sort tp_array using tp_array_compar.
12133         (_initialize_thread): Extend thread_apply_all_command help.
12134
12135 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12136
12137         * corelow.c (core_open): Call also thread_command.
12138         * gdbthread.h (thread_command): New prototype moved from ...
12139         * thread.c (thread_command): ... here.
12140         (thread_command): Make it global.
12141
12142 2015-01-22  Pedro Alves  <palves@redhat.com>
12143
12144         * configure.ac [*mingw32*]: Check $curses_found instead of
12145         $prefer_curses.
12146         * configure: Regenerate.
12147         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12148         HAVE_NCURSES_NCURSES_H checks.
12149
12150 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12151
12152         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12153         fails with the 1st arg NULL, try again with "unknown".  Don't test
12154         the "cup" capability: it isn't supported by the Windows port of
12155         ncurses, but the Windows console driver is still capable of
12156         supporting TUI.
12157
12158 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12159
12160         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12161
12162 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12163
12164         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12165         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12166         reason that "make TAGS" is broken.
12167
12168 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12169
12170         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12171         and check additional store instructions.
12172
12173 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12174
12175         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12176
12177 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12178
12179         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12180         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12181         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12182         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12183         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12184         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12185         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12186         ppc_process_record_op19, ppc_process_record_op31,
12187         ppc_process_record_op59, ppc_process_record_op60,
12188         ppc_process_record_op63): Likewise.
12189
12190 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12191
12192         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12193         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12194         strerror.
12195
12196 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12197
12198         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12199         ppc_process_record_op31, ppc_process_record_op59,
12200         ppc_process_record_op60, ppc_process_record_op63,
12201         ppc_process_record): Fix -Wformat warning.
12202         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12203         Remove unused variables.
12204
12205 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12206
12207         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12208
12209 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12210
12211         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12212         CONFIG_OBS if not building with a curses library.
12213         * configure: Regenerate.
12214
12215         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12216         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12217         HAVE_NCURSES_NCURSES_H is defined.
12218
12219 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12220
12221         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12222         from end of line to start of next line.
12223
12224 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12225
12226         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12227         Scan PLT stub backward for reverse debugging.
12228         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12229
12230 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12231             Ulrich Weigand  <uweigand@de.ibm.com>
12232
12233         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12234         gdb_target_obs.
12235         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12236         record.
12237         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12238         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12239         (ppc_linux_init_abi): Set process_record, process_record_signal.
12240         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12241         ppc_linux_record_tdep to gdbarch_tdep.
12242         (ppc_process_record): New declaration.
12243         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12244         ppc_process_record_op19, ppc_process_record_op31,
12245         ppc_process_record_op59, ppc_process_record_op60,
12246         ppc_process_record_op63, ppc_process_record): New functions.
12247
12248 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12249
12250         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12251         rs6000_in_function_epilogue_frame_p and add an argument
12252         for frame_info.
12253         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12254         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12255         New functions.
12256         (rs6000_epilogue_frame_unwind): New.
12257         (rs6000_gdbarch_init): Append epilogue unwinder.
12258
12259 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12260
12261         * nat/linux-personality.c: Replace "#ifndef
12262         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12263         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12264         systems.
12265
12266 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12267
12268         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12269         functions.
12270         (_initialize_tui_win) <border-kind, border-mode>:
12271         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12272         (tui_set_tab_width_command): Fix the commentary.
12273
12274         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12275
12276         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12277         Doc fix.
12278         (tui_set_tab_width_command): Delete and recreate the source and
12279         the disassembly windows, to show the effect of the changed tab
12280         size immediately.
12281
12282         * tui/tui-data.h (LINE_PREFIX): Make shorter
12283         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12284         "Thread NNNNN.XXXX" thread ID notation on Windows.
12285
12286 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12287
12288         Fix gcc-5 compilation.
12289         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12290
12291 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12292
12293         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12294         (linux-personality.o): New rule.
12295         * common/common-defs.h: Include <stdint.h>.
12296         * config/aarch64/linux.mh (NATDEPFILES): Include
12297         linux-personality.o.
12298         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12299         * config/arm/linux.mh (NATDEPFILES): Likewise.
12300         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12301         * config/i386/linux.mh (NATDEPFILES): Likewise.
12302         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12303         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12304         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12305         * config/mips/linux.mh (NATDEPFILES): Likewise.
12306         * config/pa/linux.mh (NATDEPFILES): Likewise.
12307         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12308         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12309         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12310         * config/s390/linux.mh (NATDEPFILES): Likewise.
12311         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12312         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12313         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12314         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12315         * defs.h: Remove #include <stdint.h> (moved to
12316         common/common-defs.h).
12317         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12318         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12319         nat/linux-personality.c).
12320         (linux_nat_create_inferior): Remove code to disable address space
12321         randomization (moved to nat/linux-personality.c).  Create cleanup
12322         to disable address space randomization.
12323         * nat/linux-personality.c: New file.
12324         * nat/linux-personality.h: Likewise.
12325
12326 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12327
12328         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12329         common/posix-strerror.c.
12330         (posix-strerror.o): New rule.
12331         (mingw-strerror.o): Likewise.
12332         * common/common-utils.h (safe_strerror): Move prototype to here,
12333         from utils.h.
12334         * common/common.host: New file.
12335         * common/mingw-strerror.c: Likewise.
12336         * common/posix-strerror.c: Likewise.
12337         * configure: Regenerated.
12338         * configure.ac: Source common/common.host.  Add variable
12339         common_host_obs to gdb_host_obs.
12340         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12341         gdb/common/posix-strerror.c when warning about the use of
12342         strerror.
12343         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12344         common/mingw-strerror.c.
12345         * posix-hdep.c (safe_strerror): Remove definition; move it to
12346         common/posix-hdep.c.
12347         * utils.h (safe_strerror): Remove prototype; move to
12348         common/common-utils.h.
12349
12350 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12351
12352         GDB 7.8.2 released.
12353
12354 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12355
12356         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12357         ___XA type if the array has already been fixed.
12358
12359 2015-01-14  Yao Qi  <yao@codesourcery.com>
12360
12361         * Makefile.in (ppc-linux.o): New rule.
12362         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12363         * configure.ac: AC_CHECK_FUNCS(getauxval).
12364         * config.in: Re-generated.
12365         * configure: Re-generated.
12366         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12367         Declare.
12368         * nat/ppc-linux.c: New file.
12369         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12370         Call ppc64_64bit_inferior_p.
12371
12372 2015-01-14  Yao Qi  <yao@codesourcery.com>
12373
12374         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12375         nat/ppc-linux.h.
12376         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12377         (PPC_FEATURE_HAS_DFP): Likewise.
12378         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12379         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12380         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12381         Include "nat/ppc-linux.h".
12382         * nat/ppc-linux.h: New file.
12383         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12384
12385 2015-01-14  Pedro Alves  <palves@redhat.com>
12386
12387         PR gdb/17525
12388         * breakpoint.c: Include "interps.h".
12389         (bpstat_do_actions_1): Also check whether the interpreter is
12390         async.
12391
12392 2015-01-14  Pedro Alves  <palves@redhat.com>
12393
12394         PR cli/17828
12395         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12396         reinstall if the interpreter is sync.
12397
12398 2015-01-13  Doug Evans  <dje@google.com>
12399
12400         * objfiles.c (objfile_filename): New function.
12401         * objfiles.h (objfile_filename): Declare it.
12402         (objfile_name): Add function comment.
12403         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12404         bfd file name (which may be realpath'd), and the original name.
12405
12406 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12407
12408         * NEWS: Create a new section for the next release branch.
12409         Rename the section of the current branch, now that it has
12410         been cut.
12411
12412 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12413
12414         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12415         * version.in: Bump version to 7.9.50.DATE-cvs.
12416
12417 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12418
12419         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12420         Remove trailing new-line in argument of call to warning.
12421
12422 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12423
12424         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12425         new-line in argument of call to "warning".
12426
12427 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12428
12429         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12430         in static block, then try searching for primitive types.
12431
12432 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12433
12434         * top.h (gdb_add_history): Declare.
12435         * top.c (command_count): New variable.
12436         (gdb_add_history): New function.
12437         (gdb_safe_append_history): New static function.
12438         (quit_force): Call it.
12439         (command_line_input): Use gdb_add_history instead of
12440         add_history.
12441         * event-top.c (command_line_handler): Likewise.
12442
12443 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12444
12445         PR gdb/17046
12446         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12447         <setjmp.h> #include.
12448
12449 2015-01-11  Doug Evans  <xdje42@gmail.com>
12450
12451         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12452
12453 2015-01-11  Doug Evans  <xdje42@gmail.com>
12454
12455         PR gdb/15830
12456         * NEWS: The "maint demangle" command is renamed as "demangle".
12457         * demangle.c: #include cli/cli-utils.h, language.h.
12458         (demangle_command): New function.
12459         (_initialize_demangle): Add new command "demangle".
12460         * maint.c (maintenance_demangle): Stub out.
12461         (_initialize_maint_cmds): Update help text for "maint demangle",
12462         and mark as deprecated.
12463
12464 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12465
12466         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12467         inferior_thread is a function.
12468
12469 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12470
12471         * Makefile.in (.y.c): Don't munge yacc's #line
12472         directives.
12473
12474 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12475
12476         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12477         to prompt for input.
12478         * tui/tui-hooks.c (tui_query_hook): Remove.
12479         (tui_install_hooks): Don't set deprecated_query_hook.
12480         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12481         height calculation.  Always update the command window's cur_line.
12482
12483 2015-01-09  Pedro Alves  <palves@redhat.com>
12484
12485         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12486         function.
12487         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12488         declaration.
12489         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12490         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12491         stop_reason.
12492         (check_stopped_by_watchpoint): New function.
12493         (save_sigtrap): Reimplement.
12494         (linux_nat_stopped_by_watchpoint): Adjust.
12495         (linux_nat_lp_status_is_event): Delete.
12496         (stop_wait_callback): Only call save_sigtrap after storing the
12497         pending status.
12498         (status_callback): If the thread had been stopped for a breakpoint
12499         that has since been removed, discard the event and resume the LWP.
12500         (count_events_callback, select_event_lwp_callback): Use
12501         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12502         (cancel_breakpoint): Rename to ...
12503         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12504         stopped for a software breakpoint or hardware breakpoint.
12505         (select_event_lwp): Only give preference to the stepping LWP in
12506         all-stop mode.  Adjust comments.
12507         (stop_and_resume_callback): Remove references to new_pending_p.
12508         (linux_nat_filter_event): Likewise.  Leave exit events of the
12509         leader thread pending here.  Handle signal short circuiting here.
12510         Only call save_sigtrap after storing the pending waitstatus.
12511         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12512         new_pending.  Don't handle leaving events the caller is not
12513         interested in pending here, nor handle signal short-circuiting
12514         here.  Also give equal priority to all LWPs that have had events
12515         in non-stop mode.  If reporting a software breakpoint event,
12516         unadjust the LWP's PC.
12517         * linux-nat.h (enum lwp_stop_reason): New.
12518         (struct lwp_info) <stop_pc>: New field.
12519         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12520         (struct lwp_info) <stop_reason>: New field.
12521         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12522
12523 2015-01-09  Pedro Alves  <palves@redhat.com>
12524
12525         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12526         Set the LWP's 'resumed' flag.
12527
12528 2015-01-09  Pedro Alves  <palves@redhat.com>
12529
12530         * linux-nat.c (linux_resume_one_lwp): New function.
12531         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12532         (linux_nat_resume): Use lwp_status_pending_p and
12533         linux_resume_one_lwp.
12534         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12535         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12536         (status_callback, running_callback): Use lwp_status_pending_p.
12537         (lwp_status_pending_p): New function.
12538         (stop_and_resume_callback): Use lwp_status_pending_p.
12539         (linux_nat_filter_event): Use linux_resume_one_lwp.
12540         (linux_nat_wait_1): Always use status_callback to look for an LWP
12541         with a pending status.  Use linux_resume_one_lwp.
12542         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12543         linux_resume_one_lwp.
12544
12545 2015-01-09  Pedro Alves  <palves@redhat.com>
12546
12547         * breakpoint.c (bp_location_inserted_here_p): New function,
12548         factored out from ...
12549         (breakpoint_inserted_here_p): ... here.  Use
12550         ALL_BP_LOCATIONS_AT_ADDR.
12551         (software_breakpoint_inserted_here_p): Use
12552         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12553
12554 2014-01-09  Pedro Alves  <palves@redhat.com>
12555
12556         Skip enabling event reporting if the kernel supports
12557         PTRACE_EVENT_CLONE.
12558         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12559         (thread_db_use_events): New function.
12560         (try_thread_db_load_1): Check thread_db_use_events before enabling
12561         event reporting.
12562         (update_thread_state): New function.
12563         (attach_thread): Use it.  Check thread_db_use_events before
12564         enabling event reporting.
12565         (thread_db_detach): Check thread_db_use_events before disabling
12566         event reporting.
12567         (find_new_threads_callback): Check thread_db_use_events before
12568         enabling event reporting.  Update the thread's state if not using
12569         libthread_db events.
12570
12571 2015-01-09  Pedro Alves  <palves@redhat.com>
12572
12573         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12574         about to wait for is > 0.
12575         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12576         the kernel thread ID is -1.
12577
12578 2015-01-09  Pedro Alves  <palves@redhat.com>
12579
12580         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12581         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12582         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12583         ptrace option flags.
12584         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12585         field.
12586         * nat/linux-procfs.c: Include <dirent.h>.
12587         (linux_proc_get_int): New parameter "warn".  Handle it.
12588         (linux_proc_get_tgid): Adjust.
12589         (linux_proc_get_tracerpid): Rename to ...
12590         (linux_proc_get_tracerpid_nowarn): ... this.
12591         (linux_proc_pid_get_state): New function, factored out from
12592         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12593         and handle it.
12594         (linux_proc_pid_is_gone): New function.
12595         (linux_proc_pid_is_stopped): Adjust.
12596         (linux_proc_pid_is_zombie_maybe_warn)
12597         (linux_proc_pid_is_zombie_nowarn): New functions.
12598         (linux_proc_pid_is_zombie): Use
12599         linux_proc_pid_is_zombie_maybe_warn.
12600         (linux_proc_attach_tgid_threads): New function.
12601         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12602         (linux_proc_get_tracerpid): Rename to ...
12603         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12604         (linux_proc_pid_is_gone): New declaration.
12605         (linux_proc_pid_is_zombie): Update comment.
12606         (linux_proc_pid_is_zombie_nowarn): New declaration.
12607         (linux_proc_attach_lwp_func): New typedef.
12608         (linux_proc_attach_tgid_threads): New declaration.
12609         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12610         use nowarn functions.
12611         (linux_ptrace_attach_fail_reason_string): Move here from
12612         gdbserver/linux-low.c and rename.
12613         (ptrace_supports_feature): If the current ptrace options are not
12614         known yet, check them now, instead of asserting.
12615         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12616         Declare.
12617
12618 2015-01-09  Pedro Alves  <palves@redhat.com>
12619
12620         * linux-thread-db.c (thread_db_find_new_threads_silently)
12621         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12622         (find_new_threads_once): Print debug output on gdb_stdlog.
12623
12624 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12625             Pedro Alves  <palves@redhat.com>
12626
12627         * compile/compile.c: Include "gdb_wait.h".
12628         (do_rmdir): Check return value, and free 'zap'.
12629
12630 2015-01-08  Pedro Alves  <palves@redhat.com>
12631             Yao Qi  <yao@codesourcery.com>
12632
12633         * dwarf2loc.c (indirect_pieced_value): Don't call
12634         gdb_sign_extend.  Call extract_signed_integer instead.
12635         * utils.c (gdb_sign_extend): Remove.
12636         * utils.h (gdb_sign_extend): Remove declaration.
12637
12638 2015-01-07  Pierre Muller  <muller@sourceware.org>
12639
12640         PR symtab/17811
12641         * stabsread.c (define_symbol): Set language for C++ special symbols.
12642
12643 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12644
12645         * inflow.c (initial_gdb_ttystate): Tweak comment.
12646
12647 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12648
12649         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12650         comment documenting function.
12651
12652 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12653
12654         * terminal.h (set_initial_gdb_ttystate): Declare.
12655         * inflow.c (initial_gdb_ttystate): New static variable.
12656         (set_initial_gdb_ttystate): New setter.
12657         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12658         instead of our current terminal state.
12659         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12660
12661 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12662
12663         * guile/scm-type.c (tyscm_array_1): Add comment.
12664         * python/py-type.c (typy_array_1): Add comment.
12665
12666 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12667
12668         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12669         error if N2 is equal to N1 - 1.
12670
12671 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12672
12673         * python/py-type.c (typy_array_1): Do not raise negative-length
12674         exception if N2 is equal to N1 - 1.
12675
12676 2015-01-03  Doug Evans  <xdje42@gmail.com>
12677
12678         * c-exp.y: Whitespace cleanup.
12679         (classify_inner_name): Remove extra ;.
12680
12681 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12682
12683         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12684         offset signed.
12685
12686 2015-01-02  Doug Evans  <dje@google.com>
12687
12688         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12689
12690 2015-01-02  Doug Evans  <dje@google.com>
12691
12692         * symtab.h (struct symbol): Fix typo in comment.
12693
12694 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12695
12696         Update year range in copyright notice of all files.
12697
12698 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12699
12700         * top.c (print_gdb_version): Update copyright year to 2015.
12701
12702 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12703
12704         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12705
12706 For older changes see ChangeLog-2014.
12707 \f
12708 Local Variables:
12709 mode: change-log
12710 left-margin: 8
12711 fill-column: 74
12712 version-control: never
12713 coding: utf-8
12714 End: