Remove checking vCont;s in exec_cmd_expect_vCont_count
[external/binutils.git] / gdb / ChangeLog
1 2015-10-21  Yao Qi  <yao.qi@linaro.org>
2
3         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
4         Remove argument exp_vCont_s.
5         * gdb.base/range-stepping.exp: Callers updated.
6         * gdb.trace/range-stepping.exp: Likewise.
7
8 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
9
10         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
11         (nto_sniff_abi_note_section): New function.
12         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
13         binary.
14
15 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
16
17         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
18         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
19         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
20         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
21         New functions.
22         (_initialize_nto_tdep): New forward declaration, new function.
23         * nto-tdep.h (struct nto_inferior_data): New struct.
24         (nto_inferior_data): New function declaration.
25
26 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
27
28         * findvar.c (address_from_register): Check REGNUM validity.
29
30 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
31
32         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
33         (init_procfs_targets): Wire new function.
34
35 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
36
37         * nto-procfs.c (sys/auxv.h): Include.
38         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
39         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
40         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
41
42 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
43
44         * nto-procfs.c (nto_procfs_path): Rename to...
45         (nodestr): ... this, and change type.
46         (nto_node): Use new variable and logic accordingly.
47         (procfs_open_1): Use new variable name. Use local buffer to construct
48         procfrs path.
49         (procfs_pidlist): Use NODESTR to construct procfs path.
50         (procfs_files_info): Use NODESTR to output meaningful text.
51         (do_attach): Construct procfs using NODESTR.
52         (procfs_create_inferior): Compare pointer to NULL.
53
54 2015-10-19  Josh Stone  <jistone@redhat.com>
55
56         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
57         return state, even when not actively catching syscalls at all.
58         (linux_handle_extended_wait): Mark syscall_state like an entry.
59         (wait_lwp): Set syscall_state ignored for other traps.
60         (linux_nat_filter_event): Likewise.
61
62 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
63
64         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
65         when handling 'E', 'T', 'S', 'X' and 'W' packets.
66         Do not set rs->waiting_for_stop_reply back to 1.
67
68 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
69
70         * nto-procfs.c (common/filestuff.h): Include.
71         (procfs_can_use_hw_breakpoint): Fix enum name.
72         (procfs_open_1): Fix compiler warning.
73         (procfs_pidlist): Make static.
74         (procfs_meminfo): Make static, fix type name, add missing argument.
75         (procfs_store_registers): Make static.
76         (procfs_thread_info): Remove unused function.
77         (_initialize_procfs): Forward declare.
78
79 2015-10-16  Yao Qi  <yao.qi@arm.com>
80
81         * MAINTAINERS: Update my email address.
82
83 2015-10-15  Yao Qi  <yao.qi@linaro.org>
84
85         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
86         Call gdbarch_breakpoint_from_pc to instruction length.
87         (aarch64_linux_remove_hw_breakpoint): Likewise.
88         * common/common-regcache.h (regcache_register_size): Declare.
89         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
90         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
91         the process is 32bit, otherwise set alignment to 4.
92         (aarch64_handle_breakpoint): Update comments.
93         * regcache.c (regcache_register_size): New function.
94
95 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
96
97         * gdbarch.sh (core_regset_section): Remove.
98         * gdbarch.h: Regenerate.
99
100 2015-10-14  Yao Qi  <yao.qi@linaro.org>
101
102         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
103         out of it.
104         (enum aarch64_memory_operand_type): New.
105
106 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
107
108         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
109
110 2015-10-13  Pedro Alves  <palves@redhat.com>
111
112         * ada-lang.c (ada_enum_name): Constify local.
113         * ada-typeprint.c (print_range_bound): Constify locals.
114         * c-varobj.c (c_describe_child): Likewise.
115         * cli/cli-setshow.c (do_set_command): Likewise.
116         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
117         * dwarf2read.c (find_file_and_directory): Likewise.
118         (anonymous_struct_prefix, dwarf2_name): Likewise.
119         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
120         * go-lang.c (unpack_mangled_go_symbol): Likewise.
121         * jv-typeprint.c (java_type_print_base): Likewise.
122         * ser-tcp.c (net_open): Likewise.
123         * symfile.c (deduce_language_from_filename): Likewise.
124         * symtab.c (gdb_mangle_name): Likewise.
125         * tui/tui-io.c (tui_redisplay_readline): Likewise.
126
127 2015-10-13  Pedro Alves  <palves@redhat.com>
128
129         * infrun.c (restore_execution_direction): New function.
130         (fetch_inferior_event): Use it instead of
131         make_cleanup_restore_integer.
132         (execution_direction): Change type to enum
133         exec_direction_kind.
134         * infrun.h (execution_direction): Likewise.
135
136 2015-10-13  Pedro Alves  <palves@redhat.com>
137
138         * ada-lang.c (ada_value_primitive_packed_val): Constify
139         locals.  Use value_contents_writeable.  Remove casts.
140
141 2015-10-13  Pedro Alves  <palves@redhat.com>
142
143         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
144         and alloca calls.
145
146 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
147
148         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
149         write_memory with write_memory_unsigned_integer.
150
151 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
152
153         * solib-dsbt.c (cmp_name): Constify arguments.
154         * solib-frv.c (cmp_name): Likewise.
155         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
156         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
157         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
158         (gdb_bfd_lookup_symbol): Likewise.
159         * solib.h (gdb_bfd_lookup_symbol): Likewise.
160         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
161
162 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
163
164         * stack.c (parse_frame_specification): Remove message parameter,
165         replace with fixed string in function body, update function
166         comment.
167         (frame_info): Remove message to parse_frame_specification.
168         (select_frame_command): Likewise.
169
170 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
171
172         * stack.c (parse_frame_specification): Delete.
173         (parse_frame_specification_1): Rename to
174         parse_frame_specification.
175         (frame_info): Use parse_frame_specification.
176         (select_frame_command): Likewise.
177         (return_command): Use select_frame and print_stack_frame rather
178         than frame_command and select_frame_command.
179         (func_command): Use get_current_frame rather than
180         parse_frame_specification.
181
182 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
183
184         * stack.c (func_command): Return early when there is no ARG
185         string.
186
187 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
188
189         * stack.c: Include safe-ctype.h not ctype.h.
190         (parse_frame_specification): Use ISSPACE not isspace.
191         (backtrace_command): Use TOLOWER not tolower.
192
193 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
194
195         * mep-tdep.c (current_me_module): Add cast.
196         (mep_gdbarch_init): Likewise.
197
198 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
199
200         * m32c-tdep.c (m32c_move_reg_t): Replace with...
201         (m32c_write_reg_t): ...this and...
202         (m32c_read_reg_t): ...this.
203         (struct m32c_reg): Update types of read and write.
204         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
205         adjust definition.
206         (m32c_banked_read): Likewise.
207         (m32c_sb_read): Likewise.
208         (m32c_part_read): Likewise.
209         (m32c_cat_read): Likewise.
210         (m32c_r3r2r1r0_read): Likewise.
211         (m32c_raw_write): Change declaration type to m32c_write_reg_t
212         and adjust definition.
213         (m32c_banked_write): Likewise.
214         (m32c_sb_write): Likewise.
215         (m32c_part_write): Likewise.
216         (m32c_cat_write): Likewise.
217         (m32c_r3r2r1r0_write): Likewise.
218
219 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
220
221         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
222
223 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
224
225         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
226         gdb_sys_no_syscall instead of -1.
227
228 2015-10-12  Yao Qi  <yao.qi@linaro.org>
229
230         * NEWS: Mention the change.
231
232 2015-10-12  Yao Qi  <yao.qi@linaro.org>
233
234         * arch/aarch64-insn.c (emit_load_store): Rename to ...
235         (aarch64_emit_load_store): ... it.  All callers updated.
236
237 2015-10-12  Yao Qi  <yao.qi@linaro.org>
238
239         * arch/aarch64-insn.c (emit_insn): Rename to ...
240         (aarch64_emit_insn): ... it.  All callers updated.
241
242 2015-10-12  Yao Qi  <yao.qi@linaro.org>
243
244         * aarch64-linux-tdep.c: Include arch-utils.h.
245         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
246         set_gdbarch_displaced_step_copy_insn,
247         set_gdbarch_displaced_step_fixup,
248         set_gdbarch_displaced_step_free_closure,
249         set_gdbarch_displaced_step_location,
250         and set_gdbarch_displaced_step_hw_singlestep.
251         * aarch64-tdep.c (struct displaced_step_closure): New.
252         (struct aarch64_displaced_step_data): New.
253         (aarch64_displaced_step_b): New function.
254         (aarch64_displaced_step_b_cond): Likewise.
255         (aarch64_register): Likewise.
256         (aarch64_displaced_step_cb): Likewise.
257         (aarch64_displaced_step_tb): Likewise.
258         (aarch64_displaced_step_adr): Likewise.
259         (aarch64_displaced_step_ldr_literal): Likewise.
260         (aarch64_displaced_step_others): Likewise.
261         (aarch64_displaced_step_copy_insn): Likewise.
262         (aarch64_displaced_step_fixup): Likewise.
263         (aarch64_displaced_step_hw_singlestep): Likewise.
264         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
265         (aarch64_displaced_step_copy_insn): Declare.
266         (aarch64_displaced_step_fixup): Declare.
267         (aarch64_displaced_step_hw_singlestep): Declare.
268         * arch/aarch64-insn.c (emit_insn): Moved from
269         gdbserver/linux-aarch64-low.c.
270         (emit_load_store): Likewise.
271         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
272         gdbserver/linux-aarch64-low.c.
273         (struct aarch64_register): Likewise.
274         (struct aarch64_memory_operand): Likewise.
275         (ENCODE): Likewise.
276         (can_encode_int32): New macro.
277         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
278         (emit_tb, emit_nop): Likewise.
279         (emit_insn): Declare.
280         (emit_load_store): Declare.
281
282 2015-10-12  Yao Qi  <yao.qi@linaro.org>
283
284         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
285         gdbserver/linux-aarch64-low.c.
286         (aarch64_relocate_instruction): Likewise.
287         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
288         (struct aarch64_insn_data): Moved from
289         gdbserver/linux-aarch64-low.c.
290         (struct aarch64_insn_visitor): Likewise.
291         (aarch64_relocate_instruction): Declare.
292
293 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
294
295         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
296         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
297         to the returned value.
298
299 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
300
301         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
302         is large enough for BIT_SIZE.  Update function comment.
303
304 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
305
306         * ada-lang.c (ada_value_primitive_packed_val): Move
307         src_len variable to local block where used.  Override
308         BIT_SIZE if bigger than size of resolved type.
309
310 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
311
312         * gdbtypes.h (is_scalar_type): Add extern declaration.
313         * gdbtypes.c (is_scalar_type): Make non-static.
314         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
315         to compute IS_SCALAR instead of doing it ourselves.
316
317 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
318
319         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
320         of case where TYPE is dynamic.
321
322 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
323
324         * ada-lang.c (ada_unpack_from_contents): New function,
325         extracted from ada_value_primitive_packed_val.
326         (ada_value_primitive_packed_val): Replace extracted out code
327         by call to ada_unpack_from_contents.
328
329 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
330
331         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
332         variable declarations.
333
334 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
335
336         * ada-lang.c (ada_value_primitive_packed_val): Change the type
337         of local variables src and unpacked to "gdb_type *" instead of
338         "unsigned char *".
339
340 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
341
342         * ada-lang.c (ada_value_primitive_packed_val): Make the name
343         of various local variables more explicit and consistent.
344         No real code change otherwise.
345
346 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
347
348         * i386-tdep.h (struct gdbarch_tdep): Change type of
349         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
350
351 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
352
353         * cris-tdep.c (struct instruction_environment): Change type of
354         byte_order to enum bfd_endian.
355
356 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
357
358         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
359         enum gdb_syscall casts.
360
361 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
362
363         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
364         * arm-tdep.c (struct stack_item): Likewise.
365         (push_stack_item): Add gdb_byte* cast.
366         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
367         (push_stack_item): Add gdb_byte* cast.
368         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
369         and add cast.
370         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
371         (push_stack_item): Add gdb_byte* cast.
372         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
373         add cast.
374         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
375         gdb_byte*.
376         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
377         gdb_byte* and remove unnecessary cast.
378         (h8300h_extract_return_value): Likewise.
379         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
380         (h8300h_store_return_value): Likewise.
381         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
382         gdb_byte* and remove unnecessary cast.
383         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
384         and add cast.
385         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
386         gdb_byte* and remove unnecessary cast.
387         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
388         valbuf.
389         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
390         (mep_pseudo_cr64_read): Likewise.
391         (mep_pseudo_csr_write): Likewise.
392         (mep_pseudo_cr32_write): Likewise.
393         (mep_pseudo_cr64_write): Likewise.
394         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
395         gdb_byte* and add cast.
396         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
397         gdb_byte* and remove unnecessary cast.
398         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
399         valbuf.
400         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
401         gdb_byte*.
402         * printcmd.c (void): Likewise.
403         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
404         gdb_byte* and add cast.
405         (infpy_write_memory): Likewise.
406         (infpy_search_memory): Likewise.
407         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
408         and add cast.
409         (regcache_raw_write_unsigned): Likewise.
410         (regcache_cooked_write_signed): Likewise.
411         (regcache_cooked_write_unsigned): Likewise.
412         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
413         gdb_byte*.
414
415 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
416
417         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
418         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
419
420 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
421
422         * stack.c (print_stack_frame):
423         * utils.c (printchar): Fix typos in commentary.
424
425 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
426
427         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
428         (PostfixExpression): Support `expr.sizeof' expressions.
429         (PrimaryExpression): Support `typeof(expr)' expressions.
430
431 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
432
433         * MAINTAINERS: Update my email address.
434
435 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
436
437         * record-btrace.c (record_btrace_resume): Fix void return.
438
439 2015-10-07  Yao Qi  <yao.qi@linaro.org>
440
441         * aarch64-tdep.c: Include opcode/aarch64.h.
442         (submask): Move it above.
443         (bit): Likewise.
444         (bits): Likewise.
445         (aarch64_software_single_step): Call aarch64_decode_insn.
446         Decode instruction by aarch64_inst instead of using
447         aarch64_decode_bcond and decode_masked_match.
448
449 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
450
451         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
452         only when the file is binary.
453
454 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
455
456         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
457         subroutine handling.
458
459 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
460
461         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
462
463 2015-09-30  Doug Evans  <dje@google.com>
464
465         * dwarf2read.c (setup_type_unit_groups): Add comment.
466
467 2015-09-30  Pedro Alves  <palves@redhat.com>
468
469         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
470         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
471         (x86_linux_create_target): Don't install
472         x86_linux_always_non_stop_p.
473
474 2015-09-30  Don Breazeal  <donb@codesourcery.com>
475
476         * remote.c (remote_parse_stop_reply): Call strprefix instead
477         of strncmp.
478
479 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
480
481         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
482         * gdbarch.h: Regenerate.
483         * i386-tdep.c (i386_gdbarch_init): Remove cast to
484         struct gdbarch_tdep_info *.
485         * mips-tdep.c (mips_gdbarch_init): Likewise.
486         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
487         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
488         * spu-multiarch.c (spu_gdbarch): Likewise.
489
490 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
491
492         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
493         record a NULL value.
494
495 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
496
497         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
498         and union arguments the same as pointer arguments when determining
499         size of argument.
500
501 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
502
503         * ft32-tdep.c: #include "opcode/ft32.h".
504         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
505         (ft32_analyze_prologue): Use FT32_* macros.
506
507 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
508
509         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
510         comment.
511
512 2015-09-28  Doug Evans  <dje@google.com>
513
514         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
515
516 2015-09-28  Doug Evans  <dje@google.com>
517
518         * common/filestuff.c (make_cleanup_close): Update comment.
519
520 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
521
522         * btrace.c (parse_xml_btrace_block): Fix cast of
523         xml_find_attribute's return value.
524         * memory-map.c (memory_map_start_memory): Likewise.
525         * solib-svr4.c (library_list_start_library): Likewise.
526         * solib-target.c (library_list_start_segment): Likewise.
527         (library_list_start_section): Likewise.
528         * tracepoint.c (traceframe_info_start_memory): Likewise.
529
530 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
531
532         * d-namespace.c (d_lookup_symbol): New arg langdef.
533         All callers updated.  Support looking up symbol as a primitive type.
534         (lookup_module_scope): New arg langdef.  All callers updated.
535         Call d_lookup_symbol directly for simple bare symbols.
536
537 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
538
539         * macrocmd.c (print_macro_callback): Add cast(s).
540         * macrotab.c (macro_bcache_str): Likewise.
541         (new_macro_definition): Likewise.
542         * main.c (captured_main): Likewise.
543         * maint.c (print_bfd_section_info): Likewise.
544         * mdebugread.c (mdebug_build_psymtabs): Likewise.
545         (basic_type): Likewise.
546         * memattr.c (mem_region_cmp): Likewise.
547         * memory-map.c (memory_map_start_memory): Likewise.
548         (memory_map_end_memory): Likewise.
549         (memory_map_start_property): Likewise.
550         (memory_map_end_property): Likewise.
551         (clear_result): Likewise.
552         * memrange.c (compare_mem_ranges): Likewise.
553         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
554         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
555         * mi/mi-console.c (mi_console_file_delete): Likewise.
556         (mi_console_file_fputs): Likewise.
557         (mi_console_raw_packet): Likewise.
558         (mi_console_file_flush): Likewise.
559         (mi_console_set_raw): Likewise.
560         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
561         (mi_new_thread): Likewise.
562         (mi_thread_exit): Likewise.
563         (mi_record_changed): Likewise.
564         (mi_inferior_added): Likewise.
565         (mi_inferior_appeared): Likewise.
566         (mi_inferior_exit): Likewise.
567         (mi_inferior_removed): Likewise.
568         (mi_interp_data): Likewise.
569         (mi_on_normal_stop): Likewise.
570         (mi_traceframe_changed): Likewise.
571         (mi_tsv_created): Likewise.
572         (mi_tsv_deleted): Likewise.
573         (mi_tsv_modified): Likewise.
574         (mi_breakpoint_created): Likewise.
575         (mi_breakpoint_deleted): Likewise.
576         (mi_breakpoint_modified): Likewise.
577         (mi_output_running_pid): Likewise.
578         (mi_inferior_count): Likewise.
579         (mi_solib_loaded): Likewise.
580         (mi_solib_unloaded): Likewise.
581         (mi_command_param_changed): Likewise.
582         (mi_memory_changed): Likewise.
583         (report_initial_inferior): Likewise.
584         (mi_ui_out): Likewise.
585         (mi_set_logging): Likewise.
586         * mi/mi-main.c (collect_cores): Likewise.
587         (print_one_inferior): Likewise.
588         (free_vector_of_ints): Likewise.
589         (free_splay_tree): Likewise.
590         (mi_execute_command): Likewise.
591         * mi/mi-out.c (mi_table_body): Likewise.
592         (mi_table_end): Likewise.
593         (mi_table_header): Likewise.
594         (mi_begin): Likewise.
595         (mi_end): Likewise.
596         (mi_field_int): Likewise.
597         (mi_field_string): Likewise.
598         (mi_field_fmt): Likewise.
599         (mi_flush): Likewise.
600         (mi_redirect): Likewise.
601         (field_separator): Likewise.
602         (mi_open): Likewise.
603         (mi_close): Likewise.
604         (mi_out_buffered): Likewise.
605         (mi_out_rewind): Likewise.
606         (mi_out_put): Likewise.
607         (mi_version): Likewise.
608         (mi_out_data_dtor): Likewise.
609         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
610         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
611         * minidebug.c (lzma_open): Likewise.
612         (lzma_pread): Likewise.
613         (lzma_close): Likewise.
614         (lzma_stat): Likewise.
615         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
616         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
617         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
618         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
619         (mips_micro_frame_cache): Likewise.
620         (mips_insn32_frame_cache): Likewise.
621         (mips_stub_frame_cache): Likewise.
622         (gdb_print_insn_mips): Likewise.
623         (value_of_mips_user_reg): Likewise.
624         (mips_gdbarch_init): Likewise.
625         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
626         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
627         (mipsnbsd_supply_gregset): Likewise.
628         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
629         (am33_collect_gregset_method): Likewise.
630         (am33_collect_fpregset_method): Likewise.
631         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
632         * moxie-tdep.c (moxie_frame_cache): Likewise.
633         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
634         (msp430_analyze_frame_prologue): Likewise.
635         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
636         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
637         (nios2_collect_gregset): Likewise.
638         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
639         (nios2_stub_frame_cache): Likewise.
640         * objc-lang.c (find_methods): Likewise.
641         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
642         (get_objfile_pspace_data): Likewise.
643         (get_objfile_bfd_data): Likewise.
644         (objfile_bfd_data_free): Likewise.
645         (add_to_objfile_sections): Likewise.
646         (do_free_objfile_cleanup): Likewise.
647         (resume_section_map_updates_cleanup): Likewise.
648         * opencl-lang.c (builtin_opencl_type): Likewise.
649         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
650         * osdata.c (osdata_start_osdata): Likewise.
651         (osdata_start_item): Likewise.
652         (osdata_start_column): Likewise.
653         (osdata_end_column): Likewise.
654         (clear_parsing_data): Likewise.
655         (osdata_free_cleanup): Likewise.
656         * parse.c (type_stack_cleanup): Likewise.
657         (exp_uses_objfile_iter): Likewise.
658         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
659         (ppc_linux_collect_gregset): Likewise.
660         (ppu2spu_prev_arch): Likewise.
661         (ppu2spu_this_id): Likewise.
662         (ppu2spu_prev_register): Likewise.
663         (ppu2spu_unwind_register): Likewise.
664         (ppu2spu_sniffer): Likewise.
665         (ppu2spu_dealloc_cache): Likewise.
666         (ppc_linux_init_abi): Likewise.
667         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
668         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
669         * progspace.c (restore_program_space): Likewise.
670         * psymtab.c (find_pc_sect_psymtab): Likewise.
671         (compare_psymbols): Likewise.
672         (psymbol_bcache_full): Likewise.
673         (allocate_psymtab): Likewise.
674         (discard_psymtabs_upto): Likewise.
675         * python/py-block.c (set_block): Likewise.
676         (del_objfile_blocks): Likewise.
677         * python/py-breakpoint.c (build_bp_list): Likewise.
678         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
679         (build_inferior_list): Likewise.
680         (py_free_inferior): Likewise.
681         * python/py-objfile.c (py_free_objfile): Likewise.
682         (objfile_to_objfile_object): Likewise.
683         * python/py-prettyprint.c (py_restore_tstate): Likewise.
684         * python/py-progspace.c (py_free_pspace): Likewise.
685         (pspace_to_pspace_object): Likewise.
686         * python/py-symbol.c (set_symbol): Likewise.
687         (del_objfile_symbols): Likewise.
688         * python/py-symtab.c (set_sal): Likewise.
689         (set_symtab): Likewise.
690         (del_objfile_symtab): Likewise.
691         (del_objfile_sal): Likewise.
692         * python/py-type.c (save_objfile_types): Likewise.
693         (set_type): Likewise.
694         * python/py-unwind.c (pyuw_prev_register): Likewise.
695         (pyuw_on_new_gdbarch): Likewise.
696         * python/py-utils.c (py_decref): Likewise.
697         (py_xdecref): Likewise.
698         (gdb_py_generic_dict): Likewise.
699         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
700         (gdbpy_clone_xmethod_worker_data): Likewise.
701         (gdbpy_get_xmethod_arg_types): Likewise.
702         (gdbpy_get_xmethod_result_type): Likewise.
703         (gdbpy_invoke_xmethod): Likewise.
704         * python/python.c (gdbpy_apply_type_printers): Likewise.
705         (gdbpy_free_type_printers): Likewise.
706         * record-btrace.c (record_btrace_disable_callback): Likewise.
707         (bfcache_hash): Likewise.
708         (bfcache_eq): Likewise.
709         (btrace_get_frame_function): Likewise.
710         (record_btrace_frame_unwind_stop_reason): Likewise.
711         (record_btrace_frame_this_id): Likewise.
712         (record_btrace_frame_prev_register): Likewise.
713         (record_btrace_frame_dealloc_cache): Likewise.
714         * record-full.c (record_full_message_wrapper): Likewise.
715         (record_full_save_cleanups): Likewise.
716         * regcache.c (regcache_descr): Likewise.
717         (do_regcache_xfree): Likewise.
718         (do_regcache_invalidate): Likewise.
719         (do_cooked_read): Likewise.
720         (regcache_transfer_regset): Likewise.
721         * reggroups.c (reggroup_add): Likewise.
722         (reggroup_next): Likewise.
723         (reggroup_prev): Likewise.
724         * remote-fileio.c (do_remote_fileio_request): Likewise.
725         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
726         (do_notif_event_xfree): Likewise.
727         * remote.c (get_remote_arch_state): Likewise.
728         (remote_pspace_data_cleanup): Likewise.
729         (get_remote_exec_file): Likewise.
730         (set_pspace_remote_exec_file): Likewise.
731         (compare_pnums): Likewise.
732         (clear_threads_listing_context): Likewise.
733         (remote_newthread_step): Likewise.
734         (start_thread): Likewise.
735         (end_thread): Likewise.
736         (remove_child_of_pending_fork): Likewise.
737         (remove_stop_reply_for_inferior): Likewise.
738         (remove_stop_reply_of_remote_state): Likewise.
739         (remote_notif_remove_once_on_match): Likewise.
740         (stop_reply_match_ptid_and_ws): Likewise.
741         (kill_child_of_pending_fork): Likewise.
742         (register_remote_g_packet_guess): Likewise.
743         (remote_read_description_p): Likewise.
744         (remote_read_description): Likewise.
745         (free_actions_list_cleanup_wrapper): Likewise.
746         (remote_async_serial_handler): Likewise.
747         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
748         (rl78_analyze_frame_prologue): Likewise.
749         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
750         (ppc_supply_fpregset): Likewise.
751         (ppc_supply_vsxregset): Likewise.
752         (ppc_supply_vrregset): Likewise.
753         (ppc_collect_gregset): Likewise.
754         (ppc_collect_fpregset): Likewise.
755         (ppc_collect_vsxregset): Likewise.
756         (ppc_collect_vrregset): Likewise.
757         (e500_move_ev_register): Likewise.
758         (do_regcache_raw_write): Likewise.
759         (rs6000_frame_cache): Likewise.
760         (rs6000_epilogue_frame_cache): Likewise.
761         (rs6000_gdbarch_init): Likewise.
762         * rx-tdep.c (rx_get_opcode_byte): Likewise.
763         (rx_analyze_frame_prologue): Likewise.
764         (rx_frame_type): Likewise.
765         (rx_frame_sniffer_common): Likewise.
766         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
767         (s390_frame_unwind_cache): Likewise.
768         (s390_stub_frame_unwind_cache): Likewise.
769         (s390_sigtramp_frame_unwind_cache): Likewise.
770         * score-tdep.c (score_make_prologue_cache): Likewise.
771         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
772         (sentinel_frame_prev_arch): Likewise.
773         * ser-base.c (fd_event): Likewise.
774         (push_event): Likewise.
775         (ser_base_write): Likewise.
776         * ser-pipe.c (pipe_close): Likewise.
777         * serial.c (serial_write): Likewise.
778         * sh-tdep.c (sh_frame_cache): Likewise.
779         (sh_stub_this_id): Likewise.
780         * sh64-tdep.c (sh64_frame_cache): Likewise.
781         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
782         (library_list_start_library): Likewise.
783         (library_list_start_list): Likewise.
784         (solib_aix_free_library_list): Likewise.
785         * solib-darwin.c (get_darwin_info): Likewise.
786         * solib-dsbt.c (get_dsbt_info): Likewise.
787         * solib-spu.c (append_ocl_sos): Likewise.
788         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
789         (get_svr4_info): Likewise.
790         (library_list_start_library): Likewise.
791         (svr4_library_list_start_list): Likewise.
792         (hash_probe_and_action): Likewise.
793         (equal_probe_and_action): Likewise.
794         (svr4_update_solib_event_breakpoint): Likewise.
795         (set_solib_svr4_fetch_link_map_offsets): Likewise.
796         (svr4_fetch_link_map_offsets): Likewise.
797         (svr4_have_link_map_offsets): Likewise.
798         * solib-target.c (library_list_start_segment): Likewise.
799         (library_list_start_section): Likewise.
800         (library_list_start_library): Likewise.
801         (library_list_end_library): Likewise.
802         (library_list_start_list): Likewise.
803         (solib_target_free_library_list): Likewise.
804         * solib.c (solib_ops): Likewise.
805         (set_solib_ops): Likewise.
806         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
807         * sparc-tdep.c (sparc_frame_cache): Likewise.
808         (sparc32_frame_cache): Likewise.
809         (sparc32_supply_gregset): Likewise.
810         (sparc32_collect_gregset): Likewise.
811         (sparc32_supply_fpregset): Likewise.
812         (sparc32_collect_fpregset): Likewise.
813         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
814         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
815         (sparc64_collect_gregset): Likewise.
816         (sparc64_supply_fpregset): Likewise.
817         (sparc64_collect_fpregset): Likewise.
818         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
819         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
820         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
821         (sparc64obsd_trapframe_cache): Likewise.
822         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
823         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
824         * spu-multiarch.c (spu_gdbarch): Likewise.
825         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
826         (spu2ppu_prev_arch): Likewise.
827         (spu2ppu_this_id): Likewise.
828         (spu2ppu_prev_register): Likewise.
829         (spu2ppu_dealloc_cache): Likewise.
830         (spu_dis_asm_print_address): Likewise.
831         (gdb_print_insn_spu): Likewise.
832         (spu_get_overlay_table): Likewise.
833         * stabsread.c (rs6000_builtin_type): Likewise.
834         * stack.c (do_print_variable_and_value): Likewise.
835         * stap-probe.c (get_stap_base_address_1): Likewise.
836         * symfile-debug.c (debug_qf_has_symbols): Likewise.
837         (debug_qf_find_last_source_symtab): Likewise.
838         (debug_qf_forget_cached_source_info): Likewise.
839         (debug_qf_map_symtabs_matching_filename): Likewise.
840         (debug_qf_lookup_symbol): Likewise.
841         (debug_qf_print_stats): Likewise.
842         (debug_qf_dump): Likewise.
843         (debug_qf_relocate): Likewise.
844         (debug_qf_expand_symtabs_for_function): Likewise.
845         (debug_qf_expand_all_symtabs): Likewise.
846         (debug_qf_expand_symtabs_with_fullname): Likewise.
847         (debug_qf_map_matching_symbols): Likewise.
848         (debug_qf_expand_symtabs_matching): Likewise.
849         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
850         (debug_qf_map_symbol_filenames): Likewise.
851         (debug_sym_get_probes): Likewise.
852         (debug_sym_new_init): Likewise.
853         (debug_sym_init): Likewise.
854         (debug_sym_read): Likewise.
855         (debug_sym_read_psymbols): Likewise.
856         (debug_sym_finish): Likewise.
857         (debug_sym_offsets): Likewise.
858         (debug_sym_read_linetable): Likewise.
859         (debug_sym_relocate): Likewise.
860         (uninstall_symfile_debug_logging): Likewise.
861         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
862         * symfile.c (place_section): Likewise.
863         (add_section_size_callback): Likewise.
864         (load_progress): Likewise.
865         (load_section_callback): Likewise.
866         (clear_memory_write_data): Likewise.
867         (allocate_symtab): Likewise.
868         * symmisc.c (maintenance_expand_file_matcher): Likewise.
869         * symtab.c (lookup_symtab_callback): Likewise.
870         (hash_demangled_name_entry): Likewise.
871         (eq_demangled_name_entry): Likewise.
872         (get_symbol_cache): Likewise.
873         (symbol_cache_cleanup): Likewise.
874         (set_symbol_cache_size): Likewise.
875         (symbol_cache_flush): Likewise.
876         (maintenance_print_symbol_cache): Likewise.
877         (maintenance_print_symbol_cache_statistics): Likewise.
878         (delete_filename_seen_cache): Likewise.
879         (output_partial_symbol_filename): Likewise.
880         (search_symbols_file_matches): Likewise.
881         (search_symbols_name_matches): Likewise.
882         (do_free_completion_list): Likewise.
883         (maybe_add_partial_symtab_filename): Likewise.
884         (get_main_info): Likewise.
885         (main_info_cleanup): Likewise.
886         * target-dcache.c (target_dcache_cleanup): Likewise.
887         (target_dcache_init_p): Likewise.
888         (target_dcache_invalidate): Likewise.
889         (target_dcache_get): Likewise.
890         (target_dcache_get_or_init): Likewise.
891         * target-descriptions.c (target_find_description): Likewise.
892         (tdesc_find_type): Likewise.
893         (tdesc_data_cleanup): Likewise.
894         (tdesc_find_arch_register): Likewise.
895         (tdesc_register_name): Likewise.
896         (tdesc_register_type): Likewise.
897         (tdesc_register_reggroup_p): Likewise.
898         (set_tdesc_pseudo_register_name): Likewise.
899         (set_tdesc_pseudo_register_type): Likewise.
900         (set_tdesc_pseudo_register_reggroup_p): Likewise.
901         (tdesc_use_registers): Likewise.
902         (free_target_description): Likewise.
903         * target-memory.c (compare_block_starting_address): Likewise.
904         (cleanup_request_data): Likewise.
905         (cleanup_write_requests_vector): Likewise.
906         * target.c (open_target): Likewise.
907         (cleanup_restore_target_terminal): Likewise.
908         (free_memory_read_result_vector): Likewise.
909         * thread.c (disable_thread_stack_temporaries): Likewise.
910         (finish_thread_state_cleanup): Likewise.
911         (do_restore_current_thread_cleanup): Likewise.
912         (restore_current_thread_cleanup_dtor): Likewise.
913         (set_thread_refcount): Likewise.
914         (tp_array_compar): Likewise.
915         (do_captured_thread_select): Likewise.
916         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
917         (tic6x_stub_this_id): Likewise.
918         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
919         * top.c (do_restore_instream_cleanup): Likewise.
920         (gdb_readline_wrapper_cleanup): Likewise.
921         (kill_or_detach): Likewise.
922         (print_inferior_quit_action): Likewise.
923         * tracefile-tfile.c (match_blocktype): Likewise.
924         (build_traceframe_info): Likewise.
925         * tracefile.c (trace_file_writer_xfree): Likewise.
926         * tracepoint.c (memrange_cmp): Likewise.
927         (do_collect_symbol): Likewise.
928         (do_clear_collection_list): Likewise.
929         (do_restore_current_traceframe_cleanup): Likewise.
930         (restore_current_traceframe_cleanup_dtor): Likewise.
931         (free_current_marker): Likewise.
932         (traceframe_info_start_memory): Likewise.
933         (traceframe_info_start_tvar): Likewise.
934         (free_result): Likewise.
935         * tramp-frame.c (tramp_frame_cache): Likewise.
936         * tui/tui-file.c (tui_file_delete): Likewise.
937         (tui_fileopen): Likewise.
938         (tui_sfileopen): Likewise.
939         (tui_file_isatty): Likewise.
940         (tui_file_rewind): Likewise.
941         (tui_file_put): Likewise.
942         (tui_file_fputs): Likewise.
943         (tui_file_get_strbuf): Likewise.
944         (tui_file_adjust_strbuf): Likewise.
945         (tui_file_flush): Likewise.
946         * tui/tui-layout.c (make_command_window): Likewise.
947         (make_data_window): Likewise.
948         (show_source_disasm_command): Likewise.
949         (show_data): Likewise.
950         (make_source_or_disasm_window): Likewise.
951         (show_source_or_disasm_and_command): Likewise.
952         * tui/tui-out.c (tui_field_int): Likewise.
953         (tui_field_string): Likewise.
954         (tui_field_fmt): Likewise.
955         (tui_text): Likewise.
956         * typeprint.c (hash_typedef_field): Likewise.
957         (eq_typedef_field): Likewise.
958         (do_free_typedef_hash): Likewise.
959         (copy_typedef_hash_element): Likewise.
960         (do_free_global_table): Likewise.
961         (find_global_typedef): Likewise.
962         (find_typedef_in_hash): Likewise.
963         * ui-file.c (ui_file_write_for_put): Likewise.
964         (do_ui_file_xstrdup): Likewise.
965         (mem_file_delete): Likewise.
966         (mem_file_rewind): Likewise.
967         (mem_file_put): Likewise.
968         (mem_file_write): Likewise.
969         (stdio_file_delete): Likewise.
970         (stdio_file_flush): Likewise.
971         (stdio_file_read): Likewise.
972         (stdio_file_write): Likewise.
973         (stdio_file_write_async_safe): Likewise.
974         (stdio_file_fputs): Likewise.
975         (stdio_file_isatty): Likewise.
976         (stdio_file_fseek): Likewise.
977         (tee_file_delete): Likewise.
978         (tee_file_flush): Likewise.
979         (tee_file_write): Likewise.
980         (tee_file_fputs): Likewise.
981         (tee_file_isatty): Likewise.
982         * ui-out.c (do_cleanup_table_end): Likewise.
983         (do_cleanup_end): Likewise.
984         * user-regs.c (user_reg_add): Likewise.
985         (user_reg_map_name_to_regnum): Likewise.
986         (usernum_to_user_reg): Likewise.
987         (maintenance_print_user_registers): Likewise.
988         * utils.c (do_bfd_close_cleanup): Likewise.
989         (do_fclose_cleanup): Likewise.
990         (do_obstack_free): Likewise.
991         (do_ui_file_delete): Likewise.
992         (do_ui_out_redirect_pop): Likewise.
993         (do_free_section_addr_info): Likewise.
994         (restore_integer): Likewise.
995         (do_unpush_target): Likewise.
996         (do_htab_delete_cleanup): Likewise.
997         (do_restore_ui_file): Likewise.
998         (do_value_free): Likewise.
999         (do_free_so): Likewise.
1000         (free_current_contents): Likewise.
1001         (do_regfree_cleanup): Likewise.
1002         (core_addr_hash): Likewise.
1003         (core_addr_eq): Likewise.
1004         (do_free_char_ptr_vec): Likewise.
1005         * v850-tdep.c (v850_frame_cache): Likewise.
1006         * varobj.c (do_free_variable_cleanup): Likewise.
1007         * vax-tdep.c (vax_supply_gregset): Likewise.
1008         (vax_frame_cache): Likewise.
1009         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1010         * xml-support.c (gdb_xml_body_text): Likewise.
1011         (gdb_xml_values_cleanup): Likewise.
1012         (gdb_xml_start_element): Likewise.
1013         (gdb_xml_start_element_wrapper): Likewise.
1014         (gdb_xml_end_element): Likewise.
1015         (gdb_xml_end_element_wrapper): Likewise.
1016         (gdb_xml_cleanup): Likewise.
1017         (gdb_xml_fetch_external_entity): Likewise.
1018         (gdb_xml_parse_attr_enum): Likewise.
1019         (xinclude_start_include): Likewise.
1020         (xinclude_end_include): Likewise.
1021         (xml_xinclude_default): Likewise.
1022         (xml_xinclude_start_doctype): Likewise.
1023         (xml_xinclude_end_doctype): Likewise.
1024         (xml_xinclude_cleanup): Likewise.
1025         (xml_fetch_content_from_file): Likewise.
1026         * xml-syscall.c (free_syscalls_info): Likewise.
1027         (syscall_start_syscall): Likewise.
1028         * xml-tdesc.c (tdesc_end_arch): Likewise.
1029         (tdesc_end_osabi): Likewise.
1030         (tdesc_end_compatible): Likewise.
1031         (tdesc_start_target): Likewise.
1032         (tdesc_start_feature): Likewise.
1033         (tdesc_start_reg): Likewise.
1034         (tdesc_start_union): Likewise.
1035         (tdesc_start_struct): Likewise.
1036         (tdesc_start_flags): Likewise.
1037         (tdesc_start_field): Likewise.
1038         (tdesc_start_vector): Likewise.
1039         (fetch_available_features_from_target): Likewise.
1040         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1041         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1042         (xtensa_frame_cache): Likewise.
1043         (xtensa_frame_prev_register): Likewise.
1044         (xtensa_extract_return_value): Likewise.
1045
1046 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1047
1048         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1049         (aarch64_make_stub_cache): Likewise.
1050         (value_of_aarch64_user_reg): Likewise.
1051         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1052         (get_ada_inferior_data): Likewise.
1053         (get_ada_pspace_data): Likewise.
1054         (ada_pspace_data_cleanup): Likewise.
1055         (ada_complete_symbol_matcher): Likewise.
1056         (ada_exc_search_name_matches): Likewise.
1057         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1058         (get_ada_tasks_inferior_data): Likewise.
1059         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1060         (splay_obstack_alloc): Likewise.
1061         (splay_obstack_free): Likewise.
1062         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1063         (alpha_linux_collect_gregset): Likewise.
1064         (alpha_linux_supply_fpregset): Likewise.
1065         (alpha_linux_collect_fpregset): Likewise.
1066         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1067         * alpha-tdep.c (alpha_lds): Likewise.
1068         (alpha_sts): Likewise.
1069         (alpha_sigtramp_frame_unwind_cache): Likewise.
1070         (alpha_heuristic_frame_unwind_cache): Likewise.
1071         (alpha_supply_int_regs): Likewise.
1072         (alpha_fill_int_regs): Likewise.
1073         (alpha_supply_fp_regs): Likewise.
1074         (alpha_fill_fp_regs): Likewise.
1075         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1076         (alphanbsd_aout_supply_gregset): Likewise.
1077         (alphanbsd_supply_gregset): Likewise.
1078         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1079         (amd64_x32_linux_init_abi): Likewise.
1080         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1081         (amd64_collect_native_gregset): Likewise.
1082         * amd64-tdep.c (amd64_frame_cache): Likewise.
1083         (amd64_sigtramp_frame_cache): Likewise.
1084         (amd64_epilogue_frame_cache): Likewise.
1085         (amd64_supply_fxsave): Likewise.
1086         (amd64_supply_xsave): Likewise.
1087         (amd64_collect_fxsave): Likewise.
1088         (amd64_collect_xsave): Likewise.
1089         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1090         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1091         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1092         (arm_linux_collect_gregset): Likewise.
1093         (arm_linux_supply_nwfpe): Likewise.
1094         (arm_linux_collect_nwfpe): Likewise.
1095         (arm_linux_supply_vfp): Likewise.
1096         (arm_linux_collect_vfp): Likewise.
1097         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1098         (arm_prologue_unwind_stop_reason): Likewise.
1099         (arm_prologue_this_id): Likewise.
1100         (arm_prologue_prev_register): Likewise.
1101         (arm_exidx_data_free): Likewise.
1102         (arm_find_exidx_entry): Likewise.
1103         (arm_stub_this_id): Likewise.
1104         (arm_m_exception_this_id): Likewise.
1105         (arm_m_exception_prev_register): Likewise.
1106         (arm_normal_frame_base): Likewise.
1107         (gdb_print_insn_arm): Likewise.
1108         (arm_objfile_data_free): Likewise.
1109         (arm_record_special_symbol): Likewise.
1110         (value_of_arm_user_reg): Likewise.
1111         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1112         (armbsd_supply_gregset): Likewise.
1113         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1114         (get_auto_load_pspace_data): Likewise.
1115         (hash_loaded_script_entry): Likewise.
1116         (eq_loaded_script_entry): Likewise.
1117         (clear_section_scripts): Likewise.
1118         (collect_matching_scripts): Likewise.
1119         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1120         (get_auxv_inferior_data): Likewise.
1121         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1122         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1123         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1124         (target_bfd_xclose): Likewise.
1125         (target_bfd_get_section_table): Likewise.
1126         * bfin-tdep.c (bfin_frame_cache): Likewise.
1127         * block.c (find_block_in_blockvector): Likewise.
1128         (call_site_for_pc): Likewise.
1129         (block_find_non_opaque_type_preferred): Likewise.
1130         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1131         (signal_catchpoint_remove_location): Likewise.
1132         (signal_catchpoint_breakpoint_hit): Likewise.
1133         (signal_catchpoint_print_one): Likewise.
1134         (signal_catchpoint_print_mention): Likewise.
1135         (signal_catchpoint_print_recreate): Likewise.
1136         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1137         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1138         (bp_location_compare_addrs): Likewise.
1139         (get_first_locp_gte_addr): Likewise.
1140         (check_tracepoint_command): Likewise.
1141         (do_map_commands_command): Likewise.
1142         (get_breakpoint_objfile_data): Likewise.
1143         (free_breakpoint_probes): Likewise.
1144         (do_captured_breakpoint_query): Likewise.
1145         (compare_breakpoints): Likewise.
1146         (bp_location_compare): Likewise.
1147         (bpstat_remove_breakpoint_callback): Likewise.
1148         (do_delete_breakpoint_cleanup): Likewise.
1149         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1150         (bsd_uthread_set_collect_uthread): Likewise.
1151         (bsd_uthread_activate): Likewise.
1152         (bsd_uthread_fetch_registers): Likewise.
1153         (bsd_uthread_store_registers): Likewise.
1154         * btrace.c (check_xml_btrace_version): Likewise.
1155         (parse_xml_btrace_block): Likewise.
1156         (parse_xml_btrace_pt_config_cpu): Likewise.
1157         (parse_xml_btrace_pt_raw): Likewise.
1158         (parse_xml_btrace_pt): Likewise.
1159         (parse_xml_btrace_conf_bts): Likewise.
1160         (parse_xml_btrace_conf_pt): Likewise.
1161         (do_btrace_data_cleanup): Likewise.
1162         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1163         * charset.c (cleanup_iconv): Likewise.
1164         (do_cleanup_iterator): Likewise.
1165         * cli-out.c (cli_uiout_dtor): Likewise.
1166         (cli_table_begin): Likewise.
1167         (cli_table_body): Likewise.
1168         (cli_table_end): Likewise.
1169         (cli_table_header): Likewise.
1170         (cli_begin): Likewise.
1171         (cli_end): Likewise.
1172         (cli_field_int): Likewise.
1173         (cli_field_skip): Likewise.
1174         (cli_field_string): Likewise.
1175         (cli_field_fmt): Likewise.
1176         (cli_spaces): Likewise.
1177         (cli_text): Likewise.
1178         (cli_message): Likewise.
1179         (cli_wrap_hint): Likewise.
1180         (cli_flush): Likewise.
1181         (cli_redirect): Likewise.
1182         (out_field_fmt): Likewise.
1183         (field_separator): Likewise.
1184         (cli_out_set_stream): Likewise.
1185         * cli/cli-cmds.c (compare_symtabs): Likewise.
1186         * cli/cli-dump.c (call_dump_func): Likewise.
1187         (restore_section_callback): Likewise.
1188         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1189         (do_restore_user_call_depth): Likewise.
1190         (do_free_command_lines_cleanup): Likewise.
1191         * coff-pe-read.c (get_section_vmas): Likewise.
1192         (pe_as16): Likewise.
1193         (pe_as32): Likewise.
1194         * coffread.c (coff_symfile_read): Likewise.
1195         * common/agent.c (agent_look_up_symbols): Likewise.
1196         * common/filestuff.c (do_close_cleanup): Likewise.
1197         * common/format.c (free_format_pieces_cleanup): Likewise.
1198         * common/vec.c (vec_o_reserve): Likewise.
1199         * compile/compile-c-support.c (print_one_macro): Likewise.
1200         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1201         (eq_symbol_error): Likewise.
1202         (del_symbol_error): Likewise.
1203         (error_symbol_once): Likewise.
1204         (gcc_convert_symbol): Likewise.
1205         (gcc_symbol_address): Likewise.
1206         (hash_symname): Likewise.
1207         (eq_symname): Likewise.
1208         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1209         (eq_type_map_instance): Likewise.
1210         (insert_type): Likewise.
1211         (convert_type): Likewise.
1212         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1213         (setup_sections): Likewise.
1214         (link_hash_table_free): Likewise.
1215         (copy_sections): Likewise.
1216         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1217         * compile/compile.c (compile_print_value): Likewise.
1218         (do_rmdir): Likewise.
1219         (cleanup_compile_instance): Likewise.
1220         (cleanup_unlink_file): Likewise.
1221         * completer.c (free_completion_tracker): Likewise.
1222         * corelow.c (add_to_spuid_list): Likewise.
1223         * cp-namespace.c (reset_directive_searched): Likewise.
1224         * cp-support.c (reset_directive_searched): Likewise.
1225         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1226         (cris_frame_unwind_cache): Likewise.
1227         * d-lang.c (builtin_d_type): Likewise.
1228         * d-namespace.c (reset_directive_searched): Likewise.
1229         * dbxread.c (dbx_free_symfile_info): Likewise.
1230         (do_free_bincl_list_cleanup): Likewise.
1231         * disasm.c (hash_dis_line_entry): Likewise.
1232         (eq_dis_line_entry): Likewise.
1233         (dis_asm_print_address): Likewise.
1234         (fprintf_disasm): Likewise.
1235         (do_ui_file_delete): Likewise.
1236         * doublest.c (convert_floatformat_to_doublest): Likewise.
1237         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1238         (dummy_frame_prev_register): Likewise.
1239         (dummy_frame_this_id): Likewise.
1240         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1241         (cache_eq): Likewise.
1242         (cache_find): Likewise.
1243         (tailcall_frame_this_id): Likewise.
1244         (dwarf2_tailcall_prev_register_first): Likewise.
1245         (tailcall_frame_prev_register): Likewise.
1246         (tailcall_frame_dealloc_cache): Likewise.
1247         (tailcall_frame_prev_arch): Likewise.
1248         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1249         (dwarf2_frame_set_init_reg): Likewise.
1250         (dwarf2_frame_init_reg): Likewise.
1251         (dwarf2_frame_set_signal_frame_p): Likewise.
1252         (dwarf2_frame_signal_frame_p): Likewise.
1253         (dwarf2_frame_set_adjust_regnum): Likewise.
1254         (dwarf2_frame_adjust_regnum): Likewise.
1255         (clear_pointer_cleanup): Likewise.
1256         (dwarf2_frame_cache): Likewise.
1257         (find_cie): Likewise.
1258         (dwarf2_frame_find_fde): Likewise.
1259         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1260         (free_dwarf_expr_context_cleanup): Likewise.
1261         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1262         (locexpr_get_frame_base): Likewise.
1263         (loclist_find_frame_base_location): Likewise.
1264         (loclist_get_frame_base): Likewise.
1265         (dwarf_expr_dwarf_call): Likewise.
1266         (dwarf_expr_get_base_type): Likewise.
1267         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1268         (dwarf_expr_get_obj_addr): Likewise.
1269         (entry_data_value_coerce_ref): Likewise.
1270         (entry_data_value_copy_closure): Likewise.
1271         (entry_data_value_free_closure): Likewise.
1272         (get_frame_address_in_block_wrapper): Likewise.
1273         (dwarf2_evaluate_property): Likewise.
1274         (dwarf2_compile_property_to_c): Likewise.
1275         (needs_frame_read_addr_from_reg): Likewise.
1276         (needs_frame_get_reg_value): Likewise.
1277         (needs_frame_frame_base): Likewise.
1278         (needs_frame_frame_cfa): Likewise.
1279         (needs_frame_tls_address): Likewise.
1280         (needs_frame_dwarf_call): Likewise.
1281         (needs_dwarf_reg_entry_value): Likewise.
1282         (get_ax_pc): Likewise.
1283         (locexpr_read_variable): Likewise.
1284         (locexpr_read_variable_at_entry): Likewise.
1285         (locexpr_read_needs_frame): Likewise.
1286         (locexpr_describe_location): Likewise.
1287         (locexpr_tracepoint_var_ref): Likewise.
1288         (locexpr_generate_c_location): Likewise.
1289         (loclist_read_variable): Likewise.
1290         (loclist_read_variable_at_entry): Likewise.
1291         (loclist_describe_location): Likewise.
1292         (loclist_tracepoint_var_ref): Likewise.
1293         (loclist_generate_c_location): Likewise.
1294         * dwarf2read.c (line_header_hash_voidp): Likewise.
1295         (line_header_eq_voidp): Likewise.
1296         (dwarf2_has_info): Likewise.
1297         (dwarf2_get_section_info): Likewise.
1298         (locate_dwz_sections): Likewise.
1299         (hash_file_name_entry): Likewise.
1300         (eq_file_name_entry): Likewise.
1301         (delete_file_name_entry): Likewise.
1302         (dw2_setup): Likewise.
1303         (dw2_get_file_names_reader): Likewise.
1304         (dw2_find_pc_sect_compunit_symtab): Likewise.
1305         (hash_signatured_type): Likewise.
1306         (eq_signatured_type): Likewise.
1307         (add_signatured_type_cu_to_table): Likewise.
1308         (create_debug_types_hash_table): Likewise.
1309         (lookup_dwo_signatured_type): Likewise.
1310         (lookup_dwp_signatured_type): Likewise.
1311         (lookup_signatured_type): Likewise.
1312         (hash_type_unit_group): Likewise.
1313         (eq_type_unit_group): Likewise.
1314         (get_type_unit_group): Likewise.
1315         (process_psymtab_comp_unit_reader): Likewise.
1316         (sort_tu_by_abbrev_offset): Likewise.
1317         (process_skeletonless_type_unit): Likewise.
1318         (psymtabs_addrmap_cleanup): Likewise.
1319         (dwarf2_read_symtab): Likewise.
1320         (psymtab_to_symtab_1): Likewise.
1321         (die_hash): Likewise.
1322         (die_eq): Likewise.
1323         (load_full_comp_unit_reader): Likewise.
1324         (reset_die_in_process): Likewise.
1325         (free_cu_line_header): Likewise.
1326         (handle_DW_AT_stmt_list): Likewise.
1327         (hash_dwo_file): Likewise.
1328         (eq_dwo_file): Likewise.
1329         (hash_dwo_unit): Likewise.
1330         (eq_dwo_unit): Likewise.
1331         (create_dwo_cu_reader): Likewise.
1332         (create_dwo_unit_in_dwp_v1): Likewise.
1333         (create_dwo_unit_in_dwp_v2): Likewise.
1334         (lookup_dwo_unit_in_dwp): Likewise.
1335         (dwarf2_locate_dwo_sections): Likewise.
1336         (dwarf2_locate_common_dwp_sections): Likewise.
1337         (dwarf2_locate_v2_dwp_sections): Likewise.
1338         (hash_dwp_loaded_cutus): Likewise.
1339         (eq_dwp_loaded_cutus): Likewise.
1340         (lookup_dwo_cutu): Likewise.
1341         (abbrev_table_free_cleanup): Likewise.
1342         (dwarf2_free_abbrev_table): Likewise.
1343         (find_partial_die_in_comp_unit): Likewise.
1344         (free_line_header_voidp): Likewise.
1345         (follow_die_offset): Likewise.
1346         (follow_die_sig_1): Likewise.
1347         (free_heap_comp_unit): Likewise.
1348         (free_stack_comp_unit): Likewise.
1349         (dwarf2_free_objfile): Likewise.
1350         (per_cu_offset_and_type_hash): Likewise.
1351         (per_cu_offset_and_type_eq): Likewise.
1352         (get_die_type_at_offset): Likewise.
1353         (partial_die_hash): Likewise.
1354         (partial_die_eq): Likewise.
1355         (dwarf2_per_objfile_free): Likewise.
1356         (hash_strtab_entry): Likewise.
1357         (eq_strtab_entry): Likewise.
1358         (add_string): Likewise.
1359         (hash_symtab_entry): Likewise.
1360         (eq_symtab_entry): Likewise.
1361         (delete_symtab_entry): Likewise.
1362         (cleanup_mapped_symtab): Likewise.
1363         (add_indices_to_cpool): Likewise.
1364         (hash_psymtab_cu_index): Likewise.
1365         (eq_psymtab_cu_index): Likewise.
1366         (add_address_entry_worker): Likewise.
1367         (unlink_if_set): Likewise.
1368         (write_one_signatured_type): Likewise.
1369         (save_gdb_index_command): Likewise.
1370         * elfread.c (elf_symtab_read): Likewise.
1371         (elf_gnu_ifunc_cache_hash): Likewise.
1372         (elf_gnu_ifunc_cache_eq): Likewise.
1373         (elf_gnu_ifunc_record_cache): Likewise.
1374         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1375         (elf_get_probes): Likewise.
1376         (probe_key_free): Likewise.
1377         * f-lang.c (builtin_f_type): Likewise.
1378         * frame-base.c (frame_base_append_sniffer): Likewise.
1379         (frame_base_set_default): Likewise.
1380         (frame_base_find_by_frame): Likewise.
1381         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1382         (frame_unwind_append_unwinder): Likewise.
1383         (frame_unwind_find_by_frame): Likewise.
1384         * frame.c (frame_addr_hash): Likewise.
1385         (frame_addr_hash_eq): Likewise.
1386         (frame_stash_find): Likewise.
1387         (do_frame_register_read): Likewise.
1388         (unwind_to_current_frame): Likewise.
1389         (frame_cleanup_after_sniffer): Likewise.
1390         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1391         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1392         * ft32-tdep.c (ft32_frame_cache): Likewise.
1393         * gcore.c (do_bfd_delete_cleanup): Likewise.
1394         (gcore_create_callback): Likewise.
1395         * gdb_bfd.c (hash_bfd): Likewise.
1396         (eq_bfd): Likewise.
1397         (gdb_bfd_open): Likewise.
1398         (free_one_bfd_section): Likewise.
1399         (gdb_bfd_ref): Likewise.
1400         (gdb_bfd_unref): Likewise.
1401         (get_section_descriptor): Likewise.
1402         (gdb_bfd_map_section): Likewise.
1403         (gdb_bfd_crc): Likewise.
1404         (gdb_bfd_mark_parent): Likewise.
1405         (gdb_bfd_record_inclusion): Likewise.
1406         (gdb_bfd_requires_relocations): Likewise.
1407         (print_one_bfd): Likewise.
1408         * gdbtypes.c (type_pair_hash): Likewise.
1409         (type_pair_eq): Likewise.
1410         (builtin_type): Likewise.
1411         (objfile_type): Likewise.
1412         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1413         (vtable_address_point_offset): Likewise.
1414         (gnuv3_get_vtable): Likewise.
1415         (hash_value_and_voffset): Likewise.
1416         (eq_value_and_voffset): Likewise.
1417         (compare_value_and_voffset): Likewise.
1418         (compute_vtable_size): Likewise.
1419         (gnuv3_get_typeid_type): Likewise.
1420         * go-lang.c (builtin_go_type): Likewise.
1421         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1422         (bkscm_eq_block_smob): Likewise.
1423         (bkscm_objfile_block_map): Likewise.
1424         (bkscm_del_objfile_blocks): Likewise.
1425         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1426         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1427         (gdbscm_disasm_print_address): Likewise.
1428         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1429         (frscm_eq_frame_smob): Likewise.
1430         (frscm_inferior_frame_map): Likewise.
1431         (frscm_del_inferior_frames): Likewise.
1432         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1433         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1434         (ofscm_objfile_smob_from_objfile): Likewise.
1435         * guile/scm-ports.c (ioscm_write): Likewise.
1436         (ioscm_file_port_delete): Likewise.
1437         (ioscm_file_port_rewind): Likewise.
1438         (ioscm_file_port_put): Likewise.
1439         (ioscm_file_port_write): Likewise.
1440         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1441         (psscm_pspace_smob_from_pspace): Likewise.
1442         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1443         (scscm_recording_unwind_handler): Likewise.
1444         (gdbscm_with_catch): Likewise.
1445         (scscm_call_0_body): Likewise.
1446         (scscm_call_1_body): Likewise.
1447         (scscm_call_2_body): Likewise.
1448         (scscm_call_3_body): Likewise.
1449         (scscm_call_4_body): Likewise.
1450         (scscm_apply_1_body): Likewise.
1451         (scscm_eval_scheme_string): Likewise.
1452         (gdbscm_safe_eval_string): Likewise.
1453         (scscm_source_scheme_script): Likewise.
1454         (gdbscm_safe_source_script): Likewise.
1455         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1456         (gdbscm_call_scm_from_stringn): Likewise.
1457         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1458         (syscm_eq_symbol_smob): Likewise.
1459         (syscm_get_symbol_map): Likewise.
1460         (syscm_del_objfile_symbols): Likewise.
1461         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1462         (stscm_eq_symtab_smob): Likewise.
1463         (stscm_objfile_symtab_map): Likewise.
1464         (stscm_del_objfile_symtabs): Likewise.
1465         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1466         (tyscm_eq_type_smob): Likewise.
1467         (tyscm_type_map): Likewise.
1468         (tyscm_copy_type_recursive): Likewise.
1469         (save_objfile_types): Likewise.
1470         * guile/scm-utils.c (extract_arg): Likewise.
1471         * h8300-tdep.c (h8300_frame_cache): Likewise.
1472         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1473         * hppa-tdep.c (compare_unwind_entries): Likewise.
1474         (find_unwind_entry): Likewise.
1475         (hppa_frame_cache): Likewise.
1476         (hppa_stub_frame_unwind_cache): Likewise.
1477         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1478         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1479         (hppaobsd_supply_fpregset): Likewise.
1480         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1481         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1482         * i386-tdep.c (i386_frame_cache): Likewise.
1483         (i386_epilogue_frame_cache): Likewise.
1484         (i386_sigtramp_frame_cache): Likewise.
1485         (i386_supply_gregset): Likewise.
1486         (i386_collect_gregset): Likewise.
1487         (i386_gdbarch_init): Likewise.
1488         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1489         (i386obsd_trapframe_cache): Likewise.
1490         * i387-tdep.c (i387_supply_fsave): Likewise.
1491         (i387_collect_fsave): Likewise.
1492         (i387_supply_fxsave): Likewise.
1493         (i387_collect_fxsave): Likewise.
1494         (i387_supply_xsave): Likewise.
1495         (i387_collect_xsave): Likewise.
1496         * ia64-tdep.c (ia64_frame_cache): Likewise.
1497         (ia64_sigtramp_frame_cache): Likewise.
1498         * infcmd.c (attach_command_continuation): Likewise.
1499         (attach_command_continuation_free_args): Likewise.
1500         * inferior.c (restore_inferior): Likewise.
1501         (delete_thread_of_inferior): Likewise.
1502         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1503         (get_inflow_inferior_data): Likewise.
1504         (inflow_inferior_exit): Likewise.
1505         * infrun.c (displaced_step_clear_cleanup): Likewise.
1506         (restore_current_uiout_cleanup): Likewise.
1507         (release_stop_context_cleanup): Likewise.
1508         (do_restore_infcall_suspend_state_cleanup): Likewise.
1509         (do_restore_infcall_control_state_cleanup): Likewise.
1510         (restore_inferior_ptid): Likewise.
1511         * inline-frame.c (block_starting_point_at): Likewise.
1512         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1513         * jit.c (get_jit_objfile_data): Likewise.
1514         (get_jit_program_space_data): Likewise.
1515         (jit_object_close_impl): Likewise.
1516         (jit_find_objf_with_entry_addr): Likewise.
1517         (jit_breakpoint_deleted): Likewise.
1518         (jit_unwind_reg_set_impl): Likewise.
1519         (jit_unwind_reg_get_impl): Likewise.
1520         (jit_dealloc_cache): Likewise.
1521         (jit_frame_sniffer): Likewise.
1522         (jit_frame_prev_register): Likewise.
1523         (jit_prepend_unwinder): Likewise.
1524         (jit_inferior_exit_hook): Likewise.
1525         (free_objfile_data): Likewise.
1526         * jv-lang.c (jv_per_objfile_free): Likewise.
1527         (get_dynamics_objfile): Likewise.
1528         (get_java_class_symtab): Likewise.
1529         (builtin_java_type): Likewise.
1530         * language.c (language_string_char_type): Likewise.
1531         (language_bool_type): Likewise.
1532         (language_lookup_primitive_type): Likewise.
1533         (language_lookup_primitive_type_as_symbol): Likewise.
1534         * linespec.c (hash_address_entry): Likewise.
1535         (eq_address_entry): Likewise.
1536         (iterate_inline_only): Likewise.
1537         (iterate_name_matcher): Likewise.
1538         (decode_line_2_compare_items): Likewise.
1539         (collect_one_symbol): Likewise.
1540         (compare_symbols): Likewise.
1541         (compare_msymbols): Likewise.
1542         (add_symtabs_to_list): Likewise.
1543         (collect_symbols): Likewise.
1544         (compare_msyms): Likewise.
1545         (add_minsym): Likewise.
1546         (cleanup_linespec_result): Likewise.
1547         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1548         * linux-nat.c (delete_lwp_cleanup): Likewise.
1549         (count_events_callback): Likewise.
1550         (select_event_lwp_callback): Likewise.
1551         (resume_stopped_resumed_lwps): Likewise.
1552         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1553         (invalidate_linux_cache_inf): Likewise.
1554         (get_linux_inferior_data): Likewise.
1555         (linux_find_memory_regions_thunk): Likewise.
1556         (linux_make_mappings_callback): Likewise.
1557         (linux_corefile_thread_callback): Likewise.
1558         (find_mapping_size): Likewise.
1559         * linux-thread-db.c (find_new_threads_callback): Likewise.
1560         * lm32-tdep.c (lm32_frame_cache): Likewise.
1561         * m2-lang.c (builtin_m2_type): Likewise.
1562         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1563         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1564         (m32r_linux_supply_gregset): Likewise.
1565         (m32r_linux_collect_gregset): Likewise.
1566         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1567         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1568         * m68k-tdep.c (m68k_frame_cache): Likewise.
1569         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1570         (m68kbsd_supply_gregset): Likewise.
1571         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1572         * m88k-tdep.c (m88k_frame_cache): Likewise.
1573         (m88k_supply_gregset): Likewise.
1574
1575 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1576
1577         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1578         to allocation result assignment.
1579         * ada-exp.y (write_object_renaming): Likewise.
1580         (write_ambiguous_var): Likewise.
1581         (ada_nget_field_index): Likewise.
1582         (write_var_or_type): Likewise.
1583         * ada-lang.c (ada_decode_symbol): Likewise.
1584         (ada_value_assign): Likewise.
1585         (value_pointer): Likewise.
1586         (cache_symbol): Likewise.
1587         (add_nonlocal_symbols): Likewise.
1588         (ada_name_for_lookup): Likewise.
1589         (symbol_completion_add): Likewise.
1590         (ada_to_fixed_type_1): Likewise.
1591         (ada_get_next_arg): Likewise.
1592         (defns_collected): Likewise.
1593         * ada-lex.l (processId): Likewise.
1594         (processString): Likewise.
1595         * ada-tasks.c (read_known_tasks_array): Likewise.
1596         (read_known_tasks_list): Likewise.
1597         * ada-typeprint.c (decoded_type_name): Likewise.
1598         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1599         * amd64-tdep.c (amd64_push_arguments): Likewise.
1600         (amd64_displaced_step_copy_insn): Likewise.
1601         (amd64_classify_insn_at): Likewise.
1602         (amd64_relocate_instruction): Likewise.
1603         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1604         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1605         (initialize_current_architecture): Likewise.
1606         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1607         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1608         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1609         (arm_push_dummy_call): Likewise.
1610         (extend_buffer_earlier): Likewise.
1611         (arm_adjust_breakpoint_address): Likewise.
1612         (arm_skip_stub): Likewise.
1613         * auto-load.c (filename_is_in_pattern): Likewise.
1614         (maybe_add_script_file): Likewise.
1615         (maybe_add_script_text): Likewise.
1616         (auto_load_objfile_script_1): Likewise.
1617         * auxv.c (ld_so_xfer_auxv): Likewise.
1618         * ax-general.c (new_agent_expr): Likewise.
1619         (grow_expr): Likewise.
1620         (ax_reg_mask): Likewise.
1621         * bcache.c (bcache_full): Likewise.
1622         * breakpoint.c (program_breakpoint_here_p): Likewise.
1623         * btrace.c (parse_xml_raw): Likewise.
1624         * build-id.c (build_id_to_debug_bfd): Likewise.
1625         * buildsym.c (end_symtab_with_blockvector): Likewise.
1626         * c-exp.y (string_exp): Likewise.
1627         (qualified_name): Likewise.
1628         (write_destructor_name): Likewise.
1629         (operator_stoken): Likewise.
1630         (parse_number): Likewise.
1631         (scan_macro_expansion): Likewise.
1632         (yylex): Likewise.
1633         (c_print_token): Likewise.
1634         * c-lang.c (c_get_string): Likewise.
1635         (emit_numeric_character): Likewise.
1636         * charset.c (wchar_iterate): Likewise.
1637         * cli/cli-cmds.c (complete_command): Likewise.
1638         (make_command): Likewise.
1639         * cli/cli-dump.c (restore_section_callback): Likewise.
1640         (restore_binary_file): Likewise.
1641         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1642         * cli/cli-script.c (execute_control_command): Likewise.
1643         * cli/cli-setshow.c (do_set_command): Likewise.
1644         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1645         (read_pe_exported_syms): Likewise.
1646         * coffread.c (coff_read_struct_type): Likewise.
1647         (coff_read_enum_type): Likewise.
1648         * common/btrace-common.c (btrace_data_append): Likewise.
1649         * common/buffer.c (buffer_grow): Likewise.
1650         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1651         * common/format.c (parse_format_string): Likewise.
1652         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1653         * common/xml-utils.c (xml_escape_text): Likewise.
1654         * compile/compile-object-load.c (copy_sections): Likewise.
1655         (compile_object_load): Likewise.
1656         * compile/compile-object-run.c (compile_object_run): Likewise.
1657         * completer.c (filename_completer): Likewise.
1658         * corefile.c (read_memory_typed_address): Likewise.
1659         (write_memory_unsigned_integer): Likewise.
1660         (write_memory_signed_integer): Likewise.
1661         (complete_set_gnutarget): Likewise.
1662         * corelow.c (get_core_register_section): Likewise.
1663         * cp-name-parser.y (d_grab): Likewise.
1664         (allocate_info): Likewise.
1665         (cp_new_demangle_parse_info): Likewise.
1666         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1667         (cp_lookup_symbol_in_namespace): Likewise.
1668         (lookup_namespace_scope): Likewise.
1669         (find_symbol_in_baseclass): Likewise.
1670         (cp_lookup_nested_symbol): Likewise.
1671         (cp_lookup_transparent_type_loop): Likewise.
1672         * cp-support.c (copy_string_to_obstack): Likewise.
1673         (make_symbol_overload_list): Likewise.
1674         (make_symbol_overload_list_namespace): Likewise.
1675         (make_symbol_overload_list_adl_namespace): Likewise.
1676         (first_component_command): Likewise.
1677         * cp-valprint.c (cp_print_value): Likewise.
1678         * ctf.c (ctf_xfer_partial): Likewise.
1679         * d-exp.y (StringExp): Likewise.
1680         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1681         (lookup_module_scope): Likewise.
1682         (find_symbol_in_baseclass): Likewise.
1683         (d_lookup_nested_symbol): Likewise.
1684         * dbxread.c (find_stab_function_addr): Likewise.
1685         (read_dbx_symtab): Likewise.
1686         (dbx_end_psymtab): Likewise.
1687         (cp_set_block_scope): Likewise.
1688         * dcache.c (dcache_alloc): Likewise.
1689         * demangle.c (_initialize_demangler): Likewise.
1690         * dicos-tdep.c (dicos_load_module_p): Likewise.
1691         * dictionary.c (dict_create_hashed_expandable): Likewise.
1692         (dict_create_linear_expandable): Likewise.
1693         (expand_hashtable): Likewise.
1694         (add_symbol_linear_expandable): Likewise.
1695         * dwarf2-frame.c (add_cie): Likewise.
1696         (add_fde): Likewise.
1697         (dwarf2_build_frame_info): Likewise.
1698         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1699         (dwarf_expr_fetch_address): Likewise.
1700         (add_piece): Likewise.
1701         (execute_stack_op): Likewise.
1702         * dwarf2loc.c (chain_candidate): Likewise.
1703         (dwarf_entry_parameter_to_value): Likewise.
1704         (read_pieced_value): Likewise.
1705         (write_pieced_value): Likewise.
1706         * dwarf2read.c (dwarf2_read_section): Likewise.
1707         (add_type_unit): Likewise.
1708         (read_comp_units_from_section): Likewise.
1709         (fixup_go_packaging): Likewise.
1710         (dwarf2_compute_name): Likewise.
1711         (dwarf2_physname): Likewise.
1712         (create_dwo_unit_in_dwp_v1): Likewise.
1713         (create_dwo_unit_in_dwp_v2): Likewise.
1714         (read_func_scope): Likewise.
1715         (read_call_site_scope): Likewise.
1716         (dwarf2_attach_fields_to_type): Likewise.
1717         (process_structure_scope): Likewise.
1718         (mark_common_block_symbol_computed): Likewise.
1719         (read_common_block): Likewise.
1720         (abbrev_table_read_table): Likewise.
1721         (guess_partial_die_structure_name): Likewise.
1722         (fixup_partial_die): Likewise.
1723         (add_file_name): Likewise.
1724         (dwarf2_const_value_data): Likewise.
1725         (dwarf2_const_value_attr): Likewise.
1726         (build_error_marker_type): Likewise.
1727         (guess_full_die_structure_name): Likewise.
1728         (anonymous_struct_prefix): Likewise.
1729         (typename_concat): Likewise.
1730         (dwarf2_canonicalize_name): Likewise.
1731         (dwarf2_name): Likewise.
1732         (write_constant_as_bytes): Likewise.
1733         (dwarf2_fetch_constant_bytes): Likewise.
1734         (copy_string): Likewise.
1735         (parse_macro_definition): Likewise.
1736         * elfread.c (elf_symfile_segments): Likewise.
1737         (elf_rel_plt_read): Likewise.
1738         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1739         (elf_gnu_ifunc_resolve_by_got): Likewise.
1740         (elf_read_minimal_symbols): Likewise.
1741         (elf_gnu_ifunc_record_cache): Likewise.
1742         * event-top.c (top_level_prompt): Likewise.
1743         (command_line_handler): Likewise.
1744         * exec.c (resize_section_table): Likewise.
1745         * expprint.c (print_subexp_standard): Likewise.
1746         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1747         * findcmd.c (parse_find_args): Likewise.
1748         * findvar.c (address_from_register): Likewise.
1749         * frame.c (get_prev_frame_always): Likewise.
1750         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1751         (get_section_descriptor): Likewise.
1752         * gdb_obstack.c (obconcat): Likewise.
1753         (obstack_strdup): Likewise.
1754         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1755         (create_set_type): Likewise.
1756         (lookup_unsigned_typename): Likewise.
1757         (lookup_signed_typename): Likewise.
1758         (resolve_dynamic_union): Likewise.
1759         (resolve_dynamic_struct): Likewise.
1760         (add_dyn_prop): Likewise.
1761         (copy_dynamic_prop_list): Likewise.
1762         (arch_flags_type): Likewise.
1763         (append_composite_type_field_raw): Likewise.
1764         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1765         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1766         * go-exp.y (string_exp): Likewise.
1767         * go-lang.c (go_demangle): Likewise.
1768         * guile/guile.c (compute_scheme_string): Likewise.
1769         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1770         (gdbscm_canonicalize_command_name): Likewise.
1771         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1772         (ioscm_init_memory_port): Likewise.
1773         (ioscm_reinit_memory_port): Likewise.
1774         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1775         (gdbscm_gc_dup_argv): Likewise.
1776         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1777         * hppa-tdep.c (internalize_unwinds): Likewise.
1778         (read_unwind_info): Likewise.
1779         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1780         (windows_core_xfer_shared_libraries): Likewise.
1781         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1782         (i386_stap_parse_special_token_triplet): Likewise.
1783         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1784         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1785         * inf-child.c (inf_child_fileio_readlink): Likewise.
1786         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1787         (inf_ptrace_store_register): Likewise.
1788         * infrun.c (follow_exec): Likewise.
1789         (displaced_step_prepare_throw): Likewise.
1790         (save_stop_context): Likewise.
1791         (save_infcall_suspend_state): Likewise.
1792         * jit.c (jit_read_descriptor): Likewise.
1793         (jit_read_code_entry): Likewise.
1794         (jit_symtab_line_mapping_add_impl): Likewise.
1795         (finalize_symtab): Likewise.
1796         (jit_unwind_reg_get_impl): Likewise.
1797         * jv-exp.y (QualifiedName): Likewise.
1798         * jv-lang.c (get_java_utf8_name): Likewise.
1799         (type_from_class): Likewise.
1800         (java_demangle_type_signature): Likewise.
1801         (java_class_name_from_physname): Likewise.
1802         * jv-typeprint.c (java_type_print_base): Likewise.
1803         * jv-valprint.c (java_value_print): Likewise.
1804         * language.c (add_language): Likewise.
1805         * linespec.c (add_sal_to_sals_basic): Likewise.
1806         (add_sal_to_sals): Likewise.
1807         (decode_objc): Likewise.
1808         (find_linespec_symbols): Likewise.
1809         * linux-fork.c (fork_save_infrun_state): Likewise.
1810         * linux-nat.c (linux_nat_detach): Likewise.
1811         (linux_nat_fileio_readlink): Likewise.
1812         * linux-record.c (record_linux_sockaddr): Likewise.
1813         (record_linux_msghdr): Likewise.
1814         (Do): Likewise.
1815         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1816         (linux_collect_regset_section_cb): Likewise.
1817         (linux_get_siginfo_data): Likewise.
1818         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1819         (try_thread_db_load_from_dir): Likewise.
1820         (thread_db_load_search): Likewise.
1821         (info_auto_load_libthread_db): Likewise.
1822         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1823         (m32c_m16c_pointer_to_address): Likewise.
1824         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1825         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1826         * machoread.c (macho_check_dsym): Likewise.
1827         * macroexp.c (resize_buffer): Likewise.
1828         (gather_arguments): Likewise.
1829         (maybe_expand): Likewise.
1830         * macrotab.c (new_macro_key): Likewise.
1831         (new_source_file): Likewise.
1832         (new_macro_definition): Likewise.
1833         * mdebugread.c (parse_symbol): Likewise.
1834         (parse_type): Likewise.
1835         (parse_partial_symbols): Likewise.
1836         (psymtab_to_symtab_1): Likewise.
1837         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1838         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1839         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1840         (mi_cmd_data_read_memory_bytes): Likewise.
1841         (mi_cmd_data_write_memory_bytes): Likewise.
1842         (mi_cmd_trace_frame_collected): Likewise.
1843         * mi/mi-parse.c (mi_parse_argv): Likewise.
1844         (mi_parse): Likewise.
1845         * minidebug.c (lzma_open): Likewise.
1846         (lzma_pread): Likewise.
1847         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1848         (mips_print_fp_register): Likewise.
1849         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1850         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1851         * mt-tdep.c (mt_register_name): Likewise.
1852         (mt_registers_info): Likewise.
1853         (mt_push_dummy_call): Likewise.
1854         * namespace.c (add_using_directive): Likewise.
1855         * nat/linux-btrace.c (perf_event_read): Likewise.
1856         (linux_enable_bts): Likewise.
1857         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1858         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1859         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1860         (nto_parse_redirection): Likewise.
1861         * objc-lang.c (objc_demangle): Likewise.
1862         (find_methods): Likewise.
1863         * objfiles.c (get_objfile_bfd_data): Likewise.
1864         (set_objfile_main_name): Likewise.
1865         (allocate_objfile): Likewise.
1866         (objfile_relocate): Likewise.
1867         (update_section_map): Likewise.
1868         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1869         * p-exp.y (exp): Likewise.
1870         (yylex): Likewise.
1871         * p-valprint.c (pascal_object_print_value): Likewise.
1872         * parse.c (initialize_expout): Likewise.
1873         (mark_completion_tag): Likewise.
1874         (copy_name): Likewise.
1875         (parse_float): Likewise.
1876         (type_stack_reserve): Likewise.
1877         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1878         (ppu2spu_prev_register): Likewise.
1879         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1880         * printcmd.c (printf_wide_c_string): Likewise.
1881         (printf_pointer): Likewise.
1882         * probe.c (parse_probes): Likewise.
1883         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1884         (cmdpy_init): Likewise.
1885         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1886         * python/py-symtab.c (set_sal): Likewise.
1887         * python/py-unwind.c (pyuw_sniffer): Likewise.
1888         * python/python.c (python_interactive_command): Likewise.
1889         (compute_python_string): Likewise.
1890         * ravenscar-thread.c (get_running_thread_id): Likewise.
1891         * record-full.c (record_full_exec_insn): Likewise.
1892         (record_full_core_open_1): Likewise.
1893         * regcache.c (regcache_raw_read_signed): Likewise.
1894         (regcache_raw_read_unsigned): Likewise.
1895         (regcache_cooked_read_signed): Likewise.
1896         (regcache_cooked_read_unsigned): Likewise.
1897         * remote-fileio.c (remote_fileio_func_open): Likewise.
1898         (remote_fileio_func_rename): Likewise.
1899         (remote_fileio_func_unlink): Likewise.
1900         (remote_fileio_func_stat): Likewise.
1901         (remote_fileio_func_system): Likewise.
1902         * remote-mips.c (mips_xfer_memory): Likewise.
1903         (mips_load_srec): Likewise.
1904         (pmon_end_download): Likewise.
1905         * remote.c (new_remote_state): Likewise.
1906         (map_regcache_remote_table): Likewise.
1907         (remote_register_number_and_offset): Likewise.
1908         (init_remote_state): Likewise.
1909         (get_memory_packet_size): Likewise.
1910         (remote_pass_signals): Likewise.
1911         (remote_program_signals): Likewise.
1912         (remote_start_remote): Likewise.
1913         (remote_check_symbols): Likewise.
1914         (remote_query_supported): Likewise.
1915         (extended_remote_attach): Likewise.
1916         (process_g_packet): Likewise.
1917         (store_registers_using_G): Likewise.
1918         (putpkt_binary): Likewise.
1919         (read_frame): Likewise.
1920         (compare_sections_command): Likewise.
1921         (remote_hostio_pread): Likewise.
1922         (remote_hostio_readlink): Likewise.
1923         (remote_file_put): Likewise.
1924         (remote_file_get): Likewise.
1925         (remote_pid_to_exec_file): Likewise.
1926         (_initialize_remote): Likewise.
1927         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1928         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1929         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1930         (bfd_uses_spe_extensions): Likewise.
1931         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1932         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1933         * solib-dsbt.c (decode_loadmap): Likewise.
1934         (fetch_loadmap): Likewise.
1935         (scan_dyntag): Likewise.
1936         (enable_break): Likewise.
1937         (dsbt_relocate_main_executable): Likewise.
1938         * solib-frv.c (fetch_loadmap): Likewise.
1939         (enable_break2): Likewise.
1940         (frv_relocate_main_executable): Likewise.
1941         * solib-spu.c (spu_relocate_main_executable): Likewise.
1942         (spu_bfd_open): Likewise.
1943         * solib-svr4.c (lm_info_read): Likewise.
1944         (read_program_header): Likewise.
1945         (find_program_interpreter): Likewise.
1946         (scan_dyntag): Likewise.
1947         (elf_locate_base): Likewise.
1948         (open_symbol_file_object): Likewise.
1949         (read_program_headers_from_bfd): Likewise.
1950         (svr4_relocate_main_executable): Likewise.
1951         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1952         * solib.c (solib_find_1): Likewise.
1953         (exec_file_find): Likewise.
1954         (solib_find): Likewise.
1955         * source.c (openp): Likewise.
1956         (print_source_lines_base): Likewise.
1957         (forward_search_command): Likewise.
1958         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1959         * spu-tdep.c (spu2ppu_prev_register): Likewise.
1960         (spu_get_overlay_table): Likewise.
1961         * stabsread.c (patch_block_stabs): Likewise.
1962         (define_symbol): Likewise.
1963         (again:): Likewise.
1964         (read_member_functions): Likewise.
1965         (read_one_struct_field): Likewise.
1966         (read_enum_type): Likewise.
1967         (common_block_start): Likewise.
1968         * stack.c (read_frame_arg): Likewise.
1969         (backtrace_command): Likewise.
1970         * stap-probe.c (stap_parse_register_operand): Likewise.
1971         * symfile.c (syms_from_objfile_1): Likewise.
1972         (find_separate_debug_file): Likewise.
1973         (load_command): Likewise.
1974         (load_progress): Likewise.
1975         (load_section_callback): Likewise.
1976         (reread_symbols): Likewise.
1977         (add_filename_language): Likewise.
1978         (allocate_compunit_symtab): Likewise.
1979         (read_target_long_array): Likewise.
1980         (simple_read_overlay_table): Likewise.
1981         * symtab.c (symbol_set_names): Likewise.
1982         (resize_symbol_cache): Likewise.
1983         (rbreak_command): Likewise.
1984         (completion_list_add_name): Likewise.
1985         (completion_list_objc_symbol): Likewise.
1986         (add_filename_to_list): Likewise.
1987         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1988         * target-memory.c (target_write_memory_blocks): Likewise.
1989         * target.c (target_read_string): Likewise.
1990         (read_whatever_is_readable): Likewise.
1991         (target_read_alloc_1): Likewise.
1992         (simple_search_memory): Likewise.
1993         (target_fileio_read_alloc_1): Likewise.
1994         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1995         * top.c (command_line_input): Likewise.
1996         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1997         * tracefile.c (tracefile_fetch_registers): Likewise.
1998         * tracepoint.c (add_memrange): Likewise.
1999         (init_collection_list): Likewise.
2000         (add_aexpr): Likewise.
2001         (trace_dump_actions): Likewise.
2002         (parse_trace_status): Likewise.
2003         (parse_tracepoint_definition): Likewise.
2004         (parse_tsv_definition): Likewise.
2005         (parse_static_tracepoint_marker_definition): Likewise.
2006         * tui/tui-file.c (tui_sfileopen): Likewise.
2007         (tui_file_adjust_strbuf): Likewise.
2008         * tui/tui-io.c (tui_expand_tabs): Likewise.
2009         * tui/tui-source.c (tui_set_source_content): Likewise.
2010         * typeprint.c (find_global_typedef): Likewise.
2011         * ui-file.c (do_ui_file_xstrdup): Likewise.
2012         (ui_file_obsavestring): Likewise.
2013         (mem_file_write): Likewise.
2014         * utils.c (make_hex_string): Likewise.
2015         (get_regcomp_error): Likewise.
2016         (puts_filtered_tabular): Likewise.
2017         (gdb_realpath_keepfile): Likewise.
2018         (ldirname): Likewise.
2019         (gdb_bfd_errmsg): Likewise.
2020         (substitute_path_component): Likewise.
2021         * valops.c (search_struct_method): Likewise.
2022         (find_oload_champ_namespace_loop): Likewise.
2023         * valprint.c (print_decimal_chars): Likewise.
2024         (read_string): Likewise.
2025         (generic_emit_char): Likewise.
2026         * varobj.c (varobj_delete): Likewise.
2027         (varobj_value_get_print_value): Likewise.
2028         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2029         * windows-tdep.c (display_one_tib): Likewise.
2030         * xcoffread.c (read_xcoff_symtab): Likewise.
2031         (process_xcoff_symbol): Likewise.
2032         (swap_sym): Likewise.
2033         (scan_xcoff_symtab): Likewise.
2034         (xcoff_initial_scan): Likewise.
2035         * xml-support.c (gdb_xml_end_element): Likewise.
2036         (xml_process_xincludes): Likewise.
2037         (xml_fetch_content_from_file): Likewise.
2038         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2039         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2040
2041 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2042
2043         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2044         instead of builtin_func_ptr.
2045         (ft32_pointer_to_address): New function.
2046         (ft32_address_class_type_flags): New function.
2047         (ft32_address_class_type_flags_to_name): New function.
2048         (ft32_address_class_name_to_type_flags): New function.
2049         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2050         set_gdbarch_pointer_to_address,
2051         set_gdbarch_address_class_type_flags
2052         set_gdbarch_address_class_name_to_type_flags,
2053         and set_gdbarch_address_class_type_flags_to_name.
2054         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2055
2056 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2057
2058         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2059         value is a reference, actually dereference it in order to get
2060         the underlying value.
2061
2062 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2063
2064         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2065
2066 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2067
2068         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2069         * linespec.c (linespec_lexer_lex_string): Same.
2070
2071 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2072
2073         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2074
2075 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2076
2077         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2078         variable.  Call aarch64_decode_adr instead of
2079         aarch64_decode_adrp.
2080         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2081         (aarch64_decode_adr): New function declaration.
2082         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2083         (aarch64_decode_adr): New function, factored out from
2084         aarch64_decode_adrp to decode both adr and adrp instructions.
2085
2086 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2087
2088         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2089         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2090         (aarch64-insn.o): New rule.
2091         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2092         (aarch64*-*-linux*): Likewise.
2093         * arch/aarch64-insn.c: New file.
2094         * arch/aarch64-insn.h: New file.
2095         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2096         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2097         arch/aarch64-insn.h.
2098         (decode_add_sub_imm): Rename to ...
2099         (aarch64_decode_add_sub_imm): ... this.
2100         (decode_adrp): Rename to ...
2101         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2102         Declare in arch/aarch64-insn.h.
2103         (decode_b): Rename to ...
2104         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2105         Declare in arch/aarch64-insn.h.
2106         (decode_bcond): Rename to ...
2107         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2108         Declare in arch/aarch64-insn.h.
2109         (decode_br): Rename to ...
2110         (aarch64_decode_br): ... this.
2111         (decode_cb): Rename to ...
2112         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2113         Declare in arch/aarch64-insn.h.
2114         (decode_eret): Rename to ...
2115         (aarch64_decode_eret): ... this.
2116         (decode_movz): Rename to ...
2117         (aarch64_decode_movz): ... this.
2118         (decode_orr_shifted_register_x): Rename to ...
2119         (aarch64_decode_orr_shifted_register_x): ... this.
2120         (decode_ret): Rename to ...
2121         (aarch64_decode_ret): ... this.
2122         (decode_stp_offset): Rename to ...
2123         (aarch64_decode_stp_offset): ... this.
2124         (decode_stp_offset_wb): Rename to ...
2125         (aarch64_decode_stp_offset_wb): ... this.
2126         (decode_stur): Rename to ...
2127         (aarch64_decode_stur): ... this.
2128         (decode_tb): Rename to ...
2129         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2130         Declare in arch/aarch64-insn.h.
2131         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2132
2133 2015-09-20  Doug Evans  <xdje42@gmail.com>
2134
2135         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2136
2137 2015-09-20  Doug Evans  <xdje42@gmail.com>
2138
2139         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2140         variable name that collides with a parameter.
2141
2142 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2143
2144         * dwarf2loc.c (locexpr_get_frame_base): Renames
2145         block_op_get_frame_base.
2146         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2147         block_op_get_frame_base by reference to locexpr_get_frame_base.
2148         (loclist_get_frame_base): New function, near identical copy of
2149         locexpr_get_frame_base.
2150         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2151         block_op_get_frame_base by reference to loclist_get_frame_base.
2152
2153 2015-09-19  Doug Evans  <xdje42@gmail.com>
2154
2155         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2156         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2157
2158 2015-09-18  Doug Evans  <xdje42@gmail.com>
2159
2160         * linux-thread-db.c (record_thread): Return the created thread.
2161         (thread_from_lwp): Likewise.
2162         (thread_db_get_thread_local_address): Update.
2163
2164 2015-09-18  Doug Evans  <xdje42@gmail.com>
2165
2166         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2167         move only member demangled_name up.  All uses updated.
2168
2169 2015-09-18  Doug Evans  <xdje42@gmail.com>
2170
2171         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2172         kind of minimal symbol in the error message.
2173         * objfiles.c (objfile_flavour_name): New function.
2174         * objfiles.h (objfile_flavour_name): Declare.
2175
2176 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2177
2178         * nat/aarch64-linux.c: Include elf/common.h,
2179         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2180         (aarch64_ps_get_thread_area): New function.
2181         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2182         (aarch64_ps_get_thread_area): Declare.
2183         * aarch64-linux-nat.c (ps_get_thread_area): Call
2184         aarch64_ps_get_thread_area.
2185
2186 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2187
2188         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2189
2190 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2191
2192         * NEWS: Announce new scheduler-locking mode.
2193         * infrun.c (schedlock_replay): New.
2194         (scheduler_enums): Add schedlock_replay.
2195         (scheduler_mode): Change default to schedlock_replay.
2196         (user_visible_resume_ptid): Handle schedlock_replay.
2197         (clear_proceed_status_thread): Stop replaying if resumed thread is
2198         not replaying.
2199         (schedlock_applies): Handle schedlock_replay.
2200         (_initialize_infrun): Document new scheduler-locking mode.
2201         * record-btrace.c (record_btrace_resume): Remove code to stop other
2202         threads when not replaying the resumed thread.
2203
2204 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2205
2206         * record-btrace.c ((record_btrace_will_replay): New.
2207         (init_record_btrace_ops): Initialize to_record_will_replay.
2208         * record-full.c ((record_full_will_replay): New.
2209         (init_record_full_ops): Initialize to_record_will_replay.
2210         * target-delegates.c: Regenerated.
2211         * target.c (target_record_will_replay): New.
2212         * target.h (struct target_ops) <to_record_will_replay>: New.
2213         (target_record_will_replay): New.
2214
2215 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2216
2217         * record-btrace.c (record_btrace_resume): Call
2218         target_record_stop_replaying.
2219         (record_btrace_stop_replaying_all): New.
2220         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2221         * record-full.c (record_full_stop_replaying): New.
2222         (init_record_full_ops ): Initialize to_record_stop_replaying.
2223         * target-delegates.c: Regenerated.
2224         * target.c (target_record_stop_replaying): New.
2225         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2226         (target_record_stop_replaying): New.
2227
2228 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2229
2230         * record-btrace.c (record_btrace_xfer_partial)
2231         (record_btrace_store_registers, record_btrace_prepare_to_store):
2232         Call record_btrace_is_replaying with inferior_ptid instead of
2233         minus_one_ptid.
2234         (record_btrace_store_registers): Change error message.
2235
2236 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2237
2238         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2239         Update users to pass minus_one_ptid.
2240         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2241         * record.c (cmd_record_delete): Pass inferior_ptid to
2242         target_record_is_replaying.
2243         * target-delegates.c: Regenerated.
2244         * target.c (target_record_is_replaying): Add ptid argument.
2245         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2246         argument.
2247         (target_record_is_replaying): Add ptid argument.
2248
2249 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2250
2251         * record-btrace.c (record_btrace_open): Remove non_stop check.
2252         * NEWS: Announce that record btrace supports non-stop mode.
2253
2254 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2255
2256         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2257         in the TARKET_WAITKIND_NO_HISTORY case.
2258
2259 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2260
2261         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2262         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2263
2264 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2265
2266         * record-btrace.c (get_thread_current_frame): New.
2267         (record_btrace_start_replaying): Call get_thread_current_frame.
2268
2269 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2270
2271         * record-btrace.c (record_btrace_resume_thread): A move request
2272         overwrites a previous move request.
2273         (record_btrace_find_resume_thread): Removed.
2274         (record_btrace_resume): Resume all requested threads.
2275
2276 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2277
2278         * record-btrace.c: Include vec.h.
2279         (record_btrace_find_thread_to_move): Removed.
2280         (btrace_step_no_resumed, btrace_step_again)
2281         (record_btrace_stop_replaying_at_end): New.
2282         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2283         (record_btrace_single_step_forward): Remove calls to
2284         record_btrace_stop_replaying.
2285         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2286         BTHR_RCONT.  Keep threads at the end of their history moving.
2287         (record_btrace_wait): Call record_btrace_step_thread for all threads
2288         until one reports an event.  Call record_btrace_stop_replaying_at_end
2289         for the eventing thread.
2290
2291 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2292
2293         * record-btrace.c (record_btrace_single_step_forward): Return
2294         NO_HISTORY if a step brings us to the end of the execution history.
2295
2296 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2297
2298         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2299         to ...
2300         (record_btrace_single_step_forward): ... here and
2301         (record_btrace_single_step_backward): ... here.
2302
2303 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2304
2305         * record-btrace.c (btrace_step_spurious)
2306         (record_btrace_single_step_forward)
2307         (record_btrace_single_step_backward): New.
2308         (record_btrace_step_thread): Call record_btrace_single_step_forward
2309         and record_btrace_single_step_backward.
2310
2311 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2312
2313         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2314         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2315
2316 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2317
2318         * record-btrace.c (btrace_thread_flag_to_str)
2319         (record_btrace_cancel_resume): New.
2320         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2321         (record_btrace_resume): Print execution direction.
2322         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2323         (record_btrace_wait): Call record_btrace_cancel_resume.
2324
2325 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2326
2327         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2328         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2329         (record_btrace_find_thread_to_move): Also accept threads that have
2330         BTHR_STOP set.
2331         (btrace_step_stopped_on_request, record_btrace_stop): New.
2332         (record_btrace_step_thread): Support BTHR_STOP.
2333         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2334         (init_record_btrace_ops): Initialize to_stop.
2335
2336 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2337
2338         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2339         target_is_non_stop_p ().
2340
2341 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2342
2343         * ada-typeprint.c (print_array_type): Do not describe arrays as
2344         packed when they embed dynamic elements.
2345
2346 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2347
2348         * symtab.h (address_class): Document that TLS variables
2349         are handled by LOC_UNRESOLVED.
2350         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2351         * printcmd.c (address_info): Don't relocate TLS variables.
2352
2353 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2354
2355         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2356         (decode_adrp): Likewise.
2357         (decode_b): Likewise.
2358         (decode_bcond): Likewise.
2359         (decode_br): Likewise.
2360         (decode_cb): Likewise.
2361         (decode_eret): Likewise.
2362         (decode_movz): Likewise.
2363         (decode_orr_shifted_register_x): Likewise.
2364         (decode_ret): Likewise.
2365         (decode_stp_offset): Likewise.
2366         (decode_stp_offset_wb): Likewise.
2367         (decode_stur): Likewise.
2368         (decode_tb): Likewise.
2369         (aarch64_analyze_prologue): Likewise.
2370         (pass_in_x): Likewise.
2371         (pass_in_v): Likewise.
2372         (pass_on_stack): Likewise.
2373         (aarch64_push_dummy_call): Likewise.
2374         (aarch64_extract_return_value): Likewise.
2375         (aarch64_store_return_value): Likewise.
2376         (aarch64_return_value): Likewise.
2377         (aarch64_record_asimd_load_store): Likewise.
2378         (aarch64_record_load_store): Likewise.
2379         (aarch64_record_data_proc_simd_fp): Likewise.
2380
2381 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2382
2383         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2384         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2385         (ppc64_skip_trampoline_code_1): ... here.
2386         (ppc64_skip_trampoline_code): New wrapper function.
2387         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2388
2389 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2390
2391         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2392         function.
2393         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2394         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2395         if target_can_do_single_step returns 1.
2396         * remote.c (struct vCont_action_support) <s, S>: New fields.
2397         (PACKET_vContSupported): New enum.
2398         (remote_protocol_features): New element for vContSupported.
2399         (remote_query_supported): Append "vContSupported+".
2400         (remote_vcont_probe): Remove support_s and support_S, use
2401         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2402         vCont packet if c and C actions are not supported.
2403         (remote_can_do_single_step): New function.
2404         (init_remote_ops): Install it to to_can_do_single_step.
2405         (_initialize_remote): Call add_packet_config_cmd.
2406         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2407         (target_can_do_single_step): New macro.
2408         * target-delegates.c: Re-generated.
2409
2410 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2411
2412         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2413         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2414         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2415         New function.
2416         (aarch64_siginfo_from_compat_siginfo): New function.
2417         * nat/aarch64-linux.h: Include signal.h.
2418         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2419         (compat_timer_t, compat_clock_t): Likewise.
2420         (struct compat_timeval): New.
2421         (union compat_sigval): New.
2422         (struct compat_siginfo): New.
2423         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2424         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2425         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2426         (cpt_si_band, cpt_si_fd): Likewise.
2427
2428 2015-09-14  Pedro Alves  <palves@redhat.com>
2429
2430         * infrun.c (current_stop_id): New global.
2431         (get_stop_id, new_stop_id): New functions.
2432         (fetch_inferior_event): Handle normal_stop proceeding the target.
2433         (struct stop_context): New.
2434         (save_stop_context, release_stop_context_cleanup)
2435         (stop_context_changed): New functions.
2436         (normal_stop): Return true if the hook-stop changes the stop
2437         context.
2438         * infrun.h (get_stop_id): Declare.
2439         (normal_stop): Now returns int.  Add documentation.
2440
2441 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2442
2443         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2444         comment.  Handle packed arrays.
2445
2446 2015-09-14  Pedro Alves  <palves@redhat.com>
2447
2448         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2449         mention of maint set/show target-non-stop.
2450
2451 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2452
2453         * NEWS: Announce new remote packets for the exec-events
2454         feature and the exec-events feature and associated commands.
2455
2456 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2457
2458         * remote.c (remote_exec_event_p): New function.
2459         (remote_insert_exec_catchpoint): New function.
2460         (remote_remove_exec_catchpoint): New function.
2461         (init_extended_remote_ops): Initialize extended_remote_ops
2462         members to_insert_exec_catchpoint and
2463         to_remove_exec_catchpoint.
2464
2465 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2466             Luis Machado  <lgustavo@codesourcery.com>
2467
2468         * infrun.c (follow_exec): Use process-style ptid for
2469         exec message.  Call add_inferior_with_spaces and
2470         target_follow_exec.
2471         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2472         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2473         * remote.c (remote_pspace_data): New static variable.
2474         (remote_pspace_data_cleanup): New function.
2475         (get_remote_exec_file): New function.
2476         (set_remote_exec_file_1): New function.
2477         (set_remote_exec_file): New function.
2478         (show_remote_exec_file): New function.
2479         (remote_exec_file): Delete static variable.
2480         (anonymous enum) <PACKET_exec_event_feature>: New
2481         enumeration constant.
2482         (remote_protocol_features): Add entry for exec-events feature.
2483         (remote_query_supported): Add client side of qSupported query
2484         for exec-events feature.
2485         (remote_follow_exec): New function.
2486         (remote_parse_stop_reply): Handle 'exec' stop reason.
2487         (extended_remote_run, extended_remote_create_inferior): Call
2488         get_remote_exec_file and set_remote_exec_file_1.
2489         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2490         member.
2491         (_initialize_remote): Call
2492         register_program_space_data_with_cleanup.  Call
2493         add_packet_config_cmd for remote exec-events feature.
2494         Modify call to add_setshow_string_noescape_cmd for exec-file
2495         to use new functions set_remote_exec_file and
2496         show_remote_exec_file.
2497         * target-debug.h, target-delegates.c: Regenerated.
2498         * target.c (target_follow_exec): New function.
2499         * target.h (struct target_ops) <to_follow_exec>: New member.
2500         (target_follow_exec): Declare new function.
2501
2502 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2503
2504         * aarch64-tdep.c (decode_cb): Move up comment describing the
2505         encoding.
2506         (decode_tb): Fix a typo in comment above the function.  Move up
2507         comment describing the encoding.
2508
2509 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2510
2511         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2512
2513 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2514
2515         PR gdb/18947
2516         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2517         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2518
2519 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2520
2521         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2522         operations.
2523
2524 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2525
2526         * ada-lang.c (ada_search_struct_field): Constify parameters
2527         and/or variables..
2528         (xget_renaming_scope): Likewise.
2529         (ada_is_redundant_range_encoding): Likewise.
2530         (scan_discrim_bound): Likewise.
2531         (to_fixed_range_type): Likewise.
2532
2533 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2534
2535         * breakpoint.c (download_tracepoint_locations): New local
2536         can_download_tracepoint.  Check the result of
2537         target_can_download_tracepoint and save it in
2538         can_download_tracepoint if there are tracepoints to download.
2539         * linux-nat.h (enum tribool): Move it to ...
2540         * common/common-types.h: ... here.
2541
2542 2015-09-09  Pedro Alves  <palves@redhat.com>
2543
2544         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2545         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2546
2547 2015-09-09  Pedro Alves  <palves@redhat.com>
2548
2549         * continuations.c (add_continuation, restore_thread_cleanup)
2550         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2551         (do_all_continuations_thread, do_all_continuations)
2552         (discard_all_continuations_thread_callback)
2553         (discard_all_continuations_thread, discard_all_continuations)
2554         (add_intermediate_continuation)
2555         (do_all_intermediate_continuations_thread_callback)
2556         (do_all_intermediate_continuations_thread)
2557         (do_all_intermediate_continuations)
2558         (discard_all_intermediate_continuations_thread_callback)
2559         (discard_all_intermediate_continuations_thread)
2560         (discard_all_intermediate_continuations): Delete.
2561         * continuations.h (add_continuation, do_all_continuations)
2562         (do_all_continuations_thread, discard_all_continuations)
2563         (discard_all_continuations_thread, add_intermediate_continuation)
2564         (do_all_intermediate_continuations)
2565         (do_all_intermediate_continuations_thread)
2566         (discard_all_intermediate_continuations)
2567         (discard_all_intermediate_continuations_thread): Delete
2568         declarations.
2569         * event-top.c (stdin_event_handler): Delete references to
2570         continuations.
2571         * gdbthread.h (struct thread_info): Delete continuations and
2572         intermediate_continuations fields.
2573         * inf-loop.c (inferior_event_handler): Remove references to
2574         continuations.
2575         * infrun.c (infrun_thread_stop_requested_callback): Remove
2576         references to continuations.
2577         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2578         * thread.c: Don't include "continuations.h".
2579         (clear_thread_inferior_resources): Remove references to
2580         continuations.
2581
2582 2015-09-09  Pedro Alves  <palves@redhat.com>
2583
2584         * infcall.c (struct dummy_frame_context_saver): Delete.
2585         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2586         (dummy_frame_context_saver_drop)
2587         (dummy_frame_context_saver_cleanup)
2588         (dummy_frame_context_saver_get_regs)
2589         (dummy_frame_context_saver_setup): Delete.
2590         * infcall.h (dummy_frame_context_saver_drop)
2591         (dummy_frame_context_saver_cleanup)
2592         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2593         Delete.
2594         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2595         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2596         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2597
2598 2015-09-09  Pedro Alves  <palves@redhat.com>
2599
2600         * breakpoint.c: Include "thread-fsm.h".
2601         (struct until_break_command_continuation_args): Delete.
2602         (struct until_break_fsm): New.
2603         (until_break_fsm_ops): New global.
2604         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2605         (until_break_command_continuation): Delete.
2606         (until_break_fsm_clean_up): New function.
2607         (until_break_fsm_async_reply_reason): New function.
2608         (until_break_command): Adjust to create an until_break_fsm instead
2609         of a continuation.
2610         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2611         here.
2612         * infcmd.c (struct until_next_fsm): New.
2613         (until_next_fsm_ops): New global.
2614         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2615         (until_next_continuation): Delete.
2616         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2617         functions.
2618         (until_next_command): Adjust to create a new until_next_fsm
2619         instead of a continuation.
2620
2621 2015-09-09  Pedro Alves  <palves@redhat.com>
2622
2623         * infcall.c: Include thread_fsm.h.
2624         (struct call_return_meta_info): New.
2625         (get_call_return_value): New function, factored out from
2626         call_function_by_hand_dummy.
2627         (struct call_thread_fsm): New.
2628         (call_thread_fsm_ops): New global.
2629         (new_call_thread_fsm, call_thread_fsm_should_stop)
2630         (call_thread_fsm_should_notify_stop): New functions.
2631         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2632         the thread.
2633         (call_function_by_hand_dummy): Create a new call_thread_fsm
2634         instance, associate it with the thread, and wait for the FSM to
2635         finish.  If finished successfully, fetch the function's result
2636         value out of the FSM.
2637         * infrun.c (fetch_inferior_event): If the FSM says the stop
2638         shouldn't be notified, don't call normal_stop.
2639         (maybe_remove_breakpoints): New function, factored out from ...
2640         (normal_stop): ... here.  Simplify.
2641         * infrun.h (maybe_remove_breakpoints): Declare.
2642         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2643         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2644         (thread_fsm_should_notify_stop): Declare.
2645
2646 2015-09-09  Pedro Alves  <palves@redhat.com>
2647
2648         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2649         * breakpoint.c (handle_jit_event): Print debug output.
2650         (bpstat_what): Split event callback handling to ...
2651         (bpstat_run_callbacks): ... this new function.
2652         (momentary_bkpt_print_it): No longer handle bp_finish here.
2653         * breakpoint.h (bpstat_run_callbacks): Declare.
2654         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2655         <thread_fsm>: New field.
2656         (thread_cancel_execution_command): Declare.
2657         * infcmd.c: Include thread-fsm.h.
2658         (struct step_command_fsm): New.
2659         (step_command_fsm_ops): New global.
2660         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2661         (step_1): Adjust to use step_command_fsm_prepare and
2662         prepare_one_step.
2663         (struct step_1_continuation_args): Delete.
2664         (step_1_continuation): Delete.
2665         (step_command_fsm_should_stop): New function.
2666         (step_once): Delete.
2667         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2668         (prepare_one_step): New function, based on step_once.
2669         (until_next_command): Remove step_multi reference.
2670         (struct return_value_info): New.
2671         (print_return_value): Rename to ...
2672         (print_return_value_1): ... this.  New struct return_value_info
2673         parameter.  Adjust.
2674         (print_return_value): Reimplement as wrapper around
2675         print_return_value_1.
2676         (struct finish_command_fsm): New.
2677         (finish_command_continuation): Delete.
2678         (finish_command_fsm_ops): New global.
2679         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2680         functions.
2681         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2682         New.
2683         (finish_command_continuation_free_arg): Delete.
2684         (finish_command_fsm_async_reply_reason): New.
2685         (finish_backward, finish_forward): Change symbol parameter to a
2686         finish_command_fsm.  Adjust.
2687         (finish_command): Create a finish_command_fsm.  Adjust.
2688         * infrun.c: Include "thread-fsm.h".
2689         (clear_proceed_status_thread): Delete the thread's FSM.
2690         (infrun_thread_stop_requested_callback): Cancel the thread's
2691         execution command.
2692         (clean_up_just_stopped_threads_fsms): New function.
2693         (fetch_inferior_event): Handle the event_thread's should_stop
2694         method saying the command isn't done yet.
2695         (process_event_stop_test): Run breakpoint callbacks here.
2696         (print_stop_event): Rename to ...
2697         (print_stop_location): ... this.
2698         (restore_current_uiout_cleanup): New function.
2699         (print_stop_event): Reimplement.
2700         (normal_stop): No longer notify the end_stepping_range observers
2701         here handle "step N" nor "finish" here.  No longer call
2702         print_stop_event here.
2703         * infrun.h (struct return_value_info): Forward declare.
2704         (print_return_value): Declare.
2705         (print_stop_event): Change prototype.
2706         * thread-fsm.c: New file.
2707         * thread-fsm.h: New file.
2708         * thread.c: Include "thread-fsm.h".
2709         (thread_cancel_execution_command): New function.
2710         (clear_thread_inferior_resources): Call it.
2711         * cli/cli-interp.c (cli_on_normal_stop): New function.
2712         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2713         observer.
2714         * mi/mi-interp.c: Include "thread-fsm.h".
2715         (restore_current_uiout_cleanup): Delete.
2716         (mi_on_normal_stop): If the thread has an FSM associated, and it
2717         finished, ask it for the async-reply-reason to print.  Always call
2718         print_stop_event here, regardless of the top-level interpreter.
2719         Check bpstat_what to tell whether an asynchronous breakpoint hit
2720         triggered.
2721         * tui/tui-interp.c (tui_on_normal_stop): New function.
2722         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2723
2724 2015-09-09  Pedro Alves  <palves@redhat.com>
2725
2726         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2727         check whether the target can async.
2728         * inf-loop.c (inferior_event_handler): Only call target_async if
2729         the target can async.
2730         * infcall.c: Include top.h and interps.h.
2731         (run_inferior_call): For the interpreter to sync mode while
2732         running the infcall.  Call wait_sync_command_done instead of
2733         wait_for_inferior plus normal_stop.
2734         * infcmd.c (prepare_execution_command): Don't check whether the
2735         target can async when running in the foreground.
2736         (step_1): Delete synchronous case handling.
2737         (step_once): Always install a continuation, even in sync mode.
2738         (until_next_command, finish_forward): Don't check whether the
2739         target can async.
2740         (attach_command_post_wait, notice_new_inferior): Always install a
2741         continuation, even in sync mode.
2742         * infrun.c (mark_infrun_async_event_handler): New function.
2743         (proceed): In sync mode, mark infrun's event source instead of
2744         waiting for events here.
2745         (fetch_inferior_event): If the target can't async, do a blocking
2746         wait.
2747         (prepare_to_wait): In sync mode, mark infrun's event source.
2748         (infrun_async_inferior_event_handler): No longer bail out if the
2749         target can't async.
2750         * infrun.h (mark_infrun_async_event_handler): New declaration.
2751         * linux-nat.c (linux_nat_wait_1): Remove calls to
2752         set_sigint_trap/clear_sigint_trap.
2753         (linux_nat_terminal_inferior): No longer check whether the target
2754         can async.
2755         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2756         comment.
2757         (mi_execute_command_input_handler): No longer check whether the
2758         target is async.  Update and simplify comment.
2759         * target.c (default_target_wait): New function.
2760         * target.h (struct target_ops) <to_wait>: Now defaults to
2761         default_target_wait.
2762         (default_target_wait): Declare.
2763         * top.c (wait_sync_command_done): New function, factored out from
2764         ...
2765         (maybe_wait_sync_command_done): ... this.
2766         * top.h (wait_sync_command_done): Declare.
2767         * target-delegates.c: Regenerate.
2768
2769 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2770
2771         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2772         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2773         Remove include of sys/utsname.h.
2774         (linux_determine_kernel_ptr_bits): Remove.
2775         (linux_determine_kernel_start): New.
2776         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2777         Update check.
2778         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2779         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2780         initialization.
2781         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2782         assignment.
2783
2784 2015-09-07  Pedro Alves  <palves@redhat.com>
2785
2786         * guile/guile-internal.h (as_a_scm_t_subr): New.
2787         * guile/guile.c (misc_guile_functions): Use it.
2788         * guile/scm-arch.c (arch_functions): Use it.
2789         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2790         Use it.
2791         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2792         * guile/scm-cmd.c (command_functions): Use it.
2793         * guile/scm-disasm.c (disasm_functions): Use it.
2794         * guile/scm-exception.c (exception_functions)
2795         (private_exception_functions): Use it.
2796         * guile/scm-frame.c (frame_functions)
2797         * guile/scm-gsmob.c (gsmob_functions): Use it.
2798         * guile/scm-iterator.c (iterator_functions): Use it.
2799         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2800         * guile/scm-math.c (math_functions): Use it.
2801         * guile/scm-objfile.c (objfile_functions): Use it.
2802         * guile/scm-param.c (parameter_functions): Use it.
2803         * guile/scm-ports.c (port_functions, private_port_functions): Use
2804         it.
2805         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2806         * guile/scm-progspace.c (pspace_functions): Use it.
2807         * guile/scm-string.c (string_functions): Use it.
2808         * guile/scm-symbol.c (symbol_functions): Use it.
2809         * guile/scm-symtab.c (symtab_functions): Use it.
2810         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2811         it.
2812         * guile/scm-value.c (value_functions): Use it.
2813
2814 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2815
2816         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2817         (tui_next_win): Likewise.
2818         (tui_prev_win): Likewise.
2819         (tui_partial_win_by_name): Likewise.
2820         (tui_init_generic_part): Likewise.
2821         (init_content_element): Likewise.
2822         (tui_del_window): Likewise.
2823         (tui_free_window): Likewise.
2824         (tui_del_data_windows): Likewise.
2825         (tui_free_data_content): Likewise.
2826         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2827         * tui/tui-regs.c (tui_show_register_group): Likewise.
2828         * tui/tui-win.c (tui_resize_all): Likewise.
2829         (tui_set_focus): Likewise.
2830         (tui_set_win_height): Likewise.
2831         (make_invisible_and_set_new_height): Likewise.
2832         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2833         * tui/tui-wingeneral.c (make_visible): Likewise.
2834
2835 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2836
2837         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2838
2839 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2840
2841         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2842         pointer.
2843         * dbxread.c (dbx_end_psymtab): Likewise.
2844         * gnu-nat.c (gnu_write_inferior): Likewise.
2845         * mdebugread.c (cross_ref): Likewise.
2846         * p-valprint.c (pascal_val_print): Likewise.
2847         * xcoffread.c (xcoff_end_psymtab): Likewise.
2848
2849 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2850
2851         * NEWS: Mention the aarch64 multi-arch debugging support.
2852
2853 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2854
2855         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2856         type instead of a TYPE_CODE_INT one for the string_char_type
2857         and the ada_primitive_type_char types.
2858
2859 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2860
2861         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2862         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2863         aarch64_linux_region_ok_for_watchpoint.
2864         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2865         New function.
2866         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2867         Declare it.
2868
2869 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2870
2871         * gdb_obstack.h (obstack_strdup): Declare.
2872         * gdb_obstack.c (obstack_strdup): Define.
2873         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2874         * gdbarch.c: Regenerate.
2875         * gdbarch.h: Regenerate.
2876         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2877
2878 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2879
2880         * gdbtypes.c (copy_type_recursive): Update documentation.
2881
2882 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2883
2884         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2885         as zero.
2886
2887 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2888
2889         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2890
2891 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2892
2893         * solib-svr4.c (solib_event_probe_action): Call
2894         get_probe_argument_count using TRY...CATCH.
2895         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2896
2897 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2898
2899         * probe.h (struct probe_ops) <get_probe_argument_count,
2900         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2901         the comment that the function can throw an exception.
2902         (get_probe_argument_count): Likewise.
2903         (evaluate_probe_argument): Likewise.
2904         * stap-probe.c (stap_get_opcode): Call error instead of
2905         internal_error.
2906         (stap_get_expected_argument_type): Likewise.  Add argument
2907         'probe'.  Improve error message by mentioning the probe's name.
2908         (stap_parse_probe_arguments): Adjust call to
2909         stap_get_expected_argument_type.
2910         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
2911         not zero.  Call internal_error if GDB requests an argument but the
2912         probe has no arguments.
2913
2914 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2915
2916         * ada-lang.c (ada_resolve_function): Do not ask the user what
2917         match to use when in completion mode.
2918
2919 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
2920
2921         * tui/tui-data.c (tui_win_name): Make local variable const, remove
2922         cast of NULL.
2923
2924 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
2925
2926         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2927         call_abi using XSHAL_ABI macro.
2928
2929 2015-08-29  Doug Evans  <xdje42@gmail.com>
2930
2931         * symtab.h (struct symbol): Tweak comment.
2932
2933 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
2934
2935         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2936         gdbarch obstack instead of on the heap.  Update commentary
2937         accordingly.
2938
2939 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
2940
2941         GDB 7.10 released.
2942
2943 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
2944
2945         * NEWS: Update entry about non-8-bits addressable memory.
2946
2947 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
2948
2949         Revert:
2950         2014-11-06  Doug Evans  <xdje42@gmail.com>
2951         * solib.c (solib_global_lookup): Fetch arch from objfile,
2952         not target_gdbarch.
2953
2954 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2955
2956         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2957         attempt to relocate a TLS variable offset.
2958
2959 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2960
2961         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2962         registered yet.  Set inferior_ptid while calling target_read_memory.
2963
2964 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2965
2966         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2967         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
2968         * linux-nat.c (check_stopped_by_breakpoint): Use
2969         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2970
2971 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2972
2973         * linux-thread-db.c (thread_db_get_thread_local_address): If the
2974         thread was not yet discovered, use thread_from_lwp instead of
2975         calling thread_db_find_new_threads_1.
2976
2977 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2978
2979         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2980         statements.
2981
2982 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2983
2984         * NEWS: Document support for non-8-bits addressable memory.
2985
2986 2015-08-27  Pedro Alves  <palves@redhat.com>
2987
2988         * configure.ac: Remove AC_TYPE_SIGNAL call.
2989         * configure, config.in: Regenerate.
2990
2991 2015-08-27  Pedro Alves  <palves@redhat.com>
2992
2993         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
2994         * extension-priv.h: Include signal.h.
2995         (struct signal_handler) <handler>: Change type to sighandler_t.
2996         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2997         * inflow.c (sigint_ours, sigquit_ours): Change type to
2998         sighandler_t.
2999         (child_terminal_inferior): Remove casts.
3000         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3001         (osig): Change type to sighandler_t.
3002         * nto-procfs.c (ofunc): Change type to sighandler_t.
3003         (procfs_wait): Remove casts.
3004         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3005         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3006         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3007
3008 2015-08-27  Pedro Alves  <palves@redhat.com>
3009
3010         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3011         * gnulib/aclocal.m4: Renegerate.
3012         * gnulib/config.in: Renegerate.
3013         * gnulib/configure: Renegerate.
3014         * gnulib/import/Makefile.am: Update.
3015         * gnulib/import/Makefile.in: Regenerate.
3016         * gnulib/import/m4/gnulib-cache.m4: Update.
3017         * gnulib/import/m4/gnulib-comp.m4: Update.
3018         * gnulib/import/m4/signal_h.m4: New file.
3019         * gnulib/import/signal.in.h: New file.
3020
3021 2015-08-27  Pedro Alves  <palves@redhat.com>
3022
3023         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3024         (MIN_MEMORY_PACKET_SIZE): New.
3025         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3026         (get_memory_packet_size): Adjust.  No longer limit the max packet
3027         size.
3028         (set_memory_packet_size): Adjust, and remove dead code.
3029         (remote_check_symbols): Use xmalloc and a cleanup instead of
3030         alloca.
3031         (remote_packet_size): No longer cap the packet size.
3032         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3033
3034 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3035
3036         * compile/compile.c (compile_to_object): Mention language in
3037         error message.
3038
3039 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3040
3041         * target.c (target_pre_inferior): Unset attach_flag.
3042
3043 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3044
3045         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3046         * gdbarch.c: Re-generate.
3047
3048 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3049
3050         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3051         function with the XNEW-family equivalent.
3052         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3053         * ada-exp.y (write_ambiguous_var): Likewise.
3054         * ada-lang.c (resolve_subexp): Likewise.
3055         (user_select_syms): Likewise.
3056         (assign_aggregate): Likewise.
3057         (ada_evaluate_subexp): Likewise.
3058         (cache_symbol): Likewise.
3059         * addrmap.c (allocate_key): Likewise.
3060         (addrmap_create_mutable): Likewise.
3061         * aix-thread.c (sync_threadlists): Likewise.
3062         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3063         (alpha_gdbarch_init): Likewise.
3064         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3065         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3066         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3067         * arm-tdep.c (push_stack_item): Likewise.
3068         (arm_displaced_step_copy_insn): Likewise.
3069         (arm_gdbarch_init): Likewise.
3070         (_initialize_arm_tdep): Likewise.
3071         * avr-tdep.c (push_stack_item): Likewise.
3072         * ax-general.c (new_agent_expr): Likewise.
3073         * block.c (block_initialize_namespace): Likewise.
3074         * breakpoint.c (alloc_counted_command_line): Likewise.
3075         (update_dprintf_command_list): Likewise.
3076         (parse_breakpoint_sals): Likewise.
3077         (decode_static_tracepoint_spec): Likewise.
3078         (until_break_command): Likewise.
3079         (clear_command): Likewise.
3080         (update_global_location_list): Likewise.
3081         (get_breakpoint_objfile_data) Likewise.
3082         * btrace.c (ftrace_new_function): Likewise.
3083         (btrace_set_insn_history): Likewise.
3084         (btrace_set_call_history): Likewise.
3085         * buildsym.c (add_symbol_to_list): Likewise.
3086         (record_pending_block): Likewise.
3087         (start_subfile): Likewise.
3088         (start_buildsym_compunit): Likewise.
3089         (push_subfile): Likewise.
3090         (end_symtab_get_static_block): Likewise.
3091         (buildsym_init): Likewise.
3092         * cli/cli-cmds.c (source_command): Likewise.
3093         * cli/cli-decode.c (add_cmd): Likewise.
3094         * cli/cli-script.c (build_command_line): Likewise.
3095         (setup_user_args): Likewise.
3096         (realloc_body_list): Likewise.
3097         (process_next_line): Likewise.
3098         (copy_command_lines): Likewise.
3099         * cli/cli-setshow.c (do_set_command): Likewise.
3100         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3101         * coffread.c (coff_locate_sections): Likewise.
3102         (coff_symtab_read): Likewise.
3103         (coff_read_struct_type): Likewise.
3104         * common/cleanups.c (make_my_cleanup2): Likewise.
3105         * common/common-exceptions.c (throw_it): Likewise.
3106         * common/filestuff.c (make_cleanup_close): Likewise.
3107         * common/format.c (parse_format_string): Likewise.
3108         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3109         * compile/compile-object-load.c (munmap_list_add): Likewise.
3110         (compile_object_load): Likewise.
3111         * compile/compile-object-run.c (compile_object_run): Likewise.
3112         * compile/compile.c (append_args): Likewise.
3113         * corefile.c (specify_exec_file_hook): Likewise.
3114         * cp-support.c (make_symbol_overload_list): Likewise.
3115         * cris-tdep.c (push_stack_item): Likewise.
3116         (cris_gdbarch_init): Likewise.
3117         * ctf.c (ctf_trace_file_writer_new): Likewise.
3118         * dbxread.c (init_header_files): Likewise.
3119         (add_new_header_file): Likewise.
3120         (init_bincl_list): Likewise.
3121         (dbx_end_psymtab): Likewise.
3122         (start_psymtab): Likewise.
3123         (dbx_end_psymtab): Likewise.
3124         * dcache.c (dcache_init): Likewise.
3125         * dictionary.c (dict_create_hashed): Likewise.
3126         (dict_create_hashed_expandable): Likewise.
3127         (dict_create_linear): Likewise.
3128         (dict_create_linear_expandable): Likewise.
3129         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3130         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3131         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3132         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3133         (decode_frame_entry_1): Likewise.
3134         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3135         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3136         * dwarf2read.c (dwarf2_has_info): Likewise.
3137         (create_signatured_type_table_from_index): Likewise.
3138         (dwarf2_read_index): Likewise.
3139         (dw2_get_file_names_reader): Likewise.
3140         (create_all_type_units): Likewise.
3141         (read_cutu_die_from_dwo): Likewise.
3142         (init_tu_and_read_dwo_dies): Likewise.
3143         (init_cutu_and_read_dies): Likewise.
3144         (create_all_comp_units): Likewise.
3145         (queue_comp_unit): Likewise.
3146         (inherit_abstract_dies): Likewise.
3147         (read_call_site_scope): Likewise.
3148         (dwarf2_add_field): Likewise.
3149         (dwarf2_add_typedef): Likewise.
3150         (dwarf2_add_member_fn): Likewise.
3151         (attr_to_dynamic_prop): Likewise.
3152         (abbrev_table_alloc_abbrev): Likewise.
3153         (abbrev_table_read_table): Likewise.
3154         (add_include_dir): Likewise.
3155         (add_file_name): Likewise.
3156         (dwarf_decode_line_header): Likewise.
3157         (dwarf2_const_value_attr): Likewise.
3158         (dwarf_alloc_block): Likewise.
3159         (parse_macro_definition): Likewise.
3160         (set_die_type): Likewise.
3161         (write_psymtabs_to_index): Likewise.
3162         (create_cus_from_index): Likewise.
3163         (dwarf2_create_include_psymtab): Likewise.
3164         (process_psymtab_comp_unit_reader): Likewise.
3165         (build_type_psymtab_dependencies): Likewise.
3166         (read_comp_units_from_section): Likewise.
3167         (compute_compunit_symtab_includes): Likewise.
3168         (create_dwo_unit_in_dwp_v1): Likewise.
3169         (create_dwo_unit_in_dwp_v2): Likewise.
3170         (read_func_scope): Likewise.
3171         (process_structure_scope): Likewise.
3172         (mark_common_block_symbol_computed): Likewise.
3173         (load_partial_dies): Likewise.
3174         (dwarf2_symbol_mark_computed): Likewise.
3175         * elfread.c (elf_symfile_segments): Likewise.
3176         (elf_read_minimal_symbols): Likewise.
3177         * environ.c (make_environ): Likewise.
3178         * eval.c (evaluate_subexp_standard): Likewise.
3179         * event-loop.c (create_file_handler): Likewise.
3180         (create_async_signal_handler): Likewise.
3181         (create_async_event_handler): Likewise.
3182         (create_timer): Likewise.
3183         * exec.c (build_section_table): Likewise.
3184         * fbsd-nat.c (fbsd_remember_child): Likewise.
3185         * fork-child.c (fork_inferior): Likewise.
3186         * frv-tdep.c (new_variant): Likewise.
3187         * gdbarch.sh (gdbarch_alloc): Likewise.
3188         (append_name): Likewise.
3189         * gdbtypes.c (rank_function): Likewise.
3190         (copy_type_recursive): Likewise.
3191         (add_dyn_prop): Likewise.
3192         * gnu-nat.c (make_proc): Likewise.
3193         (make_inf): Likewise.
3194         (gnu_write_inferior): Likewise.
3195         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3196         (build_std_type_info_type): Likewise.
3197         * guile/scm-param.c (compute_enum_list): Likewise.
3198         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3199         * guile/scm-value.c (gdbscm_value_call): Likewise.
3200         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3201         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3202         (read_unwind_info): Likewise.
3203         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3204         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3205         (call_function_by_hand_dummy): Likewise.
3206         * infcmd.c (step_once): Likewise.
3207         (finish_forward): Likewise.
3208         (attach_command): Likewise.
3209         (notice_new_inferior): Likewise.
3210         * inferior.c (add_inferior_silent): Likewise.
3211         * infrun.c (add_displaced_stepping_state): Likewise.
3212         (save_infcall_control_state): Likewise.
3213         (save_inferior_ptid): Likewise.
3214         (_initialize_infrun): Likewise.
3215         * jit.c (bfd_open_from_target_memory): Likewise.
3216         (jit_gdbarch_data_init): Likewise.
3217         * language.c (add_language): Likewise.
3218         * linespec.c (decode_line_2): Likewise.
3219         * linux-nat.c (add_to_pid_list): Likewise.
3220         (add_initial_lwp): Likewise.
3221         * linux-thread-db.c (add_thread_db_info): Likewise.
3222         (record_thread): Likewise.
3223         (info_auto_load_libthread_db): Likewise.
3224         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3225         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3226         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3227         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3228         * macrocmd.c (macro_define_command): Likewise.
3229         * macroexp.c (gather_arguments): Likewise.
3230         * macroscope.c (sal_macro_scope): Likewise.
3231         * macrotab.c (new_macro_table): Likewise.
3232         * mdebugread.c (push_parse_stack): Likewise.
3233         (parse_partial_symbols): Likewise.
3234         (parse_symbol): Likewise.
3235         (psymtab_to_symtab_1): Likewise.
3236         (new_block): Likewise.
3237         (new_psymtab): Likewise.
3238         (mdebug_build_psymtabs): Likewise.
3239         (add_pending): Likewise.
3240         (elfmdebug_build_psymtabs): Likewise.
3241         * mep-tdep.c (mep_gdbarch_init): Likewise.
3242         * mi/mi-main.c (mi_execute_command): Likewise.
3243         * mi/mi-parse.c (mi_parse_argv): Likewise.
3244         * minidebug.c (lzma_open): Likewise.
3245         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3246         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3247         * mips-tdep.c (mips_gdbarch_init): Likewise.
3248         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3249         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3250         * mt-tdep.c (mt_registers_info): Likewise.
3251         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3252         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3253         (linux_enable_pt): Likewise.
3254         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3255         (linux_xfer_osdata_processgroups): Likewise.
3256         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3257         * nto-procfs.c (procfs_meminfo): Likewise.
3258         * objc-lang.c (start_msglist): Likewise.
3259         (selectors_info): Likewise.
3260         (classes_info): Likewise.
3261         (find_methods): Likewise.
3262         * objfiles.c (allocate_objfile): Likewise.
3263         (update_section_map): Likewise.
3264         * osabi.c (gdbarch_register_osabi): Likewise.
3265         (gdbarch_register_osabi_sniffer): Likewise.
3266         * parse.c (start_arglist): Likewise.
3267         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3268         (hwdebug_insert_point): Likewise.
3269         * printcmd.c (display_command): Likewise.
3270         (ui_printf): Likewise.
3271         * procfs.c (create_procinfo): Likewise.
3272         (load_syscalls): Likewise.
3273         (proc_get_LDT_entry): Likewise.
3274         (proc_update_threads): Likewise.
3275         * prologue-value.c (make_pv_area): Likewise.
3276         (pv_area_store): Likewise.
3277         * psymtab.c (extend_psymbol_list): Likewise.
3278         (init_psymbol_list): Likewise.
3279         (allocate_psymtab): Likewise.
3280         * python/py-inferior.c (add_thread_object): Likewise.
3281         * python/py-param.c (compute_enum_values): Likewise.
3282         * python/py-value.c (valpy_call): Likewise.
3283         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3284         * python/python.c (ensure_python_env): Likewise.
3285         * record-btrace.c (record_btrace_start_replaying): Likewise.
3286         * record-full.c (record_full_reg_alloc): Likewise.
3287         (record_full_mem_alloc): Likewise.
3288         (record_full_end_alloc): Likewise.
3289         (record_full_core_xfer_partial): Likewise.
3290         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3291         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3292         * remote-notif.c (remote_notif_state_allocate): Likewise.
3293         * remote.c (demand_private_info): Likewise.
3294         (remote_notif_stop_alloc_reply): Likewise.
3295         (remote_enable_btrace): Likewise.
3296         * reverse.c (save_bookmark_command): Likewise.
3297         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3298         * rx-tdep.c (rx_gdbarch_init): Likewise.
3299         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3300         * ser-go32.c (dos_get_tty_state): Likewise.
3301         (dos_copy_tty_state): Likewise.
3302         * ser-mingw.c (ser_windows_open): Likewise.
3303         (ser_console_wait_handle): Likewise.
3304         (ser_console_get_tty_state): Likewise.
3305         (make_pipe_state): Likewise.
3306         (net_windows_open): Likewise.
3307         * ser-unix.c (hardwire_get_tty_state): Likewise.
3308         (hardwire_copy_tty_state): Likewise.
3309         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3310         * solib-dsbt.c (dsbt_current_sos): Likewise.
3311         (dsbt_relocate_main_executable): Likewise.
3312         * solib-frv.c (frv_current_sos): Likewise.
3313         (frv_relocate_main_executable): Likewise.
3314         * solib-spu.c (spu_bfd_fopen): Likewise.
3315         * solib-svr4.c (lm_info_read): Likewise.
3316         (svr4_copy_library_list): Likewise.
3317         (svr4_default_sos): Likewise.
3318         * source.c (find_source_lines): Likewise.
3319         (line_info): Likewise.
3320         (add_substitute_path_rule): Likewise.
3321         * spu-linux-nat.c (spu_bfd_open): Likewise.
3322         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3323         * stabsread.c (dbx_lookup_type): Likewise.
3324         (read_type): Likewise.
3325         (read_member_functions): Likewise.
3326         (read_struct_fields): Likewise.
3327         (read_baseclasses): Likewise.
3328         (read_args): Likewise.
3329         (_initialize_stabsread): Likewise.
3330         * stack.c (func_command): Likewise.
3331         * stap-probe.c (handle_stap_probe): Likewise.
3332         * symfile.c (addrs_section_sort): Likewise.
3333         (addr_info_make_relative): Likewise.
3334         (load_section_callback): Likewise.
3335         (add_symbol_file_command): Likewise.
3336         (init_filename_language_table): Likewise.
3337         * symtab.c (create_filename_seen_cache): Likewise.
3338         (sort_search_symbols_remove_dups): Likewise.
3339         (search_symbols): Likewise.
3340         * target.c (make_cleanup_restore_target_terminal): Likewise.
3341         * thread.c (new_thread): Likewise.
3342         (enable_thread_stack_temporaries): Likewise.
3343         (make_cleanup_restore_current_thread): Likewise.
3344         (thread_apply_all_command): Likewise.
3345         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3346         * top.c (gdb_readline_wrapper): Likewise.
3347         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3348         * tracepoint.c (trace_find_line_command): Likewise.
3349         (all_tracepoint_actions_and_cleanup): Likewise.
3350         (make_cleanup_restore_current_traceframe): Likewise.
3351         (get_uploaded_tp): Likewise.
3352         (get_uploaded_tsv): Likewise.
3353         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3354         (tui_alloc_win_info): Likewise.
3355         (tui_alloc_content): Likewise.
3356         (tui_add_content_elements): Likewise.
3357         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3358         (tui_set_disassem_content): Likewise.
3359         * ui-file.c (ui_file_new): Likewise.
3360         (stdio_file_new): Likewise.
3361         (tee_file_new): Likewise.
3362         * utils.c (make_cleanup_restore_integer): Likewise.
3363         (add_internal_problem_command): Likewise.
3364         * v850-tdep.c (v850_gdbarch_init): Likewise.
3365         * valops.c (find_oload_champ): Likewise.
3366         * value.c (allocate_value_lazy): Likewise.
3367         (record_latest_value): Likewise.
3368         (create_internalvar): Likewise.
3369         * varobj.c (install_variable): Likewise.
3370         (new_variable): Likewise.
3371         (new_root_variable): Likewise.
3372         (cppush): Likewise.
3373         (_initialize_varobj): Likewise.
3374         * windows-nat.c (windows_make_so): Likewise.
3375         * x86-nat.c (x86_add_process): Likewise.
3376         * xcoffread.c (arrange_linetable): Likewise.
3377         (allocate_include_entry): Likewise.
3378         (process_linenos): Likewise.
3379         (SYMBOL_DUP): Likewise.
3380         (xcoff_start_psymtab): Likewise.
3381         (xcoff_end_psymtab): Likewise.
3382         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3383         * xtensa-tdep.c (xtensa_register_type): Likewise.
3384         * gdbarch.c: Regenerate.
3385         * gdbarch.h: Regenerate.
3386
3387 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3388
3389         * infrun.c (follow_exec): Re-order operations for
3390         handling follow-exec-mode "new".
3391         (handle_inferior_event_1): Assign ecs->event_thread
3392         to the current thread.
3393         * remote.c (get_remote_arch_state): Add an assertion.
3394
3395 2015-08-26  Pedro Alves  <palves@redhat.com>
3396
3397         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3398
3399 2015-08-25  Pedro Alves  <palves@redhat.com>
3400
3401         PR gdb/18804
3402         * defs.h (maybe_quit): Declare.
3403         (QUIT): Now calls maybe_quit.
3404         * event-loop.c (clear_async_signal_handler)
3405         (async_signal_handler_is_marked): New functions.
3406         * event-loop.h (async_signal_handler_is_marked)
3407         (clear_async_signal_handler): New declarations.
3408         * remote.c (remote_check_pending_interrupt): New function.
3409         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3410         longer check whether the target is async.  If waiting for a stop
3411         reply, and a Ctrl-C as been sent to the target, offer to
3412         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3413         Otherwise do not disconnect and throw a quit.
3414         (_initialize_remote): Install remote_check_pending_interrupt as
3415         to_check_pending_interrupt.
3416         * target.c (target_check_pending_interrupt): New function.
3417         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3418         field.
3419         (target_check_pending_interrupt): New declaration.
3420         * utils.c (maybe_quit): New function.
3421         * target-delegates.c: Regenerate.
3422
3423 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3424
3425         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3426         Rename local variable pid to tid, and get lwpid of lwp.  Update
3427         debug output.
3428
3429 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3430
3431         * ada-lang.c (ada_read_var_value): Add a var_block argument
3432         and pass it to default_read_var_value.
3433         * block.c (block_static_link): New accessor.
3434         * block.h (block_static_link): Declare it.
3435         * buildsym.c (finish_block_internal): Add a static_link
3436         argument.  If there is a static link, associate it to the new
3437         block.
3438         (finish_block): Add a static link argument and pass it to
3439         finish_block_internal.
3440         (end_symtab_get_static_block): Update calls to finish_block and
3441         to finish_block_internal.
3442         (end_symtab_with_blockvector): Update call to
3443         finish_block_internal.
3444         * buildsym.h: Forward-declare struct dynamic_prop.
3445         (struct context_stack): Add a static_link field.
3446         (finish_block): Add a static link argument.
3447         * c-exp.y: Remove an obsolete comment (evaluation of variables
3448         already start from the selected frame, and now they climb *up*
3449         the call stack) and propagate the block information to the
3450         produced expression.
3451         * d-exp.y: Likewise.
3452         * f-exp.y: Likewise.
3453         * go-exp.y: Likewise.
3454         * jv-exp.y: Likewise.
3455         * m2-exp.y: Likewise.
3456         * p-exp.y: Likewise.
3457         * coffread.c (coff_symtab_read): Update calls to finish_block.
3458         * dbxread.c (process_one_symbol): Likewise.
3459         * xcoffread.c (read_xcoff_symtab): Likewise.
3460         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3461         "sym" parameter to struct block_symbol, update its uses and pass
3462         its block to calls to read_var_value.
3463         (convert_symbol_sym): Update the calls to convert_one_symbol.
3464         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3465         call to read_var_value.
3466         * dwarf2loc.c (block_op_get_frame_base): New.
3467         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3468         get_frame_base method.
3469         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3470         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3471         instead of the selected frame in order to evaluate the
3472         expression.
3473         (dwarf2_evaluate_property): Add a frame argument.  Update call
3474         to dwarf2_locexpr_baton_eval to provide a frame in available and
3475         to handle the absence of address stack.
3476         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3477         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3478         declaration.
3479         (read_func_scope): Record any available static link description.
3480         Update call to finish_block.
3481         (read_lexical_block_scope): Update call to finish_block.
3482         * findvar.c (follow_static_link): New.
3483         (get_hosting_frame): New.
3484         (default_read_var_value): Add a var_block argument.  Use
3485         get_hosting_frame to handle non-local references.
3486         (read_var_value): Add a var_block argument and pass it to the
3487         LA_READ_VAR_VALUE method.
3488         * gdbtypes.c (resolve_dynamic_range): Update calls to
3489         dwarf2_evaluate_property.
3490         (resolve_dynamic_type_internal): Likewise.
3491         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3492         read_var_value, passing it the block coming from symbol lookup.
3493         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3494         read_var_value (TODO).
3495         * infcmd.c (finish_command_continuation): Update call to
3496         read_var_value, passing it the block coming from symbol lookup.
3497         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3498         * language.h (struct language_defn): Add a var_block argument to
3499         the LA_READ_VAR_VALUE method.
3500         * objfiles.c (struct static_link_htab_entry): New.
3501         (static_link_htab_entry_hash): New.
3502         (static_link_htab_entry_eq): New.
3503         (objfile_register_static_link): New.
3504         (objfile_lookup_static_link): New.
3505         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3506         * objfiles.h: Include hashtab.h.
3507         (struct objfile): Add a static_links field.
3508         (objfile_register_static_link): New.
3509         (objfile_lookup_static_link): New.
3510         * printcmd.c (print_variable_and_value): Update call to
3511         read_var_value.
3512         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3513         * python/py-frame.c (frapy_read_var): Update call to
3514         read_var_value, passing it the block coming from symbol lookup.
3515         * python/py-framefilter.c (extract_sym): Add a sym_block
3516         parameter and set the pointed value to NULL (TODO).
3517         (enumerate_args): Update call to extract_sym.
3518         (enumerate_locals): Update calls to extract_sym and to
3519         read_var_value.
3520         * python/py-symbol.c (sympy_value): Update call to
3521         read_var_value (TODO).
3522         * stack.c (read_frame_local): Update call to read_var_value.
3523         (read_frame_arg): Likewise.
3524         (return_command): Likewise.
3525         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3526         method.
3527         (struct symbol): Add a block field.
3528         (SYMBOL_BLOCK): New accessor.
3529         * valops.c (value_of_variable): Remove frame/block handling and
3530         pass the block argument to read_var_value, which does this job
3531         now.
3532         (value_struct_elt_for_reference): Update calls to
3533         read_var_value.
3534         (value_of_this): Pass the block found to read_var_value.
3535         * value.h (read_var_value): Add a var_block argument.
3536         (default_read_var_value): Likewise.
3537
3538 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3539
3540         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3541         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3542         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3543
3544 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3545
3546         * Makefile.in (aarch64-liunx.o): New rule.
3547         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3548         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3549         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3550         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3551         extern.
3552         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3553         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3554         * nat/aarch64-linux.c: New file.
3555         * nat/aarch64-linux.h: New file.
3556
3557 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3558
3559         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3560         lwp_arch_private_info and ptid_of_lwp.
3561
3562 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3563
3564         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3565         Move it to nat/aarch64-linux-hw-point.c.
3566         (debug_reg_change_callback): Likewise.
3567         (aarch64_notify_debug_reg_change): :Likewise.
3568         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3569         (aarch64_dr_update_callback_param): New.
3570         (debug_reg_change_callback): New function.
3571         (aarch64_notify_debug_reg_change): Likewise.
3572         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3573         Remove the declaration.
3574
3575 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3576
3577         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3578         Call current_lwp_ptid.
3579
3580 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3581
3582         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3583         debug_printf.
3584
3585 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3586
3587         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3588         ptid_get_pid rather than ptid_get_lwp.
3589
3590 2015-08-24  Pedro Alves  <palves@redhat.com>
3591
3592         * NEWS (New commands): Mention set/show remote
3593         multiprocess-extensions-packet.
3594         * remote.c (remote_query_supported): Only tell the server to use
3595         the multiprocess extensions if the user hasn't force-disabled them
3596         with "set remote multiprocess-extensions-packet off".
3597
3598 2015-08-24  Pedro Alves  <palves@redhat.com>
3599
3600         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3601         1029a8112290f6eee9d7878a391c49db42c999bd.
3602         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3603         Regenerate.
3604         * gnulib/import/Makefile.am: Update.
3605         * gnulib/import/Makefile.in: Update.
3606         * gnulib/import/alloca.in.h: Update.
3607         * gnulib/import/basename-lgpl.c: Update.
3608         * gnulib/import/canonicalize-lgpl.c: Update.
3609         * gnulib/import/config.charset: Update.
3610         * gnulib/import/dirent.in.h: Update.
3611         * gnulib/import/dirfd.c: Update.
3612         * gnulib/import/dirname-lgpl.c: Update.
3613         * gnulib/import/dirname.h: Update.
3614         * gnulib/import/dosname.h: Update.
3615         * gnulib/import/errno.in.h: Update.
3616         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3617         * gnulib/import/extra/snippet/c++defs.h: Update.
3618         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3619         * gnulib/import/extra/update-copyright: Update.
3620         * gnulib/import/float+.h: Update.
3621         * gnulib/import/float.c: Update.
3622         * gnulib/import/float.in.h: Update.
3623         * gnulib/import/fnmatch.c: Update.
3624         * gnulib/import/fnmatch.in.h: Update.
3625         * gnulib/import/fnmatch_loop.c: Update.
3626         * gnulib/import/fpucw.h: Update.
3627         * gnulib/import/frexp.c: Update.
3628         * gnulib/import/frexpl.c: Update.
3629         * gnulib/import/gettimeofday.c: Update.
3630         * gnulib/import/inttypes.in.h: Update.
3631         * gnulib/import/isnan.c: Update.
3632         * gnulib/import/isnand-nolibm.h: Update.
3633         * gnulib/import/isnand.c: Update.
3634         * gnulib/import/isnanl-nolibm.h: Update.
3635         * gnulib/import/isnanl.c: Update.
3636         * gnulib/import/itold.c: Update.
3637         * gnulib/import/localcharset.c: Update.
3638         * gnulib/import/localcharset.h: Update.
3639         * gnulib/import/lstat.c: Update.
3640         * gnulib/import/m4/00gnulib.m4: Update.
3641         * gnulib/import/m4/absolute-header.m4: Update.
3642         * gnulib/import/m4/alloca.m4: Update.
3643         * gnulib/import/m4/canonicalize.m4: Update.
3644         * gnulib/import/m4/codeset.m4: Update.
3645         * gnulib/import/m4/configmake.m4: Update.
3646         * gnulib/import/m4/dirent_h.m4: Update.
3647         * gnulib/import/m4/dirfd.m4: Update.
3648         * gnulib/import/m4/dirname.m4: Update.
3649         * gnulib/import/m4/double-slash-root.m4: Update.
3650         * gnulib/import/m4/eealloc.m4: Update.
3651         * gnulib/import/m4/errno_h.m4: Update.
3652         * gnulib/import/m4/exponentd.m4: Update.
3653         * gnulib/import/m4/exponentl.m4: Update.
3654         * gnulib/import/m4/extensions.m4: Update.
3655         * gnulib/import/m4/extern-inline.m4: Update.
3656         * gnulib/import/m4/fcntl-o.m4: Update.
3657         * gnulib/import/m4/float_h.m4: Update.
3658         * gnulib/import/m4/fnmatch.m4: Update.
3659         * gnulib/import/m4/fpieee.m4: Update.
3660         * gnulib/import/m4/frexp.m4: Update.
3661         * gnulib/import/m4/frexpl.m4: Update.
3662         * gnulib/import/m4/gettimeofday.m4: Update.
3663         * gnulib/import/m4/glibc21.m4: Update.
3664         * gnulib/import/m4/gnulib-cache.m4: Update.
3665         * gnulib/import/m4/gnulib-common.m4: Update.
3666         * gnulib/import/m4/gnulib-comp.m4: Update.
3667         * gnulib/import/m4/gnulib-tool.m4: Update.
3668         * gnulib/import/m4/include_next.m4: Update.
3669         * gnulib/import/m4/inttypes-pri.m4: Update.
3670         * gnulib/import/m4/inttypes.m4: Update.
3671         * gnulib/import/m4/isnand.m4: Update.
3672         * gnulib/import/m4/isnanl.m4: Update.
3673         * gnulib/import/m4/largefile.m4: Update.
3674         * gnulib/import/m4/localcharset.m4: Update.
3675         * gnulib/import/m4/locale-fr.m4: Update.
3676         * gnulib/import/m4/locale-ja.m4: Update.
3677         * gnulib/import/m4/locale-zh.m4: Update.
3678         * gnulib/import/m4/longlong.m4: Update.
3679         * gnulib/import/m4/lstat.m4: Update.
3680         * gnulib/import/m4/malloc.m4: Update.
3681         * gnulib/import/m4/malloca.m4: Update.
3682         * gnulib/import/m4/math_h.m4: Update.
3683         * gnulib/import/m4/mbrtowc.m4: Update.
3684         * gnulib/import/m4/mbsinit.m4: Update.
3685         * gnulib/import/m4/mbsrtowcs.m4: Update.
3686         * gnulib/import/m4/mbstate_t.m4: Update.
3687         * gnulib/import/m4/memchr.m4: Update.
3688         * gnulib/import/m4/memmem.m4: Update.
3689         * gnulib/import/m4/mmap-anon.m4: Update.
3690         * gnulib/import/m4/multiarch.m4: Update.
3691         * gnulib/import/m4/nocrash.m4: Update.
3692         * gnulib/import/m4/off_t.m4: Update.
3693         * gnulib/import/m4/pathmax.m4: Update.
3694         * gnulib/import/m4/readlink.m4: Update.
3695         * gnulib/import/m4/rename.m4: Update.
3696         * gnulib/import/m4/rmdir.m4: Update.
3697         * gnulib/import/m4/ssize_t.m4: Update.
3698         * gnulib/import/m4/stat.m4: Update.
3699         * gnulib/import/m4/stdbool.m4: Update.
3700         * gnulib/import/m4/stddef_h.m4: Update.
3701         * gnulib/import/m4/stdint.m4: Update.
3702         * gnulib/import/m4/stdio_h.m4: Update.
3703         * gnulib/import/m4/stdlib_h.m4: Update.
3704         * gnulib/import/m4/string_h.m4: Update.
3705         * gnulib/import/m4/strstr.m4: Update.
3706         * gnulib/import/m4/strtok_r.m4: Update.
3707         * gnulib/import/m4/sys_socket_h.m4: Update.
3708         * gnulib/import/m4/sys_stat_h.m4: Update.
3709         * gnulib/import/m4/sys_time_h.m4: Update.
3710         * gnulib/import/m4/sys_types_h.m4: Update.
3711         * gnulib/import/m4/time_h.m4: Update.
3712         * gnulib/import/m4/unistd_h.m4: Update.
3713         * gnulib/import/m4/warn-on-use.m4: Update.
3714         * gnulib/import/m4/wchar_h.m4: Update.
3715         * gnulib/import/m4/wchar_t.m4: Update.
3716         * gnulib/import/m4/wctype_h.m4: Update.
3717         * gnulib/import/m4/wint_t.m4: Update.
3718         * gnulib/import/malloc.c: Update.
3719         * gnulib/import/malloca.c: Update.
3720         * gnulib/import/malloca.h: Update.
3721         * gnulib/import/math.in.h: Update.
3722         * gnulib/import/mbrtowc.c: Update.
3723         * gnulib/import/mbsinit.c: Update.
3724         * gnulib/import/mbsrtowcs-impl.h: Update.
3725         * gnulib/import/mbsrtowcs-state.c: Update.
3726         * gnulib/import/mbsrtowcs.c: Update.
3727         * gnulib/import/memchr.c: Update.
3728         * gnulib/import/memmem.c: Update.
3729         * gnulib/import/pathmax.h: Update.
3730         * gnulib/import/readlink.c: Update.
3731         * gnulib/import/ref-add.sin: Update.
3732         * gnulib/import/ref-del.sin: Update.
3733         * gnulib/import/rename.c: Update.
3734         * gnulib/import/rmdir.c: Update.
3735         * gnulib/import/same-inode.h: Update.
3736         * gnulib/import/stat.c: Update.
3737         * gnulib/import/stdbool.in.h: Update.
3738         * gnulib/import/stddef.in.h: Update.
3739         * gnulib/import/stdint.in.h: Update.
3740         * gnulib/import/stdio.c: Update.
3741         * gnulib/import/stdio.in.h: Update.
3742         * gnulib/import/stdlib.in.h: Update.
3743         * gnulib/import/str-two-way.h: Update.
3744         * gnulib/import/streq.h: Update.
3745         * gnulib/import/string.in.h: Update.
3746         * gnulib/import/stripslash.c: Update.
3747         * gnulib/import/strnlen1.c: Update.
3748         * gnulib/import/strnlen1.h: Update.
3749         * gnulib/import/strstr.c: Update.
3750         * gnulib/import/strtok_r.c: Update.
3751         * gnulib/import/sys_stat.in.h: Update.
3752         * gnulib/import/sys_time.in.h: Update.
3753         * gnulib/import/sys_types.in.h: Update.
3754         * gnulib/import/time.in.h: Update.
3755         * gnulib/import/unistd.in.h: Update.
3756         * gnulib/import/verify.h: Update.
3757         * gnulib/import/wchar.in.h: Update.
3758         * gnulib/import/wctype.in.h: Update.
3759         * gnulib/import/gettimeofday.c: New file.
3760         * gnulib/import/m4/absolute-header.m4: New file.
3761         * gnulib/import/m4/gettimeofday.m4: New file.
3762         * gnulib/import/m4/sys_socket_h.m4: New file.
3763         * gnulib/import/m4/sys_time_h.m4: New file.
3764         * gnulib/import/stdio.c: Delete file.
3765         * gnulib/import/sys_time.in.h: New file.
3766
3767 2015-08-24  Pedro Alves  <palves@redhat.com>
3768
3769         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3770         * common/gdb_sys_time.h: New file.
3771         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3772         * gdb_select.h: Likewise.
3773         * gdb_usleep.c: Likewise.
3774         * maint.c: Likewise.
3775         * mi/mi-main.c: Likewise.
3776         * mi/mi-parse.h: Likewise.
3777         * remote-fileio.c: Likewise.
3778         * remote-m32r-sdi.c: Likewise.
3779         * remote.c: Likewise.
3780         * ser-base.c: Likewise.
3781         * ser-pipe.c: Likewise.
3782         * ser-tcp.c: Likewise.
3783         * ser-unix.c: Likewise.
3784         * symfile.c: Likewise.
3785         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3786         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3787         * utils.c: Likewise.
3788
3789 2015-08-24  Pedro Alves  <palves@redhat.com>
3790
3791         * NEWS: Mention removed support for the various ROM monitors.
3792         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3793         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3794         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3795         gdb_target_obs.
3796         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3797         gdb_target_obs.
3798         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3799         dsrec.o from gdb_target_obs.
3800         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3801         from gdb_target_obs.
3802         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3803         gdb_target_obs.
3804         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3805         dink32-rom.o from gdb_target_obs.
3806         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3807         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3808         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3809         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3810
3811 2015-08-21  Pedro Alves  <palves@redhat.com>
3812
3813         * frame.c (null_frame_id): Explicitly zero-initialize.
3814
3815 2015-08-21  Tom Tromey  <tromey@redhat.com>
3816
3817         * dwarf2read.c (struct dwarf2_section_info): Rename field
3818         'asection' to 'section'.
3819         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3820         (dwarf2_locate_sections, dwarf2_locate_sections)
3821         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3822         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3823         (dwarf2_locate_v2_dwp_sections): Adjust.
3824
3825 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3826
3827         * top.h (gdb_in_secondary_prompt_p): Declare.
3828         * top.c (gdb_secondary_prompt_depth): Define.
3829         (gdb_in_secondary_prompt_p): Define.
3830         (gdb_readline_wrapper_cleanup): Decrement
3831         gdb_secondary_prompt_depth.
3832         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3833         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3834         are in a secondary prompt.
3835
3836 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3837
3838         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3839         emit the newline.
3840
3841 2015-08-21  Gary Benson  <gbenson@redhat.com>
3842
3843         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3844
3845 2015-08-21  Gary Benson  <gbenson@redhat.com>
3846
3847         * target.h (struct target_ops) <to_fileio_open>: New argument
3848         warn_if_slow.  Update comment.  All implementations updated.
3849         (target_fileio_open_warn_if_slow): New declaration.
3850         * target.c (target_fileio_open): Renamed as...
3851         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3852         Pass warn_if_slow to implementation.  Update debug printing.
3853         (target_fileio_open): New function.
3854         (target_fileio_open_warn_if_slow): Likewise.
3855         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3856         target_fileio_open_warn_if_slow.
3857
3858 2015-08-21  Gary Benson  <gbenson@redhat.com>
3859
3860         * nat/linux-namespaces.c (linux_mntns_access_fs):
3861         Do not overwrite old_chain.
3862
3863 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3864
3865         * arch/xtensa.h: New file.
3866         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3867         (ps_get_thread_area): New function.
3868         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3869         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3870         * xtensa-tdep.c (osabi.h): New #include.
3871         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3872         xtensa-specific hooks.
3873         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3874         member and move the structure to arch/xtensa.h.
3875
3876 2015-08-21  Pedro Alves  <palves@redhat.com>
3877
3878         * remote.c (struct readahead_cache): New.
3879         (struct remote_state) <readahead_cache>: New field.
3880         (remote_open_1): Invalidate the cache.
3881         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3882         functions.
3883         (remote_hostio_pwrite): Invalidate the readahead cache.
3884         (remote_hostio_pread): Rename to ...
3885         (remote_hostio_pread_vFile): ... this.
3886         (remote_hostio_pread_from_cache): New function.
3887         (remote_hostio_pread): Reimplement.
3888         (remote_hostio_close): Invalidate the readahead cache.
3889
3890 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3891
3892         PR build/18843
3893         * procfs.c: Include "filestuff.h".
3894
3895 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3896
3897         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3898         curch.
3899         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3900         cur_line or curch, instead call wmove().
3901         (init_win_info) [CMD_WIN]: Likewise.
3902         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3903         instead call getcury().
3904         (tui_redisplay_readline): Don't set cur_line or curch.
3905         (tui_mld_erase_entire_line): Don't read cur_line, instead call
3906         getcury().
3907         (tui_cont_sig): Remove call to wmove.
3908         (tui_getc): Don't read cur_line or curch, instead call getcury()
3909         or getyx().  Don't set curch.
3910         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3911         set cur_line or curch.  Always move cursor to (0,0).
3912
3913 2015-08-20  Pedro Alves  <palves@redhat.com>
3914
3915         * infrun.c (print_target_wait_results): Make extern.
3916         * infrun.h (print_target_wait_results): Declare.
3917         * remote.c (set_stop_requested_callback): Delete.
3918         (process_initial_stop_replies): New function.
3919         (remote_start_remote): Use it.
3920         (stop_reply_queue_length): New function.
3921
3922 2015-08-20  Pedro Alves  <palves@redhat.com>
3923
3924         * dwarf2read.c (process_full_comp_unit): To tell whether
3925         start_subfile managed to deduce a language, test for
3926         language_unknown instead of language_c.
3927
3928 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
3929
3930         * ada-lex.l: Reset the start condition to INITIAL in the rule that
3931         matches attributes.
3932
3933 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
3934
3935         * dwarf2read.c (dwarf2_string_attr): New function.
3936         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3937         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3938         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3939         (anonymous_struct_prefix, prepare_one_comp_unit): Use
3940         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3941
3942 2015-08-18  Doug Evans  <dje@google.com>
3943             Adrian Sendroiu <adrian.sendroiu@freescale.com>
3944
3945         PR mi/18833
3946         * cli/cli-logging.c (pop_output_files): Don't restore redirection
3947         if MI-like.
3948         * mi/mi-out.c: #include "vec.h".
3949         (ui_filep): New type.
3950         (DEV_VEC_P (ui_filep)): New type.
3951         (struct ui_out_data) <buffer, original_buffer>: Delete.
3952         (struct ui_out_data) <streams>: New member.
3953         (mi_ui_out_impl): Add data_destroy field.
3954         (mi_field_string, mi_field_fmt): Update.
3955         (mi_flush, mi_redirect, field_separator): Update.
3956         (mi_open, mi_close): Update.
3957         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3958         (mi_out_data_ctor, mi_out_data_dtor): New functions.
3959         (mi_out_new): Call mi_out_data_ctor.
3960
3961 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
3962
3963         * remote.c (strprefix): New.
3964         (remote_parse_stop_reply): Use strprefix instead of strncmp
3965         to ensure exact match of keyword.
3966
3967 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3968
3969         * gdb_bfd.c (debug_bfd_cache): New variable.
3970         (show_bfd_cache_debug): New function.
3971         (gdb_bfd_open): Add debug logging.
3972         (gdb_bfd_ref): Likewise.
3973         (gdb_bfd_unref): Likewise.
3974         (_initialize_gdb_bfd): Add new set/show command.
3975         * NEWS: Mention new command.
3976
3977 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3978
3979         * gdb_bfd.c (bfd_sharing): New variable.
3980         (show_bfd_sharing): New function.
3981         (gdb_bfd_open): Check bfd_sharing variable.
3982         (_initialize_gdb_bfd): Add new set/show command.
3983         * NEWS: Mention new command.
3984
3985 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3986
3987         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3988         field.
3989         (struct gdb_bfd_cache_search): Likewise.
3990         (eq_bfd): Compare the size, inode, and device id fields.
3991         (gdb_bfd_open): Initialise the size, inode, and device id fields.
3992         (gdb_bfd_ref): Likewise.
3993         (gdb_bfd_unref): Likewise.
3994
3995 2015-08-18  Pedro Alves  <palves@redhat.com>
3996
3997         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3998         target implements to_always_non_stop_p, call it.
3999         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4000         (x86_linux_create_target): Install it as to_always_non_stop_p
4001         method.
4002
4003 2015-08-17  Doug Evans  <dje@google.com>
4004
4005         * ui-out.c (default_ui_out_impl): Add comment.
4006
4007 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4008
4009         * d-exp.y (type_aggregate_p): New function.
4010         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4011         (classify_inner_name): Likewise.
4012         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4013
4014 2015-08-15  Doug Evans  <xdje42@gmail.com>
4015
4016         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4017         updated.
4018         (add_psymbol_to_list): Ditto.
4019
4020 2015-08-15  Doug Evans  <xdje42@gmail.com>
4021
4022         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4023         updated.  Call end_psymtab_common.
4024         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4025         end_psymtab_common.
4026         (build_type_psymtabs_reader): Ditto.
4027         * psympriv.h (sort_pst_symbols): Delete.
4028         (end_psymtab_common): Declare.
4029         * psymtab.c (sort_pst_symbols): Make static.
4030         (end_psymtab_common): New function.
4031         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4032
4033 2015-08-15  Doug Evans  <xdje42@gmail.com>
4034
4035         * defs.h (LANGUAGE_BITS): Define.
4036         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4037         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4038         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4039         (minimal_symbol_type): Add nr_minsym_types.
4040         (MINSYM_TYPE_BITS): Define.
4041         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4042         (domain_enum_tag): Add NR_DOMAINS.
4043         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4044         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4045
4046 2015-08-15  Doug Evans  <xdje42@gmail.com>
4047
4048         * objfiles.h: Whitespace cleanup.
4049         * psympriv.h: Whitespace cleanup.
4050         * psymtab.c: Whitespace/coding convention cleanup.
4051
4052 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4053
4054         * inferior.c (detach_inferior_command): Don't call
4055         any_thread_of_process when pid is 0.
4056         (kill_inferior_command): Likewise.
4057
4058 2015-08-14  Doug Evans  <xdje42@gmail.com>
4059
4060         PR gdb/11833
4061         * NEWS: Document new /s modifier for the disassemble command.
4062         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4063         (_initialize_cli_cmds): Update online docs of disassemble command.
4064         * disasm.c: #include "source.h".
4065         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4066         All uses updated.
4067         (dis_line_entry): New struct.
4068         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4069         (allocate_dis_line_table): New functions.
4070         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4071         (dump_insns): New arg end_pc.  All callers updated.
4072         (do_mixed_source_and_assembly_deprecated): Renamed from
4073         do_mixed_source_and_assembly.  All callers updated.
4074         (do_mixed_source_and_assembly): New function.
4075         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4076         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4077         DISASSEMBLY_SOURCE.  All uses updated.
4078         (DISASSEMBLY_SOURCE): New macro.
4079         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4080
4081 2015-08-14  Keith Seitz  <keiths@redhat.com>
4082
4083         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4084         `typename' to `type_name' to avoid C++ reserved word.
4085
4086 2015-08-14  Keith Seitz  <keiths@redhat.com>
4087
4088         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4089         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4090         silence ARI errors.
4091
4092 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4093
4094         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4095         xstrprintf instead of malloc and sprintf.
4096         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4097         (lex_one_token): Likewise.
4098
4099 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4100
4101         * solib-svr4.c (read_program_header): Add base_addr argument to
4102         report the runtime address of the segment.
4103         (find_program_interpreter): Update read_program_header call to pass
4104         a NULL pointer for the new argument.
4105         (scan_dyntag): Add ptr_addr argument to report the runtime address
4106         of the tag payload.
4107         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4108         read_program_header to get the base address of the dynamic segment.
4109         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4110         read_program_header.
4111         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4112
4113 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4114
4115         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4116
4117 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4118
4119         * d-exp.y (%union): Add voidval.
4120         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4121         name in the lexing stage.
4122         (PostfixExpression): Move symbol completion handling in grammar here
4123         from PrimaryExpression.
4124         (PrimaryExpression): Move routines to handle resolving identifier
4125         tokens in the grammar here from push_expression_name.
4126         (IdentifierExp): Remove the handling of alternating '.' and identifier
4127         tokens.
4128         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4129         (BasicType): Remove C-style typename rules.
4130         (d_type_from_name, d_module_from_name, push_variable)
4131         (push_fieldnames, push_type_name, push_module_name)
4132         (push_expression_name): Remove.
4133         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4134         (token_and_value): New type.
4135         (token_fifo, popping, name_obstack): New globals.
4136         (classify_name): New function.
4137         (classify_inner_name): Likewise.
4138         (yylex): Likewise.
4139         (d_parse): Initialize token_fifo, popping and name_obstack.
4140
4141 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4142
4143         * Makefile.in (SFILES): Add d-namespace.c.
4144         (COMMON_OBS): Add d-namespace.o.
4145         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4146         la_lookup_symbol_nonlocal callback function pointer.
4147         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4148         (d_lookup_nested_symbol): New declaration.
4149         * d-namespace.c: New file.
4150
4151 2015-08-13  Pedro Alves  <palves@redhat.com>
4152
4153         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4154         cleanup after the decref cleanup, not before.
4155
4156 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4157
4158         * ada-lang.c: Include namespace.h
4159         (aux_add_nonlocal_symbols): Fix a function name in comment.
4160         (ada_add_block_renamings): New.
4161         (add_nonlocal_symbols): Add global renamings handling.
4162         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4163         to...
4164         (ada_add_all_symbols): ... this new function.
4165         (ada_add_block_symbols): Try to match the input name against the
4166         "using directives list", perform a recursive symbol lookup on
4167         the matched declarations.
4168         * block.h (struct block): Move the_namespace to top-level as
4169         namespace_info. Remove the language_specific field.
4170         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4171         * buildsym.h (using_directives): Rename into...
4172         (local_using_directives): ... this.
4173         (global_using_directives): New.
4174         (struct context_stack): Rename the using_directives field into
4175         local_using_directives.
4176         * buildsym.c (finish_block_internal): Deal with the proper
4177         using directives repository (local or global).
4178         (prepare_for_building): Reset local_using_directives. Assert
4179         that there is no pending global using directive.
4180         (reset_symtab_globals): Reset global_using_directives and
4181         local_using_directives.
4182         (end_symtab_get_static_block): Don't ignore symtabs that have
4183         only using directives.
4184         (push_context): Update references to local_using_directives.
4185         (buildsym_init): Do not reset using_directives.
4186         * cp-support.c: Include namespace.h.
4187         * cp-support.h (struct using_direct): Move to namespace.h.
4188         (cp_add_using_directives): Move to namespace.h.
4189         * cp-namespace.c: Include namespace.h
4190         (cp_add_using_directive): Move to namespace.c, rename it to
4191         add_using_directive, add a "using_directives" argument and use
4192         it as the pending using directives repository.  All callers
4193         updated.
4194         * dwarf2read.c (using_directives): New.
4195         (read_import_statement): Call using_directives.
4196         (read_func_scope): Update references to local_using_directives.
4197         (read_lexical_block_scope): Likewise.
4198         (read_namespace): Update the heading comment, call
4199         using_directives.
4200         * namespace.h: New file.
4201         * namespace.c: New file.
4202         * Makefile.in (SFILES): Add namespace.c.
4203         (COMMON_OBS): Add namespace.o
4204
4205 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4206
4207         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4208         compute RETADDR.
4209
4210 2015-08-12  Keith Seitz  <keiths@redhat.com>
4211
4212         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4213         reserved C++ keyword "explicit" to "explicit_loc".
4214         * breakpoint.c (create_overlay_event_breakpoint)
4215         (create_longjmp_master_breakpoint)
4216         (create_std_terminate_master_breakpoint)
4217         (create_exception_master_breakpoint, update_static_tracepoint):
4218         Rename reserved C++ keyword "explicit" to "explicit_loc".
4219         * completer.c (collect_explicit_location_matches)
4220         (explicit_location_completer): Rename reserved C++ keyword
4221         "explicit" to "explicit_loc".
4222         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4223         (canonicalize_linespec, create_sals_line_offset)
4224         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4225         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4226         "explicit" to "explicit_loc".
4227         * location.c (struct event_location) <explicit>: Rename to
4228         "explicit_loc".
4229         (initialize_explicit_location, new_explicit_location)
4230         (explicit_location_to_string_internal, explicit_location_to_linespec):
4231         Rename reserved C++ keyword "explicit" to "explicit_loc".
4232         * location.h (explicit_location_to_string)
4233         (explicit_location_to_linespec, initialize_explicit_location)
4234         (new_explicit_location): Rename reserved C++ keyword "explicit"
4235         to "explicit_loc".
4236         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4237         keyword "explicit" to "explicit_loc".
4238
4239 2015-08-12  Keith Seitz  <keiths@redhat.com>
4240
4241         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4242         and only call decode_line_1 when it is non-NULL.
4243
4244 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4245
4246         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4247         location address is not meaningful.
4248         (breakpoint_address_is_meaningful): Update comment.
4249
4250 2015-08-11  Keith Seitz  <keiths@redhat.com>
4251
4252         * NEWS: Mention explicit locations.
4253         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4254         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4255         (_initialize_breakpoint): Update documentation for
4256         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4257
4258 2015-08-11  Keith Seitz  <keiths@redhat.com>
4259
4260         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4261         explicit locations, options "--source", "--function",
4262         "--label", and "--line".
4263
4264 2015-08-11  Keith Seitz  <keiths@redhat.com>
4265
4266         * completer.c: Include location.h.
4267         (enum match_type): New enum.
4268         (location_completer): Rename to ...
4269         (linespec_completer): ... this.
4270         (collect_explicit_location_matches, backup_text_ptr)
4271         (explicit_location_completer): New functions.
4272         (location_completer): "New" function; handle linespec
4273         and explicit location completions.
4274         (complete_line_internal): Remove all location completer-specific
4275         handling.
4276         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4277         (find_toplevel_char): Export.
4278         (linespec_parse_line_offset): Export.
4279         Issue error if STRING is not numerical.
4280         (gdb_get_linespec_parser_quote_characters): New function.
4281         * linespec.h (linespec_parse_line_offset): Declare.
4282         (get_gdb_linespec_parser_quote_characters): Declare.
4283         (is_ada_operator): Declare.
4284         (find_toplevel_char): Declare.
4285         (linespec_lexer_lex_keyword): Declare.
4286         * location.c (explicit_to_event_location): New function.
4287         (explicit_location_lex_one): New function.
4288         (string_to_explicit_location): New function.
4289         (string_to_event_location): Handle explicit locations.
4290         * location.h (explicit_to_event_location): Declare.
4291         (string_to_explicit_location): Declare.
4292
4293 2015-08-11  Keith Seitz  <keiths@redhat.com>
4294
4295         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4296         linespec into explicit location.
4297         * breakpoint.c (create_overlay_breakpoint)
4298         (create_longjmp_master_breakpoint)
4299         (create_std_terminate_master_breakpoint)
4300         (create_exception_master_breakpoint): Convert linespec into explicit
4301         location.
4302         (update_static_tracepoint): Convert linespec into explicit location.
4303         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4304         location.h.
4305         (struct linespec) <expression, expr_pc, source_filename>
4306         <function_name, label_name, line_offset>: Replace with ...
4307         <explicit>: ... this.
4308         <is_linespec>: New member.
4309         (PARSER_EXPLICIT): New accessor macro.
4310         (undefined_label_error): New function.
4311         (source_file_not_found_error): New function.
4312         (linespec_parse_basic): The parser result is now an explicit location.
4313         Use PARSER_EXPLICIT to access it.
4314         Use undefined_label_error.
4315         (canonicalize_linespec): Convert canonical linespec into explicit
4316         location.
4317         Move string representation of location to explicit_location_to_linespec
4318         and use it and explicit_location_to_string to save string
4319         representations of the canonical location.
4320         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4321         explicit location.  Update all references.
4322         (convert_explicit_location_to_sals): New function.
4323         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4324         result's explicit location.
4325         (linespec_state_constructor): Initialize is_linespec.
4326         Use PARSER_EXPLICIT.
4327         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4328         result.
4329         (event_location_to_sals): For linespec locations, set is_linespec.
4330         Handle explicit locations.
4331         (decode_objc): 'ls' contains an explicit location now. Update all
4332         references.
4333         (symtabs_from_filename): Use source_file_not_found_error.
4334         * location.c (struct event_location.u) <explicit>: New member.
4335         (initialize_explicit_location): New function.
4336         (initialize_event_location): Initialize explicit locations.
4337         (new_explicit_location, get_explicit_location)
4338         (get_explicit_location_const): New functions.
4339         (explicit_to_string_internal): New function; most of contents moved
4340         from canonicalize_linespec.
4341         (explicit_location_to_string): New function.
4342         (explicit_location_to_linespec): New function.
4343         (copy_event_location, delete_event_location)
4344         (event_location_to_string_const, event_location_empty_p): Handle
4345         explicit locations.
4346         * location.h (enum offset_relative_sign, struct line_offset): Move
4347         here from linespec.h.
4348         (enum event_location_type): Add EXPLICIT_LOCATION.
4349         (struct explicit_location): New structure.
4350         (explicit_location_to_string): Declare.
4351         (explicit_location_to_linespec): Declare.
4352         (new_explicit_location, get_explicit_locationp
4353         (get_explicit_location_const, initialize_explicit_location): Declare.
4354
4355 2015-08-11  Keith Seitz  <keiths@redhat.com>
4356
4357         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4358         linespec for stap probe to probe location.
4359         * breakpoint.c (create_longjmp_master_breakpoint)
4360         (create_exception_master_breakpoint): Likewise.
4361         (break_command_1): Remove local variable `arg_cp'.
4362         Check location type to set appropriate breakpoint ops methods.
4363         (trace_command): Likewise.
4364         * linespec.c (event_location_to_sals): Assert on probe locations.
4365         * location.c (EL_PROBE): Add macro definition.
4366         (new_probe_location, get_probe_location): New functions.
4367         (copy_event_location, delete_event_location, event_location_to_string)
4368         (string_to_event_location, event_location_empty_p): Handle probe
4369         locations.
4370         * location.h (enum event_location_type): Add PROBE_LOCATION.
4371         (new_probe_location, get_probe_location): Declare.
4372         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4373         Convert linespec into probe location.
4374
4375 2015-08-11  Keith Seitz  <keiths@redhat.com>
4376
4377         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4378         Convert linespec to address location.
4379         * linespec.c (canonicalize_linespec): Do not handle address
4380         locations here.
4381         (convert_address_location_to_sals): New function; contents moved
4382         from ...
4383         (convert_linespc_to_sals): ... here.
4384         (parse_linespec): Remove address locations from linespec grammar.
4385         Remove handling of address locations.
4386         (linespec_lex_to_end): Remove handling of address linespecs.
4387         (event_location_to_sals): Handle ADDRESS_LOCATION.
4388         (linespec_expression_to_pc): Export.
4389         * linespec.h (linespec_expression_to_pc): Add declaration.
4390         * location.c (struct event_location.u) <address>: New member.
4391         (new_address_location, get_address_location): New functions.
4392         (copy_event_location, delete_event_location, event_location_to_string)
4393         (string_to_event_location, event_location_empty_p): Handle address
4394         locations.
4395         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4396         (new_address_location, get_address_location): Declare.
4397         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4398         to address location.
4399         * spu-tdep.c (spu_catch_start): Likewise.
4400
4401 2015-08-11  Keith Seitz  <keiths@redhat.com>
4402
4403         * ax-gdb.c: Include location.h.
4404         (agent_command_1) Use linespec location instead of address
4405         string.
4406         * break-catch-throw.c: Include location.h.
4407         (re_set_exception_catchpoint): Use linespec locations instead
4408         of address strings.
4409         * breakpoint.c: Include location.h.
4410         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4411         (create_std_terminate_master_breakpoint)
4412         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4413         Use linespec location instead of address string.
4414         (print_breakpoint_location):  Use locations and
4415         event_location_to_string.
4416         Print extra_string for pending locations for non-MI streams.
4417         (print_one_breakpoint_location): Use locations and
4418         event_location_to_string.
4419         (init_raw_breakpoint_without_location): Initialize b->location.
4420         (create_thread_event_breakpoint): Use linespec location instead of
4421         address string.
4422         (init_breakpoint_sal): Likewise.
4423         Only save extra_string if it is non-NULL and not the empty string.
4424         Use event_location_to_string instead of `addr_string'.
4425         Constify `p' and `endp'.
4426         Use skip_spaces_const/skip_space_const instead of non-const versions.
4427         Copy the location into the breakpoint.
4428         If LOCATION is NULL, save the breakpoint address as a linespec location
4429         instead of an address string.
4430         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4431         event_location. All uses updated.
4432         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4433         (parse_breakpoint_sals): Use locations instead of address strings.
4434         Remove check for empty linespec with conditional.
4435         Refactor.
4436         (decode_static_tracepoint_spec): Make argument const and update
4437         function.
4438         (create_breakpoint): Change `arg' to a struct event_location and
4439         rename.
4440         Remove `copy_arg' and `addr_start'.
4441         If EXTRA_STRING is empty, set it to NULL.
4442         Don't populate `canonical' for pending breakpoints.
4443         Pass `extra_string' to find_condition_and_thread.
4444         Clear `extra_string' if `rest' was NULL.
4445         Do not error with "garbage after location" if setting a dprintf
4446         breakpoint.
4447         Copy the location into the breakpoint instead of an address string.
4448         (break_command_1): Use string_to_event_location and pass this to
4449         create_breakpoint instead of an address string.
4450         Check against `arg_cp' for a probe linespec.
4451         (dprintf_command): Use string_to_event_location and pass this to
4452         create_breakpoint instead of an address string.
4453         Throw an exception if no format string was specified.
4454         (print_recreate_ranged_breakpoint): Use event_location_to_string
4455         instead of address strings.
4456         (break_range_command, until_break_command)
4457         (init_ada_exception_breakpoint): Use locations instead
4458         of address strings.
4459         (say_where): Print out extra_string for pending locations.
4460         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4461         the breakpoint.
4462         (base_breakpoint_create_sals_from_location): Use struct event_location
4463         instead of address string.
4464         Remove `addr_start' and `copy_arg' parameters.
4465         (base_breakpoint_decode_location): Use struct event_location instead of
4466         address string.
4467         (bkpt_re_set): Use locations instead of address strings.
4468         Use event_location_empty_p to check for unset location.
4469         (bkpt_print_recreate): Use event_location_to_string instead of
4470         an address string.
4471         Print out extra_string for pending locations.
4472         (bkpt_create_sals_from_location, bkpt_decode_location)
4473         (bkpt_probe_create_sals_from_location): Use struct event_location
4474         instead of address string.
4475         (bkpt_probe_decode_location): Use struct event_location instead of
4476         address string.
4477         (tracepoint_print_recreate): Use event_location_to_string to
4478         recreate the tracepoint.
4479         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4480         (tracepoint_probe_create_sals_from_location)
4481         (tracepoint_probe_decode_location): Use struct event_location
4482         instead of address string.
4483         (dprintf_print_recreate): Use event_location_to_string to recreate
4484         the dprintf.
4485         (dprintf_re_set): Remove check for valid/missing format string.
4486         (strace_marker_create_sals_from_location)
4487         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4488         (update_static_tracepoint): Use struct event_location instead of
4489         address string.
4490         (location_to_sals): Likewise.
4491         Pass `extra_string' to find_condition_and_thread.
4492         For newly resolved pending breakpoint locations, clear the location's
4493         string representation.
4494         Assert that the breakpoint's condition string is NULL when
4495         condition_not_parsed.
4496         (breakpoint_re_set_default, create_sals_from_location_default)
4497         (decode_location_default, trace_command, ftrace_command)
4498         (strace_command, create_tracepoint_from_upload): Use locations
4499         instead of address strings.
4500         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4501         Use struct event_location instead of address string.
4502         Update all uses.
4503         <decode_location>: Likewise.
4504         (struct breakpoint) <addr_string>: Change to struct event_location
4505         and rename `location'.
4506         <addr_string_range_end>: Change to struct event_location and rename
4507         `location_range_end'.
4508         (create_breakpoint): Use struct event_location instead of address
4509         string.
4510         * cli/cli-cmds.c: Include location.h.
4511         (edit_command, list_command): Use locations instead of address strings.
4512         * elfread.c: Include location.h.
4513         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4514         * guile/scm-breakpoint.c: Include location.h.
4515         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4516         (gdbscm_register_breakpoint): Use locations instead of address
4517         strings.
4518         * linespec.c: Include location.h.
4519         (struct ls_parser) <stream>: Change to const char *.
4520         (PARSER_STREAM): Update.
4521         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4522         keywords must be followed by whitespace.
4523         (canonicalize_linespec): Save a linespec location into `canonical'.
4524         Save a canonical linespec into `canonical'.
4525         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4526         All uses updated.
4527         Update function description.
4528         (linespec_parser_new): Initialize `parser'.
4529         Update initialization of  parsing stream.
4530         (event_location_to_sals): New function.
4531         (decode_line_full): Change `argptr' to a struct event_location and
4532         rename it `location'.
4533         Use locations instead of address strings.
4534         Call event_location_to_sals instead of parse_linespec.
4535         (decode_line_1): Likewise.
4536         (decode_line_with_current_source, decode_line_with_last_displayed)
4537         Use locations instead of address strings.
4538         (decode_objc): Likewise.
4539         Change `argptr' to const char * and rename `arg'.
4540         (destroy_linespec_result): Delete the linespec result's location
4541         instead of freeing the address string.
4542         * linespec.h (struct linespec_result) <addr_string>: Change to
4543         struct event_location and rename to ...
4544         <location>: ... this.
4545         (decode_line_1, decode_line_full): Change `argptr' to struct
4546         event_location.  All callers updated.
4547         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4548         (mi_cmd_break_insert_1): Use locations instead of address strings.
4549         Throw an error if there was "garbage" at the end of the specified
4550         linespec.
4551         * probe.c: Include location.h.
4552         (parse_probes): Change `argptr' to struct event_location.
4553         Use event locations instead of address strings.
4554         * probe.h (parse_probes): Change `argptr' to struct event_location.
4555         * python/py-breakpoint.c: Include location.h.
4556         (bppy_get_location): Constify local variable `str'.
4557         Use event_location_to_string.
4558         (bppy_init): Use locations instead of address strings.
4559         * python/py-finishbreakpoint.c: Include location.h.
4560         (bpfinishpy_init): Remove local variable `addr_str'.
4561         Use locations instead of address strings.
4562         * python/python.c: Include location.h.
4563         (gdbpy_decode_line): Use locations instead of address strings.
4564         * remote.c: Include location.h.
4565         (remote_download_tracepoint): Use locations instead of address
4566         strings.
4567         * spu-tdep.c: Include location.h.
4568         (spu_catch_start): Remove local variable `buf'.
4569         Use locations instead of address strings.
4570         * tracepoint.c: Include location.h.
4571         (scope_info): Use locations instead of address strings.
4572         (encode_source_string): Constify parameter `src'.
4573         * tracepoint.h (encode_source_string): Likewise.
4574
4575 2015-08-11  Keith Seitz  <keiths@redhat.com>
4576
4577         * Makefile.in (SFILES): Add location.c.
4578         (HFILES_NO_SRCDIR): Add location.h.
4579         (COMMON_OBS): Add location.o.
4580         * linespec.c (linespec_lex_to_end): New function.
4581         * linespec.h (linespec_lex_to_end): Declare.
4582         * location.c: New file.
4583         * location.h: New file.
4584
4585 2015-08-11  Keith Seitz  <keiths@redhat.com>
4586
4587         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4588         Renamed to create_sals_from_location.
4589         <decode_linespec>: Renamed to decode_location.
4590         Update all callers.
4591         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4592         (create_sals_from_location_default): ... this.
4593         (addr_string_to_sals): Renamed to ...
4594         (location_to_sals): ... this.
4595         (decode_linespec_default): Renamed to ...
4596         (decode_location_default): ... this.
4597         (base_breakpoint_create_sals_from_address): Renamed to ...
4598         (base_breakpoint_create_sals_from_location): ... this.
4599         (bkpt_create_sals_from_address): Renamed to ...
4600         (bkpt_create_sals_from_location): ... this.
4601         (bkpt_decode_linespec): Renamed to ...
4602         (bkpt_decode_location): ... this.
4603         (bkpt_probe_create_sals_from_address): Renamed to ...
4604         (bkpt_probe_create_sals_from_location): ... this.
4605         (tracepoint_create_sals_from_address): Renamed to ...
4606         (tracepoint_create_sals_from_location): ... this.
4607         (tracepoint_decode_linespec): Renamed to ...
4608         (tracepoint_decode_location): ... this.
4609         (tracepoint_probe_create_sals_from_address): Renamed to ...
4610         (tracepoint_probe_create_sals_from_location): ... this.
4611         (tracepoint_probe_decode_linespec): Renamed to ...
4612         (tracepoint_probe_decode_location): ... this.
4613         (strace_marker_create_sals_from_address): Renamed to ...
4614         (strace_marker_create_sals_from_location): ... this.
4615         (decode_linespec_default): Renamed to ...
4616         (decode_location_default): ... this.
4617
4618 2015-08-10  Doug Evans  <dje@google.com>
4619             Keith Seitz  <keiths@redhat.com>
4620
4621         PR gdb/17960
4622         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4623         make_file_symbol_completion_list and made static.
4624         (make_file_symbol_completion_list): New function.
4625
4626 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4627
4628         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4629         trailing new-line at end of warning message.
4630         (proceed): Add i18n marker to error messages.
4631
4632 2015-08-07  Pedro Alves  <palves@redhat.com>
4633
4634         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4635
4636 2015-08-07  Pedro Alves  <palves@redhat.com>
4637
4638         * s390-linux-tdep.c (is_non_branch_ril)
4639         (s390_displaced_step_copy_insn): New functions.
4640         (s390_displaced_step_fixup): Update comment.
4641         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4642         gdbarch_displaced_step_copy_insn hook.
4643
4644 2015-08-07  Pedro Alves  <palves@redhat.com>
4645
4646         * infrun.c (displaced_step_prepare_throw): Return -1 if
4647         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4648         comment.
4649         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4650         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4651         in file.
4652         (ppc_displaced_step_copy_insn): New function.
4653         (ppc_displaced_step_fixup): Update comment.
4654         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4655         gdbarch_displaced_step_copy_insn hook.
4656         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4657         NULL return.
4658         * gdbarch.h: Regenerate.
4659
4660 2015-08-07  Pedro Alves  <palves@redhat.com>
4661
4662         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4663         field.
4664         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4665         Return false if dispaced stepping failed before.
4666         (resume): Pass the current inferior to
4667         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4668         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4669         displaced_stepping_failed flag, and fall back to an in-line
4670         step-over.
4671
4672 2015-08-07  Pedro Alves  <palves@redhat.com>
4673
4674         * darwin-nat.c (darwin_stop): Rename to ...
4675         (darwin_interrupt): ... this.
4676         (_initialize_darwin_inferior): Adjust.
4677         * gnu-nat.c (gnu_stop): Delete.
4678         (gnu_target): Don't install gnu_stop.
4679         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4680         (inf_ptrace_interrupt): ... this.
4681         (inf_ptrace_target): Adjust.
4682         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4683         target_stop.
4684         * linux-nat (linux_nat_stop): Rename to ...
4685         (linux_nat_interrupt): ... this.
4686         (linux_nat_stop): Reimplement.
4687         (linux_nat_add_target): Install linux_nat_interrupt.
4688         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4689         (nto_handle_sigint_twice): ... this.
4690         (nto_interrupt): Rename to ...
4691         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4692         target_stop.
4693         (procfs_wait): Adjust.
4694         (procfs_stop): Rename to ...
4695         (procfs_interrupt): ... this.
4696         (init_procfs_targets): Adjust.
4697         * procfs.c (procfs_stop): Rename to ...
4698         (procfs_interrupt): ... this.
4699         (procfs_target): Adjust.
4700         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4701         (m32r_interrupt): ... this.
4702         (init_m32r_ops): Adjust.
4703         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4704         (gdbsim_interrupt_inferior): ... this.
4705         (gdbsim_stop): Rename to ...
4706         (gdbsim_interrupt): ... this.
4707         (gdbsim_cntrl_c): Adjust.
4708         (init_gdbsim_ops): Adjust.
4709         * remote.c (sync_remote_interrupt): Adjust comments.
4710         (remote_stop_as): Rename to ...
4711         (remote_interrupt_as): ... this.
4712         (remote_stop): Adjust comment.
4713         (remote_interrupt): New function.
4714         (init_remote_ops): Install remote_interrupt.
4715         * target.c (target_interrupt): New function.
4716         * target.h (struct target_ops) <to_interrupt>: New field.
4717         (target_interrupt): New declaration.
4718         * windows-nat.c (windows_stop): Rename to ...
4719         (windows_interrupt): ... this.
4720         * target-delegates.c: Regenerate.
4721
4722 2015-08-07  Pedro Alves  <palves@redhat.com>
4723
4724         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4725         threads" as alternative to "switching back to stepped thread".
4726
4727 2015-08-07  Pedro Alves  <palves@redhat.com>
4728
4729         * NEWS: Mention "maint set/show target-non-stop".
4730         * breakpoint.c (update_global_location_list): Check
4731         target_is_non_stop_p instead of non_stop.
4732         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4733         * infrun.c (show_can_use_displaced_stepping)
4734         (can_use_displaced_stepping_p, start_step_over_inferior):
4735         Likewise.
4736         (internal_resume_ptid): New function.
4737         (resume): Use it.
4738         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4739         all-stop mode but the target is always in non-stop mode, start all
4740         the other threads that are implicitly resumed too.
4741         (for_each_just_stopped_thread, fetch_inferior_event)
4742         (adjust_pc_after_break, stop_all_threads): Check
4743         target_is_non_stop_p instead of non_stop.
4744         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4745         with the target always in non-stop mode.
4746         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4747         instead of non_stop.
4748         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4749         instead of non_stop.
4750         (keep_going_stepped_thread): Use internal_resume_ptid.
4751         (stop_waiting): If in all-stop mode, and the target is in non-stop
4752         mode, stop all threads.
4753         (keep_going_pass): Likewise, when starting a new in-line step-over
4754         sequence.
4755         * linux-nat.c (get_pending_status, select_event_lwp)
4756         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4757         target_is_non_stop_p instead of non_stop.
4758         (linux_nat_always_non_stop_p): New function.
4759         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4760         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4761         * target-delegates.c: Regenerate.
4762         * target.c (target_is_non_stop_p): New function.
4763         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4764         (maint_set_target_non_stop_command)
4765         (maint_show_target_non_stop_command): New functions.
4766         (_initilize_target): Install "maint set/show target-non-stop"
4767         commands.
4768         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4769         (target_non_stop_enabled): New declaration.
4770         (target_is_non_stop_p): New declaration.
4771
4772 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4773
4774         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4775         has a pending status, return true.
4776         * gdbthread.h: Include target/waitstatus.h.
4777         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4778         stop_pc>: New fields.
4779         (struct thread_info) <resumed>: New field.
4780         (set_resumed): Declare.
4781         * infrun.c: Include "event-loop.h".
4782         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4783         (infrun_async): New function.
4784         (clear_step_over_info): Add debug output.
4785         (displaced_step_in_progress_any_inferior): New function.
4786         (displaced_step_fixup): New returns int.
4787         (start_step_over): Handle in-line step-overs too.  Assert the
4788         thread is marked resumed.
4789         (resume_cleanups): Clear the thread's resumed flag.
4790         (resume): Set the thread's resumed flag.  Return early if the
4791         thread has a pending status.  Allow stepping a breakpoint with no
4792         signal.
4793         (proceed): Adjust to check 'resumed' instead of 'executing'.
4794         (clear_proceed_status_thread): If the thread has a pending status,
4795         and that status is a finished step, discard the pending status.
4796         (clear_proceed_status): Don't clear step_over_info here.
4797         (random_pending_event_thread, do_target_wait): New functions.
4798         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4799         do_target_wait.
4800         (wait_one): New function.
4801         (THREAD_STOPPED_BY): New macro.
4802         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4803         (thread_stopped_by_hw_breakpoint): New functions.
4804         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4805         functions.
4806         (handle_inferior_event): Also call set_resumed(false) on all
4807         threads implicitly stopped by the event.
4808         (restart_threads, resumed_thread_with_pending_status): New
4809         functions.
4810         (finish_step_over): If we were doing an in-line step-over before,
4811         and no longer are after trying to start a new step-over, restart
4812         all threads.  If we have multiple threads with pending events,
4813         save the current event and go through the event loop again.
4814         (handle_signal_stop): Return early if finish_step_over returns
4815         false.
4816         <random signal>: If we get a signal while stepping over a
4817         breakpoint in-line in non-stop mode, restart all threads.  Clear
4818         step_over_info before delivering the signal.
4819         (keep_going_stepped_thread): Use internal_error instead of
4820         gdb_assert.  Mark the thread as resumed.
4821         (keep_going_pass_signal): Assert the thread isn't already resumed.
4822         If some other thread is doing an in-line step-over, defer the
4823         resume.  If we just started a new in-line step-over, stop all
4824         threads.  Don't clear step_over_info.
4825         (infrun_async_inferior_event_handler): New function.
4826         (_initialize_infrun): Create async event handler with
4827         infrun_async_inferior_event_handler as callback.
4828         (infrun_async): New declaration.
4829         * target.c (target_async): New function.
4830         * target.h (target_async): Declare macro and readd as function
4831         declaration.
4832         * target/waitstatus.h (enum target_stop_reason)
4833         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4834         * thread.c (new_thread): Clear the new waitstatus field.
4835         (set_resumed): New function.
4836
4837 2015-08-07  Pedro Alves  <palves@redhat.com>
4838
4839         * infrun.c (keep_going_stepped_thread): New function, factored out
4840         from ...
4841         (switch_back_to_stepped_thread): ... here.
4842
4843 2015-08-07  Pedro Alves  <palves@redhat.com>
4844
4845         * infrun.c (currently_stepping): Extend intro comment.
4846         * target.h (target_resume): Extend intro comment.
4847
4848 2015-08-07  Pedro Alves  <palves@redhat.com>
4849
4850         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4851         of inferior_ptid.  If the stepped thread vanished, return 0
4852         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4853         the current stop_pc in log message.  Clear trap_expected if the
4854         thread advanced.  Don't pass currently_stepping to
4855         do_target_resume.
4856
4857 2015-08-07  Pedro Alves  <palves@redhat.com>
4858
4859         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4860         * infrun.c (struct execution_control_state): Move higher up in the
4861         file.
4862         (reset_ecs): New function.
4863         (start_step_over): Now returns int.  Rewrite to use
4864         keep_going_pass_signal instead of manually starting a displaced step.
4865         (resume): Don't call set_running here.  If displaced stepping
4866         can't start now, clear trap_expected.
4867         (find_thread_needs_step_over): Delete function.
4868         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4869         If the current thread needs a step over, push it in the step-over
4870         chain.  Don't set insert breakpoints nor call resume directly
4871         here.  Instead rewrite to use start_step_over and
4872         keep_going_pass_signal.
4873         (finish_step_over): New function.
4874         (handle_signal_stop): Call finish_step_over instead of
4875         start_step_over.
4876         (switch_back_to_stepped_thread): If the event thread needs another
4877         step-over do that first.  Use start_step_over.
4878         (keep_going_pass_signal): New function, factored out from ...
4879         (keep_going): ... here.
4880         (_initialize_infrun): Comment moved here.
4881         * thread.c (set_running_thread): New function.
4882         (set_running, finish_thread_state): Use set_running_thread.
4883
4884 2015-08-07  Pedro Alves  <palves@redhat.com>
4885
4886         * gdbthread.h (struct thread_info) <step_over_prev,
4887         step_over_next>: New fields.
4888         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4889         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4890         declarations.
4891         * infrun.c (struct displaced_step_request): Delete.
4892         (struct displaced_step_inferior_state) <step_request_queue>:
4893         Delete field.
4894         (displaced_step_prepare): Assert that trap_expected is set.  Use
4895         thread_step_over_chain_enqueue.  Split starting a new displaced
4896         step to ...
4897         (start_step_over): ... this new function.
4898         (resume): Assert the thread isn't waiting for a step over already.
4899         (proceed): Assert the thread isn't waiting for a step over
4900         already.
4901         (infrun_thread_stop_requested): Adjust to remove threads from the
4902         embedded step-over chain.
4903         (handle_inferior_event) <fork/vfork>: Call start_step_over after
4904         displaced_step_fixup.
4905         (handle_signal_stop): Call start_step_over after
4906         displaced_step_fixup.
4907         * infrun.h (step_over_queue_head): New declaration.
4908         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4909         (thread_step_over_chain_next, thread_is_in_step_over_chain)
4910         (thread_step_over_chain_enqueue)
4911         (thread_step_over_chain_remove): New functions.
4912         (delete_thread_1): Remove thread from the step-over chain.
4913
4914 2015-08-07  Pedro Alves  <palves@redhat.com>
4915
4916         * infrun.c (thread_still_needs_step_over): Rename to ...
4917         (thread_still_needs_step_over_bp): ... this.
4918         (enum step_over_what): New.
4919         (thread_still_needs_step_over): Reimplement.
4920
4921 2015-08-07  Pedro Alves  <palves@redhat.com>
4922
4923         * remote.c (remote_wait_as): If not waiting for a stop reply,
4924         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
4925         requested, don't block waiting forever.
4926
4927 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4928
4929         * infrun.c (adjust_pc_after_break): Now takes thread_info and
4930         waitstatus pointers instead of an ecs.  Adjust.
4931         (handle_inferior_event): Adjust caller.
4932
4933 2015-08-07  Pedro Alves  <palves@redhat.com>
4934
4935         * infrun.c (handle_inferior_event): If we get
4936         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4937         mode, mark all threads of the exiting process as not-executing.
4938         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4939         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4940         exiting process, if inferior_ptid still points at a process.
4941         * thread.c (struct current_thread_cleanup) <next>: New field.
4942         (current_thread_cleanup_chain): New global.
4943         (restore_current_thread_ptid_changed): New function.
4944         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4945         current_thread_cleanup_chain list.
4946         (make_cleanup_restore_current_thread): Add the cleanup data to the
4947         current_thread_cleanup_chain list.
4948         (_initialize_thread): Install restore_current_thread_ptid_changed
4949         as thread_ptid_changed observer.
4950
4951 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
4952
4953         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4954         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4955         smaller than expected.
4956
4957 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4958
4959         * stack.c (get_frame_language): Moved ...
4960         * frame.c (get_frame_language): ... to here.
4961         * language.h (get_frame_language): Declaration moved to frame.h.
4962         * frame.h: Add language.h include, for language enum.
4963         (get_frame_language): Declaration moved from language.h.
4964         * language.c: Add frame.h include.
4965         * top.c: Add frame.h include.
4966         * symtab.h (struct obj_section): Declare.
4967         (struct cmd_list_element): Declare.
4968
4969 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4970
4971         * language.c (show_language_command): Find selected frame before
4972         asking for the language of that frame.
4973         (set_language_command): Likewise.
4974         * language.h (get_frame_language): Add frame parameter.
4975         * stack.c (get_frame_language): Add frame parameter, assert
4976         parameter is not NULL, update comment and reindent.
4977         * top.c (check_frame_language_change): Pass the selected frame
4978         into get_frame_language.
4979
4980 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4981
4982         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4983         (pt_btrace_insn_flags): New.
4984         (ftrace_add_pt): Call pt_btrace_insn_flags.
4985         * btrace.h (btrace_insn_flag): New.
4986         (btrace_insn) <flags>: New.
4987         * record-btrace.c (btrace_insn_history): Print insn prefix.
4988         * NEWS: Announce it.
4989
4990 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4991
4992         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4993         * configure: Regenerate.
4994
4995 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
4996
4997         * Makefile.in (LIBICONV): Define.
4998         (CLIBS): Add LIBICONV.
4999         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5000         * configure: Regenerate.
5001
5002 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5003             Pedro Alves  <palves@redhat.com>
5004
5005         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5006         (arm_set_abi): Likewise.
5007         * ax-general.c (ax_print): Likewise.
5008         * c-exp.y (exp : string_exp): Likewise.
5009         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5010         (do_compile_dwarf_expr_to_c): Likewise.
5011         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5012         Likewise.
5013         * dwarf2expr.c (execute_stack_op): Likewise.
5014         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5015         (disassemble_dwarf_expression): Likewise.
5016         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5017         (read_array_order): Likewise.
5018         (abbrev_table_read_table): Likewise.
5019         (read_attribute_value): Likewise.
5020         (skip_unknown_opcode): Likewise.
5021         (dwarf_decode_macro_bytes): Likewise.
5022         (dwarf_decode_macros): Likewise.
5023         * eval.c (value_f90_subarray): Likewise.
5024         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5025         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5026         * infrun.c (handle_command): Likewise.
5027         * memory-map.c (memory_map_start_memory): Likewise.
5028         * osabi.c (set_osabi): Likewise.
5029         * parse.c (operator_length_standard): Likewise.
5030         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5031         single return point.
5032         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5033         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5034         (gdbpy_lookup_global_symbol): Likewise.
5035         * record-full.c (record_full_restore): Likewise.
5036         * regcache.c (regcache_register_status): Likewise.
5037         (regcache_raw_read): Likewise.
5038         (regcache_cooked_read): Likewise.
5039         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5040         * symtab.c (initialize_ordinary_address_classes): Likewise.
5041         * target-debug.h (target_debug_print_signals): Likewise.
5042         * utils.c (do_restore_current_language): Likewise.
5043
5044 2015-08-06  Clem Dickey  <clemd@acm.org>
5045
5046         PR python/17136
5047         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5048
5049 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5050
5051         * complaints.c (enum complaint_series): Add newlines and remove
5052         out of date comment.
5053         (struct complaints) <series>: Change type to enum
5054         complaint_series and remove out of date comment.
5055         (symfile_complaint_hook): Use equivalent enum value
5056         ISOLATED_MESSAGE instead of 0.
5057
5058 2015-08-06  Pedro Alves  <palves@redhat.com>
5059
5060         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5061         returned > 0.
5062
5063 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5064
5065         * common/agent.c (symbol_list) <required>: Remove.
5066
5067 2015-08-06  Pedro Alves  <palves@redhat.com>
5068
5069         * target/waitstatus.h (enum target_stop_reason)
5070         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5071
5072 2015-08-05  Pedro Alves  <palves@redhat.com>
5073             Joel Brobecker  <brobecker@adacore.com>
5074
5075         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5076         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5077         case where BS->STOP is not set.
5078
5079 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5080
5081         * nat/gdb_thread_db.h: Add copyright header.
5082         Protect against multiple inclusion.
5083
5084 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5085
5086         * aarch64-linux-nat.c (get_thread_id): Remove.
5087         (debug_reg_change_callback): Call ptid_get_lwp instead of
5088         get_thread_id.
5089         (fetch_gregs_from_thread): Likewise.
5090         (store_gregs_to_thread): Likewise.
5091         (fetch_fpregs_from_thread): Likewise.
5092         (store_fpregs_to_thread): Likewise.
5093         (aarch64_linux_get_debug_reg_capacity): Likewise.
5094         * arm-linux-nat.c (get_thread_id): Remove.
5095         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5096         * xtensa-linux-nat.c (get_thread_id): Remove.
5097         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5098         * arm-linux-nat.c (get_thread_id): Remove.
5099         (GET_THREAD_ID): Remove.
5100         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5101         (store_fpregs, fetch_regs, store_regs): Likewise.
5102         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5103         (fetch_vfp_regs, store_vfp_regs): Likewise.
5104         (arm_linux_read_description): Likewise.
5105         (arm_linux_get_hwbp_cap): Likewise.
5106         * xtensa-linux-nat.c (get_thread_id): Remove.
5107         (GET_THREAD_ID): Remove.
5108         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5109         GET_THREAD_ID.
5110
5111 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5112
5113         * python/py-linetable.c: Fix case of Linetable to LineTable
5114         in docstrings and code comments.
5115         * python/py-symtab.c: Same.
5116
5117 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5118
5119         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5120
5121 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5122
5123         PR gdb/18767
5124         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5125         use.
5126
5127 2015-08-04  Pedro Alves  <palves@redhat.com>
5128
5129         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5130         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5131         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5132         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5133         (td_thr_validate_ftype, td_thr_get_info_ftype)
5134         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5135         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5136         New typedefs.
5137         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5138         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5139         local macros and use them instead of verbose_dlsym and dlsym
5140         calls.
5141
5142 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5143
5144         * nios2-tdep.h: Include opcode/nios2.h here.
5145         (NIOS2_CDX_OPCODE_SIZE): New.
5146         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5147         * nios2-tdep.c: Don't include opcode/nios2.h here.
5148         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5149         4-byte read fails.
5150         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5151         (nios2_match_addi, nios2_match_orhi): Likewise.
5152         (nios2_match_stw, nios2_match_ldw): Likewise.
5153         (nios2_match_rdctl): Likewise.
5154         (nios2_match_stwm, nios2_match_ldwm): New.
5155         (nios2_match_branch): Add cases for R2 encodings.
5156         (nios2_match_jmpi, nios2_match_calli): Likewise.
5157         (nios2_match_jmpr, nios2_match_callr): Likewise.
5158         (nios2_match_break, nios2_match_trap): Likewise.
5159         (nios2_in_epilogue_p): Add R2 support.
5160         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5161         prologues.
5162         (nios2_breakpoint_from_pc): Handle R2 instructions.
5163         (nios2_get_next_pc): Likewise.  Adjust call to
5164         tdep->syscall_next_pc.
5165         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5166         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5167         instruction field macros instead of literal hex values.
5168         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5169         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5170         Use size field from OP instead of assuming all instructions
5171         are the same size.
5172         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5173
5174 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5175
5176         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5177         variable warning with some compilers.
5178
5179 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5180
5181         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5182         in comment.  Replace "rw" with "type".
5183         (arm_linux_remove_watchpoint): Change type of "rw" to
5184         "enum target_hw_bp_type".
5185
5186 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5187
5188         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5189         lookup_symbol.
5190         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5191         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5192         * mt-tdep.c (mt_skip_prologue): Likewise.
5193         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5194
5195 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5196
5197         * ada-exp.y (write_object_renaming): Replace struct
5198         ada_symbol_info with struct block_symbol.  Update field
5199         references accordingly.
5200         (block_lookup, select_possible_type_sym): Likewise.
5201         (find_primitive_type): Likewise.  Also update call to
5202         ada_lookup_symbol to extract the symbol itself.
5203         (write_var_or_type, write_name_assoc): Likewise.
5204         * ada-lang.h (struct ada_symbol_info): Remove.
5205         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5206         struct block_symbol.
5207         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5208         (ada_lookup_symbol): Return struct block_symbol instead of a
5209         mere symbol.
5210         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5211         with struct block_symbol.
5212         (resolve_subexp, ada_resolve_function, sort_choices,
5213         user_select_syms, is_nonfunction, add_defn_to_vec,
5214         num_defns_collected, defns_collected,
5215         symbols_are_identical_enums, remove_extra_symbols,
5216         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5217         ada_lookup_symbol_list, ada_iterate_over_symbols,
5218         ada_lookup_encoded_symbol, get_var_value): Likewise.
5219         (ada_lookup_symbol): Return a block_symbol instead of a mere
5220         symbol.  Replace struct ada_symbol_info with struct
5221         block_symbol.
5222         (ada_lookup_symbol_nonlocal): Likewise.
5223         (standard_lookup): Make block passing explicit through
5224         lookup_symbol_in_language.
5225         * ada-tasks.c (get_tcb_types_info): Update the calls to
5226         lookup_symbol_in_language to extract the mere symbol out of the
5227         returned value.
5228         (ada_tasks_inferior_data_sniffer): Likewise.
5229         * ax-gdb.c (gen_static_field): Likewise for the call to
5230         lookup_symbol.
5231         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5232         lookup functions.
5233         (gen_expr): Likewise.
5234         * c-exp.y: Likewise.  Remove uses of block_found.
5235         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5236         (classify_name): Likewise.  Rename the "sym" local variable to
5237         "bsym".
5238         * c-valprint.c (print_unpacked_pointer): Likewise.
5239         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5240         "sym" parameter from struct symbol * to struct block_symbol.
5241         Use it to remove uses of block_found.  Deal with struct
5242         block_symbol from lookup functions.
5243         (gcc_convert_symbol): Likewise.  Update the call to
5244         convert_symbol_sym.
5245         * compile/compile-object-load.c (compile_object_load): Deal with
5246         struct block_symbol from lookup functions.
5247         * cp-namespace.c (cp_lookup_nested_symbol_1,
5248         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5249         cp_search_static_and_baseclasses,
5250         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5251         cp_lookup_symbol_imports_or_template,
5252         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5253         lookup_namespace_scope, cp_lookup_nonlocal,
5254         find_symbol_in_baseclass): Return struct block_symbol instead of
5255         mere symbols and deal with struct block_symbol from lookup
5256         functions.
5257         * cp-support.c (inspect_type, replace_typedefs,
5258         cp_lookup_rtti_type): Deal with struct block_symbol from
5259         lookup functions.
5260         * cp-support.h (cp_lookup_symbol_nonlocal,
5261         cp_lookup_symbol_from_namespace,
5262         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5263         Return struct block_symbol instead of mere symbols.
5264         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5265         push_module_name):
5266         Deal with struct block_symbol from lookup functions.  Remove
5267         uses of block_found.
5268         * eval.c (evaluate_subexp_standard): Update call to
5269         cp_lookup_symbol_namespace.
5270         * f-exp.y: Deal with struct block_symbol from lookup functions.
5271         Remove uses of block_found.
5272         (yylex): Likewise.
5273         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5274         lookup_enum, lookup_template_type, check_typedef): Deal with
5275         struct block_symbol from lookup functions.
5276         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5277         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5278         (gdbscm_lookup_global_symbol): Likewise.
5279         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5280         * go-exp.y: Likewise.  Remove uses of block_found.
5281         (package_name_p, classify_packaged_name, classify_name):
5282         Likewise.
5283         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5284         * jv-exp.y (push_variable): Likewise.
5285         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5286         * language.c (language_bool_type): Likewise.
5287         * language.h (struct language_defn): Update
5288         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5289         than a mere symbol.
5290         * linespec.c (find_label_symbols): Deal with struct block_symbol
5291         from lookup functions.
5292         * m2-exp.y: Likewise.  Remove uses of block_found.
5293         (yylex): Likewise.
5294         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5295         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5296         * p-exp.y: Likewise.  Remove uses of block_found.
5297         (yylex): Likewise.
5298         * p-valprint.c (pascal_val_print): Likewise.
5299         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5300         block_found.
5301         * parser-defs.h (struct symtoken): Turn the SYM field into a
5302         struct block_symbol.
5303         * printcmd.c (address_info): Deal with struct block_symbol from
5304         lookup functions.
5305         * python/py-frame.c (frapy_read_var): Likewise.
5306         * python/py-symbol.c (gdbpy_lookup_symbol,
5307         gdbpy_lookup_global_symbol): Likewise.
5308         * skip.c (skip_function_command): Likewise.
5309         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5310         block_symbol instead of a mere symbol.
5311         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5312         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5313         * solib.c (solib_global_lookup): Likewise.
5314         * solist.h (solib_global_lookup): Likewise.
5315         (struct target_so_ops): Update lookup_lib_global_symbol to
5316         return a struct block_symbol rather than a mere symbol.
5317         * source.c (select_source_symtab): Deal with struct block_symbol
5318         from lookup functions.
5319         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5320         Likewise.
5321         * symfile.c (set_initial_language): Likewise.
5322         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5323         block_symbol.
5324         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5325         (struct symbol_cache_slot): Turn the FOUND field into a struct
5326         block_symbol.
5327         (block_found): Remove.
5328         (eq_symbol_entry): Update to deal with struct block_symbol in
5329         cache slots.
5330         (symbol_cache_lookup): Return a struct block_symbol rather than
5331         a mere symbol.
5332         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5333         appropriately the cache slots.  Update callers.
5334         (symbol_cache_dump): Update cache slots handling to the type
5335         change.
5336         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5337         lookup_symbol_aux, lookup_local_symbol,
5338         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5339         lookup_symbol_in_objfile_symtabs,
5340         lookup_symbol_in_objfile_from_linkage_name,
5341         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5342         lookup_symbol_in_static_block, lookup_static_symbol,
5343         lookup_global_symbol):
5344         Return a struct block_symbol rather than a mere symbol.  Deal
5345         with struct block_symbol from other lookup functions.  Remove
5346         uses of block_found.
5347         (lookup_symbol_in_block): Remove uses of block_found.
5348         (struct global_sym_lookup_data): Turn the RESULT field into a
5349         struct block_symbol.
5350         (lookup_symbol_global_iterator_cb): Update references to the
5351         RESULT field.
5352         (search_symbols): Deal with struct block_symbol from lookup
5353         functions.
5354         * symtab.h (struct block_symbol): New structure.
5355         (block_found): Remove.
5356         (lookup_symbol_in_language, lookup_symbol,
5357         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5358         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5359         lookup_global_symbol_from_objfile): Return a struct block_symbol
5360         rather than just a mere symbol.  Update comments to remove
5361         mentions of block_found.
5362         * valops.c (find_function_in_inferior,
5363         value_struct_elt_for_reference, value_maybe_namespace_elt,
5364         value_of_this):  Deal with struct block_symbol from lookup
5365         functions.
5366         * value.c (value_static_field, value_fn_field): Likewise.
5367
5368 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5369
5370         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5371         instead of integer.
5372
5373 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5374             Pedro Alves  <palves@redhat.com>
5375
5376         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5377         type or value instead of integer.
5378         (aarch64_linux_insert_watchpoint): Likewise.
5379         (aarch64_linux_remove_watchpoint): Likewise.
5380         * ada-lang.c (ada_op_print_tab): Likewise.
5381         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5382         (amd64_linux_syscall_record_common): Likewise.
5383         * arch-utils.c (target_byte_order_user): Likewise.
5384         (default_byte_order): Likewise.
5385         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5386         (arm_linux_get_hwbp_type): Likewise.
5387         (arm_linux_hw_watchpoint_initialize): Likewise.
5388         (arm_linux_insert_watchpoint): Likewise.
5389         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5390         (arm_linux_syscall_record): Likewise.
5391         * breakpoint.c (update_watchpoint): Likewise.
5392         (breakpoint_here_p): Likewise.
5393         (bpstat_print): Likewise.
5394         (enable_breakpoint_disp): Likewise.
5395         * c-lang.c (c_op_print_tab): Likewise.
5396         * cli/cli-decode.c (add_info_alias): Likewise.
5397         * d-lang.c (d_op_print_tab): Likewise.
5398         * eval.c (evaluate_subexp_standard): Likewise.
5399         * f-exp.y (dot_ops): Likewise.
5400         (f77_keywords): Likewise.
5401         * f-lang.c (f_op_print_tab): Likewise.
5402         * go-lang.c (go_op_print_tab): Likewise.
5403         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5404         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5405         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5406         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5407         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5408         (struct scm_from_stringn_data): Likewise.
5409         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5410         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5411         (ia64_linux_remove_watchpoint): Likewise.
5412         (ia64_linux_can_use_hw_breakpoint): Likewise.
5413         * infrun.c (print_stop_event): Likewise.
5414         * jv-lang.c (java_op_print_tab): Likewise.
5415         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5416         * linux-nat.h (struct lwp_info): Likewise.
5417         * linux-thread-db.c (enable_thread_event): Likewise.
5418         * m2-lang.c (m2_op_print_tab): Likewise.
5419         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5420         (mi_cmd_stack_list_variables): Likewise.
5421         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5422         * mi/mi-out.c (mi_table_begin): Likewise.
5423         (mi_table_header): Likewise.
5424         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5425         (mips_linux_insert_watchpoint): Likewise.
5426         (mips_linux_remove_watchpoint): Likewise.
5427         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5428         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5429         (mips_linux_watch_type_to_irw): Likewise.
5430         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5431         (procfs_insert_hw_watchpoint): Likewise.
5432         (procfs_remove_hw_watchpoint): Likewise.
5433         (procfs_hw_watchpoint): Likewise.
5434         (procfs_can_use_hw_breakpoint): Likewise.
5435         (procfs_remove_hw_watchpoint): Likewise.
5436         (procfs_insert_hw_watchpoint): Likewise.
5437         * p-lang.c (pascal_op_print_tab): Likewise.
5438         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5439         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5440         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5441         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5442         (procfs_insert_watchpoint): Likewise.
5443         (procfs_remove_watchpoint): Likewise.
5444         * psymtab.c (recursively_search_psymtabs): Likewise.
5445         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5446         (m32r_insert_watchpoint): Likewise.
5447         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5448         (mips_insert_watchpoint): Likewise.
5449         (mips_remove_watchpoint): Likewise.
5450         * remote.c (watchpoint_to_Z_packet): Likewise.
5451         (remote_insert_watchpoint): Likewise.
5452         (remote_remove_watchpoint): Likewise.
5453         (remote_check_watch_resources): Likewise.
5454         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5455         (s390_remove_watchpoint): Likewise.
5456         (s390_can_use_hw_breakpoint): Likewise.
5457         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5458         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5459         * target.h (struct target_ops): Likewise.
5460         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5461         * ui-out.c (struct ui_out_hdr): Likewise.
5462         (append_header_to_list): Likewise.
5463         (get_next_header): Likewise.
5464         (verify_field): Likewise.
5465         (ui_out_begin): Likewise.
5466         (ui_out_field_int): Likewise.
5467         (ui_out_field_fmt_int): Likewise.
5468         (ui_out_field_skip): Likewise.
5469         (ui_out_field_string): Likewise.
5470         (ui_out_field_fmt): Likewise.
5471         * varobj.c (new_variable): Likewise.
5472         * x86-nat.c (x86_insert_watchpoint): Likewise.
5473         (x86_remove_watchpoint): Likewise.
5474         (x86_can_use_hw_breakpoint): Likewise.
5475         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5476         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5477         previously anonymous enumeration type..
5478         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5479         value.
5480         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5481         (target_debug_print_enum_bptype): New.
5482         * target-delegates.c: Regenerate.
5483
5484 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5485
5486         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5487         already says and disallow non-stack memory writes in the prologue.
5488
5489 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5490
5491         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5492         reflect how current GCC emits stack overflow checks.  Match
5493         both trap and break instructions for backward compatbility.
5494         Disallow other trap and break instructions in the prologue.
5495
5496 2015-07-30  Pedro Alves  <palves@redhat.com>
5497
5498         PR threads/18600
5499         * linux-nat.c (wait_lwp): Report to the core when thread group
5500         leader exits.
5501
5502 2015-07-30  Pedro Alves  <palves@redhat.com>
5503             Simon Marchi  <simon.marchi@ericsson.com>
5504
5505         PR threads/18600
5506         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5507         mark the new thread as resumed.  Remove STOPPING parameter.
5508         (wait_lwp): Adjust call to linux_handle_extended_wait.
5509         (linux_nat_filter_event): Adjust call to
5510         linux_handle_extended_wait.
5511         (resume_stopped_resumed_lwps): Add debug output.
5512
5513 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5514
5515         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5516         isize argument.
5517         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5518         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5519         gdbarch_fast_tracepoint_valid_at.
5520         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5521         * gdbarch.h: Regenerate.
5522         * gdbarch.c: Regenerate.
5523         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5524         argument.  Do not set it.
5525         * remote.c (remote_download_tracepoint): Adjust call to
5526         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5527         the instruction length.
5528
5529 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5530
5531         * arm-tdep.h (enum gdb_regnum): Move it to ...
5532         * arch/arm.h: ... here.  New file.
5533         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5534
5535 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5536
5537         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5538         Change its type to int *.
5539         (decode_br): Rename link argument to is_blr.  Change its type to
5540         int *.
5541         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5542         int *.
5543         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5544         int *.  Set is_tbnz to either 1 or 0.
5545         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5546         new variables is_cbnz and is_tbnz.  Adjust call to
5547         aarch64_decode_cb and aarch64_decode_tb.
5548
5549 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5550
5551         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5552         parameter.
5553         (mips_linux_new_thread): Likewise.
5554         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5555
5556 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5557
5558         * top.c: Include "tui/tui.h".
5559         (undo_terminal_modifications_before_exit): New static function.
5560         (quit_force): Use it.
5561
5562 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5563
5564         * target.c (terminal_state): Initialize to terminal_is_ours.
5565
5566 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5567
5568         PR record/18691
5569         * dcache.c (dcache_read_memory_partial): Call
5570         raw_memory_xfer_partial.
5571         * target.c (raw_memory_xfer_partial): Make it non-static.
5572         * target.h (raw_memory_xfer_partial): Declare.
5573
5574 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5575
5576         * c-valprint.c (c_val_print_array): Consider addressable memory
5577         unit size.
5578         (c_val_print_ptr): Likewise.
5579         (c_val_print_int): Likewise.
5580         * findvar.c (read_frame_register_value): Likewise.
5581         * valarith.c (find_size_for_pointer_math): Likewise.
5582         (value_ptrdiff): Likewise.
5583         (value_subscripted_rvalue): Likewise.
5584         * valops.c (read_value_memory): Likewise (and rename variables).
5585         (value_assign): Likewise.
5586         (value_repeat): Likewise.
5587         (value_array): Likewise.
5588         (value_slice): Likewise.
5589         * valprint.c (generic_val_print_ptr): Likewise.
5590         (generic_val_print_enum): Likewise.
5591         (generic_val_print_bool): Likewise.
5592         (generic_val_print_int): Likewise.
5593         (generic_val_print_char): Likewise.
5594         (generic_val_print_float): Likewise.
5595         (generic_val_print_decfloat): Likewise.
5596         (generic_val_print_complex): Likewise.
5597         (val_print_scalar_formatted): Likewise.
5598         (val_print_array_elements): Likewise.
5599         * value.c (set_value_parent): Likewise.
5600         (value_contents_copy_raw): Likewise.
5601         (set_internalvar_component): Likewise.
5602         (value_primitive_field): Likewise.
5603         (value_fetch_lazy): Likewise.
5604         * value.h (read_value_memory): Update comment.
5605
5606 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5607
5608         * value.c (get_value_arch): New function.
5609         * value.h (get_value_arch): New declaration.
5610
5611 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5612
5613         * value.c (struct value): Update comments.
5614
5615 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5616
5617         * gdbtypes.c (type_length_units): New function.
5618         * gdbtypes.h (type_length_units): New declaration.
5619         (struct type) <length>: Update comment.
5620
5621 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5622
5623         * valprint.c (generic_val_print): Factor out complex
5624         printing code to ...
5625         (generic_val_print_complex): ... this new function.
5626
5627 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5628
5629         * valprint.c (generic_val_print): Factor out decfloat
5630         printing code to ...
5631         (generic_val_print_decfloat): ... this new function.
5632
5633 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5634
5635         * valprint.c (generic_val_print): Factor out float
5636         printing code to ...
5637         (generic_val_print_float): ... this new function.
5638
5639 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5640
5641         * valprint.c (generic_val_print): Factor out char
5642         printing code to ...
5643         (generic_val_print_char): ... this new function.
5644
5645 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5646
5647         * valprint.c (generic_val_print): Factor out integer
5648         printing code to ...
5649         (generic_val_print_int): ... this new function.
5650
5651 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5652
5653         * valprint.c (generic_val_print): Factor out bool
5654         printing code to ...
5655         (generic_val_print_bool): ... this new function.
5656
5657 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5658
5659         * valprint.c (generic_val_print): Factor out function/method
5660         printing code to ...
5661         (generic_val_print_func): ... this new function.
5662
5663 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5664
5665         * valprint.c (generic_val_print): Factor out flags
5666         printing code to ...
5667         (generic_val_print_flags): ... this new function.
5668
5669 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5670
5671         * valprint.c (generic_val_print): Factor out enum
5672         printing code to ...
5673         (generic_val_print_enum): ... this new function.
5674
5675 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5676
5677         * valprint.c (generic_val_print): Factor out reference
5678         printing code to ...
5679         (generic_val_print_ref): ... this new function.
5680
5681 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5682
5683         * valprint.c (generic_val_print): Factor out memberptr
5684         printing code to ...
5685         (generic_val_print_memberptr): ... this new function.
5686
5687 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5688
5689         * valprint.c (generic_val_print): Factor out pointer
5690         printing code to ...
5691         (generic_val_print_ptr): ... this new function.
5692
5693 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5694
5695         * valprint.c (generic_val_print): Factor out array
5696         printing code to ...
5697         (generic_val_print_array): ... this new function.
5698
5699 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5700
5701         * valprint.c (generic_val_print): Factor out
5702         print_unpacked_pointer code to ...
5703         (print_unpacked_pointer): ... this new function.
5704
5705 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5706
5707         * event-top.c (handle_sigterm): Don't inspect
5708         target_can_async_p.  Always set the quit flag and always mark
5709         the async signal handler.
5710
5711 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5712
5713         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5714
5715 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5716
5717         * remote.c (read_ptid): Return null_ptid when no thread id
5718         is found.
5719         (remote_current_thread): Add log warning for malformed
5720         qC reply.
5721         (remote_start_remote): Add log warning when current thread
5722         not found.
5723
5724 2015-07-24  Pedro Alves  <palves@redhat.com>
5725
5726         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5727         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5728         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5729
5730 2015-07-24  Pedro Alves  <palves@redhat.com>
5731
5732         PR gdb/18717
5733         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5734         is resumed, and extend the debug log.
5735
5736 2015-07-24  Pedro Alves  <palves@redhat.com>
5737
5738         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5739
5740 2015-07-24  Pedro Alves  <palves@redhat.com>
5741
5742         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5743         sys/ptrace.h.
5744         * alpha-linux-nat.c: Likewise.
5745         * amd64-linux-nat.c: Likewise.
5746         * arm-linux-nat.c: Likewise.
5747         * hppa-linux-nat.c: Likewise.
5748         * i386-linux-nat.c: Likewise.
5749         * ia64-linux-nat.c: Likewise.
5750         * linux-fork.c: Likewise.
5751         * linux-nat.c: Likewise.
5752         * m32r-linux-nat.c: Likewise.
5753         * m68klinux-nat.c: Likewise.
5754         * mips-linux-nat.c: Likewise.
5755         * nat/linux-btrace.c: Likewise.
5756         * nat/linux-ptrace.c: Likewise.
5757         * nat/linux-ptrace.h
5758         * nat/mips-linux-watch.c: Likewise.
5759         * nat/x86-linux-dregs.c: Likewise.
5760         * ppc-linux-nat.c: Likewise.
5761         * s390-linux-nat.c: Likewise.
5762         * spu-linux-nat.c: Likewise.
5763         * tilegx-linux-nat.c: Likewise.
5764         * x86-linux-nat.c: Likewise.
5765         * xtensa-linux-nat.c: Likewise.
5766
5767 2015-07-24  Pedro Alves  <palves@redhat.com>
5768
5769         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5770         __ptrace_request as first parameter type instead of int.
5771         (PTRACE_TYPE_ARG1): Define.
5772         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5773         that casts first argument to PTRACE_TYPE_ARG1.
5774         * config.in: Regenerate.
5775         * configure: Regenerate.
5776
5777 2015-07-24  Pedro Alves  <palves@redhat.com>
5778
5779         * gdb_ptrace.h: Move ...
5780         * nat/gdb_ptrace.h: ... here.
5781         * inf-ptrace.c: Adjust.
5782
5783 2015-07-24  Pedro Alves  <palves@redhat.com>
5784
5785         * acinclude.m4: Include ptrace.m4.
5786         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5787         * ptrace.m4: ... to this new file.
5788
5789 2015-07-23  Doug Evans  <dje@google.com>
5790
5791         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5792         (load_cu): Handle dummy CUs.
5793         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5794         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5795
5796 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5797
5798         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5799         documentation to say that it returns a list rather than
5800         a FrozenSet.
5801         (linetable_object_methods): Update the docstring of the
5802         "source_line" entry.
5803
5804 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5805
5806         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5807         type to the recursive call instead of the original (maybe
5808         TYPE_CODE_TYPEDEF) type.
5809
5810 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5811
5812         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5813         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5814         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5815
5816 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5817
5818         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5819         Move it to nat/aarch64-linux-hw-point.c.
5820         (aarch64_linux_child_post_startup_inferior): Update.
5821         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5822         New function.
5823         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5824         Declare it.
5825
5826 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5827
5828         * common/btrace-common.c (btrace_data_append): Change case label.
5829
5830 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5831
5832         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5833         Re-indent the code.
5834         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5835         "unsigned long long".
5836
5837 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5838
5839         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5840         to be set for SEC_ALLOC sections too.
5841
5842 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5843
5844         * Makefile.in (HFILES_NO_SRCDIR): Add
5845         nat/aarch64-linux-hw-point.h.
5846         (aarch64-linux-hw-point.o): New rule.
5847         * nat/aarch64-linux-hw-point.h: New file.
5848         * nat/aarch64-linux-hw-point.c: New file.
5849         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5850         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5851         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5852         (AARCH64_HWP_ALIGNMENT): Likewise.
5853         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5854         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5855         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5856         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5857         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5858         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5859         (struct aarch64_debug_reg_state): Likewise.
5860         (struct arch_lwp_info): Likewise.
5861         (aarch64_linux_set_debug_regs): Likewise.
5862         (aarch64_notify_debug_reg_change): Remove static.
5863         (aarch64_align_watchpoint): Likewise.
5864         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5865         (aarch64_watchpoint_length): Likewise.
5866         (aarch64_point_encode_ctrl_reg): Likewise
5867         (aarch64_point_is_aligned): Likewise.
5868         (aarch64_dr_state_insert_one_point): Likewise.
5869         (aarch64_dr_state_remove_one_point): Likewise.
5870         (aarch64_handle_breakpoint): Likewise.
5871         (aarch64_handle_aligned_watchpoint): Likewise.
5872         (aarch64_handle_unaligned_watchpoint): Likewise.
5873         (aarch64_handle_watchpoint): Likewise.
5874         * config/aarch64/linux.mh (NAT_FILE): Add
5875         aarch64-linux-hw-point.o.
5876
5877 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5878
5879         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5880         state and don't call aarch64_get_debug_reg_state.  All callers
5881         update.
5882         (aarch64_linux_insert_hw_breakpoint): Call
5883         aarch64_get_debug_reg_state earlier.
5884         (aarch64_linux_remove_hw_breakpoint): Likewise.
5885         (aarch64_handle_aligned_watchpoint): Add argument state and
5886         don't call aarch64_get_debug_reg_state.  All callers update.
5887         (aarch64_handle_unaligned_watchpoint): Likewise.
5888         (aarch64_handle_watchpoint): Add argument state.
5889         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5890         earlier.
5891         (aarch64_linux_remove_watchpoint): Likewise.
5892
5893 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5894
5895         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5896         debug_printf.
5897         (aarch64_handle_unaligned_watchpoint): Likewise.
5898
5899 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5900
5901         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5902         argument type's type to 'enum target_hw_bp_type'.
5903         (aarch64_dr_state_remove_one_point): Likewise.
5904         (aarch64_handle_breakpoint): Likewise.
5905         (aarch64_linux_insert_hw_breakpoint): Likewise.
5906         (aarch64_linux_remove_hw_breakpoint): Likewise.
5907         (aarch64_handle_aligned_watchpoint): Likewise.
5908
5909 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5910
5911         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5912         ptid_get_pid instead of get_thread_id.
5913
5914 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5915
5916         * remote.c (get_current_thread): Initialise ptid to null_ptid.
5917         (add_current_inferior_and_thread): Don't initialise ptid.
5918
5919 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
5920
5921         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5922         unavailable if invalid.
5923
5924 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5925
5926         Revert the previous 6 commits:
5927         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5928         Move gdb_regex* to common/
5929         Prepare linux_find_memory_regions_full & co. for move
5930         Move linux_find_memory_regions_full & co.
5931         gdbserver build-id attribute generator
5932         Validate symbol file using build-id
5933
5934 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5935             Jan Kratochvil  <jan.kratochvil@redhat.com>
5936
5937         Validate symbol file using build-id.
5938         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5939         and 'show validate-build-id'.  Add build-id attribute.
5940         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5941         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5942         * solib-frv.c (_initialize_frv_solib): Ditto.
5943         * solib-spu.c (set_spu_solib_ops): Ditto.
5944         * solib-svr4.c: Include rsp-low.h.
5945         (NOTE_GNU_BUILD_ID_NAME): New define.
5946         (svr4_validate): New function.
5947         (svr4_copy_library_list): Duplicate field build_id.
5948         (library_list_start_library): Parse 'build-id' attribute.
5949         (svr4_library_attributes): Add 'build-id' attribute.
5950         (_initialize_svr4_solib): Assign validate value.
5951         * solib-target.c (solib.h): Include.
5952         (_initialize_solib_target): Assign validate value.
5953         * solib.c (validate_build_id, show_validate_build_id): New.
5954         (solib_map_sections): Use ops->validate.
5955         (clear_so): Free build_id.
5956         (default_solib_validate): New function.
5957         (_initialize_solib): Add "validate-build-id".
5958         * solib.h (default_solib_validate): New declaration.
5959         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5960         (target_so_ops): New field 'validate'.
5961
5962 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5963             Jan Kratochvil  <jan.kratochvil@redhat.com>
5964
5965         gdbserver build-id attribute generator.
5966         * features/library-list-svr4.dtd (library-list-svr4): New
5967         'build-id' attribute.
5968
5969 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5970             Jan Kratochvil  <jan.kratochvil@redhat.com>
5971
5972         Move linux_find_memory_regions_full & co.
5973         * linux-tdep.c (nat/linux-maps.h): Include.
5974         (gdb_regex.h): Remove the include.
5975         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5976         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5977         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5978         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5979         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5980         and target/target.h.
5981         (struct smaps_vmflags, read_mapping, decode_vmflags)
5982         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5983         (linux_find_memory_regions_full): Move from linux-tdep.c.
5984         * nat/linux-maps.h (read_mapping): New declaration.
5985         (linux_find_memory_region_ftype, enum filterflags): Moved from
5986         linux-tdep.c.
5987         (linux_find_memory_regions_full): New declaration.
5988         * target.c (target/target-utils.h): Include.
5989         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5990         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5991         definitions to target/target-utils.c.
5992         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5993         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5994         from target.c.
5995         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5996         (read_alloc): New declaration.
5997         (read_stralloc_func_ftype): New typedef.
5998         (read_stralloc): New declaration.
5999         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6000
6001 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6002             Jan Kratochvil  <jan.kratochvil@redhat.com>
6003
6004         Prepare linux_find_memory_regions_full & co. for move.
6005         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6006         (linux_find_memory_regions_full): Change signature and prepare
6007         for moving to linux-maps.
6008         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6009         (linux_find_memory_regions_thunk): New.
6010         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6011         (linux_find_memory_regions_gdb): New.
6012         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6013         (linux_make_mappings_corefile_notes): Use
6014         linux_find_memory_regions_gdb.
6015         * target.c (read_alloc_pread_ftype): New typedef.
6016         (target_fileio_read_alloc_1_pread): New function.
6017         (read_alloc): Refactor from target_fileio_read_alloc_1.
6018         (read_stralloc_func_ftype): New typedef.
6019         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6020         (read_stralloc): Refactored from target_fileio_read_stralloc.
6021         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6022
6023 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6024
6025         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6026         common/gdb_regex.h.
6027         (COMMON_OBS): Add gdb_regex.o.
6028         (gdb_regex.o): New.
6029         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6030         --without-included-regex and USE_INCLUDED_REGEX.
6031         * common/gdb_regex.c: New file from utils.c functions.
6032         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6033         file wrapping define name.
6034         * configure: Rebuilt.
6035         * configure.ac (gdb_use_included_regex, --without-included-regex)
6036         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6037         * gdb_regex.h: Move it to common/gdb_regex.h.
6038         * utils.c: Remove include gdb_regex.h.
6039         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6040         (compile_rx_or_error): Move them to common/gdb_regex.c.
6041
6042 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6043             Jan Kratochvil  <jan.kratochvil@redhat.com>
6044
6045         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6046         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6047         common/target-utils.h.
6048         (COMMON_OBS): Add target-utils.o.
6049         (linux-maps.o, target-utils.o): New.
6050         * target/target-utils.c: New file.
6051         * target/target-utils.h: New file.
6052         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6053         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6054         * nat/linux-maps.c: New file.
6055         * nat/linux-maps.h: New file.
6056
6057 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6058             Pedro Alves <palves@redhat.com>
6059
6060         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6061         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6062         (perf_event_read_bts): Change the type of SIZE and READ.
6063         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6064         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6065         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6066         mmap page.
6067         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6068         buffer size to UINT_MAX.
6069         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6070         DATA_TAIL.
6071         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6072         <last_head>: Change type.
6073         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6074         * common/btrace-common.c (btrace_data_append): Change the type of
6075         SIZE.
6076         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6077         check.
6078
6079 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6080
6081         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6082         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6083         with check_typedef.
6084         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6085         (ada_array_length): Likewise.
6086         (find_parallel_type_by_descriptive_type): Likewise.
6087         (ada_check_typedef): Likewise.
6088         * arm-tdep.c (arm_return_in_memory): Likewise.
6089         * ax-gdb.c (gen_trace_static_fields): Likewise.
6090         (gen_struct_ref_recursive): Likewise.
6091         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6092         (variable: block COLONCOLON name): Likewise.
6093         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6094         * c-lang.c (classify_type): Likewise.
6095         * c-typeprint.c (c_print_type): Likewise.
6096         (c_print_typedef): Likewise.
6097         (c_type_print_base): Likewise.
6098         * c-valprint.c (c_val_print): Likewise.
6099         * compile/compile-c-types.c (convert_type): Likewise.
6100         * compile/compile-object-load.c (get_out_value_type): Likewise.
6101         * completer.c (add_struct_fields): Likewise.
6102         (expression_completer): Likewise.
6103         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6104         (cp_lookup_nested_symbol_1): Likewise.
6105         (cp_lookup_nested_symbol): Likewise.
6106         * cp-valprint.c (cp_print_value_fields): Likewise.
6107         (cp_print_static_field): Likewise.
6108         * d-valprint.c (d_val_print): Likewise.
6109         * eval.c (evaluate_subexp_standard): Likewise.
6110         (evaluate_subexp_for_sizeof): Likewise.
6111         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6112         * f-typeprint.c (f_type_print_base): Likewise.
6113         * f-valprint.c (f_val_print): Likewise.
6114         * gdbtypes.c (get_discrete_bounds): Likewise.
6115         (create_array_type_with_stride): Likewise.
6116         (type_name_no_tag_or_error): Likewise.
6117         (lookup_struct_elt_type): Likewise.
6118         (get_unsigned_type_max): Likewise.
6119         (internal_type_vptr_fieldno): Likewise.
6120         (set_type_vptr_fieldno): Likewise.
6121         (internal_type_vptr_basetype): Likewise.
6122         (set_type_vptr_basetype): Likewise.
6123         (get_vptr_fieldno): Likewise.
6124         (is_integral_type): Likewise.
6125         (is_scalar_type): Likewise.
6126         (is_scalar_type_recursive): Likewise.
6127         (distance_to_ancestor): Likewise.
6128         (is_unique_ancestor_worker): Likewise.
6129         (check_types_equal): Likewise.
6130         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6131
6132 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6133
6134         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6135         also test for language_d.
6136         (dwarf2_compute_name): Likewise.
6137         (read_func_scope): Likewise.
6138         (read_structure_type): Likewise.
6139         (new_symbol_full): Likewise.
6140         (determine_prefix): Likewise.
6141         (read_import_statement): Use dot as the separator for language_d.
6142         (typename_concat): Likewise, but don't prefix the D main function.
6143
6144 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6145
6146         * nat/linux-namespaces.c (setns): Rename from this ...
6147         (do_setns): ... to this.  Support calling setns if it exists.
6148         (mnsh_handle_setns): Call do_setns.
6149
6150 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6151
6152         * exec.c (exec_file_attach): Add period at the end of error
6153         message.
6154
6155 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6156
6157         * tui/tui-win.c (window_name_completer): New function.
6158         (focus_completer): Call window_name_completer.  All old content
6159         moved into window_name_completer.
6160         (winheight_completer): New function.
6161         (_initialize_tui_win): Rename variable.  Add completer to
6162         winheight command.  Update doc string on winheight.
6163
6164 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6165
6166         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6167         all nios2 mach variants.
6168
6169 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6170
6171         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6172         of target_read_memory.
6173
6174 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6175
6176         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6177         string copy.
6178         (parse_scrolling_args): Likewise.
6179
6180 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6181
6182         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6183         names in this function.
6184
6185 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6186
6187         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6188         (CMD_NAME): Likewise.
6189         (DATA_NAME): Likewise.
6190         (DISASSEM_NAME): Likewise.
6191         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6192         (tui_set_win_height): Likewise.
6193         (parse_scrolling_args): Likewise.
6194
6195 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6196
6197         * record-btrace.c (record_btrace_goto_begin)
6198         (record_btrace_goto_end, record_btrace_goto): Move call to
6199         print_stack_frame ...
6200         (record_btrace_set_replay): ... here.  Set stop_pc.
6201         * record-full.c (record_full_goto_entry): Set stop_pc.
6202
6203 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6204
6205         * NEWS: Mention support for tracepoints on aarch64-linux.
6206
6207 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6208
6209         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6210         function.  Return 1.
6211         (the_low_target): Install it.
6212
6213 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6214
6215         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6216         * gdb.trace/collection.exp: Likewise.
6217         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6218         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6219         * gdb.trace/report.exp: Likewise.
6220         * gdb.trace/trace-break.exp: Likewise.
6221         * gdb.trace/unavailable.exp: Likewise.
6222         * gdb.trace/while-dyn.exp: Likewise.
6223
6224 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6225
6226         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6227         (aarch64_gen_return_address): New function.
6228         (aarch64_gdbarch_init): Hook it.
6229
6230 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6231
6232         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6233         swallow NOT_AVAILABLE_ERROR.
6234         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6235         available_p is not set.
6236         (aarch64_stub_frame_unwind_stop_reason): New function.
6237         (aarch64_stub_unwind): Install it.
6238
6239 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6240
6241         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6242         field.
6243         (aarch64_make_prologue_cache_1): New function, factored out from
6244         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6245         available_p.
6246         (aarch64_make_prologue_cache): Reimplement wrapping
6247         aarch64_make_prologue_cache_1, and swallowing
6248         NOT_AVAILABLE_ERROR.
6249         (aarch64_prologue_frame_unwind_stop_reason): New function.
6250         Return UNWIND_UNAVAILABLE if available_p is not set.
6251         (aarch64_prologue_unwind): Install it.
6252         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6253         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6254         frame_id_build_unavailable_stack if available_p is not set.
6255
6256 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6257
6258         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6259         fields.
6260         (aarch64_scan_prologue): Set prev_pc.
6261         (aarch64_make_prologue_cache): Set func.
6262         (aarch64_make_stub_cache): Set prev_pc.
6263         (aarch64_prologue_this_id): Remove local variables id, pc and
6264         func.  Read prev_pc and func from cache.
6265         (aarch64_stub_this_id): Read prev_pc from cache.
6266
6267 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6268
6269         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6270         argument this_cache.  Remove unused local variables reg and
6271         unwound_fp.  Return early if this_cache is already set.  Set
6272         this_cache.
6273         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6274
6275 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6276
6277         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6278         New argument this_cache.  Return early if this_cache is already
6279         set.  Set this_cache.
6280         (aarch64_prologue_this_id): Update call to
6281         aarch64_make_prologue_cache.
6282         (aarch64_prologue_prev_register): Likewise.
6283         (aarch64_normal_frame_base): Likewise.
6284
6285 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6286
6287         * c-valprint.c (c_val_print): Factor out memberptr printing code
6288         from c_val_print to ...
6289         (c_val_print_memberptr): ... this new function.
6290
6291 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6292
6293         * c-valprint.c (c_val_print): Factor out int printing code to ...
6294         (c_val_print_int): ... this new function.
6295
6296 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6297
6298         * c-valprint.c (c_val_print): Factor out struct and union
6299         printing code to ...
6300         (c_val_print_struct): ... this new function ...
6301         (c_val_print_union): ... and this new function.
6302
6303 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6304
6305         * c-valprint.c (c_val_print): Factor out pointer printing code
6306         to ...
6307         (c_val_print_ptr): ... this new function.
6308
6309 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6310
6311         * c-valprint.c (c_valprint): Factor our array printing code from
6312         c_val_print to ...
6313         (c_val_print_array): ... this new function.
6314
6315 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6316
6317         * c-valprint.c (c_val_print): Factor out pointer printing code
6318         to ...
6319         (print_unpacked_pointer): ... this new function.
6320
6321 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6322
6323         * c-valprint.c (c_val_print): Remove an assignment to i and move
6324         its declaration.
6325
6326 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6327
6328         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6329         argument ptid.  Update comments.  Caller update.
6330
6331 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6332
6333         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6334         mnt packets.
6335
6336 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6337
6338         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6339
6340 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6341
6342         * progspace.c (delete_program_space): Add missing spaces.
6343
6344 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6345
6346         * inferior.c (delete_inferior_1): Rename to ...
6347         (delete_inferior): ..., remove 'silent' parameter, delete
6348         program space when unused and remove call to prune_program_spaces.
6349         Remove the old, unused, delete_inferior.
6350         (delete_inferior_silent): Remove.
6351         (prune_inferiors): Change call from delete_inferior_1 to
6352         delete_inferior and remove 'silent' parameter. Remove call to
6353         prune_program_spaces.
6354         (remove_inferior_command): Idem.
6355         * inferior.h (delete_inferior_1): Rename to...
6356         (delete_inferior): ..., remove 'silent' parameter and remove the
6357         original delete_inferior.
6358         (delete_inferior_silent): Remove.
6359         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6360         delete_inferior_1 to delete_inferior and remove 'silent'
6361         parameter.
6362         * progspace.c (prune_program_spaces): Remove.
6363         (pspace_empty_p): Rename to...
6364         (program_space_empty_p): ... and make non-static.
6365         (delete_program_space): New.
6366         * progspace.h (prune_program_spaces): Remove declaration.
6367         (program_space_empty_p): New declaration.
6368         (delete_program_space): New declaration.
6369         * monitor.c (monitor_close): Replace call to
6370         delete_thread_silent and delete_inferior_silent with
6371         discard_all_inferiors.
6372
6373 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6374
6375         * defs.h (deprecated_register_changed_hook): Remove prototype.
6376         * interps.c (clear_iterpreter_hooks): Remove reference to
6377         deprecated_register_changed_hook.
6378         * top.c (deprecated_register_changed_hook): Remove prototype.
6379         * valops.c (value_assign): Remove reference to
6380         deprecated_register_changed_hook.
6381         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6382         Add comment documenting the function.
6383         (tui_register_changed_observer): Define.
6384         (tui_install_hooks): Remove reference to
6385         deprecated_register_changed_hook.  Set
6386         tui_register_changed_observer.
6387         (tui_remove_hooks): Remove reference to
6388         deprecated_register_changed_hook.  Unset
6389         tui_register_changed_observer.
6390
6391 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6392
6393         PR compile/18484
6394         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6395
6396 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6397
6398         PR exp/18617
6399         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6400
6401 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6402
6403         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6404
6405 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6406
6407         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6408         Use safe_strerror() instead of strerror().
6409
6410 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6411
6412         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6413         * features/arm-with-m-fpa-layout.c: Regenerated.
6414         * features/arm-with-m-vfp-d16.xml: Likewise.
6415         * features/arm-with-m-vfp-d16.c: Regenerated.
6416         * features/arm-with-m.xml: Likewise.
6417         * features/arm-with-m.c: Regenerated.
6418         * features/arm-with-neon.xml: Likewise.
6419         * features/arm-with-neon.c: Regenerated.
6420         * features/arm-with-vfpv2.xml: Likewise.
6421         * features/arm-with-vfpv2.c: Regenerated.
6422         * features/arm-with-vfpv3.xml: Likewise.
6423         * features/arm-with-vfpv3.c: Regenerated.
6424
6425 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6426
6427         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6428         arm-linux-nat.c.
6429         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6430         elf/external.h.
6431         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6432         if target is 32-bit.
6433         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6434         if target is 32-bit.
6435         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6436         if target is 32-bit.
6437         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6438         if target is 32-bit.
6439         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6440         (aarch64_linux_read_description): Return the right target
6441         description.
6442         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6443         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6444         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6445         arm-linux-tdep.o.
6446
6447 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6448
6449         * aarch32-linux-nat.c: New file.
6450         * aarch32-linux-nat.h: New file.
6451         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6452         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6453         aarch32_gp_regcache_supply.
6454         (store_regs): Move code to aarch32-linux-nat.c.  Call
6455         aarch32_gp_regcache_collect.
6456         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6457         aarch32_vfp_regcache_supply.
6458         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6459         aarch32_vfp_regcache_collect.
6460         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6461
6462 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6463
6464         * arm-linux-nat.c (store_fpregister): Remove.
6465         (store_register): Likewise.
6466         (fetch_fpregister): Likewise.
6467         (fetch_register): Likewise.
6468         (arm_linux_store_inferior_registers): Call store_regs and
6469         store_fpregs instead.
6470         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6471         fetch_regs instead.
6472
6473 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6474
6475         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6476         and focus commands.
6477
6478 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6479
6480         * NEWS: Create a new section for the next release branch.
6481         Rename the section of the current branch, now that it has
6482         been cut.
6483
6484 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6485
6486         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6487         * version.in: Bump version to 7.10.50.DATE-cvs.
6488
6489 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6490
6491         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6492         breakpoints in a special way.
6493         (remove_breakpoint): Likewise.
6494         (mark_breakpoints_out): Likewise.
6495
6496 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6497
6498         * doc/gdb.texinfo (TUI): Add comma after @xref.
6499
6500 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6501
6502         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6503         instead of casting the structure type.
6504
6505 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6506
6507         * valops.c (search_struct_field): Remove OFFSET parameter.
6508         (value_cast_structs): Adjust calls to search_struct_field.
6509         (value_struct_elt): Same.
6510         (find_overload_match): Same.
6511
6512 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6513
6514         * value.c (value_fetch_lazy): Update comment, change return
6515         value to void.
6516         * value.h (value_fetch_lazy): Change return value to void.
6517
6518 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6519
6520         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6521         (tui_win_name): Make parameter and result const.
6522         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6523
6524 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6525
6526         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6527         use printf_unfiltered.
6528         (set_mpx_cmd): Add missing trailing space to command string
6529         literal.
6530         (_initialize_i386_tdep): Give the "mpx" prefix command its
6531         correct name.
6532
6533 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6534
6535         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6536         (enum rx_frame_type): New.
6537         (struct rx_prologue): Add new field `frame_type'.
6538         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6539         parameter in the prologue struct.  Add code for recording
6540         locations of PC and PSW for fast interrupt and exception frames.
6541         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6542         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6543         (rx_frame_type): New function.
6544         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6545         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6546         `this_cache'.
6547         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6548         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6549         RX_FRAME_TYPE_FAST_INTERRUPT.
6550         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6551         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6552         (rx_frame_unwind): Use rx_frame_sniffer instead of
6553         default_frame_sniffer.
6554         (rx_frame_unwind): New unwinder.
6555         (rx_gdbarch_init): Register new unwinder.
6556
6557 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6558
6559         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6560         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6561         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6562         and RX_FPSW_REGNUM.
6563         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6564
6565 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6566
6567         Fix GCC false warning.
6568         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6569
6570 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6571
6572         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6573         typo in the debugging message.
6574
6575 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6576
6577         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6578         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6579         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6580         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6581         (btrace_maint_clear): New.
6582         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6583         (pt_print_packet, btrace_maint_decode_pt)
6584         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6585         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6586         (maint_btrace_packet_history_cmd)
6587         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6588         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6589         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6590         (maint_info_btrace_cmd, _initialize_btrace): New.
6591         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6592         (btrace_maint_packet_history, btrace_maint_info): New.
6593         (btrace_thread_info) <maint>: New.
6594         * NEWS: Announce it.
6595
6596 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6597
6598         * btrace.c (btrace_fetch): Append the new trace data.
6599         (btrace_clear): Clear the stored trace data.
6600         * btrace.h (btrace_thread_info) <data>: New.
6601         * common/btrace-common.h (btrace_data_clear)
6602         (btrace_data_append): New.
6603         * common/btrace-common.c (btrace_data_clear)
6604         (btrace_data_append): New.
6605
6606 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6607
6608         * nat/linux-btrace.c (linux_enable_bts): Check for
6609         PERF_ATTR_SIZE_VER5.
6610         Check for data_offset and data_size fields.  Use them.
6611
6612 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6613
6614         * NEWS: Announce new commands "record btrace pt" and "record pt".
6615         Announce new options "set|show record btrace pt buffer-size".
6616         * btrace.c: Include "rsp-low.h".
6617         Include "inttypes.h".
6618         (btrace_add_pc): Add forward declaration.
6619         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6620         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6621         (btrace_compute_ftrace_pt): New.
6622         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6623         (check_xml_btrace_version): Update version check.
6624         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6625         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6626         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6627         (btrace_pt_children): New.
6628         (btrace_children): Add support for "pt".
6629         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6630         (btrace_conf_children): Add support for "pt".
6631         * btrace.h: Include "intel-pt.h".
6632         (btrace_pt_error): New.
6633         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6634         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6635         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6636         (struct btrace_config_pt): New.
6637         (struct btrace_config)<pt>: New.
6638         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6639         (struct btrace_data)<pt>: New.
6640         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6641         (pt): New.
6642         * features/btrace.dtd (btrace)<pt>: New.
6643         (pt, pt-config, cpu): New.
6644         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6645         (perf_event_pt_event_type, kernel_supports_pt)
6646         (linux_supports_pt): New.
6647         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6648         (linux_enable_bts): Free tinfo on error.
6649         (linux_enable_pt): New.
6650         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6651         (linux_disable_pt): New.
6652         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6653         (linux_fill_btrace_pt_config, linux_read_pt): New.
6654         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6655         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6656         (struct btrace_target_info)<pt>: New.
6657         * record-btrace.c (set_record_btrace_pt_cmdlist)
6658         (show_record_btrace_pt_cmdlist): New.
6659         (record_btrace_print_pt_conf): New.
6660         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6661         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6662         (cmd_record_btrace_pt_start): New.
6663         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6664         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6665         (_initialize_record_btrace): Add new commands.
6666         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6667         (remote_protocol_features): Add "Qbtrace:pt".
6668         Add "Qbtrace-conf:pt:size".
6669         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6670         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6671         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6672         (_initialize_remote): Add new commands.
6673
6674 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6675
6676         * configure.ac: check for libipt
6677         * configure: Regenerate.
6678         * config.in: Regenerate.
6679         * Makefile.in (LIBIPT): New.
6680         (CLIBS): Add $LIBIPT.
6681         * NEWS: document new configure options
6682
6683 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6684
6685         * compile/compile-object-load.c (compile_object_load): Replace debug
6686         message "lookup undefined ELF symbol" by 3 more specific messages.
6687
6688 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6689
6690         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6691         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6692         (rl78_gdbarch_init): Initialize rl78_psw_type.
6693
6694 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6695
6696         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6697         Update commentary.  Always refresh the registers when frame
6698         information has changed.
6699         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6700         Change return type to int.  Return 1 if frame information has
6701         changed, 0 otherwise.
6702         (tui_before_prompt): Update commentary.
6703         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6704         int.
6705
6706 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6707
6708         PR tui/13378
6709         * frame.c (select_frame): Remove reference to
6710         deprecated_selected_frame_level_changed_hook.
6711         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6712         declaration.
6713         * stack.c (deprecated_selected_frame_level_changed_hook):
6714         Likewise.
6715         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6716         Rename to ...
6717         (tui_refresh_frame_and_register_information): ... this.  Bail
6718         out if there is no stack.  Don't update register information
6719         unless registers_too_p is true.
6720         (tui_print_frame_info_listing_hook): Rename to ...
6721         (tui_dummy_print_frame_info_listing_hook): ... this.
6722         (tui_before_prompt): New function.
6723         (tui_normal_stop): New function.
6724         (tui_before_prompt_observer): New observer.
6725         (tui_normal_stop_observer): New observer.
6726         (tui_install_hooks): Set
6727         deprecated_print_frame_info_listing_hook to
6728         tui_dummy_print_frame_info_listing_hook.  Register
6729         tui_before_prompt_observer to call tui_before_prompt and
6730         tui_normal_stop_observer to call tui_normal_stop.  Remove
6731         reference to deprecated_selected_frame_level_changed_hook.
6732         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6733         and tui_normal_stop_observer.  Remove reference to
6734         deprecated_selected_frame_level_changed_hook.
6735
6736 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6737
6738         PR tui/13378
6739         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6740         return an int instead of void.  Return whether the locator
6741         window has changed.
6742         (tui_show_frame_info): If the locator info has not changed, then
6743         bail out early to avoid refreshing the windows.
6744
6745 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6746
6747         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6748         LOCATOR_WIN to tui_alloc_content.
6749
6750 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6751
6752         PR tdep/18605
6753         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6754         instructions.
6755
6756 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6757
6758         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6759         (rx_dwarf_reg_to_regnum): New function.
6760         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6761         unwinding.
6762
6763 2015-06-29  Pedro Alves  <palves@redhat.com>
6764
6765         PR threads/18127
6766         * infcall.c (run_inferior_call): On infcall success, if the thread
6767         was marked stopped before, reset it back to stopped.
6768         * infrun.c (resume): Don't suppress the set_running calls when
6769         doing an infcall.
6770         (normal_stop): Only discard the finish_thread_state cleanup if the
6771         infcall succeeded.
6772
6773 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6774
6775         * MAINTAINERS (Write After Approval): Update my email address.
6776
6777 2015-06-26  Keith Seitz  <keiths@redhat.com>
6778             Doug Evans  <dje@google.com>
6779
6780         PR 16253
6781         * block.c (block_lookup_symbol): For non-function blocks,
6782         continue to search for a symbol with an exact domain match
6783         Otherwise, return any previously found "best domain" symbol.
6784         (block_lookup_symbol_primary): Likewise.
6785
6786 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6787
6788         * NEWS: Mention the new option "history remove-duplicates".
6789         * top.c (history_remove_duplicates): New static variable.
6790         (show_history_remove_duplicates): New static function.
6791         (gdb_add_history): Conditionally remove duplicate history
6792         entries.
6793         (init_main): Add "history remove-duplicates" option.
6794
6795 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6796
6797         * tui/tui-win.c (focus_completer): New static function.
6798         (_initialize_tui_win): Set the completion function of the
6799         "focus" command to focus_completer.
6800
6801 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6802
6803         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6804         and language_asm..
6805         * symtab.c (find_function_start_sal): Likewise.
6806
6807 2015-06-25  Gary Benson  <gbenson@redhat.com>
6808
6809         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6810         it is the empty string after trailing slashes have been stripped.
6811
6812 2015-06-25  Gary Benson  <gbenson@redhat.com>
6813
6814         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6815         * infrun.c (follow_exec): Likewise.
6816         * remote.c (remote_filesystem_is_local): Likewise.
6817         * solib.c (solib_find_1): Likewise.
6818
6819 2015-06-24  Keith Seitz  <keiths@redhat.com>
6820
6821         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6822         return value from lrealpath.
6823
6824 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6825
6826         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6827
6828 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6829
6830         * remote-sim.c: Include gdb_bfd.h.
6831         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6832         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6833
6834 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6835
6836         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6837         set_gdbarch_get_siginfo_type.
6838         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6839         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6840         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6841         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6842         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6843         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6844         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6845         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6846         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6847         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6848
6849 2015-06-24  Gary Benson  <gbenson@redhat.com>
6850
6851         * common/buffer.c (stdint.h): Do not include.
6852         * common/print-utils.c (stdint.h): Likewise.
6853         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6854         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6855         * ft32-tdep.c (gdb_assert.h): Likewise.
6856         * guile/scm-utils.c (stdint.h): Likewise.
6857         * i386-linux-tdep.c (stdint.h): Likewise.
6858         * i386-tdep.c (stdint.h): Likewise.
6859         * nat/linux-btrace.c (stdint.h): Likewise.
6860         * nat/linux-btrace.h (stdint.h): Likewise.
6861         * nat/linux-ptrace.c (stdint.h): Likewise.
6862         * nat/mips-linux-watch.h (stdint.h): Likewise.
6863         * ppc-linux-nat.c (stdint.h): Likewise.
6864         * python/python-internal.h (stdint.h): Likewise.
6865         * stub-termcap.c (stdlib.h): Likewise.
6866         * target/target.h (stdint.h): Likewise.
6867         * xtensa-linux-nat.c (stdint.h): Likewise.
6868
6869 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6870
6871         * top.c (init_history): Look at errno after calling strtol to
6872         properly map large GDBHISTSIZE values to infinity.
6873
6874 2015-06-23  Doug Evans  <dje@google.com>
6875
6876         * inferior.h (struct inferior_suspend_state): Delete, unused.
6877         All references deleted.
6878
6879 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6880
6881         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6882         (microblaze_push_dummy_call): Likewise.
6883         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6884         and set_gdbarch_push_dummy_call.
6885
6886 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6887
6888         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6889         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6890         (amd64_linux_store_inferior_registers): Likewise.
6891         * arm-linux-nat.c (fetch_fpregister): Likewise.
6892         (fetch_fpregs, store_fpregister): Likewise.
6893         (store_fpregister, store_fpregs): Likewise.
6894         (fetch_register, fetch_regs): Likewise.
6895         (store_register, store_regs): Likewise.
6896         (fetch_vfp_regs, store_vfp_regs): Likewise.
6897         (arm_linux_read_description): Check have_ptrace_getregset is
6898         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
6899         or TRIBOOL_FALSE.
6900         * i386-linux-nat.c (fetch_xstateregs): Check
6901         have_ptrace_getregset is not TRIBOOL_TRUE.
6902         (store_xstateregs): Likewise.
6903         * linux-nat.c (have_ptrace_getregset): Change its type to
6904         enum tribool.
6905         * linux-nat.h (tribool): New enum.
6906         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6907         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6908
6909 2015-06-19  Doug Evans  <dje@google.com>
6910
6911         * NEWS: Mention Sun's version of stabs is no longer supported.
6912         * elfread.c (free_elfinfo): Delete.  All uses updated.
6913         (elfstab_offset_sections): Delete.  All uses updated.
6914         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
6915         * psympriv.h (partial_symtab) <section_offsets>: Delete.
6916         All uses updated.
6917         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6918         All callers updated.
6919
6920 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
6921
6922         * common/rsp-low.c (needs_escaping): New.
6923         (remote_escape_output): Add unit_size parameter. Refactor to
6924         support multi-byte addressable units.  Rename parameters.
6925         * common/rsp-low.h (remote_escape_output): Add unit_size
6926         parameter and rename others. Update doc.
6927         * remote.c (align_for_efficient_write): New.
6928         (remote_write_bytes_aux): Add unit_size parameter and use it.
6929         Rename some variables.  Update doc.
6930         (remote_xfer_partial): Get unit size and use it.
6931         (remote_read_bytes_1): Add unit_size parameter and use it.
6932         Rename some variables. Update doc.
6933         (remote_write_bytes): Same.
6934         (remote_xfer_live_readonly_partial): Same.
6935         (remote_read_bytes): Same.
6936         (remote_flash_write): Update call to remote_write_bytes_aux.
6937         (remote_write_qxfer): Update call to remote_escape_output.
6938         (remote_search_memory): Same.
6939         (remote_hostio_pwrite): Same.
6940
6941 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6942
6943         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6944         locations as inserted.
6945         Update and expand comment about permanent locations.
6946         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6947         Move comment to add_location_to_breakpoint.
6948         (update_global_location_list): Don't error out if a permanent
6949         breakpoint is not marked inserted.
6950         Don't error out if a non-permanent breakpoint location is inserted on
6951         top of a permanent breakpoint.
6952
6953 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6954
6955         * breakpoint.c (make_breakpoint_permanent): Remove unused
6956         function.
6957         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6958
6959 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6960
6961         PR gdb/16999
6962         * NEWS: Mention new GDBHISTSIZE behavior.
6963         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6964         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
6965
6966 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6967
6968         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6969         * top.c (init_history): Read from GDBHISTSIZE instead of
6970         HISTSIZE.
6971         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6972
6973 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6974
6975         * top.c (gdb_safe_append_history): Do not call
6976         history_truncate_file if the history is not stifled.
6977
6978 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6979
6980         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6981         * syscalls/s390x-linux.xml: Likewise.
6982
6983 2015-06-16  Michael Eager  <eager@eagercon.com>
6984
6985         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6986
6987 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
6988
6989         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6990         target_terminal_ours_for_output() before calling
6991         tui_show_frame_info(), and restore the original terminal
6992         settings afterwards.
6993
6994 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
6995
6996         * arm-linux-nat.c: Include nat/linux-ptrace.h.
6997
6998 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6999
7000         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7001         memory unit size.
7002         (mi_cmd_data_write_memory_bytes): Same.
7003
7004 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7005
7006         * corefile.c (write_memory): Update doc.
7007         * gdbcore.h (write_memory): Same.
7008
7009 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7010
7011         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7012         (dump_mapping_p): Use it for parameter filterflags.
7013         (linux_find_memory_regions_full): Use it for variable filterflags.
7014
7015 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7016             Jan Kratochvil  <jan.kratochvil@redhat.com>
7017
7018         Merge multiple hex conversions.
7019         * monitor.c: Include rsp-low.h.
7020         (fromhex): Remove definition.
7021
7022 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7023             Jan Kratochvil  <jan.kratochvil@redhat.com>
7024
7025         Move utility functions to common/.
7026         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7027         Move defs to common/common-utils.c.
7028         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7029         (skip_to_space_const): Move decls to common/common-utils.h.
7030         * common/common-defs.h: Move include of common-types.h before
7031         common-utils.h.
7032         * common/common-utils.c: Include host-defs.h and ctype.h.
7033         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7034         from utils.c.
7035         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7036         cli/cli-utils.c.
7037         * common/common-utils.h (strtoulst): Move decl from utils.h.
7038         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7039         Move from cli/cli-utils.h.
7040         * common/host-defs.h: Include limits.h.
7041         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7042         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7043         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7044         common/common-utils.h.
7045         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7046         (strtoulst): Move to common/common-utils.c.
7047         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7048
7049 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7050
7051         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7052
7053 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7054
7055         * build-id.c: Don't include elf-bfd.h.
7056         (build_id_bfd_get): Use bfd_build_id.
7057         (build_id_verify): Ditto.
7058         * build-id.h: Ditto.
7059         (find_separate_debug_file_by_buildid): Ditto.
7060         * python/py-objfile.c: Don't include elf-bfd.h.
7061         (objfpy_get_build_id) Use bfd_build_id.
7062         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7063         * coffread.c: Include build-id.h.
7064         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7065
7066 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7067
7068         * windows-nat.c (do_windows_fetch_inferior_registers)
7069         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7070         conditional with __CYGWIN__.
7071
7072 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7073
7074         * completer.c: Add arch-utils.h include.
7075         (enum reg_completer_targets): New enum.
7076         (reg_or_group_completer_1): New function containing old
7077         reg_or_group_completer, add and use new parameter to control what
7078         is completed on.  Use get_current_arch rather than architecture of
7079         currently selected frame.
7080         (reg_or_group_completer): Call new reg_or_group_completer_1.
7081         (reggroup_completer): Call new reg_or_group_completer_1.
7082         * completer.h (reggroup_completer): Add declaration.
7083         * tui/tui-regs.c: Add 'completer.h' include.
7084         (tui_reg_next_command): Renamed to...
7085         (tui_reg_next): ...this.  Adjust parameters and return rather than
7086         display new group.
7087         (tui_reg_prev_command): Renamed to...
7088         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7089         display new group.
7090         (tui_reg_float_command): Delete.
7091         (tui_reg_general_command): Delete.
7092         (tui_reg_system_command): Delete.
7093         (tui_reg_command): Rewrite to perform switching of register group.
7094         Add header comment.
7095         (tuireglist): Remove.
7096         (tui_reggroup_completer): New function.
7097         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7098         creation of 'tui reg' command.
7099         * NEWS: Add comment about 'tui reg' changes.
7100
7101 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7102
7103         * target.c (target_read): Consider addressable unit size when
7104         reading from a memory object.
7105         (read_memory_robust): Same.
7106         (read_whatever_is_readable): Same.
7107         (target_write_with_progress): Consider addressable unit size
7108         when writing to a memory object.
7109         * target.h (target_read): Update documentation.
7110         (target_write): Add documentation.
7111
7112 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7113
7114         * arch-utils.h (default_addressable_memory_unit_size): New.
7115         * arch-utils.c (default_addressable_memory_unit_size): New.
7116         * gdbarch.sh (addressable_memory_unit_size): New.
7117         * gdbarch.h: Re-generate.
7118         * gdbarch.c: Re-generate.
7119
7120 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7121
7122         * target.c (target_read): Rename variables and use
7123         TARGET_XFER_E_IO.
7124         (target_read_with_progress): Same.
7125         (read_memory_robust): Constify parameters and rename
7126         variables.
7127         (read_whatever_is_readable): Constify parameters,
7128         rename variables, adjust formatting.
7129         * target.h (read_memory_robust): Constify parameters.
7130
7131 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7132
7133         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7134         synthetic (non-AltiVec) vector types.
7135         (ppc64_sysv_abi_return_value): Likewise.
7136
7137 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7138
7139         PR breakpoints/16465
7140         * breakpoint.c (create_breakpoint): Save extra_string for
7141         pending breakpoints.
7142
7143 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7144
7145         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7146         and bt_mask to CORE_ADDR.
7147
7148 2015-06-11  Gary Benson <gbenson@redhat.com>
7149
7150         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7151         (mnsh_recv_message): Likewise.
7152
7153 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7154
7155         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7156         long long int and plongest instead of %ll.
7157
7158 2015-06-11  Gary Benson <gbenson@redhat.com>
7159
7160         * nat/linux-namespaces.c (gdb_wait.h): New include.
7161         (sys/wait.h): Do not include.
7162
7163 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7164
7165         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7166         end_sequence is true.
7167
7168 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7169
7170         Code cleanup.
7171         * solib-target.c (library_list_start_list): Use explicit NULL
7172         comparison.
7173
7174 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7175
7176         * solib-target.c (library_list_start_list): Do not dereference
7177         variable version in its initialization.  Make the VERSION check handle
7178         NULL.
7179         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7180
7181 2015-06-10  Gary Benson <gbenson@redhat.com>
7182
7183         * NEWS: Announce support for direct access of executable and
7184         shared library files when attaching to inferiors in containers
7185         on GNU/Linux systems.
7186
7187 2015-06-10  Gary Benson <gbenson@redhat.com>
7188
7189         * remote.c (struct remote_state) <fs_pid>: New field.
7190         (new_remote_state): Initialize the above.
7191         (PACKET_vFile_setfs): New enum value.
7192         (remote_hostio_set_filesystem): New function.
7193         (remote_hostio_open): Call the above.
7194         (remote_hostio_unlink): Likewise.
7195         (remote_hostio_readlink): Likewise.
7196         (_initialize_remote): Register new "set/show remote
7197         hostio-setfs-packet" command.
7198         * NEWS: Announce new vFile:setfs packet.
7199
7200 2015-06-10  Gary Benson <gbenson@redhat.com>
7201
7202         * linux-nat.c (nat/linux-namespaces.h): New include.
7203         (fileio.h): Likewise.
7204         (linux_nat_filesystem_is_local): New function.
7205         (linux_nat_fileio_pid_of): Likewise.
7206         (linux_nat_fileio_open): Likewise.
7207         (linux_nat_fileio_readlink): Likewise.
7208         (linux_nat_fileio_unlink): Likewise.
7209         (linux_nat_add_target): Initialize to_filesystem_is_local,
7210         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7211         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7212         commands.
7213         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7214
7215 2015-06-10  Gary Benson <gbenson@redhat.com>
7216
7217         * target.h (struct inferior): New forward declaration.
7218         (struct target_ops) <to_filesystem_is_local>: Update comment.
7219         (struct target_ops) <to_fileio_open>: New argument inf.
7220         Update comment.  All implementations updated.
7221         (struct target_ops) <to_fileio_unlink>: Likewise.
7222         (struct target_ops) <to_fileio_readlink>: Likewise.
7223         (target_filesystem_is_local): Update comment.
7224         (target_fileio_open): New argument inf.  Update comment.
7225         (target_fileio_unlink): Likewise.
7226         (target_fileio_readlink): Likewise.
7227         (target_fileio_read_alloc): Likewise.
7228         (target_fileio_read_stralloc): Likewise.
7229         * target.c (target_fileio_open): New argument inf.
7230         Pass inf to implementation.  Update debug printing.
7231         (target_fileio_unlink): Likewise.
7232         (target_fileio_readlink): Likewise.
7233         (target_fileio_read_alloc_1): New argument inf. Pass inf
7234         to target_fileio_open.
7235         (target_fileio_read_alloc): New argument inf. Pass inf to
7236         target_fileio_read_alloc_1.
7237         (target_fileio_read_stralloc): Likewise.
7238         * gdb_bfd.c (inferior.h): New include.
7239         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7240         argument with new argument "inferior".  Pass inferior to
7241         target_fileio_open.
7242         (gdb_bfd_open): Supply inferior argument to
7243         gdb_bfd_iovec_fileio_open.
7244         * linux-tdep.c (linux_info_proc): Supply inf argument to
7245         relevant target_fileio calls.
7246         (linux_find_memory_regions_full): Likewise.
7247         (linux_fill_prpsinfo): Likewise.
7248         * remote.c (remote_filesystem_is_local): Supply inf
7249         argument to remote_hostio_open.
7250         (remote_file_put): Likewise.
7251         (remote_file_get): Likewise.
7252         (remote_file_delete): Supply inf argument to
7253         remote_hostio_unlink.
7254
7255 2015-06-10  Gary Benson <gbenson@redhat.com>
7256
7257         * inf-child.c (inf_child_fileio_open): Replace comment.
7258         (inf_child_fileio_pwrite): Likewise.
7259         (inf_child_fileio_pread): Likewise.
7260         (inf_child_fileio_fstat): Insert blank line before comment.
7261         (inf_child_fileio_close): Replace comment.
7262         (inf_child_fileio_unlink): Likewise.
7263         (inf_child_fileio_readlink): Likewise.
7264         * remote.c (remote_hostio_open): Likewise.
7265         (remote_hostio_pread): Likewise.
7266         (remote_hostio_pwrite): Likewise.
7267         (remote_hostio_close): Likewise.
7268         (remote_hostio_unlink): Likewise.
7269         (remote_hostio_readlink): Likewise.
7270         (remote_hostio_fstat): Likewise.
7271         (remote_filesystem_is_local): Likewise.
7272         * target.c (target_fileio_open): Likewise.
7273         (target_fileio_pwrite): Likewise.
7274         (target_fileio_pread): Likewise.
7275         (target_fileio_fstat): Insert blank line before comment.
7276         (target_fileio_close): Replace comment.
7277         (target_fileio_unlink): Likewise.
7278         (target_fileio_readlink): Likewise.
7279         (target_fileio_read_alloc): Likewise.
7280         (target_fileio_read_stralloc): Likewise.
7281
7282 2015-06-10  Gary Benson <gbenson@redhat.com>
7283
7284         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7285         (check_pid_namespace_match): Use linux_ns_same rather than
7286         linux_proc_pid_get_ns to spot PID namespace mismatches.
7287         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7288         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7289
7290 2015-06-10  Gary Benson <gbenson@redhat.com>
7291
7292         * configure.ac (AC_CHECK_FUNCS): Add setns.
7293         * config.in: Regenerate.
7294         * configure: Likewise.
7295         * nat/linux-namespaces.h: New file.
7296         * nat/linux-namespaces.c: Likewise.
7297         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7298         (linux-namespaces.o): New rule.
7299         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7300         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7301         * config/arm/linux.mh (NATDEPFILES): Likewise.
7302         * config/i386/linux.mh (NATDEPFILES): Likewise.
7303         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7304         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7305         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7306         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7307         * config/mips/linux.mh (NATDEPFILES): Likewise.
7308         * config/pa/linux.mh (NATDEPFILES): Likewise.
7309         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7310         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7311         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7312         * config/s390/linux.mh (NATDEPFILES): Likewise.
7313         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7314         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7315         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7316         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7317
7318 2015-06-10  Gary Benson <gbenson@redhat.com>
7319
7320         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7321         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7322         (make_cleanup_close): Likewise.
7323         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7324         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7325         (make_cleanup_close): Likewise.
7326
7327 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7328
7329         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7330         from SuspendThread().
7331
7332 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7333
7334         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7335         from OutputDebugString.
7336
7337 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7338                         Mircea Gherzan  <mircea.gherzan@intel.com>
7339
7340         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7341         MPX_BT_MASK_32): New macros.
7342         (i386_mpx_set_bounds): New function that implements
7343         the command "set-mpx-bound".
7344         (i386_mpx_enabled): Helper function to test MPX availability.
7345         (i386_mpx_bd_base): Helper function to calculate the base directory
7346         address.
7347         (i386_mpx_get_bt_entry): Helper function to access a bound
7348         table entry.
7349         (i386_mpx_print_bounds): Effectively display bound information.
7350         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7351         "show mpx".
7352         (_initialize_i386_tdep):
7353         Add "bound" to the commands "show mpx" and "set mpx" commands.
7354         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7355         and "show mpx" commands.
7356         * NEWS: List new commands for MPX support.
7357
7358 2015-06-09  Gary Benson <gbenson@redhat.com>
7359
7360         * common/fileio.h (fileio_to_host_mode): New declaration.
7361         * common/fileio.c (fileio_to_host_mode): New Function.
7362         * inf-child.c (inf_child_fileio_open): Process mode argument
7363         with fileio_to_host_mode.
7364
7365 2015-06-09  Gary Benson <gbenson@redhat.com>
7366
7367         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7368         conditional.
7369
7370 2015-06-05  Gary Benson <gbenson@redhat.com>
7371
7372         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7373         * remote.c (remote_filesystem_is_local): ...here.
7374
7375 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7376
7377         * gdbarch.c: Regenerate it.
7378
7379 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7380
7381         * arch-utils.c (default_infcall_munmap): New.
7382         * arch-utils.h (default_infcall_munmap): New declaration.
7383         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7384         (munmap_list_free, munmap_listp_free_cleanup): New.
7385         (struct setup_sections_data): Add field munmap_list_headp.
7386         (setup_sections): Call munmap_list_add.
7387         (compile_object_load): New variable munmap_list_head, initialize
7388         setup_sections_data.munmap_list_headp, return munmap_list_head.
7389         * compile/compile-object-load.h (struct munmap_list): New declaration.
7390         (struct compile_module): Add field munmap_list_head.
7391         (munmap_list_free): New declaration.
7392         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7393         munmap_list_head.
7394         (do_module_cleanup): Call munmap_list_free.
7395         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7396         * gdbarch.c: Regenerate.
7397         * gdbarch.h: Regenerate.
7398         * gdbarch.sh (infcall_munmap): New.
7399         * linux-tdep.c (linux_infcall_munmap): New.
7400         (linux_init_abi): Install it.
7401
7402 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7403
7404         PR gdb/15564
7405         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7406
7407 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7408
7409         * i386-linux-nat.c: Include linux-nat.h.
7410
7411 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7412             Jan Kratochvil  <jan.kratochvil@redhat.com>
7413
7414         PR symtab/18392
7415         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7416         assertion.
7417         * dwarf2loc.c (chain_candidate): Likewise.
7418
7419 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7420
7421         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7422         (store_vfp_regs): Use PTRACE_SETREGSET.
7423
7424 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7425
7426         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7427         (fetch_fpregs): Likewise.
7428         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7429         (store_fpregs): Likewise.
7430
7431 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7432
7433         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7434         (fetch_regs): Likewise.
7435         (store_regs): Use PTRACE_SETREGSET.
7436         (store_register): Likewise.
7437
7438 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7439
7440         * arm-linux-nat.c (arm_linux_read_description): Check whether
7441         kernel supports PTRACE_GETREGSET.
7442
7443 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7444
7445         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7446         * linux-nat.c: ... here.
7447         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7448         to ...
7449         * linux-nat.h: ... here.
7450
7451 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7452
7453         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7454         * i386-linux-nat.c: Likewise.
7455         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7456         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7457         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7458         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7459         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7460
7461 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7462
7463         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7464         compatible to what read_child and write_child return.  This
7465         unbreaks that DJGPP build of GDB which was broken since v7.7.
7466
7467 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7468
7469         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7470
7471 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7472
7473         PR gdb/18464
7474         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7475         rather than internal_error for an unrecognized value.
7476
7477 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7478
7479         * xtensa-tdep.c (xtensa_pseudo_register_read)
7480         (xtensa_pseudo_register_write): Don't alias last pseudo register
7481         to a1.
7482
7483 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7484
7485         * infrun.c (follow_fork_inferior): Ensure the use of
7486         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7487         messages.
7488
7489 2015-05-28  Doug Evans  <dje@google.com>
7490
7491         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7492
7493 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7494
7495         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7496         (arm_linux_fetch_inferior_registers): Use
7497         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7498         (arm_linux_store_inferior_registers): Likewise.
7499         (arm_linux_read_description): Don't set
7500         arm_linux_has_wmmx_registers.
7501         * arm-tdep.c (arm_gdbarch_init): Set
7502         tdep->have_wmmx_registers according target descriptions.
7503         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7504         field.
7505
7506 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7507
7508         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7509         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7510         instead of arm_linux_vfp_register_count.
7511         (store_vfp_regs): Likewise.
7512         (arm_linux_fetch_inferior_registers): Likewise.
7513         (arm_linux_store_inferior_registers): Likewise.
7514         (arm_linux_read_description): Don't set
7515         arm_linux_vfp_register_count.
7516         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7517         Adjust.
7518         * arm-tdep.c (arm_gdbarch_init): Add assert on
7519         vfp_register_count.
7520         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7521         field to vfp_register_count.  All users updated.
7522
7523 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7524
7525         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7526         ELFOSABI_GNU binaries.
7527
7528 2015-05-27  Doug Evans  <dje@google.com>
7529
7530         * dwarf2read.c (lnp_state_machine): New typedef.
7531         (lnp_reader_state): New typedef.
7532         (dwarf_record_line_1): Renamed from dwarf_record_line.
7533         All callers updated.
7534         (dwarf_record_line): New function.
7535         (init_lnp_state_machine): New function.
7536         (check_line_address): Replace p_record_line parameter with state.
7537         All callers updated.
7538         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7539         Update to record state in lnp_state_machine.
7540
7541 2015-05-27  Doug Evans  <dje@google.com>
7542
7543         * dwarf2read.c (record_line_ftype): New typedef.
7544         (check_line_address): New function.
7545         (dwarf_decode_lines_1): Call it.
7546
7547 2015-05-27  Doug Evans  <dje@google.com>
7548
7549         * NEWS: Mention "set debug dwarf-line".
7550         * dwarf2read.c (dwarf_line_debug): New static global.
7551         (add_include_dir): Add debug dwarf-line support.
7552         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7553         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7554
7555 2015-05-27  Doug Evans  <dje@google.com>
7556
7557         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7558         All callers updated.
7559         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7560         * cp-support.h (cp_lookup_nested_symbol): Update.
7561
7562 2015-05-27  Doug Evans  <dje@google.com>
7563
7564         PR symtab/18258
7565         * block.c (block_find_symbol): New function.
7566         (block_find_non_opaque_type): Ditto.
7567         (block_find_non_opaque_type_preferred): Ditto.
7568         * block.h (block_symbol_matcher_ftype): New typedef.
7569         (block_find_symbol): Declare.
7570         (block_find_non_opaque_type): Ditto.
7571         (block_find_non_opaque_type_preferred): Ditto.
7572         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7573         * psymtab.c (psym_lookup_symbol): Ditto.
7574         * symtab.c (basic_lookup_transparent_type_1): New function.
7575         (basic_lookup_transparent_type): Call it.
7576
7577 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7578
7579         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7580         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7581
7582 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7583
7584         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7585         before operator &&.
7586         (aarch64_record_load_store): Likewise.
7587
7588 2015-05-26  Doug Evans  <dje@google.com>
7589
7590         PR c++/18141, c++/18417.
7591         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7592         a typedef.
7593
7594 2015-05-26  Doug Evans  <dje@google.com>
7595
7596         * NEWS: Add entries for command renamings.
7597         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7598         All uses updated.
7599         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7600         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7601         All uses updated.
7602         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7603         All callers updated.  Fix spelling of DWARF in help text.
7604         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7605         All uses updated.
7606         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7607         All uses updated.
7608         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7609         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7610         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7611         All uses updated.
7612         (show_dwarf_always_disassemble): Renamed from
7613         show_dwarf2_always_disassemble.  All callers updated.
7614         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7615         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7616         "set/show dwarf max-cache-age".  Rename
7617         "set/show dwarf2 always-disassemble" to
7618         "set/show dwarf always-disassemble".  Rename
7619         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7620         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7621
7622 2015-05-26  Doug Evans  <dje@google.com>
7623
7624         PR python/18438
7625         * python/py-lazy-string.c (stpy_convert_to_value): Use
7626         gdbpy_gdb_memory_error not PyExc_MemoryError.
7627         (gdbpy_create_lazy_string_object): Ditto.
7628
7629 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7630
7631         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7632
7633 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7634
7635         * tui/tui-regs.c (tui_reg_prev_command): New function.
7636         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7637         * reggroups.c (reggroup_prev): New function.
7638         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7639
7640 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7641             Yao Qi  <yao.qi@linaro.org>
7642
7643         * aarch64-linux-tdep.c: Include linux-record.h and
7644         record-full.h.
7645         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7646         (aarch64_syscall): New enum.
7647         (aarch64_canonicalize_syscall): New function.
7648         (aarch64_all_but_pc_registers_record): New function.
7649         (aarch64_linux_syscall_record): New function.
7650         (aarch64_linux_init_abi): Install AArch64 process record
7651         handler.  Update to handle syscall recording.
7652         * aarch64-tdep.c: Include record.h and record-full.h.
7653         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7654         (struct aarch64_mem_r): Define.
7655         (aarch64_record_result): New enum.
7656         (struct insn_decode_record): Define.
7657         (insn_decode_record): New typedef.
7658         (aarch64_record_data_proc_reg): New function.
7659         (aarch64_record_data_proc_imm): New function.
7660         (aarch64_record_branch_except_sys): New function.
7661         (aarch64_record_load_store): New function.
7662         (aarch64_record_data_proc_simd_fp): New function.
7663         (aarch64_record_asimd_load_store): New function.
7664         (aarch64_record_decode_insn_handler): New function.
7665         (deallocate_reg_mem): New function.
7666         (aarch64_process_record): New function.
7667         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7668         New field.
7669         (aarch64_process_record): New extern declaration.
7670         * configure.tgt: Add linux-record.o to gdb_target_obs.
7671         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7672
7673 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7674
7675         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7676         targets.
7677
7678 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7679
7680         * amd64-tdep.c: Replace in_function_epilogue_p with
7681         stack_frame_destroyed_p throughout.
7682         * arch-utils.c: Ditto.
7683         * arch-utils.h: Ditto.
7684         * arm-tdep.c: Ditto.
7685         * breakpoint.c: Ditto.
7686         * gdbarch.sh: Ditto.
7687         * hppa-tdep.c: Ditto.
7688         * i386-tdep.c: Ditto.
7689         * mips-tdep.c: Ditto.
7690         * nios2-tdep.c: Ditto.
7691         * rs6000-tdep.c: Ditto.
7692         * s390-linux-tdep.c: Ditto.
7693         * score-tdep.c: Ditto.
7694         * sh-tdep.c: Ditto.
7695         * sparc-tdep.c: Ditto.
7696         * sparc-tdep.h: Ditto.
7697         * sparc64-tdep.c: Ditto.
7698         * spu-tdep.c: Ditto.
7699         * tic6x-tdep.c: Ditto.
7700         * tilegx-tdep.c: Ditto.
7701         * xstormy16-tdep.c: Ditto.
7702         * gdbarch.c, gdbarch.h: Re-generated.
7703
7704 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7705
7706         * NEWS: Mention 'tui enable' and 'tui disable'.
7707         * tui/tui.c (tui_enable_command): New function.
7708         (tui_disable_command): New function.
7709         (_initialize_tui): New function.
7710
7711 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7712
7713         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7714
7715 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7716
7717         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7718         buf_ptr is freed.
7719
7720 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7721
7722         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7723         into ...
7724         (tui_set_layout_for_display_command): ...here, before calling
7725         tui_set_layout.  Only set the layout if gdb has not already
7726         entered the TUI_FAILURE state.
7727
7728 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7729
7730         * tui/tui-layout.c (layout_completer): New function.
7731         (_initialize_tui_layout): Set completer on layout command.
7732
7733 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7734
7735         * tui/tui-layout.c (tui_set_layout): Remove
7736         tui_register_display_type parameter.  Remove all checking of this
7737         parameter, and reindent function.  Update header comment.
7738         (tui_set_layout_for_display_command): Rename to...
7739         (tui_set_layout_by_name): ...this, and don't check for different
7740         register class types, don't pass a tui_register_display_type to
7741         tui_set_layout.  Update header comment.
7742         (layout_names): Remove register set specific names.
7743         * tui/tui-layout.h (tui_set_layout): Remove
7744         tui_register_display_type parameter.
7745         * tui/tui.c (tui_rl_change_windows): Don't pass a
7746         tui_register_display_type to tui_set_layout.
7747         (tui_rl_delete_other_windows): Likewise.
7748         (tui_enable): Likewise.
7749         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7750         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7751         (TUI_GENERAL_REGS_NAME): Remove.
7752         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7753         (TUI_SPECIAL_REGS_NAME): Remove.
7754         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7755         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7756         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7757         (enum tui_register_display_type): Remove.
7758         (struct tui_layout_def): Remove regs_display_type and
7759         float_regs_display_type fields.
7760         (struct tui_data_info): Remove regs_display_type field.
7761         (tui_layout_command): Use new name for
7762         tui_set_layout_for_display_command.
7763         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7764         (tui_clear_win_detail): Don't initialise removed fields of
7765         win_info.
7766         * tui/tui-regs.c (tui_show_registers): Use new name for
7767         tui_set_layout_for_display_command.
7768         * tui/tui.h (tui_set_layout_for_display_command): Rename
7769         declaration to...
7770         (tui_set_layout_by_name): ...this.
7771         * printcmd.c (display_command): Remove tui related layout call,
7772         and reindent.
7773
7774 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7775
7776         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7777         (handle_inferior_event): New function.
7778
7779 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7780
7781         * ada-lang.c (to_fixed_array_type): Rename local variable
7782         typename into type_name.
7783
7784 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7785
7786         Fix ASAN crash for gdb.compile/compile.exp.
7787         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7788
7789 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7790
7791         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7792         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7793         * compile/compile-object-load.c (setup_sections, compile_object_load):
7794         Likewise.
7795         * compile/compile.c (compile_to_object): Likewise.
7796
7797 2015-05-16  Doug Evans  <xdje42@gmail.com>
7798
7799         * NEWS: Mention support for unbuffered Guile memory ports.
7800         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7801         (ioscm_lseek_address): Improve overflow calculation.
7802         (gdbscm_memory_port_fill_input): Add assert.
7803         (gdbscm_memory_port_write): Handle unbuffered ports.
7804         Handle large writes identical to Guile's fport_write.
7805         (gdbscm_memory_port_seek): Fix seeking past end check.
7806         (gdbscm_memory_port_close): Handle closing unbuffered port.
7807         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7808         (ioscm_init_memory_port): Handle unbuffered ports.
7809         (ioscm_reinit_memory_port): Ditto.
7810         (ioscm_init_memory_port): Update size calculation.
7811         (gdbscm_open_memory): Support zero sized ports.
7812
7813 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7814
7815         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7816         variable compiler warnings.
7817
7818 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7819
7820         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7821
7822 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7823             Phil Muldoon  <pmuldoon@redhat.com>
7824
7825         * NEWS (Changes since GDB 7.9): Add compile print.
7826         * compile/compile-c-support.c (add_code_header, add_code_footer)
7827         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7828         COMPILE_I_PRINT_VALUE_SCOPE.
7829         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7830         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7831         New.
7832         * compile/compile-object-load.c: Include block.h.
7833         (get_out_value_type): New function.
7834         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7835         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7836         OUT_VALUE_TYPE.
7837         * compile/compile-object-load.h (struct compile_module): Add fields
7838         out_value_addr and out_value_type.
7839         * compile/compile-object-run.c: Include valprint.h and compile.h.
7840         (struct do_module_cleanup): Add fields out_value_addr and
7841         out_value_type.
7842         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7843         COMPILE_I_PRINT_VALUE_SCOPE.
7844         (compile_object_run): Propagate out_value_addr and out_value_type.
7845         Pass OUT_VALUE_ADDR.
7846         * compile/compile.c: Include valprint.h.
7847         (compile_print_value, compile_print_command): New functions.
7848         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7849         (_initialize_compile): Update compile code help text.  Install
7850         compile_print_command.
7851         * compile/compile.h (compile_print_value): New prototype.
7852         * defs.h (enum compile_i_scope_types): Add
7853         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7854
7855 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7856
7857         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7858         Rely on its parameter count.
7859         (compile_object_load): Replace lookup_minimal_symbol_text by
7860         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7861         return value.
7862         * compile/compile-object-load.h (struct compile_module): Replace
7863         func_addr by func_sym.
7864         * compile/compile-object-run.c: Include block.h.
7865         (compile_object_run): Reset module variable after it is freed.  Use
7866         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7867
7868 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7869
7870         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7871         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7872         (c_compute_program): Call generate_register_struct after typedefs.
7873         * compile/compile-loc2c.c (push, pushf_register_address)
7874         (pushf_register): Cast to GCC_UINTPTR.
7875         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7876         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7877         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7878         * compile/compile.c (_initialize_compile): Enable warnings for
7879         COMPILE_ARGS.
7880
7881 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7882
7883         * cli/cli-script.c (execute_control_command): Update
7884         eval_compile_command caller.
7885         * compile/compile-object-load.c (compile_object_load): Add parameters
7886         scope and scope_data.  Set them.
7887         * compile/compile-object-load.h (struct compile_module): Add fields
7888         scope and scope_data.
7889         (compile_object_load): Add parameters scope and scope_data.
7890         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7891         scope and scope_data.
7892         (compile_object_run): Propagate the fields scope and scope_data.
7893         * compile/compile.c (compile_file_command, compile_code_command):
7894         Update eval_compile_command callers.
7895         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
7896         * compile/compile.h (eval_compile_command): Add parameter scope_data.
7897         * defs.h (struct command_line): Add field scope_data.
7898
7899 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7900
7901         * printcmd.c (struct format_data): Move it to valprint.h.
7902         (print_command_parse_format, print_value): New functions from ...
7903         (print_command_1): ... here.  Call them.
7904         * valprint.h (struct format_data): Move it here from printcmd.c.
7905         (print_command_parse_format, print_value): New declarations.
7906
7907 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7908
7909         * compile/compile-object-load.c (compile_object_load): Add
7910         COMPILE_DEBUG message.
7911
7912 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7913
7914         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7915         index to get element instead of enum value.
7916         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7917         of index to compute length, but enum values to compute bounds.
7918         (ada_array_length): Use enum position of index instead of enum value.
7919         (pos_atr): Move position computation to...
7920         (ada_evaluate_subexp): Use enum values to compute bounds.
7921         * gdbtypes.c (discrete_position): ...this new function.
7922         * gdbtypes.h (discrete_position): New function declaration.
7923         * valprint.c (val_print_array_elements): Call discrete_position
7924         to handle array indexed by non-contiguous enumeration types.
7925
7926 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7927
7928         * ada-lang.c (find_parallel_type_by_descriptive_type):
7929         Go through typedefs during lookup.
7930         (to_fixed_array_type): Add support for non-bit packed arrays
7931         as variable-length fields.
7932
7933 2015-05-15  Pedro Alves  <palves@redhat.com>
7934             Simon Marchi  <simon.marchi@ericsson.com>
7935
7936         * event-loop.c (gdb_notifier) <next_file_handler,
7937         next_poll_fds_index>: New fields.
7938         (get_next_file_handler_to_handle_and_advance): New function.
7939         (delete_file_handler): If deleting the next file handler to
7940         handle, advance to the next file handler.
7941         (gdb_wait_for_event): Bail early if no event fired.  Poll file
7942         handlers in round-robin fashion.
7943
7944 2015-05-15  Pedro Alves  <palves@redhat.com>
7945
7946         * linux-tdep.c (linux_find_memory_regions_full): Rename local
7947         'private' to 'priv'.
7948
7949 2015-05-15  Pedro Alves  <palves@redhat.com>
7950
7951         * nat/linux-nat.h: Include "target/waitstatus.h".
7952
7953 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
7954
7955         * python/py-unwind.c (struct reg_info): Move out of ...
7956         (struct cached_frame_info): ... this scope.
7957         (pending_frame_object_type, unwind_info_object_type): Make extern.
7958
7959 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
7960
7961         * ada-lang.c (ada_value_primitive_packed_val): Make sure
7962         accumSize is never negative.
7963
7964 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
7965
7966         * tui/tui-command.c: Remove include of <ctype.h>.
7967         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7968
7969 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
7970
7971         * dwarf2read.c (die_needs_namespace): Return 1 for
7972         DW_TAG_inlined_subroutine.
7973
7974 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7975
7976         * regcache.c (regcache_cpy_no_passthrough): New declaration.
7977         (regcache_cpy_no_passthrough): Make it static, add function comment.
7978         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7979         (regcache_cpy_no_passthrough): Remove declaration.
7980
7981 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7982
7983         * gdbthread.h (struct thread_control_state): Update comment for
7984         proceed_to_finish.
7985         * infcall.c (run_inferior_call): Update comment about
7986         proceed_to_finish.
7987         * infcmd.c (get_return_value): Update comment about stop_registers.
7988         (finish_forward): Update comment about proceed_to_finish.
7989         * infrun.c (stop_registers): Remove.
7990         (clear_proceed_status, normal_stop): Remove stop_registers handling.
7991         * infrun.h (stop_registers): Remove.
7992
7993 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7994
7995         * infcall.c (struct dummy_frame_context_saver)
7996         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7997         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7998         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7999         New.
8000         (call_function_by_hand_dummy): Move discard_cleanups of
8001         inf_status_cleanup before dummy_frame_push.  Call
8002         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8003         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8004         * infcall.h (struct dummy_frame_context_saver)
8005         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8006         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8007         New declarations.
8008         * infcmd.c: Include infcall.h.
8009         (get_return_value): Add parameter ctx_saver, use it instead of
8010         stop_registers.
8011         (print_return_value): Add parameter ctx_saver, pass it.
8012         (struct finish_command_continuation_args): Add field ctx_saver.
8013         (finish_command_continuation): Update print_return_value caller.
8014         (finish_command_continuation_free_arg): Free also ctx_saver.
8015         (finish_forward): Call dummy_frame_context_saver_setup.
8016         * inferior.h (struct dummy_frame_context_saver): New declaration.
8017         (get_return_value): Add parameter ctx_saver.
8018         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8019         get_return_value caller.
8020
8021 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8022
8023         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8024         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8025         (remove_dummy_frame): Process dtor_list.
8026         (pop_dummy_frame): Process dtor_list.
8027         (register_dummy_frame_dtor): Maintain dtor_list.
8028         (find_dummy_frame_dtor): Handle dtor_list.
8029         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8030         Update comments.
8031
8032 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8033
8034         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8035         registers_valid.
8036         (compile_object_run): Update do_module_cleanup caller.
8037         * dummy-frame.c: Include infcall.h.
8038         (struct dummy_frame): Update dtor comment.
8039         (remove_dummy_frame): Call dtor.
8040         (pop_dummy_frame): Update dtor caller.
8041         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8042         registers_valid.
8043
8044 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8045
8046         GDB 7.9.1 released.
8047
8048 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8049
8050         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8051         Xmethods now being able to specify a result type to that new
8052         sectioin.
8053
8054 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8055
8056         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8057         first before resizing the window.
8058         * tui/tui.c (tui_enable): Likewise.
8059
8060 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8061
8062         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8063         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8064         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8065         dummy_dtor parameter.
8066         * infcall.h: Include dummy-frame.h.
8067         (call_function_by_hand_dummy_dtor_ftype): Remove.
8068         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8069         parameter.
8070
8071 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8072
8073         PR gdb/17820
8074         * top.c (history_size_setshow_var): Change type to signed.
8075         Initialize to -2.  Update documentation.
8076         (set_readline_history_size): Define.
8077         (set_history_size_command): Use it.  Remove logic for handling
8078         out-of-range sizes.
8079         (init_history): Use set_readline_history_size().  Test for a
8080         value of -2 instead of 0 when determining whether to set a
8081         default history size.
8082         (init_main): Decode the argument of the "size" command as a
8083         zuinteger_unlimited.
8084
8085 2015-05-12  Doug Evans  <dje@google.com>
8086
8087         * dwarf2read.c (struct file_entry): Tweak comments.
8088         (get_debug_line_section): Tweak comments.
8089
8090 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8091
8092         * NEWS: Announce fork support in the RSP and support
8093         for fork debugging in extended mode.
8094
8095 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8096
8097         * remote.c (remote_insert_fork_catchpoint): New function.
8098         (remote_remove_fork_catchpoint): New function.
8099         (remote_insert_vfork_catchpoint): New function.
8100         (remote_remove_vfork_catchpoint): New function.
8101         (pending_fork_parent_callback): New function.
8102         (remove_new_fork_child): New function.
8103         (remote_update_thread_list): Call remote_notif_get_pending_events
8104         and remove_new_fork_child.
8105         (extended_remote_kill): Kill fork child when killing the
8106         parent before follow_fork completes.
8107         (init_extended_remote_ops): Initialize target vector with
8108         new fork catchpoint functions.
8109
8110 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8111
8112         * remote.c (remove_vfork_event_p): New function.
8113         (remote_follow_fork): Add vfork event type to event checking.
8114         (remote_parse_stop_reply): New stop reasons "vfork" and
8115         "vforkdone" for RSP 'T' Stop Reply Packet.
8116
8117 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8118
8119         * linux-nat.c (linux_nat_ptrace_options): New function.
8120         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8121         Call linux_nat_ptrace_options and use different argument to
8122         linux_enable_event_reporting.
8123         (_initialize_linux_nat): Delete call to
8124         linux_ptrace_set_additional_flags.
8125         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8126         supported_ptrace_options.
8127         (additional_flags): Delete variable.
8128         (linux_check_ptrace_features): Use supported_ptrace_options.
8129         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8130         Likewise, and remove additional_flags check.
8131         (linux_enable_event_reporting): Change 'attached' argument to
8132         'options'.  Use supported_ptrace_options.
8133         (ptrace_supports_feature): Change comment.  Use
8134         supported_ptrace_options.
8135         (linux_ptrace_set_additional_flags): Delete function.
8136         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8137         Delete function prototype.
8138         * remote.c (remote_fork_event_p): New function.
8139         (remote_detach_pid): New function.
8140         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8141         if doing detach-on-fork.
8142         (remote_follow_fork): New function.
8143         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8144         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8145         (init_extended_remote_ops): Initialize to_follow_fork.
8146
8147 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8148
8149         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8150         from static to extern.
8151         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8152         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8153         * PACKET_vfork_event_feature>: New enumeration constants.
8154         (remote_protocol_features): Add table entries for new packets.
8155         (remote_query_supported): Add new feature queries to qSupported
8156         packet.
8157
8158 2015-05-12  Gary Benson <gbenson@redhat.com>
8159
8160         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8161         for fake PIDs as well as real ones.
8162         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8163
8164 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8165
8166         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8167         * python/py-value.c (valpy_reference_value): New function.
8168         (valpy_const_value): Likewise.
8169         (value_object_methods): Add new methods.
8170         * value.c (make_cv_value): New function.
8171         * value.h (make_cv_value): Declare.
8172
8173 2015-05-08  Yao Qi  <yao@codesourcery.com>
8174             Sandra Loosemore  <sandra@codesourcery.com>
8175
8176         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8177         to 'lh->include_dirs' before accessing to it.
8178         (psymtab_include_file_name): Likewise.
8179         (dwarf_decode_lines_1): Likewise.
8180         (dwarf_decode_lines): Likewise.
8181         (file_file_name): Likewise.
8182
8183 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8184
8185         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8186         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8187         (nios2_linux_rt_sigreturn_init): Adjust base address of
8188         register save area.
8189
8190 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8191
8192         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8193         "trap 31" as the breakpoint instruction on all targets.
8194
8195 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8196
8197         * infcmd.c (print_return_value): Remove unused declaration.
8198
8199 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8200
8201         * dwarf2read.c (attr_to_dynamic_prop)
8202         <DW_AT_data_member_location>: Use read_type_die isntead of
8203         get_die_type.
8204
8205 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8206
8207         * ada-lang.c (ada_convert_actual): Add handling of formals
8208         passed inside an aligner type.
8209
8210 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8211
8212         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8213
8214 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8215
8216         PR python/18291
8217         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8218         Print xmethod matcher status.
8219
8220 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8221
8222         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8223         register in the regcache when treating the PSWM register, and vice
8224         versa.
8225
8226 2015-05-07  Gary Benson <gbenson@redhat.com>
8227
8228         * linux-thread-db.c (struct thread_db_info)
8229         <td_ta_map_id2thr_p>: Remove field.
8230         (try_thread_db_load_1): Remove initialization for the above.
8231
8232 2015-05-07  Gary Benson <gbenson@redhat.com>
8233
8234         * linux-thread-db.c (struct thread_db_info)
8235         <td_thr_validate_p>: Remove field.
8236         (try_thread_db_load_1): Remove initialization for the above.
8237
8238 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8239
8240         * compile/compile-object-load.c (compile_object_load): Support
8241         mst_text_gnu_ifunc.
8242
8243 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8244
8245         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8246         const.  Use new variables for the const compatibility.
8247         (eval_compile_command): Make the cmd_string parameter const.
8248         * compile/compile.h (eval_compile_command): Make the cmd_string
8249         parameter const.
8250
8251 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8252
8253         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8254         comment.
8255         * top.c (deprecated_init_ui_hook): Delete.
8256         (gdb_init): Remove handling of deprecated_init_ui_hook.
8257         * interps.c (clear_interpreter_hooks): Remove handling of
8258         deprecated_init_ui_hook.
8259         * main.c (captured_main): Update comment.
8260
8261 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8262
8263         * solib.c (_initialize_solib): Add "info dll" alias creation.
8264         * windows-nat.c (set_windows_aliases): Delete.
8265         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8266         assignment.
8267         * NEWS: Add news entry about "info dll" now being available
8268         on all platforms.
8269
8270 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8271
8272         * ada-lang.c (value_assign_to_component): Reformat and improve
8273         documentation. Remove all trailing spaces.
8274
8275 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8276
8277         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8278         Stop counting inlined frames as soon as an out-of-line function
8279         is found.
8280
8281 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8282
8283         * dwarf2read.c (inherit_abstract_dies): Skip
8284         DW_TAG_GNU_call_site dies while inheriting children of an
8285         abstract DIE into a scope.
8286         (read_lexical_block_scope): Inherit abstract DIE's for
8287         lexical scopes.
8288
8289 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8290
8291         * ada-valprint.c (val_print_packed_array_elements): Delete
8292         variable "len".  Add a type-length check when comparing two
8293         consecutive elements of the array.  Use the element's actual
8294         length in call to value_contents_eq.
8295         * ada-lang.c (ada_value_primitive_packed_val): Always return
8296         a value whose type has been resolved.
8297
8298 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8299
8300         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8301         BIT_SIZE and LEN if the size of the resolved type is smaller
8302         than BIT_SIZE * HOST_CHAR_BIT.
8303
8304 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8305
8306         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8307         correct address in call to value_at.  Adjust call to
8308         value_address accordingly.
8309
8310 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8311
8312         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8313         to print it.
8314
8315 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8316
8317         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8318         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8319         pinfo->valaddr.
8320         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8321         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8322         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8323         Add handling of addr_stack->valaddr.
8324         (resolve_dynamic_type): Add "valaddr" parameter.
8325         Set pinfo.valaddr field.
8326         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8327         resolve_dynamic_type.
8328         (ada_discrete_type_low_bound): Likewise.
8329         * findvar.c (default_read_var_value): Likewise.
8330         * value.c (value_from_contents_and_address): Likewise.
8331
8332 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8333
8334         * gdbtypes.c (resolve_dynamic_array): Use
8335         create_array_type_with_stride instead of create_array_type.
8336
8337 2015-04-30  DJ Delorie  <dj@redhat.com>
8338
8339         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8340         rl78_decode_opcode
8341
8342 2015-04-29  Doug Evans  <dje@google.com>
8343
8344         PR python/18285
8345         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8346         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8347         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8348         * extension-priv.h (struct extension_language_ops)
8349         <get_xmethod_result_type>: New member.
8350         * extension.c (get_xmethod_result_type): New function.
8351         * extension.h (get_xmethod_result_type): Declare.
8352         * python/py-xmethods.c (get_result_type_method_name): New static
8353         global.
8354         (py_get_result_type_method_name): Ditto.
8355         (gdbpy_get_xmethod_result_type): New function.
8356         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8357         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8358         * python/python.c (python_extension_ops): Add
8359         gdbpy_get_xmethod_result_type.
8360         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8361         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8362         xmethods.
8363         (value_x_unop): Ditto.
8364         * value.c (result_type_of_xmethod): New function.
8365         * value.h (result_type_of_xmethod): Declare.
8366
8367 2015-04-29  Gary Benson <gbenson@redhat.com>
8368
8369         * solib.c (solib_find_1): Allow fd argument to be NULL.
8370         (exec_file_find): Update comment.
8371         (solib_find): Likewise.
8372         * exec.c (exec_file_locate_attach): Use NULL as fd
8373         argument to exec_file_find to avoid having to close
8374         the opened file.
8375         * infrun.c (follow_exec): Likewise.
8376
8377 2015-04-28  Doug Evans  <dje@google.com>
8378
8379         PR python/18299
8380         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8381         name or __name__ attributes.  Handle gdb module as first argument.
8382
8383 2015-04-28  Doug Evans  <dje@google.com>
8384
8385         PR python/18089
8386         * python/py-prettyprint.c (print_children): Verify result of children
8387         iterator.  Provide better error message.
8388         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8389         * python/python.c (gdbpy_print_python_errors_p): New function.
8390
8391 2015-04-28  Doug Evans  <dje@google.com>
8392
8393         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8394
8395 2015-04-28  Sasha Smundak  <asmundak@google.com>
8396
8397         * NEWS: Mention gdb.Type.optimized_out method.
8398         * python/py-type.c (typy_optimized_out):  New function.
8399
8400 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8401
8402         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8403
8404 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8405
8406         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8407         (initialize_utils): Move call of init_page_info() to ...
8408         * top.c (gdb_init): ... here.
8409
8410 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8411
8412         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8413         (tui_sigwinch_handler): Still update our idea of
8414         the terminal's width and height even when TUI is not active.
8415
8416 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8417
8418         * utils.h (set_screen_width_and_height): Declare.
8419         * utils.c (set_screen_width_and_height): Define.
8420         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8421
8422 2015-04-28  Gary Benson <gbenson@redhat.com>
8423
8424         * infrun.c (solist.h): New include.
8425         (follow_exec): Use exec_file_find to prefix execd_pathname
8426         with gdb_sysroot.
8427
8428 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8429
8430         * tui/tui-source.c (tui_set_source_content): Avoid calling
8431         strcpy() when offset is 0.
8432
8433 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8434
8435         PR gdb/18155
8436         * tui/tui-data.c (tui_free_window): Don't free the locator
8437         window when passed an SRC_WIN or a DISASSEM_WIN.
8438
8439 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8440
8441         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8442         (tui_win_content): Move declaration.
8443         (struct tui_gen_win_info): Give 'content' field the
8444         type tui_win_content.
8445         * tui/tui-data.c (init_content_element): Remove redundant and
8446         erroneous casts.
8447         (tui_add_content_elements): Remove erroneous cast.
8448         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8449         casts.
8450         (tui_get_begin_asm_address): Likewise.
8451         * tui/tui-regs.c (tui_show_registers): Likewise.
8452         (tui_show_register_group): Likewise.
8453         (tui_display_registers_from): Likewise.
8454         (tui_check_register_values): Likewise.
8455         * tui/tui-source.c (tui_set_source_content): Likewise.
8456         (tui_set_source_content_nil): Likewise.
8457         (tui_source_is_displayed): Likewise.
8458         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8459         (tui_set_locator_fullname): Likewise.
8460         (tui_set_locator_info): Likewise.
8461         (tui_show_frame_info): Likewise.
8462         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8463         (tui_show_source_line): Likewise.
8464         (tui_horizontal_source_scroll): Likewise.
8465         (tui_update_breakpoint_info): Likewise.
8466         (tui_set_exec_info_content): Likewise.
8467         (tui_show_exec_info_content): Likewise.
8468         (tui_alloc_source_buffer): Likewise.
8469         (tui_line_is_displayed): Likewise.
8470         (tui_addr_is_displayed): Likewise.
8471
8472 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8473
8474         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8475         event if PL_FLAG_EXEC is set.
8476         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8477         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8478         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8479         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8480         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8481
8482 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8483
8484         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8485         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8486         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8487         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8488         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8489         [PT_LWPINFO] (fbsd_wait): New function.
8490         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8491         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8492         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8493         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8494         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8495         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8496         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8497         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8498         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8499         "fbsd_wait".
8500         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8501         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8502         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8503         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8504         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8505         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8506         Set "to_post_attach" to "fbsd_post_attach".
8507
8508 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8509
8510         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8511         (fbsd_find_memory_regions): Mark static.
8512         (fbsd_nat_add_target): New function.
8513         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8514         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8515         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8516         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8517         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8518         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8519
8520 2015-04-27  Gary Benson <gbenson@redhat.com>
8521
8522         * objfiles.c (allocate_objfile): Do not attempt to expand name
8523         if name is a "target:" filename.
8524         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8525         to load auto-load scripts for objfiles with "target:" filenames.
8526
8527 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8528
8529         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8530         (enum s390_vector_abi_kind): New enum.
8531         (struct gdbarch_tdep)<vector_abi>: New field.
8532         (s390_effective_inner_type): Add parameter min_size.  Stop
8533         unwrapping if the inner type is smaller than min_size.
8534         (s390_function_arg_float): Adjust call to
8535         s390_effective_inner_type.
8536         (s390_function_arg_vector): New function.
8537         (s390_function_arg_integer): Adjust comment.
8538         (struct s390_arg_state)<vr>: New field.
8539         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8540         arguments according to vector ABI when appropriate.
8541         (s390_push_dummy_call): Initialize the argument state's field
8542         'vr'.  Adjust calls to s390_handle_arg.
8543         (s390_register_return_value): Handle vector return values.
8544         (s390_return_value): Apply the "register" return value convention
8545         to a vector when appropriate.
8546         (s390_gdbarch_init): Initialize tdep->vector_abi.
8547         * NEWS: Announce S390 vector ABI support.
8548
8549 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8550
8551         * s390-linux-tdep.c (s390_return_value_convention): Remove
8552         function.  Inline its logic...
8553         (s390_return_value): ...here.  Instead, move the handling of the
8554         "register" return value convention...
8555         (s390_register_return_value): ...here.  New function.
8556
8557 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8558
8559         * s390-linux-tdep.c
8560         (is_float_singleton): Remove function.  Move the "singleton" part
8561         of the logic...
8562         (s390_effective_inner_type): ...here.  New function.
8563         (is_float_like): Remove function.  Inline its logic...
8564         (s390_function_arg_float): ...here.
8565         (is_pointer_like, is_integer_like, is_struct_like): Remove
8566         functions.  Inline their logic...
8567         (s390_function_arg_integer): ...here.
8568         (s390_function_arg_pass_by_reference): Remove function.
8569         (extend_simple_arg): Remove function.
8570         (alignment_of): Remove function.
8571         (struct s390_arg_state): New structure.
8572         (s390_handle_arg): New function.
8573         (s390_push_dummy_call): Move parameter placement logic to the new
8574         function s390_handle_arg.  Call it for calculating the stack area
8575         sizes first, and again for actually writing the parameters.
8576
8577 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8578
8579         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8580           false if the argument is zero.
8581
8582 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8583
8584         * ada-lang.c (template_to_static_fixed_type): Return input type
8585         when it is already fixed.  Cache the input type itself when not
8586         creating a static fixed copy.  Make it explicit that we never
8587         molestate the input type.
8588         * gdbtypes.c (resolve_dynamic_struct): Reset the
8589         TYPE_TARGET_TYPE field for resolved copies.
8590
8591 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8592
8593         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8594         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8595         (template_to_static_fixed_type): Call ada_check_typedef only
8596         when necessary.
8597
8598 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8599
8600         * cli/cli-dump.c (srec_dump_command): Add internationalization
8601         mark ups.
8602         (ihex_dump_command): Likewise.
8603         (tekhex_dump_command): Likewise.
8604         (binary_dump_command): Likewise.
8605         (binary_append_command): Likewise.
8606
8607 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8608
8609         * cli/cli-dump.c (verilog_cmdlist): New variable.
8610         (dump_verilog_memory): New function.
8611         (dump_verilog_value): New function.
8612         (verilog_dump_command): New function.
8613         (_initialize_cli_dump): Add new commands to support verilog dump
8614         format.
8615         * NEWS: Add entry for "dump verilog".
8616
8617 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8618
8619         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8620         descriptive type when there is none.
8621
8622 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8623
8624         * tui/tui-win.c (tui_async_resize_screen): Call
8625         rl_resize_terminal().
8626
8627 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8628
8629         * windows-nat.c (handle_output_debug_string): Don't change
8630         current_event.dwThreadId.
8631         (get_windows_debug_event): Use thread_id, rather than relying on
8632         current_event.dwThreadId being changed.
8633
8634 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8635
8636         * windows-nat.c (windows_continue): Report an error if
8637         ContinueDebugEvent() fails.
8638
8639 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8640
8641         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8642
8643 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8644
8645         * windows-nat.c (get_windows_debug_event): Replace retval with
8646         thread_id throughout.  Update stale comment.
8647
8648 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8649
8650         * windows-nat.c (get_windows_debug_event): Don't use ternary
8651         conditional operator.
8652
8653 2015-04-21  Pierre Muller  <muller@sourceware.org>
8654
8655         PR pascal/17815
8656         p-exp.y (yylex): Reorganize code to return the matched pattern
8657         for a field of this.
8658
8659 2015-04-21  Gary Benson <gbenson@redhat.com>
8660
8661         * common/fileio.h (fileio_to_host_openflags): New declaration.
8662         * common/fileio.c (fcntl.h): New include.
8663         (fileio_to_host_openflags): New function, factored out from...
8664         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8665         Single use updated.
8666
8667 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8668
8669         * rl78-tdep.c (RL78_SP_ADDR): Define.
8670         (opc_reg_to_gdb_regnum): New static function.
8671         (rl78_analyze_prologue): Recognize instructions forming slightly
8672         more interesting prologues.
8673
8674 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8675
8676         Revert:
8677         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8678         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8679         TYPE_CODE_REF types so that they are not considered as dynamic
8680         depending on the referenced type.
8681         (resolve_dynamic_type_internal): Likewise.
8682
8683 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8684
8685         Revert:
8686         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8687         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8688         "top_level" parameter.
8689         (resolve_dynamic_type_internal): Remove the unused "top_level"
8690         parameter.  Update call to is_dynamic_type_internal.
8691         (is_dynamic_type): Update call to is_dynamic_type_internal.
8692         (resolve_dynamic_range): Update call to
8693         resolve_dynamic_type_internal.
8694         (resolve_dynamic_union): Likewise.
8695         (resolve_dynamic_struct): Likewise.
8696         (resolve_dynamic_type): Likewise.
8697
8698 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8699
8700         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8701         xmalloc.
8702
8703 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8704
8705         * reply_mig_hack.awk: Robustify parsing.
8706
8707         * reply_mig_hack.awk: Don't bother to declare an intermediate
8708         function pointer variable.
8709
8710 2015-04-17  Doug Evans  <dje@google.com>
8711
8712         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8713         to "exec_displacement" to avoid confusion with inner use of the name.
8714
8715 2015-04-17  Pedro Alves  <palves@redhat.com>
8716
8717         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8718         if HW point of TYPE isn't supported.
8719
8720 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8721             Pedro Alves  <palves@redhat.com>
8722
8723         * target.h (target_can_use_hardware_watchpoint): Update comments.
8724         Remove trailing ";".
8725
8726 2015-04-17  Gary Benson <gbenson@redhat.com>
8727
8728         * remote.c (remote_add_inferior): New argument try_open_exec.
8729         If nonzero, attempt to open the inferior's executable file as
8730         the main executable if no main executable is open already.
8731         All callers updated.
8732         * NEWS: Mention that GDB now supports automatic location and
8733         retrieval of executable + files from remote targets.
8734
8735 2015-04-17  Gary Benson <gbenson@redhat.com>
8736
8737         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8738         * remote.c (PACKET_qXfer_exec_file): Likewise.
8739         (remote_protocol_features): Register the
8740         "qXfer:exec-file:read" feature.
8741         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8742         (remote_pid_to_exec_file): New function.
8743         (init_remote_ops): Initialize to_pid_to_exec_file.
8744         (_initialize_remote): Register new "set/show remote
8745         pid-to-exec-file-packet" command.
8746         * NEWS: Announce new qXfer:exec-file:read packet.
8747
8748 2015-04-17  Gary Benson <gbenson@redhat.com>
8749
8750         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8751         New declaration.
8752         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8753         New function, factored out from...
8754         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8755
8756 2015-04-17  Gary Benson <gbenson@redhat.com>
8757
8758         * exec.c (solist.h): New include.
8759         (exec_file_locate_attach): Prefix absolute executable
8760         paths with gdb_sysroot if set.
8761         * NEWS: Mention that executable paths may be prepended
8762         with sysroot.
8763
8764 2015-04-17  Gary Benson <gbenson@redhat.com>
8765
8766         * solist.h (exec_file_find): New declaration.
8767         * solib.c (solib_find_1): New function, factored out from...
8768         (solib_find): ...here.
8769         (exec_file_find): New function.
8770
8771 2015-04-17  Gary Benson <gbenson@redhat.com>
8772
8773         * gdbcore.h (exec_file_locate_attach): New declaration.
8774         * exec.c (exec_file_locate_attach): New function, factored
8775         out from...
8776         * infcmd.c (attach_command_post_wait): ...here.
8777
8778 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8779
8780         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8781
8782 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8783
8784         * infrun.c (maybe_software_singlestep): Declare.
8785         (displaced_step_fixup): Call maybe_software_singlestep.
8786
8787 2015-04-15  Doug Evans  <dje@google.com>
8788
8789         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8790
8791 2015-04-15  Doug Evans  <dje@google.com>
8792
8793         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8794
8795 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8796
8797         * python/lib/gdb/command/unwinders.py: Add parentheses.
8798
8799 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8800
8801         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8802
8803 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8804
8805         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8806
8807 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8808
8809         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8810         dsc->insn_size instead of 4.
8811
8812 2015-04-14  Gary Benson <gbenson@redhat.com>
8813
8814         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8815         * minidebug.c (lzma_stat): Likewise.
8816         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8817         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8818
8819 2015-04-13  Stan Shebs  <stanshebs@google.com>
8820
8821         * MAINTAINERS: Update my email address.
8822
8823 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8824
8825         * amd64-tdep.c (amd64_target_description): New function.
8826         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8827         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8828         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8829         x86 extended save area.
8830         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8831         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8832         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8833         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8834         "amd64fbsd_read_description".
8835         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8836         (amd64fbsd_supply_xstateregset): New function.
8837         (amd64fbsd_collect_xstateregset): New function.
8838         Add "amd64fbsd_xstateregset".
8839         (amd64fbsd_iterate_over_regset_sections): New function.
8840         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8841         "I386_FBSD_XSAVE_XCR0_OFFSET".
8842         Add "iterate_over_regset_sections" gdbarch method.
8843         Add "core_read_description" gdbarch method.
8844         * i386-tdep.c (i386_target_description): New function.
8845         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8846         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8847         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8848         x86 extended save area.
8849         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8850         * i386bsd-nat.h: Export i386bsd_xsave_len.
8851         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8852         (_initialize_i386fbsd_nat): Set "to_read_description" to
8853         "i386fbsd_read_description".
8854         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8855         (i386fbsd_core_read_description): New function.
8856         (i386fbsd_supply_xstateregset): New function.
8857         (i386fbsd_collect_xstateregset): New function.
8858         Add "i386fbsd_xstateregset".
8859         (i386fbsd_iterate_over_regset_sections): New function.
8860         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8861         "I386_FBSD_XSAVE_XCR0_OFFSET".
8862         Add "iterate_over_regset_sections" gdbarch method.
8863         Add "core_read_description" gdbarch method.
8864         * i386fbsd-tdep.h: New file.
8865
8866 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8867
8868         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8869         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8870         conditional.
8871         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8872         and lb.
8873         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8874         va.
8875         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8876         conditional.
8877         * defs.h (xdb_commands): Remove declaration.
8878         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8879         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8880         * infcmd.c (run_no_args_command, go_command): Remove.
8881         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8882         * infrun.c (xdb_handle_command): Remove.
8883         (_initialize_infrun): Remove xdb_commands for lz and z.
8884         * main.c (xdb_commands): Remove variable.
8885         (captured_main): Remove "xdb" from long_options.
8886         (print_gdb_help): Remove --xdb from help.
8887         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8888         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8889         * stack.c (backtrace_full_command, args_plus_locals_info)
8890         (current_frame_command): Remove.
8891         (_initialize_stack): Remove xdb_commands for t, T and l.
8892         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8893         * thread.c (_initialize_thread): Remove xdb_commands condition.
8894         * tui/tui-layout.c (tui_toggle_layout_command)
8895         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8896         (_initialize_tui_layout): Remove xdb_commands for td and ts.
8897         * tui/tui-regs.c (tui_scroll_regs_forward_command)
8898         (tui_scroll_regs_backward_command): Remove.
8899         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8900         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8901         (_initialize_tui_win): Remove xdb_commands for U and w.
8902         * utils.c (pagination_on_command, pagination_off_command): Remove.
8903         (initialize_utils): Remove xdb_commands for am and sm.
8904
8905 2015-04-10  Pedro Alves  <palves@redhat.com>
8906
8907         * infrun.c (displaced_step_fixup): Switch to the event ptid
8908         earlier.  If the thread stopped for a watchpoint and the
8909         target/arch has non-continuable watchpoints, cancel the displaced
8910         step.
8911         (resume): Don't start a displaced step if in-line step-over info
8912         is valid.
8913
8914 2015-04-10  Pedro Alves  <palves@redhat.com>
8915
8916         * infrun.c (displaced_step_in_progress): New function.
8917         (do_target_resume): Advise target to report all signals if
8918         displaced stepping.
8919
8920 2015-04-10  Pedro Alves  <palves@redhat.com>
8921
8922         PR gdb/18216
8923         * infrun.c (process_event_stop_test): Don't assume a step-resume
8924         is set if tp->stepped_breakpoint is true.
8925
8926 2015-04-10  Yao Qi  <yao.qi@linaro.org>
8927
8928         * arm-tdep.c (install_alu_reg): Update comment.
8929         (thumb_copy_alu_reg): Remove local variable rn.  Update
8930         debugging message.  Use r2 instead of r1 in the modified
8931         instruction.
8932
8933 2015-04-10  Pedro Alves  <palves@redhat.com>
8934
8935         PR gdb/13858
8936         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8937         linux_displaced_step_location as gdbarch_displaced_step_location
8938         hook.
8939         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8940         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8941         * linux-tdep.c (linux_displaced_step_location): New function,
8942         based on ppc_linux_displaced_step_location.
8943         * linux-tdep.h (linux_displaced_step_location): New declaration.
8944         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8945         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8946         Delete.
8947         (ppc_linux_init_abi): Install linux_displaced_step_location as
8948         gdbarch_displaced_step_location hook, even without Cell/B.E..
8949         (_initialize_ppc_linux_tdep): Don't install
8950         ppc_linux_inferior_created as inferior_created observer.
8951         * s390-linux-tdep.c (s390_gdbarch_init): Install
8952         linux_displaced_step_location as gdbarch_displaced_step_location
8953         hook.
8954
8955 2015-04-09  Gary Benson <gbenson@redhat.com>
8956
8957         * common/common-remote-fileio.h: Rename to...
8958         * common/fileio.h: ...this.  Update all references.
8959         (remote_fileio_to_fio_error): Rename to...
8960         (host_to_fileio_error): ...this.
8961         (remote_fileio_to_be): Rename to...
8962         (host_to_bigendian): ...this.  Update all callers.
8963         (remote_fileio_to_fio_uint): Rename to...
8964         (host_to_fileio_uint): ...this.  Update all callers.
8965         (remote_fileio_to_fio_time): Rename to...
8966         (host_to_fileio_time): ...this.  Update all callers.
8967         (remote_fileio_to_fio_stat): Rename to...
8968         (host_to_fileio_stat): ...this.
8969         Update all references.
8970         * common/common-remote-fileio.c: Rename to...
8971         * common/fileio.c: ...this.  Update all references.
8972         (remote_fileio_to_fio_error): Rename to...
8973         (host_to_fileio_error): ...this.  Update all callers.
8974         (remote_fileio_mode_to_target): Rename to...
8975         (fileio_mode_pack): ...this.  Update all callers.
8976         (remote_fileio_to_fio_mode): Rename to...
8977         (host_to_fileio_mode): ...this.  Update all callers.
8978         (remote_fileio_to_fio_ulong): Rename to...
8979         (host_to_fileio_ulong): ...this.  Update all callers.
8980         (remote_fileio_to_fio_stat): Rename to...
8981         (host_to_fileio_stat): ...this.  Update all callers.
8982
8983 2015-04-09  Andy Wingo  <wingo@igalia.com>
8984
8985         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8986         (frame_functions): Bind gdbscm_frame_read_register to
8987         frame-read-register.
8988         * guile/lib/gdb.scm (frame-read-register): Export.
8989
8990 2015-04-09  Gary Benson <gbenson@redhat.com>
8991
8992         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8993         New declaration.
8994         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8995         New function, factored out the named functions below.
8996         * inf-child.c (gdb/fileio.h): Remove include.
8997         (common-remote-fileio.h): New include.
8998         (inf_child_errno_to_fileio_error): Remove function.  Update
8999         all callers to use remote_fileio_to_fio_error.
9000         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9001
9002 2015-04-09  Andy Wingo  <wingo@igalia.com>
9003
9004         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9005
9006 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9007
9008         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9009         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9010         * configure: Regenerated.
9011
9012 2015-04-09  Pedro Alves  <palves@redhat.com>
9013
9014         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9015         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9016         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9017         * gnulib/import/Makefile.am: Update.
9018         * gnulib/import/Makefile.in: Update.
9019         * gnulib/import/m4/gnulib-cache.m4: Update.
9020         * gnulib/import/m4/gnulib-comp.m4: Update.
9021         * gnulib/import/m4/strtok_r.m4: New file.
9022         * gnulib/import/strtok_r.c: New file.
9023
9024 2015-04-09  Pedro Alves  <palves@redhat.com>
9025
9026         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9027         "called too early to check prototype".
9028
9029 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9030
9031         PR python/16699
9032         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9033         use a caching mechanism.  Adjust comments and code to reflect
9034         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9035         (cmdpy_completer_handle_brkchars): Adjust call to
9036         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9037         (cmdpy_completer): Likewise.
9038
9039 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9040
9041         * spu-tdep.c (spu_gdbarch_init): Don't call
9042         set_gdbarch_cannot_step_breakpoint.
9043
9044 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9045
9046         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9047
9048 2015-04-07  Pedro Alves  <palves@redhat.com>
9049
9050         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9051         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9052         (delete_exited_threads): New declaration.
9053         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9054         * linux-nat.c (linux_nat_update_thread_list): New function.
9055         (linux_nat_add_target): Install it.
9056         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9057         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9058         (delete_exited_threads): New function.
9059
9060 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9061
9062         * infrun.c (resume) <displaced stepping debug output>: Get the
9063         leader thread's regcache, not resume_ptid's.
9064
9065 2015-04-06  Doug Evans  <xdje42@gmail.com>
9066
9067         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9068         VAR_DOMAIN.
9069         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9070         Include symbol domain in debugging output.
9071
9072 2015-04-06  Pedro Alves  <palves@redhat.com>
9073             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9074
9075         * configure.ac: Remove the mingw32-specific stub-termcap.o
9076         fallback, and instead fallback to the stub termcap on all hosts.
9077         * configure: Regenerate.
9078         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9079         symbols.
9080
9081 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9082
9083         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9084         "top_level" parameter.
9085         (resolve_dynamic_type_internal): Remove the unused "top_level"
9086         parameter.  Update call to is_dynamic_type_internal.
9087         (is_dynamic_type): Update call to is_dynamic_type_internal.
9088         (resolve_dynamic_range): Update call to
9089         resolve_dynamic_type_internal.
9090         (resolve_dynamic_union): Likewise.
9091         (resolve_dynamic_struct): Likewise.
9092         (resolve_dynamic_type): Likewise.
9093
9094 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9095
9096         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9097         TYPE_CODE_REF types so that they are not considered as dynamic
9098         depending on the referenced type.
9099         (resolve_dynamic_type_internal): Likewise.
9100
9101 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9102
9103         * Makefile.in (top_srcdir): New.
9104         * configure: Regenerated.
9105
9106 2015-04-02  Gary Benson <gbenson@redhat.com>
9107
9108         * NEWS: Announce the new default sysroot of "target:".
9109
9110 2015-04-02  Gary Benson <gbenson@redhat.com>
9111
9112         * main.c (captured_main): Set gdb_sysroot to "target:"
9113         if not otherwise set.
9114
9115 2015-04-02  Gary Benson <gbenson@redhat.com>
9116
9117         * exec.c (exec_file_attach): Support "target:" filenames.
9118
9119 2015-04-02  Gary Benson <gbenson@redhat.com>
9120
9121         * solib.c (solib_find): Strip "target:" prefix from sysroot
9122         if accessing local files.
9123
9124 2015-04-02  Gary Benson <gbenson@redhat.com>
9125
9126         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9127         checks and error messages.
9128
9129 2015-04-02  Gary Benson <gbenson@redhat.com>
9130
9131         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9132         (remote_filename_p): Remove declaration.
9133         (remote_bfd_open): Likewise.
9134         * remote.c (remote_bfd_iovec_open): Remove function.
9135         (remote_bfd_iovec_close): Likewise.
9136         (remote_bfd_iovec_pread): Likewise.
9137         (remote_bfd_iovec_stat): Likewise.
9138         (remote_filename_p): Likewise.
9139         (remote_bfd_open): Likewise.
9140         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9141         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9142         (gdb_bfd_open_maybe_remote): Remove function.
9143         (symfile_bfd_open):  Replace remote filename check with
9144         target filename check.
9145         (reread_symbols): Use gdb_bfd_open.
9146         * build-id.c (gdbcore.h): New include.
9147         (build_id_to_debug_bfd): Use gdb_bfd_open.
9148         * infcmd.c (attach_command_post_wait): Remove remote filename
9149         check.
9150         * solib.c (solib_find): Replace remote-specific handling with
9151         target-specific handling.  Update comments where necessary.
9152         (solib_bfd_open): Replace remote-specific handling with
9153         target-specific handling.
9154         (gdb_sysroot_changed): New function.
9155         (_initialize_solib): Call the above when gdb_sysroot changes.
9156         * windows-tdep.c (gdbcore.h): New include.
9157         (windows_xfer_shared_library): Use gdb_bfd_open.
9158
9159 2015-04-02  Gary Benson <gbenson@redhat.com>
9160
9161         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9162         (is_target_filename): New declaration.
9163         (gdb_bfd_has_target_filename): Likewise.
9164         (gdb_bfd_open): Update documentation comment.
9165         * gdb_bfd.c (target.h): New include.
9166         (gdb/fileio.h): Likewise.
9167         (is_target_filename): New function.
9168         (gdb_bfd_has_target_filename): Likewise.
9169         (fileio_errno_to_host): Likewise.
9170         (gdb_bfd_iovec_fileio_open): Likewise.
9171         (gdb_bfd_iovec_fileio_pread): Likewise.
9172         (gdb_bfd_iovec_fileio_close): Likewise.
9173         (gdb_bfd_iovec_fileio_fstat): Likewise.
9174         (gdb_bfd_open): Use target fileio to access paths prefixed
9175         with "target:" where necessary.
9176
9177 2015-04-02  Gary Benson <gbenson@redhat.com>
9178
9179         * target.h (struct target_ops) <to_filesystem_is_local>:
9180         New field.
9181         (target_filesystem_is_local): New macro.
9182         * target-delegates.c: Regenerate.
9183         * remote.c (remote_filesystem_is_local): New function.
9184         (init_remote_ops): Initialize to_filesystem_is_local.
9185
9186 2015-04-02  Gary Benson <gbenson@redhat.com>
9187
9188         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9189         (target_fileio_fstat): New declaration.
9190         * target.c (target_fileio_fstat): New function.
9191         * inf-child.c (inf_child_fileio_fstat): Likewise.
9192         (inf_child_target): Initialize to_fileio_fstat.
9193         * remote.c (init_remote_ops): Likewise.
9194
9195 2015-04-01  Sasha Smundak  <asmundak@google.com>
9196
9197         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9198         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9199         (py-unwind.o): New recipe.
9200         * NEWS: mention Python frame unwinding.
9201         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9202         gdb/unwinder.py and gdb/command/unwinder.py
9203         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9204         list.
9205         (execute_unwinders): New function.
9206         * python/lib/gdb/command/unwinders.py: New file.
9207         * python/lib/gdb/unwinder.py: New file.
9208         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9209         (objfpy_dealloc): Decrement frame_unwinders reference count.
9210         (objfpy_initialize): Create frame_unwinders list.
9211         (objfpy_get_frame_unwinders): New function.
9212         (objfpy_set_frame_unwinders): Ditto.
9213         (objfile_getset): Add frame_unwinders attribute to Objfile.
9214         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9215         (pspy_dealloc): Decrement frame_unwinders reference count.
9216         (pspy_initialize): Create frame_unwinders list.
9217         (pspy_get_frame_unwinders): New function.
9218         (pspy_set_frame_unwinders): Ditto.
9219         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9220         * python/py-unwind.c: New file.
9221         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9222         (objpy_get_frame_unwinders): New prototype.
9223         (gdbpy_initialize_unwind): New prototype.
9224         * python/python.c (gdbpy_apply_type_printers): Call
9225         gdbpy_initialize_unwind.
9226
9227 2015-04-01  Pedro Alves  <palves@redhat.com>
9228
9229         * infrun.c (resume): Check currently_stepping after clearing
9230         stepped_breakpoint, not before.
9231
9232 2015-04-01  Pedro Alves  <palves@redhat.com>
9233
9234         * infrun.c (print_target_wait_results): Print all the ptid
9235         elements.
9236
9237 2015-04-01  Pedro Alves  <palves@redhat.com>
9238
9239         * infrun.c (keep_going): Also discard cleanups if inserting
9240         breakpoints fails.
9241
9242 2015-04-01  Pedro Alves  <palves@redhat.com>
9243
9244         * infrun.c (wait_for_inferior): Install the
9245         finish_thread_state_cleanup cleanup across the whole function, not
9246         just around handle_inferior_event.
9247
9248 2015-04-01  Pedro Alves  <palves@redhat.com>
9249
9250         * infrun.c (resume) <step past permanent breakpoint>: Use
9251         do_target_resume.
9252
9253 2015-04-01  Pedro Alves  <palves@redhat.com>
9254
9255         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9256
9257 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9258
9259         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9260
9261 2015-04-01  Pedro Alves  <palves@redhat.com>
9262
9263         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9264         list if it was marked exited.
9265
9266 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9267
9268         * configure: Regenerated.
9269
9270 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9271             Jan Kratochvil  <jan.kratochvil@redhat.com>
9272             Oleg Nesterov  <oleg@redhat.com>
9273
9274         PR corefiles/16092
9275         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9276         New enum identifying the various options of the coredump_filter
9277         file.
9278         (struct smaps_vmflags): New struct.
9279         (use_coredump_filter): New variable.
9280         (decode_vmflags): New function.
9281         (mapping_is_anonymous_p): Likewise.
9282         (dump_mapping_p): Likewise.
9283         (linux_find_memory_regions_full): New variables
9284         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9285         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9286         parsing of its information.  Implement memory mapping filtering
9287         based on its contents.
9288         (show_use_coredump_filter): New function.
9289         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9290         * NEWS: Mention the possibility of using the
9291         '/proc/PID/coredump_filter' file when generating a corefile.
9292         Mention new command 'set use-coredump-filter'.
9293
9294 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9295
9296         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9297         read_memory_unsigned_integer.
9298
9299 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9300
9301         * Makefile.in (ZLIB): New.
9302         (ZLIBINC): Likewise.
9303         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9304         (CLIBS): Add $(ZLIB).
9305         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9306         Add -lz to LIBS.
9307         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9308         * top.c (print_gdb_configuration): Remove --with-zlib and
9309         --without-zlib.
9310         * config.in: Regenerated.
9311         * configure: Likewise.
9312
9313 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9314
9315         * NEWS: Mention info os cpus support.
9316         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9317         (struct osdata_type): Add cpus entry, reorder the entries in
9318         alphabetical order.
9319
9320 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9321
9322         * compile/compile.c (compile_to_object): Allow triplets with or
9323         without vendor set.
9324
9325 2015-03-30  Doug Evans  <dje@google.com>
9326
9327         PR c++/18141
9328         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9329         klass in VAR_DOMAIN.
9330
9331 2015-03-30  Gary Benson <gbenson@redhat.com>
9332
9333         * remote.c (remote_mourn_1): Remove function.  Update all callers
9334         to use remote_mourn.
9335         (extended_remote_mourn_1): Remove function.  Update all callers
9336         to use extended_remote_mourn.
9337         (extended_remote_attach_1): Remove function.  Update all callers
9338         to use extended_remote_attach.
9339
9340 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9341
9342         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9343         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9344         (ALLDEPFILES): Add ft32-tdep.c.
9345         * configure.tgt: Add FT32 entry.
9346         * ft32-tdep.c: New file, FT32 target-dependent code.
9347         * ft32-tdep.h: New file, FT32 target-dependent code.
9348
9349 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9350
9351         Revert:
9352         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9353         Code cleanup.
9354         * printcmd.c (print_command_1): Move expr variable scope.
9355
9356 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9357
9358         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9359
9360 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9361
9362         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9363         sections.
9364
9365 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9366
9367         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9368         exception raised while parsing the probe arguments.
9369         Force parsing to be done using the C language parser.
9370         * expression.h (parse_expression_with_language): Declare.
9371         * parse.c (parse_expression_with_language): New function.
9372
9373 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9374
9375         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9376
9377 2015-03-26  Andy Wingo  <wingo@igalia.com>
9378
9379         PR symtab/18148
9380         * dwarf2read.c (struct partial_die_info): Add has_const_value
9381         member.
9382         (add_partial_symbol): Don't punt on symbols that have const_value
9383         attributes.
9384         (read_partial_die): Detect DW_AT_const_value.
9385
9386 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9387
9388         Code cleanup.
9389         * printcmd.c (print_command_1): Move expr variable scope.
9390
9391 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9392
9393         Code cleanup.
9394         * printcmd.c (validate_format): Make the parameter cmdname const.
9395
9396 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9397
9398         * remote.c (_initialize_remote): Update comment.
9399
9400 2015-03-26  Pedro Alves  <palves@redhat.com>
9401             Jon TURNEY  <jon.turney@dronecode.org.uk>
9402
9403         * coffread.c (coff_symfile_read): When constructing the name of an
9404         import stub symbol from import symbol for amd64, only skip the
9405         char after _imp_ if the target is underscored (like i386) and the
9406         char is indeed the target's leading char.
9407
9408 2015-03-25  Pedro Alves  <palves@redhat.com>
9409
9410         * target.h <to_async>: Replace 'callback' and 'context' parameters
9411         with boolean 'enable' parameter.
9412         (target_async): Replace CALLBACK and CONTEXT parameters with
9413         boolean ENABLE parameter.
9414         * inf-loop.c (inferior_event_handler): Adjust.
9415         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9416         (linux_nat_resume): Adjust.
9417         (async_client_callback, async_client_context): Delete.
9418         (handle_target_event): Call inferior_event_handler directly.
9419         (linux_nat_async): Replace 'callback' and 'context' parameters
9420         with boolean 'enable' parameter.  Adjust.  Remove references to
9421         async_client_callback and async_client_context.
9422         (linux_nat_close): Adjust.
9423         * record-btrace.c (record_btrace_async): Replace 'callback' and
9424         'context' parameters with boolean 'enable' parameter.  Adjust.
9425         (record_btrace_resume): Adjust.
9426         * record-full.c (record_full_async): Replace 'callback' and
9427         'context' parameters with boolean 'enable' parameter.  Adjust.
9428         (record_full_resume, record_full_core_resume): Adjust.
9429         * remote.c (struct remote_state) <async_client_callback,
9430         async_client_context>: Delete fields.
9431         (remote_start_remote, extended_remote_attach_1, remote_resume)
9432         (extended_remote_create_inferior): Adjust.
9433         (remote_async_serial_handler): Call inferior_event_handler
9434         directly.
9435         (remote_async): Replace 'callback' and 'context' parameters with
9436         boolean 'enable' parameter.  Adjust.
9437         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9438         Adjust.
9439         * target-delegates.c: Regenerate.
9440
9441 2015-03-25  Gary Benson <gbenson@redhat.com>
9442             Pedro Alves  <palves@redhat.com>
9443
9444         * target.c (fileio_ft_t): New typedef, define object vector.
9445         (fileio_fhandles): New static variable.
9446         (is_closed_fileio_fh): New macro.
9447         (lowest_closed_fd): New static variable.
9448         (acquire_fileio_fd): New function.
9449         (release_fileio_fd): Likewise.
9450         (fileio_fd_to_fh): New macro.
9451         (target_fileio_open): Wrap the file descriptor on success.
9452         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9453         (target_fileio_pread): Likewise.
9454         (target_fileio_close): Likewise.
9455
9456 2015-03-24  Pedro Alves  <palves@redhat.com>
9457
9458         * thread.c (thread_apply_all_command): Take exited threads into
9459         account.
9460
9461 2015-03-24  Pedro Alves  <palves@redhat.com>
9462
9463         * infrun.c (resume, proceed): Mention
9464         switch_back_to_stepped_thread, not switch_back_to_stepping.
9465
9466 2015-03-24  Pedro Alves  <palves@redhat.com>
9467
9468         * infrun.c (user_visible_resume_ptid): Rewrite going from
9469         most-locked to unlocked instead of the opposite.  Move comment ...
9470         * infrun.h (user_visible_resume_ptid): ... here.
9471
9472 2015-03-24  Pedro Alves  <palves@redhat.com>
9473
9474         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9475         to resume the event lwp.  Use the lwp's ptid instead of the passed
9476         in (maybe wildcard) ptid.
9477         (stop_wait_callback): Tweak debug log output.
9478         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9479         TRAP_TRACE.
9480         (linux_nat_filter_event): In debug output, distinguish a
9481         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9482         before trying to resume the lwp.
9483
9484 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9485
9486         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9487         pointer indirection.
9488         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9489         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9490
9491 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9492
9493         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9494         Renames DYN_ATTR_DATA_LOCATION.
9495         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9496         DYN_ATTR_DATA_LOCATION.
9497         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9498         instead of DYN_ATTR_DATA_LOCATION.
9499
9500 2015-03-24  Pedro Alves  <palves@redhat.com>
9501
9502         * breakpoint.c (until_break_command): Adjust call to proceed.
9503         * gdbthread.h (struct thread_control_state) <stepping_command>:
9504         New field.
9505         * infcall.c (run_inferior_call): Adjust call to proceed.
9506         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9507         Adjust calls to proceed.
9508         (set_step_frame): Set the current thread's step_start_function
9509         here.
9510         (step_once): Adjust calls to proceed.
9511         (jump_command, signal_command, until_next_command)
9512         (finish_backward, finish_forward, proceed_after_attach_callback)
9513         (attach_command_post_wait): Adjust calls to proceed.
9514         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9515         (do_target_resume): New function, factored out from ...
9516         (resume): ... here.  Remove 'step' parameter.  Instead, check
9517         currently_stepping to determine whether the thread should be
9518         single-stepped.
9519         (proceed): Remove 'step' parameter and don't set the thread's
9520         step_start_function here.  Adjust call to 'resume'.
9521         (handle_inferior_event): Adjust calls to 'resume'.
9522         (switch_back_to_stepped_thread): Use do_target_resume instead of
9523         'resume'.
9524         (keep_going): Adjust calls to 'resume'.
9525         * infrun.h (proceed): Remove 'step' parameter.
9526         (resume): Likewise.
9527         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9528         'resume'.
9529         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9530
9531 2015-03-24  Pedro Alves  <palves@redhat.com>
9532
9533         * gdbthread.h (struct thread_control_state) <stepping_command>:
9534         New field.
9535         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9536         the thread's stepping_command field.
9537         * infrun.c (resume): Check the thread's stepping_command flag to
9538         determine which threads should be resumed.  Rename 'entry_step'
9539         local to user_step.
9540         (clear_proceed_status_thread): Clear 'stepping_command'.
9541         (schedlock_applies): Change parameter type to struct thread_info
9542         pointer.  Adjust.
9543         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9544         (switch_back_to_stepped_thread): Adjust calls to
9545         'schedlock_applies'.
9546         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9547
9548 2015-03-24  Pedro Alves  <palves@redhat.com>
9549
9550         * infrun.c (step_start_function): Delete and ...
9551         * gdbthread.h (struct thread_control_state) <step_start_function>:
9552         ... now a field here.
9553         * infrun.c (clear_proceed_status_thread): Clear the thread's
9554         step_start_function.
9555         (proceed, process_event_stop_test, print_stop_event): Adjust.
9556
9557 2015-03-24  Pedro Alves  <palves@redhat.com>
9558
9559         * infrun.c (proceed): No longer handle negative step.
9560
9561 2015-03-24  Gary Benson  <gbenson@redhat.com>
9562
9563         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9564         (x86_linux_prepare_to_resume): Likewise.
9565         * x86-linux-nat.c (x86_linux_new_thread):
9566         Moved to nat/x86-linux.c.
9567         (x86_linux_prepare_to_resume): Likewise.
9568         * nat/x86-linux.c (x86_linux_new_thread): New function.
9569         (x86_linux_prepare_to_resume): Likewise.
9570
9571 2015-03-24  Gary Benson  <gbenson@redhat.com>
9572
9573         * nat/x86-linux-dregs.h: New file.
9574         * nat/x86-linux-dregs.c: Likewise.
9575         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9576         (x86-linux-dregs.o): New rule.
9577         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9578         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9579         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9580         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9581         (x86_linux_dr_get): Likewise.
9582         (x86_linux_dr_set): Likewise.
9583         (x86_linux_dr_get_addr): Likewise.
9584         (x86_linux_dr_get_control): Likewise.
9585         (x86_linux_dr_get_status): Likewise.
9586         (update_debug_registers_callback): Likewise.
9587         (x86_linux_dr_set_control): Likewise.
9588         (x86_linux_dr_set_addr): Likewise.
9589         (x86_linux_update_debug_registers): Likewise.
9590
9591 2015-03-24  Gary Benson  <gbenson@redhat.com>
9592
9593         * x86-linux-nat.c (x86_linux_update_debug_registers):
9594         New function, factored out from...
9595         (x86_linux_prepare_to_resume): ...this.
9596
9597 2015-03-24  Gary Benson  <gbenson@redhat.com>
9598
9599         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9600         (x86_linux_dr_set): Likewise.
9601         (x86_linux_dr_get_addr): Likewise.
9602         (x86_linux_dr_get_control): Likewise.
9603         (x86_linux_dr_get_status): Likewise.
9604         (update_debug_registers_callback): Likewise.
9605         (x86_linux_dr_set_control): Likewise.
9606         (x86_linux_dr_set_addr): Likewise.
9607         (x86_linux_prepare_to_resume): Likewise.
9608         (x86_linux_new_thread): Likewise.
9609
9610 2015-03-24  Gary Benson  <gbenson@redhat.com>
9611
9612         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9613         (x86_linux_new_thread): Rename argument.
9614
9615 2015-03-24  Gary Benson  <gbenson@redhat.com>
9616
9617         * nat/x86-linux.h: New file.
9618         * nat/x86-linux.c: Likewise.
9619         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9620         (x86-linux.o): New rule.
9621         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9622         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9623         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9624         (lwp_set_arch_private_info): New declaration.
9625         (lwp_arch_private_info): Likewise.
9626         * linux-nat.c (lwp_set_arch_private_info): New function.
9627         (lwp_arch_private_info): Likewise.
9628         * x86-linux-nat.c: Include nat/x86-linux.h.
9629         (arch_lwp_info): Removed structure.
9630         (update_debug_registers_callback):
9631         Use lwp_set_debug_registers_changed.
9632         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9633         and lwp_set_debug_registers_changed.
9634         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9635
9636 2015-03-24  Gary Benson  <gbenson@redhat.com>
9637
9638         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9639         (lwp_is_stopped): Likewise.
9640         (lwp_stop_reason): Likewise.
9641         * linux-nat.c (ptid_of_lwp): New function.
9642         (lwp_is_stopped): Likewise.
9643         (lwp_is_stopped_by_watchpoint): Likewise.
9644         * x86-linux-nat.c (update_debug_registers_callback):
9645         Use lwp_is_stopped.
9646         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9647         lwp_stop_reason.
9648
9649 2015-03-24  Gary Benson  <gbenson@redhat.com>
9650
9651         * linux-nat.h (linux_stop_lwp): Move declaration to...
9652         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9653
9654 2015-03-24  Gary Benson  <gbenson@redhat.com>
9655
9656         * linux-nat.h: Include nat/linux-nat.h.
9657         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9658         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9659         (iterate_over_lwps_ftype): New typedef.
9660         (iterate_over_lwps): New declaration.
9661         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9662         iterate_over_lwps_ftype.  Update callback return value check.
9663
9664 2015-03-24  Gary Benson  <gbenson@redhat.com>
9665
9666         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9667         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9668
9669 2015-03-24  Gary Benson  <gbenson@redhat.com>
9670
9671         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9672         * linux-nat.c (current_lwp_ptid): New function.
9673         * x86-linux-nat.c: Include nat/linux-nat.h.
9674         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9675         (x86_linux_dr_get_control): Likewise.
9676         (x86_linux_dr_get_status): Likewise.
9677         (x86_linux_dr_set_control): Likewise.
9678         (x86_linux_dr_set_addr): Likewise.
9679
9680 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9681
9682         PR breakpoints/16466
9683         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9684
9685 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9686
9687         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9688         * ser-unix.c (hardwire_setparity): Likewise.
9689
9690 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9691
9692         * NEWS: Mention set/show serial parity command.
9693         * monitor.c (monitor_open): Call serial_setparity.
9694         * remote.c (remote_open_1): Likewise.
9695         * ser-base.c (ser_base_serparity): New function.
9696         * ser-base.h (ser_base_setparity): Add  declaration.
9697         * ser-go32.c (dos_ops): Set "setparity" field.
9698         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9699         state.Parity.
9700         (ser_windows_setparity): New function.
9701         (hardwire_ops): Add ser_windows_setparity.
9702         (tty_ops): Add NULL for setparity field.
9703         (pipe_ops): Add ser_base_setparity.
9704         (tcp_ops): Likewise.
9705         * ser-pipe.c (pipe_ops): Likewise.
9706         * ser-tcp.c (tcp_ops): Likewise.
9707         * ser-unix.c (hardwire_setparity): Add declaration.
9708         (hardwire_raw): Don't reset PARENB flag.
9709         (hardwire_setparity): New function.
9710         (hardwire_ops): Add hardwire_setparity.
9711         * serial.c (serial_setparity): New function.
9712         (serial_parity): New global.
9713         (parity_none, parity_odd, parity_even, parity_enums, parity):
9714         New static globals.
9715         (set_parity): New function.
9716         (_initialize_serial): Add set/show serial parity commands.
9717         * serial.h (GDBPARITY_NONE): Define.
9718         (GDBPARITY_ODD): Define.
9719         (GDBPARITY_EVEN): Define.
9720         (serial_setparity) Add declaration.
9721         (struct serial_ops): Add setparity field.
9722         * target.h (serial_parity): Add declaration.
9723
9724 2015-03-23  Keith Seitz  <keiths@redhat.com>
9725
9726         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9727
9728 2015-03-23  Keith Seitz  <keiths@redhat.com>
9729
9730         * breakpoint.c (parse_breakpoint_sals): Use
9731         linespec_lexer_lex_keyword to ascertain if the user specified
9732         a NULL location.
9733         * linespec.c [IF_KEYWORD_INDEX]: Define.
9734         (linespec_lexer_lex_keyword): Export.
9735         (struct ls_parser) <keyword_ok>: Remove.
9736         A keyword is only a keyword if not followed by another keyword.
9737         (linespec_lexer_lex_one): Remove keyword_ok handling.
9738         Add comment explaining why the parsing stream is not advanced
9739         when a keyword is seen.
9740         (parse_linespec): Remove parser->keyword_ok.
9741         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9742
9743 2015-03-23  Keith Seitz  <keiths@redhat.com>
9744
9745         PR gdb/18021
9746         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9747         if we find a static method with DW_AT_vtable_elem_location.
9748
9749 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9750
9751         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9752         before the second loop, to avoid undefined behavior.  Reported by
9753         Anton Blanchard <anton@samba.org>.
9754
9755 2015-03-20  Keven Boell  <keven.boell@intel.com>
9756
9757         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9758         data_location usage to linked list.
9759         (resolve_dynamic_type_internal): Adapt data_location to
9760         linked list.
9761         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9762         (copy_type_recursive, copy_type): Add copy of linked list.
9763         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9764         (struct dynamic_prop_list): New struct.
9765         * dwarf2read.c (set_die_type): Set data_location data.
9766
9767 2015-03-20  Pedro Alves  <palves@redhat.com>
9768
9769         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9770         inner block and make it const.
9771         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9772
9773 2015-03-20  Pedro Alves  <palves@redhat.com>
9774
9775         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9776         * breakpoint.h (set_breakpoint_condition): Update declaration.
9777
9778 2015-03-20  Pedro Alves  <palves@redhat.com>
9779
9780         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9781
9782 2015-03-20  Pedro Alves  <palves@redhat.com>
9783
9784         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9785
9786 2015-03-20  Pedro Alves  <palves@redhat.com>
9787
9788         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9789
9790 2015-03-20  Pedro Alves  <palves@redhat.com>
9791
9792         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9793         (nto_init_solib_absolute_prefix): Likewise.
9794
9795 2015-03-20  Pedro Alves  <palves@redhat.com>
9796
9797         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9798         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9799
9800 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9801
9802         * config/djgpp/README: Remove gdb.hp.
9803
9804 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9805
9806         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9807         set_gdbarch_cannot_step_breakpoint.
9808
9809 2015-03-19  Pedro Alves  <palves@redhat.com>
9810
9811         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9812         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9813         instead call perror_with_name.
9814         (check_ptrace_stopped_lwp_gone): New function.
9815         (linux_resume_one_lwp): Reimplement as wrapper around
9816         linux_resume_one_lwp_throw that swallows errors if the LWP is
9817         gone.
9818         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9819         swallows errors if the LWP is gone.  Use
9820         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9821
9822 2015-03-19  Pedro Alves  <palves@redhat.com>
9823
9824         * linux-nat.c (status_callback): Return early if the LWP has no
9825         status pending.
9826
9827 2015-03-19  Pedro Alves  <palves@redhat.com>
9828
9829         * linux-nat.c (select_event_lwp_callback): Update comment to no
9830         longer mention SIGTRAP.
9831
9832 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9833
9834         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9835         redirection code to ...
9836         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9837         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9838
9839 2015-03-18  Gary Benson <gbenson@redhat.com>
9840
9841         (remote_protocol_features): Remove the "vFile:fstat" feature.
9842         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9843
9844 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9845
9846         PR tdep/18107
9847         * aarch64-linux-tdep.c: Include xml-syscall.h
9848         (aarch64_linux_get_syscall_number): New function.
9849         (aarch64_linux_init_abi): Call
9850         set_gdbarch_get_syscall_number.
9851         * syscalls/aarch64-linux.xml: New file.
9852
9853 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9854
9855         * ser-base.h (ser_base_setstopbits): Change second argument name
9856         from "rate" to "num".
9857
9858 2015-03-17  Gary Benson <gbenson@redhat.com>
9859             Luke Allardyce <lukeallardyce@gmail.com>
9860
9861         PR gdb/18131
9862         * common/common-remote-fileio.h (sys/stat.h): New include.
9863         (stuct stat): Remove forward declaration.
9864
9865 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9866
9867         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9868         before writing core register notes.
9869
9870 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9871             Pedro Alves  <palves@redhat.com>
9872
9873         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9874         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9875         (tgoto): Wrap with extern "C".
9876
9877 2015-03-16  Pedro Alves  <palves@redhat.com>
9878             Yuanhui Zhang  <asmwarrior@gmail.com>
9879
9880         * stub-termcap.c (tputs): Change prototype.
9881
9882 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9883             Pedro Alves  <palves@redhat.com>
9884
9885         * windows-nat.c (struct thread_info_struct): Rename to ...
9886         (struct windows_thread_info_struct): ... this.
9887         (thread_info): Rename to ...
9888         (windows_thread_info): ... this.
9889         All users updated.
9890
9891 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9892             Pedro Alves  <palves@redhat.com>
9893
9894         * NEWS: New Removed targets and native configurations.
9895
9896 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9897
9898         Remove HPUX.
9899         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9900         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9901         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9902         ia64-hpux-tdep.h, solib-ia64-hpux.h.
9903         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9904         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9905         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9906         hppa-hpux-tdep.c.
9907         * config/ia64/hpux.mh: Remove file.
9908         * config/pa/hpux.mh: Remove file.
9909         * configure: Rebuilt.
9910         * configure.ac (dlgetmodinfo, somread.o): Remove.
9911         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9912         (ia64-*-hpux*): Remove its float format exception.
9913         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9914         * hppa-hpux-nat.c: Remove file.
9915         * hppa-hpux-tdep.c: Remove file.
9916         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9917         Move them here from hppa-tdep.h
9918         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9919         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9920         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9921         Move them to hppa-tdep.c.
9922         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9923         declarations.
9924         * ia64-hpux-nat.c: Remove file.
9925         * ia64-hpux-tdep.c: Remove file.
9926         * ia64-hpux-tdep.h: Remove file.
9927         * inf-ttrace.c: Remove file.
9928         * inf-ttrace.h: Remove file.
9929         * solib-ia64-hpux.c: Remove file.
9930         * solib-ia64-hpux.h: Remove file.
9931         * solib-pa64.c: Remove file.
9932         * solib-pa64.h: Remove file.
9933         * solib-som.c: Remove file.
9934         * solib-som.h: Remove file.
9935         * somread.c: Remove file.
9936
9937 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9938
9939         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9940         * config.in: Regenerate.
9941         * configure: Regenerate.
9942         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9943         define.
9944         (fbsd_find_memory_regions): Use kinfo_getvmmap to
9945         enumerate memory regions if present.
9946
9947 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9948
9949         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9950         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9951         expressions.
9952         (i386fbsd_sigtramp_p): Likewise.
9953
9954 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
9955
9956         * MAINTAINERS (Write After Approval): Add John Baldwin.
9957
9958 2015-03-12  Gary Benson <gbenson@redhat.com>
9959
9960         * solib.c (_initialize_solib): Make "set/show sysroot" use
9961         add_setshow_optional_filename_cmd so it can be restored to
9962         empty after being set.
9963
9964 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9965
9966         * Makefile.in (SFILES): New source break-catch-syscall.c.
9967         (COMMON_OBS): New object break-catch-syscall.o.
9968         * break-catch-syscall.c: New file.
9969         * breakpoint.c: Remove inclusion of "xml-syscall.h".
9970         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9971         (struct syscall_catchpoint): Likewise.
9972         (dtor_catch_syscall): Likewise.
9973         (catch_syscall_inferior_data): Likewise.
9974         (struct catch_syscall_inferior_data): Likewise.
9975         (get_catch_syscall_inferior_data): Likewise.
9976         (catch_syscall_inferior_data_cleanup): Likewise.
9977         (insert_catch_syscall): Likewise.
9978         (remove_catch_syscall): Likewise.
9979         (breakpoint_hit_catch_syscall): Likewise.
9980         (print_it_catch_syscall): Likewise.
9981         (print_one_catch_syscall): Likewise.
9982         (print_mention_catch_syscall): Likewise.
9983         (print_recreate_catch_syscall): Likewise.
9984         (catch_syscall_breakpoint_ops): Likewise.
9985         (syscall_catchpoint_p): Likewise.
9986         (create_syscall_event_catchpoint): Likewise.
9987         (catch_syscall_split_args): Likewise.
9988         (catch_syscall_command_1): Likewise.
9989         (is_syscall_catchpoint_enabled): Likewise.
9990         (catch_syscall_enabled): Likewise.
9991         (catching_syscall_number): Likewise.
9992         (catch_syscall_completer): Likewise.
9993         (clear_syscall_counts): Likewise.
9994         (initialize_breakpoint_ops): Move initialization of syscall
9995         catchpoints to break-catch-syscall.c.
9996         (_initialize_breakpoint): Move code related to syscall catchpoints
9997         to break-catch-syscall.c.
9998
9999 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10000
10001         * breakpoint.c (breakpoint_find_if): New function.
10002         * breakpoint.h (breakpoint_find_if): New prototype.
10003
10004 2015-03-11  Gary Benson <gbenson@redhat.com>
10005
10006         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10007         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10008         (remote_fileio_to_host_ulong): Likewise.
10009         (remote_fileio_to_host_mode): Likewise.
10010         (remote_fileio_to_host_time): Likewise.
10011         (remote_fileio_to_host_stat): Likewise.
10012         * remote.c (PACKET_vFile_fstat): New enum value.
10013         (remote_protocol_features): Register the "vFile:fstat" feature.
10014         (remote_hostio_fstat): New function.
10015         (remote_bfd_iovec_stat): Use the above.
10016         (_initialize_remote): Register new "set/show remote
10017         hostio-fstat-packet" command.
10018         * symfile.c (separate_debug_file_exists): Update comment.
10019         * NEWS: Announce new vFile:fstat packet.
10020
10021 2015-03-11  Gary Benson <gbenson@redhat.com>
10022
10023         * common/common-remote-fileio.h: New file.
10024         * common/common-remote-fileio.c: Likewise.
10025         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10026         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10027         (COMMON_OBS): Add common-remote-fileio.o.
10028         (common-remote-fileio.o): New rule.
10029         * remote-fileio.h (common-remote-fileio.h): New include.
10030         * remote-fileio.c (gdb/fileio.h): Do not include.
10031         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10032         (remote_fileio_to_fio_uint): Likewise.
10033         (remote_fileio_to_fio_time): Likewise.
10034         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10035         (remote_fileio_to_fio_mode): Likewise.
10036         (remote_fileio_to_fio_ulong): Likewise.
10037         (remote_fileio_to_fio_stat): Likewise.
10038
10039 2015-03-11  Andy Wingo  <wingo@igalia.com>
10040
10041         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10042         we were checking the cached type, not the cached dynamic type.
10043
10044 2015-03-11  Andy Wingo  <wingo@igalia.com>
10045
10046         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10047         other strings, as these are on the GC'd heap, and will be
10048         collected along with the smob.
10049
10050 2015-03-11  Andy Wingo  <wingo@igalia.com>
10051
10052         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10053         (objfile_functions): Bind gdbscm_objfile_progspace to
10054         objfile-progspace.
10055         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10056
10057 2015-03-11  Andy Wingo  <wingo@igalia.com>
10058
10059         * guile/guile.c (_initialize_guile): Disable automatic
10060         finalization, if Guile offers us that possibility.
10061         * guile/guile.c (call_initialize_gdb_module):
10062         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10063         finalizers in appropriate places.
10064         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10065         scm_set_automatic_finalization_enabled.
10066         * configure: Regenerated.
10067
10068 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10069
10070         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10071         SAL, if possible.
10072
10073 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10074
10075         * s390-linux-nat.c (struct arch_lwp_info): New.
10076         (s390_fix_watch_points): Rename to...
10077         (s390_prepare_to_resume): ...this.  Skip the PER info update
10078         unless the watch points have changed.
10079         (s390_refresh_per_info, s390_new_thread): New functions.
10080         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10081         s390_fix_watch_points.
10082         (s390_remove_watchpoint): Likewise.
10083         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10084         Register s390_prepare_to_resume.
10085
10086 2015-03-09  Pedro Alves  <palves@redhat.com>
10087
10088         Revert:
10089         2015-03-07  Pedro Alves  <palves@redhat.com>
10090         * common/gdb_socket.h: New file.
10091         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10092         sys/socket.h.
10093         (net_open): Use union gdb_sockaddr_u.
10094
10095 2015-03-07  Pedro Alves  <palves@redhat.com>
10096
10097         * configure.ac (build_warnings): Move -Wmissing-prototypes
10098         -Wdeclaration-after-statement -Wmissing-parameter-type
10099         -Wold-style-declaration -Wold-style-definition to the C-specific
10100         set.
10101         * configure: Regenerate.
10102
10103 2015-03-07  Pedro Alves  <palves@redhat.com>
10104
10105         * common/gdb_socket.h: New file.
10106         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10107         sys/socket.h.
10108         (net_open): Use union gdb_sockaddr_u.
10109
10110 2015-03-07  Pedro Alves  <palves@redhat.com>
10111
10112         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10113         (exceptions_state_mc_action_iter)
10114         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10115         Don't define.
10116         [__cplusplus] (try_scope_depth): New global.
10117         [__cplusplus] (exception_try_scope_entry)
10118         (exception_try_scope_exit, gdb_exception_sliced_copy)
10119         (exception_rethrow): New functions.
10120         (throw_exception): In C++ mode, throw
10121         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10122         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10123         (throw_it): In C++ mode, use try_scope_depth.
10124         * common/common-exceptions.h [!__cplusplus]
10125         (exceptions_state_mc_action_iter)
10126         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10127         Don't declare.
10128         [__cplusplus] (exception_try_scope_entry)
10129         (exception_try_scope_exit, exception_rethrow): Declare.
10130         [__cplusplus] (struct exception_try_scope): New struct.
10131         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10132         C++ exceptions.
10133         (struct gdb_exception_RETURN_MASK_ALL)
10134         (struct gdb_exception_RETURN_MASK_ERROR)
10135         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10136
10137 2015-03-07  Pedro Alves  <palves@redhat.com>
10138
10139         * main.c (handle_command_errors): Remove volatile qualifier from
10140         parameter.
10141
10142 2015-03-07  Pedro Alves  <palves@redhat.com>
10143
10144         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10145         TRY and CATCH.
10146         * gdbtypes.c (safe_parse_type): Remove empty line.
10147         (types_deeply_equal):
10148         * guile/scm-frame.c (gdbscm_frame_name):
10149         * linux-thread-db.c (find_new_threads_once):
10150         * python/py-breakpoint.c (bppy_get_commands):
10151         * record-btrace.c (record_btrace_insert_breakpoint)
10152         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10153         (record_btrace_start_replaying): Adjust to avoid code between TRY
10154         and CATCH.
10155
10156 2015-03-07  Pedro Alves  <palves@redhat.com>
10157
10158         * common/common-exceptions.c (struct catcher) <exception>: No
10159         longer a pointer to volatile exception.  Now an exception value.
10160         <mask>: Delete field.
10161         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10162         (exceptions_state_mc): No longer pop the catcher here.
10163         (exceptions_state_mc_catch): New function.
10164         (throw_exception): Adjust.
10165         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10166         all parameters.
10167         (exceptions_state_mc_catch): Declare.
10168         (TRY_CATCH): Rename to ...
10169         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10170         (CATCH, END_CATCH): New.
10171         All callers adjusted.
10172
10173 2015-03-07  Tom Tromey  <tromey@redhat.com>
10174
10175         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10176
10177 2015-03-07  Pedro Alves  <palves@redhat.com>
10178
10179         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10180         (amd64_epilogue_frame_cache): Normal exception handling code.
10181         * break-catch-throw.c (check_status_exception_catchpoint)
10182         (re_set_exception_catchpoint): Ditto.
10183         * cli/cli-interp.c (safe_execute_command):
10184         * cli/cli-script.c (script_from_file): Ditto.
10185         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10186         Ditto.
10187         * compile/compile-object-run.c (compile_object_run): Ditto.
10188         * cp-abi.c (baseclass_offset): Ditto.
10189         * cp-valprint.c (cp_print_value): Ditto.
10190         * exceptions.c (catch_exceptions_with_msg):
10191         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10192         * frame.c (get_frame_address_in_block_if_available): Ditto.
10193         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10194         (i386_sigtramp_frame_cache): Ditto.
10195         * infcmd.c (post_create_inferior): Ditto.
10196         * linespec.c (parse_linespec, find_linespec_symbols):
10197         * p-valprint.c (pascal_object_print_value): Ditto.
10198         * parse.c (parse_expression_for_completion): Ditto.
10199         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10200         * remote.c (remote_get_noisy_reply): Ditto.
10201         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10202         * solib-svr4.c (solib_svr4_r_map): Ditto.
10203
10204 2015-03-06  Gary Benson  <gbenson@redhat.com>
10205
10206         * common/common-utils.h (startswith): New inline function.
10207         All places where this logic was used updated to use the above.
10208
10209 2015-03-05  Pedro Alves  <palves@redhat.com>
10210
10211         PR gdb/18002
10212         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10213         after reading the breakpoint's shadow memory.
10214
10215 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10216
10217         * hppabsd-nat.c: Remove file.
10218         * hppaobsd-nat.c: New file.
10219         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10220         hppaobsd-nat.c.
10221         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10222         hppaobsd-nat.o.
10223
10224 2015-03-04  Pedro Alves  <palves@redhat.com>
10225
10226         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10227         (target_decr_pc_after_break): Delete declaration.
10228         * target.c (default_target_decr_pc_after_break)
10229         (target_decr_pc_after_break): Delete.
10230         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10231         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10232         * linux-thread-db.c (check_event): Likewise.
10233         * infrun.c (adjust_pc_after_break): Likewise.
10234         * darwin-nat.c (cancel_breakpoint): Likewise.
10235         * aix-thread.c (aix_thread_wait): Likewise.
10236         * target-delegates.c: Regenerate.
10237
10238 2015-03-04  Pedro Alves  <palves@redhat.com>
10239
10240         * linux-nat.c (save_sigtrap): Check for breakpoints before
10241         checking watchpoints.
10242         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10243         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10244         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10245         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10246         (linux_nat_stopped_by_sw_breakpoint)
10247         (linux_nat_supports_stopped_by_sw_breakpoint)
10248         (linux_nat_stopped_by_hw_breakpoint)
10249         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10250         (linux_nat_wait_1): Don't re-increment the PC if relying on
10251         SIGTRAP's siginfo->si_code.
10252         (linux_nat_add_target): Install new target methods.
10253         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10254         offset if the target already adjusted the PC.
10255         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10256         (GDB_ARCH_TRAP_BRKPT): New.
10257         (TRAP_HWBKPT): Define if not already defined.
10258
10259 2015-03-04  Pedro Alves  <palves@redhat.com>
10260
10261         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10262         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10263         Delete field.
10264         <stop_reason>: New field.
10265         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10266         (packet_set_cmd_state): New function.
10267         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10268         features.
10269         (remote_query_supported): If not disabled with the corresponding
10270         "set remote foo-packet" command, report support for the swbreak
10271         and hwbreak features.
10272         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10273         field.
10274         <stop_reason>: New field.
10275         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10276         (remote_wait_as): Adjust.
10277         (remote_stopped_by_sw_breakpoint)
10278         (remote_supports_stopped_by_sw_breakpoint)
10279         (remote_stopped_by_hw_breakpoint)
10280         (remote_supports_stopped_by_hw_breakpoint): New functions.
10281         (remote_stopped_by_watchpoint): New function.
10282         (init_remote_ops): Install them.
10283         (_initialize_remote): Register new "set/show remote
10284         swbreak-feature-packet" and "set/show remote
10285         swbreak-feature-packet" commands.
10286
10287 2015-03-04  Pedro Alves  <palves@redhat.com>
10288
10289         * btrace.h: Include target/waitstatus.h.
10290         (struct btrace_thread_info) <stop_reason>: New field.
10291         * record-btrace.c (record_btrace_step_thread): Use
10292         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10293         (record_btrace_decr_pc_after_break): Delete.
10294         (record_btrace_stopped_by_sw_breakpoint)
10295         (record_btrace_supports_stopped_by_sw_breakpoint)
10296         (record_btrace_stopped_by_hw_breakpoint)
10297         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10298         (init_record_btrace_ops): Install them.
10299         * record-full.c (record_full_hw_watchpoint): Delete and replace
10300         with ...
10301         (record_full_stop_reason): ... this throughout.
10302         (record_full_exec_insn): Adjust.
10303         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10304         (record_full_wait_1): Adjust.  Use
10305         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10306         (record_full_stopped_by_watchpoint): Adjust.
10307         (record_full_stopped_by_sw_breakpoint)
10308         (record_full_supports_stopped_by_sw_breakpoint)
10309         (record_full_supports_stopped_by_sw_breakpoint)
10310         (record_full_stopped_by_hw_breakpoint)
10311         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10312         (init_record_full_ops, init_record_full_core_ops): Install them.
10313         * record.c (record_check_stopped_by_breakpoint): New function.
10314         * record.h: Include target/waitstatus.h.
10315         (record_check_stopped_by_breakpoint): New declaration.
10316
10317 2015-03-04  Pedro Alves  <palves@redhat.com>
10318
10319         enum lwp_stop_reason -> enum target_stop_reason
10320         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10321         (linux_nat_stopped_by_watchpoint, status_callback)
10322         (linux_nat_wait_1): Adjust.
10323         * linux-nat.h (enum lwp_stop_reason): Delete.
10324         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10325         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10326         * target/waitstatus.h (enum target_stop_reason): New.
10327
10328 2015-03-04  Pedro Alves  <palves@redhat.com>
10329
10330         * breakpoint.c (need_moribund_for_location_type): New function.
10331         (bpstat_stop_status): Don't skipping checking moribund locations
10332         of breakpoint types which the target tell caused a stop.
10333         (program_breakpoint_here_p): New function, factored out from ...
10334         (bp_loc_is_permanent): ... this.
10335         (update_global_location_list): Don't create a moribund location if
10336         the target supports reporting stops of the type of the removed
10337         breakpoint.
10338         * breakpoint.h (program_breakpoint_here_p): New declaration.
10339         * infrun.c (adjust_pc_after_break): Return early if the target has
10340         already adjusted the PC.  Add comments.
10341         (handle_signal_stop): If nothing explains a signal, and the target
10342         tells us the stop was caused by a software breakpoint, check if
10343         there's a breakpoint instruction in the memory.  If so, adjust the
10344         PC before presenting the stop to the user.  Otherwise, ignore the
10345         trap.  If nothing explains a signal, and the target tells us the
10346         stop was caused by a hardware breakpoint, ignore the trap.
10347         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10348         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10349         to_supports_stopped_by_hw_breakpoint>: New fields.
10350         (target_stopped_by_sw_breakpoint)
10351         (target_supports_stopped_by_sw_breakpoint)
10352         (target_stopped_by_hw_breakpoint)
10353         (target_supports_stopped_by_hw_breakpoint): Define.
10354         * target-delegates.c: Regenerate.
10355
10356 2015-03-04  Pedro Alves  <palves@redhat.com>
10357
10358         * infrun.c (follow_fork_inferior): Use the whole of the
10359         inferior_ptid and pending_follow.related_pid ptids instead of
10360         building ptids from the process components.  Adjust verbose output
10361         to use target_pid_to_str.
10362         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10363         inferior_ptid and pending_follow.related_pid ptids instead of
10364         building ptids from the process components.
10365
10366 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10367
10368         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10369         (inf_ptrace_insert_fork_catchpoint): New function.
10370         (inf_ptrace_remove_fork_catchpoint): New function.
10371         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10372
10373 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10374
10375         * s390-linux-tdep.c (s390_register_name): Return empty string
10376         instead of NULL for registers that shouldn't be visible.
10377
10378 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10379
10380         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10381         XML file for 64-bit targets.
10382
10383 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10384
10385         * target.h (find_default_create_inferior): Remove declaration.
10386         (find_default_attach): Likewise.
10387
10388 2015-03-03  Pedro Alves  <palves@redhat.com>
10389
10390         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10391         Use ptid_get_pid to get the overall process id when resuming all
10392         threads.
10393
10394 2015-03-03  Pedro Alves  <palves@redhat.com>
10395
10396         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10397         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10398         * inf-ptrace.c (get_ptrace_pid): New function.
10399         (inf_ptrace_resume): Use it.
10400         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10401         to the lower layer.
10402
10403 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10404
10405         * nat/linux-btrace.c: Include sys/utsname.h.
10406         (linux_determine_kernel_ptr_bits): New.
10407         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10408         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10409         ptr_bits.
10410
10411 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10412
10413         * btrace.c (ftrace_update_function): Treat return as tailcall for
10414         "_dl_runtime_resolve".
10415
10416 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10417
10418         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10419         * btrace.c (ftrace_debug): Do not print the line range.
10420         (ftrace_skip_file, ftrace_update_lines): Remove.
10421         (ftrace_new_function): Remove lbegin and lend initialization.
10422         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10423         * record-btrace.c (btrace_compute_src_line_range): New.
10424         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10425
10426 2015-03-02  Pedro Alves  <palves@redhat.com>
10427
10428         * infrun.c (follow_exec): Delete all threads of the process except
10429         the event thread.  Extended comments.
10430
10431 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10432
10433         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10434
10435 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10436
10437         * utils.h: Remove <stdbool.h> #include.
10438         (producer_is_gcc): Change return type to "int".
10439         * utils.c (producer_is_gcc): Change return type to int.
10440         Return 1 instead of true, and 0 instead of false.
10441         Adjust function documentation accordingly.
10442
10443 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10444
10445         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10446         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10447         present.
10448         (s390_linux_store_inferior_registers): Likewise.
10449         (s390_get_hwcap): Remove function.  Embed its logic...
10450         (s390_read_description): ...here.  Yield a target description with
10451         vector registers if applicable.
10452         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10453         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10454         "features/s390x-tevx-linux64.c".
10455         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10456         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10457         for "GNU/Linux-specific registers".
10458         (s390_dwarf_reg_r0l): New enum value.
10459         (s390_dwarf_reg_to_regnum): Support vector registers.
10460         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10461         of GPR lower halves.
10462         (regnum_is_vxr_full): New function.
10463         (s390_register_name): New function.
10464         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10465         f0-f15 and v0l-v15l.
10466         (s390_pseudo_register_type): Likewise.
10467         (s390_pseudo_register_read): Likewise.
10468         (s390_pseudo_register_write): Likewise.
10469         (s390_value_from_register): Account for the fact that values are
10470         placed left-justified in vector registers.
10471         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10472         the vector reggroup and omit them from the general reggroup.
10473         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10474         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10475         (s390_iterate_over_regset_sections): Add iterations for the two
10476         new vector regsets.
10477         (s390_core_read_description): Yield a target description with
10478         vector registers if applicable.
10479         (s390_gdbarch_init): Handle target descriptions with vector
10480         registers.  Add "register_name" gdbarch method.
10481         (_initialize_s390_tdep): Call new tdesc initialization functions.
10482         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10483         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10484         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10485         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10486         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10487         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10488         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10489         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10490         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10491         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10492         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10493         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10494         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10495         (S390_NUM_REGS): Adjust value.
10496         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10497         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10498         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10499         * NEWS: Announce S/390 vector register support.
10500
10501 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10502
10503         * features/s390-tevx-linux64.xml: New file.
10504         * features/s390-vx-linux64.xml: New file.
10505         * features/s390-vx.xml: New file.
10506         * features/s390x-tevx-linux64.xml: New file.
10507         * features/s390x-vx-linux64.xml: New file.
10508         * features/Makefile (WHICH): Add s390-vx-linux64,
10509         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10510         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10511         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10512         macros.
10513         * features/s390-tevx-linux64.c: New generated file.
10514         * features/s390-vx-linux64.c: Likewise.
10515         * features/s390x-tevx-linux64.c: Likewise.
10516         * features/s390x-vx-linux64.c: Likewise.
10517         * regformats/s390-tevx-linux64.dat: Likewise.
10518         * regformats/s390-vx-linux64.dat: Likewise.
10519         * regformats/s390x-tevx-linux64.dat: Likewise.
10520         * regformats/s390x-vx-linux64.dat: Likewise.
10521
10522 2015-02-28  Doug Evans  <xdje42@gmail.com>
10523
10524         * symtab.h (struct symtab) <next>: Fix comment.
10525
10526 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10527
10528         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10529         python_GdbMethods.
10530
10531 2015-02-27  Pedro Alves  <palves@redhat.com>
10532
10533         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10534
10535 2015-02-27  Pedro Alves  <palves@redhat.com>
10536
10537         * common/common-exceptions.h (exception_none): Declare.
10538         * common/common-exceptions.c (exception_none): Moved from
10539         exceptions.c.
10540         (exceptions_state_mc_init): Use exception_none.
10541         * exceptions.c (exception_none): Move to
10542         common/common-exceptions.c.
10543         * exceptions.h (exception_none): Move to
10544         common/common-exceptions.h.
10545
10546 2015-02-27  Pedro Alves  <palves@redhat.com>
10547
10548         * main.c (catch_command_errors, catch_command_errors_const):
10549         Remove 'mask' argument.  Adjust.
10550         (captured_main): Adjust callers.
10551
10552 2015-02-27  Pedro Alves  <palves@redhat.com>
10553
10554         * python/python-internal.h: Include "extension-priv.h".
10555
10556 2015-02-27  Pedro Alves  <palves@redhat.com>
10557
10558         * breakpoint.h (enum print_stop_action): Move further up in the
10559         file.
10560
10561 2015-02-27  Pedro Alves  <palves@redhat.com>
10562
10563         * gdbarch.sh: Include regcache.h.
10564         * gdbarch.h: Regenerate.
10565
10566 2015-02-27  Pedro Alves  <palves@redhat.com>
10567
10568         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10569         Remove duplicate const.
10570         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10571         duplicate const.
10572
10573 2015-02-27  Pedro Alves  <palves@redhat.com>
10574
10575         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10576         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10577         * features/feature_to_c.sh: Tag the generated xml_builtin array
10578         with extern const in C++ mode.
10579
10580 2015-02-27  Tom Tromey  <tromey@redhat.com>
10581
10582         * minidebug.c (struct lzma_stream): Rename to ...
10583         (struct gdb_lzma_stream): ... this.
10584         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10585
10586 2015-02-27  Pedro Alves  <palves@redhat.com>
10587
10588         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10589         function.
10590         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10591         (mi_cmd_stack_list_variables): Use it.
10592
10593 2015-02-27  Pedro Alves  <palves@redhat.com>
10594
10595         * x86-linux-nat.c (u_debugreg_offset): New function.
10596         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10597
10598 2015-02-27  Pedro Alves  <palves@redhat.com>
10599
10600         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10601         declaration.
10602         Include break-common.h.
10603
10604 2015-02-27  Tom Tromey  <tromey@redhat.com>
10605             Pedro Alves <palves@redhat.com>
10606
10607         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10608         local used to iterate over enums.
10609         * completer.c (signal_completer): Likewise.
10610         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10611         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10612         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10613         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10614         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10615         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10616         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10617
10618 2015-02-27  Pedro Alves  <palves@redhat.com>
10619
10620         * target.h: Include "infrun.h".
10621
10622 2015-02-27  Pedro Alves  <palves@redhat.com>
10623
10624         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10625
10626 2015-02-27  Pedro Alves  <palves@redhat.com>
10627
10628         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10629         (IPA_SYM): Use it.
10630         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10631
10632 2015-02-27  Pedro Alves  <palves@redhat.com>
10633
10634         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10635         cli_mld_erase_entire_line, and make it extern "C".
10636         * common/common-defs.h (EXTERN_C): New.
10637         * completer.c (_rl_completion_prefix_display_length)
10638         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10639         out of gdb_display_match_list_1.
10640         (_rl_qsort_string_compare): Move declaration out of
10641         gdb_display_match_list_1, and make it extern "C".
10642         * defs.h (re_comp): Use EXTERN_C.
10643         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10644         and make it extern "C".
10645         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10646         and make it extern "C".
10647         (main): Move declaration out of maintenance_set_profile_cmd.
10648         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10649         EXTERN_C.
10650
10651 2015-02-27  Pedro Alves  <palves@redhat.com>
10652
10653         * python/python.c (GdbMethods): Rename to ...
10654         (python_GdbMethods): ... this and make extern.
10655         (GdbModuleDef): Rename to ...
10656         (python_GdbModuleDef): ... this and make extern.
10657
10658 2015-02-27  Pedro Alves  <palves@redhat.com>
10659
10660         * record-btrace.c (set_record_btrace_cmdlist)
10661         (show_record_btrace_cmdlist): Remove redefinitions.
10662
10663 2015-02-27  Tom Tromey  <tromey@redhat.com>
10664             Pedro Alves  <palves@redhat.com>
10665
10666         * dwarf2-frame.c (enum cfa_how_kind, struct
10667         dwarf2_frame_state_reg_info): Move out of struct
10668         dwarf2_frame_state.
10669         * dwarf2read.c (struct tu_stats): Move out of struct
10670         dwarf2_per_objfile.
10671         (struct file_entry): Move out of struct line_header.
10672         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10673         typedef_field_list): Move out of struct field_info.
10674         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10675         Move out of struct dynamic_prop.
10676         (union type_owner, union field_location, struct field, struct
10677         range_bounds, union type_specific): Move out of struct main_type.
10678         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10679         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10680         (struct call_site_target, union call_site_parameter_u, struct
10681         call_site_parameter): Move out of struct call_site.
10682         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10683         m32c_prologue.
10684         (enum srcdest_kind): Move out of struct srcdest.
10685         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10686         * prologue-value.h (enum prologue_value_kind): Move out of struct
10687         prologue_value.
10688         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10689         gdbarch_tdep.
10690         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10691         out of struct field_info.
10692         * symfile.h (struct other_sections): Move out of struct
10693         section_addr_info.
10694         * symtab.c (struct symbol_cache_slot): Move out struct
10695         block_symbol_cache.
10696         * target-descriptions.c (enum tdesc_type_kind): Move out of
10697         typedef struct tdesc_type.
10698         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10699         struct tui_line_or_address.
10700         * value.c (enum internalvar_kind, union internalvar_data): Move
10701         out of struct internalvar.
10702         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10703         gdbarch_tdep.
10704
10705 2015-02-27  Tom Tromey  <tromey@redhat.com>
10706             Pedro Alves  <palves@redhat.com>
10707
10708         Rename symbols whose names are reserved C++ keywords throughout.
10709
10710 2015-02-27  Pedro Alves  <palves@redhat.com>
10711
10712         * Makefile.in (COMPILER): New, get it from autoconf.
10713         (COMPILE.pre, CC_LD): Use COMPILER.
10714         (CXX): Get from autoconf instead.
10715         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10716         * acinclude.m4: Include build-with-cxx.m4.
10717         * build-with-cxx.m4: New file.
10718         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10719         Disable -Werror by default if building in C++ mode.
10720         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10721         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10722         Run supported-warning-flags tests with the C++ compiler.
10723         Save/restore CXXFLAGS too.
10724         * configure: Regenerate.
10725
10726 2015-02-27  Pedro Alves  <palves@redhat.com>
10727
10728         * libiberty.m4: New file.
10729         * acinclude.m4: Include libiberty.m4.
10730         * configure.ac: Call libiberty_INIT.
10731         * config.in, configure: Regenerate.
10732
10733 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10734
10735         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10736         31-bit targets, but 64-bit targets as well.
10737         (s390_gnu_triplet_regexp): New function.
10738         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10739         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10740         method.
10741
10742 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10743
10744         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10745         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10746         from CONTEXT_DEBUGGER.
10747
10748 2015-02-26  Doug Evans  <dje@google.com>
10749
10750         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10751         CHECK_TYPEDEF.
10752         (set_type_vptr_fieldno): Ditto.
10753         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10754         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10755
10756 2015-02-26  Pedro Alves  <palves@redhat.com>
10757
10758         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10759         * complaints.c (vcomplaint): Pass argument FMT directly to
10760         printf-like functions instead of complaint->fmt.
10761         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10762         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10763         * compile/compile-loc2c.c (pushf, unary, binary): Add
10764         ATTRIBUTE_PRINTF.
10765         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10766         to pushf.
10767         (BINARY): Pass string literal as format string to 'binary'.
10768         * compile/compile-object-load.c (link_callbacks_einfo): Add
10769         ATTRIBUTE_PRINTF.
10770         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10771
10772 2015-02-26  Pedro Alves  <palves@redhat.com>
10773
10774         * windows-termcap.c: Rename to ...
10775         * stub-termcap.c: ... this.  Adjust header line.
10776         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10777         windows-termcap.c.
10778         * configure: Regenerate.
10779         * configure.ac: Refer to stub-termcap.o instead of
10780         windows-termcap.o.
10781         * gdb_curses.h: Mention stub-termcap.c instead of
10782         windows-termcap.c.
10783
10784 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10785
10786         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10787         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10788
10789 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10790
10791         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10792
10793 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10794
10795         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10796         bfd_canonicalize_symtab.
10797
10798 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10799
10800         * amd64fbsd-nat.c: Include sys/user.h.
10801         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10802         instead of KERN_PS_STRINGS to locate the signal trampoline.
10803         * i386fbsd-nat.c: Include sys/user.h.
10804         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10805         instead of KERN_PS_STRINGS to locate the signal trampoline.
10806         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10807         (amd64fbsd_sigtramp_p): New.
10808         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10809         longer set default values.
10810         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10811         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10812         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10813         (i386fbsd_freebsd4_sigtramp_start)
10814         (i386fbsd_freebsd4_sigtramp_middle)
10815         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10816         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10817         (i386fbsd_sigtramp_p): New.
10818         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10819         longer set default values.
10820         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10821
10822 2015-02-25  John Baldwin  <jhb@freebsd.org>
10823
10824         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10825         get_frame_register instead of frame_unwind_register_unsigned.
10826
10827 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10828
10829         PR build/18033
10830         * compile/compile-c-support.c (c_compute_program): Change // comment.
10831         * compile/compile-object-load.c (setup_sections): Change // comment.
10832
10833 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10834
10835         PR build/18033:
10836         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10837
10838 2015-02-23  Pedro Alves  <palves@redhat.com>
10839
10840         * remote.c (skip_to_semicolon): New function.
10841         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10842         special case the stop reasons that look like hex numbers
10843         upfront.  Instead handle real register numbers after matching
10844         all the known stop reasons.
10845
10846 2015-02-21  Doug Evans  <dje@google.com>
10847
10848         PR c++/17976, symtab/17821
10849         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10850         is_in_anonymous.  All callers updated.
10851         (find_symbol_in_baseclass): Ditto.
10852         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10853         for symbols in an anonymous namespace.
10854         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10855         DW_AT_name directly.
10856         (dwarf2_name): Convert missing namespace name to
10857         CP_ANONYMOUS_NAMESPACE_STR.
10858
10859 2015-02-20  Pedro Alves  <palves@redhat.com>
10860
10861         * linux-nat.c (linux_handle_extended_wait): Call
10862         thread_db_notice_clone whenever a new clone LWP is detected.
10863         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10864         functions.
10865         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10866         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10867         (linux_unstop_all_lwps): Declare.
10868         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10869         (thread_get_info_callback): Delete.
10870         (thread_from_lwp): Use td_thr_get_info and record_thread.
10871         (thread_db_attach_lwp): Delete.
10872         (thread_db_notice_clone): New function.
10873         (try_thread_db_load_1): If /proc is mounted and shows the
10874         process'es task list, walk over all LWPs and call thread_from_lwp
10875         instead of relying on td_ta_thr_iter.
10876         (attach_thread): Don't call check_thread_signals here.  Split the
10877         tail part of the function (which adds the thread to the core GDB
10878         thread list) to ...
10879         (record_thread): ... this function.  Call check_thread_signals
10880         here.
10881         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10882         call thread_from_lwp.
10883         (thread_db_update_thread_list): Rename to ...
10884         (thread_db_update_thread_list_org): ... this.
10885         (thread_db_update_thread_list): New function.
10886         (thread_db_find_thread_from_tid): Delete.
10887         (thread_db_get_ada_task_ptid): Simplify.
10888         * nat/linux-procfs.c: Include <sys/stat.h>.
10889         (linux_proc_task_list_dir_exists): New function.
10890         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10891
10892 2015-02-20  Pedro Alves  <palves@redhat.com>
10893
10894         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10895         main LWP.  Handle the case of waitpid returning 0 if we're already
10896         attached to the LWP.  Don't set the LWP's last_resume_kind to
10897         resume_stop if we already knew about the LWP.
10898         (linux_nat_filter_event): Add debug logs.
10899
10900 2015-02-20  Pedro Alves  <palves@redhat.com>
10901
10902         * target.h (forward_target_decr_pc_after_break): Delete
10903         declaration.
10904
10905 2015-02-20  Pedro Alves  <palves@redhat.com>
10906
10907         PR threads/18006
10908         * linux-thread-db.c (thread_get_info_callback): Return early if
10909         the thread's lwp id is -1.
10910
10911 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
10912
10913         GDB 7.9 released.
10914
10915 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
10916
10917         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10918         (dtrace_get_probes) Change type of variable 'dof'.
10919
10920 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10921
10922         PR breakpoints/16812
10923         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10924         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10925         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10926
10927 2015-02-19  David Taylor  <dtaylor@emc.com>
10928
10929         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10930
10931 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
10932
10933         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10934         function.
10935         (tui_putc): Don't call tui_handle_resize_during_io.
10936         (tui_getc): Likewise.
10937         (tui_mld_getc): Likewise.
10938         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10939         (tui_sigwinch_token): New static variable.
10940         (tui_initialize_win): Adjust documentation.  Set
10941         tui_sigwinch_token.
10942         (tui_async_resize_screen): New asynchronous callback.
10943         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
10944         invoke tui_async_resize_screen.
10945
10946 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
10947
10948         * configure: Regenerated.
10949         * configure.ac: Use GDB_AC_TRANSFORM.
10950         * Makefile.in (aclocal_m4_deps): Added transform.m4.
10951         * acinclude.m4: sinclude transform.m4.
10952         * transform.m4: New file.
10953         (GDB_AC_TRANSFORM): New macro.
10954
10955 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10956
10957         * NEWS: Announce the support for DTrace SDT probes.
10958
10959 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10960
10961         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10962         (amd64_dtrace_parse_probe_argument): New function.
10963         (amd64_dtrace_probe_is_enabled): Likewise.
10964         (amd64_dtrace_enable_probe): Likewise.
10965         (amd64_dtrace_disable_probe): Likewise.
10966         (amd64_linux_init_abi): Register the
10967         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10968         `gdbarch_dtrace_disable_probe' and
10969         `gdbarch_dtrace_probe_is_enabled' hooks.
10970         (amd64_dtrace_disabled_probe_sequence_1): New constant.
10971         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10972         (amd64_dtrace_enable_probe_sequence): Likewise.
10973         (amd64_dtrace_disable_probe_sequence): Likewise.
10974
10975 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10976
10977         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10978         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10979         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10980         handle ELF files.
10981         * Makefile.in (SFILES): dtrace-probe.c added.
10982         * configure: Regenerate.
10983         * dtrace-probe.c: New file.
10984         (SHT_SUNW_dof): New constant.
10985         (dtrace_probe_type): New enum.
10986         (dtrace_probe_arg): New struct.
10987         (dtrace_probe_arg_s): New typedef.
10988         (struct dtrace_probe_enabler): New struct.
10989         (dtrace_probe_enabler_s): New typedef.
10990         (dtrace_probe): New struct.
10991         (dtrace_probe_is_linespec): New function.
10992         (dtrace_dof_sect_type): New enum.
10993         (dtrace_dof_dofh_ident): Likewise.
10994         (dtrace_dof_encoding): Likewise.
10995         (DTRACE_DOF_ENCODE_LSB): Likewise.
10996         (DTRACE_DOF_ENCODE_MSB): Likewise.
10997         (dtrace_dof_hdr): New struct.
10998         (dtrace_dof_sect): Likewise.
10999         (dtrace_dof_provider): Likewise.
11000         (dtrace_dof_probe): Likewise.
11001         (DOF_UINT): New macro.
11002         (DTRACE_DOF_PTR): Likewise.
11003         (DTRACE_DOF_SECT): Likewise.
11004         (dtrace_process_dof_probe): New function.
11005         (dtrace_process_dof): Likewise.
11006         (dtrace_build_arg_exprs): Likewise.
11007         (dtrace_get_arg): Likewise.
11008         (dtrace_get_probes): Likewise.
11009         (dtrace_get_probe_argument_count): Likewise.
11010         (dtrace_can_evaluate_probe_arguments): Likewise.
11011         (dtrace_evaluate_probe_argument): Likewise.
11012         (dtrace_compile_to_ax): Likewise.
11013         (dtrace_probe_destroy): Likewise.
11014         (dtrace_gen_info_probes_table_header): Likewise.
11015         (dtrace_gen_info_probes_table_values): Likewise.
11016         (dtrace_probe_is_enabled): Likewise.
11017         (dtrace_probe_ops): New variable.
11018         (info_probes_dtrace_command): New function.
11019         (_initialize_dtrace_probe): Likewise.
11020         (dtrace_type_name): Likewise.
11021
11022 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11023
11024         * gdbarch.sh (dtrace_parse_probe_argument): New.
11025         (dtrace_probe_is_enabled): Likewise.
11026         (dtrace_enable_probe): Likewise.
11027         (dtrace_disable_probe): Likewise.
11028         * gdbarch.c: Regenerate.
11029         * gdbarch.h: Regenerate.
11030
11031 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11032
11033         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11034         stap_probe_ops for `enable_probe' and `disable_probe'.
11035         * probe.c (enable_probes_command): New function.
11036         (disable_probes_command): Likewise.
11037         (_initialize_probe): Define the cli commands `enable probe' and
11038         `disable probe'.
11039         (parse_probe_linespec): New function.
11040         (info_probes_for_ops): Use parse_probe_linespec.
11041         * probe.h (probe_ops): New hooks `enable_probe' and
11042         `disable_probe'.
11043
11044 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11045
11046         * probe.c (compute_probe_arg): Moved from stap-probe.c
11047         (compile_probe_arg): Likewise.
11048         (probe_funcs): Likewise.
11049         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11050         (compile_probe_arg): Likewise.
11051         (probe_funcs): Likewise.
11052
11053 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11054
11055         * probe.c (print_ui_out_not_applicables): New function.
11056         (exists_probe_with_pops): Likewise.
11057         (info_probes_for_ops): Do not include column headers for probe
11058         types for which no probe has been actually found on any object.
11059         Also invoke `print_ui_out_not_applicables' in order to match the
11060         column rows with the header when probes of several types are
11061         listed.
11062         Print the "Type" column.
11063         * probe.h (probe_ops): Added a new probe operation `type_name'.
11064         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11065         (stap_type_name): New function.
11066
11067 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11068
11069         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11070         (key_is_command_char): Delete.
11071
11072 2015-02-17  Pedro Alves  <palves@redhat.com>
11073
11074         * tui/tui.c (tui_enable): Resize windows before anything
11075         might show a window.
11076
11077 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11078
11079         PR gdb/17984
11080         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11081         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11082         call.
11083         * aarch64-tdep.h (tdesc_aarch64): Declare.
11084
11085 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11086
11087         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11088
11089 2015-02-13  Doug Evans  <dje@google.com>
11090
11091         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11092         anonymous_namespace to is_in_anonymous for consistency with the rest
11093         of the file.
11094         (cp_lookup_bare_symbol): Fix typo in comment.
11095         (cp_search_static_and_baseclasses): Ditto.
11096         (search_symbol_list): Use vertical space in comment better.
11097         (reset_directive_searched): Ditto. Fix typo.
11098         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11099
11100 2015-02-13  Yao Qi  <yao.qi@arm.com>
11101
11102         * MAINTAINERS: Update my email address.
11103
11104 2015-02-12  Doug Evans  <dje@google.com>
11105
11106         * symtab.c (completion_list_add_name): Fix memory leak.
11107
11108 2015-02-12  Doug Evans  <dje@google.com>
11109
11110         * completer.c (complete_line): Remove incorrect comment.
11111
11112 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11113
11114         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11115         (py_print_frame): Use RETURN_MASK_ERROR.
11116
11117 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11118
11119         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11120         function comment.  Wrap all function that can throw in cleanups.
11121         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11122         cleanups.
11123
11124 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11125
11126         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11127         Remove the error label.
11128
11129 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11130
11131         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11132         with goto first, indent the former else codepath left.  Put variable
11133         'elided' to a new inner block.
11134
11135 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11136
11137         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11138
11139 2015-02-11  Pedro Alves  <palves@redhat.com>
11140
11141         * xcoffread.c (within_function): Delete.
11142
11143 2015-02-11  Tom Tromey  <tromey@redhat.com>
11144             Pedro Alves <palves@redhat.com>
11145
11146         * breakpoint.c (base_breakpoint_ops): Delete.
11147         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11148         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11149         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11150         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11151         * python/py-arch.c (arch_object_type): Make extern.
11152         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11153         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11154         * python/py-cmd.c (cmdpy_object_type): Make extern.
11155         * python/py-continueevent.c (continue_event_object_type)
11156         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11157         parameter.  Update all callers.
11158         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11159         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11160         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11161         * python/py-function.c (fnpy_object_type): Make extern.
11162         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11163         * python/py-infevents.c (call_pre_event_object_type)
11164         (inferior_call_post_event_object_type).
11165         (memory_changed_event_object_type): Make extern.
11166         * python/py-infthread.c (thread_object_type): Make extern.
11167         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11168         * python/py-linetable.c (linetable_entry_object_type)
11169         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11170         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11171         (clear_objfiles_event_object_type): Make extern.
11172         * python/py-objfile.c (objfile_object_type): Make extern.
11173         * python/py-param.c (parmpy_object_type): Make extern.
11174         * python/py-progspace.c (pspace_object_type): Make extern.
11175         * python/py-signalevent.c (signal_event_object_type): Make extern.
11176         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11177         * python/py-type.c (type_object_type, field_object_type)
11178         (type_iterator_object_type): Make extern.
11179         * python/python.c (python_extension_script_ops)
11180         (python_extension_ops): Make extern.
11181         * stap-probe.c (stap_probe_ops): Make extern.
11182
11183 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11184
11185         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11186         because the event thread is not the current thread.
11187
11188 2015-02-11  Doug Evans  <xdje42@gmail.com>
11189
11190         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11191         been initialized yet, return NULL.
11192
11193 2015-02-11  Doug Evans  <dje@google.com>
11194
11195         * symfile.h (new_symfile_objfile): Delete.
11196         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11197         All callers updated.
11198
11199 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11200
11201         * tui/tui-io.c (tui_handle_resize_during_io): Call
11202         tui_update_gdb_sizes() after resizing the screen.
11203         * tui/tui.c (tui_enable): Resize the terminal before
11204         calling tui_update_gdb_sizes().
11205
11206 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11207
11208         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11209         line before printing a newline.
11210
11211 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11212
11213         * utils.c (producer_is_gcc): Return true or false.
11214
11215 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11216
11217         * utils.h (producer_is_gcc): Change return type to bool. Add major
11218         argument.
11219         * utils.c (producer_is_gcc): Likewise.
11220         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11221         * dwarf2read.c (check_producer): Likewise.
11222
11223 2015-02-10  Pedro Alves  <palves@redhat.com>
11224
11225         * infrun.c (displaced_step_fixup): Switch to the event thread
11226         before calling gdbarch_displaced_step_fixup.
11227
11228 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11229
11230         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11231
11232 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11233
11234         * ada-varobj.c (ada_name_of_child): Constify parent.
11235         (ada_path_expr_of_child): Same.
11236         (ada_value_of_child): Same.
11237         (ada_type_of_child): Same.
11238         * c-varobj.c (c_is_path_expr_parent): Same.
11239         (c_describe_child): Same.
11240         (c_name_of_child): Same.
11241         (c_value_of_child): Same.
11242         (c_type_of_child): Same.
11243         (cplus_number_of_children): Same.
11244         (cplus_describe_child): Constify var.
11245         (cplus_name_of_child): Constify parent.
11246         (cplus_value_of_child): Same.
11247         (cplus_type_of_child): Same.
11248         * jv-varobj.c (java_name_of_child): Same.
11249         (java_value_of_child): Same.
11250         (java_type_of_child): Same.
11251         * varobj.c (value_of_child): Same.
11252         (varobj_default_is_path_expr_parent): Constify var, parent and return
11253         value.
11254         (varobj_get_path_expr): Constify var, modify path_expr through
11255         mutable_var.
11256         (install_new_value): Constify parent.
11257         (value_of_child): Constify parent.
11258         * varobj.h (struct varobj): Constify parent.
11259         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11260         type_of_child.
11261         (varobj_get_path_expr): Constify var.
11262         (varobj_get_path_expr_parent): Constify var and return value.
11263
11264 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11265
11266         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11267         (arm_prologue_this_id): Move PC and SP limit checks to
11268         arm_prologue_unwind_stop_reason.
11269         (arm_prologue_unwind) <stop_reason> : Set to
11270         arm_prologue_unwind_stop_reason.
11271
11272 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11273
11274         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11275         DW_LANG_Fortran08 as language_fortran.
11276
11277 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11278
11279         PR remote/17946
11280         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11281         of pointer against char.
11282
11283 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11284
11285         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11286         (c_type_print_modifier): Likewise.
11287         * dwarf2read.c (read_tag_atomic_type): New function.
11288         (read_type_die_1): Handle DW_TAG_atomic_type.
11289         * gdbtypes.c (make_atomic_type): New function.
11290         (recursive_dump_type): Handle TYPE_ATOMIC.
11291         * gdbtypes.h (enum type_flag_values): Renumber.
11292         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11293         (TYPE_ATOMIC): New macro.
11294         (make_atomic_type): Declare.
11295
11296 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11297
11298         * btrace.c (ftrace_find_call): Skip gaps.
11299         (ftrace_new_function): Initialize level.
11300         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11301         (ftrace_new_switch): Update
11302         level computation.
11303         (ftrace_new_gap): New.
11304         (ftrace_update_function): Create new function after gap.
11305         (btrace_compute_ftrace_bts): Create gap on error.
11306         (btrace_stitch_bts): Update parameters.  Clear trace if it
11307         becomes empty.
11308         (btrace_stitch_trace): Update parameters.  Update callers.
11309         (btrace_clear): Reset the number of gaps.
11310         (btrace_insn_get): Return NULL if the iterator points to a gap.
11311         (btrace_insn_number): Return zero if the iterator points to a gap.
11312         (btrace_insn_end): Allow gaps at the end.
11313         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11314         (btrace_find_insn_by_number): Assert that the found iterator does
11315         not point to a gap.
11316         (btrace_call_next, btrace_call_prev): Assert that the last function
11317         is not a gap.
11318         * btrace.h (btrace_bts_error): New.
11319         (btrace_function): Update comment.
11320         (btrace_function) <insn, insn_offset, number>: Update comment.
11321         (btrace_function) <errcode>: New.
11322         (btrace_thread_info) <ngaps>: New.
11323         (btrace_thread_info) <replay>: Update comment.
11324         (btrace_insn_get): Update comment.
11325         * record-btrace.c (btrace_ui_out_decode_error): New.
11326         (record_btrace_info): Print number of gaps.
11327         (btrace_insn_history, btrace_call_history): Call
11328         btrace_ui_out_decode_error for gaps.
11329         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11330
11331 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11332
11333         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11334         * nat/linux-btrace.c: (btrace_this_cpu): New.
11335         (cpu_supports_bts): Call btrace_this_cpu.
11336         (intel_supports_bts): Add cpu parameter.
11337
11338 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11339
11340         * btrace.h (btrace_insn_class): New.
11341         (btrace_insn) <size, iclass>: New.
11342         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11343         Use instruction classification.
11344         (ftrace_new_return): Update parameters.  Update users.
11345         (ftrace_update_function): Update parameters.  Update users.  Use
11346         instruction classification.
11347         (ftrace_update_insns): Update parameters.  Update users.
11348         (ftrace_classify_insn): New.
11349         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11350         TRY_CATCH around call to gdb_insn_length.
11351
11352 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11353
11354         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11355         Update parameters.  Update users.
11356
11357 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11358
11359         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11360         (btrace_conf_bts_attributes): New.
11361         (btrace_conf_children): Add attributes.
11362         * common/btrace-common.h (btrace_config_bts): New.
11363         (btrace_config)<bts>: New.
11364         (btrace_config): Update comment.
11365         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11366         Use config.
11367         * features/btrace-conf.dtd: Increment version.  Add size
11368         attribute to bts element.
11369         * record-btrace.c (set_record_btrace_bts_cmdlist,
11370         show_record_btrace_bts_cmdlist): New.
11371         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11372         record_btrace_print_conf, cmd_set_record_btrace_bts,
11373         cmd_show_record_btrace_bts): New.
11374         (record_btrace_info): Call record_btrace_print_conf.
11375         (_initialize_record_btrace): Add commands.
11376         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11377         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11378         (btrace_sync_conf): Synchronize bts size.
11379         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11380         * NEWS: Announce new commands and new packets.
11381
11382 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11383
11384         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11385         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11386         (x86_linux_btrace_conf): New.
11387         (x86_linux_create_target): Initialize to_btrace_conf.
11388         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11389         Check format.  Split into this and ...
11390         (linux_enable_bts): ... this.
11391         (linux_btrace_conf): New.
11392         (perf_event_skip_record): Renamed into ...
11393         (perf_event_skip_bts_record): ... this.  Updated users.
11394         (linux_disable_btrace): Split into this and ...
11395         (linux_disable_bts): ... this.
11396         (linux_read_btrace): Check format.
11397         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11398         (linux_btrace_conf): New.
11399         (btrace_target_info)<ptid>: Moved.
11400         (btrace_target_info)<conf>: New.
11401         (btrace_target_info): Split into this and ...
11402         (btrace_tinfo_bts): ... this.  Updated users.
11403         * btrace.c (btrace_enable): Update parameters.
11404         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11405         (btrace_conf_children, btrace_conf_attributes)
11406         (btrace_conf_elements): New.
11407         * btrace.h (btrace_enable): Update parameters.
11408         (btrace_conf, parse_xml_btrace_conf): New.
11409         * common/btrace-common.h (btrace_config): New.
11410         * feature/btrace-conf.dtd: New.
11411         * record-btrace.c (record_btrace_conf): New.
11412         (record_btrace_cmdlist): New.
11413         (record_btrace_enable_warn, record_btrace_open): Pass
11414         &record_btrace_conf.
11415         (record_btrace_info): Print recording format.
11416         (cmd_record_btrace_bts_start): New.
11417         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11418         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11419         Add "record bts" alias command.
11420         * remote.c (remote_state)<btrace_config>: New.
11421         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11422         (remote_protocol_features): Add qXfer:btrace-conf:read.
11423         (remote_open_1): Call remote_btrace_reset.
11424         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11425         (btrace_target_info)<conf>: New.
11426         (btrace_sync_conf, btrace_read_config): New.
11427         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11428         btrace_read_conf.
11429         (remote_btrace_conf): New.
11430         (init_remote_ops): Initialize to_btrace_conf.
11431         (_initialize_remote): Add qXfer:btrace-conf packet.
11432         * target.c (target_enable_btrace): Update parameters.
11433         (target_btrace_conf): New.
11434         * target.h (target_enable_btrace): Update parameters.
11435         (target_btrace_conf): New.
11436         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11437         (target_ops)<to_enable_btrace>: Update parameters and comment.
11438         (target_ops)<to_btrace_conf>: New.
11439         * target-delegates: Regenerate.
11440         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11441         (target_debug_print_const_struct_btrace_target_info_p): New.
11442         * NEWS: Announce new command and new packet.
11443
11444 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11445
11446         * nat/linux-btrace.h (perf_event_buffer): New.
11447         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11448         <bts>: ... this.
11449         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11450         (perf_event_buffer_size, perf_event_buffer_begin)
11451         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11452         Updated users.
11453         (perf_event_new_data): New.
11454
11455 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11456
11457         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11458         * record-btrace.c (record_btrace_open): Remove call to
11459         target_supports_btrace.
11460         * remote.c (remote_supports_btrace): Update parameters.
11461         * target.c (target_supports_btrace): Update parameters.
11462         * target.h (to_supports_btrace, target_supports_btrace): Update
11463         parameters.
11464         * target-delegates.c: Regenerate.
11465         * target-debug.h (target_debug_print_enum_btrace_format): New.
11466         * nat/linux-btrace.c
11467         (kernel_supports_btrace): Rename into ...
11468         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11469         (intel_supports_btrace): Rename into ...
11470         (intel_supports_bts): ... this.  Update users.
11471         (cpu_supports_btrace): Rename into ...
11472         (cpu_supports_bts): ... this.  Update users.
11473         (linux_supports_btrace): Update parameters.  Split into this and ...
11474         (linux_supports_bts): ... this.
11475         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11476
11477 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11478
11479         * Makefile.in (SFILES): Add common/btrace-common.c.
11480         (COMMON_OBS): Add common/btrace-common.o.
11481         (btrace-common.o): Add build rules.
11482         * btrace.c (parse_xml_btrace): Update parameters.
11483         (parse_xml_btrace_block): Set format field.
11484         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11485         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11486         (btrace_compute_ftrace): Split into this and...
11487         (btrace_compute_ftrace_bts): ...this.
11488         (btrace_stitch_trace): Split into this and...
11489         (btrace_stitch_bts): ...this.
11490         * btrace.h (parse_xml_btrace): Update parameters.
11491         (make_cleanup_btrace_data): New.
11492         * common/btrace-common.c: New.
11493         * common/btrace-common.h: Include common-defs.h.
11494         (btrace_block_s): Update comment.
11495         (btrace_format): New.
11496         (btrace_format_string): New.
11497         (btrace_data_bts): New.
11498         (btrace_data): New.
11499         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11500         * remote.c (remote_read_btrace): Update parameters.
11501         * target.c (target_read_btrace): Update parameters.
11502         * target.h (target_read_btrace): Update parameters.
11503         (target_ops)<to_read_btrace>: Update parameters.
11504         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11505         * target-delegates.c: Regenerate.
11506         * target-debug (target_debug_print_struct_btrace_data_p): New.
11507         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11508         (linux_read_bts): ...this.
11509         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11510
11511 2015-02-06  Doug Evans  <dje@google.com>
11512
11513         * remote-m32r-sdi.c: Include symfile.h.
11514
11515 2015-02-06  Doug Evans  <dje@google.com>
11516
11517         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11518         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11519         to here.
11520
11521 2015-02-06  Pedro Alves  <palves@redhat.com>
11522
11523         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11524
11525 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11526
11527         PR gdb/15678
11528         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11529         (enable_count_command): Check args for NULL value.
11530
11531 2015-02-05  Doug Evans  <xdje42@gmail.com>
11532
11533         * guile/scm-frame.c: Fix spelling errors in a comment.
11534
11535 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11536
11537         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11538         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11539         return type.
11540
11541 2015-02-04  Pedro Alves  <palves@redhat.com>
11542
11543         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11544         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11545         returns true.
11546         (resume_stopped_resumed_lwps): Don't check whether the thread is
11547         marked as executing.
11548         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11549
11550 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11551
11552         * regset.h (struct regset): Add flags field.
11553         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11554         * corelow.c (get_core_register_section): Add warning if the size
11555         exceeds the requested size and the regset does not have the
11556         REGSET_VARIABLE_SIZE flag set.
11557         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11558         flag.
11559         * armbsd-tdep.c (armbsd_gregset): Likewise.
11560         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11561         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11562         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11563         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11564
11565 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11566
11567         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11568         For ".reg-xstate", explicitly specify the requested section size
11569         via X86_XSTATE_SIZE instead of just 0 on input and
11570         X86_XSTATE_MAX_SIZE on output.
11571         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11572         Likewise.
11573
11574 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11575
11576         PR corefiles/17808:
11577         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11578         function type, particularly its SIZE parameter.
11579         * gdbarch.h: Regenerate.
11580         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11581         actual against required size using ">=" instead of "==".
11582         (amd64_collect_fpregset): Likewise.
11583         * i386-tdep.c (i386_supply_gregset): Likewise.
11584         (i386_collect_gregset): Likewise.
11585         (i386_supply_fpregset): Likewise.
11586         (i386_collect_fpregset): Likewise.
11587         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11588         (mips_fill_gregset_wrapper): Likewise.
11589         (mips_supply_fpregset_wrapper): Likewise.
11590         (mips_fill_fpregset_wrapper): Likewise.
11591         (mips64_supply_gregset_wrapper): Likewise.
11592         (mips64_fill_gregset_wrapper): Likewise.
11593         (mips64_supply_fpregset_wrapper): Likewise.
11594         (mips64_fill_fpregset_wrapper): Likewise.
11595         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11596         (am33_supply_fpregset_method): Likewise.
11597         (am33_collect_gregset_method): Likewise.
11598         (am33_collect_fpregset_method): Likewise.
11599
11600 2015-02-04  Doug Evans  <dje@google.com>
11601             Pedro Alves  <palves@redhat.com>
11602             Eli Zaretskii  <eliz@gnu.org>
11603
11604         PR tui/17810
11605         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11606         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11607         * tui/tui-file.c: #include tui/tui-command.h.
11608         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11609         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11610         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11611
11612 2015-02-04  Pedro Alves  <palves@redhat.com>
11613
11614         Fix build breakage.
11615         * event-loop.c (gdb_do_one_event): Add default switch case.
11616
11617 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11618
11619         Filter out inferior gcc option -fpreprocessed.
11620         * compile/compile.c (filter_args): New function.
11621         (get_args): Use it.
11622
11623 2015-02-03  Pedro Alves  <palves@redhat.com>
11624
11625         * event-loop.c: Don't declare nor define a queue type for
11626         gdb_event_p.
11627         (event_queue): Delete.
11628         (create_event, create_file_event, gdb_event_xfree)
11629         (initialize_event_loop, process_event): Delete.
11630         (gdb_do_one_event): Return as soon as one event is handled.
11631         (handle_file_event): Change prototype.  Used the passed in
11632         file_handler pointer and ready_mask instead of looping over all
11633         file handlers.
11634         (gdb_wait_for_event): Update the poll/select timeouts before
11635         blocking.  Run event handlers directly instead of queueing events.
11636         Return as soon as one event is handled.
11637         (struct async_event_handler_data): Delete.
11638         (invoke_async_event_handler): Delete.
11639         (check_async_event_handlers): Change return type to int.  Run
11640         event handlers directly instead of queueing events.  Return as
11641         soon as one event is handled.
11642         (handle_timer_event): Delete.
11643         (update_wait_timeout): New function, factored out from
11644         poll_timers.
11645         (poll_timers): Reimplement.
11646         * event-loop.h (initialize_event_loop): Delete declaration.
11647         * top.c (gdb_init): Don't call initialize_event_loop.
11648
11649 2015-02-03  Pedro Alves  <palves@redhat.com>
11650
11651         * event-loop.c (clear_async_event_handler): New function.
11652         * event-loop.h (clear_async_event_handler): New declaration.
11653         * record-btrace.c (record_btrace_async): New function.
11654         (init_record_btrace_ops): Install record_btrace_async.
11655         * record-full.c (record_full_async): New function.
11656         (record_full_resume): Don't mark the async event source here.
11657         (init_record_full_ops): Install record_full_async.
11658         (record_full_core_resume): Don't mark the async event source here.
11659         (init_record_full_core_ops): Install record_full_async.
11660         * remote.c (remote_async): Mark and clear the async stop reply
11661         queue event-loop token as appropriate.
11662
11663 2015-02-03  Pedro Alves  <palves@redhat.com>
11664
11665         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11666         target_is_async_p instead of target_can_async.
11667         (linux_nat_wait): Use target_is_async_p instead of
11668         target_can_async.  Don't enable async here.
11669         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11670         target_is_async_p instead of target_can_async.
11671
11672 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11673
11674         * varobj.h (lang_varobj_ops): Mention which return values need
11675         to be freed.
11676
11677 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11678
11679         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11680
11681 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11682
11683         PR gdb/17856:
11684         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11685         results found in the cache.
11686
11687 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11688
11689         PR gdb/17854:
11690         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11691         when allocating a new one.
11692
11693 2015-02-01  Tom Tromey  <tom@tromey.com>
11694
11695         * MAINTAINERS: Remove myself.
11696
11697 2015-01-31  Doug Evans  <xdje42@gmail.com>
11698
11699         * dwarf2read.c (process_structure_scope): Update setting of
11700         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11701         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11702         (set_type_vptr_fieldno): New function.
11703         (internal_type_vptr_basetype): New function.
11704         (set_type_vptr_basetype): New function.
11705         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11706         TYPE_VPTR_BASETYPE.
11707         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11708         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11709         (print_cplus_stuff): ... moved here.
11710         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11711         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11712         moved to ...
11713         (struct cplus_struct_type): ... here.  All uses updated.
11714         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11715         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11716         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11717         * stabsread.c (read_tilde_fields): Update setting of
11718         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11719
11720 2015-01-31  Doug Evans  <xdje42@gmail.com>
11721
11722         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11723         to self_p.
11724         (cp_print_class_member): Rename local domain to self_type.
11725         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11726         domain_type to self_type.
11727         (set_die_type) <need_gnat_info>: Handle
11728         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11729         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11730         TYPE_SPECIFIC_SELF_TYPE.
11731         * gdbtypes.c (internal_type_self_type): New function.
11732         (set_type_self_type): New function.
11733         (smash_to_memberptr_type): Rename parameter domain to self_type.
11734         Update setting of TYPE_SELF_TYPE.
11735         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11736         (smash_to_method_type): Rename parameter domain to self_type.
11737         Update setting of TYPE_SELF_TYPE.
11738         (check_stub_method): Call smash_to_method_type.
11739         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11740         (copy_type_recursive): Ditto.
11741         * gdbtypes.h (enum type_specific_kind): New value
11742         TYPE_SPECIFIC_SELF_TYPE.
11743         (struct main_type) <type_specific>: New member self_type.
11744         (struct cplus_struct_type) <fn_field.type>: Update comment.
11745         (TYPE_SELF_TYPE): Rewrite.
11746         (internal_type_self_type, set_type_self_type): Declare.
11747         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11748         self_type.
11749         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11750         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11751         TYPE_TARGET_TYPE.
11752         * stabsread.c (read_member_functions): Mark methods with
11753         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11754         TYPE_SELF_TYPE.
11755
11756 2015-01-31  Doug Evans  <xdje42@gmail.com>
11757
11758         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11759         All uses updated.
11760
11761 2015-01-31  Doug Evans  <xdje42@gmail.com>
11762
11763         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11764         or unions.  Return zero if union.
11765         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11766         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11767         gnuv3_get_vtable.
11768         (compute_vtable_size): Assert only passed structs.
11769         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11770
11771 2015-01-31  Doug Evans  <xdje42@gmail.com>
11772
11773         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11774         kinds.
11775
11776 2015-01-31  Gary Benson <gbenson@redhat.com>
11777             Doug Evans  <dje@google.com>
11778
11779         PR cli/9007
11780         PR cli/11920
11781         PR cli/15548
11782         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11783         reached.
11784         * common/common-exceptions.h (enum errors)
11785         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11786         * completer.h (get_max_completions_reached_message): New declaration.
11787         (max_completions): Likewise.
11788         (completion_tracker_t): New typedef.
11789         (new_completion_tracker): New declaration.
11790         (make_cleanup_free_completion_tracker): Likewise.
11791         (maybe_add_completion_enum): New enum.
11792         (maybe_add_completion): New declaration.
11793         (throw_max_completions_reached_error): Likewise.
11794         * completer.c (max_completions): New global variable.
11795         (new_completion_tracker): New function.
11796         (free_completion_tracker): Likewise.
11797         (make_cleanup_free_completion_tracker): Likewise.
11798         (maybe_add_completions): Likewise.
11799         (throw_max_completions_reached_error): Likewise.
11800         (complete_line): Remove duplicates and limit result to max_completions
11801         entries.
11802         (get_max_completions_reached_message): New function.
11803         (gdb_display_match_list): Handle max_completions.
11804         (_initialize_completer): New declaration and function.
11805         * symtab.c: Include completer.h.
11806         (completion_tracker): New static variable.
11807         (completion_list_add_name): Call maybe_add_completion.
11808         (default_make_symbol_completion_list_break_on_1): Renamed from
11809         default_make_symbol_completion_list_break_on.  Maintain
11810         completion_tracker across calls to completion_list_add_name.
11811         (default_make_symbol_completion_list_break_on): New function.
11812         * top.c (init_main): Set rl_completion_display_matches_hook.
11813         * tui/tui-io.c: Include completer.h.
11814         (tui_old_rl_display_matches_hook): New static global.
11815         (tui_rl_display_match_list): Notify user if max-completions reached.
11816         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11817         * NEWS (New Options): Mention set/show max-completions.
11818
11819 2015-01-31  Gary Benson  <gbenson@redhat.com>
11820
11821         * symtab.c (struct add_name_data) <code>: New field.
11822         Updated comments.
11823         (add_symtab_completions): New function.
11824         (symtab_expansion_callback): Likewise.
11825         (default_make_symbol_completion_list_break_on): Set datum.code.
11826         Move minimal symbol scan before calling expand_symtabs_matching.
11827         Scan known primary symtabs for externs and statics before calling
11828         expand_symtabs_matching.  Pass symtab_expansion_callback as
11829         expansion_notify argument to expand_symtabs_matching.  Do not scan
11830         primary symtabs for externs and statics after calling
11831         expand_symtabs_matching.
11832
11833 2015-01-31  Gary Benson  <gbenson@redhat.com>
11834
11835         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11836         (struct quick_symbol_functions) <expand_symtabs_matching>:
11837         New argument expansion_notify.  All uses updated.
11838         (expand_symtabs_matching): New argument expansion_notify.
11839         All uses updated.
11840         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11841         Also print expansion notify.
11842         * symtab.c (expand_symtabs_matching_via_partial): Call
11843         expansion_notify whenever a partial symbol table is expanded.
11844         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11845         expansion_notify whenever a symbol table is instantiated.
11846
11847 2015-01-31  Doug Evans  <xdje42@gmail.com>
11848
11849         * cli-out.c: #include completer.h, readline/readline.h.
11850         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11851         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11852         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11853         * cli-out.h (cli_display_match_list): Declare.
11854         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11855         (ELLIPSIS_LEN): Ditto.
11856         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11857         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11858         (gdb_fnprint, gdb_print_filename): Ditto.
11859         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11860         (gdb_display_match_list): Ditto.
11861         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11862         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11863         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11864         (match_list_displayer): New struct.
11865         (gdb_display_match_list): Declare.
11866         * top.c (init_main): Set rl_completion_display_matches_hook.
11867         * tui/tui-io.c: #include completer.h.
11868         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11869         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11870         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11871         (tui_mld_getc, tui_mld_read_key): Ditto.
11872         (tui_rl_display_match_list): Rewrite.
11873         (tui_handle_resize_during_io): New arg for_completion.  All callers
11874         updated.
11875
11876 2015-01-31  Doug Evans  <xdje42@gmail.com>
11877
11878         Add symbol lookup cache.
11879         * NEWS: Document new options and commands.
11880         * symtab.c (symbol_cache_key): New static global.
11881         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11882         (SYMBOL_LOOKUP_FAILED): New macro.
11883         (symbol_cache_slot_state): New enum.
11884         (block_symbol_cache): New struct.
11885         (symbol_cache): New struct.
11886         (new_symbol_cache_size, symbol_cache_size): New static globals.
11887         (hash_symbol_entry, eq_symbol_entry): New functions.
11888         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11889         (make_symbol_cache, free_symbol_cache): New functions.
11890         (get_symbol_cache, symbol_cache_cleanup): New function.
11891         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11892         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11893         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11894         (symbol_cache_flush, symbol_cache_dump): New functions.
11895         (maintenance_print_symbol_cache): New function.
11896         (maintenance_flush_symbol_cache): New function.
11897         (symbol_cache_stats): New function.
11898         (maintenance_print_symbol_cache_statistics): New function.
11899         (symtab_new_objfile_observer): New function.
11900         (symtab_free_objfile_observer): New function.
11901         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11902         (_initialize_symtab): Init symbol_cache_key.  New parameter
11903         maint symbol-cache-size.  New maint commands print symbol-cache,
11904         print symbol-cache-statistics, flush-symbol-cache.
11905         Install new_objfile, free_objfile observers.
11906
11907 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
11908
11909         PR symtab/17855
11910         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11911         to end.
11912
11913 2015-01-31  Doug Evans  <xdje42@gmail.com>
11914
11915         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11916         * auto-load.c: #include ctype.h.
11917         (struct auto_load_pspace_info): Replace member loaded_scripts with
11918         new members loaded_script_files, loaded_script_texts.
11919         (auto_load_pspace_data_cleanup): Update.
11920         (init_loaded_scripts_info): Update.
11921         (get_auto_load_pspace_data_for_loading): Update.
11922         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
11923         updated.
11924         (maybe_add_script_text): New function.
11925         (clear_section_scripts): Update.
11926         (source_script_file, execute_script_contents): New functions.
11927         (source_section_scripts): Add support for
11928         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11929         (print_scripts): New function.
11930         (auto_load_info_scripts): Also print inlined scripts.
11931         (maybe_print_unsupported_script_warning): Renamed from
11932         unsupported_script_warning_print.  All callers updated.
11933         (maybe_print_script_not_found_warning): Renamed from
11934         script_not_found_warning_print.  All callers updated.
11935         * extension-priv.h (struct extension_language_script_ops): New member
11936         objfile_script_executor.
11937         * extension.c (ext_lang_objfile_script_executor): New function.
11938         * extension.h (objfile_script_executor_func): New typedef.
11939         (ext_lang_objfile_script_executor): Declare.
11940         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11941         * guile/guile.c (guile_extension_script_ops): Update.
11942         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11943         * python/python.c (python_extension_script_ops): Update.
11944         (gdbpy_execute_objfile_script): New function.
11945
11946 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
11947
11948         * tui/tui-io.c (tui_expand_tabs): New function.
11949         (tui_puts, tui_redisplay_readline): Expand TABs into the
11950         appropriate number of spaces.
11951         * tui/tui-regs.c: Include tui-io.h.
11952         (tui_register_format): Call tui_expand_tabs to expand TABs into
11953         the appropriate number of spaces.
11954         * tui/tui-io.h: Add prototype for tui_expand_tabs.
11955
11956 2015-01-30  Doug Evans  <dje@google.com>
11957
11958         * NEWS: "info source" command now display producer string if present.
11959         * source.c (source_info): Print producer string if present.
11960
11961 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11962
11963         * varobj.c (varobj_delete): Fix comment.
11964
11965 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11966
11967         * varobj.c (create_child): Modify comment.
11968
11969 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11970
11971         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11972         parameter.
11973         (ada_name_of_variable): Same.
11974         (ada_path_expr_of_child): Same.
11975         (ada_value_of_variable): Same.
11976         (ada_value_is_changeable_p): Same.
11977         (ada_value_has_mutated): Same.
11978         * c-varobj.c (varobj_is_anonymous_child): Same.
11979         (c_is_path_expr_parent): Same.
11980         (c_number_of_children): Same.
11981         (c_name_of_variable): Same.
11982         (c_path_expr_of_child): Same.
11983         (get_type): Same.
11984         (c_value_of_variable): Same.
11985         (cplus_number_of_children): Same.
11986         (cplus_name_of_variable): Same.
11987         (cplus_path_expr_of_child): Same.
11988         (cplus_value_of_variable): Same.
11989         * jv-varobj.c (java_number_of_children): Same.
11990         (java_name_of_variable): Same.
11991         (java_path_expr_of_child): Same.
11992         (java_value_of_variable): Same.
11993         * varobj.c (number_of_children): Same.
11994         (name_of_variable): Same.
11995         (is_root_p): Same.
11996         (varobj_ensure_python_env): Same.
11997         (varobj_get_objname): Same.
11998         (varobj_get_expression): Same.
11999         (varobj_get_display_format): Same.
12000         (varobj_get_display_hint): Same.
12001         (varobj_has_more): Same.
12002         (varobj_get_thread_id): Same.
12003         (varobj_get_frozen): Same.
12004         (dynamic_varobj_has_child_method): Same.
12005         (varobj_get_gdb_type): Same.
12006         (is_path_expr_parent): Same.
12007         (varobj_default_is_path_expr_parent): Same.
12008         (varobj_get_language): Same.
12009         (varobj_get_attributes): Same.
12010         (varobj_is_dynamic_p): Same.
12011         (varobj_get_child_range): Same.
12012         (varobj_value_has_mutated): Same.
12013         (varobj_get_value_type): Same.
12014         (number_of_children): Same.
12015         (name_of_variable): Same.
12016         (check_scope): Same.
12017         (varobj_editable_p): Same.
12018         (varobj_value_is_changeable_p): Same.
12019         (varobj_floating_p): Same.
12020         (varobj_default_value_is_changeable_p): Same.
12021
12022 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12023
12024         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12025         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12026         child->path_expr.
12027         (cplus_path_expr_of_child): Same.
12028
12029 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12030
12031         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12032         result.
12033         (mi_cmd_var_info_expression): Same.
12034         * varobj.c (varobj_get_expression): Mention in the comment that
12035         the result must by freed by the caller.
12036
12037 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12038
12039         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12040         varobj_get_type.
12041         (varobj_update_one): Same.
12042         * varobj.c (update_type_if_necessary): Free curr_type_str and
12043         new_type_str.
12044         (varobj_get_type): Specify in comment that the result needs to be
12045         freed by the caller.
12046
12047 2015-01-29  Doug Evans  <dje@google.com>
12048
12049         PR symtab/17890
12050         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12051
12052 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12053
12054         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12055         * utils.c (producer_is_gcc_ge_4): Likewise.
12056         (producer_is_gcc): New function.
12057         * utils.h (producer_is_gcc): New declaration.
12058
12059 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12060
12061         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12062         kind.
12063         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12064         parameter by "addr_stack" parameter.
12065         (resolve_dynamic_range): Replace "addr" parameter by
12066         "stack_addr" parameter.  Update function documentation.
12067         Update code accordingly.
12068         (resolve_dynamic_array, resolve_dynamic_union)
12069         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12070         (resolve_dynamic_type): Update code, following the changes made
12071         to resolve_dynamic_type_internal's interface.
12072         * dwarf2loc.h (struct property_addr_info): New.
12073         (dwarf2_evaluate_property): Replace "address" parameter
12074         by "addr_stack" parameter.  Adjust function documentation.
12075         (struct dwarf2_offset_baton): New.
12076         (struct dwarf2_property_baton): Update documentation of
12077         field "referenced_type" to be more general. New field
12078         "offset_info" in union data field.
12079         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12080         parameter by "addr_stack" parameter.  Adjust code accordingly.
12081         Add support for PROP_ADDR_OFFSET properties.
12082         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12083         DW_AT_data_member_location attributes as well.  Use case
12084         statements instead of if/else condition.
12085
12086 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12087
12088         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12089         Return zero if PARENT_VALUE is NULL and parent_type's
12090         range type is dynamic.
12091
12092 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12093
12094         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12095         nonzero if the type's subtype is dynamic.
12096         (resolve_dynamic_range): Also resolve the range's subtype.
12097
12098 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12099
12100         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12101         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12102
12103 2015-01-27  Doug Evans  <dje@google.com>
12104
12105         * NEWS: Mention gdb.Objfile.username.
12106         * python/py-objfile.c (objfpy_get_username): New function.
12107         (objfile_getset): Add "username".
12108
12109 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12110
12111         * stack.c (return_command): Markup warning message with _.
12112
12113 2015-01-24  Doug Evans  <xdje42@gmail.com>
12114
12115         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12116
12117 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12118
12119         Fix 100x slowdown regression on DWZ files.
12120         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12121         (struct line_header): Add offset and offset_in_dwz.
12122         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12123         (free_line_header_voidp): New declaration.
12124         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12125         functions.
12126         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12127         (handle_DW_AT_stmt_list): Use line_header_hash.
12128         (free_line_header_voidp): New function.
12129         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12130         (dwarf_decode_lines): New parameter decode_mapping, use it.
12131         (dwarf2_free_objfile): Free line_header_hash.
12132
12133 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12134
12135         PR gdb/17416
12136         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12137         value_ind.
12138
12139 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12140
12141         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12142         DW_AT_noreturn.
12143         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12144         calling_convention an 8 bit bit field.
12145         (TYPE_NO_RETURN): New macro.
12146         * infcmd.c (finish_command): Query if function does not return
12147         normally.
12148         * stack.c (return_command): Likewise.
12149
12150 2015-01-23  Pedro Alves  <palves@redhat.com>
12151
12152         * linux-nat.c (linux_is_async_p): New macro.
12153         (linux_nat_is_async_p):
12154         (linux_nat_terminal_inferior): Check whether the target can async
12155         instead of whether it is already async.
12156         (linux_nat_terminal_ours): Don't check whether the target is
12157         async.
12158         (linux_async_pipe): Use linux_is_async_p.
12159
12160 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12161
12162         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12163         '-ascending'.
12164         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12165         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12166         Sort tp_array using tp_array_compar.
12167         (_initialize_thread): Extend thread_apply_all_command help.
12168
12169 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12170
12171         * corelow.c (core_open): Call also thread_command.
12172         * gdbthread.h (thread_command): New prototype moved from ...
12173         * thread.c (thread_command): ... here.
12174         (thread_command): Make it global.
12175
12176 2015-01-22  Pedro Alves  <palves@redhat.com>
12177
12178         * configure.ac [*mingw32*]: Check $curses_found instead of
12179         $prefer_curses.
12180         * configure: Regenerate.
12181         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12182         HAVE_NCURSES_NCURSES_H checks.
12183
12184 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12185
12186         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12187         fails with the 1st arg NULL, try again with "unknown".  Don't test
12188         the "cup" capability: it isn't supported by the Windows port of
12189         ncurses, but the Windows console driver is still capable of
12190         supporting TUI.
12191
12192 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12193
12194         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12195
12196 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12197
12198         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12199         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12200         reason that "make TAGS" is broken.
12201
12202 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12203
12204         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12205         and check additional store instructions.
12206
12207 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12208
12209         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12210
12211 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12212
12213         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12214         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12215         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12216         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12217         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12218         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12219         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12220         ppc_process_record_op19, ppc_process_record_op31,
12221         ppc_process_record_op59, ppc_process_record_op60,
12222         ppc_process_record_op63): Likewise.
12223
12224 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12225
12226         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12227         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12228         strerror.
12229
12230 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12231
12232         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12233         ppc_process_record_op31, ppc_process_record_op59,
12234         ppc_process_record_op60, ppc_process_record_op63,
12235         ppc_process_record): Fix -Wformat warning.
12236         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12237         Remove unused variables.
12238
12239 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12240
12241         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12242
12243 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12244
12245         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12246         CONFIG_OBS if not building with a curses library.
12247         * configure: Regenerate.
12248
12249         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12250         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12251         HAVE_NCURSES_NCURSES_H is defined.
12252
12253 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12254
12255         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12256         from end of line to start of next line.
12257
12258 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12259
12260         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12261         Scan PLT stub backward for reverse debugging.
12262         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12263
12264 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12265             Ulrich Weigand  <uweigand@de.ibm.com>
12266
12267         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12268         gdb_target_obs.
12269         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12270         record.
12271         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12272         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12273         (ppc_linux_init_abi): Set process_record, process_record_signal.
12274         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12275         ppc_linux_record_tdep to gdbarch_tdep.
12276         (ppc_process_record): New declaration.
12277         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12278         ppc_process_record_op19, ppc_process_record_op31,
12279         ppc_process_record_op59, ppc_process_record_op60,
12280         ppc_process_record_op63, ppc_process_record): New functions.
12281
12282 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12283
12284         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12285         rs6000_in_function_epilogue_frame_p and add an argument
12286         for frame_info.
12287         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12288         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12289         New functions.
12290         (rs6000_epilogue_frame_unwind): New.
12291         (rs6000_gdbarch_init): Append epilogue unwinder.
12292
12293 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12294
12295         * nat/linux-personality.c: Replace "#ifndef
12296         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12297         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12298         systems.
12299
12300 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12301
12302         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12303         functions.
12304         (_initialize_tui_win) <border-kind, border-mode>:
12305         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12306         (tui_set_tab_width_command): Fix the commentary.
12307
12308         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12309
12310         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12311         Doc fix.
12312         (tui_set_tab_width_command): Delete and recreate the source and
12313         the disassembly windows, to show the effect of the changed tab
12314         size immediately.
12315
12316         * tui/tui-data.h (LINE_PREFIX): Make shorter
12317         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12318         "Thread NNNNN.XXXX" thread ID notation on Windows.
12319
12320 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12321
12322         Fix gcc-5 compilation.
12323         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12324
12325 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12326
12327         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12328         (linux-personality.o): New rule.
12329         * common/common-defs.h: Include <stdint.h>.
12330         * config/aarch64/linux.mh (NATDEPFILES): Include
12331         linux-personality.o.
12332         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12333         * config/arm/linux.mh (NATDEPFILES): Likewise.
12334         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12335         * config/i386/linux.mh (NATDEPFILES): Likewise.
12336         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12337         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12338         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12339         * config/mips/linux.mh (NATDEPFILES): Likewise.
12340         * config/pa/linux.mh (NATDEPFILES): Likewise.
12341         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12342         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12343         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12344         * config/s390/linux.mh (NATDEPFILES): Likewise.
12345         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12346         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12347         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12348         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12349         * defs.h: Remove #include <stdint.h> (moved to
12350         common/common-defs.h).
12351         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12352         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12353         nat/linux-personality.c).
12354         (linux_nat_create_inferior): Remove code to disable address space
12355         randomization (moved to nat/linux-personality.c).  Create cleanup
12356         to disable address space randomization.
12357         * nat/linux-personality.c: New file.
12358         * nat/linux-personality.h: Likewise.
12359
12360 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12361
12362         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12363         common/posix-strerror.c.
12364         (posix-strerror.o): New rule.
12365         (mingw-strerror.o): Likewise.
12366         * common/common-utils.h (safe_strerror): Move prototype to here,
12367         from utils.h.
12368         * common/common.host: New file.
12369         * common/mingw-strerror.c: Likewise.
12370         * common/posix-strerror.c: Likewise.
12371         * configure: Regenerated.
12372         * configure.ac: Source common/common.host.  Add variable
12373         common_host_obs to gdb_host_obs.
12374         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12375         gdb/common/posix-strerror.c when warning about the use of
12376         strerror.
12377         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12378         common/mingw-strerror.c.
12379         * posix-hdep.c (safe_strerror): Remove definition; move it to
12380         common/posix-hdep.c.
12381         * utils.h (safe_strerror): Remove prototype; move to
12382         common/common-utils.h.
12383
12384 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12385
12386         GDB 7.8.2 released.
12387
12388 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12389
12390         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12391         ___XA type if the array has already been fixed.
12392
12393 2015-01-14  Yao Qi  <yao@codesourcery.com>
12394
12395         * Makefile.in (ppc-linux.o): New rule.
12396         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12397         * configure.ac: AC_CHECK_FUNCS(getauxval).
12398         * config.in: Re-generated.
12399         * configure: Re-generated.
12400         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12401         Declare.
12402         * nat/ppc-linux.c: New file.
12403         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12404         Call ppc64_64bit_inferior_p.
12405
12406 2015-01-14  Yao Qi  <yao@codesourcery.com>
12407
12408         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12409         nat/ppc-linux.h.
12410         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12411         (PPC_FEATURE_HAS_DFP): Likewise.
12412         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12413         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12414         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12415         Include "nat/ppc-linux.h".
12416         * nat/ppc-linux.h: New file.
12417         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12418
12419 2015-01-14  Pedro Alves  <palves@redhat.com>
12420
12421         PR gdb/17525
12422         * breakpoint.c: Include "interps.h".
12423         (bpstat_do_actions_1): Also check whether the interpreter is
12424         async.
12425
12426 2015-01-14  Pedro Alves  <palves@redhat.com>
12427
12428         PR cli/17828
12429         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12430         reinstall if the interpreter is sync.
12431
12432 2015-01-13  Doug Evans  <dje@google.com>
12433
12434         * objfiles.c (objfile_filename): New function.
12435         * objfiles.h (objfile_filename): Declare it.
12436         (objfile_name): Add function comment.
12437         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12438         bfd file name (which may be realpath'd), and the original name.
12439
12440 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12441
12442         * NEWS: Create a new section for the next release branch.
12443         Rename the section of the current branch, now that it has
12444         been cut.
12445
12446 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12447
12448         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12449         * version.in: Bump version to 7.9.50.DATE-cvs.
12450
12451 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12452
12453         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12454         Remove trailing new-line in argument of call to warning.
12455
12456 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12457
12458         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12459         new-line in argument of call to "warning".
12460
12461 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12462
12463         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12464         in static block, then try searching for primitive types.
12465
12466 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12467
12468         * top.h (gdb_add_history): Declare.
12469         * top.c (command_count): New variable.
12470         (gdb_add_history): New function.
12471         (gdb_safe_append_history): New static function.
12472         (quit_force): Call it.
12473         (command_line_input): Use gdb_add_history instead of
12474         add_history.
12475         * event-top.c (command_line_handler): Likewise.
12476
12477 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12478
12479         PR gdb/17046
12480         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12481         <setjmp.h> #include.
12482
12483 2015-01-11  Doug Evans  <xdje42@gmail.com>
12484
12485         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12486
12487 2015-01-11  Doug Evans  <xdje42@gmail.com>
12488
12489         PR gdb/15830
12490         * NEWS: The "maint demangle" command is renamed as "demangle".
12491         * demangle.c: #include cli/cli-utils.h, language.h.
12492         (demangle_command): New function.
12493         (_initialize_demangle): Add new command "demangle".
12494         * maint.c (maintenance_demangle): Stub out.
12495         (_initialize_maint_cmds): Update help text for "maint demangle",
12496         and mark as deprecated.
12497
12498 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12499
12500         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12501         inferior_thread is a function.
12502
12503 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12504
12505         * Makefile.in (.y.c): Don't munge yacc's #line
12506         directives.
12507
12508 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12509
12510         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12511         to prompt for input.
12512         * tui/tui-hooks.c (tui_query_hook): Remove.
12513         (tui_install_hooks): Don't set deprecated_query_hook.
12514         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12515         height calculation.  Always update the command window's cur_line.
12516
12517 2015-01-09  Pedro Alves  <palves@redhat.com>
12518
12519         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12520         function.
12521         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12522         declaration.
12523         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12524         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12525         stop_reason.
12526         (check_stopped_by_watchpoint): New function.
12527         (save_sigtrap): Reimplement.
12528         (linux_nat_stopped_by_watchpoint): Adjust.
12529         (linux_nat_lp_status_is_event): Delete.
12530         (stop_wait_callback): Only call save_sigtrap after storing the
12531         pending status.
12532         (status_callback): If the thread had been stopped for a breakpoint
12533         that has since been removed, discard the event and resume the LWP.
12534         (count_events_callback, select_event_lwp_callback): Use
12535         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12536         (cancel_breakpoint): Rename to ...
12537         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12538         stopped for a software breakpoint or hardware breakpoint.
12539         (select_event_lwp): Only give preference to the stepping LWP in
12540         all-stop mode.  Adjust comments.
12541         (stop_and_resume_callback): Remove references to new_pending_p.
12542         (linux_nat_filter_event): Likewise.  Leave exit events of the
12543         leader thread pending here.  Handle signal short circuiting here.
12544         Only call save_sigtrap after storing the pending waitstatus.
12545         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12546         new_pending.  Don't handle leaving events the caller is not
12547         interested in pending here, nor handle signal short-circuiting
12548         here.  Also give equal priority to all LWPs that have had events
12549         in non-stop mode.  If reporting a software breakpoint event,
12550         unadjust the LWP's PC.
12551         * linux-nat.h (enum lwp_stop_reason): New.
12552         (struct lwp_info) <stop_pc>: New field.
12553         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12554         (struct lwp_info) <stop_reason>: New field.
12555         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12556
12557 2015-01-09  Pedro Alves  <palves@redhat.com>
12558
12559         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12560         Set the LWP's 'resumed' flag.
12561
12562 2015-01-09  Pedro Alves  <palves@redhat.com>
12563
12564         * linux-nat.c (linux_resume_one_lwp): New function.
12565         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12566         (linux_nat_resume): Use lwp_status_pending_p and
12567         linux_resume_one_lwp.
12568         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12569         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12570         (status_callback, running_callback): Use lwp_status_pending_p.
12571         (lwp_status_pending_p): New function.
12572         (stop_and_resume_callback): Use lwp_status_pending_p.
12573         (linux_nat_filter_event): Use linux_resume_one_lwp.
12574         (linux_nat_wait_1): Always use status_callback to look for an LWP
12575         with a pending status.  Use linux_resume_one_lwp.
12576         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12577         linux_resume_one_lwp.
12578
12579 2015-01-09  Pedro Alves  <palves@redhat.com>
12580
12581         * breakpoint.c (bp_location_inserted_here_p): New function,
12582         factored out from ...
12583         (breakpoint_inserted_here_p): ... here.  Use
12584         ALL_BP_LOCATIONS_AT_ADDR.
12585         (software_breakpoint_inserted_here_p): Use
12586         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12587
12588 2014-01-09  Pedro Alves  <palves@redhat.com>
12589
12590         Skip enabling event reporting if the kernel supports
12591         PTRACE_EVENT_CLONE.
12592         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12593         (thread_db_use_events): New function.
12594         (try_thread_db_load_1): Check thread_db_use_events before enabling
12595         event reporting.
12596         (update_thread_state): New function.
12597         (attach_thread): Use it.  Check thread_db_use_events before
12598         enabling event reporting.
12599         (thread_db_detach): Check thread_db_use_events before disabling
12600         event reporting.
12601         (find_new_threads_callback): Check thread_db_use_events before
12602         enabling event reporting.  Update the thread's state if not using
12603         libthread_db events.
12604
12605 2015-01-09  Pedro Alves  <palves@redhat.com>
12606
12607         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12608         about to wait for is > 0.
12609         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12610         the kernel thread ID is -1.
12611
12612 2015-01-09  Pedro Alves  <palves@redhat.com>
12613
12614         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12615         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12616         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12617         ptrace option flags.
12618         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12619         field.
12620         * nat/linux-procfs.c: Include <dirent.h>.
12621         (linux_proc_get_int): New parameter "warn".  Handle it.
12622         (linux_proc_get_tgid): Adjust.
12623         (linux_proc_get_tracerpid): Rename to ...
12624         (linux_proc_get_tracerpid_nowarn): ... this.
12625         (linux_proc_pid_get_state): New function, factored out from
12626         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12627         and handle it.
12628         (linux_proc_pid_is_gone): New function.
12629         (linux_proc_pid_is_stopped): Adjust.
12630         (linux_proc_pid_is_zombie_maybe_warn)
12631         (linux_proc_pid_is_zombie_nowarn): New functions.
12632         (linux_proc_pid_is_zombie): Use
12633         linux_proc_pid_is_zombie_maybe_warn.
12634         (linux_proc_attach_tgid_threads): New function.
12635         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12636         (linux_proc_get_tracerpid): Rename to ...
12637         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12638         (linux_proc_pid_is_gone): New declaration.
12639         (linux_proc_pid_is_zombie): Update comment.
12640         (linux_proc_pid_is_zombie_nowarn): New declaration.
12641         (linux_proc_attach_lwp_func): New typedef.
12642         (linux_proc_attach_tgid_threads): New declaration.
12643         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12644         use nowarn functions.
12645         (linux_ptrace_attach_fail_reason_string): Move here from
12646         gdbserver/linux-low.c and rename.
12647         (ptrace_supports_feature): If the current ptrace options are not
12648         known yet, check them now, instead of asserting.
12649         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12650         Declare.
12651
12652 2015-01-09  Pedro Alves  <palves@redhat.com>
12653
12654         * linux-thread-db.c (thread_db_find_new_threads_silently)
12655         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12656         (find_new_threads_once): Print debug output on gdb_stdlog.
12657
12658 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12659             Pedro Alves  <palves@redhat.com>
12660
12661         * compile/compile.c: Include "gdb_wait.h".
12662         (do_rmdir): Check return value, and free 'zap'.
12663
12664 2015-01-08  Pedro Alves  <palves@redhat.com>
12665             Yao Qi  <yao@codesourcery.com>
12666
12667         * dwarf2loc.c (indirect_pieced_value): Don't call
12668         gdb_sign_extend.  Call extract_signed_integer instead.
12669         * utils.c (gdb_sign_extend): Remove.
12670         * utils.h (gdb_sign_extend): Remove declaration.
12671
12672 2015-01-07  Pierre Muller  <muller@sourceware.org>
12673
12674         PR symtab/17811
12675         * stabsread.c (define_symbol): Set language for C++ special symbols.
12676
12677 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12678
12679         * inflow.c (initial_gdb_ttystate): Tweak comment.
12680
12681 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12682
12683         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12684         comment documenting function.
12685
12686 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12687
12688         * terminal.h (set_initial_gdb_ttystate): Declare.
12689         * inflow.c (initial_gdb_ttystate): New static variable.
12690         (set_initial_gdb_ttystate): New setter.
12691         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12692         instead of our current terminal state.
12693         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12694
12695 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12696
12697         * guile/scm-type.c (tyscm_array_1): Add comment.
12698         * python/py-type.c (typy_array_1): Add comment.
12699
12700 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12701
12702         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12703         error if N2 is equal to N1 - 1.
12704
12705 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12706
12707         * python/py-type.c (typy_array_1): Do not raise negative-length
12708         exception if N2 is equal to N1 - 1.
12709
12710 2015-01-03  Doug Evans  <xdje42@gmail.com>
12711
12712         * c-exp.y: Whitespace cleanup.
12713         (classify_inner_name): Remove extra ;.
12714
12715 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12716
12717         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12718         offset signed.
12719
12720 2015-01-02  Doug Evans  <dje@google.com>
12721
12722         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12723
12724 2015-01-02  Doug Evans  <dje@google.com>
12725
12726         * symtab.h (struct symbol): Fix typo in comment.
12727
12728 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12729
12730         Update year range in copyright notice of all files.
12731
12732 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12733
12734         * top.c (print_gdb_version): Update copyright year to 2015.
12735
12736 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12737
12738         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12739
12740 For older changes see ChangeLog-2014.
12741 \f
12742 Local Variables:
12743 mode: change-log
12744 left-margin: 8
12745 fill-column: 74
12746 version-control: never
12747 coding: utf-8
12748 End: