Fix constness problem in ioscm_make_gdb_stdio_port
[external/binutils.git] / gdb / ChangeLog
1 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
2
3         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
4         char pointer to scm_mode_bits.
5
6 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
7
8         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
9         cast.
10
11 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
12
13         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
14         "data" local variable and use it.
15
16 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
17
18         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
19         domain_enum cast.
20         (gdbscm_lookup_symbol): Likewise.
21
22 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
23
24         * d-exp.y: Remove an obsolete comment and propagate the block
25         information to the produced expression.
26
27 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
28
29         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
30         cast.
31         (tui_add_content_elements): Likewise.
32
33 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
34
35         * cli/cli-setshow.c (do_set_command): Constify p.
36
37 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
38
39         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
40         (void *) cast with (gdb_byte *).
41
42 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
43
44         * proc-service.c (ps_pdread): Add cast.
45
46 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
47
48         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
49         valbuf.
50
51 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
52
53         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
54         (ia64_push_dummy_call): Remove cast and change type of "to" to
55         array of gdb_byte.
56
57 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
58
59         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
60
61 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
62
63         * observer.h (observer_${event}_notification_stub): Add cast.
64
65 2015-10-23  Yao Qi  <yao.qi@linaro.org>
66
67         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
68         dsd.insn_count to zero.
69
70 2015-10-22  Pedro Alves  <palves@redhat.com>
71
72         * infrun.c (stop_after_trap): Delete.
73         (clear_proceed_status, handle_signal_stop, struct
74         infcall_control_state, save_infcall_control_state)
75         (restore_infcall_control_state): Remove references to
76         stop_after_trap.
77
78 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
79
80         * python/python.c (_initialize_python): Add cast.
81
82 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
83
84         * nto-tdep.c (nto_inferior_data): Add cast.
85
86 2015-10-22  Pedro Alves  <palves@redhat.com>
87
88         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
89         windows_wait and windows_resume directly instead of
90         wait_for_inferior and resume.
91
92 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
93
94         * xtensa-tdep.h (XTREG): Add casts.
95         (XTREG_END): Likewise.
96
97 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
98
99         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
100
101 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
102
103         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
104
105 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
106
107         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
108         buf to gdb_byte*.
109         (supply_32bit_reg): Add cast.
110         (mips64_fill_gregset): Likewise.
111
112 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
113
114         PR python/18073
115         * python/py-type.c (typy_get_composite): Allow returning a
116         function type.
117
118 2015-10-21  Keven Boell  <keven.boell@intel.com>
119
120         * dwarf2read.c (set_die_type): Add read of
121         DW_AT_allocated and DW_AT_associated.
122         * f-typeprint.c: New include of typeprint.h
123         (f_print_type): Add check for allocated/associated
124         status of type.
125         (f_type_print_varspec_suffix): Add check for
126         * gdbtypes.c (create_array_type_with_stride):
127         Add check for valid data location of type in
128         case allocated or associated attributes are set.
129         Length of an array should be only calculated if
130         allocated or associated is resolved as true.
131         (is_dynamic_type_internal): Add check for allocated/
132         associated.
133         (resolve_dynamic_array): Evaluate allocated/associated
134         properties.
135         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
136         <DYN_PROP_ASSOCIATED>: New enums.
137         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
138         (type_not_allocated): New function.
139         (type_not_associated): New function.
140         * valarith.c (value_subscripted_rvalue): Add check for
141         allocated/associated.
142         * valprint.c: New include of typeprint.h.
143         (valprint_check_validity): Add check for allocated/associated.
144         (value_check_printable): Add check for allocated/
145         associated.
146         * typeprint.h (val_print_not_allocated): New function.
147         (val_print_not_associated): New function.
148         * typeprint.c (val_print_not_allocated): New function.
149         (val_print_not_associated): New function.
150
151 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
152
153         * Makefile.in: Add arm.c/o.
154         * arch/arm.c: New file.
155         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
156         (MAKE_THUMB_ADDR): Likewise.
157         (UNMAKE_THUMB_ADDR): Likewise.
158         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
159         (IS_THUMB_ADDR): Move to arm.h.
160         (MAKE_THUMB_ADDR): Likewise.
161         (UNMAKE_THUMB_ADDR): Likewise.
162         * configure.tgt: Add arm.o to all ARM configs.
163
164 2015-10-21  Yao Qi  <yao.qi@linaro.org>
165
166         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
167         Remove argument exp_vCont_s.
168         * gdb.base/range-stepping.exp: Callers updated.
169         * gdb.trace/range-stepping.exp: Likewise.
170
171 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
172
173         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
174         (nto_sniff_abi_note_section): New function.
175         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
176         binary.
177
178 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
179
180         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
181         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
182         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
183         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
184         New functions.
185         (_initialize_nto_tdep): New forward declaration, new function.
186         * nto-tdep.h (struct nto_inferior_data): New struct.
187         (nto_inferior_data): New function declaration.
188
189 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
190
191         * findvar.c (address_from_register): Check REGNUM validity.
192
193 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
194
195         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
196         (init_procfs_targets): Wire new function.
197
198 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
199
200         * nto-procfs.c (sys/auxv.h): Include.
201         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
202         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
203         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
204
205 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
206
207         * nto-procfs.c (nto_procfs_path): Rename to...
208         (nodestr): ... this, and change type.
209         (nto_node): Use new variable and logic accordingly.
210         (procfs_open_1): Use new variable name. Use local buffer to construct
211         procfrs path.
212         (procfs_pidlist): Use NODESTR to construct procfs path.
213         (procfs_files_info): Use NODESTR to output meaningful text.
214         (do_attach): Construct procfs using NODESTR.
215         (procfs_create_inferior): Compare pointer to NULL.
216
217 2015-10-19  Josh Stone  <jistone@redhat.com>
218
219         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
220         return state, even when not actively catching syscalls at all.
221         (linux_handle_extended_wait): Mark syscall_state like an entry.
222         (wait_lwp): Set syscall_state ignored for other traps.
223         (linux_nat_filter_event): Likewise.
224
225 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
226
227         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
228         when handling 'E', 'T', 'S', 'X' and 'W' packets.
229         Do not set rs->waiting_for_stop_reply back to 1.
230
231 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
232
233         * nto-procfs.c (common/filestuff.h): Include.
234         (procfs_can_use_hw_breakpoint): Fix enum name.
235         (procfs_open_1): Fix compiler warning.
236         (procfs_pidlist): Make static.
237         (procfs_meminfo): Make static, fix type name, add missing argument.
238         (procfs_store_registers): Make static.
239         (procfs_thread_info): Remove unused function.
240         (_initialize_procfs): Forward declare.
241
242 2015-10-16  Yao Qi  <yao.qi@arm.com>
243
244         * MAINTAINERS: Update my email address.
245
246 2015-10-15  Yao Qi  <yao.qi@linaro.org>
247
248         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
249         Call gdbarch_breakpoint_from_pc to instruction length.
250         (aarch64_linux_remove_hw_breakpoint): Likewise.
251         * common/common-regcache.h (regcache_register_size): Declare.
252         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
253         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
254         the process is 32bit, otherwise set alignment to 4.
255         (aarch64_handle_breakpoint): Update comments.
256         * regcache.c (regcache_register_size): New function.
257
258 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
259
260         * gdbarch.sh (core_regset_section): Remove.
261         * gdbarch.h: Regenerate.
262
263 2015-10-14  Yao Qi  <yao.qi@linaro.org>
264
265         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
266         out of it.
267         (enum aarch64_memory_operand_type): New.
268
269 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
270
271         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
272
273 2015-10-13  Pedro Alves  <palves@redhat.com>
274
275         * ada-lang.c (ada_enum_name): Constify local.
276         * ada-typeprint.c (print_range_bound): Constify locals.
277         * c-varobj.c (c_describe_child): Likewise.
278         * cli/cli-setshow.c (do_set_command): Likewise.
279         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
280         * dwarf2read.c (find_file_and_directory): Likewise.
281         (anonymous_struct_prefix, dwarf2_name): Likewise.
282         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
283         * go-lang.c (unpack_mangled_go_symbol): Likewise.
284         * jv-typeprint.c (java_type_print_base): Likewise.
285         * ser-tcp.c (net_open): Likewise.
286         * symfile.c (deduce_language_from_filename): Likewise.
287         * symtab.c (gdb_mangle_name): Likewise.
288         * tui/tui-io.c (tui_redisplay_readline): Likewise.
289
290 2015-10-13  Pedro Alves  <palves@redhat.com>
291
292         * infrun.c (restore_execution_direction): New function.
293         (fetch_inferior_event): Use it instead of
294         make_cleanup_restore_integer.
295         (execution_direction): Change type to enum
296         exec_direction_kind.
297         * infrun.h (execution_direction): Likewise.
298
299 2015-10-13  Pedro Alves  <palves@redhat.com>
300
301         * ada-lang.c (ada_value_primitive_packed_val): Constify
302         locals.  Use value_contents_writeable.  Remove casts.
303
304 2015-10-13  Pedro Alves  <palves@redhat.com>
305
306         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
307         and alloca calls.
308
309 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
310
311         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
312         write_memory with write_memory_unsigned_integer.
313
314 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
315
316         * solib-dsbt.c (cmp_name): Constify arguments.
317         * solib-frv.c (cmp_name): Likewise.
318         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
319         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
320         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
321         (gdb_bfd_lookup_symbol): Likewise.
322         * solib.h (gdb_bfd_lookup_symbol): Likewise.
323         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
324
325 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
326
327         * stack.c (parse_frame_specification): Remove message parameter,
328         replace with fixed string in function body, update function
329         comment.
330         (frame_info): Remove message to parse_frame_specification.
331         (select_frame_command): Likewise.
332
333 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
334
335         * stack.c (parse_frame_specification): Delete.
336         (parse_frame_specification_1): Rename to
337         parse_frame_specification.
338         (frame_info): Use parse_frame_specification.
339         (select_frame_command): Likewise.
340         (return_command): Use select_frame and print_stack_frame rather
341         than frame_command and select_frame_command.
342         (func_command): Use get_current_frame rather than
343         parse_frame_specification.
344
345 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
346
347         * stack.c (func_command): Return early when there is no ARG
348         string.
349
350 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
351
352         * stack.c: Include safe-ctype.h not ctype.h.
353         (parse_frame_specification): Use ISSPACE not isspace.
354         (backtrace_command): Use TOLOWER not tolower.
355
356 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
357
358         * mep-tdep.c (current_me_module): Add cast.
359         (mep_gdbarch_init): Likewise.
360
361 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
362
363         * m32c-tdep.c (m32c_move_reg_t): Replace with...
364         (m32c_write_reg_t): ...this and...
365         (m32c_read_reg_t): ...this.
366         (struct m32c_reg): Update types of read and write.
367         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
368         adjust definition.
369         (m32c_banked_read): Likewise.
370         (m32c_sb_read): Likewise.
371         (m32c_part_read): Likewise.
372         (m32c_cat_read): Likewise.
373         (m32c_r3r2r1r0_read): Likewise.
374         (m32c_raw_write): Change declaration type to m32c_write_reg_t
375         and adjust definition.
376         (m32c_banked_write): Likewise.
377         (m32c_sb_write): Likewise.
378         (m32c_part_write): Likewise.
379         (m32c_cat_write): Likewise.
380         (m32c_r3r2r1r0_write): Likewise.
381
382 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
383
384         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
385
386 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
387
388         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
389         gdb_sys_no_syscall instead of -1.
390
391 2015-10-12  Yao Qi  <yao.qi@linaro.org>
392
393         * NEWS: Mention the change.
394
395 2015-10-12  Yao Qi  <yao.qi@linaro.org>
396
397         * arch/aarch64-insn.c (emit_load_store): Rename to ...
398         (aarch64_emit_load_store): ... it.  All callers updated.
399
400 2015-10-12  Yao Qi  <yao.qi@linaro.org>
401
402         * arch/aarch64-insn.c (emit_insn): Rename to ...
403         (aarch64_emit_insn): ... it.  All callers updated.
404
405 2015-10-12  Yao Qi  <yao.qi@linaro.org>
406
407         * aarch64-linux-tdep.c: Include arch-utils.h.
408         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
409         set_gdbarch_displaced_step_copy_insn,
410         set_gdbarch_displaced_step_fixup,
411         set_gdbarch_displaced_step_free_closure,
412         set_gdbarch_displaced_step_location,
413         and set_gdbarch_displaced_step_hw_singlestep.
414         * aarch64-tdep.c (struct displaced_step_closure): New.
415         (struct aarch64_displaced_step_data): New.
416         (aarch64_displaced_step_b): New function.
417         (aarch64_displaced_step_b_cond): Likewise.
418         (aarch64_register): Likewise.
419         (aarch64_displaced_step_cb): Likewise.
420         (aarch64_displaced_step_tb): Likewise.
421         (aarch64_displaced_step_adr): Likewise.
422         (aarch64_displaced_step_ldr_literal): Likewise.
423         (aarch64_displaced_step_others): Likewise.
424         (aarch64_displaced_step_copy_insn): Likewise.
425         (aarch64_displaced_step_fixup): Likewise.
426         (aarch64_displaced_step_hw_singlestep): Likewise.
427         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
428         (aarch64_displaced_step_copy_insn): Declare.
429         (aarch64_displaced_step_fixup): Declare.
430         (aarch64_displaced_step_hw_singlestep): Declare.
431         * arch/aarch64-insn.c (emit_insn): Moved from
432         gdbserver/linux-aarch64-low.c.
433         (emit_load_store): Likewise.
434         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
435         gdbserver/linux-aarch64-low.c.
436         (struct aarch64_register): Likewise.
437         (struct aarch64_memory_operand): Likewise.
438         (ENCODE): Likewise.
439         (can_encode_int32): New macro.
440         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
441         (emit_tb, emit_nop): Likewise.
442         (emit_insn): Declare.
443         (emit_load_store): Declare.
444
445 2015-10-12  Yao Qi  <yao.qi@linaro.org>
446
447         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
448         gdbserver/linux-aarch64-low.c.
449         (aarch64_relocate_instruction): Likewise.
450         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
451         (struct aarch64_insn_data): Moved from
452         gdbserver/linux-aarch64-low.c.
453         (struct aarch64_insn_visitor): Likewise.
454         (aarch64_relocate_instruction): Declare.
455
456 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
457
458         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
459         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
460         to the returned value.
461
462 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
463
464         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
465         is large enough for BIT_SIZE.  Update function comment.
466
467 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
468
469         * ada-lang.c (ada_value_primitive_packed_val): Move
470         src_len variable to local block where used.  Override
471         BIT_SIZE if bigger than size of resolved type.
472
473 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
474
475         * gdbtypes.h (is_scalar_type): Add extern declaration.
476         * gdbtypes.c (is_scalar_type): Make non-static.
477         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
478         to compute IS_SCALAR instead of doing it ourselves.
479
480 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
481
482         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
483         of case where TYPE is dynamic.
484
485 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
486
487         * ada-lang.c (ada_unpack_from_contents): New function,
488         extracted from ada_value_primitive_packed_val.
489         (ada_value_primitive_packed_val): Replace extracted out code
490         by call to ada_unpack_from_contents.
491
492 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
493
494         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
495         variable declarations.
496
497 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
498
499         * ada-lang.c (ada_value_primitive_packed_val): Change the type
500         of local variables src and unpacked to "gdb_type *" instead of
501         "unsigned char *".
502
503 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
504
505         * ada-lang.c (ada_value_primitive_packed_val): Make the name
506         of various local variables more explicit and consistent.
507         No real code change otherwise.
508
509 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
510
511         * i386-tdep.h (struct gdbarch_tdep): Change type of
512         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
513
514 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
515
516         * cris-tdep.c (struct instruction_environment): Change type of
517         byte_order to enum bfd_endian.
518
519 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
520
521         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
522         enum gdb_syscall casts.
523
524 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
525
526         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
527         * arm-tdep.c (struct stack_item): Likewise.
528         (push_stack_item): Add gdb_byte* cast.
529         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
530         (push_stack_item): Add gdb_byte* cast.
531         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
532         and add cast.
533         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
534         (push_stack_item): Add gdb_byte* cast.
535         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
536         add cast.
537         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
538         gdb_byte*.
539         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
540         gdb_byte* and remove unnecessary cast.
541         (h8300h_extract_return_value): Likewise.
542         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
543         (h8300h_store_return_value): Likewise.
544         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
545         gdb_byte* and remove unnecessary cast.
546         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
547         and add cast.
548         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
549         gdb_byte* and remove unnecessary cast.
550         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
551         valbuf.
552         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
553         (mep_pseudo_cr64_read): Likewise.
554         (mep_pseudo_csr_write): Likewise.
555         (mep_pseudo_cr32_write): Likewise.
556         (mep_pseudo_cr64_write): Likewise.
557         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
558         gdb_byte* and add cast.
559         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
560         gdb_byte* and remove unnecessary cast.
561         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
562         valbuf.
563         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
564         gdb_byte*.
565         * printcmd.c (void): Likewise.
566         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
567         gdb_byte* and add cast.
568         (infpy_write_memory): Likewise.
569         (infpy_search_memory): Likewise.
570         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
571         and add cast.
572         (regcache_raw_write_unsigned): Likewise.
573         (regcache_cooked_write_signed): Likewise.
574         (regcache_cooked_write_unsigned): Likewise.
575         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
576         gdb_byte*.
577
578 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
579
580         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
581         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
582
583 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
584
585         * stack.c (print_stack_frame):
586         * utils.c (printchar): Fix typos in commentary.
587
588 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
589
590         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
591         (PostfixExpression): Support `expr.sizeof' expressions.
592         (PrimaryExpression): Support `typeof(expr)' expressions.
593
594 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
595
596         * MAINTAINERS: Update my email address.
597
598 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
599
600         * record-btrace.c (record_btrace_resume): Fix void return.
601
602 2015-10-07  Yao Qi  <yao.qi@linaro.org>
603
604         * aarch64-tdep.c: Include opcode/aarch64.h.
605         (submask): Move it above.
606         (bit): Likewise.
607         (bits): Likewise.
608         (aarch64_software_single_step): Call aarch64_decode_insn.
609         Decode instruction by aarch64_inst instead of using
610         aarch64_decode_bcond and decode_masked_match.
611
612 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
613
614         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
615         only when the file is binary.
616
617 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
618
619         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
620         subroutine handling.
621
622 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
623
624         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
625
626 2015-09-30  Doug Evans  <dje@google.com>
627
628         * dwarf2read.c (setup_type_unit_groups): Add comment.
629
630 2015-09-30  Pedro Alves  <palves@redhat.com>
631
632         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
633         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
634         (x86_linux_create_target): Don't install
635         x86_linux_always_non_stop_p.
636
637 2015-09-30  Don Breazeal  <donb@codesourcery.com>
638
639         * remote.c (remote_parse_stop_reply): Call strprefix instead
640         of strncmp.
641
642 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
643
644         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
645         * gdbarch.h: Regenerate.
646         * i386-tdep.c (i386_gdbarch_init): Remove cast to
647         struct gdbarch_tdep_info *.
648         * mips-tdep.c (mips_gdbarch_init): Likewise.
649         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
650         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
651         * spu-multiarch.c (spu_gdbarch): Likewise.
652
653 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
654
655         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
656         record a NULL value.
657
658 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
659
660         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
661         and union arguments the same as pointer arguments when determining
662         size of argument.
663
664 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
665
666         * ft32-tdep.c: #include "opcode/ft32.h".
667         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
668         (ft32_analyze_prologue): Use FT32_* macros.
669
670 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
671
672         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
673         comment.
674
675 2015-09-28  Doug Evans  <dje@google.com>
676
677         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
678
679 2015-09-28  Doug Evans  <dje@google.com>
680
681         * common/filestuff.c (make_cleanup_close): Update comment.
682
683 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
684
685         * btrace.c (parse_xml_btrace_block): Fix cast of
686         xml_find_attribute's return value.
687         * memory-map.c (memory_map_start_memory): Likewise.
688         * solib-svr4.c (library_list_start_library): Likewise.
689         * solib-target.c (library_list_start_segment): Likewise.
690         (library_list_start_section): Likewise.
691         * tracepoint.c (traceframe_info_start_memory): Likewise.
692
693 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
694
695         * d-namespace.c (d_lookup_symbol): New arg langdef.
696         All callers updated.  Support looking up symbol as a primitive type.
697         (lookup_module_scope): New arg langdef.  All callers updated.
698         Call d_lookup_symbol directly for simple bare symbols.
699
700 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
701
702         * macrocmd.c (print_macro_callback): Add cast(s).
703         * macrotab.c (macro_bcache_str): Likewise.
704         (new_macro_definition): Likewise.
705         * main.c (captured_main): Likewise.
706         * maint.c (print_bfd_section_info): Likewise.
707         * mdebugread.c (mdebug_build_psymtabs): Likewise.
708         (basic_type): Likewise.
709         * memattr.c (mem_region_cmp): Likewise.
710         * memory-map.c (memory_map_start_memory): Likewise.
711         (memory_map_end_memory): Likewise.
712         (memory_map_start_property): Likewise.
713         (memory_map_end_property): Likewise.
714         (clear_result): Likewise.
715         * memrange.c (compare_mem_ranges): Likewise.
716         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
717         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
718         * mi/mi-console.c (mi_console_file_delete): Likewise.
719         (mi_console_file_fputs): Likewise.
720         (mi_console_raw_packet): Likewise.
721         (mi_console_file_flush): Likewise.
722         (mi_console_set_raw): Likewise.
723         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
724         (mi_new_thread): Likewise.
725         (mi_thread_exit): Likewise.
726         (mi_record_changed): Likewise.
727         (mi_inferior_added): Likewise.
728         (mi_inferior_appeared): Likewise.
729         (mi_inferior_exit): Likewise.
730         (mi_inferior_removed): Likewise.
731         (mi_interp_data): Likewise.
732         (mi_on_normal_stop): Likewise.
733         (mi_traceframe_changed): Likewise.
734         (mi_tsv_created): Likewise.
735         (mi_tsv_deleted): Likewise.
736         (mi_tsv_modified): Likewise.
737         (mi_breakpoint_created): Likewise.
738         (mi_breakpoint_deleted): Likewise.
739         (mi_breakpoint_modified): Likewise.
740         (mi_output_running_pid): Likewise.
741         (mi_inferior_count): Likewise.
742         (mi_solib_loaded): Likewise.
743         (mi_solib_unloaded): Likewise.
744         (mi_command_param_changed): Likewise.
745         (mi_memory_changed): Likewise.
746         (report_initial_inferior): Likewise.
747         (mi_ui_out): Likewise.
748         (mi_set_logging): Likewise.
749         * mi/mi-main.c (collect_cores): Likewise.
750         (print_one_inferior): Likewise.
751         (free_vector_of_ints): Likewise.
752         (free_splay_tree): Likewise.
753         (mi_execute_command): Likewise.
754         * mi/mi-out.c (mi_table_body): Likewise.
755         (mi_table_end): Likewise.
756         (mi_table_header): Likewise.
757         (mi_begin): Likewise.
758         (mi_end): Likewise.
759         (mi_field_int): Likewise.
760         (mi_field_string): Likewise.
761         (mi_field_fmt): Likewise.
762         (mi_flush): Likewise.
763         (mi_redirect): Likewise.
764         (field_separator): Likewise.
765         (mi_open): Likewise.
766         (mi_close): Likewise.
767         (mi_out_buffered): Likewise.
768         (mi_out_rewind): Likewise.
769         (mi_out_put): Likewise.
770         (mi_version): Likewise.
771         (mi_out_data_dtor): Likewise.
772         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
773         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
774         * minidebug.c (lzma_open): Likewise.
775         (lzma_pread): Likewise.
776         (lzma_close): Likewise.
777         (lzma_stat): Likewise.
778         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
779         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
780         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
781         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
782         (mips_micro_frame_cache): Likewise.
783         (mips_insn32_frame_cache): Likewise.
784         (mips_stub_frame_cache): Likewise.
785         (gdb_print_insn_mips): Likewise.
786         (value_of_mips_user_reg): Likewise.
787         (mips_gdbarch_init): Likewise.
788         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
789         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
790         (mipsnbsd_supply_gregset): Likewise.
791         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
792         (am33_collect_gregset_method): Likewise.
793         (am33_collect_fpregset_method): Likewise.
794         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
795         * moxie-tdep.c (moxie_frame_cache): Likewise.
796         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
797         (msp430_analyze_frame_prologue): Likewise.
798         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
799         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
800         (nios2_collect_gregset): Likewise.
801         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
802         (nios2_stub_frame_cache): Likewise.
803         * objc-lang.c (find_methods): Likewise.
804         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
805         (get_objfile_pspace_data): Likewise.
806         (get_objfile_bfd_data): Likewise.
807         (objfile_bfd_data_free): Likewise.
808         (add_to_objfile_sections): Likewise.
809         (do_free_objfile_cleanup): Likewise.
810         (resume_section_map_updates_cleanup): Likewise.
811         * opencl-lang.c (builtin_opencl_type): Likewise.
812         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
813         * osdata.c (osdata_start_osdata): Likewise.
814         (osdata_start_item): Likewise.
815         (osdata_start_column): Likewise.
816         (osdata_end_column): Likewise.
817         (clear_parsing_data): Likewise.
818         (osdata_free_cleanup): Likewise.
819         * parse.c (type_stack_cleanup): Likewise.
820         (exp_uses_objfile_iter): Likewise.
821         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
822         (ppc_linux_collect_gregset): Likewise.
823         (ppu2spu_prev_arch): Likewise.
824         (ppu2spu_this_id): Likewise.
825         (ppu2spu_prev_register): Likewise.
826         (ppu2spu_unwind_register): Likewise.
827         (ppu2spu_sniffer): Likewise.
828         (ppu2spu_dealloc_cache): Likewise.
829         (ppc_linux_init_abi): Likewise.
830         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
831         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
832         * progspace.c (restore_program_space): Likewise.
833         * psymtab.c (find_pc_sect_psymtab): Likewise.
834         (compare_psymbols): Likewise.
835         (psymbol_bcache_full): Likewise.
836         (allocate_psymtab): Likewise.
837         (discard_psymtabs_upto): Likewise.
838         * python/py-block.c (set_block): Likewise.
839         (del_objfile_blocks): Likewise.
840         * python/py-breakpoint.c (build_bp_list): Likewise.
841         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
842         (build_inferior_list): Likewise.
843         (py_free_inferior): Likewise.
844         * python/py-objfile.c (py_free_objfile): Likewise.
845         (objfile_to_objfile_object): Likewise.
846         * python/py-prettyprint.c (py_restore_tstate): Likewise.
847         * python/py-progspace.c (py_free_pspace): Likewise.
848         (pspace_to_pspace_object): Likewise.
849         * python/py-symbol.c (set_symbol): Likewise.
850         (del_objfile_symbols): Likewise.
851         * python/py-symtab.c (set_sal): Likewise.
852         (set_symtab): Likewise.
853         (del_objfile_symtab): Likewise.
854         (del_objfile_sal): Likewise.
855         * python/py-type.c (save_objfile_types): Likewise.
856         (set_type): Likewise.
857         * python/py-unwind.c (pyuw_prev_register): Likewise.
858         (pyuw_on_new_gdbarch): Likewise.
859         * python/py-utils.c (py_decref): Likewise.
860         (py_xdecref): Likewise.
861         (gdb_py_generic_dict): Likewise.
862         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
863         (gdbpy_clone_xmethod_worker_data): Likewise.
864         (gdbpy_get_xmethod_arg_types): Likewise.
865         (gdbpy_get_xmethod_result_type): Likewise.
866         (gdbpy_invoke_xmethod): Likewise.
867         * python/python.c (gdbpy_apply_type_printers): Likewise.
868         (gdbpy_free_type_printers): Likewise.
869         * record-btrace.c (record_btrace_disable_callback): Likewise.
870         (bfcache_hash): Likewise.
871         (bfcache_eq): Likewise.
872         (btrace_get_frame_function): Likewise.
873         (record_btrace_frame_unwind_stop_reason): Likewise.
874         (record_btrace_frame_this_id): Likewise.
875         (record_btrace_frame_prev_register): Likewise.
876         (record_btrace_frame_dealloc_cache): Likewise.
877         * record-full.c (record_full_message_wrapper): Likewise.
878         (record_full_save_cleanups): Likewise.
879         * regcache.c (regcache_descr): Likewise.
880         (do_regcache_xfree): Likewise.
881         (do_regcache_invalidate): Likewise.
882         (do_cooked_read): Likewise.
883         (regcache_transfer_regset): Likewise.
884         * reggroups.c (reggroup_add): Likewise.
885         (reggroup_next): Likewise.
886         (reggroup_prev): Likewise.
887         * remote-fileio.c (do_remote_fileio_request): Likewise.
888         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
889         (do_notif_event_xfree): Likewise.
890         * remote.c (get_remote_arch_state): Likewise.
891         (remote_pspace_data_cleanup): Likewise.
892         (get_remote_exec_file): Likewise.
893         (set_pspace_remote_exec_file): Likewise.
894         (compare_pnums): Likewise.
895         (clear_threads_listing_context): Likewise.
896         (remote_newthread_step): Likewise.
897         (start_thread): Likewise.
898         (end_thread): Likewise.
899         (remove_child_of_pending_fork): Likewise.
900         (remove_stop_reply_for_inferior): Likewise.
901         (remove_stop_reply_of_remote_state): Likewise.
902         (remote_notif_remove_once_on_match): Likewise.
903         (stop_reply_match_ptid_and_ws): Likewise.
904         (kill_child_of_pending_fork): Likewise.
905         (register_remote_g_packet_guess): Likewise.
906         (remote_read_description_p): Likewise.
907         (remote_read_description): Likewise.
908         (free_actions_list_cleanup_wrapper): Likewise.
909         (remote_async_serial_handler): Likewise.
910         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
911         (rl78_analyze_frame_prologue): Likewise.
912         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
913         (ppc_supply_fpregset): Likewise.
914         (ppc_supply_vsxregset): Likewise.
915         (ppc_supply_vrregset): Likewise.
916         (ppc_collect_gregset): Likewise.
917         (ppc_collect_fpregset): Likewise.
918         (ppc_collect_vsxregset): Likewise.
919         (ppc_collect_vrregset): Likewise.
920         (e500_move_ev_register): Likewise.
921         (do_regcache_raw_write): Likewise.
922         (rs6000_frame_cache): Likewise.
923         (rs6000_epilogue_frame_cache): Likewise.
924         (rs6000_gdbarch_init): Likewise.
925         * rx-tdep.c (rx_get_opcode_byte): Likewise.
926         (rx_analyze_frame_prologue): Likewise.
927         (rx_frame_type): Likewise.
928         (rx_frame_sniffer_common): Likewise.
929         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
930         (s390_frame_unwind_cache): Likewise.
931         (s390_stub_frame_unwind_cache): Likewise.
932         (s390_sigtramp_frame_unwind_cache): Likewise.
933         * score-tdep.c (score_make_prologue_cache): Likewise.
934         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
935         (sentinel_frame_prev_arch): Likewise.
936         * ser-base.c (fd_event): Likewise.
937         (push_event): Likewise.
938         (ser_base_write): Likewise.
939         * ser-pipe.c (pipe_close): Likewise.
940         * serial.c (serial_write): Likewise.
941         * sh-tdep.c (sh_frame_cache): Likewise.
942         (sh_stub_this_id): Likewise.
943         * sh64-tdep.c (sh64_frame_cache): Likewise.
944         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
945         (library_list_start_library): Likewise.
946         (library_list_start_list): Likewise.
947         (solib_aix_free_library_list): Likewise.
948         * solib-darwin.c (get_darwin_info): Likewise.
949         * solib-dsbt.c (get_dsbt_info): Likewise.
950         * solib-spu.c (append_ocl_sos): Likewise.
951         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
952         (get_svr4_info): Likewise.
953         (library_list_start_library): Likewise.
954         (svr4_library_list_start_list): Likewise.
955         (hash_probe_and_action): Likewise.
956         (equal_probe_and_action): Likewise.
957         (svr4_update_solib_event_breakpoint): Likewise.
958         (set_solib_svr4_fetch_link_map_offsets): Likewise.
959         (svr4_fetch_link_map_offsets): Likewise.
960         (svr4_have_link_map_offsets): Likewise.
961         * solib-target.c (library_list_start_segment): Likewise.
962         (library_list_start_section): Likewise.
963         (library_list_start_library): Likewise.
964         (library_list_end_library): Likewise.
965         (library_list_start_list): Likewise.
966         (solib_target_free_library_list): Likewise.
967         * solib.c (solib_ops): Likewise.
968         (set_solib_ops): Likewise.
969         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
970         * sparc-tdep.c (sparc_frame_cache): Likewise.
971         (sparc32_frame_cache): Likewise.
972         (sparc32_supply_gregset): Likewise.
973         (sparc32_collect_gregset): Likewise.
974         (sparc32_supply_fpregset): Likewise.
975         (sparc32_collect_fpregset): Likewise.
976         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
977         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
978         (sparc64_collect_gregset): Likewise.
979         (sparc64_supply_fpregset): Likewise.
980         (sparc64_collect_fpregset): Likewise.
981         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
982         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
983         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
984         (sparc64obsd_trapframe_cache): Likewise.
985         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
986         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
987         * spu-multiarch.c (spu_gdbarch): Likewise.
988         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
989         (spu2ppu_prev_arch): Likewise.
990         (spu2ppu_this_id): Likewise.
991         (spu2ppu_prev_register): Likewise.
992         (spu2ppu_dealloc_cache): Likewise.
993         (spu_dis_asm_print_address): Likewise.
994         (gdb_print_insn_spu): Likewise.
995         (spu_get_overlay_table): Likewise.
996         * stabsread.c (rs6000_builtin_type): Likewise.
997         * stack.c (do_print_variable_and_value): Likewise.
998         * stap-probe.c (get_stap_base_address_1): Likewise.
999         * symfile-debug.c (debug_qf_has_symbols): Likewise.
1000         (debug_qf_find_last_source_symtab): Likewise.
1001         (debug_qf_forget_cached_source_info): Likewise.
1002         (debug_qf_map_symtabs_matching_filename): Likewise.
1003         (debug_qf_lookup_symbol): Likewise.
1004         (debug_qf_print_stats): Likewise.
1005         (debug_qf_dump): Likewise.
1006         (debug_qf_relocate): Likewise.
1007         (debug_qf_expand_symtabs_for_function): Likewise.
1008         (debug_qf_expand_all_symtabs): Likewise.
1009         (debug_qf_expand_symtabs_with_fullname): Likewise.
1010         (debug_qf_map_matching_symbols): Likewise.
1011         (debug_qf_expand_symtabs_matching): Likewise.
1012         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1013         (debug_qf_map_symbol_filenames): Likewise.
1014         (debug_sym_get_probes): Likewise.
1015         (debug_sym_new_init): Likewise.
1016         (debug_sym_init): Likewise.
1017         (debug_sym_read): Likewise.
1018         (debug_sym_read_psymbols): Likewise.
1019         (debug_sym_finish): Likewise.
1020         (debug_sym_offsets): Likewise.
1021         (debug_sym_read_linetable): Likewise.
1022         (debug_sym_relocate): Likewise.
1023         (uninstall_symfile_debug_logging): Likewise.
1024         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1025         * symfile.c (place_section): Likewise.
1026         (add_section_size_callback): Likewise.
1027         (load_progress): Likewise.
1028         (load_section_callback): Likewise.
1029         (clear_memory_write_data): Likewise.
1030         (allocate_symtab): Likewise.
1031         * symmisc.c (maintenance_expand_file_matcher): Likewise.
1032         * symtab.c (lookup_symtab_callback): Likewise.
1033         (hash_demangled_name_entry): Likewise.
1034         (eq_demangled_name_entry): Likewise.
1035         (get_symbol_cache): Likewise.
1036         (symbol_cache_cleanup): Likewise.
1037         (set_symbol_cache_size): Likewise.
1038         (symbol_cache_flush): Likewise.
1039         (maintenance_print_symbol_cache): Likewise.
1040         (maintenance_print_symbol_cache_statistics): Likewise.
1041         (delete_filename_seen_cache): Likewise.
1042         (output_partial_symbol_filename): Likewise.
1043         (search_symbols_file_matches): Likewise.
1044         (search_symbols_name_matches): Likewise.
1045         (do_free_completion_list): Likewise.
1046         (maybe_add_partial_symtab_filename): Likewise.
1047         (get_main_info): Likewise.
1048         (main_info_cleanup): Likewise.
1049         * target-dcache.c (target_dcache_cleanup): Likewise.
1050         (target_dcache_init_p): Likewise.
1051         (target_dcache_invalidate): Likewise.
1052         (target_dcache_get): Likewise.
1053         (target_dcache_get_or_init): Likewise.
1054         * target-descriptions.c (target_find_description): Likewise.
1055         (tdesc_find_type): Likewise.
1056         (tdesc_data_cleanup): Likewise.
1057         (tdesc_find_arch_register): Likewise.
1058         (tdesc_register_name): Likewise.
1059         (tdesc_register_type): Likewise.
1060         (tdesc_register_reggroup_p): Likewise.
1061         (set_tdesc_pseudo_register_name): Likewise.
1062         (set_tdesc_pseudo_register_type): Likewise.
1063         (set_tdesc_pseudo_register_reggroup_p): Likewise.
1064         (tdesc_use_registers): Likewise.
1065         (free_target_description): Likewise.
1066         * target-memory.c (compare_block_starting_address): Likewise.
1067         (cleanup_request_data): Likewise.
1068         (cleanup_write_requests_vector): Likewise.
1069         * target.c (open_target): Likewise.
1070         (cleanup_restore_target_terminal): Likewise.
1071         (free_memory_read_result_vector): Likewise.
1072         * thread.c (disable_thread_stack_temporaries): Likewise.
1073         (finish_thread_state_cleanup): Likewise.
1074         (do_restore_current_thread_cleanup): Likewise.
1075         (restore_current_thread_cleanup_dtor): Likewise.
1076         (set_thread_refcount): Likewise.
1077         (tp_array_compar): Likewise.
1078         (do_captured_thread_select): Likewise.
1079         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1080         (tic6x_stub_this_id): Likewise.
1081         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1082         * top.c (do_restore_instream_cleanup): Likewise.
1083         (gdb_readline_wrapper_cleanup): Likewise.
1084         (kill_or_detach): Likewise.
1085         (print_inferior_quit_action): Likewise.
1086         * tracefile-tfile.c (match_blocktype): Likewise.
1087         (build_traceframe_info): Likewise.
1088         * tracefile.c (trace_file_writer_xfree): Likewise.
1089         * tracepoint.c (memrange_cmp): Likewise.
1090         (do_collect_symbol): Likewise.
1091         (do_clear_collection_list): Likewise.
1092         (do_restore_current_traceframe_cleanup): Likewise.
1093         (restore_current_traceframe_cleanup_dtor): Likewise.
1094         (free_current_marker): Likewise.
1095         (traceframe_info_start_memory): Likewise.
1096         (traceframe_info_start_tvar): Likewise.
1097         (free_result): Likewise.
1098         * tramp-frame.c (tramp_frame_cache): Likewise.
1099         * tui/tui-file.c (tui_file_delete): Likewise.
1100         (tui_fileopen): Likewise.
1101         (tui_sfileopen): Likewise.
1102         (tui_file_isatty): Likewise.
1103         (tui_file_rewind): Likewise.
1104         (tui_file_put): Likewise.
1105         (tui_file_fputs): Likewise.
1106         (tui_file_get_strbuf): Likewise.
1107         (tui_file_adjust_strbuf): Likewise.
1108         (tui_file_flush): Likewise.
1109         * tui/tui-layout.c (make_command_window): Likewise.
1110         (make_data_window): Likewise.
1111         (show_source_disasm_command): Likewise.
1112         (show_data): Likewise.
1113         (make_source_or_disasm_window): Likewise.
1114         (show_source_or_disasm_and_command): Likewise.
1115         * tui/tui-out.c (tui_field_int): Likewise.
1116         (tui_field_string): Likewise.
1117         (tui_field_fmt): Likewise.
1118         (tui_text): Likewise.
1119         * typeprint.c (hash_typedef_field): Likewise.
1120         (eq_typedef_field): Likewise.
1121         (do_free_typedef_hash): Likewise.
1122         (copy_typedef_hash_element): Likewise.
1123         (do_free_global_table): Likewise.
1124         (find_global_typedef): Likewise.
1125         (find_typedef_in_hash): Likewise.
1126         * ui-file.c (ui_file_write_for_put): Likewise.
1127         (do_ui_file_xstrdup): Likewise.
1128         (mem_file_delete): Likewise.
1129         (mem_file_rewind): Likewise.
1130         (mem_file_put): Likewise.
1131         (mem_file_write): Likewise.
1132         (stdio_file_delete): Likewise.
1133         (stdio_file_flush): Likewise.
1134         (stdio_file_read): Likewise.
1135         (stdio_file_write): Likewise.
1136         (stdio_file_write_async_safe): Likewise.
1137         (stdio_file_fputs): Likewise.
1138         (stdio_file_isatty): Likewise.
1139         (stdio_file_fseek): Likewise.
1140         (tee_file_delete): Likewise.
1141         (tee_file_flush): Likewise.
1142         (tee_file_write): Likewise.
1143         (tee_file_fputs): Likewise.
1144         (tee_file_isatty): Likewise.
1145         * ui-out.c (do_cleanup_table_end): Likewise.
1146         (do_cleanup_end): Likewise.
1147         * user-regs.c (user_reg_add): Likewise.
1148         (user_reg_map_name_to_regnum): Likewise.
1149         (usernum_to_user_reg): Likewise.
1150         (maintenance_print_user_registers): Likewise.
1151         * utils.c (do_bfd_close_cleanup): Likewise.
1152         (do_fclose_cleanup): Likewise.
1153         (do_obstack_free): Likewise.
1154         (do_ui_file_delete): Likewise.
1155         (do_ui_out_redirect_pop): Likewise.
1156         (do_free_section_addr_info): Likewise.
1157         (restore_integer): Likewise.
1158         (do_unpush_target): Likewise.
1159         (do_htab_delete_cleanup): Likewise.
1160         (do_restore_ui_file): Likewise.
1161         (do_value_free): Likewise.
1162         (do_free_so): Likewise.
1163         (free_current_contents): Likewise.
1164         (do_regfree_cleanup): Likewise.
1165         (core_addr_hash): Likewise.
1166         (core_addr_eq): Likewise.
1167         (do_free_char_ptr_vec): Likewise.
1168         * v850-tdep.c (v850_frame_cache): Likewise.
1169         * varobj.c (do_free_variable_cleanup): Likewise.
1170         * vax-tdep.c (vax_supply_gregset): Likewise.
1171         (vax_frame_cache): Likewise.
1172         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1173         * xml-support.c (gdb_xml_body_text): Likewise.
1174         (gdb_xml_values_cleanup): Likewise.
1175         (gdb_xml_start_element): Likewise.
1176         (gdb_xml_start_element_wrapper): Likewise.
1177         (gdb_xml_end_element): Likewise.
1178         (gdb_xml_end_element_wrapper): Likewise.
1179         (gdb_xml_cleanup): Likewise.
1180         (gdb_xml_fetch_external_entity): Likewise.
1181         (gdb_xml_parse_attr_enum): Likewise.
1182         (xinclude_start_include): Likewise.
1183         (xinclude_end_include): Likewise.
1184         (xml_xinclude_default): Likewise.
1185         (xml_xinclude_start_doctype): Likewise.
1186         (xml_xinclude_end_doctype): Likewise.
1187         (xml_xinclude_cleanup): Likewise.
1188         (xml_fetch_content_from_file): Likewise.
1189         * xml-syscall.c (free_syscalls_info): Likewise.
1190         (syscall_start_syscall): Likewise.
1191         * xml-tdesc.c (tdesc_end_arch): Likewise.
1192         (tdesc_end_osabi): Likewise.
1193         (tdesc_end_compatible): Likewise.
1194         (tdesc_start_target): Likewise.
1195         (tdesc_start_feature): Likewise.
1196         (tdesc_start_reg): Likewise.
1197         (tdesc_start_union): Likewise.
1198         (tdesc_start_struct): Likewise.
1199         (tdesc_start_flags): Likewise.
1200         (tdesc_start_field): Likewise.
1201         (tdesc_start_vector): Likewise.
1202         (fetch_available_features_from_target): Likewise.
1203         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1204         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1205         (xtensa_frame_cache): Likewise.
1206         (xtensa_frame_prev_register): Likewise.
1207         (xtensa_extract_return_value): Likewise.
1208
1209 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1210
1211         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1212         (aarch64_make_stub_cache): Likewise.
1213         (value_of_aarch64_user_reg): Likewise.
1214         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1215         (get_ada_inferior_data): Likewise.
1216         (get_ada_pspace_data): Likewise.
1217         (ada_pspace_data_cleanup): Likewise.
1218         (ada_complete_symbol_matcher): Likewise.
1219         (ada_exc_search_name_matches): Likewise.
1220         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1221         (get_ada_tasks_inferior_data): Likewise.
1222         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1223         (splay_obstack_alloc): Likewise.
1224         (splay_obstack_free): Likewise.
1225         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1226         (alpha_linux_collect_gregset): Likewise.
1227         (alpha_linux_supply_fpregset): Likewise.
1228         (alpha_linux_collect_fpregset): Likewise.
1229         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1230         * alpha-tdep.c (alpha_lds): Likewise.
1231         (alpha_sts): Likewise.
1232         (alpha_sigtramp_frame_unwind_cache): Likewise.
1233         (alpha_heuristic_frame_unwind_cache): Likewise.
1234         (alpha_supply_int_regs): Likewise.
1235         (alpha_fill_int_regs): Likewise.
1236         (alpha_supply_fp_regs): Likewise.
1237         (alpha_fill_fp_regs): Likewise.
1238         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1239         (alphanbsd_aout_supply_gregset): Likewise.
1240         (alphanbsd_supply_gregset): Likewise.
1241         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1242         (amd64_x32_linux_init_abi): Likewise.
1243         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1244         (amd64_collect_native_gregset): Likewise.
1245         * amd64-tdep.c (amd64_frame_cache): Likewise.
1246         (amd64_sigtramp_frame_cache): Likewise.
1247         (amd64_epilogue_frame_cache): Likewise.
1248         (amd64_supply_fxsave): Likewise.
1249         (amd64_supply_xsave): Likewise.
1250         (amd64_collect_fxsave): Likewise.
1251         (amd64_collect_xsave): Likewise.
1252         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1253         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1254         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1255         (arm_linux_collect_gregset): Likewise.
1256         (arm_linux_supply_nwfpe): Likewise.
1257         (arm_linux_collect_nwfpe): Likewise.
1258         (arm_linux_supply_vfp): Likewise.
1259         (arm_linux_collect_vfp): Likewise.
1260         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1261         (arm_prologue_unwind_stop_reason): Likewise.
1262         (arm_prologue_this_id): Likewise.
1263         (arm_prologue_prev_register): Likewise.
1264         (arm_exidx_data_free): Likewise.
1265         (arm_find_exidx_entry): Likewise.
1266         (arm_stub_this_id): Likewise.
1267         (arm_m_exception_this_id): Likewise.
1268         (arm_m_exception_prev_register): Likewise.
1269         (arm_normal_frame_base): Likewise.
1270         (gdb_print_insn_arm): Likewise.
1271         (arm_objfile_data_free): Likewise.
1272         (arm_record_special_symbol): Likewise.
1273         (value_of_arm_user_reg): Likewise.
1274         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1275         (armbsd_supply_gregset): Likewise.
1276         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1277         (get_auto_load_pspace_data): Likewise.
1278         (hash_loaded_script_entry): Likewise.
1279         (eq_loaded_script_entry): Likewise.
1280         (clear_section_scripts): Likewise.
1281         (collect_matching_scripts): Likewise.
1282         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1283         (get_auxv_inferior_data): Likewise.
1284         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1285         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1286         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1287         (target_bfd_xclose): Likewise.
1288         (target_bfd_get_section_table): Likewise.
1289         * bfin-tdep.c (bfin_frame_cache): Likewise.
1290         * block.c (find_block_in_blockvector): Likewise.
1291         (call_site_for_pc): Likewise.
1292         (block_find_non_opaque_type_preferred): Likewise.
1293         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1294         (signal_catchpoint_remove_location): Likewise.
1295         (signal_catchpoint_breakpoint_hit): Likewise.
1296         (signal_catchpoint_print_one): Likewise.
1297         (signal_catchpoint_print_mention): Likewise.
1298         (signal_catchpoint_print_recreate): Likewise.
1299         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1300         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1301         (bp_location_compare_addrs): Likewise.
1302         (get_first_locp_gte_addr): Likewise.
1303         (check_tracepoint_command): Likewise.
1304         (do_map_commands_command): Likewise.
1305         (get_breakpoint_objfile_data): Likewise.
1306         (free_breakpoint_probes): Likewise.
1307         (do_captured_breakpoint_query): Likewise.
1308         (compare_breakpoints): Likewise.
1309         (bp_location_compare): Likewise.
1310         (bpstat_remove_breakpoint_callback): Likewise.
1311         (do_delete_breakpoint_cleanup): Likewise.
1312         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1313         (bsd_uthread_set_collect_uthread): Likewise.
1314         (bsd_uthread_activate): Likewise.
1315         (bsd_uthread_fetch_registers): Likewise.
1316         (bsd_uthread_store_registers): Likewise.
1317         * btrace.c (check_xml_btrace_version): Likewise.
1318         (parse_xml_btrace_block): Likewise.
1319         (parse_xml_btrace_pt_config_cpu): Likewise.
1320         (parse_xml_btrace_pt_raw): Likewise.
1321         (parse_xml_btrace_pt): Likewise.
1322         (parse_xml_btrace_conf_bts): Likewise.
1323         (parse_xml_btrace_conf_pt): Likewise.
1324         (do_btrace_data_cleanup): Likewise.
1325         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1326         * charset.c (cleanup_iconv): Likewise.
1327         (do_cleanup_iterator): Likewise.
1328         * cli-out.c (cli_uiout_dtor): Likewise.
1329         (cli_table_begin): Likewise.
1330         (cli_table_body): Likewise.
1331         (cli_table_end): Likewise.
1332         (cli_table_header): Likewise.
1333         (cli_begin): Likewise.
1334         (cli_end): Likewise.
1335         (cli_field_int): Likewise.
1336         (cli_field_skip): Likewise.
1337         (cli_field_string): Likewise.
1338         (cli_field_fmt): Likewise.
1339         (cli_spaces): Likewise.
1340         (cli_text): Likewise.
1341         (cli_message): Likewise.
1342         (cli_wrap_hint): Likewise.
1343         (cli_flush): Likewise.
1344         (cli_redirect): Likewise.
1345         (out_field_fmt): Likewise.
1346         (field_separator): Likewise.
1347         (cli_out_set_stream): Likewise.
1348         * cli/cli-cmds.c (compare_symtabs): Likewise.
1349         * cli/cli-dump.c (call_dump_func): Likewise.
1350         (restore_section_callback): Likewise.
1351         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1352         (do_restore_user_call_depth): Likewise.
1353         (do_free_command_lines_cleanup): Likewise.
1354         * coff-pe-read.c (get_section_vmas): Likewise.
1355         (pe_as16): Likewise.
1356         (pe_as32): Likewise.
1357         * coffread.c (coff_symfile_read): Likewise.
1358         * common/agent.c (agent_look_up_symbols): Likewise.
1359         * common/filestuff.c (do_close_cleanup): Likewise.
1360         * common/format.c (free_format_pieces_cleanup): Likewise.
1361         * common/vec.c (vec_o_reserve): Likewise.
1362         * compile/compile-c-support.c (print_one_macro): Likewise.
1363         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1364         (eq_symbol_error): Likewise.
1365         (del_symbol_error): Likewise.
1366         (error_symbol_once): Likewise.
1367         (gcc_convert_symbol): Likewise.
1368         (gcc_symbol_address): Likewise.
1369         (hash_symname): Likewise.
1370         (eq_symname): Likewise.
1371         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1372         (eq_type_map_instance): Likewise.
1373         (insert_type): Likewise.
1374         (convert_type): Likewise.
1375         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1376         (setup_sections): Likewise.
1377         (link_hash_table_free): Likewise.
1378         (copy_sections): Likewise.
1379         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1380         * compile/compile.c (compile_print_value): Likewise.
1381         (do_rmdir): Likewise.
1382         (cleanup_compile_instance): Likewise.
1383         (cleanup_unlink_file): Likewise.
1384         * completer.c (free_completion_tracker): Likewise.
1385         * corelow.c (add_to_spuid_list): Likewise.
1386         * cp-namespace.c (reset_directive_searched): Likewise.
1387         * cp-support.c (reset_directive_searched): Likewise.
1388         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1389         (cris_frame_unwind_cache): Likewise.
1390         * d-lang.c (builtin_d_type): Likewise.
1391         * d-namespace.c (reset_directive_searched): Likewise.
1392         * dbxread.c (dbx_free_symfile_info): Likewise.
1393         (do_free_bincl_list_cleanup): Likewise.
1394         * disasm.c (hash_dis_line_entry): Likewise.
1395         (eq_dis_line_entry): Likewise.
1396         (dis_asm_print_address): Likewise.
1397         (fprintf_disasm): Likewise.
1398         (do_ui_file_delete): Likewise.
1399         * doublest.c (convert_floatformat_to_doublest): Likewise.
1400         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1401         (dummy_frame_prev_register): Likewise.
1402         (dummy_frame_this_id): Likewise.
1403         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1404         (cache_eq): Likewise.
1405         (cache_find): Likewise.
1406         (tailcall_frame_this_id): Likewise.
1407         (dwarf2_tailcall_prev_register_first): Likewise.
1408         (tailcall_frame_prev_register): Likewise.
1409         (tailcall_frame_dealloc_cache): Likewise.
1410         (tailcall_frame_prev_arch): Likewise.
1411         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1412         (dwarf2_frame_set_init_reg): Likewise.
1413         (dwarf2_frame_init_reg): Likewise.
1414         (dwarf2_frame_set_signal_frame_p): Likewise.
1415         (dwarf2_frame_signal_frame_p): Likewise.
1416         (dwarf2_frame_set_adjust_regnum): Likewise.
1417         (dwarf2_frame_adjust_regnum): Likewise.
1418         (clear_pointer_cleanup): Likewise.
1419         (dwarf2_frame_cache): Likewise.
1420         (find_cie): Likewise.
1421         (dwarf2_frame_find_fde): Likewise.
1422         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1423         (free_dwarf_expr_context_cleanup): Likewise.
1424         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1425         (locexpr_get_frame_base): Likewise.
1426         (loclist_find_frame_base_location): Likewise.
1427         (loclist_get_frame_base): Likewise.
1428         (dwarf_expr_dwarf_call): Likewise.
1429         (dwarf_expr_get_base_type): Likewise.
1430         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1431         (dwarf_expr_get_obj_addr): Likewise.
1432         (entry_data_value_coerce_ref): Likewise.
1433         (entry_data_value_copy_closure): Likewise.
1434         (entry_data_value_free_closure): Likewise.
1435         (get_frame_address_in_block_wrapper): Likewise.
1436         (dwarf2_evaluate_property): Likewise.
1437         (dwarf2_compile_property_to_c): Likewise.
1438         (needs_frame_read_addr_from_reg): Likewise.
1439         (needs_frame_get_reg_value): Likewise.
1440         (needs_frame_frame_base): Likewise.
1441         (needs_frame_frame_cfa): Likewise.
1442         (needs_frame_tls_address): Likewise.
1443         (needs_frame_dwarf_call): Likewise.
1444         (needs_dwarf_reg_entry_value): Likewise.
1445         (get_ax_pc): Likewise.
1446         (locexpr_read_variable): Likewise.
1447         (locexpr_read_variable_at_entry): Likewise.
1448         (locexpr_read_needs_frame): Likewise.
1449         (locexpr_describe_location): Likewise.
1450         (locexpr_tracepoint_var_ref): Likewise.
1451         (locexpr_generate_c_location): Likewise.
1452         (loclist_read_variable): Likewise.
1453         (loclist_read_variable_at_entry): Likewise.
1454         (loclist_describe_location): Likewise.
1455         (loclist_tracepoint_var_ref): Likewise.
1456         (loclist_generate_c_location): Likewise.
1457         * dwarf2read.c (line_header_hash_voidp): Likewise.
1458         (line_header_eq_voidp): Likewise.
1459         (dwarf2_has_info): Likewise.
1460         (dwarf2_get_section_info): Likewise.
1461         (locate_dwz_sections): Likewise.
1462         (hash_file_name_entry): Likewise.
1463         (eq_file_name_entry): Likewise.
1464         (delete_file_name_entry): Likewise.
1465         (dw2_setup): Likewise.
1466         (dw2_get_file_names_reader): Likewise.
1467         (dw2_find_pc_sect_compunit_symtab): Likewise.
1468         (hash_signatured_type): Likewise.
1469         (eq_signatured_type): Likewise.
1470         (add_signatured_type_cu_to_table): Likewise.
1471         (create_debug_types_hash_table): Likewise.
1472         (lookup_dwo_signatured_type): Likewise.
1473         (lookup_dwp_signatured_type): Likewise.
1474         (lookup_signatured_type): Likewise.
1475         (hash_type_unit_group): Likewise.
1476         (eq_type_unit_group): Likewise.
1477         (get_type_unit_group): Likewise.
1478         (process_psymtab_comp_unit_reader): Likewise.
1479         (sort_tu_by_abbrev_offset): Likewise.
1480         (process_skeletonless_type_unit): Likewise.
1481         (psymtabs_addrmap_cleanup): Likewise.
1482         (dwarf2_read_symtab): Likewise.
1483         (psymtab_to_symtab_1): Likewise.
1484         (die_hash): Likewise.
1485         (die_eq): Likewise.
1486         (load_full_comp_unit_reader): Likewise.
1487         (reset_die_in_process): Likewise.
1488         (free_cu_line_header): Likewise.
1489         (handle_DW_AT_stmt_list): Likewise.
1490         (hash_dwo_file): Likewise.
1491         (eq_dwo_file): Likewise.
1492         (hash_dwo_unit): Likewise.
1493         (eq_dwo_unit): Likewise.
1494         (create_dwo_cu_reader): Likewise.
1495         (create_dwo_unit_in_dwp_v1): Likewise.
1496         (create_dwo_unit_in_dwp_v2): Likewise.
1497         (lookup_dwo_unit_in_dwp): Likewise.
1498         (dwarf2_locate_dwo_sections): Likewise.
1499         (dwarf2_locate_common_dwp_sections): Likewise.
1500         (dwarf2_locate_v2_dwp_sections): Likewise.
1501         (hash_dwp_loaded_cutus): Likewise.
1502         (eq_dwp_loaded_cutus): Likewise.
1503         (lookup_dwo_cutu): Likewise.
1504         (abbrev_table_free_cleanup): Likewise.
1505         (dwarf2_free_abbrev_table): Likewise.
1506         (find_partial_die_in_comp_unit): Likewise.
1507         (free_line_header_voidp): Likewise.
1508         (follow_die_offset): Likewise.
1509         (follow_die_sig_1): Likewise.
1510         (free_heap_comp_unit): Likewise.
1511         (free_stack_comp_unit): Likewise.
1512         (dwarf2_free_objfile): Likewise.
1513         (per_cu_offset_and_type_hash): Likewise.
1514         (per_cu_offset_and_type_eq): Likewise.
1515         (get_die_type_at_offset): Likewise.
1516         (partial_die_hash): Likewise.
1517         (partial_die_eq): Likewise.
1518         (dwarf2_per_objfile_free): Likewise.
1519         (hash_strtab_entry): Likewise.
1520         (eq_strtab_entry): Likewise.
1521         (add_string): Likewise.
1522         (hash_symtab_entry): Likewise.
1523         (eq_symtab_entry): Likewise.
1524         (delete_symtab_entry): Likewise.
1525         (cleanup_mapped_symtab): Likewise.
1526         (add_indices_to_cpool): Likewise.
1527         (hash_psymtab_cu_index): Likewise.
1528         (eq_psymtab_cu_index): Likewise.
1529         (add_address_entry_worker): Likewise.
1530         (unlink_if_set): Likewise.
1531         (write_one_signatured_type): Likewise.
1532         (save_gdb_index_command): Likewise.
1533         * elfread.c (elf_symtab_read): Likewise.
1534         (elf_gnu_ifunc_cache_hash): Likewise.
1535         (elf_gnu_ifunc_cache_eq): Likewise.
1536         (elf_gnu_ifunc_record_cache): Likewise.
1537         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1538         (elf_get_probes): Likewise.
1539         (probe_key_free): Likewise.
1540         * f-lang.c (builtin_f_type): Likewise.
1541         * frame-base.c (frame_base_append_sniffer): Likewise.
1542         (frame_base_set_default): Likewise.
1543         (frame_base_find_by_frame): Likewise.
1544         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1545         (frame_unwind_append_unwinder): Likewise.
1546         (frame_unwind_find_by_frame): Likewise.
1547         * frame.c (frame_addr_hash): Likewise.
1548         (frame_addr_hash_eq): Likewise.
1549         (frame_stash_find): Likewise.
1550         (do_frame_register_read): Likewise.
1551         (unwind_to_current_frame): Likewise.
1552         (frame_cleanup_after_sniffer): Likewise.
1553         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1554         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1555         * ft32-tdep.c (ft32_frame_cache): Likewise.
1556         * gcore.c (do_bfd_delete_cleanup): Likewise.
1557         (gcore_create_callback): Likewise.
1558         * gdb_bfd.c (hash_bfd): Likewise.
1559         (eq_bfd): Likewise.
1560         (gdb_bfd_open): Likewise.
1561         (free_one_bfd_section): Likewise.
1562         (gdb_bfd_ref): Likewise.
1563         (gdb_bfd_unref): Likewise.
1564         (get_section_descriptor): Likewise.
1565         (gdb_bfd_map_section): Likewise.
1566         (gdb_bfd_crc): Likewise.
1567         (gdb_bfd_mark_parent): Likewise.
1568         (gdb_bfd_record_inclusion): Likewise.
1569         (gdb_bfd_requires_relocations): Likewise.
1570         (print_one_bfd): Likewise.
1571         * gdbtypes.c (type_pair_hash): Likewise.
1572         (type_pair_eq): Likewise.
1573         (builtin_type): Likewise.
1574         (objfile_type): Likewise.
1575         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1576         (vtable_address_point_offset): Likewise.
1577         (gnuv3_get_vtable): Likewise.
1578         (hash_value_and_voffset): Likewise.
1579         (eq_value_and_voffset): Likewise.
1580         (compare_value_and_voffset): Likewise.
1581         (compute_vtable_size): Likewise.
1582         (gnuv3_get_typeid_type): Likewise.
1583         * go-lang.c (builtin_go_type): Likewise.
1584         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1585         (bkscm_eq_block_smob): Likewise.
1586         (bkscm_objfile_block_map): Likewise.
1587         (bkscm_del_objfile_blocks): Likewise.
1588         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1589         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1590         (gdbscm_disasm_print_address): Likewise.
1591         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1592         (frscm_eq_frame_smob): Likewise.
1593         (frscm_inferior_frame_map): Likewise.
1594         (frscm_del_inferior_frames): Likewise.
1595         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1596         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1597         (ofscm_objfile_smob_from_objfile): Likewise.
1598         * guile/scm-ports.c (ioscm_write): Likewise.
1599         (ioscm_file_port_delete): Likewise.
1600         (ioscm_file_port_rewind): Likewise.
1601         (ioscm_file_port_put): Likewise.
1602         (ioscm_file_port_write): Likewise.
1603         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1604         (psscm_pspace_smob_from_pspace): Likewise.
1605         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1606         (scscm_recording_unwind_handler): Likewise.
1607         (gdbscm_with_catch): Likewise.
1608         (scscm_call_0_body): Likewise.
1609         (scscm_call_1_body): Likewise.
1610         (scscm_call_2_body): Likewise.
1611         (scscm_call_3_body): Likewise.
1612         (scscm_call_4_body): Likewise.
1613         (scscm_apply_1_body): Likewise.
1614         (scscm_eval_scheme_string): Likewise.
1615         (gdbscm_safe_eval_string): Likewise.
1616         (scscm_source_scheme_script): Likewise.
1617         (gdbscm_safe_source_script): Likewise.
1618         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1619         (gdbscm_call_scm_from_stringn): Likewise.
1620         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1621         (syscm_eq_symbol_smob): Likewise.
1622         (syscm_get_symbol_map): Likewise.
1623         (syscm_del_objfile_symbols): Likewise.
1624         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1625         (stscm_eq_symtab_smob): Likewise.
1626         (stscm_objfile_symtab_map): Likewise.
1627         (stscm_del_objfile_symtabs): Likewise.
1628         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1629         (tyscm_eq_type_smob): Likewise.
1630         (tyscm_type_map): Likewise.
1631         (tyscm_copy_type_recursive): Likewise.
1632         (save_objfile_types): Likewise.
1633         * guile/scm-utils.c (extract_arg): Likewise.
1634         * h8300-tdep.c (h8300_frame_cache): Likewise.
1635         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1636         * hppa-tdep.c (compare_unwind_entries): Likewise.
1637         (find_unwind_entry): Likewise.
1638         (hppa_frame_cache): Likewise.
1639         (hppa_stub_frame_unwind_cache): Likewise.
1640         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1641         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1642         (hppaobsd_supply_fpregset): Likewise.
1643         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1644         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1645         * i386-tdep.c (i386_frame_cache): Likewise.
1646         (i386_epilogue_frame_cache): Likewise.
1647         (i386_sigtramp_frame_cache): Likewise.
1648         (i386_supply_gregset): Likewise.
1649         (i386_collect_gregset): Likewise.
1650         (i386_gdbarch_init): Likewise.
1651         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1652         (i386obsd_trapframe_cache): Likewise.
1653         * i387-tdep.c (i387_supply_fsave): Likewise.
1654         (i387_collect_fsave): Likewise.
1655         (i387_supply_fxsave): Likewise.
1656         (i387_collect_fxsave): Likewise.
1657         (i387_supply_xsave): Likewise.
1658         (i387_collect_xsave): Likewise.
1659         * ia64-tdep.c (ia64_frame_cache): Likewise.
1660         (ia64_sigtramp_frame_cache): Likewise.
1661         * infcmd.c (attach_command_continuation): Likewise.
1662         (attach_command_continuation_free_args): Likewise.
1663         * inferior.c (restore_inferior): Likewise.
1664         (delete_thread_of_inferior): Likewise.
1665         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1666         (get_inflow_inferior_data): Likewise.
1667         (inflow_inferior_exit): Likewise.
1668         * infrun.c (displaced_step_clear_cleanup): Likewise.
1669         (restore_current_uiout_cleanup): Likewise.
1670         (release_stop_context_cleanup): Likewise.
1671         (do_restore_infcall_suspend_state_cleanup): Likewise.
1672         (do_restore_infcall_control_state_cleanup): Likewise.
1673         (restore_inferior_ptid): Likewise.
1674         * inline-frame.c (block_starting_point_at): Likewise.
1675         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1676         * jit.c (get_jit_objfile_data): Likewise.
1677         (get_jit_program_space_data): Likewise.
1678         (jit_object_close_impl): Likewise.
1679         (jit_find_objf_with_entry_addr): Likewise.
1680         (jit_breakpoint_deleted): Likewise.
1681         (jit_unwind_reg_set_impl): Likewise.
1682         (jit_unwind_reg_get_impl): Likewise.
1683         (jit_dealloc_cache): Likewise.
1684         (jit_frame_sniffer): Likewise.
1685         (jit_frame_prev_register): Likewise.
1686         (jit_prepend_unwinder): Likewise.
1687         (jit_inferior_exit_hook): Likewise.
1688         (free_objfile_data): Likewise.
1689         * jv-lang.c (jv_per_objfile_free): Likewise.
1690         (get_dynamics_objfile): Likewise.
1691         (get_java_class_symtab): Likewise.
1692         (builtin_java_type): Likewise.
1693         * language.c (language_string_char_type): Likewise.
1694         (language_bool_type): Likewise.
1695         (language_lookup_primitive_type): Likewise.
1696         (language_lookup_primitive_type_as_symbol): Likewise.
1697         * linespec.c (hash_address_entry): Likewise.
1698         (eq_address_entry): Likewise.
1699         (iterate_inline_only): Likewise.
1700         (iterate_name_matcher): Likewise.
1701         (decode_line_2_compare_items): Likewise.
1702         (collect_one_symbol): Likewise.
1703         (compare_symbols): Likewise.
1704         (compare_msymbols): Likewise.
1705         (add_symtabs_to_list): Likewise.
1706         (collect_symbols): Likewise.
1707         (compare_msyms): Likewise.
1708         (add_minsym): Likewise.
1709         (cleanup_linespec_result): Likewise.
1710         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1711         * linux-nat.c (delete_lwp_cleanup): Likewise.
1712         (count_events_callback): Likewise.
1713         (select_event_lwp_callback): Likewise.
1714         (resume_stopped_resumed_lwps): Likewise.
1715         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1716         (invalidate_linux_cache_inf): Likewise.
1717         (get_linux_inferior_data): Likewise.
1718         (linux_find_memory_regions_thunk): Likewise.
1719         (linux_make_mappings_callback): Likewise.
1720         (linux_corefile_thread_callback): Likewise.
1721         (find_mapping_size): Likewise.
1722         * linux-thread-db.c (find_new_threads_callback): Likewise.
1723         * lm32-tdep.c (lm32_frame_cache): Likewise.
1724         * m2-lang.c (builtin_m2_type): Likewise.
1725         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1726         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1727         (m32r_linux_supply_gregset): Likewise.
1728         (m32r_linux_collect_gregset): Likewise.
1729         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1730         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1731         * m68k-tdep.c (m68k_frame_cache): Likewise.
1732         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1733         (m68kbsd_supply_gregset): Likewise.
1734         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1735         * m88k-tdep.c (m88k_frame_cache): Likewise.
1736         (m88k_supply_gregset): Likewise.
1737
1738 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1739
1740         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1741         to allocation result assignment.
1742         * ada-exp.y (write_object_renaming): Likewise.
1743         (write_ambiguous_var): Likewise.
1744         (ada_nget_field_index): Likewise.
1745         (write_var_or_type): Likewise.
1746         * ada-lang.c (ada_decode_symbol): Likewise.
1747         (ada_value_assign): Likewise.
1748         (value_pointer): Likewise.
1749         (cache_symbol): Likewise.
1750         (add_nonlocal_symbols): Likewise.
1751         (ada_name_for_lookup): Likewise.
1752         (symbol_completion_add): Likewise.
1753         (ada_to_fixed_type_1): Likewise.
1754         (ada_get_next_arg): Likewise.
1755         (defns_collected): Likewise.
1756         * ada-lex.l (processId): Likewise.
1757         (processString): Likewise.
1758         * ada-tasks.c (read_known_tasks_array): Likewise.
1759         (read_known_tasks_list): Likewise.
1760         * ada-typeprint.c (decoded_type_name): Likewise.
1761         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1762         * amd64-tdep.c (amd64_push_arguments): Likewise.
1763         (amd64_displaced_step_copy_insn): Likewise.
1764         (amd64_classify_insn_at): Likewise.
1765         (amd64_relocate_instruction): Likewise.
1766         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1767         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1768         (initialize_current_architecture): Likewise.
1769         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1770         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1771         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1772         (arm_push_dummy_call): Likewise.
1773         (extend_buffer_earlier): Likewise.
1774         (arm_adjust_breakpoint_address): Likewise.
1775         (arm_skip_stub): Likewise.
1776         * auto-load.c (filename_is_in_pattern): Likewise.
1777         (maybe_add_script_file): Likewise.
1778         (maybe_add_script_text): Likewise.
1779         (auto_load_objfile_script_1): Likewise.
1780         * auxv.c (ld_so_xfer_auxv): Likewise.
1781         * ax-general.c (new_agent_expr): Likewise.
1782         (grow_expr): Likewise.
1783         (ax_reg_mask): Likewise.
1784         * bcache.c (bcache_full): Likewise.
1785         * breakpoint.c (program_breakpoint_here_p): Likewise.
1786         * btrace.c (parse_xml_raw): Likewise.
1787         * build-id.c (build_id_to_debug_bfd): Likewise.
1788         * buildsym.c (end_symtab_with_blockvector): Likewise.
1789         * c-exp.y (string_exp): Likewise.
1790         (qualified_name): Likewise.
1791         (write_destructor_name): Likewise.
1792         (operator_stoken): Likewise.
1793         (parse_number): Likewise.
1794         (scan_macro_expansion): Likewise.
1795         (yylex): Likewise.
1796         (c_print_token): Likewise.
1797         * c-lang.c (c_get_string): Likewise.
1798         (emit_numeric_character): Likewise.
1799         * charset.c (wchar_iterate): Likewise.
1800         * cli/cli-cmds.c (complete_command): Likewise.
1801         (make_command): Likewise.
1802         * cli/cli-dump.c (restore_section_callback): Likewise.
1803         (restore_binary_file): Likewise.
1804         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1805         * cli/cli-script.c (execute_control_command): Likewise.
1806         * cli/cli-setshow.c (do_set_command): Likewise.
1807         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1808         (read_pe_exported_syms): Likewise.
1809         * coffread.c (coff_read_struct_type): Likewise.
1810         (coff_read_enum_type): Likewise.
1811         * common/btrace-common.c (btrace_data_append): Likewise.
1812         * common/buffer.c (buffer_grow): Likewise.
1813         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1814         * common/format.c (parse_format_string): Likewise.
1815         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1816         * common/xml-utils.c (xml_escape_text): Likewise.
1817         * compile/compile-object-load.c (copy_sections): Likewise.
1818         (compile_object_load): Likewise.
1819         * compile/compile-object-run.c (compile_object_run): Likewise.
1820         * completer.c (filename_completer): Likewise.
1821         * corefile.c (read_memory_typed_address): Likewise.
1822         (write_memory_unsigned_integer): Likewise.
1823         (write_memory_signed_integer): Likewise.
1824         (complete_set_gnutarget): Likewise.
1825         * corelow.c (get_core_register_section): Likewise.
1826         * cp-name-parser.y (d_grab): Likewise.
1827         (allocate_info): Likewise.
1828         (cp_new_demangle_parse_info): Likewise.
1829         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1830         (cp_lookup_symbol_in_namespace): Likewise.
1831         (lookup_namespace_scope): Likewise.
1832         (find_symbol_in_baseclass): Likewise.
1833         (cp_lookup_nested_symbol): Likewise.
1834         (cp_lookup_transparent_type_loop): Likewise.
1835         * cp-support.c (copy_string_to_obstack): Likewise.
1836         (make_symbol_overload_list): Likewise.
1837         (make_symbol_overload_list_namespace): Likewise.
1838         (make_symbol_overload_list_adl_namespace): Likewise.
1839         (first_component_command): Likewise.
1840         * cp-valprint.c (cp_print_value): Likewise.
1841         * ctf.c (ctf_xfer_partial): Likewise.
1842         * d-exp.y (StringExp): Likewise.
1843         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1844         (lookup_module_scope): Likewise.
1845         (find_symbol_in_baseclass): Likewise.
1846         (d_lookup_nested_symbol): Likewise.
1847         * dbxread.c (find_stab_function_addr): Likewise.
1848         (read_dbx_symtab): Likewise.
1849         (dbx_end_psymtab): Likewise.
1850         (cp_set_block_scope): Likewise.
1851         * dcache.c (dcache_alloc): Likewise.
1852         * demangle.c (_initialize_demangler): Likewise.
1853         * dicos-tdep.c (dicos_load_module_p): Likewise.
1854         * dictionary.c (dict_create_hashed_expandable): Likewise.
1855         (dict_create_linear_expandable): Likewise.
1856         (expand_hashtable): Likewise.
1857         (add_symbol_linear_expandable): Likewise.
1858         * dwarf2-frame.c (add_cie): Likewise.
1859         (add_fde): Likewise.
1860         (dwarf2_build_frame_info): Likewise.
1861         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1862         (dwarf_expr_fetch_address): Likewise.
1863         (add_piece): Likewise.
1864         (execute_stack_op): Likewise.
1865         * dwarf2loc.c (chain_candidate): Likewise.
1866         (dwarf_entry_parameter_to_value): Likewise.
1867         (read_pieced_value): Likewise.
1868         (write_pieced_value): Likewise.
1869         * dwarf2read.c (dwarf2_read_section): Likewise.
1870         (add_type_unit): Likewise.
1871         (read_comp_units_from_section): Likewise.
1872         (fixup_go_packaging): Likewise.
1873         (dwarf2_compute_name): Likewise.
1874         (dwarf2_physname): Likewise.
1875         (create_dwo_unit_in_dwp_v1): Likewise.
1876         (create_dwo_unit_in_dwp_v2): Likewise.
1877         (read_func_scope): Likewise.
1878         (read_call_site_scope): Likewise.
1879         (dwarf2_attach_fields_to_type): Likewise.
1880         (process_structure_scope): Likewise.
1881         (mark_common_block_symbol_computed): Likewise.
1882         (read_common_block): Likewise.
1883         (abbrev_table_read_table): Likewise.
1884         (guess_partial_die_structure_name): Likewise.
1885         (fixup_partial_die): Likewise.
1886         (add_file_name): Likewise.
1887         (dwarf2_const_value_data): Likewise.
1888         (dwarf2_const_value_attr): Likewise.
1889         (build_error_marker_type): Likewise.
1890         (guess_full_die_structure_name): Likewise.
1891         (anonymous_struct_prefix): Likewise.
1892         (typename_concat): Likewise.
1893         (dwarf2_canonicalize_name): Likewise.
1894         (dwarf2_name): Likewise.
1895         (write_constant_as_bytes): Likewise.
1896         (dwarf2_fetch_constant_bytes): Likewise.
1897         (copy_string): Likewise.
1898         (parse_macro_definition): Likewise.
1899         * elfread.c (elf_symfile_segments): Likewise.
1900         (elf_rel_plt_read): Likewise.
1901         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1902         (elf_gnu_ifunc_resolve_by_got): Likewise.
1903         (elf_read_minimal_symbols): Likewise.
1904         (elf_gnu_ifunc_record_cache): Likewise.
1905         * event-top.c (top_level_prompt): Likewise.
1906         (command_line_handler): Likewise.
1907         * exec.c (resize_section_table): Likewise.
1908         * expprint.c (print_subexp_standard): Likewise.
1909         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1910         * findcmd.c (parse_find_args): Likewise.
1911         * findvar.c (address_from_register): Likewise.
1912         * frame.c (get_prev_frame_always): Likewise.
1913         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1914         (get_section_descriptor): Likewise.
1915         * gdb_obstack.c (obconcat): Likewise.
1916         (obstack_strdup): Likewise.
1917         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1918         (create_set_type): Likewise.
1919         (lookup_unsigned_typename): Likewise.
1920         (lookup_signed_typename): Likewise.
1921         (resolve_dynamic_union): Likewise.
1922         (resolve_dynamic_struct): Likewise.
1923         (add_dyn_prop): Likewise.
1924         (copy_dynamic_prop_list): Likewise.
1925         (arch_flags_type): Likewise.
1926         (append_composite_type_field_raw): Likewise.
1927         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1928         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1929         * go-exp.y (string_exp): Likewise.
1930         * go-lang.c (go_demangle): Likewise.
1931         * guile/guile.c (compute_scheme_string): Likewise.
1932         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1933         (gdbscm_canonicalize_command_name): Likewise.
1934         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1935         (ioscm_init_memory_port): Likewise.
1936         (ioscm_reinit_memory_port): Likewise.
1937         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1938         (gdbscm_gc_dup_argv): Likewise.
1939         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1940         * hppa-tdep.c (internalize_unwinds): Likewise.
1941         (read_unwind_info): Likewise.
1942         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1943         (windows_core_xfer_shared_libraries): Likewise.
1944         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1945         (i386_stap_parse_special_token_triplet): Likewise.
1946         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1947         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1948         * inf-child.c (inf_child_fileio_readlink): Likewise.
1949         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1950         (inf_ptrace_store_register): Likewise.
1951         * infrun.c (follow_exec): Likewise.
1952         (displaced_step_prepare_throw): Likewise.
1953         (save_stop_context): Likewise.
1954         (save_infcall_suspend_state): Likewise.
1955         * jit.c (jit_read_descriptor): Likewise.
1956         (jit_read_code_entry): Likewise.
1957         (jit_symtab_line_mapping_add_impl): Likewise.
1958         (finalize_symtab): Likewise.
1959         (jit_unwind_reg_get_impl): Likewise.
1960         * jv-exp.y (QualifiedName): Likewise.
1961         * jv-lang.c (get_java_utf8_name): Likewise.
1962         (type_from_class): Likewise.
1963         (java_demangle_type_signature): Likewise.
1964         (java_class_name_from_physname): Likewise.
1965         * jv-typeprint.c (java_type_print_base): Likewise.
1966         * jv-valprint.c (java_value_print): Likewise.
1967         * language.c (add_language): Likewise.
1968         * linespec.c (add_sal_to_sals_basic): Likewise.
1969         (add_sal_to_sals): Likewise.
1970         (decode_objc): Likewise.
1971         (find_linespec_symbols): Likewise.
1972         * linux-fork.c (fork_save_infrun_state): Likewise.
1973         * linux-nat.c (linux_nat_detach): Likewise.
1974         (linux_nat_fileio_readlink): Likewise.
1975         * linux-record.c (record_linux_sockaddr): Likewise.
1976         (record_linux_msghdr): Likewise.
1977         (Do): Likewise.
1978         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1979         (linux_collect_regset_section_cb): Likewise.
1980         (linux_get_siginfo_data): Likewise.
1981         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1982         (try_thread_db_load_from_dir): Likewise.
1983         (thread_db_load_search): Likewise.
1984         (info_auto_load_libthread_db): Likewise.
1985         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1986         (m32c_m16c_pointer_to_address): Likewise.
1987         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1988         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1989         * machoread.c (macho_check_dsym): Likewise.
1990         * macroexp.c (resize_buffer): Likewise.
1991         (gather_arguments): Likewise.
1992         (maybe_expand): Likewise.
1993         * macrotab.c (new_macro_key): Likewise.
1994         (new_source_file): Likewise.
1995         (new_macro_definition): Likewise.
1996         * mdebugread.c (parse_symbol): Likewise.
1997         (parse_type): Likewise.
1998         (parse_partial_symbols): Likewise.
1999         (psymtab_to_symtab_1): Likewise.
2000         * mem-break.c (default_memory_insert_breakpoint): Likewise.
2001         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2002         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2003         (mi_cmd_data_read_memory_bytes): Likewise.
2004         (mi_cmd_data_write_memory_bytes): Likewise.
2005         (mi_cmd_trace_frame_collected): Likewise.
2006         * mi/mi-parse.c (mi_parse_argv): Likewise.
2007         (mi_parse): Likewise.
2008         * minidebug.c (lzma_open): Likewise.
2009         (lzma_pread): Likewise.
2010         * mips-tdep.c (mips_read_fp_register_single): Likewise.
2011         (mips_print_fp_register): Likewise.
2012         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2013         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2014         * mt-tdep.c (mt_register_name): Likewise.
2015         (mt_registers_info): Likewise.
2016         (mt_push_dummy_call): Likewise.
2017         * namespace.c (add_using_directive): Likewise.
2018         * nat/linux-btrace.c (perf_event_read): Likewise.
2019         (linux_enable_bts): Likewise.
2020         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2021         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2022         * nto-tdep.c (nto_find_and_open_solib): Likewise.
2023         (nto_parse_redirection): Likewise.
2024         * objc-lang.c (objc_demangle): Likewise.
2025         (find_methods): Likewise.
2026         * objfiles.c (get_objfile_bfd_data): Likewise.
2027         (set_objfile_main_name): Likewise.
2028         (allocate_objfile): Likewise.
2029         (objfile_relocate): Likewise.
2030         (update_section_map): Likewise.
2031         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2032         * p-exp.y (exp): Likewise.
2033         (yylex): Likewise.
2034         * p-valprint.c (pascal_object_print_value): Likewise.
2035         * parse.c (initialize_expout): Likewise.
2036         (mark_completion_tag): Likewise.
2037         (copy_name): Likewise.
2038         (parse_float): Likewise.
2039         (type_stack_reserve): Likewise.
2040         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2041         (ppu2spu_prev_register): Likewise.
2042         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2043         * printcmd.c (printf_wide_c_string): Likewise.
2044         (printf_pointer): Likewise.
2045         * probe.c (parse_probes): Likewise.
2046         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2047         (cmdpy_init): Likewise.
2048         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2049         * python/py-symtab.c (set_sal): Likewise.
2050         * python/py-unwind.c (pyuw_sniffer): Likewise.
2051         * python/python.c (python_interactive_command): Likewise.
2052         (compute_python_string): Likewise.
2053         * ravenscar-thread.c (get_running_thread_id): Likewise.
2054         * record-full.c (record_full_exec_insn): Likewise.
2055         (record_full_core_open_1): Likewise.
2056         * regcache.c (regcache_raw_read_signed): Likewise.
2057         (regcache_raw_read_unsigned): Likewise.
2058         (regcache_cooked_read_signed): Likewise.
2059         (regcache_cooked_read_unsigned): Likewise.
2060         * remote-fileio.c (remote_fileio_func_open): Likewise.
2061         (remote_fileio_func_rename): Likewise.
2062         (remote_fileio_func_unlink): Likewise.
2063         (remote_fileio_func_stat): Likewise.
2064         (remote_fileio_func_system): Likewise.
2065         * remote-mips.c (mips_xfer_memory): Likewise.
2066         (mips_load_srec): Likewise.
2067         (pmon_end_download): Likewise.
2068         * remote.c (new_remote_state): Likewise.
2069         (map_regcache_remote_table): Likewise.
2070         (remote_register_number_and_offset): Likewise.
2071         (init_remote_state): Likewise.
2072         (get_memory_packet_size): Likewise.
2073         (remote_pass_signals): Likewise.
2074         (remote_program_signals): Likewise.
2075         (remote_start_remote): Likewise.
2076         (remote_check_symbols): Likewise.
2077         (remote_query_supported): Likewise.
2078         (extended_remote_attach): Likewise.
2079         (process_g_packet): Likewise.
2080         (store_registers_using_G): Likewise.
2081         (putpkt_binary): Likewise.
2082         (read_frame): Likewise.
2083         (compare_sections_command): Likewise.
2084         (remote_hostio_pread): Likewise.
2085         (remote_hostio_readlink): Likewise.
2086         (remote_file_put): Likewise.
2087         (remote_file_get): Likewise.
2088         (remote_pid_to_exec_file): Likewise.
2089         (_initialize_remote): Likewise.
2090         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2091         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2092         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2093         (bfd_uses_spe_extensions): Likewise.
2094         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2095         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2096         * solib-dsbt.c (decode_loadmap): Likewise.
2097         (fetch_loadmap): Likewise.
2098         (scan_dyntag): Likewise.
2099         (enable_break): Likewise.
2100         (dsbt_relocate_main_executable): Likewise.
2101         * solib-frv.c (fetch_loadmap): Likewise.
2102         (enable_break2): Likewise.
2103         (frv_relocate_main_executable): Likewise.
2104         * solib-spu.c (spu_relocate_main_executable): Likewise.
2105         (spu_bfd_open): Likewise.
2106         * solib-svr4.c (lm_info_read): Likewise.
2107         (read_program_header): Likewise.
2108         (find_program_interpreter): Likewise.
2109         (scan_dyntag): Likewise.
2110         (elf_locate_base): Likewise.
2111         (open_symbol_file_object): Likewise.
2112         (read_program_headers_from_bfd): Likewise.
2113         (svr4_relocate_main_executable): Likewise.
2114         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2115         * solib.c (solib_find_1): Likewise.
2116         (exec_file_find): Likewise.
2117         (solib_find): Likewise.
2118         * source.c (openp): Likewise.
2119         (print_source_lines_base): Likewise.
2120         (forward_search_command): Likewise.
2121         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2122         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2123         (spu_get_overlay_table): Likewise.
2124         * stabsread.c (patch_block_stabs): Likewise.
2125         (define_symbol): Likewise.
2126         (again:): Likewise.
2127         (read_member_functions): Likewise.
2128         (read_one_struct_field): Likewise.
2129         (read_enum_type): Likewise.
2130         (common_block_start): Likewise.
2131         * stack.c (read_frame_arg): Likewise.
2132         (backtrace_command): Likewise.
2133         * stap-probe.c (stap_parse_register_operand): Likewise.
2134         * symfile.c (syms_from_objfile_1): Likewise.
2135         (find_separate_debug_file): Likewise.
2136         (load_command): Likewise.
2137         (load_progress): Likewise.
2138         (load_section_callback): Likewise.
2139         (reread_symbols): Likewise.
2140         (add_filename_language): Likewise.
2141         (allocate_compunit_symtab): Likewise.
2142         (read_target_long_array): Likewise.
2143         (simple_read_overlay_table): Likewise.
2144         * symtab.c (symbol_set_names): Likewise.
2145         (resize_symbol_cache): Likewise.
2146         (rbreak_command): Likewise.
2147         (completion_list_add_name): Likewise.
2148         (completion_list_objc_symbol): Likewise.
2149         (add_filename_to_list): Likewise.
2150         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2151         * target-memory.c (target_write_memory_blocks): Likewise.
2152         * target.c (target_read_string): Likewise.
2153         (read_whatever_is_readable): Likewise.
2154         (target_read_alloc_1): Likewise.
2155         (simple_search_memory): Likewise.
2156         (target_fileio_read_alloc_1): Likewise.
2157         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2158         * top.c (command_line_input): Likewise.
2159         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2160         * tracefile.c (tracefile_fetch_registers): Likewise.
2161         * tracepoint.c (add_memrange): Likewise.
2162         (init_collection_list): Likewise.
2163         (add_aexpr): Likewise.
2164         (trace_dump_actions): Likewise.
2165         (parse_trace_status): Likewise.
2166         (parse_tracepoint_definition): Likewise.
2167         (parse_tsv_definition): Likewise.
2168         (parse_static_tracepoint_marker_definition): Likewise.
2169         * tui/tui-file.c (tui_sfileopen): Likewise.
2170         (tui_file_adjust_strbuf): Likewise.
2171         * tui/tui-io.c (tui_expand_tabs): Likewise.
2172         * tui/tui-source.c (tui_set_source_content): Likewise.
2173         * typeprint.c (find_global_typedef): Likewise.
2174         * ui-file.c (do_ui_file_xstrdup): Likewise.
2175         (ui_file_obsavestring): Likewise.
2176         (mem_file_write): Likewise.
2177         * utils.c (make_hex_string): Likewise.
2178         (get_regcomp_error): Likewise.
2179         (puts_filtered_tabular): Likewise.
2180         (gdb_realpath_keepfile): Likewise.
2181         (ldirname): Likewise.
2182         (gdb_bfd_errmsg): Likewise.
2183         (substitute_path_component): Likewise.
2184         * valops.c (search_struct_method): Likewise.
2185         (find_oload_champ_namespace_loop): Likewise.
2186         * valprint.c (print_decimal_chars): Likewise.
2187         (read_string): Likewise.
2188         (generic_emit_char): Likewise.
2189         * varobj.c (varobj_delete): Likewise.
2190         (varobj_value_get_print_value): Likewise.
2191         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2192         * windows-tdep.c (display_one_tib): Likewise.
2193         * xcoffread.c (read_xcoff_symtab): Likewise.
2194         (process_xcoff_symbol): Likewise.
2195         (swap_sym): Likewise.
2196         (scan_xcoff_symtab): Likewise.
2197         (xcoff_initial_scan): Likewise.
2198         * xml-support.c (gdb_xml_end_element): Likewise.
2199         (xml_process_xincludes): Likewise.
2200         (xml_fetch_content_from_file): Likewise.
2201         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2202         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2203
2204 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2205
2206         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2207         instead of builtin_func_ptr.
2208         (ft32_pointer_to_address): New function.
2209         (ft32_address_class_type_flags): New function.
2210         (ft32_address_class_type_flags_to_name): New function.
2211         (ft32_address_class_name_to_type_flags): New function.
2212         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2213         set_gdbarch_pointer_to_address,
2214         set_gdbarch_address_class_type_flags
2215         set_gdbarch_address_class_name_to_type_flags,
2216         and set_gdbarch_address_class_type_flags_to_name.
2217         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2218
2219 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2220
2221         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2222         value is a reference, actually dereference it in order to get
2223         the underlying value.
2224
2225 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2226
2227         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2228
2229 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2230
2231         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2232         * linespec.c (linespec_lexer_lex_string): Same.
2233
2234 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2235
2236         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2237
2238 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2239
2240         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2241         variable.  Call aarch64_decode_adr instead of
2242         aarch64_decode_adrp.
2243         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2244         (aarch64_decode_adr): New function declaration.
2245         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2246         (aarch64_decode_adr): New function, factored out from
2247         aarch64_decode_adrp to decode both adr and adrp instructions.
2248
2249 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2250
2251         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2252         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2253         (aarch64-insn.o): New rule.
2254         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2255         (aarch64*-*-linux*): Likewise.
2256         * arch/aarch64-insn.c: New file.
2257         * arch/aarch64-insn.h: New file.
2258         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2259         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2260         arch/aarch64-insn.h.
2261         (decode_add_sub_imm): Rename to ...
2262         (aarch64_decode_add_sub_imm): ... this.
2263         (decode_adrp): Rename to ...
2264         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2265         Declare in arch/aarch64-insn.h.
2266         (decode_b): Rename to ...
2267         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2268         Declare in arch/aarch64-insn.h.
2269         (decode_bcond): Rename to ...
2270         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2271         Declare in arch/aarch64-insn.h.
2272         (decode_br): Rename to ...
2273         (aarch64_decode_br): ... this.
2274         (decode_cb): Rename to ...
2275         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2276         Declare in arch/aarch64-insn.h.
2277         (decode_eret): Rename to ...
2278         (aarch64_decode_eret): ... this.
2279         (decode_movz): Rename to ...
2280         (aarch64_decode_movz): ... this.
2281         (decode_orr_shifted_register_x): Rename to ...
2282         (aarch64_decode_orr_shifted_register_x): ... this.
2283         (decode_ret): Rename to ...
2284         (aarch64_decode_ret): ... this.
2285         (decode_stp_offset): Rename to ...
2286         (aarch64_decode_stp_offset): ... this.
2287         (decode_stp_offset_wb): Rename to ...
2288         (aarch64_decode_stp_offset_wb): ... this.
2289         (decode_stur): Rename to ...
2290         (aarch64_decode_stur): ... this.
2291         (decode_tb): Rename to ...
2292         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2293         Declare in arch/aarch64-insn.h.
2294         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2295
2296 2015-09-20  Doug Evans  <xdje42@gmail.com>
2297
2298         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2299
2300 2015-09-20  Doug Evans  <xdje42@gmail.com>
2301
2302         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2303         variable name that collides with a parameter.
2304
2305 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2306
2307         * dwarf2loc.c (locexpr_get_frame_base): Renames
2308         block_op_get_frame_base.
2309         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2310         block_op_get_frame_base by reference to locexpr_get_frame_base.
2311         (loclist_get_frame_base): New function, near identical copy of
2312         locexpr_get_frame_base.
2313         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2314         block_op_get_frame_base by reference to loclist_get_frame_base.
2315
2316 2015-09-19  Doug Evans  <xdje42@gmail.com>
2317
2318         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2319         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2320
2321 2015-09-18  Doug Evans  <xdje42@gmail.com>
2322
2323         * linux-thread-db.c (record_thread): Return the created thread.
2324         (thread_from_lwp): Likewise.
2325         (thread_db_get_thread_local_address): Update.
2326
2327 2015-09-18  Doug Evans  <xdje42@gmail.com>
2328
2329         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2330         move only member demangled_name up.  All uses updated.
2331
2332 2015-09-18  Doug Evans  <xdje42@gmail.com>
2333
2334         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2335         kind of minimal symbol in the error message.
2336         * objfiles.c (objfile_flavour_name): New function.
2337         * objfiles.h (objfile_flavour_name): Declare.
2338
2339 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2340
2341         * nat/aarch64-linux.c: Include elf/common.h,
2342         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2343         (aarch64_ps_get_thread_area): New function.
2344         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2345         (aarch64_ps_get_thread_area): Declare.
2346         * aarch64-linux-nat.c (ps_get_thread_area): Call
2347         aarch64_ps_get_thread_area.
2348
2349 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2350
2351         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2352
2353 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2354
2355         * NEWS: Announce new scheduler-locking mode.
2356         * infrun.c (schedlock_replay): New.
2357         (scheduler_enums): Add schedlock_replay.
2358         (scheduler_mode): Change default to schedlock_replay.
2359         (user_visible_resume_ptid): Handle schedlock_replay.
2360         (clear_proceed_status_thread): Stop replaying if resumed thread is
2361         not replaying.
2362         (schedlock_applies): Handle schedlock_replay.
2363         (_initialize_infrun): Document new scheduler-locking mode.
2364         * record-btrace.c (record_btrace_resume): Remove code to stop other
2365         threads when not replaying the resumed thread.
2366
2367 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2368
2369         * record-btrace.c ((record_btrace_will_replay): New.
2370         (init_record_btrace_ops): Initialize to_record_will_replay.
2371         * record-full.c ((record_full_will_replay): New.
2372         (init_record_full_ops): Initialize to_record_will_replay.
2373         * target-delegates.c: Regenerated.
2374         * target.c (target_record_will_replay): New.
2375         * target.h (struct target_ops) <to_record_will_replay>: New.
2376         (target_record_will_replay): New.
2377
2378 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2379
2380         * record-btrace.c (record_btrace_resume): Call
2381         target_record_stop_replaying.
2382         (record_btrace_stop_replaying_all): New.
2383         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2384         * record-full.c (record_full_stop_replaying): New.
2385         (init_record_full_ops ): Initialize to_record_stop_replaying.
2386         * target-delegates.c: Regenerated.
2387         * target.c (target_record_stop_replaying): New.
2388         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2389         (target_record_stop_replaying): New.
2390
2391 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2392
2393         * record-btrace.c (record_btrace_xfer_partial)
2394         (record_btrace_store_registers, record_btrace_prepare_to_store):
2395         Call record_btrace_is_replaying with inferior_ptid instead of
2396         minus_one_ptid.
2397         (record_btrace_store_registers): Change error message.
2398
2399 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2400
2401         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2402         Update users to pass minus_one_ptid.
2403         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2404         * record.c (cmd_record_delete): Pass inferior_ptid to
2405         target_record_is_replaying.
2406         * target-delegates.c: Regenerated.
2407         * target.c (target_record_is_replaying): Add ptid argument.
2408         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2409         argument.
2410         (target_record_is_replaying): Add ptid argument.
2411
2412 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2413
2414         * record-btrace.c (record_btrace_open): Remove non_stop check.
2415         * NEWS: Announce that record btrace supports non-stop mode.
2416
2417 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2418
2419         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2420         in the TARKET_WAITKIND_NO_HISTORY case.
2421
2422 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2423
2424         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2425         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2426
2427 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2428
2429         * record-btrace.c (get_thread_current_frame): New.
2430         (record_btrace_start_replaying): Call get_thread_current_frame.
2431
2432 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2433
2434         * record-btrace.c (record_btrace_resume_thread): A move request
2435         overwrites a previous move request.
2436         (record_btrace_find_resume_thread): Removed.
2437         (record_btrace_resume): Resume all requested threads.
2438
2439 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2440
2441         * record-btrace.c: Include vec.h.
2442         (record_btrace_find_thread_to_move): Removed.
2443         (btrace_step_no_resumed, btrace_step_again)
2444         (record_btrace_stop_replaying_at_end): New.
2445         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2446         (record_btrace_single_step_forward): Remove calls to
2447         record_btrace_stop_replaying.
2448         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2449         BTHR_RCONT.  Keep threads at the end of their history moving.
2450         (record_btrace_wait): Call record_btrace_step_thread for all threads
2451         until one reports an event.  Call record_btrace_stop_replaying_at_end
2452         for the eventing thread.
2453
2454 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2455
2456         * record-btrace.c (record_btrace_single_step_forward): Return
2457         NO_HISTORY if a step brings us to the end of the execution history.
2458
2459 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2460
2461         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2462         to ...
2463         (record_btrace_single_step_forward): ... here and
2464         (record_btrace_single_step_backward): ... here.
2465
2466 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2467
2468         * record-btrace.c (btrace_step_spurious)
2469         (record_btrace_single_step_forward)
2470         (record_btrace_single_step_backward): New.
2471         (record_btrace_step_thread): Call record_btrace_single_step_forward
2472         and record_btrace_single_step_backward.
2473
2474 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2475
2476         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2477         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2478
2479 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2480
2481         * record-btrace.c (btrace_thread_flag_to_str)
2482         (record_btrace_cancel_resume): New.
2483         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2484         (record_btrace_resume): Print execution direction.
2485         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2486         (record_btrace_wait): Call record_btrace_cancel_resume.
2487
2488 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2489
2490         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2491         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2492         (record_btrace_find_thread_to_move): Also accept threads that have
2493         BTHR_STOP set.
2494         (btrace_step_stopped_on_request, record_btrace_stop): New.
2495         (record_btrace_step_thread): Support BTHR_STOP.
2496         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2497         (init_record_btrace_ops): Initialize to_stop.
2498
2499 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2500
2501         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2502         target_is_non_stop_p ().
2503
2504 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2505
2506         * ada-typeprint.c (print_array_type): Do not describe arrays as
2507         packed when they embed dynamic elements.
2508
2509 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2510
2511         * symtab.h (address_class): Document that TLS variables
2512         are handled by LOC_UNRESOLVED.
2513         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2514         * printcmd.c (address_info): Don't relocate TLS variables.
2515
2516 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2517
2518         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2519         (decode_adrp): Likewise.
2520         (decode_b): Likewise.
2521         (decode_bcond): Likewise.
2522         (decode_br): Likewise.
2523         (decode_cb): Likewise.
2524         (decode_eret): Likewise.
2525         (decode_movz): Likewise.
2526         (decode_orr_shifted_register_x): Likewise.
2527         (decode_ret): Likewise.
2528         (decode_stp_offset): Likewise.
2529         (decode_stp_offset_wb): Likewise.
2530         (decode_stur): Likewise.
2531         (decode_tb): Likewise.
2532         (aarch64_analyze_prologue): Likewise.
2533         (pass_in_x): Likewise.
2534         (pass_in_v): Likewise.
2535         (pass_on_stack): Likewise.
2536         (aarch64_push_dummy_call): Likewise.
2537         (aarch64_extract_return_value): Likewise.
2538         (aarch64_store_return_value): Likewise.
2539         (aarch64_return_value): Likewise.
2540         (aarch64_record_asimd_load_store): Likewise.
2541         (aarch64_record_load_store): Likewise.
2542         (aarch64_record_data_proc_simd_fp): Likewise.
2543
2544 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2545
2546         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2547         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2548         (ppc64_skip_trampoline_code_1): ... here.
2549         (ppc64_skip_trampoline_code): New wrapper function.
2550         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2551
2552 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2553
2554         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2555         function.
2556         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2557         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2558         if target_can_do_single_step returns 1.
2559         * remote.c (struct vCont_action_support) <s, S>: New fields.
2560         (PACKET_vContSupported): New enum.
2561         (remote_protocol_features): New element for vContSupported.
2562         (remote_query_supported): Append "vContSupported+".
2563         (remote_vcont_probe): Remove support_s and support_S, use
2564         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2565         vCont packet if c and C actions are not supported.
2566         (remote_can_do_single_step): New function.
2567         (init_remote_ops): Install it to to_can_do_single_step.
2568         (_initialize_remote): Call add_packet_config_cmd.
2569         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2570         (target_can_do_single_step): New macro.
2571         * target-delegates.c: Re-generated.
2572
2573 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2574
2575         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2576         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2577         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2578         New function.
2579         (aarch64_siginfo_from_compat_siginfo): New function.
2580         * nat/aarch64-linux.h: Include signal.h.
2581         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2582         (compat_timer_t, compat_clock_t): Likewise.
2583         (struct compat_timeval): New.
2584         (union compat_sigval): New.
2585         (struct compat_siginfo): New.
2586         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2587         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2588         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2589         (cpt_si_band, cpt_si_fd): Likewise.
2590
2591 2015-09-14  Pedro Alves  <palves@redhat.com>
2592
2593         * infrun.c (current_stop_id): New global.
2594         (get_stop_id, new_stop_id): New functions.
2595         (fetch_inferior_event): Handle normal_stop proceeding the target.
2596         (struct stop_context): New.
2597         (save_stop_context, release_stop_context_cleanup)
2598         (stop_context_changed): New functions.
2599         (normal_stop): Return true if the hook-stop changes the stop
2600         context.
2601         * infrun.h (get_stop_id): Declare.
2602         (normal_stop): Now returns int.  Add documentation.
2603
2604 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2605
2606         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2607         comment.  Handle packed arrays.
2608
2609 2015-09-14  Pedro Alves  <palves@redhat.com>
2610
2611         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2612         mention of maint set/show target-non-stop.
2613
2614 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2615
2616         * NEWS: Announce new remote packets for the exec-events
2617         feature and the exec-events feature and associated commands.
2618
2619 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2620
2621         * remote.c (remote_exec_event_p): New function.
2622         (remote_insert_exec_catchpoint): New function.
2623         (remote_remove_exec_catchpoint): New function.
2624         (init_extended_remote_ops): Initialize extended_remote_ops
2625         members to_insert_exec_catchpoint and
2626         to_remove_exec_catchpoint.
2627
2628 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2629             Luis Machado  <lgustavo@codesourcery.com>
2630
2631         * infrun.c (follow_exec): Use process-style ptid for
2632         exec message.  Call add_inferior_with_spaces and
2633         target_follow_exec.
2634         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2635         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2636         * remote.c (remote_pspace_data): New static variable.
2637         (remote_pspace_data_cleanup): New function.
2638         (get_remote_exec_file): New function.
2639         (set_remote_exec_file_1): New function.
2640         (set_remote_exec_file): New function.
2641         (show_remote_exec_file): New function.
2642         (remote_exec_file): Delete static variable.
2643         (anonymous enum) <PACKET_exec_event_feature>: New
2644         enumeration constant.
2645         (remote_protocol_features): Add entry for exec-events feature.
2646         (remote_query_supported): Add client side of qSupported query
2647         for exec-events feature.
2648         (remote_follow_exec): New function.
2649         (remote_parse_stop_reply): Handle 'exec' stop reason.
2650         (extended_remote_run, extended_remote_create_inferior): Call
2651         get_remote_exec_file and set_remote_exec_file_1.
2652         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2653         member.
2654         (_initialize_remote): Call
2655         register_program_space_data_with_cleanup.  Call
2656         add_packet_config_cmd for remote exec-events feature.
2657         Modify call to add_setshow_string_noescape_cmd for exec-file
2658         to use new functions set_remote_exec_file and
2659         show_remote_exec_file.
2660         * target-debug.h, target-delegates.c: Regenerated.
2661         * target.c (target_follow_exec): New function.
2662         * target.h (struct target_ops) <to_follow_exec>: New member.
2663         (target_follow_exec): Declare new function.
2664
2665 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2666
2667         * aarch64-tdep.c (decode_cb): Move up comment describing the
2668         encoding.
2669         (decode_tb): Fix a typo in comment above the function.  Move up
2670         comment describing the encoding.
2671
2672 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2673
2674         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2675
2676 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2677
2678         PR gdb/18947
2679         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2680         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2681
2682 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2683
2684         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2685         operations.
2686
2687 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2688
2689         * ada-lang.c (ada_search_struct_field): Constify parameters
2690         and/or variables..
2691         (xget_renaming_scope): Likewise.
2692         (ada_is_redundant_range_encoding): Likewise.
2693         (scan_discrim_bound): Likewise.
2694         (to_fixed_range_type): Likewise.
2695
2696 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2697
2698         * breakpoint.c (download_tracepoint_locations): New local
2699         can_download_tracepoint.  Check the result of
2700         target_can_download_tracepoint and save it in
2701         can_download_tracepoint if there are tracepoints to download.
2702         * linux-nat.h (enum tribool): Move it to ...
2703         * common/common-types.h: ... here.
2704
2705 2015-09-09  Pedro Alves  <palves@redhat.com>
2706
2707         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2708         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2709
2710 2015-09-09  Pedro Alves  <palves@redhat.com>
2711
2712         * continuations.c (add_continuation, restore_thread_cleanup)
2713         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2714         (do_all_continuations_thread, do_all_continuations)
2715         (discard_all_continuations_thread_callback)
2716         (discard_all_continuations_thread, discard_all_continuations)
2717         (add_intermediate_continuation)
2718         (do_all_intermediate_continuations_thread_callback)
2719         (do_all_intermediate_continuations_thread)
2720         (do_all_intermediate_continuations)
2721         (discard_all_intermediate_continuations_thread_callback)
2722         (discard_all_intermediate_continuations_thread)
2723         (discard_all_intermediate_continuations): Delete.
2724         * continuations.h (add_continuation, do_all_continuations)
2725         (do_all_continuations_thread, discard_all_continuations)
2726         (discard_all_continuations_thread, add_intermediate_continuation)
2727         (do_all_intermediate_continuations)
2728         (do_all_intermediate_continuations_thread)
2729         (discard_all_intermediate_continuations)
2730         (discard_all_intermediate_continuations_thread): Delete
2731         declarations.
2732         * event-top.c (stdin_event_handler): Delete references to
2733         continuations.
2734         * gdbthread.h (struct thread_info): Delete continuations and
2735         intermediate_continuations fields.
2736         * inf-loop.c (inferior_event_handler): Remove references to
2737         continuations.
2738         * infrun.c (infrun_thread_stop_requested_callback): Remove
2739         references to continuations.
2740         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2741         * thread.c: Don't include "continuations.h".
2742         (clear_thread_inferior_resources): Remove references to
2743         continuations.
2744
2745 2015-09-09  Pedro Alves  <palves@redhat.com>
2746
2747         * infcall.c (struct dummy_frame_context_saver): Delete.
2748         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2749         (dummy_frame_context_saver_drop)
2750         (dummy_frame_context_saver_cleanup)
2751         (dummy_frame_context_saver_get_regs)
2752         (dummy_frame_context_saver_setup): Delete.
2753         * infcall.h (dummy_frame_context_saver_drop)
2754         (dummy_frame_context_saver_cleanup)
2755         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2756         Delete.
2757         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2758         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2759         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2760
2761 2015-09-09  Pedro Alves  <palves@redhat.com>
2762
2763         * breakpoint.c: Include "thread-fsm.h".
2764         (struct until_break_command_continuation_args): Delete.
2765         (struct until_break_fsm): New.
2766         (until_break_fsm_ops): New global.
2767         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2768         (until_break_command_continuation): Delete.
2769         (until_break_fsm_clean_up): New function.
2770         (until_break_fsm_async_reply_reason): New function.
2771         (until_break_command): Adjust to create an until_break_fsm instead
2772         of a continuation.
2773         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2774         here.
2775         * infcmd.c (struct until_next_fsm): New.
2776         (until_next_fsm_ops): New global.
2777         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2778         (until_next_continuation): Delete.
2779         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2780         functions.
2781         (until_next_command): Adjust to create a new until_next_fsm
2782         instead of a continuation.
2783
2784 2015-09-09  Pedro Alves  <palves@redhat.com>
2785
2786         * infcall.c: Include thread_fsm.h.
2787         (struct call_return_meta_info): New.
2788         (get_call_return_value): New function, factored out from
2789         call_function_by_hand_dummy.
2790         (struct call_thread_fsm): New.
2791         (call_thread_fsm_ops): New global.
2792         (new_call_thread_fsm, call_thread_fsm_should_stop)
2793         (call_thread_fsm_should_notify_stop): New functions.
2794         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2795         the thread.
2796         (call_function_by_hand_dummy): Create a new call_thread_fsm
2797         instance, associate it with the thread, and wait for the FSM to
2798         finish.  If finished successfully, fetch the function's result
2799         value out of the FSM.
2800         * infrun.c (fetch_inferior_event): If the FSM says the stop
2801         shouldn't be notified, don't call normal_stop.
2802         (maybe_remove_breakpoints): New function, factored out from ...
2803         (normal_stop): ... here.  Simplify.
2804         * infrun.h (maybe_remove_breakpoints): Declare.
2805         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2806         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2807         (thread_fsm_should_notify_stop): Declare.
2808
2809 2015-09-09  Pedro Alves  <palves@redhat.com>
2810
2811         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2812         * breakpoint.c (handle_jit_event): Print debug output.
2813         (bpstat_what): Split event callback handling to ...
2814         (bpstat_run_callbacks): ... this new function.
2815         (momentary_bkpt_print_it): No longer handle bp_finish here.
2816         * breakpoint.h (bpstat_run_callbacks): Declare.
2817         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2818         <thread_fsm>: New field.
2819         (thread_cancel_execution_command): Declare.
2820         * infcmd.c: Include thread-fsm.h.
2821         (struct step_command_fsm): New.
2822         (step_command_fsm_ops): New global.
2823         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2824         (step_1): Adjust to use step_command_fsm_prepare and
2825         prepare_one_step.
2826         (struct step_1_continuation_args): Delete.
2827         (step_1_continuation): Delete.
2828         (step_command_fsm_should_stop): New function.
2829         (step_once): Delete.
2830         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2831         (prepare_one_step): New function, based on step_once.
2832         (until_next_command): Remove step_multi reference.
2833         (struct return_value_info): New.
2834         (print_return_value): Rename to ...
2835         (print_return_value_1): ... this.  New struct return_value_info
2836         parameter.  Adjust.
2837         (print_return_value): Reimplement as wrapper around
2838         print_return_value_1.
2839         (struct finish_command_fsm): New.
2840         (finish_command_continuation): Delete.
2841         (finish_command_fsm_ops): New global.
2842         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2843         functions.
2844         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2845         New.
2846         (finish_command_continuation_free_arg): Delete.
2847         (finish_command_fsm_async_reply_reason): New.
2848         (finish_backward, finish_forward): Change symbol parameter to a
2849         finish_command_fsm.  Adjust.
2850         (finish_command): Create a finish_command_fsm.  Adjust.
2851         * infrun.c: Include "thread-fsm.h".
2852         (clear_proceed_status_thread): Delete the thread's FSM.
2853         (infrun_thread_stop_requested_callback): Cancel the thread's
2854         execution command.
2855         (clean_up_just_stopped_threads_fsms): New function.
2856         (fetch_inferior_event): Handle the event_thread's should_stop
2857         method saying the command isn't done yet.
2858         (process_event_stop_test): Run breakpoint callbacks here.
2859         (print_stop_event): Rename to ...
2860         (print_stop_location): ... this.
2861         (restore_current_uiout_cleanup): New function.
2862         (print_stop_event): Reimplement.
2863         (normal_stop): No longer notify the end_stepping_range observers
2864         here handle "step N" nor "finish" here.  No longer call
2865         print_stop_event here.
2866         * infrun.h (struct return_value_info): Forward declare.
2867         (print_return_value): Declare.
2868         (print_stop_event): Change prototype.
2869         * thread-fsm.c: New file.
2870         * thread-fsm.h: New file.
2871         * thread.c: Include "thread-fsm.h".
2872         (thread_cancel_execution_command): New function.
2873         (clear_thread_inferior_resources): Call it.
2874         * cli/cli-interp.c (cli_on_normal_stop): New function.
2875         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2876         observer.
2877         * mi/mi-interp.c: Include "thread-fsm.h".
2878         (restore_current_uiout_cleanup): Delete.
2879         (mi_on_normal_stop): If the thread has an FSM associated, and it
2880         finished, ask it for the async-reply-reason to print.  Always call
2881         print_stop_event here, regardless of the top-level interpreter.
2882         Check bpstat_what to tell whether an asynchronous breakpoint hit
2883         triggered.
2884         * tui/tui-interp.c (tui_on_normal_stop): New function.
2885         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2886
2887 2015-09-09  Pedro Alves  <palves@redhat.com>
2888
2889         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2890         check whether the target can async.
2891         * inf-loop.c (inferior_event_handler): Only call target_async if
2892         the target can async.
2893         * infcall.c: Include top.h and interps.h.
2894         (run_inferior_call): For the interpreter to sync mode while
2895         running the infcall.  Call wait_sync_command_done instead of
2896         wait_for_inferior plus normal_stop.
2897         * infcmd.c (prepare_execution_command): Don't check whether the
2898         target can async when running in the foreground.
2899         (step_1): Delete synchronous case handling.
2900         (step_once): Always install a continuation, even in sync mode.
2901         (until_next_command, finish_forward): Don't check whether the
2902         target can async.
2903         (attach_command_post_wait, notice_new_inferior): Always install a
2904         continuation, even in sync mode.
2905         * infrun.c (mark_infrun_async_event_handler): New function.
2906         (proceed): In sync mode, mark infrun's event source instead of
2907         waiting for events here.
2908         (fetch_inferior_event): If the target can't async, do a blocking
2909         wait.
2910         (prepare_to_wait): In sync mode, mark infrun's event source.
2911         (infrun_async_inferior_event_handler): No longer bail out if the
2912         target can't async.
2913         * infrun.h (mark_infrun_async_event_handler): New declaration.
2914         * linux-nat.c (linux_nat_wait_1): Remove calls to
2915         set_sigint_trap/clear_sigint_trap.
2916         (linux_nat_terminal_inferior): No longer check whether the target
2917         can async.
2918         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2919         comment.
2920         (mi_execute_command_input_handler): No longer check whether the
2921         target is async.  Update and simplify comment.
2922         * target.c (default_target_wait): New function.
2923         * target.h (struct target_ops) <to_wait>: Now defaults to
2924         default_target_wait.
2925         (default_target_wait): Declare.
2926         * top.c (wait_sync_command_done): New function, factored out from
2927         ...
2928         (maybe_wait_sync_command_done): ... this.
2929         * top.h (wait_sync_command_done): Declare.
2930         * target-delegates.c: Regenerate.
2931
2932 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2933
2934         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2935         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2936         Remove include of sys/utsname.h.
2937         (linux_determine_kernel_ptr_bits): Remove.
2938         (linux_determine_kernel_start): New.
2939         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2940         Update check.
2941         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2942         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2943         initialization.
2944         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2945         assignment.
2946
2947 2015-09-07  Pedro Alves  <palves@redhat.com>
2948
2949         * guile/guile-internal.h (as_a_scm_t_subr): New.
2950         * guile/guile.c (misc_guile_functions): Use it.
2951         * guile/scm-arch.c (arch_functions): Use it.
2952         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2953         Use it.
2954         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2955         * guile/scm-cmd.c (command_functions): Use it.
2956         * guile/scm-disasm.c (disasm_functions): Use it.
2957         * guile/scm-exception.c (exception_functions)
2958         (private_exception_functions): Use it.
2959         * guile/scm-frame.c (frame_functions)
2960         * guile/scm-gsmob.c (gsmob_functions): Use it.
2961         * guile/scm-iterator.c (iterator_functions): Use it.
2962         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2963         * guile/scm-math.c (math_functions): Use it.
2964         * guile/scm-objfile.c (objfile_functions): Use it.
2965         * guile/scm-param.c (parameter_functions): Use it.
2966         * guile/scm-ports.c (port_functions, private_port_functions): Use
2967         it.
2968         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2969         * guile/scm-progspace.c (pspace_functions): Use it.
2970         * guile/scm-string.c (string_functions): Use it.
2971         * guile/scm-symbol.c (symbol_functions): Use it.
2972         * guile/scm-symtab.c (symtab_functions): Use it.
2973         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2974         it.
2975         * guile/scm-value.c (value_functions): Use it.
2976
2977 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2978
2979         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2980         (tui_next_win): Likewise.
2981         (tui_prev_win): Likewise.
2982         (tui_partial_win_by_name): Likewise.
2983         (tui_init_generic_part): Likewise.
2984         (init_content_element): Likewise.
2985         (tui_del_window): Likewise.
2986         (tui_free_window): Likewise.
2987         (tui_del_data_windows): Likewise.
2988         (tui_free_data_content): Likewise.
2989         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2990         * tui/tui-regs.c (tui_show_register_group): Likewise.
2991         * tui/tui-win.c (tui_resize_all): Likewise.
2992         (tui_set_focus): Likewise.
2993         (tui_set_win_height): Likewise.
2994         (make_invisible_and_set_new_height): Likewise.
2995         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2996         * tui/tui-wingeneral.c (make_visible): Likewise.
2997
2998 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2999
3000         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3001
3002 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3003
3004         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3005         pointer.
3006         * dbxread.c (dbx_end_psymtab): Likewise.
3007         * gnu-nat.c (gnu_write_inferior): Likewise.
3008         * mdebugread.c (cross_ref): Likewise.
3009         * p-valprint.c (pascal_val_print): Likewise.
3010         * xcoffread.c (xcoff_end_psymtab): Likewise.
3011
3012 2015-09-04  Yao Qi  <yao.qi@linaro.org>
3013
3014         * NEWS: Mention the aarch64 multi-arch debugging support.
3015
3016 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3017
3018         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3019         type instead of a TYPE_CODE_INT one for the string_char_type
3020         and the ada_primitive_type_char types.
3021
3022 2015-09-03  Yao Qi  <yao.qi@linaro.org>
3023
3024         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3025         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
3026         aarch64_linux_region_ok_for_watchpoint.
3027         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3028         New function.
3029         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3030         Declare it.
3031
3032 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3033
3034         * gdb_obstack.h (obstack_strdup): Declare.
3035         * gdb_obstack.c (obstack_strdup): Define.
3036         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3037         * gdbarch.c: Regenerate.
3038         * gdbarch.h: Regenerate.
3039         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3040
3041 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3042
3043         * gdbtypes.c (copy_type_recursive): Update documentation.
3044
3045 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3046
3047         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3048         as zero.
3049
3050 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3051
3052         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3053
3054 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3055
3056         * solib-svr4.c (solib_event_probe_action): Call
3057         get_probe_argument_count using TRY...CATCH.
3058         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3059
3060 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3061
3062         * probe.h (struct probe_ops) <get_probe_argument_count,
3063         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3064         the comment that the function can throw an exception.
3065         (get_probe_argument_count): Likewise.
3066         (evaluate_probe_argument): Likewise.
3067         * stap-probe.c (stap_get_opcode): Call error instead of
3068         internal_error.
3069         (stap_get_expected_argument_type): Likewise.  Add argument
3070         'probe'.  Improve error message by mentioning the probe's name.
3071         (stap_parse_probe_arguments): Adjust call to
3072         stap_get_expected_argument_type.
3073         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
3074         not zero.  Call internal_error if GDB requests an argument but the
3075         probe has no arguments.
3076
3077 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3078
3079         * ada-lang.c (ada_resolve_function): Do not ask the user what
3080         match to use when in completion mode.
3081
3082 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3083
3084         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3085         cast of NULL.
3086
3087 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3088
3089         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3090         call_abi using XSHAL_ABI macro.
3091
3092 2015-08-29  Doug Evans  <xdje42@gmail.com>
3093
3094         * symtab.h (struct symbol): Tweak comment.
3095
3096 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3097
3098         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3099         gdbarch obstack instead of on the heap.  Update commentary
3100         accordingly.
3101
3102 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3103
3104         GDB 7.10 released.
3105
3106 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3107
3108         * NEWS: Update entry about non-8-bits addressable memory.
3109
3110 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3111
3112         Revert:
3113         2014-11-06  Doug Evans  <xdje42@gmail.com>
3114         * solib.c (solib_global_lookup): Fetch arch from objfile,
3115         not target_gdbarch.
3116
3117 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3118
3119         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3120         attempt to relocate a TLS variable offset.
3121
3122 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3123
3124         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3125         registered yet.  Set inferior_ptid while calling target_read_memory.
3126
3127 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3128
3129         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3130         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3131         * linux-nat.c (check_stopped_by_breakpoint): Use
3132         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3133
3134 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3135
3136         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3137         thread was not yet discovered, use thread_from_lwp instead of
3138         calling thread_db_find_new_threads_1.
3139
3140 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3141
3142         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3143         statements.
3144
3145 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3146
3147         * NEWS: Document support for non-8-bits addressable memory.
3148
3149 2015-08-27  Pedro Alves  <palves@redhat.com>
3150
3151         * configure.ac: Remove AC_TYPE_SIGNAL call.
3152         * configure, config.in: Regenerate.
3153
3154 2015-08-27  Pedro Alves  <palves@redhat.com>
3155
3156         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3157         * extension-priv.h: Include signal.h.
3158         (struct signal_handler) <handler>: Change type to sighandler_t.
3159         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3160         * inflow.c (sigint_ours, sigquit_ours): Change type to
3161         sighandler_t.
3162         (child_terminal_inferior): Remove casts.
3163         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3164         (osig): Change type to sighandler_t.
3165         * nto-procfs.c (ofunc): Change type to sighandler_t.
3166         (procfs_wait): Remove casts.
3167         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3168         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3169         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3170
3171 2015-08-27  Pedro Alves  <palves@redhat.com>
3172
3173         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3174         * gnulib/aclocal.m4: Renegerate.
3175         * gnulib/config.in: Renegerate.
3176         * gnulib/configure: Renegerate.
3177         * gnulib/import/Makefile.am: Update.
3178         * gnulib/import/Makefile.in: Regenerate.
3179         * gnulib/import/m4/gnulib-cache.m4: Update.
3180         * gnulib/import/m4/gnulib-comp.m4: Update.
3181         * gnulib/import/m4/signal_h.m4: New file.
3182         * gnulib/import/signal.in.h: New file.
3183
3184 2015-08-27  Pedro Alves  <palves@redhat.com>
3185
3186         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3187         (MIN_MEMORY_PACKET_SIZE): New.
3188         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3189         (get_memory_packet_size): Adjust.  No longer limit the max packet
3190         size.
3191         (set_memory_packet_size): Adjust, and remove dead code.
3192         (remote_check_symbols): Use xmalloc and a cleanup instead of
3193         alloca.
3194         (remote_packet_size): No longer cap the packet size.
3195         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3196
3197 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3198
3199         * compile/compile.c (compile_to_object): Mention language in
3200         error message.
3201
3202 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3203
3204         * target.c (target_pre_inferior): Unset attach_flag.
3205
3206 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3207
3208         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3209         * gdbarch.c: Re-generate.
3210
3211 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3212
3213         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3214         function with the XNEW-family equivalent.
3215         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3216         * ada-exp.y (write_ambiguous_var): Likewise.
3217         * ada-lang.c (resolve_subexp): Likewise.
3218         (user_select_syms): Likewise.
3219         (assign_aggregate): Likewise.
3220         (ada_evaluate_subexp): Likewise.
3221         (cache_symbol): Likewise.
3222         * addrmap.c (allocate_key): Likewise.
3223         (addrmap_create_mutable): Likewise.
3224         * aix-thread.c (sync_threadlists): Likewise.
3225         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3226         (alpha_gdbarch_init): Likewise.
3227         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3228         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3229         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3230         * arm-tdep.c (push_stack_item): Likewise.
3231         (arm_displaced_step_copy_insn): Likewise.
3232         (arm_gdbarch_init): Likewise.
3233         (_initialize_arm_tdep): Likewise.
3234         * avr-tdep.c (push_stack_item): Likewise.
3235         * ax-general.c (new_agent_expr): Likewise.
3236         * block.c (block_initialize_namespace): Likewise.
3237         * breakpoint.c (alloc_counted_command_line): Likewise.
3238         (update_dprintf_command_list): Likewise.
3239         (parse_breakpoint_sals): Likewise.
3240         (decode_static_tracepoint_spec): Likewise.
3241         (until_break_command): Likewise.
3242         (clear_command): Likewise.
3243         (update_global_location_list): Likewise.
3244         (get_breakpoint_objfile_data) Likewise.
3245         * btrace.c (ftrace_new_function): Likewise.
3246         (btrace_set_insn_history): Likewise.
3247         (btrace_set_call_history): Likewise.
3248         * buildsym.c (add_symbol_to_list): Likewise.
3249         (record_pending_block): Likewise.
3250         (start_subfile): Likewise.
3251         (start_buildsym_compunit): Likewise.
3252         (push_subfile): Likewise.
3253         (end_symtab_get_static_block): Likewise.
3254         (buildsym_init): Likewise.
3255         * cli/cli-cmds.c (source_command): Likewise.
3256         * cli/cli-decode.c (add_cmd): Likewise.
3257         * cli/cli-script.c (build_command_line): Likewise.
3258         (setup_user_args): Likewise.
3259         (realloc_body_list): Likewise.
3260         (process_next_line): Likewise.
3261         (copy_command_lines): Likewise.
3262         * cli/cli-setshow.c (do_set_command): Likewise.
3263         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3264         * coffread.c (coff_locate_sections): Likewise.
3265         (coff_symtab_read): Likewise.
3266         (coff_read_struct_type): Likewise.
3267         * common/cleanups.c (make_my_cleanup2): Likewise.
3268         * common/common-exceptions.c (throw_it): Likewise.
3269         * common/filestuff.c (make_cleanup_close): Likewise.
3270         * common/format.c (parse_format_string): Likewise.
3271         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3272         * compile/compile-object-load.c (munmap_list_add): Likewise.
3273         (compile_object_load): Likewise.
3274         * compile/compile-object-run.c (compile_object_run): Likewise.
3275         * compile/compile.c (append_args): Likewise.
3276         * corefile.c (specify_exec_file_hook): Likewise.
3277         * cp-support.c (make_symbol_overload_list): Likewise.
3278         * cris-tdep.c (push_stack_item): Likewise.
3279         (cris_gdbarch_init): Likewise.
3280         * ctf.c (ctf_trace_file_writer_new): Likewise.
3281         * dbxread.c (init_header_files): Likewise.
3282         (add_new_header_file): Likewise.
3283         (init_bincl_list): Likewise.
3284         (dbx_end_psymtab): Likewise.
3285         (start_psymtab): Likewise.
3286         (dbx_end_psymtab): Likewise.
3287         * dcache.c (dcache_init): Likewise.
3288         * dictionary.c (dict_create_hashed): Likewise.
3289         (dict_create_hashed_expandable): Likewise.
3290         (dict_create_linear): Likewise.
3291         (dict_create_linear_expandable): Likewise.
3292         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3293         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3294         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3295         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3296         (decode_frame_entry_1): Likewise.
3297         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3298         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3299         * dwarf2read.c (dwarf2_has_info): Likewise.
3300         (create_signatured_type_table_from_index): Likewise.
3301         (dwarf2_read_index): Likewise.
3302         (dw2_get_file_names_reader): Likewise.
3303         (create_all_type_units): Likewise.
3304         (read_cutu_die_from_dwo): Likewise.
3305         (init_tu_and_read_dwo_dies): Likewise.
3306         (init_cutu_and_read_dies): Likewise.
3307         (create_all_comp_units): Likewise.
3308         (queue_comp_unit): Likewise.
3309         (inherit_abstract_dies): Likewise.
3310         (read_call_site_scope): Likewise.
3311         (dwarf2_add_field): Likewise.
3312         (dwarf2_add_typedef): Likewise.
3313         (dwarf2_add_member_fn): Likewise.
3314         (attr_to_dynamic_prop): Likewise.
3315         (abbrev_table_alloc_abbrev): Likewise.
3316         (abbrev_table_read_table): Likewise.
3317         (add_include_dir): Likewise.
3318         (add_file_name): Likewise.
3319         (dwarf_decode_line_header): Likewise.
3320         (dwarf2_const_value_attr): Likewise.
3321         (dwarf_alloc_block): Likewise.
3322         (parse_macro_definition): Likewise.
3323         (set_die_type): Likewise.
3324         (write_psymtabs_to_index): Likewise.
3325         (create_cus_from_index): Likewise.
3326         (dwarf2_create_include_psymtab): Likewise.
3327         (process_psymtab_comp_unit_reader): Likewise.
3328         (build_type_psymtab_dependencies): Likewise.
3329         (read_comp_units_from_section): Likewise.
3330         (compute_compunit_symtab_includes): Likewise.
3331         (create_dwo_unit_in_dwp_v1): Likewise.
3332         (create_dwo_unit_in_dwp_v2): Likewise.
3333         (read_func_scope): Likewise.
3334         (process_structure_scope): Likewise.
3335         (mark_common_block_symbol_computed): Likewise.
3336         (load_partial_dies): Likewise.
3337         (dwarf2_symbol_mark_computed): Likewise.
3338         * elfread.c (elf_symfile_segments): Likewise.
3339         (elf_read_minimal_symbols): Likewise.
3340         * environ.c (make_environ): Likewise.
3341         * eval.c (evaluate_subexp_standard): Likewise.
3342         * event-loop.c (create_file_handler): Likewise.
3343         (create_async_signal_handler): Likewise.
3344         (create_async_event_handler): Likewise.
3345         (create_timer): Likewise.
3346         * exec.c (build_section_table): Likewise.
3347         * fbsd-nat.c (fbsd_remember_child): Likewise.
3348         * fork-child.c (fork_inferior): Likewise.
3349         * frv-tdep.c (new_variant): Likewise.
3350         * gdbarch.sh (gdbarch_alloc): Likewise.
3351         (append_name): Likewise.
3352         * gdbtypes.c (rank_function): Likewise.
3353         (copy_type_recursive): Likewise.
3354         (add_dyn_prop): Likewise.
3355         * gnu-nat.c (make_proc): Likewise.
3356         (make_inf): Likewise.
3357         (gnu_write_inferior): Likewise.
3358         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3359         (build_std_type_info_type): Likewise.
3360         * guile/scm-param.c (compute_enum_list): Likewise.
3361         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3362         * guile/scm-value.c (gdbscm_value_call): Likewise.
3363         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3364         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3365         (read_unwind_info): Likewise.
3366         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3367         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3368         (call_function_by_hand_dummy): Likewise.
3369         * infcmd.c (step_once): Likewise.
3370         (finish_forward): Likewise.
3371         (attach_command): Likewise.
3372         (notice_new_inferior): Likewise.
3373         * inferior.c (add_inferior_silent): Likewise.
3374         * infrun.c (add_displaced_stepping_state): Likewise.
3375         (save_infcall_control_state): Likewise.
3376         (save_inferior_ptid): Likewise.
3377         (_initialize_infrun): Likewise.
3378         * jit.c (bfd_open_from_target_memory): Likewise.
3379         (jit_gdbarch_data_init): Likewise.
3380         * language.c (add_language): Likewise.
3381         * linespec.c (decode_line_2): Likewise.
3382         * linux-nat.c (add_to_pid_list): Likewise.
3383         (add_initial_lwp): Likewise.
3384         * linux-thread-db.c (add_thread_db_info): Likewise.
3385         (record_thread): Likewise.
3386         (info_auto_load_libthread_db): Likewise.
3387         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3388         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3389         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3390         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3391         * macrocmd.c (macro_define_command): Likewise.
3392         * macroexp.c (gather_arguments): Likewise.
3393         * macroscope.c (sal_macro_scope): Likewise.
3394         * macrotab.c (new_macro_table): Likewise.
3395         * mdebugread.c (push_parse_stack): Likewise.
3396         (parse_partial_symbols): Likewise.
3397         (parse_symbol): Likewise.
3398         (psymtab_to_symtab_1): Likewise.
3399         (new_block): Likewise.
3400         (new_psymtab): Likewise.
3401         (mdebug_build_psymtabs): Likewise.
3402         (add_pending): Likewise.
3403         (elfmdebug_build_psymtabs): Likewise.
3404         * mep-tdep.c (mep_gdbarch_init): Likewise.
3405         * mi/mi-main.c (mi_execute_command): Likewise.
3406         * mi/mi-parse.c (mi_parse_argv): Likewise.
3407         * minidebug.c (lzma_open): Likewise.
3408         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3409         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3410         * mips-tdep.c (mips_gdbarch_init): Likewise.
3411         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3412         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3413         * mt-tdep.c (mt_registers_info): Likewise.
3414         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3415         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3416         (linux_enable_pt): Likewise.
3417         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3418         (linux_xfer_osdata_processgroups): Likewise.
3419         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3420         * nto-procfs.c (procfs_meminfo): Likewise.
3421         * objc-lang.c (start_msglist): Likewise.
3422         (selectors_info): Likewise.
3423         (classes_info): Likewise.
3424         (find_methods): Likewise.
3425         * objfiles.c (allocate_objfile): Likewise.
3426         (update_section_map): Likewise.
3427         * osabi.c (gdbarch_register_osabi): Likewise.
3428         (gdbarch_register_osabi_sniffer): Likewise.
3429         * parse.c (start_arglist): Likewise.
3430         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3431         (hwdebug_insert_point): Likewise.
3432         * printcmd.c (display_command): Likewise.
3433         (ui_printf): Likewise.
3434         * procfs.c (create_procinfo): Likewise.
3435         (load_syscalls): Likewise.
3436         (proc_get_LDT_entry): Likewise.
3437         (proc_update_threads): Likewise.
3438         * prologue-value.c (make_pv_area): Likewise.
3439         (pv_area_store): Likewise.
3440         * psymtab.c (extend_psymbol_list): Likewise.
3441         (init_psymbol_list): Likewise.
3442         (allocate_psymtab): Likewise.
3443         * python/py-inferior.c (add_thread_object): Likewise.
3444         * python/py-param.c (compute_enum_values): Likewise.
3445         * python/py-value.c (valpy_call): Likewise.
3446         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3447         * python/python.c (ensure_python_env): Likewise.
3448         * record-btrace.c (record_btrace_start_replaying): Likewise.
3449         * record-full.c (record_full_reg_alloc): Likewise.
3450         (record_full_mem_alloc): Likewise.
3451         (record_full_end_alloc): Likewise.
3452         (record_full_core_xfer_partial): Likewise.
3453         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3454         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3455         * remote-notif.c (remote_notif_state_allocate): Likewise.
3456         * remote.c (demand_private_info): Likewise.
3457         (remote_notif_stop_alloc_reply): Likewise.
3458         (remote_enable_btrace): Likewise.
3459         * reverse.c (save_bookmark_command): Likewise.
3460         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3461         * rx-tdep.c (rx_gdbarch_init): Likewise.
3462         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3463         * ser-go32.c (dos_get_tty_state): Likewise.
3464         (dos_copy_tty_state): Likewise.
3465         * ser-mingw.c (ser_windows_open): Likewise.
3466         (ser_console_wait_handle): Likewise.
3467         (ser_console_get_tty_state): Likewise.
3468         (make_pipe_state): Likewise.
3469         (net_windows_open): Likewise.
3470         * ser-unix.c (hardwire_get_tty_state): Likewise.
3471         (hardwire_copy_tty_state): Likewise.
3472         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3473         * solib-dsbt.c (dsbt_current_sos): Likewise.
3474         (dsbt_relocate_main_executable): Likewise.
3475         * solib-frv.c (frv_current_sos): Likewise.
3476         (frv_relocate_main_executable): Likewise.
3477         * solib-spu.c (spu_bfd_fopen): Likewise.
3478         * solib-svr4.c (lm_info_read): Likewise.
3479         (svr4_copy_library_list): Likewise.
3480         (svr4_default_sos): Likewise.
3481         * source.c (find_source_lines): Likewise.
3482         (line_info): Likewise.
3483         (add_substitute_path_rule): Likewise.
3484         * spu-linux-nat.c (spu_bfd_open): Likewise.
3485         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3486         * stabsread.c (dbx_lookup_type): Likewise.
3487         (read_type): Likewise.
3488         (read_member_functions): Likewise.
3489         (read_struct_fields): Likewise.
3490         (read_baseclasses): Likewise.
3491         (read_args): Likewise.
3492         (_initialize_stabsread): Likewise.
3493         * stack.c (func_command): Likewise.
3494         * stap-probe.c (handle_stap_probe): Likewise.
3495         * symfile.c (addrs_section_sort): Likewise.
3496         (addr_info_make_relative): Likewise.
3497         (load_section_callback): Likewise.
3498         (add_symbol_file_command): Likewise.
3499         (init_filename_language_table): Likewise.
3500         * symtab.c (create_filename_seen_cache): Likewise.
3501         (sort_search_symbols_remove_dups): Likewise.
3502         (search_symbols): Likewise.
3503         * target.c (make_cleanup_restore_target_terminal): Likewise.
3504         * thread.c (new_thread): Likewise.
3505         (enable_thread_stack_temporaries): Likewise.
3506         (make_cleanup_restore_current_thread): Likewise.
3507         (thread_apply_all_command): Likewise.
3508         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3509         * top.c (gdb_readline_wrapper): Likewise.
3510         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3511         * tracepoint.c (trace_find_line_command): Likewise.
3512         (all_tracepoint_actions_and_cleanup): Likewise.
3513         (make_cleanup_restore_current_traceframe): Likewise.
3514         (get_uploaded_tp): Likewise.
3515         (get_uploaded_tsv): Likewise.
3516         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3517         (tui_alloc_win_info): Likewise.
3518         (tui_alloc_content): Likewise.
3519         (tui_add_content_elements): Likewise.
3520         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3521         (tui_set_disassem_content): Likewise.
3522         * ui-file.c (ui_file_new): Likewise.
3523         (stdio_file_new): Likewise.
3524         (tee_file_new): Likewise.
3525         * utils.c (make_cleanup_restore_integer): Likewise.
3526         (add_internal_problem_command): Likewise.
3527         * v850-tdep.c (v850_gdbarch_init): Likewise.
3528         * valops.c (find_oload_champ): Likewise.
3529         * value.c (allocate_value_lazy): Likewise.
3530         (record_latest_value): Likewise.
3531         (create_internalvar): Likewise.
3532         * varobj.c (install_variable): Likewise.
3533         (new_variable): Likewise.
3534         (new_root_variable): Likewise.
3535         (cppush): Likewise.
3536         (_initialize_varobj): Likewise.
3537         * windows-nat.c (windows_make_so): Likewise.
3538         * x86-nat.c (x86_add_process): Likewise.
3539         * xcoffread.c (arrange_linetable): Likewise.
3540         (allocate_include_entry): Likewise.
3541         (process_linenos): Likewise.
3542         (SYMBOL_DUP): Likewise.
3543         (xcoff_start_psymtab): Likewise.
3544         (xcoff_end_psymtab): Likewise.
3545         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3546         * xtensa-tdep.c (xtensa_register_type): Likewise.
3547         * gdbarch.c: Regenerate.
3548         * gdbarch.h: Regenerate.
3549
3550 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3551
3552         * infrun.c (follow_exec): Re-order operations for
3553         handling follow-exec-mode "new".
3554         (handle_inferior_event_1): Assign ecs->event_thread
3555         to the current thread.
3556         * remote.c (get_remote_arch_state): Add an assertion.
3557
3558 2015-08-26  Pedro Alves  <palves@redhat.com>
3559
3560         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3561
3562 2015-08-25  Pedro Alves  <palves@redhat.com>
3563
3564         PR gdb/18804
3565         * defs.h (maybe_quit): Declare.
3566         (QUIT): Now calls maybe_quit.
3567         * event-loop.c (clear_async_signal_handler)
3568         (async_signal_handler_is_marked): New functions.
3569         * event-loop.h (async_signal_handler_is_marked)
3570         (clear_async_signal_handler): New declarations.
3571         * remote.c (remote_check_pending_interrupt): New function.
3572         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3573         longer check whether the target is async.  If waiting for a stop
3574         reply, and a Ctrl-C as been sent to the target, offer to
3575         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3576         Otherwise do not disconnect and throw a quit.
3577         (_initialize_remote): Install remote_check_pending_interrupt as
3578         to_check_pending_interrupt.
3579         * target.c (target_check_pending_interrupt): New function.
3580         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3581         field.
3582         (target_check_pending_interrupt): New declaration.
3583         * utils.c (maybe_quit): New function.
3584         * target-delegates.c: Regenerate.
3585
3586 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3587
3588         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3589         Rename local variable pid to tid, and get lwpid of lwp.  Update
3590         debug output.
3591
3592 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3593
3594         * ada-lang.c (ada_read_var_value): Add a var_block argument
3595         and pass it to default_read_var_value.
3596         * block.c (block_static_link): New accessor.
3597         * block.h (block_static_link): Declare it.
3598         * buildsym.c (finish_block_internal): Add a static_link
3599         argument.  If there is a static link, associate it to the new
3600         block.
3601         (finish_block): Add a static link argument and pass it to
3602         finish_block_internal.
3603         (end_symtab_get_static_block): Update calls to finish_block and
3604         to finish_block_internal.
3605         (end_symtab_with_blockvector): Update call to
3606         finish_block_internal.
3607         * buildsym.h: Forward-declare struct dynamic_prop.
3608         (struct context_stack): Add a static_link field.
3609         (finish_block): Add a static link argument.
3610         * c-exp.y: Remove an obsolete comment (evaluation of variables
3611         already start from the selected frame, and now they climb *up*
3612         the call stack) and propagate the block information to the
3613         produced expression.
3614         * d-exp.y: Likewise.
3615         * f-exp.y: Likewise.
3616         * go-exp.y: Likewise.
3617         * jv-exp.y: Likewise.
3618         * m2-exp.y: Likewise.
3619         * p-exp.y: Likewise.
3620         * coffread.c (coff_symtab_read): Update calls to finish_block.
3621         * dbxread.c (process_one_symbol): Likewise.
3622         * xcoffread.c (read_xcoff_symtab): Likewise.
3623         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3624         "sym" parameter to struct block_symbol, update its uses and pass
3625         its block to calls to read_var_value.
3626         (convert_symbol_sym): Update the calls to convert_one_symbol.
3627         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3628         call to read_var_value.
3629         * dwarf2loc.c (block_op_get_frame_base): New.
3630         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3631         get_frame_base method.
3632         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3633         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3634         instead of the selected frame in order to evaluate the
3635         expression.
3636         (dwarf2_evaluate_property): Add a frame argument.  Update call
3637         to dwarf2_locexpr_baton_eval to provide a frame in available and
3638         to handle the absence of address stack.
3639         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3640         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3641         declaration.
3642         (read_func_scope): Record any available static link description.
3643         Update call to finish_block.
3644         (read_lexical_block_scope): Update call to finish_block.
3645         * findvar.c (follow_static_link): New.
3646         (get_hosting_frame): New.
3647         (default_read_var_value): Add a var_block argument.  Use
3648         get_hosting_frame to handle non-local references.
3649         (read_var_value): Add a var_block argument and pass it to the
3650         LA_READ_VAR_VALUE method.
3651         * gdbtypes.c (resolve_dynamic_range): Update calls to
3652         dwarf2_evaluate_property.
3653         (resolve_dynamic_type_internal): Likewise.
3654         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3655         read_var_value, passing it the block coming from symbol lookup.
3656         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3657         read_var_value (TODO).
3658         * infcmd.c (finish_command_continuation): Update call to
3659         read_var_value, passing it the block coming from symbol lookup.
3660         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3661         * language.h (struct language_defn): Add a var_block argument to
3662         the LA_READ_VAR_VALUE method.
3663         * objfiles.c (struct static_link_htab_entry): New.
3664         (static_link_htab_entry_hash): New.
3665         (static_link_htab_entry_eq): New.
3666         (objfile_register_static_link): New.
3667         (objfile_lookup_static_link): New.
3668         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3669         * objfiles.h: Include hashtab.h.
3670         (struct objfile): Add a static_links field.
3671         (objfile_register_static_link): New.
3672         (objfile_lookup_static_link): New.
3673         * printcmd.c (print_variable_and_value): Update call to
3674         read_var_value.
3675         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3676         * python/py-frame.c (frapy_read_var): Update call to
3677         read_var_value, passing it the block coming from symbol lookup.
3678         * python/py-framefilter.c (extract_sym): Add a sym_block
3679         parameter and set the pointed value to NULL (TODO).
3680         (enumerate_args): Update call to extract_sym.
3681         (enumerate_locals): Update calls to extract_sym and to
3682         read_var_value.
3683         * python/py-symbol.c (sympy_value): Update call to
3684         read_var_value (TODO).
3685         * stack.c (read_frame_local): Update call to read_var_value.
3686         (read_frame_arg): Likewise.
3687         (return_command): Likewise.
3688         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3689         method.
3690         (struct symbol): Add a block field.
3691         (SYMBOL_BLOCK): New accessor.
3692         * valops.c (value_of_variable): Remove frame/block handling and
3693         pass the block argument to read_var_value, which does this job
3694         now.
3695         (value_struct_elt_for_reference): Update calls to
3696         read_var_value.
3697         (value_of_this): Pass the block found to read_var_value.
3698         * value.h (read_var_value): Add a var_block argument.
3699         (default_read_var_value): Likewise.
3700
3701 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3702
3703         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3704         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3705         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3706
3707 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3708
3709         * Makefile.in (aarch64-liunx.o): New rule.
3710         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3711         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3712         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3713         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3714         extern.
3715         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3716         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3717         * nat/aarch64-linux.c: New file.
3718         * nat/aarch64-linux.h: New file.
3719
3720 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3721
3722         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3723         lwp_arch_private_info and ptid_of_lwp.
3724
3725 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3726
3727         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3728         Move it to nat/aarch64-linux-hw-point.c.
3729         (debug_reg_change_callback): Likewise.
3730         (aarch64_notify_debug_reg_change): :Likewise.
3731         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3732         (aarch64_dr_update_callback_param): New.
3733         (debug_reg_change_callback): New function.
3734         (aarch64_notify_debug_reg_change): Likewise.
3735         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3736         Remove the declaration.
3737
3738 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3739
3740         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3741         Call current_lwp_ptid.
3742
3743 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3744
3745         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3746         debug_printf.
3747
3748 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3749
3750         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3751         ptid_get_pid rather than ptid_get_lwp.
3752
3753 2015-08-24  Pedro Alves  <palves@redhat.com>
3754
3755         * NEWS (New commands): Mention set/show remote
3756         multiprocess-extensions-packet.
3757         * remote.c (remote_query_supported): Only tell the server to use
3758         the multiprocess extensions if the user hasn't force-disabled them
3759         with "set remote multiprocess-extensions-packet off".
3760
3761 2015-08-24  Pedro Alves  <palves@redhat.com>
3762
3763         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3764         1029a8112290f6eee9d7878a391c49db42c999bd.
3765         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3766         Regenerate.
3767         * gnulib/import/Makefile.am: Update.
3768         * gnulib/import/Makefile.in: Update.
3769         * gnulib/import/alloca.in.h: Update.
3770         * gnulib/import/basename-lgpl.c: Update.
3771         * gnulib/import/canonicalize-lgpl.c: Update.
3772         * gnulib/import/config.charset: Update.
3773         * gnulib/import/dirent.in.h: Update.
3774         * gnulib/import/dirfd.c: Update.
3775         * gnulib/import/dirname-lgpl.c: Update.
3776         * gnulib/import/dirname.h: Update.
3777         * gnulib/import/dosname.h: Update.
3778         * gnulib/import/errno.in.h: Update.
3779         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3780         * gnulib/import/extra/snippet/c++defs.h: Update.
3781         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3782         * gnulib/import/extra/update-copyright: Update.
3783         * gnulib/import/float+.h: Update.
3784         * gnulib/import/float.c: Update.
3785         * gnulib/import/float.in.h: Update.
3786         * gnulib/import/fnmatch.c: Update.
3787         * gnulib/import/fnmatch.in.h: Update.
3788         * gnulib/import/fnmatch_loop.c: Update.
3789         * gnulib/import/fpucw.h: Update.
3790         * gnulib/import/frexp.c: Update.
3791         * gnulib/import/frexpl.c: Update.
3792         * gnulib/import/gettimeofday.c: Update.
3793         * gnulib/import/inttypes.in.h: Update.
3794         * gnulib/import/isnan.c: Update.
3795         * gnulib/import/isnand-nolibm.h: Update.
3796         * gnulib/import/isnand.c: Update.
3797         * gnulib/import/isnanl-nolibm.h: Update.
3798         * gnulib/import/isnanl.c: Update.
3799         * gnulib/import/itold.c: Update.
3800         * gnulib/import/localcharset.c: Update.
3801         * gnulib/import/localcharset.h: Update.
3802         * gnulib/import/lstat.c: Update.
3803         * gnulib/import/m4/00gnulib.m4: Update.
3804         * gnulib/import/m4/absolute-header.m4: Update.
3805         * gnulib/import/m4/alloca.m4: Update.
3806         * gnulib/import/m4/canonicalize.m4: Update.
3807         * gnulib/import/m4/codeset.m4: Update.
3808         * gnulib/import/m4/configmake.m4: Update.
3809         * gnulib/import/m4/dirent_h.m4: Update.
3810         * gnulib/import/m4/dirfd.m4: Update.
3811         * gnulib/import/m4/dirname.m4: Update.
3812         * gnulib/import/m4/double-slash-root.m4: Update.
3813         * gnulib/import/m4/eealloc.m4: Update.
3814         * gnulib/import/m4/errno_h.m4: Update.
3815         * gnulib/import/m4/exponentd.m4: Update.
3816         * gnulib/import/m4/exponentl.m4: Update.
3817         * gnulib/import/m4/extensions.m4: Update.
3818         * gnulib/import/m4/extern-inline.m4: Update.
3819         * gnulib/import/m4/fcntl-o.m4: Update.
3820         * gnulib/import/m4/float_h.m4: Update.
3821         * gnulib/import/m4/fnmatch.m4: Update.
3822         * gnulib/import/m4/fpieee.m4: Update.
3823         * gnulib/import/m4/frexp.m4: Update.
3824         * gnulib/import/m4/frexpl.m4: Update.
3825         * gnulib/import/m4/gettimeofday.m4: Update.
3826         * gnulib/import/m4/glibc21.m4: Update.
3827         * gnulib/import/m4/gnulib-cache.m4: Update.
3828         * gnulib/import/m4/gnulib-common.m4: Update.
3829         * gnulib/import/m4/gnulib-comp.m4: Update.
3830         * gnulib/import/m4/gnulib-tool.m4: Update.
3831         * gnulib/import/m4/include_next.m4: Update.
3832         * gnulib/import/m4/inttypes-pri.m4: Update.
3833         * gnulib/import/m4/inttypes.m4: Update.
3834         * gnulib/import/m4/isnand.m4: Update.
3835         * gnulib/import/m4/isnanl.m4: Update.
3836         * gnulib/import/m4/largefile.m4: Update.
3837         * gnulib/import/m4/localcharset.m4: Update.
3838         * gnulib/import/m4/locale-fr.m4: Update.
3839         * gnulib/import/m4/locale-ja.m4: Update.
3840         * gnulib/import/m4/locale-zh.m4: Update.
3841         * gnulib/import/m4/longlong.m4: Update.
3842         * gnulib/import/m4/lstat.m4: Update.
3843         * gnulib/import/m4/malloc.m4: Update.
3844         * gnulib/import/m4/malloca.m4: Update.
3845         * gnulib/import/m4/math_h.m4: Update.
3846         * gnulib/import/m4/mbrtowc.m4: Update.
3847         * gnulib/import/m4/mbsinit.m4: Update.
3848         * gnulib/import/m4/mbsrtowcs.m4: Update.
3849         * gnulib/import/m4/mbstate_t.m4: Update.
3850         * gnulib/import/m4/memchr.m4: Update.
3851         * gnulib/import/m4/memmem.m4: Update.
3852         * gnulib/import/m4/mmap-anon.m4: Update.
3853         * gnulib/import/m4/multiarch.m4: Update.
3854         * gnulib/import/m4/nocrash.m4: Update.
3855         * gnulib/import/m4/off_t.m4: Update.
3856         * gnulib/import/m4/pathmax.m4: Update.
3857         * gnulib/import/m4/readlink.m4: Update.
3858         * gnulib/import/m4/rename.m4: Update.
3859         * gnulib/import/m4/rmdir.m4: Update.
3860         * gnulib/import/m4/ssize_t.m4: Update.
3861         * gnulib/import/m4/stat.m4: Update.
3862         * gnulib/import/m4/stdbool.m4: Update.
3863         * gnulib/import/m4/stddef_h.m4: Update.
3864         * gnulib/import/m4/stdint.m4: Update.
3865         * gnulib/import/m4/stdio_h.m4: Update.
3866         * gnulib/import/m4/stdlib_h.m4: Update.
3867         * gnulib/import/m4/string_h.m4: Update.
3868         * gnulib/import/m4/strstr.m4: Update.
3869         * gnulib/import/m4/strtok_r.m4: Update.
3870         * gnulib/import/m4/sys_socket_h.m4: Update.
3871         * gnulib/import/m4/sys_stat_h.m4: Update.
3872         * gnulib/import/m4/sys_time_h.m4: Update.
3873         * gnulib/import/m4/sys_types_h.m4: Update.
3874         * gnulib/import/m4/time_h.m4: Update.
3875         * gnulib/import/m4/unistd_h.m4: Update.
3876         * gnulib/import/m4/warn-on-use.m4: Update.
3877         * gnulib/import/m4/wchar_h.m4: Update.
3878         * gnulib/import/m4/wchar_t.m4: Update.
3879         * gnulib/import/m4/wctype_h.m4: Update.
3880         * gnulib/import/m4/wint_t.m4: Update.
3881         * gnulib/import/malloc.c: Update.
3882         * gnulib/import/malloca.c: Update.
3883         * gnulib/import/malloca.h: Update.
3884         * gnulib/import/math.in.h: Update.
3885         * gnulib/import/mbrtowc.c: Update.
3886         * gnulib/import/mbsinit.c: Update.
3887         * gnulib/import/mbsrtowcs-impl.h: Update.
3888         * gnulib/import/mbsrtowcs-state.c: Update.
3889         * gnulib/import/mbsrtowcs.c: Update.
3890         * gnulib/import/memchr.c: Update.
3891         * gnulib/import/memmem.c: Update.
3892         * gnulib/import/pathmax.h: Update.
3893         * gnulib/import/readlink.c: Update.
3894         * gnulib/import/ref-add.sin: Update.
3895         * gnulib/import/ref-del.sin: Update.
3896         * gnulib/import/rename.c: Update.
3897         * gnulib/import/rmdir.c: Update.
3898         * gnulib/import/same-inode.h: Update.
3899         * gnulib/import/stat.c: Update.
3900         * gnulib/import/stdbool.in.h: Update.
3901         * gnulib/import/stddef.in.h: Update.
3902         * gnulib/import/stdint.in.h: Update.
3903         * gnulib/import/stdio.c: Update.
3904         * gnulib/import/stdio.in.h: Update.
3905         * gnulib/import/stdlib.in.h: Update.
3906         * gnulib/import/str-two-way.h: Update.
3907         * gnulib/import/streq.h: Update.
3908         * gnulib/import/string.in.h: Update.
3909         * gnulib/import/stripslash.c: Update.
3910         * gnulib/import/strnlen1.c: Update.
3911         * gnulib/import/strnlen1.h: Update.
3912         * gnulib/import/strstr.c: Update.
3913         * gnulib/import/strtok_r.c: Update.
3914         * gnulib/import/sys_stat.in.h: Update.
3915         * gnulib/import/sys_time.in.h: Update.
3916         * gnulib/import/sys_types.in.h: Update.
3917         * gnulib/import/time.in.h: Update.
3918         * gnulib/import/unistd.in.h: Update.
3919         * gnulib/import/verify.h: Update.
3920         * gnulib/import/wchar.in.h: Update.
3921         * gnulib/import/wctype.in.h: Update.
3922         * gnulib/import/gettimeofday.c: New file.
3923         * gnulib/import/m4/absolute-header.m4: New file.
3924         * gnulib/import/m4/gettimeofday.m4: New file.
3925         * gnulib/import/m4/sys_socket_h.m4: New file.
3926         * gnulib/import/m4/sys_time_h.m4: New file.
3927         * gnulib/import/stdio.c: Delete file.
3928         * gnulib/import/sys_time.in.h: New file.
3929
3930 2015-08-24  Pedro Alves  <palves@redhat.com>
3931
3932         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3933         * common/gdb_sys_time.h: New file.
3934         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3935         * gdb_select.h: Likewise.
3936         * gdb_usleep.c: Likewise.
3937         * maint.c: Likewise.
3938         * mi/mi-main.c: Likewise.
3939         * mi/mi-parse.h: Likewise.
3940         * remote-fileio.c: Likewise.
3941         * remote-m32r-sdi.c: Likewise.
3942         * remote.c: Likewise.
3943         * ser-base.c: Likewise.
3944         * ser-pipe.c: Likewise.
3945         * ser-tcp.c: Likewise.
3946         * ser-unix.c: Likewise.
3947         * symfile.c: Likewise.
3948         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3949         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3950         * utils.c: Likewise.
3951
3952 2015-08-24  Pedro Alves  <palves@redhat.com>
3953
3954         * NEWS: Mention removed support for the various ROM monitors.
3955         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3956         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3957         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3958         gdb_target_obs.
3959         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3960         gdb_target_obs.
3961         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3962         dsrec.o from gdb_target_obs.
3963         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3964         from gdb_target_obs.
3965         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3966         gdb_target_obs.
3967         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3968         dink32-rom.o from gdb_target_obs.
3969         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3970         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3971         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3972         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3973
3974 2015-08-21  Pedro Alves  <palves@redhat.com>
3975
3976         * frame.c (null_frame_id): Explicitly zero-initialize.
3977
3978 2015-08-21  Tom Tromey  <tromey@redhat.com>
3979
3980         * dwarf2read.c (struct dwarf2_section_info): Rename field
3981         'asection' to 'section'.
3982         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3983         (dwarf2_locate_sections, dwarf2_locate_sections)
3984         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3985         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3986         (dwarf2_locate_v2_dwp_sections): Adjust.
3987
3988 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3989
3990         * top.h (gdb_in_secondary_prompt_p): Declare.
3991         * top.c (gdb_secondary_prompt_depth): Define.
3992         (gdb_in_secondary_prompt_p): Define.
3993         (gdb_readline_wrapper_cleanup): Decrement
3994         gdb_secondary_prompt_depth.
3995         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3996         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3997         are in a secondary prompt.
3998
3999 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4000
4001         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4002         emit the newline.
4003
4004 2015-08-21  Gary Benson  <gbenson@redhat.com>
4005
4006         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4007
4008 2015-08-21  Gary Benson  <gbenson@redhat.com>
4009
4010         * target.h (struct target_ops) <to_fileio_open>: New argument
4011         warn_if_slow.  Update comment.  All implementations updated.
4012         (target_fileio_open_warn_if_slow): New declaration.
4013         * target.c (target_fileio_open): Renamed as...
4014         (target_fileio_open_1): ...this.  New argument warn_if_slow.
4015         Pass warn_if_slow to implementation.  Update debug printing.
4016         (target_fileio_open): New function.
4017         (target_fileio_open_warn_if_slow): Likewise.
4018         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4019         target_fileio_open_warn_if_slow.
4020
4021 2015-08-21  Gary Benson  <gbenson@redhat.com>
4022
4023         * nat/linux-namespaces.c (linux_mntns_access_fs):
4024         Do not overwrite old_chain.
4025
4026 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
4027
4028         * arch/xtensa.h: New file.
4029         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4030         (ps_get_thread_area): New function.
4031         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4032         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4033         * xtensa-tdep.c (osabi.h): New #include.
4034         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4035         xtensa-specific hooks.
4036         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4037         member and move the structure to arch/xtensa.h.
4038
4039 2015-08-21  Pedro Alves  <palves@redhat.com>
4040
4041         * remote.c (struct readahead_cache): New.
4042         (struct remote_state) <readahead_cache>: New field.
4043         (remote_open_1): Invalidate the cache.
4044         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4045         functions.
4046         (remote_hostio_pwrite): Invalidate the readahead cache.
4047         (remote_hostio_pread): Rename to ...
4048         (remote_hostio_pread_vFile): ... this.
4049         (remote_hostio_pread_from_cache): New function.
4050         (remote_hostio_pread): Reimplement.
4051         (remote_hostio_close): Invalidate the readahead cache.
4052
4053 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
4054
4055         PR build/18843
4056         * procfs.c: Include "filestuff.h".
4057
4058 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4059
4060         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4061         curch.
4062         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4063         cur_line or curch, instead call wmove().
4064         (init_win_info) [CMD_WIN]: Likewise.
4065         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4066         instead call getcury().
4067         (tui_redisplay_readline): Don't set cur_line or curch.
4068         (tui_mld_erase_entire_line): Don't read cur_line, instead call
4069         getcury().
4070         (tui_cont_sig): Remove call to wmove.
4071         (tui_getc): Don't read cur_line or curch, instead call getcury()
4072         or getyx().  Don't set curch.
4073         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4074         set cur_line or curch.  Always move cursor to (0,0).
4075
4076 2015-08-20  Pedro Alves  <palves@redhat.com>
4077
4078         * infrun.c (print_target_wait_results): Make extern.
4079         * infrun.h (print_target_wait_results): Declare.
4080         * remote.c (set_stop_requested_callback): Delete.
4081         (process_initial_stop_replies): New function.
4082         (remote_start_remote): Use it.
4083         (stop_reply_queue_length): New function.
4084
4085 2015-08-20  Pedro Alves  <palves@redhat.com>
4086
4087         * dwarf2read.c (process_full_comp_unit): To tell whether
4088         start_subfile managed to deduce a language, test for
4089         language_unknown instead of language_c.
4090
4091 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4092
4093         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4094         matches attributes.
4095
4096 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4097
4098         * dwarf2read.c (dwarf2_string_attr): New function.
4099         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4100         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4101         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4102         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4103         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4104
4105 2015-08-18  Doug Evans  <dje@google.com>
4106             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4107
4108         PR mi/18833
4109         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4110         if MI-like.
4111         * mi/mi-out.c: #include "vec.h".
4112         (ui_filep): New type.
4113         (DEV_VEC_P (ui_filep)): New type.
4114         (struct ui_out_data) <buffer, original_buffer>: Delete.
4115         (struct ui_out_data) <streams>: New member.
4116         (mi_ui_out_impl): Add data_destroy field.
4117         (mi_field_string, mi_field_fmt): Update.
4118         (mi_flush, mi_redirect, field_separator): Update.
4119         (mi_open, mi_close): Update.
4120         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4121         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4122         (mi_out_new): Call mi_out_data_ctor.
4123
4124 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4125
4126         * remote.c (strprefix): New.
4127         (remote_parse_stop_reply): Use strprefix instead of strncmp
4128         to ensure exact match of keyword.
4129
4130 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4131
4132         * gdb_bfd.c (debug_bfd_cache): New variable.
4133         (show_bfd_cache_debug): New function.
4134         (gdb_bfd_open): Add debug logging.
4135         (gdb_bfd_ref): Likewise.
4136         (gdb_bfd_unref): Likewise.
4137         (_initialize_gdb_bfd): Add new set/show command.
4138         * NEWS: Mention new command.
4139
4140 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4141
4142         * gdb_bfd.c (bfd_sharing): New variable.
4143         (show_bfd_sharing): New function.
4144         (gdb_bfd_open): Check bfd_sharing variable.
4145         (_initialize_gdb_bfd): Add new set/show command.
4146         * NEWS: Mention new command.
4147
4148 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4149
4150         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4151         field.
4152         (struct gdb_bfd_cache_search): Likewise.
4153         (eq_bfd): Compare the size, inode, and device id fields.
4154         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4155         (gdb_bfd_ref): Likewise.
4156         (gdb_bfd_unref): Likewise.
4157
4158 2015-08-18  Pedro Alves  <palves@redhat.com>
4159
4160         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4161         target implements to_always_non_stop_p, call it.
4162         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4163         (x86_linux_create_target): Install it as to_always_non_stop_p
4164         method.
4165
4166 2015-08-17  Doug Evans  <dje@google.com>
4167
4168         * ui-out.c (default_ui_out_impl): Add comment.
4169
4170 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4171
4172         * d-exp.y (type_aggregate_p): New function.
4173         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4174         (classify_inner_name): Likewise.
4175         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4176
4177 2015-08-15  Doug Evans  <xdje42@gmail.com>
4178
4179         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4180         updated.
4181         (add_psymbol_to_list): Ditto.
4182
4183 2015-08-15  Doug Evans  <xdje42@gmail.com>
4184
4185         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4186         updated.  Call end_psymtab_common.
4187         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4188         end_psymtab_common.
4189         (build_type_psymtabs_reader): Ditto.
4190         * psympriv.h (sort_pst_symbols): Delete.
4191         (end_psymtab_common): Declare.
4192         * psymtab.c (sort_pst_symbols): Make static.
4193         (end_psymtab_common): New function.
4194         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4195
4196 2015-08-15  Doug Evans  <xdje42@gmail.com>
4197
4198         * defs.h (LANGUAGE_BITS): Define.
4199         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4200         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4201         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4202         (minimal_symbol_type): Add nr_minsym_types.
4203         (MINSYM_TYPE_BITS): Define.
4204         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4205         (domain_enum_tag): Add NR_DOMAINS.
4206         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4207         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4208
4209 2015-08-15  Doug Evans  <xdje42@gmail.com>
4210
4211         * objfiles.h: Whitespace cleanup.
4212         * psympriv.h: Whitespace cleanup.
4213         * psymtab.c: Whitespace/coding convention cleanup.
4214
4215 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4216
4217         * inferior.c (detach_inferior_command): Don't call
4218         any_thread_of_process when pid is 0.
4219         (kill_inferior_command): Likewise.
4220
4221 2015-08-14  Doug Evans  <xdje42@gmail.com>
4222
4223         PR gdb/11833
4224         * NEWS: Document new /s modifier for the disassemble command.
4225         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4226         (_initialize_cli_cmds): Update online docs of disassemble command.
4227         * disasm.c: #include "source.h".
4228         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4229         All uses updated.
4230         (dis_line_entry): New struct.
4231         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4232         (allocate_dis_line_table): New functions.
4233         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4234         (dump_insns): New arg end_pc.  All callers updated.
4235         (do_mixed_source_and_assembly_deprecated): Renamed from
4236         do_mixed_source_and_assembly.  All callers updated.
4237         (do_mixed_source_and_assembly): New function.
4238         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4239         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4240         DISASSEMBLY_SOURCE.  All uses updated.
4241         (DISASSEMBLY_SOURCE): New macro.
4242         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4243
4244 2015-08-14  Keith Seitz  <keiths@redhat.com>
4245
4246         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4247         `typename' to `type_name' to avoid C++ reserved word.
4248
4249 2015-08-14  Keith Seitz  <keiths@redhat.com>
4250
4251         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4252         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4253         silence ARI errors.
4254
4255 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4256
4257         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4258         xstrprintf instead of malloc and sprintf.
4259         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4260         (lex_one_token): Likewise.
4261
4262 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4263
4264         * solib-svr4.c (read_program_header): Add base_addr argument to
4265         report the runtime address of the segment.
4266         (find_program_interpreter): Update read_program_header call to pass
4267         a NULL pointer for the new argument.
4268         (scan_dyntag): Add ptr_addr argument to report the runtime address
4269         of the tag payload.
4270         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4271         read_program_header to get the base address of the dynamic segment.
4272         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4273         read_program_header.
4274         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4275
4276 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4277
4278         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4279
4280 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4281
4282         * d-exp.y (%union): Add voidval.
4283         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4284         name in the lexing stage.
4285         (PostfixExpression): Move symbol completion handling in grammar here
4286         from PrimaryExpression.
4287         (PrimaryExpression): Move routines to handle resolving identifier
4288         tokens in the grammar here from push_expression_name.
4289         (IdentifierExp): Remove the handling of alternating '.' and identifier
4290         tokens.
4291         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4292         (BasicType): Remove C-style typename rules.
4293         (d_type_from_name, d_module_from_name, push_variable)
4294         (push_fieldnames, push_type_name, push_module_name)
4295         (push_expression_name): Remove.
4296         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4297         (token_and_value): New type.
4298         (token_fifo, popping, name_obstack): New globals.
4299         (classify_name): New function.
4300         (classify_inner_name): Likewise.
4301         (yylex): Likewise.
4302         (d_parse): Initialize token_fifo, popping and name_obstack.
4303
4304 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4305
4306         * Makefile.in (SFILES): Add d-namespace.c.
4307         (COMMON_OBS): Add d-namespace.o.
4308         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4309         la_lookup_symbol_nonlocal callback function pointer.
4310         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4311         (d_lookup_nested_symbol): New declaration.
4312         * d-namespace.c: New file.
4313
4314 2015-08-13  Pedro Alves  <palves@redhat.com>
4315
4316         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4317         cleanup after the decref cleanup, not before.
4318
4319 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4320
4321         * ada-lang.c: Include namespace.h
4322         (aux_add_nonlocal_symbols): Fix a function name in comment.
4323         (ada_add_block_renamings): New.
4324         (add_nonlocal_symbols): Add global renamings handling.
4325         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4326         to...
4327         (ada_add_all_symbols): ... this new function.
4328         (ada_add_block_symbols): Try to match the input name against the
4329         "using directives list", perform a recursive symbol lookup on
4330         the matched declarations.
4331         * block.h (struct block): Move the_namespace to top-level as
4332         namespace_info. Remove the language_specific field.
4333         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4334         * buildsym.h (using_directives): Rename into...
4335         (local_using_directives): ... this.
4336         (global_using_directives): New.
4337         (struct context_stack): Rename the using_directives field into
4338         local_using_directives.
4339         * buildsym.c (finish_block_internal): Deal with the proper
4340         using directives repository (local or global).
4341         (prepare_for_building): Reset local_using_directives. Assert
4342         that there is no pending global using directive.
4343         (reset_symtab_globals): Reset global_using_directives and
4344         local_using_directives.
4345         (end_symtab_get_static_block): Don't ignore symtabs that have
4346         only using directives.
4347         (push_context): Update references to local_using_directives.
4348         (buildsym_init): Do not reset using_directives.
4349         * cp-support.c: Include namespace.h.
4350         * cp-support.h (struct using_direct): Move to namespace.h.
4351         (cp_add_using_directives): Move to namespace.h.
4352         * cp-namespace.c: Include namespace.h
4353         (cp_add_using_directive): Move to namespace.c, rename it to
4354         add_using_directive, add a "using_directives" argument and use
4355         it as the pending using directives repository.  All callers
4356         updated.
4357         * dwarf2read.c (using_directives): New.
4358         (read_import_statement): Call using_directives.
4359         (read_func_scope): Update references to local_using_directives.
4360         (read_lexical_block_scope): Likewise.
4361         (read_namespace): Update the heading comment, call
4362         using_directives.
4363         * namespace.h: New file.
4364         * namespace.c: New file.
4365         * Makefile.in (SFILES): Add namespace.c.
4366         (COMMON_OBS): Add namespace.o
4367
4368 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4369
4370         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4371         compute RETADDR.
4372
4373 2015-08-12  Keith Seitz  <keiths@redhat.com>
4374
4375         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4376         reserved C++ keyword "explicit" to "explicit_loc".
4377         * breakpoint.c (create_overlay_event_breakpoint)
4378         (create_longjmp_master_breakpoint)
4379         (create_std_terminate_master_breakpoint)
4380         (create_exception_master_breakpoint, update_static_tracepoint):
4381         Rename reserved C++ keyword "explicit" to "explicit_loc".
4382         * completer.c (collect_explicit_location_matches)
4383         (explicit_location_completer): Rename reserved C++ keyword
4384         "explicit" to "explicit_loc".
4385         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4386         (canonicalize_linespec, create_sals_line_offset)
4387         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4388         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4389         "explicit" to "explicit_loc".
4390         * location.c (struct event_location) <explicit>: Rename to
4391         "explicit_loc".
4392         (initialize_explicit_location, new_explicit_location)
4393         (explicit_location_to_string_internal, explicit_location_to_linespec):
4394         Rename reserved C++ keyword "explicit" to "explicit_loc".
4395         * location.h (explicit_location_to_string)
4396         (explicit_location_to_linespec, initialize_explicit_location)
4397         (new_explicit_location): Rename reserved C++ keyword "explicit"
4398         to "explicit_loc".
4399         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4400         keyword "explicit" to "explicit_loc".
4401
4402 2015-08-12  Keith Seitz  <keiths@redhat.com>
4403
4404         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4405         and only call decode_line_1 when it is non-NULL.
4406
4407 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4408
4409         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4410         location address is not meaningful.
4411         (breakpoint_address_is_meaningful): Update comment.
4412
4413 2015-08-11  Keith Seitz  <keiths@redhat.com>
4414
4415         * NEWS: Mention explicit locations.
4416         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4417         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4418         (_initialize_breakpoint): Update documentation for
4419         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4420
4421 2015-08-11  Keith Seitz  <keiths@redhat.com>
4422
4423         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4424         explicit locations, options "--source", "--function",
4425         "--label", and "--line".
4426
4427 2015-08-11  Keith Seitz  <keiths@redhat.com>
4428
4429         * completer.c: Include location.h.
4430         (enum match_type): New enum.
4431         (location_completer): Rename to ...
4432         (linespec_completer): ... this.
4433         (collect_explicit_location_matches, backup_text_ptr)
4434         (explicit_location_completer): New functions.
4435         (location_completer): "New" function; handle linespec
4436         and explicit location completions.
4437         (complete_line_internal): Remove all location completer-specific
4438         handling.
4439         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4440         (find_toplevel_char): Export.
4441         (linespec_parse_line_offset): Export.
4442         Issue error if STRING is not numerical.
4443         (gdb_get_linespec_parser_quote_characters): New function.
4444         * linespec.h (linespec_parse_line_offset): Declare.
4445         (get_gdb_linespec_parser_quote_characters): Declare.
4446         (is_ada_operator): Declare.
4447         (find_toplevel_char): Declare.
4448         (linespec_lexer_lex_keyword): Declare.
4449         * location.c (explicit_to_event_location): New function.
4450         (explicit_location_lex_one): New function.
4451         (string_to_explicit_location): New function.
4452         (string_to_event_location): Handle explicit locations.
4453         * location.h (explicit_to_event_location): Declare.
4454         (string_to_explicit_location): Declare.
4455
4456 2015-08-11  Keith Seitz  <keiths@redhat.com>
4457
4458         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4459         linespec into explicit location.
4460         * breakpoint.c (create_overlay_breakpoint)
4461         (create_longjmp_master_breakpoint)
4462         (create_std_terminate_master_breakpoint)
4463         (create_exception_master_breakpoint): Convert linespec into explicit
4464         location.
4465         (update_static_tracepoint): Convert linespec into explicit location.
4466         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4467         location.h.
4468         (struct linespec) <expression, expr_pc, source_filename>
4469         <function_name, label_name, line_offset>: Replace with ...
4470         <explicit>: ... this.
4471         <is_linespec>: New member.
4472         (PARSER_EXPLICIT): New accessor macro.
4473         (undefined_label_error): New function.
4474         (source_file_not_found_error): New function.
4475         (linespec_parse_basic): The parser result is now an explicit location.
4476         Use PARSER_EXPLICIT to access it.
4477         Use undefined_label_error.
4478         (canonicalize_linespec): Convert canonical linespec into explicit
4479         location.
4480         Move string representation of location to explicit_location_to_linespec
4481         and use it and explicit_location_to_string to save string
4482         representations of the canonical location.
4483         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4484         explicit location.  Update all references.
4485         (convert_explicit_location_to_sals): New function.
4486         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4487         result's explicit location.
4488         (linespec_state_constructor): Initialize is_linespec.
4489         Use PARSER_EXPLICIT.
4490         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4491         result.
4492         (event_location_to_sals): For linespec locations, set is_linespec.
4493         Handle explicit locations.
4494         (decode_objc): 'ls' contains an explicit location now. Update all
4495         references.
4496         (symtabs_from_filename): Use source_file_not_found_error.
4497         * location.c (struct event_location.u) <explicit>: New member.
4498         (initialize_explicit_location): New function.
4499         (initialize_event_location): Initialize explicit locations.
4500         (new_explicit_location, get_explicit_location)
4501         (get_explicit_location_const): New functions.
4502         (explicit_to_string_internal): New function; most of contents moved
4503         from canonicalize_linespec.
4504         (explicit_location_to_string): New function.
4505         (explicit_location_to_linespec): New function.
4506         (copy_event_location, delete_event_location)
4507         (event_location_to_string_const, event_location_empty_p): Handle
4508         explicit locations.
4509         * location.h (enum offset_relative_sign, struct line_offset): Move
4510         here from linespec.h.
4511         (enum event_location_type): Add EXPLICIT_LOCATION.
4512         (struct explicit_location): New structure.
4513         (explicit_location_to_string): Declare.
4514         (explicit_location_to_linespec): Declare.
4515         (new_explicit_location, get_explicit_locationp
4516         (get_explicit_location_const, initialize_explicit_location): Declare.
4517
4518 2015-08-11  Keith Seitz  <keiths@redhat.com>
4519
4520         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4521         linespec for stap probe to probe location.
4522         * breakpoint.c (create_longjmp_master_breakpoint)
4523         (create_exception_master_breakpoint): Likewise.
4524         (break_command_1): Remove local variable `arg_cp'.
4525         Check location type to set appropriate breakpoint ops methods.
4526         (trace_command): Likewise.
4527         * linespec.c (event_location_to_sals): Assert on probe locations.
4528         * location.c (EL_PROBE): Add macro definition.
4529         (new_probe_location, get_probe_location): New functions.
4530         (copy_event_location, delete_event_location, event_location_to_string)
4531         (string_to_event_location, event_location_empty_p): Handle probe
4532         locations.
4533         * location.h (enum event_location_type): Add PROBE_LOCATION.
4534         (new_probe_location, get_probe_location): Declare.
4535         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4536         Convert linespec into probe location.
4537
4538 2015-08-11  Keith Seitz  <keiths@redhat.com>
4539
4540         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4541         Convert linespec to address location.
4542         * linespec.c (canonicalize_linespec): Do not handle address
4543         locations here.
4544         (convert_address_location_to_sals): New function; contents moved
4545         from ...
4546         (convert_linespc_to_sals): ... here.
4547         (parse_linespec): Remove address locations from linespec grammar.
4548         Remove handling of address locations.
4549         (linespec_lex_to_end): Remove handling of address linespecs.
4550         (event_location_to_sals): Handle ADDRESS_LOCATION.
4551         (linespec_expression_to_pc): Export.
4552         * linespec.h (linespec_expression_to_pc): Add declaration.
4553         * location.c (struct event_location.u) <address>: New member.
4554         (new_address_location, get_address_location): New functions.
4555         (copy_event_location, delete_event_location, event_location_to_string)
4556         (string_to_event_location, event_location_empty_p): Handle address
4557         locations.
4558         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4559         (new_address_location, get_address_location): Declare.
4560         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4561         to address location.
4562         * spu-tdep.c (spu_catch_start): Likewise.
4563
4564 2015-08-11  Keith Seitz  <keiths@redhat.com>
4565
4566         * ax-gdb.c: Include location.h.
4567         (agent_command_1) Use linespec location instead of address
4568         string.
4569         * break-catch-throw.c: Include location.h.
4570         (re_set_exception_catchpoint): Use linespec locations instead
4571         of address strings.
4572         * breakpoint.c: Include location.h.
4573         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4574         (create_std_terminate_master_breakpoint)
4575         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4576         Use linespec location instead of address string.
4577         (print_breakpoint_location):  Use locations and
4578         event_location_to_string.
4579         Print extra_string for pending locations for non-MI streams.
4580         (print_one_breakpoint_location): Use locations and
4581         event_location_to_string.
4582         (init_raw_breakpoint_without_location): Initialize b->location.
4583         (create_thread_event_breakpoint): Use linespec location instead of
4584         address string.
4585         (init_breakpoint_sal): Likewise.
4586         Only save extra_string if it is non-NULL and not the empty string.
4587         Use event_location_to_string instead of `addr_string'.
4588         Constify `p' and `endp'.
4589         Use skip_spaces_const/skip_space_const instead of non-const versions.
4590         Copy the location into the breakpoint.
4591         If LOCATION is NULL, save the breakpoint address as a linespec location
4592         instead of an address string.
4593         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4594         event_location. All uses updated.
4595         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4596         (parse_breakpoint_sals): Use locations instead of address strings.
4597         Remove check for empty linespec with conditional.
4598         Refactor.
4599         (decode_static_tracepoint_spec): Make argument const and update
4600         function.
4601         (create_breakpoint): Change `arg' to a struct event_location and
4602         rename.
4603         Remove `copy_arg' and `addr_start'.
4604         If EXTRA_STRING is empty, set it to NULL.
4605         Don't populate `canonical' for pending breakpoints.
4606         Pass `extra_string' to find_condition_and_thread.
4607         Clear `extra_string' if `rest' was NULL.
4608         Do not error with "garbage after location" if setting a dprintf
4609         breakpoint.
4610         Copy the location into the breakpoint instead of an address string.
4611         (break_command_1): Use string_to_event_location and pass this to
4612         create_breakpoint instead of an address string.
4613         Check against `arg_cp' for a probe linespec.
4614         (dprintf_command): Use string_to_event_location and pass this to
4615         create_breakpoint instead of an address string.
4616         Throw an exception if no format string was specified.
4617         (print_recreate_ranged_breakpoint): Use event_location_to_string
4618         instead of address strings.
4619         (break_range_command, until_break_command)
4620         (init_ada_exception_breakpoint): Use locations instead
4621         of address strings.
4622         (say_where): Print out extra_string for pending locations.
4623         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4624         the breakpoint.
4625         (base_breakpoint_create_sals_from_location): Use struct event_location
4626         instead of address string.
4627         Remove `addr_start' and `copy_arg' parameters.
4628         (base_breakpoint_decode_location): Use struct event_location instead of
4629         address string.
4630         (bkpt_re_set): Use locations instead of address strings.
4631         Use event_location_empty_p to check for unset location.
4632         (bkpt_print_recreate): Use event_location_to_string instead of
4633         an address string.
4634         Print out extra_string for pending locations.
4635         (bkpt_create_sals_from_location, bkpt_decode_location)
4636         (bkpt_probe_create_sals_from_location): Use struct event_location
4637         instead of address string.
4638         (bkpt_probe_decode_location): Use struct event_location instead of
4639         address string.
4640         (tracepoint_print_recreate): Use event_location_to_string to
4641         recreate the tracepoint.
4642         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4643         (tracepoint_probe_create_sals_from_location)
4644         (tracepoint_probe_decode_location): Use struct event_location
4645         instead of address string.
4646         (dprintf_print_recreate): Use event_location_to_string to recreate
4647         the dprintf.
4648         (dprintf_re_set): Remove check for valid/missing format string.
4649         (strace_marker_create_sals_from_location)
4650         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4651         (update_static_tracepoint): Use struct event_location instead of
4652         address string.
4653         (location_to_sals): Likewise.
4654         Pass `extra_string' to find_condition_and_thread.
4655         For newly resolved pending breakpoint locations, clear the location's
4656         string representation.
4657         Assert that the breakpoint's condition string is NULL when
4658         condition_not_parsed.
4659         (breakpoint_re_set_default, create_sals_from_location_default)
4660         (decode_location_default, trace_command, ftrace_command)
4661         (strace_command, create_tracepoint_from_upload): Use locations
4662         instead of address strings.
4663         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4664         Use struct event_location instead of address string.
4665         Update all uses.
4666         <decode_location>: Likewise.
4667         (struct breakpoint) <addr_string>: Change to struct event_location
4668         and rename `location'.
4669         <addr_string_range_end>: Change to struct event_location and rename
4670         `location_range_end'.
4671         (create_breakpoint): Use struct event_location instead of address
4672         string.
4673         * cli/cli-cmds.c: Include location.h.
4674         (edit_command, list_command): Use locations instead of address strings.
4675         * elfread.c: Include location.h.
4676         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4677         * guile/scm-breakpoint.c: Include location.h.
4678         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4679         (gdbscm_register_breakpoint): Use locations instead of address
4680         strings.
4681         * linespec.c: Include location.h.
4682         (struct ls_parser) <stream>: Change to const char *.
4683         (PARSER_STREAM): Update.
4684         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4685         keywords must be followed by whitespace.
4686         (canonicalize_linespec): Save a linespec location into `canonical'.
4687         Save a canonical linespec into `canonical'.
4688         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4689         All uses updated.
4690         Update function description.
4691         (linespec_parser_new): Initialize `parser'.
4692         Update initialization of  parsing stream.
4693         (event_location_to_sals): New function.
4694         (decode_line_full): Change `argptr' to a struct event_location and
4695         rename it `location'.
4696         Use locations instead of address strings.
4697         Call event_location_to_sals instead of parse_linespec.
4698         (decode_line_1): Likewise.
4699         (decode_line_with_current_source, decode_line_with_last_displayed)
4700         Use locations instead of address strings.
4701         (decode_objc): Likewise.
4702         Change `argptr' to const char * and rename `arg'.
4703         (destroy_linespec_result): Delete the linespec result's location
4704         instead of freeing the address string.
4705         * linespec.h (struct linespec_result) <addr_string>: Change to
4706         struct event_location and rename to ...
4707         <location>: ... this.
4708         (decode_line_1, decode_line_full): Change `argptr' to struct
4709         event_location.  All callers updated.
4710         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4711         (mi_cmd_break_insert_1): Use locations instead of address strings.
4712         Throw an error if there was "garbage" at the end of the specified
4713         linespec.
4714         * probe.c: Include location.h.
4715         (parse_probes): Change `argptr' to struct event_location.
4716         Use event locations instead of address strings.
4717         * probe.h (parse_probes): Change `argptr' to struct event_location.
4718         * python/py-breakpoint.c: Include location.h.
4719         (bppy_get_location): Constify local variable `str'.
4720         Use event_location_to_string.
4721         (bppy_init): Use locations instead of address strings.
4722         * python/py-finishbreakpoint.c: Include location.h.
4723         (bpfinishpy_init): Remove local variable `addr_str'.
4724         Use locations instead of address strings.
4725         * python/python.c: Include location.h.
4726         (gdbpy_decode_line): Use locations instead of address strings.
4727         * remote.c: Include location.h.
4728         (remote_download_tracepoint): Use locations instead of address
4729         strings.
4730         * spu-tdep.c: Include location.h.
4731         (spu_catch_start): Remove local variable `buf'.
4732         Use locations instead of address strings.
4733         * tracepoint.c: Include location.h.
4734         (scope_info): Use locations instead of address strings.
4735         (encode_source_string): Constify parameter `src'.
4736         * tracepoint.h (encode_source_string): Likewise.
4737
4738 2015-08-11  Keith Seitz  <keiths@redhat.com>
4739
4740         * Makefile.in (SFILES): Add location.c.
4741         (HFILES_NO_SRCDIR): Add location.h.
4742         (COMMON_OBS): Add location.o.
4743         * linespec.c (linespec_lex_to_end): New function.
4744         * linespec.h (linespec_lex_to_end): Declare.
4745         * location.c: New file.
4746         * location.h: New file.
4747
4748 2015-08-11  Keith Seitz  <keiths@redhat.com>
4749
4750         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4751         Renamed to create_sals_from_location.
4752         <decode_linespec>: Renamed to decode_location.
4753         Update all callers.
4754         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4755         (create_sals_from_location_default): ... this.
4756         (addr_string_to_sals): Renamed to ...
4757         (location_to_sals): ... this.
4758         (decode_linespec_default): Renamed to ...
4759         (decode_location_default): ... this.
4760         (base_breakpoint_create_sals_from_address): Renamed to ...
4761         (base_breakpoint_create_sals_from_location): ... this.
4762         (bkpt_create_sals_from_address): Renamed to ...
4763         (bkpt_create_sals_from_location): ... this.
4764         (bkpt_decode_linespec): Renamed to ...
4765         (bkpt_decode_location): ... this.
4766         (bkpt_probe_create_sals_from_address): Renamed to ...
4767         (bkpt_probe_create_sals_from_location): ... this.
4768         (tracepoint_create_sals_from_address): Renamed to ...
4769         (tracepoint_create_sals_from_location): ... this.
4770         (tracepoint_decode_linespec): Renamed to ...
4771         (tracepoint_decode_location): ... this.
4772         (tracepoint_probe_create_sals_from_address): Renamed to ...
4773         (tracepoint_probe_create_sals_from_location): ... this.
4774         (tracepoint_probe_decode_linespec): Renamed to ...
4775         (tracepoint_probe_decode_location): ... this.
4776         (strace_marker_create_sals_from_address): Renamed to ...
4777         (strace_marker_create_sals_from_location): ... this.
4778         (decode_linespec_default): Renamed to ...
4779         (decode_location_default): ... this.
4780
4781 2015-08-10  Doug Evans  <dje@google.com>
4782             Keith Seitz  <keiths@redhat.com>
4783
4784         PR gdb/17960
4785         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4786         make_file_symbol_completion_list and made static.
4787         (make_file_symbol_completion_list): New function.
4788
4789 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4790
4791         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4792         trailing new-line at end of warning message.
4793         (proceed): Add i18n marker to error messages.
4794
4795 2015-08-07  Pedro Alves  <palves@redhat.com>
4796
4797         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4798
4799 2015-08-07  Pedro Alves  <palves@redhat.com>
4800
4801         * s390-linux-tdep.c (is_non_branch_ril)
4802         (s390_displaced_step_copy_insn): New functions.
4803         (s390_displaced_step_fixup): Update comment.
4804         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4805         gdbarch_displaced_step_copy_insn hook.
4806
4807 2015-08-07  Pedro Alves  <palves@redhat.com>
4808
4809         * infrun.c (displaced_step_prepare_throw): Return -1 if
4810         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4811         comment.
4812         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4813         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4814         in file.
4815         (ppc_displaced_step_copy_insn): New function.
4816         (ppc_displaced_step_fixup): Update comment.
4817         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4818         gdbarch_displaced_step_copy_insn hook.
4819         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4820         NULL return.
4821         * gdbarch.h: Regenerate.
4822
4823 2015-08-07  Pedro Alves  <palves@redhat.com>
4824
4825         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4826         field.
4827         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4828         Return false if dispaced stepping failed before.
4829         (resume): Pass the current inferior to
4830         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4831         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4832         displaced_stepping_failed flag, and fall back to an in-line
4833         step-over.
4834
4835 2015-08-07  Pedro Alves  <palves@redhat.com>
4836
4837         * darwin-nat.c (darwin_stop): Rename to ...
4838         (darwin_interrupt): ... this.
4839         (_initialize_darwin_inferior): Adjust.
4840         * gnu-nat.c (gnu_stop): Delete.
4841         (gnu_target): Don't install gnu_stop.
4842         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4843         (inf_ptrace_interrupt): ... this.
4844         (inf_ptrace_target): Adjust.
4845         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4846         target_stop.
4847         * linux-nat (linux_nat_stop): Rename to ...
4848         (linux_nat_interrupt): ... this.
4849         (linux_nat_stop): Reimplement.
4850         (linux_nat_add_target): Install linux_nat_interrupt.
4851         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4852         (nto_handle_sigint_twice): ... this.
4853         (nto_interrupt): Rename to ...
4854         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4855         target_stop.
4856         (procfs_wait): Adjust.
4857         (procfs_stop): Rename to ...
4858         (procfs_interrupt): ... this.
4859         (init_procfs_targets): Adjust.
4860         * procfs.c (procfs_stop): Rename to ...
4861         (procfs_interrupt): ... this.
4862         (procfs_target): Adjust.
4863         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4864         (m32r_interrupt): ... this.
4865         (init_m32r_ops): Adjust.
4866         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4867         (gdbsim_interrupt_inferior): ... this.
4868         (gdbsim_stop): Rename to ...
4869         (gdbsim_interrupt): ... this.
4870         (gdbsim_cntrl_c): Adjust.
4871         (init_gdbsim_ops): Adjust.
4872         * remote.c (sync_remote_interrupt): Adjust comments.
4873         (remote_stop_as): Rename to ...
4874         (remote_interrupt_as): ... this.
4875         (remote_stop): Adjust comment.
4876         (remote_interrupt): New function.
4877         (init_remote_ops): Install remote_interrupt.
4878         * target.c (target_interrupt): New function.
4879         * target.h (struct target_ops) <to_interrupt>: New field.
4880         (target_interrupt): New declaration.
4881         * windows-nat.c (windows_stop): Rename to ...
4882         (windows_interrupt): ... this.
4883         * target-delegates.c: Regenerate.
4884
4885 2015-08-07  Pedro Alves  <palves@redhat.com>
4886
4887         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4888         threads" as alternative to "switching back to stepped thread".
4889
4890 2015-08-07  Pedro Alves  <palves@redhat.com>
4891
4892         * NEWS: Mention "maint set/show target-non-stop".
4893         * breakpoint.c (update_global_location_list): Check
4894         target_is_non_stop_p instead of non_stop.
4895         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4896         * infrun.c (show_can_use_displaced_stepping)
4897         (can_use_displaced_stepping_p, start_step_over_inferior):
4898         Likewise.
4899         (internal_resume_ptid): New function.
4900         (resume): Use it.
4901         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4902         all-stop mode but the target is always in non-stop mode, start all
4903         the other threads that are implicitly resumed too.
4904         (for_each_just_stopped_thread, fetch_inferior_event)
4905         (adjust_pc_after_break, stop_all_threads): Check
4906         target_is_non_stop_p instead of non_stop.
4907         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4908         with the target always in non-stop mode.
4909         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4910         instead of non_stop.
4911         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4912         instead of non_stop.
4913         (keep_going_stepped_thread): Use internal_resume_ptid.
4914         (stop_waiting): If in all-stop mode, and the target is in non-stop
4915         mode, stop all threads.
4916         (keep_going_pass): Likewise, when starting a new in-line step-over
4917         sequence.
4918         * linux-nat.c (get_pending_status, select_event_lwp)
4919         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4920         target_is_non_stop_p instead of non_stop.
4921         (linux_nat_always_non_stop_p): New function.
4922         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4923         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4924         * target-delegates.c: Regenerate.
4925         * target.c (target_is_non_stop_p): New function.
4926         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4927         (maint_set_target_non_stop_command)
4928         (maint_show_target_non_stop_command): New functions.
4929         (_initilize_target): Install "maint set/show target-non-stop"
4930         commands.
4931         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4932         (target_non_stop_enabled): New declaration.
4933         (target_is_non_stop_p): New declaration.
4934
4935 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4936
4937         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4938         has a pending status, return true.
4939         * gdbthread.h: Include target/waitstatus.h.
4940         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4941         stop_pc>: New fields.
4942         (struct thread_info) <resumed>: New field.
4943         (set_resumed): Declare.
4944         * infrun.c: Include "event-loop.h".
4945         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4946         (infrun_async): New function.
4947         (clear_step_over_info): Add debug output.
4948         (displaced_step_in_progress_any_inferior): New function.
4949         (displaced_step_fixup): New returns int.
4950         (start_step_over): Handle in-line step-overs too.  Assert the
4951         thread is marked resumed.
4952         (resume_cleanups): Clear the thread's resumed flag.
4953         (resume): Set the thread's resumed flag.  Return early if the
4954         thread has a pending status.  Allow stepping a breakpoint with no
4955         signal.
4956         (proceed): Adjust to check 'resumed' instead of 'executing'.
4957         (clear_proceed_status_thread): If the thread has a pending status,
4958         and that status is a finished step, discard the pending status.
4959         (clear_proceed_status): Don't clear step_over_info here.
4960         (random_pending_event_thread, do_target_wait): New functions.
4961         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4962         do_target_wait.
4963         (wait_one): New function.
4964         (THREAD_STOPPED_BY): New macro.
4965         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4966         (thread_stopped_by_hw_breakpoint): New functions.
4967         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4968         functions.
4969         (handle_inferior_event): Also call set_resumed(false) on all
4970         threads implicitly stopped by the event.
4971         (restart_threads, resumed_thread_with_pending_status): New
4972         functions.
4973         (finish_step_over): If we were doing an in-line step-over before,
4974         and no longer are after trying to start a new step-over, restart
4975         all threads.  If we have multiple threads with pending events,
4976         save the current event and go through the event loop again.
4977         (handle_signal_stop): Return early if finish_step_over returns
4978         false.
4979         <random signal>: If we get a signal while stepping over a
4980         breakpoint in-line in non-stop mode, restart all threads.  Clear
4981         step_over_info before delivering the signal.
4982         (keep_going_stepped_thread): Use internal_error instead of
4983         gdb_assert.  Mark the thread as resumed.
4984         (keep_going_pass_signal): Assert the thread isn't already resumed.
4985         If some other thread is doing an in-line step-over, defer the
4986         resume.  If we just started a new in-line step-over, stop all
4987         threads.  Don't clear step_over_info.
4988         (infrun_async_inferior_event_handler): New function.
4989         (_initialize_infrun): Create async event handler with
4990         infrun_async_inferior_event_handler as callback.
4991         (infrun_async): New declaration.
4992         * target.c (target_async): New function.
4993         * target.h (target_async): Declare macro and readd as function
4994         declaration.
4995         * target/waitstatus.h (enum target_stop_reason)
4996         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4997         * thread.c (new_thread): Clear the new waitstatus field.
4998         (set_resumed): New function.
4999
5000 2015-08-07  Pedro Alves  <palves@redhat.com>
5001
5002         * infrun.c (keep_going_stepped_thread): New function, factored out
5003         from ...
5004         (switch_back_to_stepped_thread): ... here.
5005
5006 2015-08-07  Pedro Alves  <palves@redhat.com>
5007
5008         * infrun.c (currently_stepping): Extend intro comment.
5009         * target.h (target_resume): Extend intro comment.
5010
5011 2015-08-07  Pedro Alves  <palves@redhat.com>
5012
5013         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5014         of inferior_ptid.  If the stepped thread vanished, return 0
5015         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
5016         the current stop_pc in log message.  Clear trap_expected if the
5017         thread advanced.  Don't pass currently_stepping to
5018         do_target_resume.
5019
5020 2015-08-07  Pedro Alves  <palves@redhat.com>
5021
5022         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5023         * infrun.c (struct execution_control_state): Move higher up in the
5024         file.
5025         (reset_ecs): New function.
5026         (start_step_over): Now returns int.  Rewrite to use
5027         keep_going_pass_signal instead of manually starting a displaced step.
5028         (resume): Don't call set_running here.  If displaced stepping
5029         can't start now, clear trap_expected.
5030         (find_thread_needs_step_over): Delete function.
5031         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
5032         If the current thread needs a step over, push it in the step-over
5033         chain.  Don't set insert breakpoints nor call resume directly
5034         here.  Instead rewrite to use start_step_over and
5035         keep_going_pass_signal.
5036         (finish_step_over): New function.
5037         (handle_signal_stop): Call finish_step_over instead of
5038         start_step_over.
5039         (switch_back_to_stepped_thread): If the event thread needs another
5040         step-over do that first.  Use start_step_over.
5041         (keep_going_pass_signal): New function, factored out from ...
5042         (keep_going): ... here.
5043         (_initialize_infrun): Comment moved here.
5044         * thread.c (set_running_thread): New function.
5045         (set_running, finish_thread_state): Use set_running_thread.
5046
5047 2015-08-07  Pedro Alves  <palves@redhat.com>
5048
5049         * gdbthread.h (struct thread_info) <step_over_prev,
5050         step_over_next>: New fields.
5051         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5052         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5053         declarations.
5054         * infrun.c (struct displaced_step_request): Delete.
5055         (struct displaced_step_inferior_state) <step_request_queue>:
5056         Delete field.
5057         (displaced_step_prepare): Assert that trap_expected is set.  Use
5058         thread_step_over_chain_enqueue.  Split starting a new displaced
5059         step to ...
5060         (start_step_over): ... this new function.
5061         (resume): Assert the thread isn't waiting for a step over already.
5062         (proceed): Assert the thread isn't waiting for a step over
5063         already.
5064         (infrun_thread_stop_requested): Adjust to remove threads from the
5065         embedded step-over chain.
5066         (handle_inferior_event) <fork/vfork>: Call start_step_over after
5067         displaced_step_fixup.
5068         (handle_signal_stop): Call start_step_over after
5069         displaced_step_fixup.
5070         * infrun.h (step_over_queue_head): New declaration.
5071         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5072         (thread_step_over_chain_next, thread_is_in_step_over_chain)
5073         (thread_step_over_chain_enqueue)
5074         (thread_step_over_chain_remove): New functions.
5075         (delete_thread_1): Remove thread from the step-over chain.
5076
5077 2015-08-07  Pedro Alves  <palves@redhat.com>
5078
5079         * infrun.c (thread_still_needs_step_over): Rename to ...
5080         (thread_still_needs_step_over_bp): ... this.
5081         (enum step_over_what): New.
5082         (thread_still_needs_step_over): Reimplement.
5083
5084 2015-08-07  Pedro Alves  <palves@redhat.com>
5085
5086         * remote.c (remote_wait_as): If not waiting for a stop reply,
5087         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5088         requested, don't block waiting forever.
5089
5090 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5091
5092         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5093         waitstatus pointers instead of an ecs.  Adjust.
5094         (handle_inferior_event): Adjust caller.
5095
5096 2015-08-07  Pedro Alves  <palves@redhat.com>
5097
5098         * infrun.c (handle_inferior_event): If we get
5099         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5100         mode, mark all threads of the exiting process as not-executing.
5101         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5102         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5103         exiting process, if inferior_ptid still points at a process.
5104         * thread.c (struct current_thread_cleanup) <next>: New field.
5105         (current_thread_cleanup_chain): New global.
5106         (restore_current_thread_ptid_changed): New function.
5107         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5108         current_thread_cleanup_chain list.
5109         (make_cleanup_restore_current_thread): Add the cleanup data to the
5110         current_thread_cleanup_chain list.
5111         (_initialize_thread): Install restore_current_thread_ptid_changed
5112         as thread_ptid_changed observer.
5113
5114 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5115
5116         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5117         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5118         smaller than expected.
5119
5120 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5121
5122         * stack.c (get_frame_language): Moved ...
5123         * frame.c (get_frame_language): ... to here.
5124         * language.h (get_frame_language): Declaration moved to frame.h.
5125         * frame.h: Add language.h include, for language enum.
5126         (get_frame_language): Declaration moved from language.h.
5127         * language.c: Add frame.h include.
5128         * top.c: Add frame.h include.
5129         * symtab.h (struct obj_section): Declare.
5130         (struct cmd_list_element): Declare.
5131
5132 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5133
5134         * language.c (show_language_command): Find selected frame before
5135         asking for the language of that frame.
5136         (set_language_command): Likewise.
5137         * language.h (get_frame_language): Add frame parameter.
5138         * stack.c (get_frame_language): Add frame parameter, assert
5139         parameter is not NULL, update comment and reindent.
5140         * top.c (check_frame_language_change): Pass the selected frame
5141         into get_frame_language.
5142
5143 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5144
5145         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5146         (pt_btrace_insn_flags): New.
5147         (ftrace_add_pt): Call pt_btrace_insn_flags.
5148         * btrace.h (btrace_insn_flag): New.
5149         (btrace_insn) <flags>: New.
5150         * record-btrace.c (btrace_insn_history): Print insn prefix.
5151         * NEWS: Announce it.
5152
5153 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5154
5155         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5156         * configure: Regenerate.
5157
5158 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5159
5160         * Makefile.in (LIBICONV): Define.
5161         (CLIBS): Add LIBICONV.
5162         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5163         * configure: Regenerate.
5164
5165 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5166             Pedro Alves  <palves@redhat.com>
5167
5168         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5169         (arm_set_abi): Likewise.
5170         * ax-general.c (ax_print): Likewise.
5171         * c-exp.y (exp : string_exp): Likewise.
5172         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5173         (do_compile_dwarf_expr_to_c): Likewise.
5174         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5175         Likewise.
5176         * dwarf2expr.c (execute_stack_op): Likewise.
5177         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5178         (disassemble_dwarf_expression): Likewise.
5179         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5180         (read_array_order): Likewise.
5181         (abbrev_table_read_table): Likewise.
5182         (read_attribute_value): Likewise.
5183         (skip_unknown_opcode): Likewise.
5184         (dwarf_decode_macro_bytes): Likewise.
5185         (dwarf_decode_macros): Likewise.
5186         * eval.c (value_f90_subarray): Likewise.
5187         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5188         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5189         * infrun.c (handle_command): Likewise.
5190         * memory-map.c (memory_map_start_memory): Likewise.
5191         * osabi.c (set_osabi): Likewise.
5192         * parse.c (operator_length_standard): Likewise.
5193         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5194         single return point.
5195         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5196         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5197         (gdbpy_lookup_global_symbol): Likewise.
5198         * record-full.c (record_full_restore): Likewise.
5199         * regcache.c (regcache_register_status): Likewise.
5200         (regcache_raw_read): Likewise.
5201         (regcache_cooked_read): Likewise.
5202         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5203         * symtab.c (initialize_ordinary_address_classes): Likewise.
5204         * target-debug.h (target_debug_print_signals): Likewise.
5205         * utils.c (do_restore_current_language): Likewise.
5206
5207 2015-08-06  Clem Dickey  <clemd@acm.org>
5208
5209         PR python/17136
5210         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5211
5212 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5213
5214         * complaints.c (enum complaint_series): Add newlines and remove
5215         out of date comment.
5216         (struct complaints) <series>: Change type to enum
5217         complaint_series and remove out of date comment.
5218         (symfile_complaint_hook): Use equivalent enum value
5219         ISOLATED_MESSAGE instead of 0.
5220
5221 2015-08-06  Pedro Alves  <palves@redhat.com>
5222
5223         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5224         returned > 0.
5225
5226 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5227
5228         * common/agent.c (symbol_list) <required>: Remove.
5229
5230 2015-08-06  Pedro Alves  <palves@redhat.com>
5231
5232         * target/waitstatus.h (enum target_stop_reason)
5233         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5234
5235 2015-08-05  Pedro Alves  <palves@redhat.com>
5236             Joel Brobecker  <brobecker@adacore.com>
5237
5238         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5239         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5240         case where BS->STOP is not set.
5241
5242 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5243
5244         * nat/gdb_thread_db.h: Add copyright header.
5245         Protect against multiple inclusion.
5246
5247 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5248
5249         * aarch64-linux-nat.c (get_thread_id): Remove.
5250         (debug_reg_change_callback): Call ptid_get_lwp instead of
5251         get_thread_id.
5252         (fetch_gregs_from_thread): Likewise.
5253         (store_gregs_to_thread): Likewise.
5254         (fetch_fpregs_from_thread): Likewise.
5255         (store_fpregs_to_thread): Likewise.
5256         (aarch64_linux_get_debug_reg_capacity): Likewise.
5257         * arm-linux-nat.c (get_thread_id): Remove.
5258         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5259         * xtensa-linux-nat.c (get_thread_id): Remove.
5260         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5261         * arm-linux-nat.c (get_thread_id): Remove.
5262         (GET_THREAD_ID): Remove.
5263         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5264         (store_fpregs, fetch_regs, store_regs): Likewise.
5265         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5266         (fetch_vfp_regs, store_vfp_regs): Likewise.
5267         (arm_linux_read_description): Likewise.
5268         (arm_linux_get_hwbp_cap): Likewise.
5269         * xtensa-linux-nat.c (get_thread_id): Remove.
5270         (GET_THREAD_ID): Remove.
5271         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5272         GET_THREAD_ID.
5273
5274 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5275
5276         * python/py-linetable.c: Fix case of Linetable to LineTable
5277         in docstrings and code comments.
5278         * python/py-symtab.c: Same.
5279
5280 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5281
5282         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5283
5284 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5285
5286         PR gdb/18767
5287         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5288         use.
5289
5290 2015-08-04  Pedro Alves  <palves@redhat.com>
5291
5292         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5293         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5294         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5295         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5296         (td_thr_validate_ftype, td_thr_get_info_ftype)
5297         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5298         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5299         New typedefs.
5300         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5301         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5302         local macros and use them instead of verbose_dlsym and dlsym
5303         calls.
5304
5305 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5306
5307         * nios2-tdep.h: Include opcode/nios2.h here.
5308         (NIOS2_CDX_OPCODE_SIZE): New.
5309         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5310         * nios2-tdep.c: Don't include opcode/nios2.h here.
5311         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5312         4-byte read fails.
5313         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5314         (nios2_match_addi, nios2_match_orhi): Likewise.
5315         (nios2_match_stw, nios2_match_ldw): Likewise.
5316         (nios2_match_rdctl): Likewise.
5317         (nios2_match_stwm, nios2_match_ldwm): New.
5318         (nios2_match_branch): Add cases for R2 encodings.
5319         (nios2_match_jmpi, nios2_match_calli): Likewise.
5320         (nios2_match_jmpr, nios2_match_callr): Likewise.
5321         (nios2_match_break, nios2_match_trap): Likewise.
5322         (nios2_in_epilogue_p): Add R2 support.
5323         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5324         prologues.
5325         (nios2_breakpoint_from_pc): Handle R2 instructions.
5326         (nios2_get_next_pc): Likewise.  Adjust call to
5327         tdep->syscall_next_pc.
5328         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5329         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5330         instruction field macros instead of literal hex values.
5331         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5332         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5333         Use size field from OP instead of assuming all instructions
5334         are the same size.
5335         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5336
5337 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5338
5339         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5340         variable warning with some compilers.
5341
5342 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5343
5344         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5345         in comment.  Replace "rw" with "type".
5346         (arm_linux_remove_watchpoint): Change type of "rw" to
5347         "enum target_hw_bp_type".
5348
5349 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5350
5351         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5352         lookup_symbol.
5353         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5354         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5355         * mt-tdep.c (mt_skip_prologue): Likewise.
5356         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5357
5358 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5359
5360         * ada-exp.y (write_object_renaming): Replace struct
5361         ada_symbol_info with struct block_symbol.  Update field
5362         references accordingly.
5363         (block_lookup, select_possible_type_sym): Likewise.
5364         (find_primitive_type): Likewise.  Also update call to
5365         ada_lookup_symbol to extract the symbol itself.
5366         (write_var_or_type, write_name_assoc): Likewise.
5367         * ada-lang.h (struct ada_symbol_info): Remove.
5368         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5369         struct block_symbol.
5370         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5371         (ada_lookup_symbol): Return struct block_symbol instead of a
5372         mere symbol.
5373         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5374         with struct block_symbol.
5375         (resolve_subexp, ada_resolve_function, sort_choices,
5376         user_select_syms, is_nonfunction, add_defn_to_vec,
5377         num_defns_collected, defns_collected,
5378         symbols_are_identical_enums, remove_extra_symbols,
5379         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5380         ada_lookup_symbol_list, ada_iterate_over_symbols,
5381         ada_lookup_encoded_symbol, get_var_value): Likewise.
5382         (ada_lookup_symbol): Return a block_symbol instead of a mere
5383         symbol.  Replace struct ada_symbol_info with struct
5384         block_symbol.
5385         (ada_lookup_symbol_nonlocal): Likewise.
5386         (standard_lookup): Make block passing explicit through
5387         lookup_symbol_in_language.
5388         * ada-tasks.c (get_tcb_types_info): Update the calls to
5389         lookup_symbol_in_language to extract the mere symbol out of the
5390         returned value.
5391         (ada_tasks_inferior_data_sniffer): Likewise.
5392         * ax-gdb.c (gen_static_field): Likewise for the call to
5393         lookup_symbol.
5394         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5395         lookup functions.
5396         (gen_expr): Likewise.
5397         * c-exp.y: Likewise.  Remove uses of block_found.
5398         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5399         (classify_name): Likewise.  Rename the "sym" local variable to
5400         "bsym".
5401         * c-valprint.c (print_unpacked_pointer): Likewise.
5402         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5403         "sym" parameter from struct symbol * to struct block_symbol.
5404         Use it to remove uses of block_found.  Deal with struct
5405         block_symbol from lookup functions.
5406         (gcc_convert_symbol): Likewise.  Update the call to
5407         convert_symbol_sym.
5408         * compile/compile-object-load.c (compile_object_load): Deal with
5409         struct block_symbol from lookup functions.
5410         * cp-namespace.c (cp_lookup_nested_symbol_1,
5411         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5412         cp_search_static_and_baseclasses,
5413         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5414         cp_lookup_symbol_imports_or_template,
5415         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5416         lookup_namespace_scope, cp_lookup_nonlocal,
5417         find_symbol_in_baseclass): Return struct block_symbol instead of
5418         mere symbols and deal with struct block_symbol from lookup
5419         functions.
5420         * cp-support.c (inspect_type, replace_typedefs,
5421         cp_lookup_rtti_type): Deal with struct block_symbol from
5422         lookup functions.
5423         * cp-support.h (cp_lookup_symbol_nonlocal,
5424         cp_lookup_symbol_from_namespace,
5425         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5426         Return struct block_symbol instead of mere symbols.
5427         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5428         push_module_name):
5429         Deal with struct block_symbol from lookup functions.  Remove
5430         uses of block_found.
5431         * eval.c (evaluate_subexp_standard): Update call to
5432         cp_lookup_symbol_namespace.
5433         * f-exp.y: Deal with struct block_symbol from lookup functions.
5434         Remove uses of block_found.
5435         (yylex): Likewise.
5436         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5437         lookup_enum, lookup_template_type, check_typedef): Deal with
5438         struct block_symbol from lookup functions.
5439         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5440         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5441         (gdbscm_lookup_global_symbol): Likewise.
5442         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5443         * go-exp.y: Likewise.  Remove uses of block_found.
5444         (package_name_p, classify_packaged_name, classify_name):
5445         Likewise.
5446         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5447         * jv-exp.y (push_variable): Likewise.
5448         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5449         * language.c (language_bool_type): Likewise.
5450         * language.h (struct language_defn): Update
5451         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5452         than a mere symbol.
5453         * linespec.c (find_label_symbols): Deal with struct block_symbol
5454         from lookup functions.
5455         * m2-exp.y: Likewise.  Remove uses of block_found.
5456         (yylex): Likewise.
5457         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5458         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5459         * p-exp.y: Likewise.  Remove uses of block_found.
5460         (yylex): Likewise.
5461         * p-valprint.c (pascal_val_print): Likewise.
5462         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5463         block_found.
5464         * parser-defs.h (struct symtoken): Turn the SYM field into a
5465         struct block_symbol.
5466         * printcmd.c (address_info): Deal with struct block_symbol from
5467         lookup functions.
5468         * python/py-frame.c (frapy_read_var): Likewise.
5469         * python/py-symbol.c (gdbpy_lookup_symbol,
5470         gdbpy_lookup_global_symbol): Likewise.
5471         * skip.c (skip_function_command): Likewise.
5472         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5473         block_symbol instead of a mere symbol.
5474         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5475         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5476         * solib.c (solib_global_lookup): Likewise.
5477         * solist.h (solib_global_lookup): Likewise.
5478         (struct target_so_ops): Update lookup_lib_global_symbol to
5479         return a struct block_symbol rather than a mere symbol.
5480         * source.c (select_source_symtab): Deal with struct block_symbol
5481         from lookup functions.
5482         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5483         Likewise.
5484         * symfile.c (set_initial_language): Likewise.
5485         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5486         block_symbol.
5487         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5488         (struct symbol_cache_slot): Turn the FOUND field into a struct
5489         block_symbol.
5490         (block_found): Remove.
5491         (eq_symbol_entry): Update to deal with struct block_symbol in
5492         cache slots.
5493         (symbol_cache_lookup): Return a struct block_symbol rather than
5494         a mere symbol.
5495         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5496         appropriately the cache slots.  Update callers.
5497         (symbol_cache_dump): Update cache slots handling to the type
5498         change.
5499         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5500         lookup_symbol_aux, lookup_local_symbol,
5501         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5502         lookup_symbol_in_objfile_symtabs,
5503         lookup_symbol_in_objfile_from_linkage_name,
5504         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5505         lookup_symbol_in_static_block, lookup_static_symbol,
5506         lookup_global_symbol):
5507         Return a struct block_symbol rather than a mere symbol.  Deal
5508         with struct block_symbol from other lookup functions.  Remove
5509         uses of block_found.
5510         (lookup_symbol_in_block): Remove uses of block_found.
5511         (struct global_sym_lookup_data): Turn the RESULT field into a
5512         struct block_symbol.
5513         (lookup_symbol_global_iterator_cb): Update references to the
5514         RESULT field.
5515         (search_symbols): Deal with struct block_symbol from lookup
5516         functions.
5517         * symtab.h (struct block_symbol): New structure.
5518         (block_found): Remove.
5519         (lookup_symbol_in_language, lookup_symbol,
5520         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5521         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5522         lookup_global_symbol_from_objfile): Return a struct block_symbol
5523         rather than just a mere symbol.  Update comments to remove
5524         mentions of block_found.
5525         * valops.c (find_function_in_inferior,
5526         value_struct_elt_for_reference, value_maybe_namespace_elt,
5527         value_of_this):  Deal with struct block_symbol from lookup
5528         functions.
5529         * value.c (value_static_field, value_fn_field): Likewise.
5530
5531 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5532
5533         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5534         instead of integer.
5535
5536 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5537             Pedro Alves  <palves@redhat.com>
5538
5539         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5540         type or value instead of integer.
5541         (aarch64_linux_insert_watchpoint): Likewise.
5542         (aarch64_linux_remove_watchpoint): Likewise.
5543         * ada-lang.c (ada_op_print_tab): Likewise.
5544         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5545         (amd64_linux_syscall_record_common): Likewise.
5546         * arch-utils.c (target_byte_order_user): Likewise.
5547         (default_byte_order): Likewise.
5548         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5549         (arm_linux_get_hwbp_type): Likewise.
5550         (arm_linux_hw_watchpoint_initialize): Likewise.
5551         (arm_linux_insert_watchpoint): Likewise.
5552         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5553         (arm_linux_syscall_record): Likewise.
5554         * breakpoint.c (update_watchpoint): Likewise.
5555         (breakpoint_here_p): Likewise.
5556         (bpstat_print): Likewise.
5557         (enable_breakpoint_disp): Likewise.
5558         * c-lang.c (c_op_print_tab): Likewise.
5559         * cli/cli-decode.c (add_info_alias): Likewise.
5560         * d-lang.c (d_op_print_tab): Likewise.
5561         * eval.c (evaluate_subexp_standard): Likewise.
5562         * f-exp.y (dot_ops): Likewise.
5563         (f77_keywords): Likewise.
5564         * f-lang.c (f_op_print_tab): Likewise.
5565         * go-lang.c (go_op_print_tab): Likewise.
5566         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5567         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5568         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5569         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5570         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5571         (struct scm_from_stringn_data): Likewise.
5572         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5573         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5574         (ia64_linux_remove_watchpoint): Likewise.
5575         (ia64_linux_can_use_hw_breakpoint): Likewise.
5576         * infrun.c (print_stop_event): Likewise.
5577         * jv-lang.c (java_op_print_tab): Likewise.
5578         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5579         * linux-nat.h (struct lwp_info): Likewise.
5580         * linux-thread-db.c (enable_thread_event): Likewise.
5581         * m2-lang.c (m2_op_print_tab): Likewise.
5582         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5583         (mi_cmd_stack_list_variables): Likewise.
5584         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5585         * mi/mi-out.c (mi_table_begin): Likewise.
5586         (mi_table_header): Likewise.
5587         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5588         (mips_linux_insert_watchpoint): Likewise.
5589         (mips_linux_remove_watchpoint): Likewise.
5590         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5591         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5592         (mips_linux_watch_type_to_irw): Likewise.
5593         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5594         (procfs_insert_hw_watchpoint): Likewise.
5595         (procfs_remove_hw_watchpoint): Likewise.
5596         (procfs_hw_watchpoint): Likewise.
5597         (procfs_can_use_hw_breakpoint): Likewise.
5598         (procfs_remove_hw_watchpoint): Likewise.
5599         (procfs_insert_hw_watchpoint): Likewise.
5600         * p-lang.c (pascal_op_print_tab): Likewise.
5601         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5602         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5603         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5604         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5605         (procfs_insert_watchpoint): Likewise.
5606         (procfs_remove_watchpoint): Likewise.
5607         * psymtab.c (recursively_search_psymtabs): Likewise.
5608         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5609         (m32r_insert_watchpoint): Likewise.
5610         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5611         (mips_insert_watchpoint): Likewise.
5612         (mips_remove_watchpoint): Likewise.
5613         * remote.c (watchpoint_to_Z_packet): Likewise.
5614         (remote_insert_watchpoint): Likewise.
5615         (remote_remove_watchpoint): Likewise.
5616         (remote_check_watch_resources): Likewise.
5617         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5618         (s390_remove_watchpoint): Likewise.
5619         (s390_can_use_hw_breakpoint): Likewise.
5620         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5621         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5622         * target.h (struct target_ops): Likewise.
5623         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5624         * ui-out.c (struct ui_out_hdr): Likewise.
5625         (append_header_to_list): Likewise.
5626         (get_next_header): Likewise.
5627         (verify_field): Likewise.
5628         (ui_out_begin): Likewise.
5629         (ui_out_field_int): Likewise.
5630         (ui_out_field_fmt_int): Likewise.
5631         (ui_out_field_skip): Likewise.
5632         (ui_out_field_string): Likewise.
5633         (ui_out_field_fmt): Likewise.
5634         * varobj.c (new_variable): Likewise.
5635         * x86-nat.c (x86_insert_watchpoint): Likewise.
5636         (x86_remove_watchpoint): Likewise.
5637         (x86_can_use_hw_breakpoint): Likewise.
5638         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5639         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5640         previously anonymous enumeration type..
5641         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5642         value.
5643         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5644         (target_debug_print_enum_bptype): New.
5645         * target-delegates.c: Regenerate.
5646
5647 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5648
5649         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5650         already says and disallow non-stack memory writes in the prologue.
5651
5652 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5653
5654         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5655         reflect how current GCC emits stack overflow checks.  Match
5656         both trap and break instructions for backward compatbility.
5657         Disallow other trap and break instructions in the prologue.
5658
5659 2015-07-30  Pedro Alves  <palves@redhat.com>
5660
5661         PR threads/18600
5662         * linux-nat.c (wait_lwp): Report to the core when thread group
5663         leader exits.
5664
5665 2015-07-30  Pedro Alves  <palves@redhat.com>
5666             Simon Marchi  <simon.marchi@ericsson.com>
5667
5668         PR threads/18600
5669         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5670         mark the new thread as resumed.  Remove STOPPING parameter.
5671         (wait_lwp): Adjust call to linux_handle_extended_wait.
5672         (linux_nat_filter_event): Adjust call to
5673         linux_handle_extended_wait.
5674         (resume_stopped_resumed_lwps): Add debug output.
5675
5676 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5677
5678         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5679         isize argument.
5680         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5681         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5682         gdbarch_fast_tracepoint_valid_at.
5683         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5684         * gdbarch.h: Regenerate.
5685         * gdbarch.c: Regenerate.
5686         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5687         argument.  Do not set it.
5688         * remote.c (remote_download_tracepoint): Adjust call to
5689         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5690         the instruction length.
5691
5692 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5693
5694         * arm-tdep.h (enum gdb_regnum): Move it to ...
5695         * arch/arm.h: ... here.  New file.
5696         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5697
5698 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5699
5700         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5701         Change its type to int *.
5702         (decode_br): Rename link argument to is_blr.  Change its type to
5703         int *.
5704         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5705         int *.
5706         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5707         int *.  Set is_tbnz to either 1 or 0.
5708         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5709         new variables is_cbnz and is_tbnz.  Adjust call to
5710         aarch64_decode_cb and aarch64_decode_tb.
5711
5712 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5713
5714         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5715         parameter.
5716         (mips_linux_new_thread): Likewise.
5717         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5718
5719 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5720
5721         * top.c: Include "tui/tui.h".
5722         (undo_terminal_modifications_before_exit): New static function.
5723         (quit_force): Use it.
5724
5725 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5726
5727         * target.c (terminal_state): Initialize to terminal_is_ours.
5728
5729 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5730
5731         PR record/18691
5732         * dcache.c (dcache_read_memory_partial): Call
5733         raw_memory_xfer_partial.
5734         * target.c (raw_memory_xfer_partial): Make it non-static.
5735         * target.h (raw_memory_xfer_partial): Declare.
5736
5737 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5738
5739         * c-valprint.c (c_val_print_array): Consider addressable memory
5740         unit size.
5741         (c_val_print_ptr): Likewise.
5742         (c_val_print_int): Likewise.
5743         * findvar.c (read_frame_register_value): Likewise.
5744         * valarith.c (find_size_for_pointer_math): Likewise.
5745         (value_ptrdiff): Likewise.
5746         (value_subscripted_rvalue): Likewise.
5747         * valops.c (read_value_memory): Likewise (and rename variables).
5748         (value_assign): Likewise.
5749         (value_repeat): Likewise.
5750         (value_array): Likewise.
5751         (value_slice): Likewise.
5752         * valprint.c (generic_val_print_ptr): Likewise.
5753         (generic_val_print_enum): Likewise.
5754         (generic_val_print_bool): Likewise.
5755         (generic_val_print_int): Likewise.
5756         (generic_val_print_char): Likewise.
5757         (generic_val_print_float): Likewise.
5758         (generic_val_print_decfloat): Likewise.
5759         (generic_val_print_complex): Likewise.
5760         (val_print_scalar_formatted): Likewise.
5761         (val_print_array_elements): Likewise.
5762         * value.c (set_value_parent): Likewise.
5763         (value_contents_copy_raw): Likewise.
5764         (set_internalvar_component): Likewise.
5765         (value_primitive_field): Likewise.
5766         (value_fetch_lazy): Likewise.
5767         * value.h (read_value_memory): Update comment.
5768
5769 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5770
5771         * value.c (get_value_arch): New function.
5772         * value.h (get_value_arch): New declaration.
5773
5774 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5775
5776         * value.c (struct value): Update comments.
5777
5778 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5779
5780         * gdbtypes.c (type_length_units): New function.
5781         * gdbtypes.h (type_length_units): New declaration.
5782         (struct type) <length>: Update comment.
5783
5784 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5785
5786         * valprint.c (generic_val_print): Factor out complex
5787         printing code to ...
5788         (generic_val_print_complex): ... this new function.
5789
5790 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5791
5792         * valprint.c (generic_val_print): Factor out decfloat
5793         printing code to ...
5794         (generic_val_print_decfloat): ... this new function.
5795
5796 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5797
5798         * valprint.c (generic_val_print): Factor out float
5799         printing code to ...
5800         (generic_val_print_float): ... this new function.
5801
5802 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5803
5804         * valprint.c (generic_val_print): Factor out char
5805         printing code to ...
5806         (generic_val_print_char): ... this new function.
5807
5808 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5809
5810         * valprint.c (generic_val_print): Factor out integer
5811         printing code to ...
5812         (generic_val_print_int): ... this new function.
5813
5814 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5815
5816         * valprint.c (generic_val_print): Factor out bool
5817         printing code to ...
5818         (generic_val_print_bool): ... this new function.
5819
5820 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5821
5822         * valprint.c (generic_val_print): Factor out function/method
5823         printing code to ...
5824         (generic_val_print_func): ... this new function.
5825
5826 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5827
5828         * valprint.c (generic_val_print): Factor out flags
5829         printing code to ...
5830         (generic_val_print_flags): ... this new function.
5831
5832 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5833
5834         * valprint.c (generic_val_print): Factor out enum
5835         printing code to ...
5836         (generic_val_print_enum): ... this new function.
5837
5838 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5839
5840         * valprint.c (generic_val_print): Factor out reference
5841         printing code to ...
5842         (generic_val_print_ref): ... this new function.
5843
5844 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5845
5846         * valprint.c (generic_val_print): Factor out memberptr
5847         printing code to ...
5848         (generic_val_print_memberptr): ... this new function.
5849
5850 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5851
5852         * valprint.c (generic_val_print): Factor out pointer
5853         printing code to ...
5854         (generic_val_print_ptr): ... this new function.
5855
5856 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5857
5858         * valprint.c (generic_val_print): Factor out array
5859         printing code to ...
5860         (generic_val_print_array): ... this new function.
5861
5862 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5863
5864         * valprint.c (generic_val_print): Factor out
5865         print_unpacked_pointer code to ...
5866         (print_unpacked_pointer): ... this new function.
5867
5868 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5869
5870         * event-top.c (handle_sigterm): Don't inspect
5871         target_can_async_p.  Always set the quit flag and always mark
5872         the async signal handler.
5873
5874 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5875
5876         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5877
5878 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5879
5880         * remote.c (read_ptid): Return null_ptid when no thread id
5881         is found.
5882         (remote_current_thread): Add log warning for malformed
5883         qC reply.
5884         (remote_start_remote): Add log warning when current thread
5885         not found.
5886
5887 2015-07-24  Pedro Alves  <palves@redhat.com>
5888
5889         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5890         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5891         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5892
5893 2015-07-24  Pedro Alves  <palves@redhat.com>
5894
5895         PR gdb/18717
5896         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5897         is resumed, and extend the debug log.
5898
5899 2015-07-24  Pedro Alves  <palves@redhat.com>
5900
5901         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5902
5903 2015-07-24  Pedro Alves  <palves@redhat.com>
5904
5905         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5906         sys/ptrace.h.
5907         * alpha-linux-nat.c: Likewise.
5908         * amd64-linux-nat.c: Likewise.
5909         * arm-linux-nat.c: Likewise.
5910         * hppa-linux-nat.c: Likewise.
5911         * i386-linux-nat.c: Likewise.
5912         * ia64-linux-nat.c: Likewise.
5913         * linux-fork.c: Likewise.
5914         * linux-nat.c: Likewise.
5915         * m32r-linux-nat.c: Likewise.
5916         * m68klinux-nat.c: Likewise.
5917         * mips-linux-nat.c: Likewise.
5918         * nat/linux-btrace.c: Likewise.
5919         * nat/linux-ptrace.c: Likewise.
5920         * nat/linux-ptrace.h
5921         * nat/mips-linux-watch.c: Likewise.
5922         * nat/x86-linux-dregs.c: Likewise.
5923         * ppc-linux-nat.c: Likewise.
5924         * s390-linux-nat.c: Likewise.
5925         * spu-linux-nat.c: Likewise.
5926         * tilegx-linux-nat.c: Likewise.
5927         * x86-linux-nat.c: Likewise.
5928         * xtensa-linux-nat.c: Likewise.
5929
5930 2015-07-24  Pedro Alves  <palves@redhat.com>
5931
5932         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5933         __ptrace_request as first parameter type instead of int.
5934         (PTRACE_TYPE_ARG1): Define.
5935         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5936         that casts first argument to PTRACE_TYPE_ARG1.
5937         * config.in: Regenerate.
5938         * configure: Regenerate.
5939
5940 2015-07-24  Pedro Alves  <palves@redhat.com>
5941
5942         * gdb_ptrace.h: Move ...
5943         * nat/gdb_ptrace.h: ... here.
5944         * inf-ptrace.c: Adjust.
5945
5946 2015-07-24  Pedro Alves  <palves@redhat.com>
5947
5948         * acinclude.m4: Include ptrace.m4.
5949         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5950         * ptrace.m4: ... to this new file.
5951
5952 2015-07-23  Doug Evans  <dje@google.com>
5953
5954         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5955         (load_cu): Handle dummy CUs.
5956         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5957         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5958
5959 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5960
5961         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5962         documentation to say that it returns a list rather than
5963         a FrozenSet.
5964         (linetable_object_methods): Update the docstring of the
5965         "source_line" entry.
5966
5967 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5968
5969         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5970         type to the recursive call instead of the original (maybe
5971         TYPE_CODE_TYPEDEF) type.
5972
5973 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5974
5975         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5976         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5977         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5978
5979 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5980
5981         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5982         Move it to nat/aarch64-linux-hw-point.c.
5983         (aarch64_linux_child_post_startup_inferior): Update.
5984         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5985         New function.
5986         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5987         Declare it.
5988
5989 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5990
5991         * common/btrace-common.c (btrace_data_append): Change case label.
5992
5993 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5994
5995         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5996         Re-indent the code.
5997         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5998         "unsigned long long".
5999
6000 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
6001
6002         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6003         to be set for SEC_ALLOC sections too.
6004
6005 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6006
6007         * Makefile.in (HFILES_NO_SRCDIR): Add
6008         nat/aarch64-linux-hw-point.h.
6009         (aarch64-linux-hw-point.o): New rule.
6010         * nat/aarch64-linux-hw-point.h: New file.
6011         * nat/aarch64-linux-hw-point.c: New file.
6012         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6013         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6014         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6015         (AARCH64_HWP_ALIGNMENT): Likewise.
6016         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6017         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6018         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6019         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6020         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6021         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6022         (struct aarch64_debug_reg_state): Likewise.
6023         (struct arch_lwp_info): Likewise.
6024         (aarch64_linux_set_debug_regs): Likewise.
6025         (aarch64_notify_debug_reg_change): Remove static.
6026         (aarch64_align_watchpoint): Likewise.
6027         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6028         (aarch64_watchpoint_length): Likewise.
6029         (aarch64_point_encode_ctrl_reg): Likewise
6030         (aarch64_point_is_aligned): Likewise.
6031         (aarch64_dr_state_insert_one_point): Likewise.
6032         (aarch64_dr_state_remove_one_point): Likewise.
6033         (aarch64_handle_breakpoint): Likewise.
6034         (aarch64_handle_aligned_watchpoint): Likewise.
6035         (aarch64_handle_unaligned_watchpoint): Likewise.
6036         (aarch64_handle_watchpoint): Likewise.
6037         * config/aarch64/linux.mh (NAT_FILE): Add
6038         aarch64-linux-hw-point.o.
6039
6040 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6041
6042         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6043         state and don't call aarch64_get_debug_reg_state.  All callers
6044         update.
6045         (aarch64_linux_insert_hw_breakpoint): Call
6046         aarch64_get_debug_reg_state earlier.
6047         (aarch64_linux_remove_hw_breakpoint): Likewise.
6048         (aarch64_handle_aligned_watchpoint): Add argument state and
6049         don't call aarch64_get_debug_reg_state.  All callers update.
6050         (aarch64_handle_unaligned_watchpoint): Likewise.
6051         (aarch64_handle_watchpoint): Add argument state.
6052         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6053         earlier.
6054         (aarch64_linux_remove_watchpoint): Likewise.
6055
6056 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6057
6058         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6059         debug_printf.
6060         (aarch64_handle_unaligned_watchpoint): Likewise.
6061
6062 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6063
6064         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6065         argument type's type to 'enum target_hw_bp_type'.
6066         (aarch64_dr_state_remove_one_point): Likewise.
6067         (aarch64_handle_breakpoint): Likewise.
6068         (aarch64_linux_insert_hw_breakpoint): Likewise.
6069         (aarch64_linux_remove_hw_breakpoint): Likewise.
6070         (aarch64_handle_aligned_watchpoint): Likewise.
6071
6072 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6073
6074         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6075         ptid_get_pid instead of get_thread_id.
6076
6077 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6078
6079         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6080         (add_current_inferior_and_thread): Don't initialise ptid.
6081
6082 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6083
6084         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6085         unavailable if invalid.
6086
6087 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6088
6089         Revert the previous 6 commits:
6090         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6091         Move gdb_regex* to common/
6092         Prepare linux_find_memory_regions_full & co. for move
6093         Move linux_find_memory_regions_full & co.
6094         gdbserver build-id attribute generator
6095         Validate symbol file using build-id
6096
6097 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6098             Jan Kratochvil  <jan.kratochvil@redhat.com>
6099
6100         Validate symbol file using build-id.
6101         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6102         and 'show validate-build-id'.  Add build-id attribute.
6103         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6104         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6105         * solib-frv.c (_initialize_frv_solib): Ditto.
6106         * solib-spu.c (set_spu_solib_ops): Ditto.
6107         * solib-svr4.c: Include rsp-low.h.
6108         (NOTE_GNU_BUILD_ID_NAME): New define.
6109         (svr4_validate): New function.
6110         (svr4_copy_library_list): Duplicate field build_id.
6111         (library_list_start_library): Parse 'build-id' attribute.
6112         (svr4_library_attributes): Add 'build-id' attribute.
6113         (_initialize_svr4_solib): Assign validate value.
6114         * solib-target.c (solib.h): Include.
6115         (_initialize_solib_target): Assign validate value.
6116         * solib.c (validate_build_id, show_validate_build_id): New.
6117         (solib_map_sections): Use ops->validate.
6118         (clear_so): Free build_id.
6119         (default_solib_validate): New function.
6120         (_initialize_solib): Add "validate-build-id".
6121         * solib.h (default_solib_validate): New declaration.
6122         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6123         (target_so_ops): New field 'validate'.
6124
6125 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6126             Jan Kratochvil  <jan.kratochvil@redhat.com>
6127
6128         gdbserver build-id attribute generator.
6129         * features/library-list-svr4.dtd (library-list-svr4): New
6130         'build-id' attribute.
6131
6132 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6133             Jan Kratochvil  <jan.kratochvil@redhat.com>
6134
6135         Move linux_find_memory_regions_full & co.
6136         * linux-tdep.c (nat/linux-maps.h): Include.
6137         (gdb_regex.h): Remove the include.
6138         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6139         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6140         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6141         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6142         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6143         and target/target.h.
6144         (struct smaps_vmflags, read_mapping, decode_vmflags)
6145         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6146         (linux_find_memory_regions_full): Move from linux-tdep.c.
6147         * nat/linux-maps.h (read_mapping): New declaration.
6148         (linux_find_memory_region_ftype, enum filterflags): Moved from
6149         linux-tdep.c.
6150         (linux_find_memory_regions_full): New declaration.
6151         * target.c (target/target-utils.h): Include.
6152         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6153         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6154         definitions to target/target-utils.c.
6155         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6156         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6157         from target.c.
6158         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6159         (read_alloc): New declaration.
6160         (read_stralloc_func_ftype): New typedef.
6161         (read_stralloc): New declaration.
6162         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6163
6164 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6165             Jan Kratochvil  <jan.kratochvil@redhat.com>
6166
6167         Prepare linux_find_memory_regions_full & co. for move.
6168         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6169         (linux_find_memory_regions_full): Change signature and prepare
6170         for moving to linux-maps.
6171         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6172         (linux_find_memory_regions_thunk): New.
6173         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6174         (linux_find_memory_regions_gdb): New.
6175         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6176         (linux_make_mappings_corefile_notes): Use
6177         linux_find_memory_regions_gdb.
6178         * target.c (read_alloc_pread_ftype): New typedef.
6179         (target_fileio_read_alloc_1_pread): New function.
6180         (read_alloc): Refactor from target_fileio_read_alloc_1.
6181         (read_stralloc_func_ftype): New typedef.
6182         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6183         (read_stralloc): Refactored from target_fileio_read_stralloc.
6184         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6185
6186 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6187
6188         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6189         common/gdb_regex.h.
6190         (COMMON_OBS): Add gdb_regex.o.
6191         (gdb_regex.o): New.
6192         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6193         --without-included-regex and USE_INCLUDED_REGEX.
6194         * common/gdb_regex.c: New file from utils.c functions.
6195         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6196         file wrapping define name.
6197         * configure: Rebuilt.
6198         * configure.ac (gdb_use_included_regex, --without-included-regex)
6199         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6200         * gdb_regex.h: Move it to common/gdb_regex.h.
6201         * utils.c: Remove include gdb_regex.h.
6202         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6203         (compile_rx_or_error): Move them to common/gdb_regex.c.
6204
6205 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6206             Jan Kratochvil  <jan.kratochvil@redhat.com>
6207
6208         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6209         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6210         common/target-utils.h.
6211         (COMMON_OBS): Add target-utils.o.
6212         (linux-maps.o, target-utils.o): New.
6213         * target/target-utils.c: New file.
6214         * target/target-utils.h: New file.
6215         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6216         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6217         * nat/linux-maps.c: New file.
6218         * nat/linux-maps.h: New file.
6219
6220 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6221             Pedro Alves <palves@redhat.com>
6222
6223         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6224         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6225         (perf_event_read_bts): Change the type of SIZE and READ.
6226         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6227         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6228         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6229         mmap page.
6230         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6231         buffer size to UINT_MAX.
6232         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6233         DATA_TAIL.
6234         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6235         <last_head>: Change type.
6236         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6237         * common/btrace-common.c (btrace_data_append): Change the type of
6238         SIZE.
6239         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6240         check.
6241
6242 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6243
6244         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6245         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6246         with check_typedef.
6247         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6248         (ada_array_length): Likewise.
6249         (find_parallel_type_by_descriptive_type): Likewise.
6250         (ada_check_typedef): Likewise.
6251         * arm-tdep.c (arm_return_in_memory): Likewise.
6252         * ax-gdb.c (gen_trace_static_fields): Likewise.
6253         (gen_struct_ref_recursive): Likewise.
6254         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6255         (variable: block COLONCOLON name): Likewise.
6256         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6257         * c-lang.c (classify_type): Likewise.
6258         * c-typeprint.c (c_print_type): Likewise.
6259         (c_print_typedef): Likewise.
6260         (c_type_print_base): Likewise.
6261         * c-valprint.c (c_val_print): Likewise.
6262         * compile/compile-c-types.c (convert_type): Likewise.
6263         * compile/compile-object-load.c (get_out_value_type): Likewise.
6264         * completer.c (add_struct_fields): Likewise.
6265         (expression_completer): Likewise.
6266         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6267         (cp_lookup_nested_symbol_1): Likewise.
6268         (cp_lookup_nested_symbol): Likewise.
6269         * cp-valprint.c (cp_print_value_fields): Likewise.
6270         (cp_print_static_field): Likewise.
6271         * d-valprint.c (d_val_print): Likewise.
6272         * eval.c (evaluate_subexp_standard): Likewise.
6273         (evaluate_subexp_for_sizeof): Likewise.
6274         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6275         * f-typeprint.c (f_type_print_base): Likewise.
6276         * f-valprint.c (f_val_print): Likewise.
6277         * gdbtypes.c (get_discrete_bounds): Likewise.
6278         (create_array_type_with_stride): Likewise.
6279         (type_name_no_tag_or_error): Likewise.
6280         (lookup_struct_elt_type): Likewise.
6281         (get_unsigned_type_max): Likewise.
6282         (internal_type_vptr_fieldno): Likewise.
6283         (set_type_vptr_fieldno): Likewise.
6284         (internal_type_vptr_basetype): Likewise.
6285         (set_type_vptr_basetype): Likewise.
6286         (get_vptr_fieldno): Likewise.
6287         (is_integral_type): Likewise.
6288         (is_scalar_type): Likewise.
6289         (is_scalar_type_recursive): Likewise.
6290         (distance_to_ancestor): Likewise.
6291         (is_unique_ancestor_worker): Likewise.
6292         (check_types_equal): Likewise.
6293         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6294
6295 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6296
6297         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6298         also test for language_d.
6299         (dwarf2_compute_name): Likewise.
6300         (read_func_scope): Likewise.
6301         (read_structure_type): Likewise.
6302         (new_symbol_full): Likewise.
6303         (determine_prefix): Likewise.
6304         (read_import_statement): Use dot as the separator for language_d.
6305         (typename_concat): Likewise, but don't prefix the D main function.
6306
6307 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6308
6309         * nat/linux-namespaces.c (setns): Rename from this ...
6310         (do_setns): ... to this.  Support calling setns if it exists.
6311         (mnsh_handle_setns): Call do_setns.
6312
6313 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6314
6315         * exec.c (exec_file_attach): Add period at the end of error
6316         message.
6317
6318 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6319
6320         * tui/tui-win.c (window_name_completer): New function.
6321         (focus_completer): Call window_name_completer.  All old content
6322         moved into window_name_completer.
6323         (winheight_completer): New function.
6324         (_initialize_tui_win): Rename variable.  Add completer to
6325         winheight command.  Update doc string on winheight.
6326
6327 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6328
6329         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6330         all nios2 mach variants.
6331
6332 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6333
6334         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6335         of target_read_memory.
6336
6337 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6338
6339         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6340         string copy.
6341         (parse_scrolling_args): Likewise.
6342
6343 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6344
6345         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6346         names in this function.
6347
6348 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6349
6350         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6351         (CMD_NAME): Likewise.
6352         (DATA_NAME): Likewise.
6353         (DISASSEM_NAME): Likewise.
6354         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6355         (tui_set_win_height): Likewise.
6356         (parse_scrolling_args): Likewise.
6357
6358 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6359
6360         * record-btrace.c (record_btrace_goto_begin)
6361         (record_btrace_goto_end, record_btrace_goto): Move call to
6362         print_stack_frame ...
6363         (record_btrace_set_replay): ... here.  Set stop_pc.
6364         * record-full.c (record_full_goto_entry): Set stop_pc.
6365
6366 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6367
6368         * NEWS: Mention support for tracepoints on aarch64-linux.
6369
6370 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6371
6372         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6373         function.  Return 1.
6374         (the_low_target): Install it.
6375
6376 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6377
6378         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6379         * gdb.trace/collection.exp: Likewise.
6380         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6381         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6382         * gdb.trace/report.exp: Likewise.
6383         * gdb.trace/trace-break.exp: Likewise.
6384         * gdb.trace/unavailable.exp: Likewise.
6385         * gdb.trace/while-dyn.exp: Likewise.
6386
6387 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6388
6389         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6390         (aarch64_gen_return_address): New function.
6391         (aarch64_gdbarch_init): Hook it.
6392
6393 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6394
6395         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6396         swallow NOT_AVAILABLE_ERROR.
6397         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6398         available_p is not set.
6399         (aarch64_stub_frame_unwind_stop_reason): New function.
6400         (aarch64_stub_unwind): Install it.
6401
6402 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6403
6404         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6405         field.
6406         (aarch64_make_prologue_cache_1): New function, factored out from
6407         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6408         available_p.
6409         (aarch64_make_prologue_cache): Reimplement wrapping
6410         aarch64_make_prologue_cache_1, and swallowing
6411         NOT_AVAILABLE_ERROR.
6412         (aarch64_prologue_frame_unwind_stop_reason): New function.
6413         Return UNWIND_UNAVAILABLE if available_p is not set.
6414         (aarch64_prologue_unwind): Install it.
6415         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6416         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6417         frame_id_build_unavailable_stack if available_p is not set.
6418
6419 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6420
6421         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6422         fields.
6423         (aarch64_scan_prologue): Set prev_pc.
6424         (aarch64_make_prologue_cache): Set func.
6425         (aarch64_make_stub_cache): Set prev_pc.
6426         (aarch64_prologue_this_id): Remove local variables id, pc and
6427         func.  Read prev_pc and func from cache.
6428         (aarch64_stub_this_id): Read prev_pc from cache.
6429
6430 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6431
6432         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6433         argument this_cache.  Remove unused local variables reg and
6434         unwound_fp.  Return early if this_cache is already set.  Set
6435         this_cache.
6436         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6437
6438 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6439
6440         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6441         New argument this_cache.  Return early if this_cache is already
6442         set.  Set this_cache.
6443         (aarch64_prologue_this_id): Update call to
6444         aarch64_make_prologue_cache.
6445         (aarch64_prologue_prev_register): Likewise.
6446         (aarch64_normal_frame_base): Likewise.
6447
6448 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6449
6450         * c-valprint.c (c_val_print): Factor out memberptr printing code
6451         from c_val_print to ...
6452         (c_val_print_memberptr): ... this new function.
6453
6454 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6455
6456         * c-valprint.c (c_val_print): Factor out int printing code to ...
6457         (c_val_print_int): ... this new function.
6458
6459 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6460
6461         * c-valprint.c (c_val_print): Factor out struct and union
6462         printing code to ...
6463         (c_val_print_struct): ... this new function ...
6464         (c_val_print_union): ... and this new function.
6465
6466 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6467
6468         * c-valprint.c (c_val_print): Factor out pointer printing code
6469         to ...
6470         (c_val_print_ptr): ... this new function.
6471
6472 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6473
6474         * c-valprint.c (c_valprint): Factor our array printing code from
6475         c_val_print to ...
6476         (c_val_print_array): ... this new function.
6477
6478 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6479
6480         * c-valprint.c (c_val_print): Factor out pointer printing code
6481         to ...
6482         (print_unpacked_pointer): ... this new function.
6483
6484 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6485
6486         * c-valprint.c (c_val_print): Remove an assignment to i and move
6487         its declaration.
6488
6489 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6490
6491         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6492         argument ptid.  Update comments.  Caller update.
6493
6494 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6495
6496         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6497         mnt packets.
6498
6499 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6500
6501         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6502
6503 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6504
6505         * progspace.c (delete_program_space): Add missing spaces.
6506
6507 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6508
6509         * inferior.c (delete_inferior_1): Rename to ...
6510         (delete_inferior): ..., remove 'silent' parameter, delete
6511         program space when unused and remove call to prune_program_spaces.
6512         Remove the old, unused, delete_inferior.
6513         (delete_inferior_silent): Remove.
6514         (prune_inferiors): Change call from delete_inferior_1 to
6515         delete_inferior and remove 'silent' parameter. Remove call to
6516         prune_program_spaces.
6517         (remove_inferior_command): Idem.
6518         * inferior.h (delete_inferior_1): Rename to...
6519         (delete_inferior): ..., remove 'silent' parameter and remove the
6520         original delete_inferior.
6521         (delete_inferior_silent): Remove.
6522         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6523         delete_inferior_1 to delete_inferior and remove 'silent'
6524         parameter.
6525         * progspace.c (prune_program_spaces): Remove.
6526         (pspace_empty_p): Rename to...
6527         (program_space_empty_p): ... and make non-static.
6528         (delete_program_space): New.
6529         * progspace.h (prune_program_spaces): Remove declaration.
6530         (program_space_empty_p): New declaration.
6531         (delete_program_space): New declaration.
6532         * monitor.c (monitor_close): Replace call to
6533         delete_thread_silent and delete_inferior_silent with
6534         discard_all_inferiors.
6535
6536 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6537
6538         * defs.h (deprecated_register_changed_hook): Remove prototype.
6539         * interps.c (clear_iterpreter_hooks): Remove reference to
6540         deprecated_register_changed_hook.
6541         * top.c (deprecated_register_changed_hook): Remove prototype.
6542         * valops.c (value_assign): Remove reference to
6543         deprecated_register_changed_hook.
6544         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6545         Add comment documenting the function.
6546         (tui_register_changed_observer): Define.
6547         (tui_install_hooks): Remove reference to
6548         deprecated_register_changed_hook.  Set
6549         tui_register_changed_observer.
6550         (tui_remove_hooks): Remove reference to
6551         deprecated_register_changed_hook.  Unset
6552         tui_register_changed_observer.
6553
6554 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6555
6556         PR compile/18484
6557         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6558
6559 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6560
6561         PR exp/18617
6562         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6563
6564 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6565
6566         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6567
6568 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6569
6570         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6571         Use safe_strerror() instead of strerror().
6572
6573 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6574
6575         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6576         * features/arm-with-m-fpa-layout.c: Regenerated.
6577         * features/arm-with-m-vfp-d16.xml: Likewise.
6578         * features/arm-with-m-vfp-d16.c: Regenerated.
6579         * features/arm-with-m.xml: Likewise.
6580         * features/arm-with-m.c: Regenerated.
6581         * features/arm-with-neon.xml: Likewise.
6582         * features/arm-with-neon.c: Regenerated.
6583         * features/arm-with-vfpv2.xml: Likewise.
6584         * features/arm-with-vfpv2.c: Regenerated.
6585         * features/arm-with-vfpv3.xml: Likewise.
6586         * features/arm-with-vfpv3.c: Regenerated.
6587
6588 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6589
6590         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6591         arm-linux-nat.c.
6592         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6593         elf/external.h.
6594         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6595         if target is 32-bit.
6596         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6597         if target is 32-bit.
6598         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6599         if target is 32-bit.
6600         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6601         if target is 32-bit.
6602         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6603         (aarch64_linux_read_description): Return the right target
6604         description.
6605         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6606         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6607         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6608         arm-linux-tdep.o.
6609
6610 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6611
6612         * aarch32-linux-nat.c: New file.
6613         * aarch32-linux-nat.h: New file.
6614         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6615         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6616         aarch32_gp_regcache_supply.
6617         (store_regs): Move code to aarch32-linux-nat.c.  Call
6618         aarch32_gp_regcache_collect.
6619         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6620         aarch32_vfp_regcache_supply.
6621         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6622         aarch32_vfp_regcache_collect.
6623         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6624
6625 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6626
6627         * arm-linux-nat.c (store_fpregister): Remove.
6628         (store_register): Likewise.
6629         (fetch_fpregister): Likewise.
6630         (fetch_register): Likewise.
6631         (arm_linux_store_inferior_registers): Call store_regs and
6632         store_fpregs instead.
6633         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6634         fetch_regs instead.
6635
6636 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6637
6638         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6639         and focus commands.
6640
6641 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6642
6643         * NEWS: Create a new section for the next release branch.
6644         Rename the section of the current branch, now that it has
6645         been cut.
6646
6647 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6648
6649         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6650         * version.in: Bump version to 7.10.50.DATE-cvs.
6651
6652 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6653
6654         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6655         breakpoints in a special way.
6656         (remove_breakpoint): Likewise.
6657         (mark_breakpoints_out): Likewise.
6658
6659 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6660
6661         * doc/gdb.texinfo (TUI): Add comma after @xref.
6662
6663 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6664
6665         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6666         instead of casting the structure type.
6667
6668 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6669
6670         * valops.c (search_struct_field): Remove OFFSET parameter.
6671         (value_cast_structs): Adjust calls to search_struct_field.
6672         (value_struct_elt): Same.
6673         (find_overload_match): Same.
6674
6675 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6676
6677         * value.c (value_fetch_lazy): Update comment, change return
6678         value to void.
6679         * value.h (value_fetch_lazy): Change return value to void.
6680
6681 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6682
6683         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6684         (tui_win_name): Make parameter and result const.
6685         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6686
6687 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6688
6689         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6690         use printf_unfiltered.
6691         (set_mpx_cmd): Add missing trailing space to command string
6692         literal.
6693         (_initialize_i386_tdep): Give the "mpx" prefix command its
6694         correct name.
6695
6696 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6697
6698         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6699         (enum rx_frame_type): New.
6700         (struct rx_prologue): Add new field `frame_type'.
6701         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6702         parameter in the prologue struct.  Add code for recording
6703         locations of PC and PSW for fast interrupt and exception frames.
6704         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6705         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6706         (rx_frame_type): New function.
6707         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6708         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6709         `this_cache'.
6710         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6711         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6712         RX_FRAME_TYPE_FAST_INTERRUPT.
6713         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6714         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6715         (rx_frame_unwind): Use rx_frame_sniffer instead of
6716         default_frame_sniffer.
6717         (rx_frame_unwind): New unwinder.
6718         (rx_gdbarch_init): Register new unwinder.
6719
6720 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6721
6722         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6723         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6724         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6725         and RX_FPSW_REGNUM.
6726         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6727
6728 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6729
6730         Fix GCC false warning.
6731         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6732
6733 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6734
6735         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6736         typo in the debugging message.
6737
6738 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6739
6740         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6741         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6742         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6743         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6744         (btrace_maint_clear): New.
6745         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6746         (pt_print_packet, btrace_maint_decode_pt)
6747         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6748         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6749         (maint_btrace_packet_history_cmd)
6750         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6751         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6752         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6753         (maint_info_btrace_cmd, _initialize_btrace): New.
6754         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6755         (btrace_maint_packet_history, btrace_maint_info): New.
6756         (btrace_thread_info) <maint>: New.
6757         * NEWS: Announce it.
6758
6759 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6760
6761         * btrace.c (btrace_fetch): Append the new trace data.
6762         (btrace_clear): Clear the stored trace data.
6763         * btrace.h (btrace_thread_info) <data>: New.
6764         * common/btrace-common.h (btrace_data_clear)
6765         (btrace_data_append): New.
6766         * common/btrace-common.c (btrace_data_clear)
6767         (btrace_data_append): New.
6768
6769 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6770
6771         * nat/linux-btrace.c (linux_enable_bts): Check for
6772         PERF_ATTR_SIZE_VER5.
6773         Check for data_offset and data_size fields.  Use them.
6774
6775 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6776
6777         * NEWS: Announce new commands "record btrace pt" and "record pt".
6778         Announce new options "set|show record btrace pt buffer-size".
6779         * btrace.c: Include "rsp-low.h".
6780         Include "inttypes.h".
6781         (btrace_add_pc): Add forward declaration.
6782         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6783         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6784         (btrace_compute_ftrace_pt): New.
6785         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6786         (check_xml_btrace_version): Update version check.
6787         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6788         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6789         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6790         (btrace_pt_children): New.
6791         (btrace_children): Add support for "pt".
6792         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6793         (btrace_conf_children): Add support for "pt".
6794         * btrace.h: Include "intel-pt.h".
6795         (btrace_pt_error): New.
6796         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6797         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6798         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6799         (struct btrace_config_pt): New.
6800         (struct btrace_config)<pt>: New.
6801         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6802         (struct btrace_data)<pt>: New.
6803         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6804         (pt): New.
6805         * features/btrace.dtd (btrace)<pt>: New.
6806         (pt, pt-config, cpu): New.
6807         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6808         (perf_event_pt_event_type, kernel_supports_pt)
6809         (linux_supports_pt): New.
6810         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6811         (linux_enable_bts): Free tinfo on error.
6812         (linux_enable_pt): New.
6813         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6814         (linux_disable_pt): New.
6815         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6816         (linux_fill_btrace_pt_config, linux_read_pt): New.
6817         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6818         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6819         (struct btrace_target_info)<pt>: New.
6820         * record-btrace.c (set_record_btrace_pt_cmdlist)
6821         (show_record_btrace_pt_cmdlist): New.
6822         (record_btrace_print_pt_conf): New.
6823         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6824         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6825         (cmd_record_btrace_pt_start): New.
6826         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6827         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6828         (_initialize_record_btrace): Add new commands.
6829         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6830         (remote_protocol_features): Add "Qbtrace:pt".
6831         Add "Qbtrace-conf:pt:size".
6832         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6833         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6834         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6835         (_initialize_remote): Add new commands.
6836
6837 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6838
6839         * configure.ac: check for libipt
6840         * configure: Regenerate.
6841         * config.in: Regenerate.
6842         * Makefile.in (LIBIPT): New.
6843         (CLIBS): Add $LIBIPT.
6844         * NEWS: document new configure options
6845
6846 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6847
6848         * compile/compile-object-load.c (compile_object_load): Replace debug
6849         message "lookup undefined ELF symbol" by 3 more specific messages.
6850
6851 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6852
6853         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6854         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6855         (rl78_gdbarch_init): Initialize rl78_psw_type.
6856
6857 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6858
6859         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6860         Update commentary.  Always refresh the registers when frame
6861         information has changed.
6862         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6863         Change return type to int.  Return 1 if frame information has
6864         changed, 0 otherwise.
6865         (tui_before_prompt): Update commentary.
6866         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6867         int.
6868
6869 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6870
6871         PR tui/13378
6872         * frame.c (select_frame): Remove reference to
6873         deprecated_selected_frame_level_changed_hook.
6874         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6875         declaration.
6876         * stack.c (deprecated_selected_frame_level_changed_hook):
6877         Likewise.
6878         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6879         Rename to ...
6880         (tui_refresh_frame_and_register_information): ... this.  Bail
6881         out if there is no stack.  Don't update register information
6882         unless registers_too_p is true.
6883         (tui_print_frame_info_listing_hook): Rename to ...
6884         (tui_dummy_print_frame_info_listing_hook): ... this.
6885         (tui_before_prompt): New function.
6886         (tui_normal_stop): New function.
6887         (tui_before_prompt_observer): New observer.
6888         (tui_normal_stop_observer): New observer.
6889         (tui_install_hooks): Set
6890         deprecated_print_frame_info_listing_hook to
6891         tui_dummy_print_frame_info_listing_hook.  Register
6892         tui_before_prompt_observer to call tui_before_prompt and
6893         tui_normal_stop_observer to call tui_normal_stop.  Remove
6894         reference to deprecated_selected_frame_level_changed_hook.
6895         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6896         and tui_normal_stop_observer.  Remove reference to
6897         deprecated_selected_frame_level_changed_hook.
6898
6899 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6900
6901         PR tui/13378
6902         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6903         return an int instead of void.  Return whether the locator
6904         window has changed.
6905         (tui_show_frame_info): If the locator info has not changed, then
6906         bail out early to avoid refreshing the windows.
6907
6908 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6909
6910         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6911         LOCATOR_WIN to tui_alloc_content.
6912
6913 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6914
6915         PR tdep/18605
6916         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6917         instructions.
6918
6919 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6920
6921         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6922         (rx_dwarf_reg_to_regnum): New function.
6923         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6924         unwinding.
6925
6926 2015-06-29  Pedro Alves  <palves@redhat.com>
6927
6928         PR threads/18127
6929         * infcall.c (run_inferior_call): On infcall success, if the thread
6930         was marked stopped before, reset it back to stopped.
6931         * infrun.c (resume): Don't suppress the set_running calls when
6932         doing an infcall.
6933         (normal_stop): Only discard the finish_thread_state cleanup if the
6934         infcall succeeded.
6935
6936 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6937
6938         * MAINTAINERS (Write After Approval): Update my email address.
6939
6940 2015-06-26  Keith Seitz  <keiths@redhat.com>
6941             Doug Evans  <dje@google.com>
6942
6943         PR 16253
6944         * block.c (block_lookup_symbol): For non-function blocks,
6945         continue to search for a symbol with an exact domain match
6946         Otherwise, return any previously found "best domain" symbol.
6947         (block_lookup_symbol_primary): Likewise.
6948
6949 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6950
6951         * NEWS: Mention the new option "history remove-duplicates".
6952         * top.c (history_remove_duplicates): New static variable.
6953         (show_history_remove_duplicates): New static function.
6954         (gdb_add_history): Conditionally remove duplicate history
6955         entries.
6956         (init_main): Add "history remove-duplicates" option.
6957
6958 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6959
6960         * tui/tui-win.c (focus_completer): New static function.
6961         (_initialize_tui_win): Set the completion function of the
6962         "focus" command to focus_completer.
6963
6964 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6965
6966         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6967         and language_asm..
6968         * symtab.c (find_function_start_sal): Likewise.
6969
6970 2015-06-25  Gary Benson  <gbenson@redhat.com>
6971
6972         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6973         it is the empty string after trailing slashes have been stripped.
6974
6975 2015-06-25  Gary Benson  <gbenson@redhat.com>
6976
6977         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6978         * infrun.c (follow_exec): Likewise.
6979         * remote.c (remote_filesystem_is_local): Likewise.
6980         * solib.c (solib_find_1): Likewise.
6981
6982 2015-06-24  Keith Seitz  <keiths@redhat.com>
6983
6984         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6985         return value from lrealpath.
6986
6987 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6988
6989         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6990
6991 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6992
6993         * remote-sim.c: Include gdb_bfd.h.
6994         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6995         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6996
6997 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6998
6999         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7000         set_gdbarch_get_siginfo_type.
7001         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7002         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7003         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7004         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7005         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7006         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7007         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7008         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7009         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7010         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7011
7012 2015-06-24  Gary Benson  <gbenson@redhat.com>
7013
7014         * common/buffer.c (stdint.h): Do not include.
7015         * common/print-utils.c (stdint.h): Likewise.
7016         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7017         * compile/compile-c-types.c (gdb_assert.h): Likewise.
7018         * ft32-tdep.c (gdb_assert.h): Likewise.
7019         * guile/scm-utils.c (stdint.h): Likewise.
7020         * i386-linux-tdep.c (stdint.h): Likewise.
7021         * i386-tdep.c (stdint.h): Likewise.
7022         * nat/linux-btrace.c (stdint.h): Likewise.
7023         * nat/linux-btrace.h (stdint.h): Likewise.
7024         * nat/linux-ptrace.c (stdint.h): Likewise.
7025         * nat/mips-linux-watch.h (stdint.h): Likewise.
7026         * ppc-linux-nat.c (stdint.h): Likewise.
7027         * python/python-internal.h (stdint.h): Likewise.
7028         * stub-termcap.c (stdlib.h): Likewise.
7029         * target/target.h (stdint.h): Likewise.
7030         * xtensa-linux-nat.c (stdint.h): Likewise.
7031
7032 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
7033
7034         * top.c (init_history): Look at errno after calling strtol to
7035         properly map large GDBHISTSIZE values to infinity.
7036
7037 2015-06-23  Doug Evans  <dje@google.com>
7038
7039         * inferior.h (struct inferior_suspend_state): Delete, unused.
7040         All references deleted.
7041
7042 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
7043
7044         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7045         (microblaze_push_dummy_call): Likewise.
7046         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7047         and set_gdbarch_push_dummy_call.
7048
7049 2015-06-23  Yao Qi  <yao.qi@linaro.org>
7050
7051         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7052         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7053         (amd64_linux_store_inferior_registers): Likewise.
7054         * arm-linux-nat.c (fetch_fpregister): Likewise.
7055         (fetch_fpregs, store_fpregister): Likewise.
7056         (store_fpregister, store_fpregs): Likewise.
7057         (fetch_register, fetch_regs): Likewise.
7058         (store_register, store_regs): Likewise.
7059         (fetch_vfp_regs, store_vfp_regs): Likewise.
7060         (arm_linux_read_description): Check have_ptrace_getregset is
7061         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
7062         or TRIBOOL_FALSE.
7063         * i386-linux-nat.c (fetch_xstateregs): Check
7064         have_ptrace_getregset is not TRIBOOL_TRUE.
7065         (store_xstateregs): Likewise.
7066         * linux-nat.c (have_ptrace_getregset): Change its type to
7067         enum tribool.
7068         * linux-nat.h (tribool): New enum.
7069         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7070         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7071
7072 2015-06-19  Doug Evans  <dje@google.com>
7073
7074         * NEWS: Mention Sun's version of stabs is no longer supported.
7075         * elfread.c (free_elfinfo): Delete.  All uses updated.
7076         (elfstab_offset_sections): Delete.  All uses updated.
7077         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7078         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7079         All uses updated.
7080         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7081         All callers updated.
7082
7083 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7084
7085         * common/rsp-low.c (needs_escaping): New.
7086         (remote_escape_output): Add unit_size parameter. Refactor to
7087         support multi-byte addressable units.  Rename parameters.
7088         * common/rsp-low.h (remote_escape_output): Add unit_size
7089         parameter and rename others. Update doc.
7090         * remote.c (align_for_efficient_write): New.
7091         (remote_write_bytes_aux): Add unit_size parameter and use it.
7092         Rename some variables.  Update doc.
7093         (remote_xfer_partial): Get unit size and use it.
7094         (remote_read_bytes_1): Add unit_size parameter and use it.
7095         Rename some variables. Update doc.
7096         (remote_write_bytes): Same.
7097         (remote_xfer_live_readonly_partial): Same.
7098         (remote_read_bytes): Same.
7099         (remote_flash_write): Update call to remote_write_bytes_aux.
7100         (remote_write_qxfer): Update call to remote_escape_output.
7101         (remote_search_memory): Same.
7102         (remote_hostio_pwrite): Same.
7103
7104 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7105
7106         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7107         locations as inserted.
7108         Update and expand comment about permanent locations.
7109         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7110         Move comment to add_location_to_breakpoint.
7111         (update_global_location_list): Don't error out if a permanent
7112         breakpoint is not marked inserted.
7113         Don't error out if a non-permanent breakpoint location is inserted on
7114         top of a permanent breakpoint.
7115
7116 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7117
7118         * breakpoint.c (make_breakpoint_permanent): Remove unused
7119         function.
7120         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7121
7122 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7123
7124         PR gdb/16999
7125         * NEWS: Mention new GDBHISTSIZE behavior.
7126         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7127         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7128
7129 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7130
7131         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7132         * top.c (init_history): Read from GDBHISTSIZE instead of
7133         HISTSIZE.
7134         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7135
7136 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7137
7138         * top.c (gdb_safe_append_history): Do not call
7139         history_truncate_file if the history is not stifled.
7140
7141 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7142
7143         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7144         * syscalls/s390x-linux.xml: Likewise.
7145
7146 2015-06-16  Michael Eager  <eager@eagercon.com>
7147
7148         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7149
7150 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7151
7152         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7153         target_terminal_ours_for_output() before calling
7154         tui_show_frame_info(), and restore the original terminal
7155         settings afterwards.
7156
7157 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7158
7159         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7160
7161 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7162
7163         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7164         memory unit size.
7165         (mi_cmd_data_write_memory_bytes): Same.
7166
7167 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7168
7169         * corefile.c (write_memory): Update doc.
7170         * gdbcore.h (write_memory): Same.
7171
7172 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7173
7174         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7175         (dump_mapping_p): Use it for parameter filterflags.
7176         (linux_find_memory_regions_full): Use it for variable filterflags.
7177
7178 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7179             Jan Kratochvil  <jan.kratochvil@redhat.com>
7180
7181         Merge multiple hex conversions.
7182         * monitor.c: Include rsp-low.h.
7183         (fromhex): Remove definition.
7184
7185 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7186             Jan Kratochvil  <jan.kratochvil@redhat.com>
7187
7188         Move utility functions to common/.
7189         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7190         Move defs to common/common-utils.c.
7191         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7192         (skip_to_space_const): Move decls to common/common-utils.h.
7193         * common/common-defs.h: Move include of common-types.h before
7194         common-utils.h.
7195         * common/common-utils.c: Include host-defs.h and ctype.h.
7196         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7197         from utils.c.
7198         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7199         cli/cli-utils.c.
7200         * common/common-utils.h (strtoulst): Move decl from utils.h.
7201         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7202         Move from cli/cli-utils.h.
7203         * common/host-defs.h: Include limits.h.
7204         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7205         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7206         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7207         common/common-utils.h.
7208         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7209         (strtoulst): Move to common/common-utils.c.
7210         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7211
7212 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7213
7214         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7215
7216 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7217
7218         * build-id.c: Don't include elf-bfd.h.
7219         (build_id_bfd_get): Use bfd_build_id.
7220         (build_id_verify): Ditto.
7221         * build-id.h: Ditto.
7222         (find_separate_debug_file_by_buildid): Ditto.
7223         * python/py-objfile.c: Don't include elf-bfd.h.
7224         (objfpy_get_build_id) Use bfd_build_id.
7225         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7226         * coffread.c: Include build-id.h.
7227         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7228
7229 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7230
7231         * windows-nat.c (do_windows_fetch_inferior_registers)
7232         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7233         conditional with __CYGWIN__.
7234
7235 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7236
7237         * completer.c: Add arch-utils.h include.
7238         (enum reg_completer_targets): New enum.
7239         (reg_or_group_completer_1): New function containing old
7240         reg_or_group_completer, add and use new parameter to control what
7241         is completed on.  Use get_current_arch rather than architecture of
7242         currently selected frame.
7243         (reg_or_group_completer): Call new reg_or_group_completer_1.
7244         (reggroup_completer): Call new reg_or_group_completer_1.
7245         * completer.h (reggroup_completer): Add declaration.
7246         * tui/tui-regs.c: Add 'completer.h' include.
7247         (tui_reg_next_command): Renamed to...
7248         (tui_reg_next): ...this.  Adjust parameters and return rather than
7249         display new group.
7250         (tui_reg_prev_command): Renamed to...
7251         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7252         display new group.
7253         (tui_reg_float_command): Delete.
7254         (tui_reg_general_command): Delete.
7255         (tui_reg_system_command): Delete.
7256         (tui_reg_command): Rewrite to perform switching of register group.
7257         Add header comment.
7258         (tuireglist): Remove.
7259         (tui_reggroup_completer): New function.
7260         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7261         creation of 'tui reg' command.
7262         * NEWS: Add comment about 'tui reg' changes.
7263
7264 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7265
7266         * target.c (target_read): Consider addressable unit size when
7267         reading from a memory object.
7268         (read_memory_robust): Same.
7269         (read_whatever_is_readable): Same.
7270         (target_write_with_progress): Consider addressable unit size
7271         when writing to a memory object.
7272         * target.h (target_read): Update documentation.
7273         (target_write): Add documentation.
7274
7275 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7276
7277         * arch-utils.h (default_addressable_memory_unit_size): New.
7278         * arch-utils.c (default_addressable_memory_unit_size): New.
7279         * gdbarch.sh (addressable_memory_unit_size): New.
7280         * gdbarch.h: Re-generate.
7281         * gdbarch.c: Re-generate.
7282
7283 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7284
7285         * target.c (target_read): Rename variables and use
7286         TARGET_XFER_E_IO.
7287         (target_read_with_progress): Same.
7288         (read_memory_robust): Constify parameters and rename
7289         variables.
7290         (read_whatever_is_readable): Constify parameters,
7291         rename variables, adjust formatting.
7292         * target.h (read_memory_robust): Constify parameters.
7293
7294 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7295
7296         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7297         synthetic (non-AltiVec) vector types.
7298         (ppc64_sysv_abi_return_value): Likewise.
7299
7300 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7301
7302         PR breakpoints/16465
7303         * breakpoint.c (create_breakpoint): Save extra_string for
7304         pending breakpoints.
7305
7306 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7307
7308         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7309         and bt_mask to CORE_ADDR.
7310
7311 2015-06-11  Gary Benson <gbenson@redhat.com>
7312
7313         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7314         (mnsh_recv_message): Likewise.
7315
7316 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7317
7318         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7319         long long int and plongest instead of %ll.
7320
7321 2015-06-11  Gary Benson <gbenson@redhat.com>
7322
7323         * nat/linux-namespaces.c (gdb_wait.h): New include.
7324         (sys/wait.h): Do not include.
7325
7326 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7327
7328         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7329         end_sequence is true.
7330
7331 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7332
7333         Code cleanup.
7334         * solib-target.c (library_list_start_list): Use explicit NULL
7335         comparison.
7336
7337 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7338
7339         * solib-target.c (library_list_start_list): Do not dereference
7340         variable version in its initialization.  Make the VERSION check handle
7341         NULL.
7342         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7343
7344 2015-06-10  Gary Benson <gbenson@redhat.com>
7345
7346         * NEWS: Announce support for direct access of executable and
7347         shared library files when attaching to inferiors in containers
7348         on GNU/Linux systems.
7349
7350 2015-06-10  Gary Benson <gbenson@redhat.com>
7351
7352         * remote.c (struct remote_state) <fs_pid>: New field.
7353         (new_remote_state): Initialize the above.
7354         (PACKET_vFile_setfs): New enum value.
7355         (remote_hostio_set_filesystem): New function.
7356         (remote_hostio_open): Call the above.
7357         (remote_hostio_unlink): Likewise.
7358         (remote_hostio_readlink): Likewise.
7359         (_initialize_remote): Register new "set/show remote
7360         hostio-setfs-packet" command.
7361         * NEWS: Announce new vFile:setfs packet.
7362
7363 2015-06-10  Gary Benson <gbenson@redhat.com>
7364
7365         * linux-nat.c (nat/linux-namespaces.h): New include.
7366         (fileio.h): Likewise.
7367         (linux_nat_filesystem_is_local): New function.
7368         (linux_nat_fileio_pid_of): Likewise.
7369         (linux_nat_fileio_open): Likewise.
7370         (linux_nat_fileio_readlink): Likewise.
7371         (linux_nat_fileio_unlink): Likewise.
7372         (linux_nat_add_target): Initialize to_filesystem_is_local,
7373         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7374         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7375         commands.
7376         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7377
7378 2015-06-10  Gary Benson <gbenson@redhat.com>
7379
7380         * target.h (struct inferior): New forward declaration.
7381         (struct target_ops) <to_filesystem_is_local>: Update comment.
7382         (struct target_ops) <to_fileio_open>: New argument inf.
7383         Update comment.  All implementations updated.
7384         (struct target_ops) <to_fileio_unlink>: Likewise.
7385         (struct target_ops) <to_fileio_readlink>: Likewise.
7386         (target_filesystem_is_local): Update comment.
7387         (target_fileio_open): New argument inf.  Update comment.
7388         (target_fileio_unlink): Likewise.
7389         (target_fileio_readlink): Likewise.
7390         (target_fileio_read_alloc): Likewise.
7391         (target_fileio_read_stralloc): Likewise.
7392         * target.c (target_fileio_open): New argument inf.
7393         Pass inf to implementation.  Update debug printing.
7394         (target_fileio_unlink): Likewise.
7395         (target_fileio_readlink): Likewise.
7396         (target_fileio_read_alloc_1): New argument inf. Pass inf
7397         to target_fileio_open.
7398         (target_fileio_read_alloc): New argument inf. Pass inf to
7399         target_fileio_read_alloc_1.
7400         (target_fileio_read_stralloc): Likewise.
7401         * gdb_bfd.c (inferior.h): New include.
7402         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7403         argument with new argument "inferior".  Pass inferior to
7404         target_fileio_open.
7405         (gdb_bfd_open): Supply inferior argument to
7406         gdb_bfd_iovec_fileio_open.
7407         * linux-tdep.c (linux_info_proc): Supply inf argument to
7408         relevant target_fileio calls.
7409         (linux_find_memory_regions_full): Likewise.
7410         (linux_fill_prpsinfo): Likewise.
7411         * remote.c (remote_filesystem_is_local): Supply inf
7412         argument to remote_hostio_open.
7413         (remote_file_put): Likewise.
7414         (remote_file_get): Likewise.
7415         (remote_file_delete): Supply inf argument to
7416         remote_hostio_unlink.
7417
7418 2015-06-10  Gary Benson <gbenson@redhat.com>
7419
7420         * inf-child.c (inf_child_fileio_open): Replace comment.
7421         (inf_child_fileio_pwrite): Likewise.
7422         (inf_child_fileio_pread): Likewise.
7423         (inf_child_fileio_fstat): Insert blank line before comment.
7424         (inf_child_fileio_close): Replace comment.
7425         (inf_child_fileio_unlink): Likewise.
7426         (inf_child_fileio_readlink): Likewise.
7427         * remote.c (remote_hostio_open): Likewise.
7428         (remote_hostio_pread): Likewise.
7429         (remote_hostio_pwrite): Likewise.
7430         (remote_hostio_close): Likewise.
7431         (remote_hostio_unlink): Likewise.
7432         (remote_hostio_readlink): Likewise.
7433         (remote_hostio_fstat): Likewise.
7434         (remote_filesystem_is_local): Likewise.
7435         * target.c (target_fileio_open): Likewise.
7436         (target_fileio_pwrite): Likewise.
7437         (target_fileio_pread): Likewise.
7438         (target_fileio_fstat): Insert blank line before comment.
7439         (target_fileio_close): Replace comment.
7440         (target_fileio_unlink): Likewise.
7441         (target_fileio_readlink): Likewise.
7442         (target_fileio_read_alloc): Likewise.
7443         (target_fileio_read_stralloc): Likewise.
7444
7445 2015-06-10  Gary Benson <gbenson@redhat.com>
7446
7447         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7448         (check_pid_namespace_match): Use linux_ns_same rather than
7449         linux_proc_pid_get_ns to spot PID namespace mismatches.
7450         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7451         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7452
7453 2015-06-10  Gary Benson <gbenson@redhat.com>
7454
7455         * configure.ac (AC_CHECK_FUNCS): Add setns.
7456         * config.in: Regenerate.
7457         * configure: Likewise.
7458         * nat/linux-namespaces.h: New file.
7459         * nat/linux-namespaces.c: Likewise.
7460         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7461         (linux-namespaces.o): New rule.
7462         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7463         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7464         * config/arm/linux.mh (NATDEPFILES): Likewise.
7465         * config/i386/linux.mh (NATDEPFILES): Likewise.
7466         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7467         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7468         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7469         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7470         * config/mips/linux.mh (NATDEPFILES): Likewise.
7471         * config/pa/linux.mh (NATDEPFILES): Likewise.
7472         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7473         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7474         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7475         * config/s390/linux.mh (NATDEPFILES): Likewise.
7476         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7477         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7478         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7479         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7480
7481 2015-06-10  Gary Benson <gbenson@redhat.com>
7482
7483         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7484         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7485         (make_cleanup_close): Likewise.
7486         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7487         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7488         (make_cleanup_close): Likewise.
7489
7490 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7491
7492         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7493         from SuspendThread().
7494
7495 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7496
7497         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7498         from OutputDebugString.
7499
7500 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7501                         Mircea Gherzan  <mircea.gherzan@intel.com>
7502
7503         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7504         MPX_BT_MASK_32): New macros.
7505         (i386_mpx_set_bounds): New function that implements
7506         the command "set-mpx-bound".
7507         (i386_mpx_enabled): Helper function to test MPX availability.
7508         (i386_mpx_bd_base): Helper function to calculate the base directory
7509         address.
7510         (i386_mpx_get_bt_entry): Helper function to access a bound
7511         table entry.
7512         (i386_mpx_print_bounds): Effectively display bound information.
7513         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7514         "show mpx".
7515         (_initialize_i386_tdep):
7516         Add "bound" to the commands "show mpx" and "set mpx" commands.
7517         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7518         and "show mpx" commands.
7519         * NEWS: List new commands for MPX support.
7520
7521 2015-06-09  Gary Benson <gbenson@redhat.com>
7522
7523         * common/fileio.h (fileio_to_host_mode): New declaration.
7524         * common/fileio.c (fileio_to_host_mode): New Function.
7525         * inf-child.c (inf_child_fileio_open): Process mode argument
7526         with fileio_to_host_mode.
7527
7528 2015-06-09  Gary Benson <gbenson@redhat.com>
7529
7530         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7531         conditional.
7532
7533 2015-06-05  Gary Benson <gbenson@redhat.com>
7534
7535         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7536         * remote.c (remote_filesystem_is_local): ...here.
7537
7538 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7539
7540         * gdbarch.c: Regenerate it.
7541
7542 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7543
7544         * arch-utils.c (default_infcall_munmap): New.
7545         * arch-utils.h (default_infcall_munmap): New declaration.
7546         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7547         (munmap_list_free, munmap_listp_free_cleanup): New.
7548         (struct setup_sections_data): Add field munmap_list_headp.
7549         (setup_sections): Call munmap_list_add.
7550         (compile_object_load): New variable munmap_list_head, initialize
7551         setup_sections_data.munmap_list_headp, return munmap_list_head.
7552         * compile/compile-object-load.h (struct munmap_list): New declaration.
7553         (struct compile_module): Add field munmap_list_head.
7554         (munmap_list_free): New declaration.
7555         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7556         munmap_list_head.
7557         (do_module_cleanup): Call munmap_list_free.
7558         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7559         * gdbarch.c: Regenerate.
7560         * gdbarch.h: Regenerate.
7561         * gdbarch.sh (infcall_munmap): New.
7562         * linux-tdep.c (linux_infcall_munmap): New.
7563         (linux_init_abi): Install it.
7564
7565 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7566
7567         PR gdb/15564
7568         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7569
7570 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7571
7572         * i386-linux-nat.c: Include linux-nat.h.
7573
7574 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7575             Jan Kratochvil  <jan.kratochvil@redhat.com>
7576
7577         PR symtab/18392
7578         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7579         assertion.
7580         * dwarf2loc.c (chain_candidate): Likewise.
7581
7582 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7583
7584         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7585         (store_vfp_regs): Use PTRACE_SETREGSET.
7586
7587 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7588
7589         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7590         (fetch_fpregs): Likewise.
7591         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7592         (store_fpregs): Likewise.
7593
7594 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7595
7596         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7597         (fetch_regs): Likewise.
7598         (store_regs): Use PTRACE_SETREGSET.
7599         (store_register): Likewise.
7600
7601 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7602
7603         * arm-linux-nat.c (arm_linux_read_description): Check whether
7604         kernel supports PTRACE_GETREGSET.
7605
7606 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7607
7608         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7609         * linux-nat.c: ... here.
7610         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7611         to ...
7612         * linux-nat.h: ... here.
7613
7614 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7615
7616         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7617         * i386-linux-nat.c: Likewise.
7618         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7619         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7620         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7621         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7622         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7623
7624 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7625
7626         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7627         compatible to what read_child and write_child return.  This
7628         unbreaks that DJGPP build of GDB which was broken since v7.7.
7629
7630 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7631
7632         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7633
7634 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7635
7636         PR gdb/18464
7637         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7638         rather than internal_error for an unrecognized value.
7639
7640 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7641
7642         * xtensa-tdep.c (xtensa_pseudo_register_read)
7643         (xtensa_pseudo_register_write): Don't alias last pseudo register
7644         to a1.
7645
7646 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7647
7648         * infrun.c (follow_fork_inferior): Ensure the use of
7649         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7650         messages.
7651
7652 2015-05-28  Doug Evans  <dje@google.com>
7653
7654         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7655
7656 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7657
7658         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7659         (arm_linux_fetch_inferior_registers): Use
7660         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7661         (arm_linux_store_inferior_registers): Likewise.
7662         (arm_linux_read_description): Don't set
7663         arm_linux_has_wmmx_registers.
7664         * arm-tdep.c (arm_gdbarch_init): Set
7665         tdep->have_wmmx_registers according target descriptions.
7666         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7667         field.
7668
7669 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7670
7671         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7672         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7673         instead of arm_linux_vfp_register_count.
7674         (store_vfp_regs): Likewise.
7675         (arm_linux_fetch_inferior_registers): Likewise.
7676         (arm_linux_store_inferior_registers): Likewise.
7677         (arm_linux_read_description): Don't set
7678         arm_linux_vfp_register_count.
7679         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7680         Adjust.
7681         * arm-tdep.c (arm_gdbarch_init): Add assert on
7682         vfp_register_count.
7683         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7684         field to vfp_register_count.  All users updated.
7685
7686 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7687
7688         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7689         ELFOSABI_GNU binaries.
7690
7691 2015-05-27  Doug Evans  <dje@google.com>
7692
7693         * dwarf2read.c (lnp_state_machine): New typedef.
7694         (lnp_reader_state): New typedef.
7695         (dwarf_record_line_1): Renamed from dwarf_record_line.
7696         All callers updated.
7697         (dwarf_record_line): New function.
7698         (init_lnp_state_machine): New function.
7699         (check_line_address): Replace p_record_line parameter with state.
7700         All callers updated.
7701         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7702         Update to record state in lnp_state_machine.
7703
7704 2015-05-27  Doug Evans  <dje@google.com>
7705
7706         * dwarf2read.c (record_line_ftype): New typedef.
7707         (check_line_address): New function.
7708         (dwarf_decode_lines_1): Call it.
7709
7710 2015-05-27  Doug Evans  <dje@google.com>
7711
7712         * NEWS: Mention "set debug dwarf-line".
7713         * dwarf2read.c (dwarf_line_debug): New static global.
7714         (add_include_dir): Add debug dwarf-line support.
7715         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7716         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7717
7718 2015-05-27  Doug Evans  <dje@google.com>
7719
7720         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7721         All callers updated.
7722         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7723         * cp-support.h (cp_lookup_nested_symbol): Update.
7724
7725 2015-05-27  Doug Evans  <dje@google.com>
7726
7727         PR symtab/18258
7728         * block.c (block_find_symbol): New function.
7729         (block_find_non_opaque_type): Ditto.
7730         (block_find_non_opaque_type_preferred): Ditto.
7731         * block.h (block_symbol_matcher_ftype): New typedef.
7732         (block_find_symbol): Declare.
7733         (block_find_non_opaque_type): Ditto.
7734         (block_find_non_opaque_type_preferred): Ditto.
7735         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7736         * psymtab.c (psym_lookup_symbol): Ditto.
7737         * symtab.c (basic_lookup_transparent_type_1): New function.
7738         (basic_lookup_transparent_type): Call it.
7739
7740 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7741
7742         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7743         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7744
7745 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7746
7747         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7748         before operator &&.
7749         (aarch64_record_load_store): Likewise.
7750
7751 2015-05-26  Doug Evans  <dje@google.com>
7752
7753         PR c++/18141, c++/18417.
7754         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7755         a typedef.
7756
7757 2015-05-26  Doug Evans  <dje@google.com>
7758
7759         * NEWS: Add entries for command renamings.
7760         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7761         All uses updated.
7762         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7763         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7764         All uses updated.
7765         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7766         All callers updated.  Fix spelling of DWARF in help text.
7767         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7768         All uses updated.
7769         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7770         All uses updated.
7771         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7772         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7773         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7774         All uses updated.
7775         (show_dwarf_always_disassemble): Renamed from
7776         show_dwarf2_always_disassemble.  All callers updated.
7777         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7778         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7779         "set/show dwarf max-cache-age".  Rename
7780         "set/show dwarf2 always-disassemble" to
7781         "set/show dwarf always-disassemble".  Rename
7782         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7783         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7784
7785 2015-05-26  Doug Evans  <dje@google.com>
7786
7787         PR python/18438
7788         * python/py-lazy-string.c (stpy_convert_to_value): Use
7789         gdbpy_gdb_memory_error not PyExc_MemoryError.
7790         (gdbpy_create_lazy_string_object): Ditto.
7791
7792 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7793
7794         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7795
7796 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7797
7798         * tui/tui-regs.c (tui_reg_prev_command): New function.
7799         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7800         * reggroups.c (reggroup_prev): New function.
7801         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7802
7803 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7804             Yao Qi  <yao.qi@linaro.org>
7805
7806         * aarch64-linux-tdep.c: Include linux-record.h and
7807         record-full.h.
7808         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7809         (aarch64_syscall): New enum.
7810         (aarch64_canonicalize_syscall): New function.
7811         (aarch64_all_but_pc_registers_record): New function.
7812         (aarch64_linux_syscall_record): New function.
7813         (aarch64_linux_init_abi): Install AArch64 process record
7814         handler.  Update to handle syscall recording.
7815         * aarch64-tdep.c: Include record.h and record-full.h.
7816         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7817         (struct aarch64_mem_r): Define.
7818         (aarch64_record_result): New enum.
7819         (struct insn_decode_record): Define.
7820         (insn_decode_record): New typedef.
7821         (aarch64_record_data_proc_reg): New function.
7822         (aarch64_record_data_proc_imm): New function.
7823         (aarch64_record_branch_except_sys): New function.
7824         (aarch64_record_load_store): New function.
7825         (aarch64_record_data_proc_simd_fp): New function.
7826         (aarch64_record_asimd_load_store): New function.
7827         (aarch64_record_decode_insn_handler): New function.
7828         (deallocate_reg_mem): New function.
7829         (aarch64_process_record): New function.
7830         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7831         New field.
7832         (aarch64_process_record): New extern declaration.
7833         * configure.tgt: Add linux-record.o to gdb_target_obs.
7834         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7835
7836 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7837
7838         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7839         targets.
7840
7841 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7842
7843         * amd64-tdep.c: Replace in_function_epilogue_p with
7844         stack_frame_destroyed_p throughout.
7845         * arch-utils.c: Ditto.
7846         * arch-utils.h: Ditto.
7847         * arm-tdep.c: Ditto.
7848         * breakpoint.c: Ditto.
7849         * gdbarch.sh: Ditto.
7850         * hppa-tdep.c: Ditto.
7851         * i386-tdep.c: Ditto.
7852         * mips-tdep.c: Ditto.
7853         * nios2-tdep.c: Ditto.
7854         * rs6000-tdep.c: Ditto.
7855         * s390-linux-tdep.c: Ditto.
7856         * score-tdep.c: Ditto.
7857         * sh-tdep.c: Ditto.
7858         * sparc-tdep.c: Ditto.
7859         * sparc-tdep.h: Ditto.
7860         * sparc64-tdep.c: Ditto.
7861         * spu-tdep.c: Ditto.
7862         * tic6x-tdep.c: Ditto.
7863         * tilegx-tdep.c: Ditto.
7864         * xstormy16-tdep.c: Ditto.
7865         * gdbarch.c, gdbarch.h: Re-generated.
7866
7867 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7868
7869         * NEWS: Mention 'tui enable' and 'tui disable'.
7870         * tui/tui.c (tui_enable_command): New function.
7871         (tui_disable_command): New function.
7872         (_initialize_tui): New function.
7873
7874 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7875
7876         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7877
7878 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7879
7880         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7881         buf_ptr is freed.
7882
7883 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7884
7885         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7886         into ...
7887         (tui_set_layout_for_display_command): ...here, before calling
7888         tui_set_layout.  Only set the layout if gdb has not already
7889         entered the TUI_FAILURE state.
7890
7891 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7892
7893         * tui/tui-layout.c (layout_completer): New function.
7894         (_initialize_tui_layout): Set completer on layout command.
7895
7896 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7897
7898         * tui/tui-layout.c (tui_set_layout): Remove
7899         tui_register_display_type parameter.  Remove all checking of this
7900         parameter, and reindent function.  Update header comment.
7901         (tui_set_layout_for_display_command): Rename to...
7902         (tui_set_layout_by_name): ...this, and don't check for different
7903         register class types, don't pass a tui_register_display_type to
7904         tui_set_layout.  Update header comment.
7905         (layout_names): Remove register set specific names.
7906         * tui/tui-layout.h (tui_set_layout): Remove
7907         tui_register_display_type parameter.
7908         * tui/tui.c (tui_rl_change_windows): Don't pass a
7909         tui_register_display_type to tui_set_layout.
7910         (tui_rl_delete_other_windows): Likewise.
7911         (tui_enable): Likewise.
7912         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7913         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7914         (TUI_GENERAL_REGS_NAME): Remove.
7915         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7916         (TUI_SPECIAL_REGS_NAME): Remove.
7917         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7918         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7919         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7920         (enum tui_register_display_type): Remove.
7921         (struct tui_layout_def): Remove regs_display_type and
7922         float_regs_display_type fields.
7923         (struct tui_data_info): Remove regs_display_type field.
7924         (tui_layout_command): Use new name for
7925         tui_set_layout_for_display_command.
7926         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7927         (tui_clear_win_detail): Don't initialise removed fields of
7928         win_info.
7929         * tui/tui-regs.c (tui_show_registers): Use new name for
7930         tui_set_layout_for_display_command.
7931         * tui/tui.h (tui_set_layout_for_display_command): Rename
7932         declaration to...
7933         (tui_set_layout_by_name): ...this.
7934         * printcmd.c (display_command): Remove tui related layout call,
7935         and reindent.
7936
7937 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7938
7939         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7940         (handle_inferior_event): New function.
7941
7942 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7943
7944         * ada-lang.c (to_fixed_array_type): Rename local variable
7945         typename into type_name.
7946
7947 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7948
7949         Fix ASAN crash for gdb.compile/compile.exp.
7950         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7951
7952 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7953
7954         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7955         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7956         * compile/compile-object-load.c (setup_sections, compile_object_load):
7957         Likewise.
7958         * compile/compile.c (compile_to_object): Likewise.
7959
7960 2015-05-16  Doug Evans  <xdje42@gmail.com>
7961
7962         * NEWS: Mention support for unbuffered Guile memory ports.
7963         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7964         (ioscm_lseek_address): Improve overflow calculation.
7965         (gdbscm_memory_port_fill_input): Add assert.
7966         (gdbscm_memory_port_write): Handle unbuffered ports.
7967         Handle large writes identical to Guile's fport_write.
7968         (gdbscm_memory_port_seek): Fix seeking past end check.
7969         (gdbscm_memory_port_close): Handle closing unbuffered port.
7970         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7971         (ioscm_init_memory_port): Handle unbuffered ports.
7972         (ioscm_reinit_memory_port): Ditto.
7973         (ioscm_init_memory_port): Update size calculation.
7974         (gdbscm_open_memory): Support zero sized ports.
7975
7976 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7977
7978         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7979         variable compiler warnings.
7980
7981 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7982
7983         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7984
7985 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7986             Phil Muldoon  <pmuldoon@redhat.com>
7987
7988         * NEWS (Changes since GDB 7.9): Add compile print.
7989         * compile/compile-c-support.c (add_code_header, add_code_footer)
7990         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7991         COMPILE_I_PRINT_VALUE_SCOPE.
7992         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7993         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7994         New.
7995         * compile/compile-object-load.c: Include block.h.
7996         (get_out_value_type): New function.
7997         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7998         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7999         OUT_VALUE_TYPE.
8000         * compile/compile-object-load.h (struct compile_module): Add fields
8001         out_value_addr and out_value_type.
8002         * compile/compile-object-run.c: Include valprint.h and compile.h.
8003         (struct do_module_cleanup): Add fields out_value_addr and
8004         out_value_type.
8005         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8006         COMPILE_I_PRINT_VALUE_SCOPE.
8007         (compile_object_run): Propagate out_value_addr and out_value_type.
8008         Pass OUT_VALUE_ADDR.
8009         * compile/compile.c: Include valprint.h.
8010         (compile_print_value, compile_print_command): New functions.
8011         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8012         (_initialize_compile): Update compile code help text.  Install
8013         compile_print_command.
8014         * compile/compile.h (compile_print_value): New prototype.
8015         * defs.h (enum compile_i_scope_types): Add
8016         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8017
8018 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8019
8020         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8021         Rely on its parameter count.
8022         (compile_object_load): Replace lookup_minimal_symbol_text by
8023         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
8024         return value.
8025         * compile/compile-object-load.h (struct compile_module): Replace
8026         func_addr by func_sym.
8027         * compile/compile-object-run.c: Include block.h.
8028         (compile_object_run): Reset module variable after it is freed.  Use
8029         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
8030
8031 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8032
8033         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8034         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8035         (c_compute_program): Call generate_register_struct after typedefs.
8036         * compile/compile-loc2c.c (push, pushf_register_address)
8037         (pushf_register): Cast to GCC_UINTPTR.
8038         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
8039         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
8040         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8041         * compile/compile.c (_initialize_compile): Enable warnings for
8042         COMPILE_ARGS.
8043
8044 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8045
8046         * cli/cli-script.c (execute_control_command): Update
8047         eval_compile_command caller.
8048         * compile/compile-object-load.c (compile_object_load): Add parameters
8049         scope and scope_data.  Set them.
8050         * compile/compile-object-load.h (struct compile_module): Add fields
8051         scope and scope_data.
8052         (compile_object_load): Add parameters scope and scope_data.
8053         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8054         scope and scope_data.
8055         (compile_object_run): Propagate the fields scope and scope_data.
8056         * compile/compile.c (compile_file_command, compile_code_command):
8057         Update eval_compile_command callers.
8058         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
8059         * compile/compile.h (eval_compile_command): Add parameter scope_data.
8060         * defs.h (struct command_line): Add field scope_data.
8061
8062 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8063
8064         * printcmd.c (struct format_data): Move it to valprint.h.
8065         (print_command_parse_format, print_value): New functions from ...
8066         (print_command_1): ... here.  Call them.
8067         * valprint.h (struct format_data): Move it here from printcmd.c.
8068         (print_command_parse_format, print_value): New declarations.
8069
8070 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8071
8072         * compile/compile-object-load.c (compile_object_load): Add
8073         COMPILE_DEBUG message.
8074
8075 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8076
8077         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8078         index to get element instead of enum value.
8079         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8080         of index to compute length, but enum values to compute bounds.
8081         (ada_array_length): Use enum position of index instead of enum value.
8082         (pos_atr): Move position computation to...
8083         (ada_evaluate_subexp): Use enum values to compute bounds.
8084         * gdbtypes.c (discrete_position): ...this new function.
8085         * gdbtypes.h (discrete_position): New function declaration.
8086         * valprint.c (val_print_array_elements): Call discrete_position
8087         to handle array indexed by non-contiguous enumeration types.
8088
8089 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8090
8091         * ada-lang.c (find_parallel_type_by_descriptive_type):
8092         Go through typedefs during lookup.
8093         (to_fixed_array_type): Add support for non-bit packed arrays
8094         as variable-length fields.
8095
8096 2015-05-15  Pedro Alves  <palves@redhat.com>
8097             Simon Marchi  <simon.marchi@ericsson.com>
8098
8099         * event-loop.c (gdb_notifier) <next_file_handler,
8100         next_poll_fds_index>: New fields.
8101         (get_next_file_handler_to_handle_and_advance): New function.
8102         (delete_file_handler): If deleting the next file handler to
8103         handle, advance to the next file handler.
8104         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8105         handlers in round-robin fashion.
8106
8107 2015-05-15  Pedro Alves  <palves@redhat.com>
8108
8109         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8110         'private' to 'priv'.
8111
8112 2015-05-15  Pedro Alves  <palves@redhat.com>
8113
8114         * nat/linux-nat.h: Include "target/waitstatus.h".
8115
8116 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8117
8118         * python/py-unwind.c (struct reg_info): Move out of ...
8119         (struct cached_frame_info): ... this scope.
8120         (pending_frame_object_type, unwind_info_object_type): Make extern.
8121
8122 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8123
8124         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8125         accumSize is never negative.
8126
8127 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8128
8129         * tui/tui-command.c: Remove include of <ctype.h>.
8130         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8131
8132 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8133
8134         * dwarf2read.c (die_needs_namespace): Return 1 for
8135         DW_TAG_inlined_subroutine.
8136
8137 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8138
8139         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8140         (regcache_cpy_no_passthrough): Make it static, add function comment.
8141         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8142         (regcache_cpy_no_passthrough): Remove declaration.
8143
8144 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8145
8146         * gdbthread.h (struct thread_control_state): Update comment for
8147         proceed_to_finish.
8148         * infcall.c (run_inferior_call): Update comment about
8149         proceed_to_finish.
8150         * infcmd.c (get_return_value): Update comment about stop_registers.
8151         (finish_forward): Update comment about proceed_to_finish.
8152         * infrun.c (stop_registers): Remove.
8153         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8154         * infrun.h (stop_registers): Remove.
8155
8156 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8157
8158         * infcall.c (struct dummy_frame_context_saver)
8159         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8160         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8161         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8162         New.
8163         (call_function_by_hand_dummy): Move discard_cleanups of
8164         inf_status_cleanup before dummy_frame_push.  Call
8165         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8166         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8167         * infcall.h (struct dummy_frame_context_saver)
8168         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8169         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8170         New declarations.
8171         * infcmd.c: Include infcall.h.
8172         (get_return_value): Add parameter ctx_saver, use it instead of
8173         stop_registers.
8174         (print_return_value): Add parameter ctx_saver, pass it.
8175         (struct finish_command_continuation_args): Add field ctx_saver.
8176         (finish_command_continuation): Update print_return_value caller.
8177         (finish_command_continuation_free_arg): Free also ctx_saver.
8178         (finish_forward): Call dummy_frame_context_saver_setup.
8179         * inferior.h (struct dummy_frame_context_saver): New declaration.
8180         (get_return_value): Add parameter ctx_saver.
8181         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8182         get_return_value caller.
8183
8184 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8185
8186         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8187         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8188         (remove_dummy_frame): Process dtor_list.
8189         (pop_dummy_frame): Process dtor_list.
8190         (register_dummy_frame_dtor): Maintain dtor_list.
8191         (find_dummy_frame_dtor): Handle dtor_list.
8192         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8193         Update comments.
8194
8195 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8196
8197         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8198         registers_valid.
8199         (compile_object_run): Update do_module_cleanup caller.
8200         * dummy-frame.c: Include infcall.h.
8201         (struct dummy_frame): Update dtor comment.
8202         (remove_dummy_frame): Call dtor.
8203         (pop_dummy_frame): Update dtor caller.
8204         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8205         registers_valid.
8206
8207 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8208
8209         GDB 7.9.1 released.
8210
8211 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8212
8213         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8214         Xmethods now being able to specify a result type to that new
8215         sectioin.
8216
8217 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8218
8219         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8220         first before resizing the window.
8221         * tui/tui.c (tui_enable): Likewise.
8222
8223 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8224
8225         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8226         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8227         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8228         dummy_dtor parameter.
8229         * infcall.h: Include dummy-frame.h.
8230         (call_function_by_hand_dummy_dtor_ftype): Remove.
8231         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8232         parameter.
8233
8234 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8235
8236         PR gdb/17820
8237         * top.c (history_size_setshow_var): Change type to signed.
8238         Initialize to -2.  Update documentation.
8239         (set_readline_history_size): Define.
8240         (set_history_size_command): Use it.  Remove logic for handling
8241         out-of-range sizes.
8242         (init_history): Use set_readline_history_size().  Test for a
8243         value of -2 instead of 0 when determining whether to set a
8244         default history size.
8245         (init_main): Decode the argument of the "size" command as a
8246         zuinteger_unlimited.
8247
8248 2015-05-12  Doug Evans  <dje@google.com>
8249
8250         * dwarf2read.c (struct file_entry): Tweak comments.
8251         (get_debug_line_section): Tweak comments.
8252
8253 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8254
8255         * NEWS: Announce fork support in the RSP and support
8256         for fork debugging in extended mode.
8257
8258 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8259
8260         * remote.c (remote_insert_fork_catchpoint): New function.
8261         (remote_remove_fork_catchpoint): New function.
8262         (remote_insert_vfork_catchpoint): New function.
8263         (remote_remove_vfork_catchpoint): New function.
8264         (pending_fork_parent_callback): New function.
8265         (remove_new_fork_child): New function.
8266         (remote_update_thread_list): Call remote_notif_get_pending_events
8267         and remove_new_fork_child.
8268         (extended_remote_kill): Kill fork child when killing the
8269         parent before follow_fork completes.
8270         (init_extended_remote_ops): Initialize target vector with
8271         new fork catchpoint functions.
8272
8273 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8274
8275         * remote.c (remove_vfork_event_p): New function.
8276         (remote_follow_fork): Add vfork event type to event checking.
8277         (remote_parse_stop_reply): New stop reasons "vfork" and
8278         "vforkdone" for RSP 'T' Stop Reply Packet.
8279
8280 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8281
8282         * linux-nat.c (linux_nat_ptrace_options): New function.
8283         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8284         Call linux_nat_ptrace_options and use different argument to
8285         linux_enable_event_reporting.
8286         (_initialize_linux_nat): Delete call to
8287         linux_ptrace_set_additional_flags.
8288         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8289         supported_ptrace_options.
8290         (additional_flags): Delete variable.
8291         (linux_check_ptrace_features): Use supported_ptrace_options.
8292         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8293         Likewise, and remove additional_flags check.
8294         (linux_enable_event_reporting): Change 'attached' argument to
8295         'options'.  Use supported_ptrace_options.
8296         (ptrace_supports_feature): Change comment.  Use
8297         supported_ptrace_options.
8298         (linux_ptrace_set_additional_flags): Delete function.
8299         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8300         Delete function prototype.
8301         * remote.c (remote_fork_event_p): New function.
8302         (remote_detach_pid): New function.
8303         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8304         if doing detach-on-fork.
8305         (remote_follow_fork): New function.
8306         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8307         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8308         (init_extended_remote_ops): Initialize to_follow_fork.
8309
8310 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8311
8312         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8313         from static to extern.
8314         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8315         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8316         * PACKET_vfork_event_feature>: New enumeration constants.
8317         (remote_protocol_features): Add table entries for new packets.
8318         (remote_query_supported): Add new feature queries to qSupported
8319         packet.
8320
8321 2015-05-12  Gary Benson <gbenson@redhat.com>
8322
8323         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8324         for fake PIDs as well as real ones.
8325         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8326
8327 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8328
8329         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8330         * python/py-value.c (valpy_reference_value): New function.
8331         (valpy_const_value): Likewise.
8332         (value_object_methods): Add new methods.
8333         * value.c (make_cv_value): New function.
8334         * value.h (make_cv_value): Declare.
8335
8336 2015-05-08  Yao Qi  <yao@codesourcery.com>
8337             Sandra Loosemore  <sandra@codesourcery.com>
8338
8339         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8340         to 'lh->include_dirs' before accessing to it.
8341         (psymtab_include_file_name): Likewise.
8342         (dwarf_decode_lines_1): Likewise.
8343         (dwarf_decode_lines): Likewise.
8344         (file_file_name): Likewise.
8345
8346 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8347
8348         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8349         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8350         (nios2_linux_rt_sigreturn_init): Adjust base address of
8351         register save area.
8352
8353 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8354
8355         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8356         "trap 31" as the breakpoint instruction on all targets.
8357
8358 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8359
8360         * infcmd.c (print_return_value): Remove unused declaration.
8361
8362 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8363
8364         * dwarf2read.c (attr_to_dynamic_prop)
8365         <DW_AT_data_member_location>: Use read_type_die isntead of
8366         get_die_type.
8367
8368 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8369
8370         * ada-lang.c (ada_convert_actual): Add handling of formals
8371         passed inside an aligner type.
8372
8373 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8374
8375         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8376
8377 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8378
8379         PR python/18291
8380         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8381         Print xmethod matcher status.
8382
8383 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8384
8385         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8386         register in the regcache when treating the PSWM register, and vice
8387         versa.
8388
8389 2015-05-07  Gary Benson <gbenson@redhat.com>
8390
8391         * linux-thread-db.c (struct thread_db_info)
8392         <td_ta_map_id2thr_p>: Remove field.
8393         (try_thread_db_load_1): Remove initialization for the above.
8394
8395 2015-05-07  Gary Benson <gbenson@redhat.com>
8396
8397         * linux-thread-db.c (struct thread_db_info)
8398         <td_thr_validate_p>: Remove field.
8399         (try_thread_db_load_1): Remove initialization for the above.
8400
8401 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8402
8403         * compile/compile-object-load.c (compile_object_load): Support
8404         mst_text_gnu_ifunc.
8405
8406 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8407
8408         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8409         const.  Use new variables for the const compatibility.
8410         (eval_compile_command): Make the cmd_string parameter const.
8411         * compile/compile.h (eval_compile_command): Make the cmd_string
8412         parameter const.
8413
8414 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8415
8416         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8417         comment.
8418         * top.c (deprecated_init_ui_hook): Delete.
8419         (gdb_init): Remove handling of deprecated_init_ui_hook.
8420         * interps.c (clear_interpreter_hooks): Remove handling of
8421         deprecated_init_ui_hook.
8422         * main.c (captured_main): Update comment.
8423
8424 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8425
8426         * solib.c (_initialize_solib): Add "info dll" alias creation.
8427         * windows-nat.c (set_windows_aliases): Delete.
8428         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8429         assignment.
8430         * NEWS: Add news entry about "info dll" now being available
8431         on all platforms.
8432
8433 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8434
8435         * ada-lang.c (value_assign_to_component): Reformat and improve
8436         documentation. Remove all trailing spaces.
8437
8438 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8439
8440         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8441         Stop counting inlined frames as soon as an out-of-line function
8442         is found.
8443
8444 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8445
8446         * dwarf2read.c (inherit_abstract_dies): Skip
8447         DW_TAG_GNU_call_site dies while inheriting children of an
8448         abstract DIE into a scope.
8449         (read_lexical_block_scope): Inherit abstract DIE's for
8450         lexical scopes.
8451
8452 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8453
8454         * ada-valprint.c (val_print_packed_array_elements): Delete
8455         variable "len".  Add a type-length check when comparing two
8456         consecutive elements of the array.  Use the element's actual
8457         length in call to value_contents_eq.
8458         * ada-lang.c (ada_value_primitive_packed_val): Always return
8459         a value whose type has been resolved.
8460
8461 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8462
8463         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8464         BIT_SIZE and LEN if the size of the resolved type is smaller
8465         than BIT_SIZE * HOST_CHAR_BIT.
8466
8467 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8468
8469         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8470         correct address in call to value_at.  Adjust call to
8471         value_address accordingly.
8472
8473 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8474
8475         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8476         to print it.
8477
8478 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8479
8480         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8481         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8482         pinfo->valaddr.
8483         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8484         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8485         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8486         Add handling of addr_stack->valaddr.
8487         (resolve_dynamic_type): Add "valaddr" parameter.
8488         Set pinfo.valaddr field.
8489         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8490         resolve_dynamic_type.
8491         (ada_discrete_type_low_bound): Likewise.
8492         * findvar.c (default_read_var_value): Likewise.
8493         * value.c (value_from_contents_and_address): Likewise.
8494
8495 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8496
8497         * gdbtypes.c (resolve_dynamic_array): Use
8498         create_array_type_with_stride instead of create_array_type.
8499
8500 2015-04-30  DJ Delorie  <dj@redhat.com>
8501
8502         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8503         rl78_decode_opcode
8504
8505 2015-04-29  Doug Evans  <dje@google.com>
8506
8507         PR python/18285
8508         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8509         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8510         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8511         * extension-priv.h (struct extension_language_ops)
8512         <get_xmethod_result_type>: New member.
8513         * extension.c (get_xmethod_result_type): New function.
8514         * extension.h (get_xmethod_result_type): Declare.
8515         * python/py-xmethods.c (get_result_type_method_name): New static
8516         global.
8517         (py_get_result_type_method_name): Ditto.
8518         (gdbpy_get_xmethod_result_type): New function.
8519         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8520         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8521         * python/python.c (python_extension_ops): Add
8522         gdbpy_get_xmethod_result_type.
8523         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8524         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8525         xmethods.
8526         (value_x_unop): Ditto.
8527         * value.c (result_type_of_xmethod): New function.
8528         * value.h (result_type_of_xmethod): Declare.
8529
8530 2015-04-29  Gary Benson <gbenson@redhat.com>
8531
8532         * solib.c (solib_find_1): Allow fd argument to be NULL.
8533         (exec_file_find): Update comment.
8534         (solib_find): Likewise.
8535         * exec.c (exec_file_locate_attach): Use NULL as fd
8536         argument to exec_file_find to avoid having to close
8537         the opened file.
8538         * infrun.c (follow_exec): Likewise.
8539
8540 2015-04-28  Doug Evans  <dje@google.com>
8541
8542         PR python/18299
8543         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8544         name or __name__ attributes.  Handle gdb module as first argument.
8545
8546 2015-04-28  Doug Evans  <dje@google.com>
8547
8548         PR python/18089
8549         * python/py-prettyprint.c (print_children): Verify result of children
8550         iterator.  Provide better error message.
8551         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8552         * python/python.c (gdbpy_print_python_errors_p): New function.
8553
8554 2015-04-28  Doug Evans  <dje@google.com>
8555
8556         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8557
8558 2015-04-28  Sasha Smundak  <asmundak@google.com>
8559
8560         * NEWS: Mention gdb.Type.optimized_out method.
8561         * python/py-type.c (typy_optimized_out):  New function.
8562
8563 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8564
8565         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8566
8567 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8568
8569         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8570         (initialize_utils): Move call of init_page_info() to ...
8571         * top.c (gdb_init): ... here.
8572
8573 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8574
8575         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8576         (tui_sigwinch_handler): Still update our idea of
8577         the terminal's width and height even when TUI is not active.
8578
8579 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8580
8581         * utils.h (set_screen_width_and_height): Declare.
8582         * utils.c (set_screen_width_and_height): Define.
8583         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8584
8585 2015-04-28  Gary Benson <gbenson@redhat.com>
8586
8587         * infrun.c (solist.h): New include.
8588         (follow_exec): Use exec_file_find to prefix execd_pathname
8589         with gdb_sysroot.
8590
8591 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8592
8593         * tui/tui-source.c (tui_set_source_content): Avoid calling
8594         strcpy() when offset is 0.
8595
8596 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8597
8598         PR gdb/18155
8599         * tui/tui-data.c (tui_free_window): Don't free the locator
8600         window when passed an SRC_WIN or a DISASSEM_WIN.
8601
8602 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8603
8604         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8605         (tui_win_content): Move declaration.
8606         (struct tui_gen_win_info): Give 'content' field the
8607         type tui_win_content.
8608         * tui/tui-data.c (init_content_element): Remove redundant and
8609         erroneous casts.
8610         (tui_add_content_elements): Remove erroneous cast.
8611         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8612         casts.
8613         (tui_get_begin_asm_address): Likewise.
8614         * tui/tui-regs.c (tui_show_registers): Likewise.
8615         (tui_show_register_group): Likewise.
8616         (tui_display_registers_from): Likewise.
8617         (tui_check_register_values): Likewise.
8618         * tui/tui-source.c (tui_set_source_content): Likewise.
8619         (tui_set_source_content_nil): Likewise.
8620         (tui_source_is_displayed): Likewise.
8621         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8622         (tui_set_locator_fullname): Likewise.
8623         (tui_set_locator_info): Likewise.
8624         (tui_show_frame_info): Likewise.
8625         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8626         (tui_show_source_line): Likewise.
8627         (tui_horizontal_source_scroll): Likewise.
8628         (tui_update_breakpoint_info): Likewise.
8629         (tui_set_exec_info_content): Likewise.
8630         (tui_show_exec_info_content): Likewise.
8631         (tui_alloc_source_buffer): Likewise.
8632         (tui_line_is_displayed): Likewise.
8633         (tui_addr_is_displayed): Likewise.
8634
8635 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8636
8637         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8638         event if PL_FLAG_EXEC is set.
8639         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8640         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8641         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8642         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8643         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8644
8645 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8646
8647         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8648         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8649         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8650         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8651         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8652         [PT_LWPINFO] (fbsd_wait): New function.
8653         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8654         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8655         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8656         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8657         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8658         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8659         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8660         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8661         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8662         "fbsd_wait".
8663         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8664         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8665         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8666         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8667         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8668         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8669         Set "to_post_attach" to "fbsd_post_attach".
8670
8671 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8672
8673         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8674         (fbsd_find_memory_regions): Mark static.
8675         (fbsd_nat_add_target): New function.
8676         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8677         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8678         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8679         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8680         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8681         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8682
8683 2015-04-27  Gary Benson <gbenson@redhat.com>
8684
8685         * objfiles.c (allocate_objfile): Do not attempt to expand name
8686         if name is a "target:" filename.
8687         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8688         to load auto-load scripts for objfiles with "target:" filenames.
8689
8690 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8691
8692         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8693         (enum s390_vector_abi_kind): New enum.
8694         (struct gdbarch_tdep)<vector_abi>: New field.
8695         (s390_effective_inner_type): Add parameter min_size.  Stop
8696         unwrapping if the inner type is smaller than min_size.
8697         (s390_function_arg_float): Adjust call to
8698         s390_effective_inner_type.
8699         (s390_function_arg_vector): New function.
8700         (s390_function_arg_integer): Adjust comment.
8701         (struct s390_arg_state)<vr>: New field.
8702         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8703         arguments according to vector ABI when appropriate.
8704         (s390_push_dummy_call): Initialize the argument state's field
8705         'vr'.  Adjust calls to s390_handle_arg.
8706         (s390_register_return_value): Handle vector return values.
8707         (s390_return_value): Apply the "register" return value convention
8708         to a vector when appropriate.
8709         (s390_gdbarch_init): Initialize tdep->vector_abi.
8710         * NEWS: Announce S390 vector ABI support.
8711
8712 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8713
8714         * s390-linux-tdep.c (s390_return_value_convention): Remove
8715         function.  Inline its logic...
8716         (s390_return_value): ...here.  Instead, move the handling of the
8717         "register" return value convention...
8718         (s390_register_return_value): ...here.  New function.
8719
8720 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8721
8722         * s390-linux-tdep.c
8723         (is_float_singleton): Remove function.  Move the "singleton" part
8724         of the logic...
8725         (s390_effective_inner_type): ...here.  New function.
8726         (is_float_like): Remove function.  Inline its logic...
8727         (s390_function_arg_float): ...here.
8728         (is_pointer_like, is_integer_like, is_struct_like): Remove
8729         functions.  Inline their logic...
8730         (s390_function_arg_integer): ...here.
8731         (s390_function_arg_pass_by_reference): Remove function.
8732         (extend_simple_arg): Remove function.
8733         (alignment_of): Remove function.
8734         (struct s390_arg_state): New structure.
8735         (s390_handle_arg): New function.
8736         (s390_push_dummy_call): Move parameter placement logic to the new
8737         function s390_handle_arg.  Call it for calculating the stack area
8738         sizes first, and again for actually writing the parameters.
8739
8740 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8741
8742         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8743           false if the argument is zero.
8744
8745 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8746
8747         * ada-lang.c (template_to_static_fixed_type): Return input type
8748         when it is already fixed.  Cache the input type itself when not
8749         creating a static fixed copy.  Make it explicit that we never
8750         molestate the input type.
8751         * gdbtypes.c (resolve_dynamic_struct): Reset the
8752         TYPE_TARGET_TYPE field for resolved copies.
8753
8754 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8755
8756         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8757         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8758         (template_to_static_fixed_type): Call ada_check_typedef only
8759         when necessary.
8760
8761 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8762
8763         * cli/cli-dump.c (srec_dump_command): Add internationalization
8764         mark ups.
8765         (ihex_dump_command): Likewise.
8766         (tekhex_dump_command): Likewise.
8767         (binary_dump_command): Likewise.
8768         (binary_append_command): Likewise.
8769
8770 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8771
8772         * cli/cli-dump.c (verilog_cmdlist): New variable.
8773         (dump_verilog_memory): New function.
8774         (dump_verilog_value): New function.
8775         (verilog_dump_command): New function.
8776         (_initialize_cli_dump): Add new commands to support verilog dump
8777         format.
8778         * NEWS: Add entry for "dump verilog".
8779
8780 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8781
8782         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8783         descriptive type when there is none.
8784
8785 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8786
8787         * tui/tui-win.c (tui_async_resize_screen): Call
8788         rl_resize_terminal().
8789
8790 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8791
8792         * windows-nat.c (handle_output_debug_string): Don't change
8793         current_event.dwThreadId.
8794         (get_windows_debug_event): Use thread_id, rather than relying on
8795         current_event.dwThreadId being changed.
8796
8797 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8798
8799         * windows-nat.c (windows_continue): Report an error if
8800         ContinueDebugEvent() fails.
8801
8802 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8803
8804         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8805
8806 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8807
8808         * windows-nat.c (get_windows_debug_event): Replace retval with
8809         thread_id throughout.  Update stale comment.
8810
8811 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8812
8813         * windows-nat.c (get_windows_debug_event): Don't use ternary
8814         conditional operator.
8815
8816 2015-04-21  Pierre Muller  <muller@sourceware.org>
8817
8818         PR pascal/17815
8819         p-exp.y (yylex): Reorganize code to return the matched pattern
8820         for a field of this.
8821
8822 2015-04-21  Gary Benson <gbenson@redhat.com>
8823
8824         * common/fileio.h (fileio_to_host_openflags): New declaration.
8825         * common/fileio.c (fcntl.h): New include.
8826         (fileio_to_host_openflags): New function, factored out from...
8827         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8828         Single use updated.
8829
8830 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8831
8832         * rl78-tdep.c (RL78_SP_ADDR): Define.
8833         (opc_reg_to_gdb_regnum): New static function.
8834         (rl78_analyze_prologue): Recognize instructions forming slightly
8835         more interesting prologues.
8836
8837 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8838
8839         Revert:
8840         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8841         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8842         TYPE_CODE_REF types so that they are not considered as dynamic
8843         depending on the referenced type.
8844         (resolve_dynamic_type_internal): Likewise.
8845
8846 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8847
8848         Revert:
8849         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8850         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8851         "top_level" parameter.
8852         (resolve_dynamic_type_internal): Remove the unused "top_level"
8853         parameter.  Update call to is_dynamic_type_internal.
8854         (is_dynamic_type): Update call to is_dynamic_type_internal.
8855         (resolve_dynamic_range): Update call to
8856         resolve_dynamic_type_internal.
8857         (resolve_dynamic_union): Likewise.
8858         (resolve_dynamic_struct): Likewise.
8859         (resolve_dynamic_type): Likewise.
8860
8861 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8862
8863         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8864         xmalloc.
8865
8866 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8867
8868         * reply_mig_hack.awk: Robustify parsing.
8869
8870         * reply_mig_hack.awk: Don't bother to declare an intermediate
8871         function pointer variable.
8872
8873 2015-04-17  Doug Evans  <dje@google.com>
8874
8875         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8876         to "exec_displacement" to avoid confusion with inner use of the name.
8877
8878 2015-04-17  Pedro Alves  <palves@redhat.com>
8879
8880         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8881         if HW point of TYPE isn't supported.
8882
8883 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8884             Pedro Alves  <palves@redhat.com>
8885
8886         * target.h (target_can_use_hardware_watchpoint): Update comments.
8887         Remove trailing ";".
8888
8889 2015-04-17  Gary Benson <gbenson@redhat.com>
8890
8891         * remote.c (remote_add_inferior): New argument try_open_exec.
8892         If nonzero, attempt to open the inferior's executable file as
8893         the main executable if no main executable is open already.
8894         All callers updated.
8895         * NEWS: Mention that GDB now supports automatic location and
8896         retrieval of executable + files from remote targets.
8897
8898 2015-04-17  Gary Benson <gbenson@redhat.com>
8899
8900         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8901         * remote.c (PACKET_qXfer_exec_file): Likewise.
8902         (remote_protocol_features): Register the
8903         "qXfer:exec-file:read" feature.
8904         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8905         (remote_pid_to_exec_file): New function.
8906         (init_remote_ops): Initialize to_pid_to_exec_file.
8907         (_initialize_remote): Register new "set/show remote
8908         pid-to-exec-file-packet" command.
8909         * NEWS: Announce new qXfer:exec-file:read packet.
8910
8911 2015-04-17  Gary Benson <gbenson@redhat.com>
8912
8913         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8914         New declaration.
8915         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8916         New function, factored out from...
8917         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8918
8919 2015-04-17  Gary Benson <gbenson@redhat.com>
8920
8921         * exec.c (solist.h): New include.
8922         (exec_file_locate_attach): Prefix absolute executable
8923         paths with gdb_sysroot if set.
8924         * NEWS: Mention that executable paths may be prepended
8925         with sysroot.
8926
8927 2015-04-17  Gary Benson <gbenson@redhat.com>
8928
8929         * solist.h (exec_file_find): New declaration.
8930         * solib.c (solib_find_1): New function, factored out from...
8931         (solib_find): ...here.
8932         (exec_file_find): New function.
8933
8934 2015-04-17  Gary Benson <gbenson@redhat.com>
8935
8936         * gdbcore.h (exec_file_locate_attach): New declaration.
8937         * exec.c (exec_file_locate_attach): New function, factored
8938         out from...
8939         * infcmd.c (attach_command_post_wait): ...here.
8940
8941 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8942
8943         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8944
8945 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8946
8947         * infrun.c (maybe_software_singlestep): Declare.
8948         (displaced_step_fixup): Call maybe_software_singlestep.
8949
8950 2015-04-15  Doug Evans  <dje@google.com>
8951
8952         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8953
8954 2015-04-15  Doug Evans  <dje@google.com>
8955
8956         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8957
8958 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8959
8960         * python/lib/gdb/command/unwinders.py: Add parentheses.
8961
8962 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8963
8964         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8965
8966 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8967
8968         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8969
8970 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8971
8972         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8973         dsc->insn_size instead of 4.
8974
8975 2015-04-14  Gary Benson <gbenson@redhat.com>
8976
8977         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8978         * minidebug.c (lzma_stat): Likewise.
8979         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8980         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8981
8982 2015-04-13  Stan Shebs  <stanshebs@google.com>
8983
8984         * MAINTAINERS: Update my email address.
8985
8986 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8987
8988         * amd64-tdep.c (amd64_target_description): New function.
8989         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8990         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8991         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8992         x86 extended save area.
8993         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8994         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8995         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8996         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8997         "amd64fbsd_read_description".
8998         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8999         (amd64fbsd_supply_xstateregset): New function.
9000         (amd64fbsd_collect_xstateregset): New function.
9001         Add "amd64fbsd_xstateregset".
9002         (amd64fbsd_iterate_over_regset_sections): New function.
9003         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9004         "I386_FBSD_XSAVE_XCR0_OFFSET".
9005         Add "iterate_over_regset_sections" gdbarch method.
9006         Add "core_read_description" gdbarch method.
9007         * i386-tdep.c (i386_target_description): New function.
9008         * i386-tdep.h: Export i386_target_description and tdesc_i386.
9009         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9010         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9011         x86 extended save area.
9012         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9013         * i386bsd-nat.h: Export i386bsd_xsave_len.
9014         * i386fbsd-nat.c (i386fbsd_read_description): New function.
9015         (_initialize_i386fbsd_nat): Set "to_read_description" to
9016         "i386fbsd_read_description".
9017         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9018         (i386fbsd_core_read_description): New function.
9019         (i386fbsd_supply_xstateregset): New function.
9020         (i386fbsd_collect_xstateregset): New function.
9021         Add "i386fbsd_xstateregset".
9022         (i386fbsd_iterate_over_regset_sections): New function.
9023         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9024         "I386_FBSD_XSAVE_XCR0_OFFSET".
9025         Add "iterate_over_regset_sections" gdbarch method.
9026         Add "core_read_description" gdbarch method.
9027         * i386fbsd-tdep.h: New file.
9028
9029 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9030
9031         * NEWS (Changes since GDB 7.9): Add removed -xdb.
9032         * breakpoint.c (command_line_is_silent): Remove xdb_commands
9033         conditional.
9034         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9035         and lb.
9036         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9037         va.
9038         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9039         conditional.
9040         * defs.h (xdb_commands): Remove declaration.
9041         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9042         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9043         * infcmd.c (run_no_args_command, go_command): Remove.
9044         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9045         * infrun.c (xdb_handle_command): Remove.
9046         (_initialize_infrun): Remove xdb_commands for lz and z.
9047         * main.c (xdb_commands): Remove variable.
9048         (captured_main): Remove "xdb" from long_options.
9049         (print_gdb_help): Remove --xdb from help.
9050         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9051         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9052         * stack.c (backtrace_full_command, args_plus_locals_info)
9053         (current_frame_command): Remove.
9054         (_initialize_stack): Remove xdb_commands for t, T and l.
9055         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9056         * thread.c (_initialize_thread): Remove xdb_commands condition.
9057         * tui/tui-layout.c (tui_toggle_layout_command)
9058         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9059         (_initialize_tui_layout): Remove xdb_commands for td and ts.
9060         * tui/tui-regs.c (tui_scroll_regs_forward_command)
9061         (tui_scroll_regs_backward_command): Remove.
9062         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9063         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9064         (_initialize_tui_win): Remove xdb_commands for U and w.
9065         * utils.c (pagination_on_command, pagination_off_command): Remove.
9066         (initialize_utils): Remove xdb_commands for am and sm.
9067
9068 2015-04-10  Pedro Alves  <palves@redhat.com>
9069
9070         * infrun.c (displaced_step_fixup): Switch to the event ptid
9071         earlier.  If the thread stopped for a watchpoint and the
9072         target/arch has non-continuable watchpoints, cancel the displaced
9073         step.
9074         (resume): Don't start a displaced step if in-line step-over info
9075         is valid.
9076
9077 2015-04-10  Pedro Alves  <palves@redhat.com>
9078
9079         * infrun.c (displaced_step_in_progress): New function.
9080         (do_target_resume): Advise target to report all signals if
9081         displaced stepping.
9082
9083 2015-04-10  Pedro Alves  <palves@redhat.com>
9084
9085         PR gdb/18216
9086         * infrun.c (process_event_stop_test): Don't assume a step-resume
9087         is set if tp->stepped_breakpoint is true.
9088
9089 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9090
9091         * arm-tdep.c (install_alu_reg): Update comment.
9092         (thumb_copy_alu_reg): Remove local variable rn.  Update
9093         debugging message.  Use r2 instead of r1 in the modified
9094         instruction.
9095
9096 2015-04-10  Pedro Alves  <palves@redhat.com>
9097
9098         PR gdb/13858
9099         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9100         linux_displaced_step_location as gdbarch_displaced_step_location
9101         hook.
9102         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9103         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9104         * linux-tdep.c (linux_displaced_step_location): New function,
9105         based on ppc_linux_displaced_step_location.
9106         * linux-tdep.h (linux_displaced_step_location): New declaration.
9107         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9108         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9109         Delete.
9110         (ppc_linux_init_abi): Install linux_displaced_step_location as
9111         gdbarch_displaced_step_location hook, even without Cell/B.E..
9112         (_initialize_ppc_linux_tdep): Don't install
9113         ppc_linux_inferior_created as inferior_created observer.
9114         * s390-linux-tdep.c (s390_gdbarch_init): Install
9115         linux_displaced_step_location as gdbarch_displaced_step_location
9116         hook.
9117
9118 2015-04-09  Gary Benson <gbenson@redhat.com>
9119
9120         * common/common-remote-fileio.h: Rename to...
9121         * common/fileio.h: ...this.  Update all references.
9122         (remote_fileio_to_fio_error): Rename to...
9123         (host_to_fileio_error): ...this.
9124         (remote_fileio_to_be): Rename to...
9125         (host_to_bigendian): ...this.  Update all callers.
9126         (remote_fileio_to_fio_uint): Rename to...
9127         (host_to_fileio_uint): ...this.  Update all callers.
9128         (remote_fileio_to_fio_time): Rename to...
9129         (host_to_fileio_time): ...this.  Update all callers.
9130         (remote_fileio_to_fio_stat): Rename to...
9131         (host_to_fileio_stat): ...this.
9132         Update all references.
9133         * common/common-remote-fileio.c: Rename to...
9134         * common/fileio.c: ...this.  Update all references.
9135         (remote_fileio_to_fio_error): Rename to...
9136         (host_to_fileio_error): ...this.  Update all callers.
9137         (remote_fileio_mode_to_target): Rename to...
9138         (fileio_mode_pack): ...this.  Update all callers.
9139         (remote_fileio_to_fio_mode): Rename to...
9140         (host_to_fileio_mode): ...this.  Update all callers.
9141         (remote_fileio_to_fio_ulong): Rename to...
9142         (host_to_fileio_ulong): ...this.  Update all callers.
9143         (remote_fileio_to_fio_stat): Rename to...
9144         (host_to_fileio_stat): ...this.  Update all callers.
9145
9146 2015-04-09  Andy Wingo  <wingo@igalia.com>
9147
9148         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9149         (frame_functions): Bind gdbscm_frame_read_register to
9150         frame-read-register.
9151         * guile/lib/gdb.scm (frame-read-register): Export.
9152
9153 2015-04-09  Gary Benson <gbenson@redhat.com>
9154
9155         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9156         New declaration.
9157         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9158         New function, factored out the named functions below.
9159         * inf-child.c (gdb/fileio.h): Remove include.
9160         (common-remote-fileio.h): New include.
9161         (inf_child_errno_to_fileio_error): Remove function.  Update
9162         all callers to use remote_fileio_to_fio_error.
9163         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9164
9165 2015-04-09  Andy Wingo  <wingo@igalia.com>
9166
9167         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9168
9169 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9170
9171         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9172         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9173         * configure: Regenerated.
9174
9175 2015-04-09  Pedro Alves  <palves@redhat.com>
9176
9177         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9178         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9179         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9180         * gnulib/import/Makefile.am: Update.
9181         * gnulib/import/Makefile.in: Update.
9182         * gnulib/import/m4/gnulib-cache.m4: Update.
9183         * gnulib/import/m4/gnulib-comp.m4: Update.
9184         * gnulib/import/m4/strtok_r.m4: New file.
9185         * gnulib/import/strtok_r.c: New file.
9186
9187 2015-04-09  Pedro Alves  <palves@redhat.com>
9188
9189         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9190         "called too early to check prototype".
9191
9192 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9193
9194         PR python/16699
9195         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9196         use a caching mechanism.  Adjust comments and code to reflect
9197         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9198         (cmdpy_completer_handle_brkchars): Adjust call to
9199         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9200         (cmdpy_completer): Likewise.
9201
9202 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9203
9204         * spu-tdep.c (spu_gdbarch_init): Don't call
9205         set_gdbarch_cannot_step_breakpoint.
9206
9207 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9208
9209         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9210
9211 2015-04-07  Pedro Alves  <palves@redhat.com>
9212
9213         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9214         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9215         (delete_exited_threads): New declaration.
9216         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9217         * linux-nat.c (linux_nat_update_thread_list): New function.
9218         (linux_nat_add_target): Install it.
9219         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9220         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9221         (delete_exited_threads): New function.
9222
9223 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9224
9225         * infrun.c (resume) <displaced stepping debug output>: Get the
9226         leader thread's regcache, not resume_ptid's.
9227
9228 2015-04-06  Doug Evans  <xdje42@gmail.com>
9229
9230         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9231         VAR_DOMAIN.
9232         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9233         Include symbol domain in debugging output.
9234
9235 2015-04-06  Pedro Alves  <palves@redhat.com>
9236             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9237
9238         * configure.ac: Remove the mingw32-specific stub-termcap.o
9239         fallback, and instead fallback to the stub termcap on all hosts.
9240         * configure: Regenerate.
9241         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9242         symbols.
9243
9244 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9245
9246         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9247         "top_level" parameter.
9248         (resolve_dynamic_type_internal): Remove the unused "top_level"
9249         parameter.  Update call to is_dynamic_type_internal.
9250         (is_dynamic_type): Update call to is_dynamic_type_internal.
9251         (resolve_dynamic_range): Update call to
9252         resolve_dynamic_type_internal.
9253         (resolve_dynamic_union): Likewise.
9254         (resolve_dynamic_struct): Likewise.
9255         (resolve_dynamic_type): Likewise.
9256
9257 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9258
9259         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9260         TYPE_CODE_REF types so that they are not considered as dynamic
9261         depending on the referenced type.
9262         (resolve_dynamic_type_internal): Likewise.
9263
9264 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9265
9266         * Makefile.in (top_srcdir): New.
9267         * configure: Regenerated.
9268
9269 2015-04-02  Gary Benson <gbenson@redhat.com>
9270
9271         * NEWS: Announce the new default sysroot of "target:".
9272
9273 2015-04-02  Gary Benson <gbenson@redhat.com>
9274
9275         * main.c (captured_main): Set gdb_sysroot to "target:"
9276         if not otherwise set.
9277
9278 2015-04-02  Gary Benson <gbenson@redhat.com>
9279
9280         * exec.c (exec_file_attach): Support "target:" filenames.
9281
9282 2015-04-02  Gary Benson <gbenson@redhat.com>
9283
9284         * solib.c (solib_find): Strip "target:" prefix from sysroot
9285         if accessing local files.
9286
9287 2015-04-02  Gary Benson <gbenson@redhat.com>
9288
9289         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9290         checks and error messages.
9291
9292 2015-04-02  Gary Benson <gbenson@redhat.com>
9293
9294         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9295         (remote_filename_p): Remove declaration.
9296         (remote_bfd_open): Likewise.
9297         * remote.c (remote_bfd_iovec_open): Remove function.
9298         (remote_bfd_iovec_close): Likewise.
9299         (remote_bfd_iovec_pread): Likewise.
9300         (remote_bfd_iovec_stat): Likewise.
9301         (remote_filename_p): Likewise.
9302         (remote_bfd_open): Likewise.
9303         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9304         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9305         (gdb_bfd_open_maybe_remote): Remove function.
9306         (symfile_bfd_open):  Replace remote filename check with
9307         target filename check.
9308         (reread_symbols): Use gdb_bfd_open.
9309         * build-id.c (gdbcore.h): New include.
9310         (build_id_to_debug_bfd): Use gdb_bfd_open.
9311         * infcmd.c (attach_command_post_wait): Remove remote filename
9312         check.
9313         * solib.c (solib_find): Replace remote-specific handling with
9314         target-specific handling.  Update comments where necessary.
9315         (solib_bfd_open): Replace remote-specific handling with
9316         target-specific handling.
9317         (gdb_sysroot_changed): New function.
9318         (_initialize_solib): Call the above when gdb_sysroot changes.
9319         * windows-tdep.c (gdbcore.h): New include.
9320         (windows_xfer_shared_library): Use gdb_bfd_open.
9321
9322 2015-04-02  Gary Benson <gbenson@redhat.com>
9323
9324         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9325         (is_target_filename): New declaration.
9326         (gdb_bfd_has_target_filename): Likewise.
9327         (gdb_bfd_open): Update documentation comment.
9328         * gdb_bfd.c (target.h): New include.
9329         (gdb/fileio.h): Likewise.
9330         (is_target_filename): New function.
9331         (gdb_bfd_has_target_filename): Likewise.
9332         (fileio_errno_to_host): Likewise.
9333         (gdb_bfd_iovec_fileio_open): Likewise.
9334         (gdb_bfd_iovec_fileio_pread): Likewise.
9335         (gdb_bfd_iovec_fileio_close): Likewise.
9336         (gdb_bfd_iovec_fileio_fstat): Likewise.
9337         (gdb_bfd_open): Use target fileio to access paths prefixed
9338         with "target:" where necessary.
9339
9340 2015-04-02  Gary Benson <gbenson@redhat.com>
9341
9342         * target.h (struct target_ops) <to_filesystem_is_local>:
9343         New field.
9344         (target_filesystem_is_local): New macro.
9345         * target-delegates.c: Regenerate.
9346         * remote.c (remote_filesystem_is_local): New function.
9347         (init_remote_ops): Initialize to_filesystem_is_local.
9348
9349 2015-04-02  Gary Benson <gbenson@redhat.com>
9350
9351         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9352         (target_fileio_fstat): New declaration.
9353         * target.c (target_fileio_fstat): New function.
9354         * inf-child.c (inf_child_fileio_fstat): Likewise.
9355         (inf_child_target): Initialize to_fileio_fstat.
9356         * remote.c (init_remote_ops): Likewise.
9357
9358 2015-04-01  Sasha Smundak  <asmundak@google.com>
9359
9360         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9361         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9362         (py-unwind.o): New recipe.
9363         * NEWS: mention Python frame unwinding.
9364         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9365         gdb/unwinder.py and gdb/command/unwinder.py
9366         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9367         list.
9368         (execute_unwinders): New function.
9369         * python/lib/gdb/command/unwinders.py: New file.
9370         * python/lib/gdb/unwinder.py: New file.
9371         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9372         (objfpy_dealloc): Decrement frame_unwinders reference count.
9373         (objfpy_initialize): Create frame_unwinders list.
9374         (objfpy_get_frame_unwinders): New function.
9375         (objfpy_set_frame_unwinders): Ditto.
9376         (objfile_getset): Add frame_unwinders attribute to Objfile.
9377         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9378         (pspy_dealloc): Decrement frame_unwinders reference count.
9379         (pspy_initialize): Create frame_unwinders list.
9380         (pspy_get_frame_unwinders): New function.
9381         (pspy_set_frame_unwinders): Ditto.
9382         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9383         * python/py-unwind.c: New file.
9384         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9385         (objpy_get_frame_unwinders): New prototype.
9386         (gdbpy_initialize_unwind): New prototype.
9387         * python/python.c (gdbpy_apply_type_printers): Call
9388         gdbpy_initialize_unwind.
9389
9390 2015-04-01  Pedro Alves  <palves@redhat.com>
9391
9392         * infrun.c (resume): Check currently_stepping after clearing
9393         stepped_breakpoint, not before.
9394
9395 2015-04-01  Pedro Alves  <palves@redhat.com>
9396
9397         * infrun.c (print_target_wait_results): Print all the ptid
9398         elements.
9399
9400 2015-04-01  Pedro Alves  <palves@redhat.com>
9401
9402         * infrun.c (keep_going): Also discard cleanups if inserting
9403         breakpoints fails.
9404
9405 2015-04-01  Pedro Alves  <palves@redhat.com>
9406
9407         * infrun.c (wait_for_inferior): Install the
9408         finish_thread_state_cleanup cleanup across the whole function, not
9409         just around handle_inferior_event.
9410
9411 2015-04-01  Pedro Alves  <palves@redhat.com>
9412
9413         * infrun.c (resume) <step past permanent breakpoint>: Use
9414         do_target_resume.
9415
9416 2015-04-01  Pedro Alves  <palves@redhat.com>
9417
9418         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9419
9420 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9421
9422         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9423
9424 2015-04-01  Pedro Alves  <palves@redhat.com>
9425
9426         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9427         list if it was marked exited.
9428
9429 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9430
9431         * configure: Regenerated.
9432
9433 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9434             Jan Kratochvil  <jan.kratochvil@redhat.com>
9435             Oleg Nesterov  <oleg@redhat.com>
9436
9437         PR corefiles/16092
9438         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9439         New enum identifying the various options of the coredump_filter
9440         file.
9441         (struct smaps_vmflags): New struct.
9442         (use_coredump_filter): New variable.
9443         (decode_vmflags): New function.
9444         (mapping_is_anonymous_p): Likewise.
9445         (dump_mapping_p): Likewise.
9446         (linux_find_memory_regions_full): New variables
9447         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9448         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9449         parsing of its information.  Implement memory mapping filtering
9450         based on its contents.
9451         (show_use_coredump_filter): New function.
9452         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9453         * NEWS: Mention the possibility of using the
9454         '/proc/PID/coredump_filter' file when generating a corefile.
9455         Mention new command 'set use-coredump-filter'.
9456
9457 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9458
9459         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9460         read_memory_unsigned_integer.
9461
9462 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9463
9464         * Makefile.in (ZLIB): New.
9465         (ZLIBINC): Likewise.
9466         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9467         (CLIBS): Add $(ZLIB).
9468         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9469         Add -lz to LIBS.
9470         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9471         * top.c (print_gdb_configuration): Remove --with-zlib and
9472         --without-zlib.
9473         * config.in: Regenerated.
9474         * configure: Likewise.
9475
9476 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9477
9478         * NEWS: Mention info os cpus support.
9479         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9480         (struct osdata_type): Add cpus entry, reorder the entries in
9481         alphabetical order.
9482
9483 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9484
9485         * compile/compile.c (compile_to_object): Allow triplets with or
9486         without vendor set.
9487
9488 2015-03-30  Doug Evans  <dje@google.com>
9489
9490         PR c++/18141
9491         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9492         klass in VAR_DOMAIN.
9493
9494 2015-03-30  Gary Benson <gbenson@redhat.com>
9495
9496         * remote.c (remote_mourn_1): Remove function.  Update all callers
9497         to use remote_mourn.
9498         (extended_remote_mourn_1): Remove function.  Update all callers
9499         to use extended_remote_mourn.
9500         (extended_remote_attach_1): Remove function.  Update all callers
9501         to use extended_remote_attach.
9502
9503 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9504
9505         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9506         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9507         (ALLDEPFILES): Add ft32-tdep.c.
9508         * configure.tgt: Add FT32 entry.
9509         * ft32-tdep.c: New file, FT32 target-dependent code.
9510         * ft32-tdep.h: New file, FT32 target-dependent code.
9511
9512 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9513
9514         Revert:
9515         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9516         Code cleanup.
9517         * printcmd.c (print_command_1): Move expr variable scope.
9518
9519 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9520
9521         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9522
9523 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9524
9525         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9526         sections.
9527
9528 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9529
9530         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9531         exception raised while parsing the probe arguments.
9532         Force parsing to be done using the C language parser.
9533         * expression.h (parse_expression_with_language): Declare.
9534         * parse.c (parse_expression_with_language): New function.
9535
9536 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9537
9538         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9539
9540 2015-03-26  Andy Wingo  <wingo@igalia.com>
9541
9542         PR symtab/18148
9543         * dwarf2read.c (struct partial_die_info): Add has_const_value
9544         member.
9545         (add_partial_symbol): Don't punt on symbols that have const_value
9546         attributes.
9547         (read_partial_die): Detect DW_AT_const_value.
9548
9549 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9550
9551         Code cleanup.
9552         * printcmd.c (print_command_1): Move expr variable scope.
9553
9554 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9555
9556         Code cleanup.
9557         * printcmd.c (validate_format): Make the parameter cmdname const.
9558
9559 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9560
9561         * remote.c (_initialize_remote): Update comment.
9562
9563 2015-03-26  Pedro Alves  <palves@redhat.com>
9564             Jon TURNEY  <jon.turney@dronecode.org.uk>
9565
9566         * coffread.c (coff_symfile_read): When constructing the name of an
9567         import stub symbol from import symbol for amd64, only skip the
9568         char after _imp_ if the target is underscored (like i386) and the
9569         char is indeed the target's leading char.
9570
9571 2015-03-25  Pedro Alves  <palves@redhat.com>
9572
9573         * target.h <to_async>: Replace 'callback' and 'context' parameters
9574         with boolean 'enable' parameter.
9575         (target_async): Replace CALLBACK and CONTEXT parameters with
9576         boolean ENABLE parameter.
9577         * inf-loop.c (inferior_event_handler): Adjust.
9578         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9579         (linux_nat_resume): Adjust.
9580         (async_client_callback, async_client_context): Delete.
9581         (handle_target_event): Call inferior_event_handler directly.
9582         (linux_nat_async): Replace 'callback' and 'context' parameters
9583         with boolean 'enable' parameter.  Adjust.  Remove references to
9584         async_client_callback and async_client_context.
9585         (linux_nat_close): Adjust.
9586         * record-btrace.c (record_btrace_async): Replace 'callback' and
9587         'context' parameters with boolean 'enable' parameter.  Adjust.
9588         (record_btrace_resume): Adjust.
9589         * record-full.c (record_full_async): Replace 'callback' and
9590         'context' parameters with boolean 'enable' parameter.  Adjust.
9591         (record_full_resume, record_full_core_resume): Adjust.
9592         * remote.c (struct remote_state) <async_client_callback,
9593         async_client_context>: Delete fields.
9594         (remote_start_remote, extended_remote_attach_1, remote_resume)
9595         (extended_remote_create_inferior): Adjust.
9596         (remote_async_serial_handler): Call inferior_event_handler
9597         directly.
9598         (remote_async): Replace 'callback' and 'context' parameters with
9599         boolean 'enable' parameter.  Adjust.
9600         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9601         Adjust.
9602         * target-delegates.c: Regenerate.
9603
9604 2015-03-25  Gary Benson <gbenson@redhat.com>
9605             Pedro Alves  <palves@redhat.com>
9606
9607         * target.c (fileio_ft_t): New typedef, define object vector.
9608         (fileio_fhandles): New static variable.
9609         (is_closed_fileio_fh): New macro.
9610         (lowest_closed_fd): New static variable.
9611         (acquire_fileio_fd): New function.
9612         (release_fileio_fd): Likewise.
9613         (fileio_fd_to_fh): New macro.
9614         (target_fileio_open): Wrap the file descriptor on success.
9615         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9616         (target_fileio_pread): Likewise.
9617         (target_fileio_close): Likewise.
9618
9619 2015-03-24  Pedro Alves  <palves@redhat.com>
9620
9621         * thread.c (thread_apply_all_command): Take exited threads into
9622         account.
9623
9624 2015-03-24  Pedro Alves  <palves@redhat.com>
9625
9626         * infrun.c (resume, proceed): Mention
9627         switch_back_to_stepped_thread, not switch_back_to_stepping.
9628
9629 2015-03-24  Pedro Alves  <palves@redhat.com>
9630
9631         * infrun.c (user_visible_resume_ptid): Rewrite going from
9632         most-locked to unlocked instead of the opposite.  Move comment ...
9633         * infrun.h (user_visible_resume_ptid): ... here.
9634
9635 2015-03-24  Pedro Alves  <palves@redhat.com>
9636
9637         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9638         to resume the event lwp.  Use the lwp's ptid instead of the passed
9639         in (maybe wildcard) ptid.
9640         (stop_wait_callback): Tweak debug log output.
9641         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9642         TRAP_TRACE.
9643         (linux_nat_filter_event): In debug output, distinguish a
9644         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9645         before trying to resume the lwp.
9646
9647 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9648
9649         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9650         pointer indirection.
9651         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9652         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9653
9654 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9655
9656         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9657         Renames DYN_ATTR_DATA_LOCATION.
9658         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9659         DYN_ATTR_DATA_LOCATION.
9660         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9661         instead of DYN_ATTR_DATA_LOCATION.
9662
9663 2015-03-24  Pedro Alves  <palves@redhat.com>
9664
9665         * breakpoint.c (until_break_command): Adjust call to proceed.
9666         * gdbthread.h (struct thread_control_state) <stepping_command>:
9667         New field.
9668         * infcall.c (run_inferior_call): Adjust call to proceed.
9669         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9670         Adjust calls to proceed.
9671         (set_step_frame): Set the current thread's step_start_function
9672         here.
9673         (step_once): Adjust calls to proceed.
9674         (jump_command, signal_command, until_next_command)
9675         (finish_backward, finish_forward, proceed_after_attach_callback)
9676         (attach_command_post_wait): Adjust calls to proceed.
9677         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9678         (do_target_resume): New function, factored out from ...
9679         (resume): ... here.  Remove 'step' parameter.  Instead, check
9680         currently_stepping to determine whether the thread should be
9681         single-stepped.
9682         (proceed): Remove 'step' parameter and don't set the thread's
9683         step_start_function here.  Adjust call to 'resume'.
9684         (handle_inferior_event): Adjust calls to 'resume'.
9685         (switch_back_to_stepped_thread): Use do_target_resume instead of
9686         'resume'.
9687         (keep_going): Adjust calls to 'resume'.
9688         * infrun.h (proceed): Remove 'step' parameter.
9689         (resume): Likewise.
9690         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9691         'resume'.
9692         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9693
9694 2015-03-24  Pedro Alves  <palves@redhat.com>
9695
9696         * gdbthread.h (struct thread_control_state) <stepping_command>:
9697         New field.
9698         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9699         the thread's stepping_command field.
9700         * infrun.c (resume): Check the thread's stepping_command flag to
9701         determine which threads should be resumed.  Rename 'entry_step'
9702         local to user_step.
9703         (clear_proceed_status_thread): Clear 'stepping_command'.
9704         (schedlock_applies): Change parameter type to struct thread_info
9705         pointer.  Adjust.
9706         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9707         (switch_back_to_stepped_thread): Adjust calls to
9708         'schedlock_applies'.
9709         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9710
9711 2015-03-24  Pedro Alves  <palves@redhat.com>
9712
9713         * infrun.c (step_start_function): Delete and ...
9714         * gdbthread.h (struct thread_control_state) <step_start_function>:
9715         ... now a field here.
9716         * infrun.c (clear_proceed_status_thread): Clear the thread's
9717         step_start_function.
9718         (proceed, process_event_stop_test, print_stop_event): Adjust.
9719
9720 2015-03-24  Pedro Alves  <palves@redhat.com>
9721
9722         * infrun.c (proceed): No longer handle negative step.
9723
9724 2015-03-24  Gary Benson  <gbenson@redhat.com>
9725
9726         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9727         (x86_linux_prepare_to_resume): Likewise.
9728         * x86-linux-nat.c (x86_linux_new_thread):
9729         Moved to nat/x86-linux.c.
9730         (x86_linux_prepare_to_resume): Likewise.
9731         * nat/x86-linux.c (x86_linux_new_thread): New function.
9732         (x86_linux_prepare_to_resume): Likewise.
9733
9734 2015-03-24  Gary Benson  <gbenson@redhat.com>
9735
9736         * nat/x86-linux-dregs.h: New file.
9737         * nat/x86-linux-dregs.c: Likewise.
9738         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9739         (x86-linux-dregs.o): New rule.
9740         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9741         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9742         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9743         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9744         (x86_linux_dr_get): Likewise.
9745         (x86_linux_dr_set): Likewise.
9746         (x86_linux_dr_get_addr): Likewise.
9747         (x86_linux_dr_get_control): Likewise.
9748         (x86_linux_dr_get_status): Likewise.
9749         (update_debug_registers_callback): Likewise.
9750         (x86_linux_dr_set_control): Likewise.
9751         (x86_linux_dr_set_addr): Likewise.
9752         (x86_linux_update_debug_registers): Likewise.
9753
9754 2015-03-24  Gary Benson  <gbenson@redhat.com>
9755
9756         * x86-linux-nat.c (x86_linux_update_debug_registers):
9757         New function, factored out from...
9758         (x86_linux_prepare_to_resume): ...this.
9759
9760 2015-03-24  Gary Benson  <gbenson@redhat.com>
9761
9762         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9763         (x86_linux_dr_set): Likewise.
9764         (x86_linux_dr_get_addr): Likewise.
9765         (x86_linux_dr_get_control): Likewise.
9766         (x86_linux_dr_get_status): Likewise.
9767         (update_debug_registers_callback): Likewise.
9768         (x86_linux_dr_set_control): Likewise.
9769         (x86_linux_dr_set_addr): Likewise.
9770         (x86_linux_prepare_to_resume): Likewise.
9771         (x86_linux_new_thread): Likewise.
9772
9773 2015-03-24  Gary Benson  <gbenson@redhat.com>
9774
9775         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9776         (x86_linux_new_thread): Rename argument.
9777
9778 2015-03-24  Gary Benson  <gbenson@redhat.com>
9779
9780         * nat/x86-linux.h: New file.
9781         * nat/x86-linux.c: Likewise.
9782         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9783         (x86-linux.o): New rule.
9784         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9785         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9786         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9787         (lwp_set_arch_private_info): New declaration.
9788         (lwp_arch_private_info): Likewise.
9789         * linux-nat.c (lwp_set_arch_private_info): New function.
9790         (lwp_arch_private_info): Likewise.
9791         * x86-linux-nat.c: Include nat/x86-linux.h.
9792         (arch_lwp_info): Removed structure.
9793         (update_debug_registers_callback):
9794         Use lwp_set_debug_registers_changed.
9795         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9796         and lwp_set_debug_registers_changed.
9797         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9798
9799 2015-03-24  Gary Benson  <gbenson@redhat.com>
9800
9801         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9802         (lwp_is_stopped): Likewise.
9803         (lwp_stop_reason): Likewise.
9804         * linux-nat.c (ptid_of_lwp): New function.
9805         (lwp_is_stopped): Likewise.
9806         (lwp_is_stopped_by_watchpoint): Likewise.
9807         * x86-linux-nat.c (update_debug_registers_callback):
9808         Use lwp_is_stopped.
9809         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9810         lwp_stop_reason.
9811
9812 2015-03-24  Gary Benson  <gbenson@redhat.com>
9813
9814         * linux-nat.h (linux_stop_lwp): Move declaration to...
9815         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9816
9817 2015-03-24  Gary Benson  <gbenson@redhat.com>
9818
9819         * linux-nat.h: Include nat/linux-nat.h.
9820         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9821         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9822         (iterate_over_lwps_ftype): New typedef.
9823         (iterate_over_lwps): New declaration.
9824         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9825         iterate_over_lwps_ftype.  Update callback return value check.
9826
9827 2015-03-24  Gary Benson  <gbenson@redhat.com>
9828
9829         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9830         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9831
9832 2015-03-24  Gary Benson  <gbenson@redhat.com>
9833
9834         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9835         * linux-nat.c (current_lwp_ptid): New function.
9836         * x86-linux-nat.c: Include nat/linux-nat.h.
9837         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9838         (x86_linux_dr_get_control): Likewise.
9839         (x86_linux_dr_get_status): Likewise.
9840         (x86_linux_dr_set_control): Likewise.
9841         (x86_linux_dr_set_addr): Likewise.
9842
9843 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9844
9845         PR breakpoints/16466
9846         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9847
9848 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9849
9850         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9851         * ser-unix.c (hardwire_setparity): Likewise.
9852
9853 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9854
9855         * NEWS: Mention set/show serial parity command.
9856         * monitor.c (monitor_open): Call serial_setparity.
9857         * remote.c (remote_open_1): Likewise.
9858         * ser-base.c (ser_base_serparity): New function.
9859         * ser-base.h (ser_base_setparity): Add  declaration.
9860         * ser-go32.c (dos_ops): Set "setparity" field.
9861         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9862         state.Parity.
9863         (ser_windows_setparity): New function.
9864         (hardwire_ops): Add ser_windows_setparity.
9865         (tty_ops): Add NULL for setparity field.
9866         (pipe_ops): Add ser_base_setparity.
9867         (tcp_ops): Likewise.
9868         * ser-pipe.c (pipe_ops): Likewise.
9869         * ser-tcp.c (tcp_ops): Likewise.
9870         * ser-unix.c (hardwire_setparity): Add declaration.
9871         (hardwire_raw): Don't reset PARENB flag.
9872         (hardwire_setparity): New function.
9873         (hardwire_ops): Add hardwire_setparity.
9874         * serial.c (serial_setparity): New function.
9875         (serial_parity): New global.
9876         (parity_none, parity_odd, parity_even, parity_enums, parity):
9877         New static globals.
9878         (set_parity): New function.
9879         (_initialize_serial): Add set/show serial parity commands.
9880         * serial.h (GDBPARITY_NONE): Define.
9881         (GDBPARITY_ODD): Define.
9882         (GDBPARITY_EVEN): Define.
9883         (serial_setparity) Add declaration.
9884         (struct serial_ops): Add setparity field.
9885         * target.h (serial_parity): Add declaration.
9886
9887 2015-03-23  Keith Seitz  <keiths@redhat.com>
9888
9889         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9890
9891 2015-03-23  Keith Seitz  <keiths@redhat.com>
9892
9893         * breakpoint.c (parse_breakpoint_sals): Use
9894         linespec_lexer_lex_keyword to ascertain if the user specified
9895         a NULL location.
9896         * linespec.c [IF_KEYWORD_INDEX]: Define.
9897         (linespec_lexer_lex_keyword): Export.
9898         (struct ls_parser) <keyword_ok>: Remove.
9899         A keyword is only a keyword if not followed by another keyword.
9900         (linespec_lexer_lex_one): Remove keyword_ok handling.
9901         Add comment explaining why the parsing stream is not advanced
9902         when a keyword is seen.
9903         (parse_linespec): Remove parser->keyword_ok.
9904         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9905
9906 2015-03-23  Keith Seitz  <keiths@redhat.com>
9907
9908         PR gdb/18021
9909         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9910         if we find a static method with DW_AT_vtable_elem_location.
9911
9912 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9913
9914         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9915         before the second loop, to avoid undefined behavior.  Reported by
9916         Anton Blanchard <anton@samba.org>.
9917
9918 2015-03-20  Keven Boell  <keven.boell@intel.com>
9919
9920         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9921         data_location usage to linked list.
9922         (resolve_dynamic_type_internal): Adapt data_location to
9923         linked list.
9924         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9925         (copy_type_recursive, copy_type): Add copy of linked list.
9926         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9927         (struct dynamic_prop_list): New struct.
9928         * dwarf2read.c (set_die_type): Set data_location data.
9929
9930 2015-03-20  Pedro Alves  <palves@redhat.com>
9931
9932         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9933         inner block and make it const.
9934         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9935
9936 2015-03-20  Pedro Alves  <palves@redhat.com>
9937
9938         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9939         * breakpoint.h (set_breakpoint_condition): Update declaration.
9940
9941 2015-03-20  Pedro Alves  <palves@redhat.com>
9942
9943         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9944
9945 2015-03-20  Pedro Alves  <palves@redhat.com>
9946
9947         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9948
9949 2015-03-20  Pedro Alves  <palves@redhat.com>
9950
9951         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9952
9953 2015-03-20  Pedro Alves  <palves@redhat.com>
9954
9955         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9956         (nto_init_solib_absolute_prefix): Likewise.
9957
9958 2015-03-20  Pedro Alves  <palves@redhat.com>
9959
9960         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9961         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9962
9963 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9964
9965         * config/djgpp/README: Remove gdb.hp.
9966
9967 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9968
9969         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9970         set_gdbarch_cannot_step_breakpoint.
9971
9972 2015-03-19  Pedro Alves  <palves@redhat.com>
9973
9974         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9975         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9976         instead call perror_with_name.
9977         (check_ptrace_stopped_lwp_gone): New function.
9978         (linux_resume_one_lwp): Reimplement as wrapper around
9979         linux_resume_one_lwp_throw that swallows errors if the LWP is
9980         gone.
9981         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9982         swallows errors if the LWP is gone.  Use
9983         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9984
9985 2015-03-19  Pedro Alves  <palves@redhat.com>
9986
9987         * linux-nat.c (status_callback): Return early if the LWP has no
9988         status pending.
9989
9990 2015-03-19  Pedro Alves  <palves@redhat.com>
9991
9992         * linux-nat.c (select_event_lwp_callback): Update comment to no
9993         longer mention SIGTRAP.
9994
9995 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9996
9997         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9998         redirection code to ...
9999         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
10000         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
10001
10002 2015-03-18  Gary Benson <gbenson@redhat.com>
10003
10004         (remote_protocol_features): Remove the "vFile:fstat" feature.
10005         (remote_hostio_fstat): Probe for "vFile:fstat" support.
10006
10007 2015-03-11  Yao Qi  <yao.qi@linaro.org>
10008
10009         PR tdep/18107
10010         * aarch64-linux-tdep.c: Include xml-syscall.h
10011         (aarch64_linux_get_syscall_number): New function.
10012         (aarch64_linux_init_abi): Call
10013         set_gdbarch_get_syscall_number.
10014         * syscalls/aarch64-linux.xml: New file.
10015
10016 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10017
10018         * ser-base.h (ser_base_setstopbits): Change second argument name
10019         from "rate" to "num".
10020
10021 2015-03-17  Gary Benson <gbenson@redhat.com>
10022             Luke Allardyce <lukeallardyce@gmail.com>
10023
10024         PR gdb/18131
10025         * common/common-remote-fileio.h (sys/stat.h): New include.
10026         (stuct stat): Remove forward declaration.
10027
10028 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
10029
10030         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10031         before writing core register notes.
10032
10033 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10034             Pedro Alves  <palves@redhat.com>
10035
10036         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10037         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10038         (tgoto): Wrap with extern "C".
10039
10040 2015-03-16  Pedro Alves  <palves@redhat.com>
10041             Yuanhui Zhang  <asmwarrior@gmail.com>
10042
10043         * stub-termcap.c (tputs): Change prototype.
10044
10045 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10046             Pedro Alves  <palves@redhat.com>
10047
10048         * windows-nat.c (struct thread_info_struct): Rename to ...
10049         (struct windows_thread_info_struct): ... this.
10050         (thread_info): Rename to ...
10051         (windows_thread_info): ... this.
10052         All users updated.
10053
10054 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10055             Pedro Alves  <palves@redhat.com>
10056
10057         * NEWS: New Removed targets and native configurations.
10058
10059 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10060
10061         Remove HPUX.
10062         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10063         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10064         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10065         ia64-hpux-tdep.h, solib-ia64-hpux.h.
10066         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10067         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10068         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10069         hppa-hpux-tdep.c.
10070         * config/ia64/hpux.mh: Remove file.
10071         * config/pa/hpux.mh: Remove file.
10072         * configure: Rebuilt.
10073         * configure.ac (dlgetmodinfo, somread.o): Remove.
10074         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10075         (ia64-*-hpux*): Remove its float format exception.
10076         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10077         * hppa-hpux-nat.c: Remove file.
10078         * hppa-hpux-tdep.c: Remove file.
10079         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10080         Move them here from hppa-tdep.h
10081         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10082         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10083         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10084         Move them to hppa-tdep.c.
10085         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10086         declarations.
10087         * ia64-hpux-nat.c: Remove file.
10088         * ia64-hpux-tdep.c: Remove file.
10089         * ia64-hpux-tdep.h: Remove file.
10090         * inf-ttrace.c: Remove file.
10091         * inf-ttrace.h: Remove file.
10092         * solib-ia64-hpux.c: Remove file.
10093         * solib-ia64-hpux.h: Remove file.
10094         * solib-pa64.c: Remove file.
10095         * solib-pa64.h: Remove file.
10096         * solib-som.c: Remove file.
10097         * solib-som.h: Remove file.
10098         * somread.c: Remove file.
10099
10100 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10101
10102         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10103         * config.in: Regenerate.
10104         * configure: Regenerate.
10105         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10106         define.
10107         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10108         enumerate memory regions if present.
10109
10110 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10111
10112         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10113         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10114         expressions.
10115         (i386fbsd_sigtramp_p): Likewise.
10116
10117 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10118
10119         * MAINTAINERS (Write After Approval): Add John Baldwin.
10120
10121 2015-03-12  Gary Benson <gbenson@redhat.com>
10122
10123         * solib.c (_initialize_solib): Make "set/show sysroot" use
10124         add_setshow_optional_filename_cmd so it can be restored to
10125         empty after being set.
10126
10127 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10128
10129         * Makefile.in (SFILES): New source break-catch-syscall.c.
10130         (COMMON_OBS): New object break-catch-syscall.o.
10131         * break-catch-syscall.c: New file.
10132         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10133         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10134         (struct syscall_catchpoint): Likewise.
10135         (dtor_catch_syscall): Likewise.
10136         (catch_syscall_inferior_data): Likewise.
10137         (struct catch_syscall_inferior_data): Likewise.
10138         (get_catch_syscall_inferior_data): Likewise.
10139         (catch_syscall_inferior_data_cleanup): Likewise.
10140         (insert_catch_syscall): Likewise.
10141         (remove_catch_syscall): Likewise.
10142         (breakpoint_hit_catch_syscall): Likewise.
10143         (print_it_catch_syscall): Likewise.
10144         (print_one_catch_syscall): Likewise.
10145         (print_mention_catch_syscall): Likewise.
10146         (print_recreate_catch_syscall): Likewise.
10147         (catch_syscall_breakpoint_ops): Likewise.
10148         (syscall_catchpoint_p): Likewise.
10149         (create_syscall_event_catchpoint): Likewise.
10150         (catch_syscall_split_args): Likewise.
10151         (catch_syscall_command_1): Likewise.
10152         (is_syscall_catchpoint_enabled): Likewise.
10153         (catch_syscall_enabled): Likewise.
10154         (catching_syscall_number): Likewise.
10155         (catch_syscall_completer): Likewise.
10156         (clear_syscall_counts): Likewise.
10157         (initialize_breakpoint_ops): Move initialization of syscall
10158         catchpoints to break-catch-syscall.c.
10159         (_initialize_breakpoint): Move code related to syscall catchpoints
10160         to break-catch-syscall.c.
10161
10162 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10163
10164         * breakpoint.c (breakpoint_find_if): New function.
10165         * breakpoint.h (breakpoint_find_if): New prototype.
10166
10167 2015-03-11  Gary Benson <gbenson@redhat.com>
10168
10169         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10170         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10171         (remote_fileio_to_host_ulong): Likewise.
10172         (remote_fileio_to_host_mode): Likewise.
10173         (remote_fileio_to_host_time): Likewise.
10174         (remote_fileio_to_host_stat): Likewise.
10175         * remote.c (PACKET_vFile_fstat): New enum value.
10176         (remote_protocol_features): Register the "vFile:fstat" feature.
10177         (remote_hostio_fstat): New function.
10178         (remote_bfd_iovec_stat): Use the above.
10179         (_initialize_remote): Register new "set/show remote
10180         hostio-fstat-packet" command.
10181         * symfile.c (separate_debug_file_exists): Update comment.
10182         * NEWS: Announce new vFile:fstat packet.
10183
10184 2015-03-11  Gary Benson <gbenson@redhat.com>
10185
10186         * common/common-remote-fileio.h: New file.
10187         * common/common-remote-fileio.c: Likewise.
10188         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10189         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10190         (COMMON_OBS): Add common-remote-fileio.o.
10191         (common-remote-fileio.o): New rule.
10192         * remote-fileio.h (common-remote-fileio.h): New include.
10193         * remote-fileio.c (gdb/fileio.h): Do not include.
10194         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10195         (remote_fileio_to_fio_uint): Likewise.
10196         (remote_fileio_to_fio_time): Likewise.
10197         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10198         (remote_fileio_to_fio_mode): Likewise.
10199         (remote_fileio_to_fio_ulong): Likewise.
10200         (remote_fileio_to_fio_stat): Likewise.
10201
10202 2015-03-11  Andy Wingo  <wingo@igalia.com>
10203
10204         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10205         we were checking the cached type, not the cached dynamic type.
10206
10207 2015-03-11  Andy Wingo  <wingo@igalia.com>
10208
10209         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10210         other strings, as these are on the GC'd heap, and will be
10211         collected along with the smob.
10212
10213 2015-03-11  Andy Wingo  <wingo@igalia.com>
10214
10215         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10216         (objfile_functions): Bind gdbscm_objfile_progspace to
10217         objfile-progspace.
10218         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10219
10220 2015-03-11  Andy Wingo  <wingo@igalia.com>
10221
10222         * guile/guile.c (_initialize_guile): Disable automatic
10223         finalization, if Guile offers us that possibility.
10224         * guile/guile.c (call_initialize_gdb_module):
10225         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10226         finalizers in appropriate places.
10227         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10228         scm_set_automatic_finalization_enabled.
10229         * configure: Regenerated.
10230
10231 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10232
10233         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10234         SAL, if possible.
10235
10236 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10237
10238         * s390-linux-nat.c (struct arch_lwp_info): New.
10239         (s390_fix_watch_points): Rename to...
10240         (s390_prepare_to_resume): ...this.  Skip the PER info update
10241         unless the watch points have changed.
10242         (s390_refresh_per_info, s390_new_thread): New functions.
10243         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10244         s390_fix_watch_points.
10245         (s390_remove_watchpoint): Likewise.
10246         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10247         Register s390_prepare_to_resume.
10248
10249 2015-03-09  Pedro Alves  <palves@redhat.com>
10250
10251         Revert:
10252         2015-03-07  Pedro Alves  <palves@redhat.com>
10253         * common/gdb_socket.h: New file.
10254         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10255         sys/socket.h.
10256         (net_open): Use union gdb_sockaddr_u.
10257
10258 2015-03-07  Pedro Alves  <palves@redhat.com>
10259
10260         * configure.ac (build_warnings): Move -Wmissing-prototypes
10261         -Wdeclaration-after-statement -Wmissing-parameter-type
10262         -Wold-style-declaration -Wold-style-definition to the C-specific
10263         set.
10264         * configure: Regenerate.
10265
10266 2015-03-07  Pedro Alves  <palves@redhat.com>
10267
10268         * common/gdb_socket.h: New file.
10269         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10270         sys/socket.h.
10271         (net_open): Use union gdb_sockaddr_u.
10272
10273 2015-03-07  Pedro Alves  <palves@redhat.com>
10274
10275         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10276         (exceptions_state_mc_action_iter)
10277         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10278         Don't define.
10279         [__cplusplus] (try_scope_depth): New global.
10280         [__cplusplus] (exception_try_scope_entry)
10281         (exception_try_scope_exit, gdb_exception_sliced_copy)
10282         (exception_rethrow): New functions.
10283         (throw_exception): In C++ mode, throw
10284         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10285         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10286         (throw_it): In C++ mode, use try_scope_depth.
10287         * common/common-exceptions.h [!__cplusplus]
10288         (exceptions_state_mc_action_iter)
10289         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10290         Don't declare.
10291         [__cplusplus] (exception_try_scope_entry)
10292         (exception_try_scope_exit, exception_rethrow): Declare.
10293         [__cplusplus] (struct exception_try_scope): New struct.
10294         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10295         C++ exceptions.
10296         (struct gdb_exception_RETURN_MASK_ALL)
10297         (struct gdb_exception_RETURN_MASK_ERROR)
10298         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10299
10300 2015-03-07  Pedro Alves  <palves@redhat.com>
10301
10302         * main.c (handle_command_errors): Remove volatile qualifier from
10303         parameter.
10304
10305 2015-03-07  Pedro Alves  <palves@redhat.com>
10306
10307         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10308         TRY and CATCH.
10309         * gdbtypes.c (safe_parse_type): Remove empty line.
10310         (types_deeply_equal):
10311         * guile/scm-frame.c (gdbscm_frame_name):
10312         * linux-thread-db.c (find_new_threads_once):
10313         * python/py-breakpoint.c (bppy_get_commands):
10314         * record-btrace.c (record_btrace_insert_breakpoint)
10315         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10316         (record_btrace_start_replaying): Adjust to avoid code between TRY
10317         and CATCH.
10318
10319 2015-03-07  Pedro Alves  <palves@redhat.com>
10320
10321         * common/common-exceptions.c (struct catcher) <exception>: No
10322         longer a pointer to volatile exception.  Now an exception value.
10323         <mask>: Delete field.
10324         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10325         (exceptions_state_mc): No longer pop the catcher here.
10326         (exceptions_state_mc_catch): New function.
10327         (throw_exception): Adjust.
10328         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10329         all parameters.
10330         (exceptions_state_mc_catch): Declare.
10331         (TRY_CATCH): Rename to ...
10332         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10333         (CATCH, END_CATCH): New.
10334         All callers adjusted.
10335
10336 2015-03-07  Tom Tromey  <tromey@redhat.com>
10337
10338         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10339
10340 2015-03-07  Pedro Alves  <palves@redhat.com>
10341
10342         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10343         (amd64_epilogue_frame_cache): Normal exception handling code.
10344         * break-catch-throw.c (check_status_exception_catchpoint)
10345         (re_set_exception_catchpoint): Ditto.
10346         * cli/cli-interp.c (safe_execute_command):
10347         * cli/cli-script.c (script_from_file): Ditto.
10348         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10349         Ditto.
10350         * compile/compile-object-run.c (compile_object_run): Ditto.
10351         * cp-abi.c (baseclass_offset): Ditto.
10352         * cp-valprint.c (cp_print_value): Ditto.
10353         * exceptions.c (catch_exceptions_with_msg):
10354         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10355         * frame.c (get_frame_address_in_block_if_available): Ditto.
10356         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10357         (i386_sigtramp_frame_cache): Ditto.
10358         * infcmd.c (post_create_inferior): Ditto.
10359         * linespec.c (parse_linespec, find_linespec_symbols):
10360         * p-valprint.c (pascal_object_print_value): Ditto.
10361         * parse.c (parse_expression_for_completion): Ditto.
10362         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10363         * remote.c (remote_get_noisy_reply): Ditto.
10364         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10365         * solib-svr4.c (solib_svr4_r_map): Ditto.
10366
10367 2015-03-06  Gary Benson  <gbenson@redhat.com>
10368
10369         * common/common-utils.h (startswith): New inline function.
10370         All places where this logic was used updated to use the above.
10371
10372 2015-03-05  Pedro Alves  <palves@redhat.com>
10373
10374         PR gdb/18002
10375         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10376         after reading the breakpoint's shadow memory.
10377
10378 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10379
10380         * hppabsd-nat.c: Remove file.
10381         * hppaobsd-nat.c: New file.
10382         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10383         hppaobsd-nat.c.
10384         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10385         hppaobsd-nat.o.
10386
10387 2015-03-04  Pedro Alves  <palves@redhat.com>
10388
10389         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10390         (target_decr_pc_after_break): Delete declaration.
10391         * target.c (default_target_decr_pc_after_break)
10392         (target_decr_pc_after_break): Delete.
10393         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10394         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10395         * linux-thread-db.c (check_event): Likewise.
10396         * infrun.c (adjust_pc_after_break): Likewise.
10397         * darwin-nat.c (cancel_breakpoint): Likewise.
10398         * aix-thread.c (aix_thread_wait): Likewise.
10399         * target-delegates.c: Regenerate.
10400
10401 2015-03-04  Pedro Alves  <palves@redhat.com>
10402
10403         * linux-nat.c (save_sigtrap): Check for breakpoints before
10404         checking watchpoints.
10405         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10406         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10407         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10408         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10409         (linux_nat_stopped_by_sw_breakpoint)
10410         (linux_nat_supports_stopped_by_sw_breakpoint)
10411         (linux_nat_stopped_by_hw_breakpoint)
10412         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10413         (linux_nat_wait_1): Don't re-increment the PC if relying on
10414         SIGTRAP's siginfo->si_code.
10415         (linux_nat_add_target): Install new target methods.
10416         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10417         offset if the target already adjusted the PC.
10418         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10419         (GDB_ARCH_TRAP_BRKPT): New.
10420         (TRAP_HWBKPT): Define if not already defined.
10421
10422 2015-03-04  Pedro Alves  <palves@redhat.com>
10423
10424         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10425         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10426         Delete field.
10427         <stop_reason>: New field.
10428         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10429         (packet_set_cmd_state): New function.
10430         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10431         features.
10432         (remote_query_supported): If not disabled with the corresponding
10433         "set remote foo-packet" command, report support for the swbreak
10434         and hwbreak features.
10435         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10436         field.
10437         <stop_reason>: New field.
10438         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10439         (remote_wait_as): Adjust.
10440         (remote_stopped_by_sw_breakpoint)
10441         (remote_supports_stopped_by_sw_breakpoint)
10442         (remote_stopped_by_hw_breakpoint)
10443         (remote_supports_stopped_by_hw_breakpoint): New functions.
10444         (remote_stopped_by_watchpoint): New function.
10445         (init_remote_ops): Install them.
10446         (_initialize_remote): Register new "set/show remote
10447         swbreak-feature-packet" and "set/show remote
10448         swbreak-feature-packet" commands.
10449
10450 2015-03-04  Pedro Alves  <palves@redhat.com>
10451
10452         * btrace.h: Include target/waitstatus.h.
10453         (struct btrace_thread_info) <stop_reason>: New field.
10454         * record-btrace.c (record_btrace_step_thread): Use
10455         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10456         (record_btrace_decr_pc_after_break): Delete.
10457         (record_btrace_stopped_by_sw_breakpoint)
10458         (record_btrace_supports_stopped_by_sw_breakpoint)
10459         (record_btrace_stopped_by_hw_breakpoint)
10460         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10461         (init_record_btrace_ops): Install them.
10462         * record-full.c (record_full_hw_watchpoint): Delete and replace
10463         with ...
10464         (record_full_stop_reason): ... this throughout.
10465         (record_full_exec_insn): Adjust.
10466         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10467         (record_full_wait_1): Adjust.  Use
10468         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10469         (record_full_stopped_by_watchpoint): Adjust.
10470         (record_full_stopped_by_sw_breakpoint)
10471         (record_full_supports_stopped_by_sw_breakpoint)
10472         (record_full_supports_stopped_by_sw_breakpoint)
10473         (record_full_stopped_by_hw_breakpoint)
10474         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10475         (init_record_full_ops, init_record_full_core_ops): Install them.
10476         * record.c (record_check_stopped_by_breakpoint): New function.
10477         * record.h: Include target/waitstatus.h.
10478         (record_check_stopped_by_breakpoint): New declaration.
10479
10480 2015-03-04  Pedro Alves  <palves@redhat.com>
10481
10482         enum lwp_stop_reason -> enum target_stop_reason
10483         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10484         (linux_nat_stopped_by_watchpoint, status_callback)
10485         (linux_nat_wait_1): Adjust.
10486         * linux-nat.h (enum lwp_stop_reason): Delete.
10487         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10488         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10489         * target/waitstatus.h (enum target_stop_reason): New.
10490
10491 2015-03-04  Pedro Alves  <palves@redhat.com>
10492
10493         * breakpoint.c (need_moribund_for_location_type): New function.
10494         (bpstat_stop_status): Don't skipping checking moribund locations
10495         of breakpoint types which the target tell caused a stop.
10496         (program_breakpoint_here_p): New function, factored out from ...
10497         (bp_loc_is_permanent): ... this.
10498         (update_global_location_list): Don't create a moribund location if
10499         the target supports reporting stops of the type of the removed
10500         breakpoint.
10501         * breakpoint.h (program_breakpoint_here_p): New declaration.
10502         * infrun.c (adjust_pc_after_break): Return early if the target has
10503         already adjusted the PC.  Add comments.
10504         (handle_signal_stop): If nothing explains a signal, and the target
10505         tells us the stop was caused by a software breakpoint, check if
10506         there's a breakpoint instruction in the memory.  If so, adjust the
10507         PC before presenting the stop to the user.  Otherwise, ignore the
10508         trap.  If nothing explains a signal, and the target tells us the
10509         stop was caused by a hardware breakpoint, ignore the trap.
10510         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10511         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10512         to_supports_stopped_by_hw_breakpoint>: New fields.
10513         (target_stopped_by_sw_breakpoint)
10514         (target_supports_stopped_by_sw_breakpoint)
10515         (target_stopped_by_hw_breakpoint)
10516         (target_supports_stopped_by_hw_breakpoint): Define.
10517         * target-delegates.c: Regenerate.
10518
10519 2015-03-04  Pedro Alves  <palves@redhat.com>
10520
10521         * infrun.c (follow_fork_inferior): Use the whole of the
10522         inferior_ptid and pending_follow.related_pid ptids instead of
10523         building ptids from the process components.  Adjust verbose output
10524         to use target_pid_to_str.
10525         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10526         inferior_ptid and pending_follow.related_pid ptids instead of
10527         building ptids from the process components.
10528
10529 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10530
10531         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10532         (inf_ptrace_insert_fork_catchpoint): New function.
10533         (inf_ptrace_remove_fork_catchpoint): New function.
10534         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10535
10536 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10537
10538         * s390-linux-tdep.c (s390_register_name): Return empty string
10539         instead of NULL for registers that shouldn't be visible.
10540
10541 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10542
10543         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10544         XML file for 64-bit targets.
10545
10546 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10547
10548         * target.h (find_default_create_inferior): Remove declaration.
10549         (find_default_attach): Likewise.
10550
10551 2015-03-03  Pedro Alves  <palves@redhat.com>
10552
10553         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10554         Use ptid_get_pid to get the overall process id when resuming all
10555         threads.
10556
10557 2015-03-03  Pedro Alves  <palves@redhat.com>
10558
10559         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10560         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10561         * inf-ptrace.c (get_ptrace_pid): New function.
10562         (inf_ptrace_resume): Use it.
10563         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10564         to the lower layer.
10565
10566 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10567
10568         * nat/linux-btrace.c: Include sys/utsname.h.
10569         (linux_determine_kernel_ptr_bits): New.
10570         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10571         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10572         ptr_bits.
10573
10574 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10575
10576         * btrace.c (ftrace_update_function): Treat return as tailcall for
10577         "_dl_runtime_resolve".
10578
10579 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10580
10581         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10582         * btrace.c (ftrace_debug): Do not print the line range.
10583         (ftrace_skip_file, ftrace_update_lines): Remove.
10584         (ftrace_new_function): Remove lbegin and lend initialization.
10585         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10586         * record-btrace.c (btrace_compute_src_line_range): New.
10587         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10588
10589 2015-03-02  Pedro Alves  <palves@redhat.com>
10590
10591         * infrun.c (follow_exec): Delete all threads of the process except
10592         the event thread.  Extended comments.
10593
10594 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10595
10596         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10597
10598 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10599
10600         * utils.h: Remove <stdbool.h> #include.
10601         (producer_is_gcc): Change return type to "int".
10602         * utils.c (producer_is_gcc): Change return type to int.
10603         Return 1 instead of true, and 0 instead of false.
10604         Adjust function documentation accordingly.
10605
10606 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10607
10608         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10609         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10610         present.
10611         (s390_linux_store_inferior_registers): Likewise.
10612         (s390_get_hwcap): Remove function.  Embed its logic...
10613         (s390_read_description): ...here.  Yield a target description with
10614         vector registers if applicable.
10615         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10616         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10617         "features/s390x-tevx-linux64.c".
10618         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10619         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10620         for "GNU/Linux-specific registers".
10621         (s390_dwarf_reg_r0l): New enum value.
10622         (s390_dwarf_reg_to_regnum): Support vector registers.
10623         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10624         of GPR lower halves.
10625         (regnum_is_vxr_full): New function.
10626         (s390_register_name): New function.
10627         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10628         f0-f15 and v0l-v15l.
10629         (s390_pseudo_register_type): Likewise.
10630         (s390_pseudo_register_read): Likewise.
10631         (s390_pseudo_register_write): Likewise.
10632         (s390_value_from_register): Account for the fact that values are
10633         placed left-justified in vector registers.
10634         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10635         the vector reggroup and omit them from the general reggroup.
10636         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10637         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10638         (s390_iterate_over_regset_sections): Add iterations for the two
10639         new vector regsets.
10640         (s390_core_read_description): Yield a target description with
10641         vector registers if applicable.
10642         (s390_gdbarch_init): Handle target descriptions with vector
10643         registers.  Add "register_name" gdbarch method.
10644         (_initialize_s390_tdep): Call new tdesc initialization functions.
10645         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10646         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10647         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10648         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10649         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10650         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10651         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10652         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10653         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10654         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10655         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10656         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10657         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10658         (S390_NUM_REGS): Adjust value.
10659         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10660         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10661         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10662         * NEWS: Announce S/390 vector register support.
10663
10664 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10665
10666         * features/s390-tevx-linux64.xml: New file.
10667         * features/s390-vx-linux64.xml: New file.
10668         * features/s390-vx.xml: New file.
10669         * features/s390x-tevx-linux64.xml: New file.
10670         * features/s390x-vx-linux64.xml: New file.
10671         * features/Makefile (WHICH): Add s390-vx-linux64,
10672         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10673         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10674         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10675         macros.
10676         * features/s390-tevx-linux64.c: New generated file.
10677         * features/s390-vx-linux64.c: Likewise.
10678         * features/s390x-tevx-linux64.c: Likewise.
10679         * features/s390x-vx-linux64.c: Likewise.
10680         * regformats/s390-tevx-linux64.dat: Likewise.
10681         * regformats/s390-vx-linux64.dat: Likewise.
10682         * regformats/s390x-tevx-linux64.dat: Likewise.
10683         * regformats/s390x-vx-linux64.dat: Likewise.
10684
10685 2015-02-28  Doug Evans  <xdje42@gmail.com>
10686
10687         * symtab.h (struct symtab) <next>: Fix comment.
10688
10689 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10690
10691         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10692         python_GdbMethods.
10693
10694 2015-02-27  Pedro Alves  <palves@redhat.com>
10695
10696         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10697
10698 2015-02-27  Pedro Alves  <palves@redhat.com>
10699
10700         * common/common-exceptions.h (exception_none): Declare.
10701         * common/common-exceptions.c (exception_none): Moved from
10702         exceptions.c.
10703         (exceptions_state_mc_init): Use exception_none.
10704         * exceptions.c (exception_none): Move to
10705         common/common-exceptions.c.
10706         * exceptions.h (exception_none): Move to
10707         common/common-exceptions.h.
10708
10709 2015-02-27  Pedro Alves  <palves@redhat.com>
10710
10711         * main.c (catch_command_errors, catch_command_errors_const):
10712         Remove 'mask' argument.  Adjust.
10713         (captured_main): Adjust callers.
10714
10715 2015-02-27  Pedro Alves  <palves@redhat.com>
10716
10717         * python/python-internal.h: Include "extension-priv.h".
10718
10719 2015-02-27  Pedro Alves  <palves@redhat.com>
10720
10721         * breakpoint.h (enum print_stop_action): Move further up in the
10722         file.
10723
10724 2015-02-27  Pedro Alves  <palves@redhat.com>
10725
10726         * gdbarch.sh: Include regcache.h.
10727         * gdbarch.h: Regenerate.
10728
10729 2015-02-27  Pedro Alves  <palves@redhat.com>
10730
10731         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10732         Remove duplicate const.
10733         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10734         duplicate const.
10735
10736 2015-02-27  Pedro Alves  <palves@redhat.com>
10737
10738         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10739         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10740         * features/feature_to_c.sh: Tag the generated xml_builtin array
10741         with extern const in C++ mode.
10742
10743 2015-02-27  Tom Tromey  <tromey@redhat.com>
10744
10745         * minidebug.c (struct lzma_stream): Rename to ...
10746         (struct gdb_lzma_stream): ... this.
10747         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10748
10749 2015-02-27  Pedro Alves  <palves@redhat.com>
10750
10751         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10752         function.
10753         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10754         (mi_cmd_stack_list_variables): Use it.
10755
10756 2015-02-27  Pedro Alves  <palves@redhat.com>
10757
10758         * x86-linux-nat.c (u_debugreg_offset): New function.
10759         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10760
10761 2015-02-27  Pedro Alves  <palves@redhat.com>
10762
10763         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10764         declaration.
10765         Include break-common.h.
10766
10767 2015-02-27  Tom Tromey  <tromey@redhat.com>
10768             Pedro Alves <palves@redhat.com>
10769
10770         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10771         local used to iterate over enums.
10772         * completer.c (signal_completer): Likewise.
10773         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10774         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10775         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10776         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10777         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10778         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10779         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10780
10781 2015-02-27  Pedro Alves  <palves@redhat.com>
10782
10783         * target.h: Include "infrun.h".
10784
10785 2015-02-27  Pedro Alves  <palves@redhat.com>
10786
10787         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10788
10789 2015-02-27  Pedro Alves  <palves@redhat.com>
10790
10791         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10792         (IPA_SYM): Use it.
10793         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10794
10795 2015-02-27  Pedro Alves  <palves@redhat.com>
10796
10797         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10798         cli_mld_erase_entire_line, and make it extern "C".
10799         * common/common-defs.h (EXTERN_C): New.
10800         * completer.c (_rl_completion_prefix_display_length)
10801         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10802         out of gdb_display_match_list_1.
10803         (_rl_qsort_string_compare): Move declaration out of
10804         gdb_display_match_list_1, and make it extern "C".
10805         * defs.h (re_comp): Use EXTERN_C.
10806         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10807         and make it extern "C".
10808         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10809         and make it extern "C".
10810         (main): Move declaration out of maintenance_set_profile_cmd.
10811         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10812         EXTERN_C.
10813
10814 2015-02-27  Pedro Alves  <palves@redhat.com>
10815
10816         * python/python.c (GdbMethods): Rename to ...
10817         (python_GdbMethods): ... this and make extern.
10818         (GdbModuleDef): Rename to ...
10819         (python_GdbModuleDef): ... this and make extern.
10820
10821 2015-02-27  Pedro Alves  <palves@redhat.com>
10822
10823         * record-btrace.c (set_record_btrace_cmdlist)
10824         (show_record_btrace_cmdlist): Remove redefinitions.
10825
10826 2015-02-27  Tom Tromey  <tromey@redhat.com>
10827             Pedro Alves  <palves@redhat.com>
10828
10829         * dwarf2-frame.c (enum cfa_how_kind, struct
10830         dwarf2_frame_state_reg_info): Move out of struct
10831         dwarf2_frame_state.
10832         * dwarf2read.c (struct tu_stats): Move out of struct
10833         dwarf2_per_objfile.
10834         (struct file_entry): Move out of struct line_header.
10835         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10836         typedef_field_list): Move out of struct field_info.
10837         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10838         Move out of struct dynamic_prop.
10839         (union type_owner, union field_location, struct field, struct
10840         range_bounds, union type_specific): Move out of struct main_type.
10841         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10842         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10843         (struct call_site_target, union call_site_parameter_u, struct
10844         call_site_parameter): Move out of struct call_site.
10845         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10846         m32c_prologue.
10847         (enum srcdest_kind): Move out of struct srcdest.
10848         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10849         * prologue-value.h (enum prologue_value_kind): Move out of struct
10850         prologue_value.
10851         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10852         gdbarch_tdep.
10853         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10854         out of struct field_info.
10855         * symfile.h (struct other_sections): Move out of struct
10856         section_addr_info.
10857         * symtab.c (struct symbol_cache_slot): Move out struct
10858         block_symbol_cache.
10859         * target-descriptions.c (enum tdesc_type_kind): Move out of
10860         typedef struct tdesc_type.
10861         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10862         struct tui_line_or_address.
10863         * value.c (enum internalvar_kind, union internalvar_data): Move
10864         out of struct internalvar.
10865         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10866         gdbarch_tdep.
10867
10868 2015-02-27  Tom Tromey  <tromey@redhat.com>
10869             Pedro Alves  <palves@redhat.com>
10870
10871         Rename symbols whose names are reserved C++ keywords throughout.
10872
10873 2015-02-27  Pedro Alves  <palves@redhat.com>
10874
10875         * Makefile.in (COMPILER): New, get it from autoconf.
10876         (COMPILE.pre, CC_LD): Use COMPILER.
10877         (CXX): Get from autoconf instead.
10878         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10879         * acinclude.m4: Include build-with-cxx.m4.
10880         * build-with-cxx.m4: New file.
10881         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10882         Disable -Werror by default if building in C++ mode.
10883         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10884         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10885         Run supported-warning-flags tests with the C++ compiler.
10886         Save/restore CXXFLAGS too.
10887         * configure: Regenerate.
10888
10889 2015-02-27  Pedro Alves  <palves@redhat.com>
10890
10891         * libiberty.m4: New file.
10892         * acinclude.m4: Include libiberty.m4.
10893         * configure.ac: Call libiberty_INIT.
10894         * config.in, configure: Regenerate.
10895
10896 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10897
10898         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10899         31-bit targets, but 64-bit targets as well.
10900         (s390_gnu_triplet_regexp): New function.
10901         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10902         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10903         method.
10904
10905 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10906
10907         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10908         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10909         from CONTEXT_DEBUGGER.
10910
10911 2015-02-26  Doug Evans  <dje@google.com>
10912
10913         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10914         CHECK_TYPEDEF.
10915         (set_type_vptr_fieldno): Ditto.
10916         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10917         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10918
10919 2015-02-26  Pedro Alves  <palves@redhat.com>
10920
10921         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10922         * complaints.c (vcomplaint): Pass argument FMT directly to
10923         printf-like functions instead of complaint->fmt.
10924         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10925         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10926         * compile/compile-loc2c.c (pushf, unary, binary): Add
10927         ATTRIBUTE_PRINTF.
10928         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10929         to pushf.
10930         (BINARY): Pass string literal as format string to 'binary'.
10931         * compile/compile-object-load.c (link_callbacks_einfo): Add
10932         ATTRIBUTE_PRINTF.
10933         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10934
10935 2015-02-26  Pedro Alves  <palves@redhat.com>
10936
10937         * windows-termcap.c: Rename to ...
10938         * stub-termcap.c: ... this.  Adjust header line.
10939         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10940         windows-termcap.c.
10941         * configure: Regenerate.
10942         * configure.ac: Refer to stub-termcap.o instead of
10943         windows-termcap.o.
10944         * gdb_curses.h: Mention stub-termcap.c instead of
10945         windows-termcap.c.
10946
10947 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10948
10949         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10950         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10951
10952 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10953
10954         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10955
10956 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10957
10958         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10959         bfd_canonicalize_symtab.
10960
10961 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10962
10963         * amd64fbsd-nat.c: Include sys/user.h.
10964         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10965         instead of KERN_PS_STRINGS to locate the signal trampoline.
10966         * i386fbsd-nat.c: Include sys/user.h.
10967         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10968         instead of KERN_PS_STRINGS to locate the signal trampoline.
10969         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10970         (amd64fbsd_sigtramp_p): New.
10971         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10972         longer set default values.
10973         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10974         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10975         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10976         (i386fbsd_freebsd4_sigtramp_start)
10977         (i386fbsd_freebsd4_sigtramp_middle)
10978         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10979         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10980         (i386fbsd_sigtramp_p): New.
10981         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10982         longer set default values.
10983         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10984
10985 2015-02-25  John Baldwin  <jhb@freebsd.org>
10986
10987         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10988         get_frame_register instead of frame_unwind_register_unsigned.
10989
10990 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10991
10992         PR build/18033
10993         * compile/compile-c-support.c (c_compute_program): Change // comment.
10994         * compile/compile-object-load.c (setup_sections): Change // comment.
10995
10996 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10997
10998         PR build/18033:
10999         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11000
11001 2015-02-23  Pedro Alves  <palves@redhat.com>
11002
11003         * remote.c (skip_to_semicolon): New function.
11004         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
11005         special case the stop reasons that look like hex numbers
11006         upfront.  Instead handle real register numbers after matching
11007         all the known stop reasons.
11008
11009 2015-02-21  Doug Evans  <dje@google.com>
11010
11011         PR c++/17976, symtab/17821
11012         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11013         is_in_anonymous.  All callers updated.
11014         (find_symbol_in_baseclass): Ditto.
11015         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
11016         for symbols in an anonymous namespace.
11017         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11018         DW_AT_name directly.
11019         (dwarf2_name): Convert missing namespace name to
11020         CP_ANONYMOUS_NAMESPACE_STR.
11021
11022 2015-02-20  Pedro Alves  <palves@redhat.com>
11023
11024         * linux-nat.c (linux_handle_extended_wait): Call
11025         thread_db_notice_clone whenever a new clone LWP is detected.
11026         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11027         functions.
11028         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11029         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11030         (linux_unstop_all_lwps): Declare.
11031         * linux-thread-db.c (struct thread_get_info_inout): Delete.
11032         (thread_get_info_callback): Delete.
11033         (thread_from_lwp): Use td_thr_get_info and record_thread.
11034         (thread_db_attach_lwp): Delete.
11035         (thread_db_notice_clone): New function.
11036         (try_thread_db_load_1): If /proc is mounted and shows the
11037         process'es task list, walk over all LWPs and call thread_from_lwp
11038         instead of relying on td_ta_thr_iter.
11039         (attach_thread): Don't call check_thread_signals here.  Split the
11040         tail part of the function (which adds the thread to the core GDB
11041         thread list) to ...
11042         (record_thread): ... this function.  Call check_thread_signals
11043         here.
11044         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
11045         call thread_from_lwp.
11046         (thread_db_update_thread_list): Rename to ...
11047         (thread_db_update_thread_list_org): ... this.
11048         (thread_db_update_thread_list): New function.
11049         (thread_db_find_thread_from_tid): Delete.
11050         (thread_db_get_ada_task_ptid): Simplify.
11051         * nat/linux-procfs.c: Include <sys/stat.h>.
11052         (linux_proc_task_list_dir_exists): New function.
11053         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11054
11055 2015-02-20  Pedro Alves  <palves@redhat.com>
11056
11057         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11058         main LWP.  Handle the case of waitpid returning 0 if we're already
11059         attached to the LWP.  Don't set the LWP's last_resume_kind to
11060         resume_stop if we already knew about the LWP.
11061         (linux_nat_filter_event): Add debug logs.
11062
11063 2015-02-20  Pedro Alves  <palves@redhat.com>
11064
11065         * target.h (forward_target_decr_pc_after_break): Delete
11066         declaration.
11067
11068 2015-02-20  Pedro Alves  <palves@redhat.com>
11069
11070         PR threads/18006
11071         * linux-thread-db.c (thread_get_info_callback): Return early if
11072         the thread's lwp id is -1.
11073
11074 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
11075
11076         GDB 7.9 released.
11077
11078 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11079
11080         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11081         (dtrace_get_probes) Change type of variable 'dof'.
11082
11083 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11084
11085         PR breakpoints/16812
11086         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11087         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11088         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11089
11090 2015-02-19  David Taylor  <dtaylor@emc.com>
11091
11092         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11093
11094 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11095
11096         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11097         function.
11098         (tui_putc): Don't call tui_handle_resize_during_io.
11099         (tui_getc): Likewise.
11100         (tui_mld_getc): Likewise.
11101         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11102         (tui_sigwinch_token): New static variable.
11103         (tui_initialize_win): Adjust documentation.  Set
11104         tui_sigwinch_token.
11105         (tui_async_resize_screen): New asynchronous callback.
11106         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11107         invoke tui_async_resize_screen.
11108
11109 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11110
11111         * configure: Regenerated.
11112         * configure.ac: Use GDB_AC_TRANSFORM.
11113         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11114         * acinclude.m4: sinclude transform.m4.
11115         * transform.m4: New file.
11116         (GDB_AC_TRANSFORM): New macro.
11117
11118 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11119
11120         * NEWS: Announce the support for DTrace SDT probes.
11121
11122 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11123
11124         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11125         (amd64_dtrace_parse_probe_argument): New function.
11126         (amd64_dtrace_probe_is_enabled): Likewise.
11127         (amd64_dtrace_enable_probe): Likewise.
11128         (amd64_dtrace_disable_probe): Likewise.
11129         (amd64_linux_init_abi): Register the
11130         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11131         `gdbarch_dtrace_disable_probe' and
11132         `gdbarch_dtrace_probe_is_enabled' hooks.
11133         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11134         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11135         (amd64_dtrace_enable_probe_sequence): Likewise.
11136         (amd64_dtrace_disable_probe_sequence): Likewise.
11137
11138 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11139
11140         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11141         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11142         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11143         handle ELF files.
11144         * Makefile.in (SFILES): dtrace-probe.c added.
11145         * configure: Regenerate.
11146         * dtrace-probe.c: New file.
11147         (SHT_SUNW_dof): New constant.
11148         (dtrace_probe_type): New enum.
11149         (dtrace_probe_arg): New struct.
11150         (dtrace_probe_arg_s): New typedef.
11151         (struct dtrace_probe_enabler): New struct.
11152         (dtrace_probe_enabler_s): New typedef.
11153         (dtrace_probe): New struct.
11154         (dtrace_probe_is_linespec): New function.
11155         (dtrace_dof_sect_type): New enum.
11156         (dtrace_dof_dofh_ident): Likewise.
11157         (dtrace_dof_encoding): Likewise.
11158         (DTRACE_DOF_ENCODE_LSB): Likewise.
11159         (DTRACE_DOF_ENCODE_MSB): Likewise.
11160         (dtrace_dof_hdr): New struct.
11161         (dtrace_dof_sect): Likewise.
11162         (dtrace_dof_provider): Likewise.
11163         (dtrace_dof_probe): Likewise.
11164         (DOF_UINT): New macro.
11165         (DTRACE_DOF_PTR): Likewise.
11166         (DTRACE_DOF_SECT): Likewise.
11167         (dtrace_process_dof_probe): New function.
11168         (dtrace_process_dof): Likewise.
11169         (dtrace_build_arg_exprs): Likewise.
11170         (dtrace_get_arg): Likewise.
11171         (dtrace_get_probes): Likewise.
11172         (dtrace_get_probe_argument_count): Likewise.
11173         (dtrace_can_evaluate_probe_arguments): Likewise.
11174         (dtrace_evaluate_probe_argument): Likewise.
11175         (dtrace_compile_to_ax): Likewise.
11176         (dtrace_probe_destroy): Likewise.
11177         (dtrace_gen_info_probes_table_header): Likewise.
11178         (dtrace_gen_info_probes_table_values): Likewise.
11179         (dtrace_probe_is_enabled): Likewise.
11180         (dtrace_probe_ops): New variable.
11181         (info_probes_dtrace_command): New function.
11182         (_initialize_dtrace_probe): Likewise.
11183         (dtrace_type_name): Likewise.
11184
11185 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11186
11187         * gdbarch.sh (dtrace_parse_probe_argument): New.
11188         (dtrace_probe_is_enabled): Likewise.
11189         (dtrace_enable_probe): Likewise.
11190         (dtrace_disable_probe): Likewise.
11191         * gdbarch.c: Regenerate.
11192         * gdbarch.h: Regenerate.
11193
11194 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11195
11196         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11197         stap_probe_ops for `enable_probe' and `disable_probe'.
11198         * probe.c (enable_probes_command): New function.
11199         (disable_probes_command): Likewise.
11200         (_initialize_probe): Define the cli commands `enable probe' and
11201         `disable probe'.
11202         (parse_probe_linespec): New function.
11203         (info_probes_for_ops): Use parse_probe_linespec.
11204         * probe.h (probe_ops): New hooks `enable_probe' and
11205         `disable_probe'.
11206
11207 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11208
11209         * probe.c (compute_probe_arg): Moved from stap-probe.c
11210         (compile_probe_arg): Likewise.
11211         (probe_funcs): Likewise.
11212         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11213         (compile_probe_arg): Likewise.
11214         (probe_funcs): Likewise.
11215
11216 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11217
11218         * probe.c (print_ui_out_not_applicables): New function.
11219         (exists_probe_with_pops): Likewise.
11220         (info_probes_for_ops): Do not include column headers for probe
11221         types for which no probe has been actually found on any object.
11222         Also invoke `print_ui_out_not_applicables' in order to match the
11223         column rows with the header when probes of several types are
11224         listed.
11225         Print the "Type" column.
11226         * probe.h (probe_ops): Added a new probe operation `type_name'.
11227         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11228         (stap_type_name): New function.
11229
11230 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11231
11232         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11233         (key_is_command_char): Delete.
11234
11235 2015-02-17  Pedro Alves  <palves@redhat.com>
11236
11237         * tui/tui.c (tui_enable): Resize windows before anything
11238         might show a window.
11239
11240 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11241
11242         PR gdb/17984
11243         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11244         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11245         call.
11246         * aarch64-tdep.h (tdesc_aarch64): Declare.
11247
11248 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11249
11250         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11251
11252 2015-02-13  Doug Evans  <dje@google.com>
11253
11254         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11255         anonymous_namespace to is_in_anonymous for consistency with the rest
11256         of the file.
11257         (cp_lookup_bare_symbol): Fix typo in comment.
11258         (cp_search_static_and_baseclasses): Ditto.
11259         (search_symbol_list): Use vertical space in comment better.
11260         (reset_directive_searched): Ditto. Fix typo.
11261         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11262
11263 2015-02-13  Yao Qi  <yao.qi@arm.com>
11264
11265         * MAINTAINERS: Update my email address.
11266
11267 2015-02-12  Doug Evans  <dje@google.com>
11268
11269         * symtab.c (completion_list_add_name): Fix memory leak.
11270
11271 2015-02-12  Doug Evans  <dje@google.com>
11272
11273         * completer.c (complete_line): Remove incorrect comment.
11274
11275 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11276
11277         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11278         (py_print_frame): Use RETURN_MASK_ERROR.
11279
11280 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11281
11282         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11283         function comment.  Wrap all function that can throw in cleanups.
11284         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11285         cleanups.
11286
11287 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11288
11289         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11290         Remove the error label.
11291
11292 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11293
11294         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11295         with goto first, indent the former else codepath left.  Put variable
11296         'elided' to a new inner block.
11297
11298 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11299
11300         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11301
11302 2015-02-11  Pedro Alves  <palves@redhat.com>
11303
11304         * xcoffread.c (within_function): Delete.
11305
11306 2015-02-11  Tom Tromey  <tromey@redhat.com>
11307             Pedro Alves <palves@redhat.com>
11308
11309         * breakpoint.c (base_breakpoint_ops): Delete.
11310         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11311         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11312         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11313         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11314         * python/py-arch.c (arch_object_type): Make extern.
11315         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11316         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11317         * python/py-cmd.c (cmdpy_object_type): Make extern.
11318         * python/py-continueevent.c (continue_event_object_type)
11319         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11320         parameter.  Update all callers.
11321         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11322         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11323         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11324         * python/py-function.c (fnpy_object_type): Make extern.
11325         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11326         * python/py-infevents.c (call_pre_event_object_type)
11327         (inferior_call_post_event_object_type).
11328         (memory_changed_event_object_type): Make extern.
11329         * python/py-infthread.c (thread_object_type): Make extern.
11330         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11331         * python/py-linetable.c (linetable_entry_object_type)
11332         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11333         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11334         (clear_objfiles_event_object_type): Make extern.
11335         * python/py-objfile.c (objfile_object_type): Make extern.
11336         * python/py-param.c (parmpy_object_type): Make extern.
11337         * python/py-progspace.c (pspace_object_type): Make extern.
11338         * python/py-signalevent.c (signal_event_object_type): Make extern.
11339         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11340         * python/py-type.c (type_object_type, field_object_type)
11341         (type_iterator_object_type): Make extern.
11342         * python/python.c (python_extension_script_ops)
11343         (python_extension_ops): Make extern.
11344         * stap-probe.c (stap_probe_ops): Make extern.
11345
11346 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11347
11348         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11349         because the event thread is not the current thread.
11350
11351 2015-02-11  Doug Evans  <xdje42@gmail.com>
11352
11353         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11354         been initialized yet, return NULL.
11355
11356 2015-02-11  Doug Evans  <dje@google.com>
11357
11358         * symfile.h (new_symfile_objfile): Delete.
11359         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11360         All callers updated.
11361
11362 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11363
11364         * tui/tui-io.c (tui_handle_resize_during_io): Call
11365         tui_update_gdb_sizes() after resizing the screen.
11366         * tui/tui.c (tui_enable): Resize the terminal before
11367         calling tui_update_gdb_sizes().
11368
11369 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11370
11371         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11372         line before printing a newline.
11373
11374 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11375
11376         * utils.c (producer_is_gcc): Return true or false.
11377
11378 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11379
11380         * utils.h (producer_is_gcc): Change return type to bool. Add major
11381         argument.
11382         * utils.c (producer_is_gcc): Likewise.
11383         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11384         * dwarf2read.c (check_producer): Likewise.
11385
11386 2015-02-10  Pedro Alves  <palves@redhat.com>
11387
11388         * infrun.c (displaced_step_fixup): Switch to the event thread
11389         before calling gdbarch_displaced_step_fixup.
11390
11391 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11392
11393         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11394
11395 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11396
11397         * ada-varobj.c (ada_name_of_child): Constify parent.
11398         (ada_path_expr_of_child): Same.
11399         (ada_value_of_child): Same.
11400         (ada_type_of_child): Same.
11401         * c-varobj.c (c_is_path_expr_parent): Same.
11402         (c_describe_child): Same.
11403         (c_name_of_child): Same.
11404         (c_value_of_child): Same.
11405         (c_type_of_child): Same.
11406         (cplus_number_of_children): Same.
11407         (cplus_describe_child): Constify var.
11408         (cplus_name_of_child): Constify parent.
11409         (cplus_value_of_child): Same.
11410         (cplus_type_of_child): Same.
11411         * jv-varobj.c (java_name_of_child): Same.
11412         (java_value_of_child): Same.
11413         (java_type_of_child): Same.
11414         * varobj.c (value_of_child): Same.
11415         (varobj_default_is_path_expr_parent): Constify var, parent and return
11416         value.
11417         (varobj_get_path_expr): Constify var, modify path_expr through
11418         mutable_var.
11419         (install_new_value): Constify parent.
11420         (value_of_child): Constify parent.
11421         * varobj.h (struct varobj): Constify parent.
11422         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11423         type_of_child.
11424         (varobj_get_path_expr): Constify var.
11425         (varobj_get_path_expr_parent): Constify var and return value.
11426
11427 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11428
11429         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11430         (arm_prologue_this_id): Move PC and SP limit checks to
11431         arm_prologue_unwind_stop_reason.
11432         (arm_prologue_unwind) <stop_reason> : Set to
11433         arm_prologue_unwind_stop_reason.
11434
11435 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11436
11437         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11438         DW_LANG_Fortran08 as language_fortran.
11439
11440 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11441
11442         PR remote/17946
11443         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11444         of pointer against char.
11445
11446 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11447
11448         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11449         (c_type_print_modifier): Likewise.
11450         * dwarf2read.c (read_tag_atomic_type): New function.
11451         (read_type_die_1): Handle DW_TAG_atomic_type.
11452         * gdbtypes.c (make_atomic_type): New function.
11453         (recursive_dump_type): Handle TYPE_ATOMIC.
11454         * gdbtypes.h (enum type_flag_values): Renumber.
11455         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11456         (TYPE_ATOMIC): New macro.
11457         (make_atomic_type): Declare.
11458
11459 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11460
11461         * btrace.c (ftrace_find_call): Skip gaps.
11462         (ftrace_new_function): Initialize level.
11463         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11464         (ftrace_new_switch): Update
11465         level computation.
11466         (ftrace_new_gap): New.
11467         (ftrace_update_function): Create new function after gap.
11468         (btrace_compute_ftrace_bts): Create gap on error.
11469         (btrace_stitch_bts): Update parameters.  Clear trace if it
11470         becomes empty.
11471         (btrace_stitch_trace): Update parameters.  Update callers.
11472         (btrace_clear): Reset the number of gaps.
11473         (btrace_insn_get): Return NULL if the iterator points to a gap.
11474         (btrace_insn_number): Return zero if the iterator points to a gap.
11475         (btrace_insn_end): Allow gaps at the end.
11476         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11477         (btrace_find_insn_by_number): Assert that the found iterator does
11478         not point to a gap.
11479         (btrace_call_next, btrace_call_prev): Assert that the last function
11480         is not a gap.
11481         * btrace.h (btrace_bts_error): New.
11482         (btrace_function): Update comment.
11483         (btrace_function) <insn, insn_offset, number>: Update comment.
11484         (btrace_function) <errcode>: New.
11485         (btrace_thread_info) <ngaps>: New.
11486         (btrace_thread_info) <replay>: Update comment.
11487         (btrace_insn_get): Update comment.
11488         * record-btrace.c (btrace_ui_out_decode_error): New.
11489         (record_btrace_info): Print number of gaps.
11490         (btrace_insn_history, btrace_call_history): Call
11491         btrace_ui_out_decode_error for gaps.
11492         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11493
11494 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11495
11496         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11497         * nat/linux-btrace.c: (btrace_this_cpu): New.
11498         (cpu_supports_bts): Call btrace_this_cpu.
11499         (intel_supports_bts): Add cpu parameter.
11500
11501 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11502
11503         * btrace.h (btrace_insn_class): New.
11504         (btrace_insn) <size, iclass>: New.
11505         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11506         Use instruction classification.
11507         (ftrace_new_return): Update parameters.  Update users.
11508         (ftrace_update_function): Update parameters.  Update users.  Use
11509         instruction classification.
11510         (ftrace_update_insns): Update parameters.  Update users.
11511         (ftrace_classify_insn): New.
11512         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11513         TRY_CATCH around call to gdb_insn_length.
11514
11515 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11516
11517         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11518         Update parameters.  Update users.
11519
11520 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11521
11522         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11523         (btrace_conf_bts_attributes): New.
11524         (btrace_conf_children): Add attributes.
11525         * common/btrace-common.h (btrace_config_bts): New.
11526         (btrace_config)<bts>: New.
11527         (btrace_config): Update comment.
11528         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11529         Use config.
11530         * features/btrace-conf.dtd: Increment version.  Add size
11531         attribute to bts element.
11532         * record-btrace.c (set_record_btrace_bts_cmdlist,
11533         show_record_btrace_bts_cmdlist): New.
11534         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11535         record_btrace_print_conf, cmd_set_record_btrace_bts,
11536         cmd_show_record_btrace_bts): New.
11537         (record_btrace_info): Call record_btrace_print_conf.
11538         (_initialize_record_btrace): Add commands.
11539         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11540         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11541         (btrace_sync_conf): Synchronize bts size.
11542         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11543         * NEWS: Announce new commands and new packets.
11544
11545 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11546
11547         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11548         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11549         (x86_linux_btrace_conf): New.
11550         (x86_linux_create_target): Initialize to_btrace_conf.
11551         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11552         Check format.  Split into this and ...
11553         (linux_enable_bts): ... this.
11554         (linux_btrace_conf): New.
11555         (perf_event_skip_record): Renamed into ...
11556         (perf_event_skip_bts_record): ... this.  Updated users.
11557         (linux_disable_btrace): Split into this and ...
11558         (linux_disable_bts): ... this.
11559         (linux_read_btrace): Check format.
11560         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11561         (linux_btrace_conf): New.
11562         (btrace_target_info)<ptid>: Moved.
11563         (btrace_target_info)<conf>: New.
11564         (btrace_target_info): Split into this and ...
11565         (btrace_tinfo_bts): ... this.  Updated users.
11566         * btrace.c (btrace_enable): Update parameters.
11567         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11568         (btrace_conf_children, btrace_conf_attributes)
11569         (btrace_conf_elements): New.
11570         * btrace.h (btrace_enable): Update parameters.
11571         (btrace_conf, parse_xml_btrace_conf): New.
11572         * common/btrace-common.h (btrace_config): New.
11573         * feature/btrace-conf.dtd: New.
11574         * record-btrace.c (record_btrace_conf): New.
11575         (record_btrace_cmdlist): New.
11576         (record_btrace_enable_warn, record_btrace_open): Pass
11577         &record_btrace_conf.
11578         (record_btrace_info): Print recording format.
11579         (cmd_record_btrace_bts_start): New.
11580         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11581         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11582         Add "record bts" alias command.
11583         * remote.c (remote_state)<btrace_config>: New.
11584         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11585         (remote_protocol_features): Add qXfer:btrace-conf:read.
11586         (remote_open_1): Call remote_btrace_reset.
11587         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11588         (btrace_target_info)<conf>: New.
11589         (btrace_sync_conf, btrace_read_config): New.
11590         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11591         btrace_read_conf.
11592         (remote_btrace_conf): New.
11593         (init_remote_ops): Initialize to_btrace_conf.
11594         (_initialize_remote): Add qXfer:btrace-conf packet.
11595         * target.c (target_enable_btrace): Update parameters.
11596         (target_btrace_conf): New.
11597         * target.h (target_enable_btrace): Update parameters.
11598         (target_btrace_conf): New.
11599         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11600         (target_ops)<to_enable_btrace>: Update parameters and comment.
11601         (target_ops)<to_btrace_conf>: New.
11602         * target-delegates: Regenerate.
11603         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11604         (target_debug_print_const_struct_btrace_target_info_p): New.
11605         * NEWS: Announce new command and new packet.
11606
11607 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11608
11609         * nat/linux-btrace.h (perf_event_buffer): New.
11610         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11611         <bts>: ... this.
11612         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11613         (perf_event_buffer_size, perf_event_buffer_begin)
11614         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11615         Updated users.
11616         (perf_event_new_data): New.
11617
11618 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11619
11620         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11621         * record-btrace.c (record_btrace_open): Remove call to
11622         target_supports_btrace.
11623         * remote.c (remote_supports_btrace): Update parameters.
11624         * target.c (target_supports_btrace): Update parameters.
11625         * target.h (to_supports_btrace, target_supports_btrace): Update
11626         parameters.
11627         * target-delegates.c: Regenerate.
11628         * target-debug.h (target_debug_print_enum_btrace_format): New.
11629         * nat/linux-btrace.c
11630         (kernel_supports_btrace): Rename into ...
11631         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11632         (intel_supports_btrace): Rename into ...
11633         (intel_supports_bts): ... this.  Update users.
11634         (cpu_supports_btrace): Rename into ...
11635         (cpu_supports_bts): ... this.  Update users.
11636         (linux_supports_btrace): Update parameters.  Split into this and ...
11637         (linux_supports_bts): ... this.
11638         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11639
11640 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11641
11642         * Makefile.in (SFILES): Add common/btrace-common.c.
11643         (COMMON_OBS): Add common/btrace-common.o.
11644         (btrace-common.o): Add build rules.
11645         * btrace.c (parse_xml_btrace): Update parameters.
11646         (parse_xml_btrace_block): Set format field.
11647         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11648         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11649         (btrace_compute_ftrace): Split into this and...
11650         (btrace_compute_ftrace_bts): ...this.
11651         (btrace_stitch_trace): Split into this and...
11652         (btrace_stitch_bts): ...this.
11653         * btrace.h (parse_xml_btrace): Update parameters.
11654         (make_cleanup_btrace_data): New.
11655         * common/btrace-common.c: New.
11656         * common/btrace-common.h: Include common-defs.h.
11657         (btrace_block_s): Update comment.
11658         (btrace_format): New.
11659         (btrace_format_string): New.
11660         (btrace_data_bts): New.
11661         (btrace_data): New.
11662         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11663         * remote.c (remote_read_btrace): Update parameters.
11664         * target.c (target_read_btrace): Update parameters.
11665         * target.h (target_read_btrace): Update parameters.
11666         (target_ops)<to_read_btrace>: Update parameters.
11667         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11668         * target-delegates.c: Regenerate.
11669         * target-debug (target_debug_print_struct_btrace_data_p): New.
11670         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11671         (linux_read_bts): ...this.
11672         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11673
11674 2015-02-06  Doug Evans  <dje@google.com>
11675
11676         * remote-m32r-sdi.c: Include symfile.h.
11677
11678 2015-02-06  Doug Evans  <dje@google.com>
11679
11680         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11681         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11682         to here.
11683
11684 2015-02-06  Pedro Alves  <palves@redhat.com>
11685
11686         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11687
11688 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11689
11690         PR gdb/15678
11691         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11692         (enable_count_command): Check args for NULL value.
11693
11694 2015-02-05  Doug Evans  <xdje42@gmail.com>
11695
11696         * guile/scm-frame.c: Fix spelling errors in a comment.
11697
11698 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11699
11700         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11701         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11702         return type.
11703
11704 2015-02-04  Pedro Alves  <palves@redhat.com>
11705
11706         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11707         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11708         returns true.
11709         (resume_stopped_resumed_lwps): Don't check whether the thread is
11710         marked as executing.
11711         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11712
11713 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11714
11715         * regset.h (struct regset): Add flags field.
11716         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11717         * corelow.c (get_core_register_section): Add warning if the size
11718         exceeds the requested size and the regset does not have the
11719         REGSET_VARIABLE_SIZE flag set.
11720         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11721         flag.
11722         * armbsd-tdep.c (armbsd_gregset): Likewise.
11723         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11724         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11725         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11726         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11727
11728 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11729
11730         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11731         For ".reg-xstate", explicitly specify the requested section size
11732         via X86_XSTATE_SIZE instead of just 0 on input and
11733         X86_XSTATE_MAX_SIZE on output.
11734         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11735         Likewise.
11736
11737 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11738
11739         PR corefiles/17808:
11740         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11741         function type, particularly its SIZE parameter.
11742         * gdbarch.h: Regenerate.
11743         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11744         actual against required size using ">=" instead of "==".
11745         (amd64_collect_fpregset): Likewise.
11746         * i386-tdep.c (i386_supply_gregset): Likewise.
11747         (i386_collect_gregset): Likewise.
11748         (i386_supply_fpregset): Likewise.
11749         (i386_collect_fpregset): Likewise.
11750         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11751         (mips_fill_gregset_wrapper): Likewise.
11752         (mips_supply_fpregset_wrapper): Likewise.
11753         (mips_fill_fpregset_wrapper): Likewise.
11754         (mips64_supply_gregset_wrapper): Likewise.
11755         (mips64_fill_gregset_wrapper): Likewise.
11756         (mips64_supply_fpregset_wrapper): Likewise.
11757         (mips64_fill_fpregset_wrapper): Likewise.
11758         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11759         (am33_supply_fpregset_method): Likewise.
11760         (am33_collect_gregset_method): Likewise.
11761         (am33_collect_fpregset_method): Likewise.
11762
11763 2015-02-04  Doug Evans  <dje@google.com>
11764             Pedro Alves  <palves@redhat.com>
11765             Eli Zaretskii  <eliz@gnu.org>
11766
11767         PR tui/17810
11768         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11769         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11770         * tui/tui-file.c: #include tui/tui-command.h.
11771         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11772         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11773         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11774
11775 2015-02-04  Pedro Alves  <palves@redhat.com>
11776
11777         Fix build breakage.
11778         * event-loop.c (gdb_do_one_event): Add default switch case.
11779
11780 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11781
11782         Filter out inferior gcc option -fpreprocessed.
11783         * compile/compile.c (filter_args): New function.
11784         (get_args): Use it.
11785
11786 2015-02-03  Pedro Alves  <palves@redhat.com>
11787
11788         * event-loop.c: Don't declare nor define a queue type for
11789         gdb_event_p.
11790         (event_queue): Delete.
11791         (create_event, create_file_event, gdb_event_xfree)
11792         (initialize_event_loop, process_event): Delete.
11793         (gdb_do_one_event): Return as soon as one event is handled.
11794         (handle_file_event): Change prototype.  Used the passed in
11795         file_handler pointer and ready_mask instead of looping over all
11796         file handlers.
11797         (gdb_wait_for_event): Update the poll/select timeouts before
11798         blocking.  Run event handlers directly instead of queueing events.
11799         Return as soon as one event is handled.
11800         (struct async_event_handler_data): Delete.
11801         (invoke_async_event_handler): Delete.
11802         (check_async_event_handlers): Change return type to int.  Run
11803         event handlers directly instead of queueing events.  Return as
11804         soon as one event is handled.
11805         (handle_timer_event): Delete.
11806         (update_wait_timeout): New function, factored out from
11807         poll_timers.
11808         (poll_timers): Reimplement.
11809         * event-loop.h (initialize_event_loop): Delete declaration.
11810         * top.c (gdb_init): Don't call initialize_event_loop.
11811
11812 2015-02-03  Pedro Alves  <palves@redhat.com>
11813
11814         * event-loop.c (clear_async_event_handler): New function.
11815         * event-loop.h (clear_async_event_handler): New declaration.
11816         * record-btrace.c (record_btrace_async): New function.
11817         (init_record_btrace_ops): Install record_btrace_async.
11818         * record-full.c (record_full_async): New function.
11819         (record_full_resume): Don't mark the async event source here.
11820         (init_record_full_ops): Install record_full_async.
11821         (record_full_core_resume): Don't mark the async event source here.
11822         (init_record_full_core_ops): Install record_full_async.
11823         * remote.c (remote_async): Mark and clear the async stop reply
11824         queue event-loop token as appropriate.
11825
11826 2015-02-03  Pedro Alves  <palves@redhat.com>
11827
11828         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11829         target_is_async_p instead of target_can_async.
11830         (linux_nat_wait): Use target_is_async_p instead of
11831         target_can_async.  Don't enable async here.
11832         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11833         target_is_async_p instead of target_can_async.
11834
11835 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11836
11837         * varobj.h (lang_varobj_ops): Mention which return values need
11838         to be freed.
11839
11840 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11841
11842         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11843
11844 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11845
11846         PR gdb/17856:
11847         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11848         results found in the cache.
11849
11850 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11851
11852         PR gdb/17854:
11853         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11854         when allocating a new one.
11855
11856 2015-02-01  Tom Tromey  <tom@tromey.com>
11857
11858         * MAINTAINERS: Remove myself.
11859
11860 2015-01-31  Doug Evans  <xdje42@gmail.com>
11861
11862         * dwarf2read.c (process_structure_scope): Update setting of
11863         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11864         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11865         (set_type_vptr_fieldno): New function.
11866         (internal_type_vptr_basetype): New function.
11867         (set_type_vptr_basetype): New function.
11868         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11869         TYPE_VPTR_BASETYPE.
11870         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11871         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11872         (print_cplus_stuff): ... moved here.
11873         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11874         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11875         moved to ...
11876         (struct cplus_struct_type): ... here.  All uses updated.
11877         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11878         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11879         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11880         * stabsread.c (read_tilde_fields): Update setting of
11881         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11882
11883 2015-01-31  Doug Evans  <xdje42@gmail.com>
11884
11885         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11886         to self_p.
11887         (cp_print_class_member): Rename local domain to self_type.
11888         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11889         domain_type to self_type.
11890         (set_die_type) <need_gnat_info>: Handle
11891         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11892         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11893         TYPE_SPECIFIC_SELF_TYPE.
11894         * gdbtypes.c (internal_type_self_type): New function.
11895         (set_type_self_type): New function.
11896         (smash_to_memberptr_type): Rename parameter domain to self_type.
11897         Update setting of TYPE_SELF_TYPE.
11898         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11899         (smash_to_method_type): Rename parameter domain to self_type.
11900         Update setting of TYPE_SELF_TYPE.
11901         (check_stub_method): Call smash_to_method_type.
11902         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11903         (copy_type_recursive): Ditto.
11904         * gdbtypes.h (enum type_specific_kind): New value
11905         TYPE_SPECIFIC_SELF_TYPE.
11906         (struct main_type) <type_specific>: New member self_type.
11907         (struct cplus_struct_type) <fn_field.type>: Update comment.
11908         (TYPE_SELF_TYPE): Rewrite.
11909         (internal_type_self_type, set_type_self_type): Declare.
11910         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11911         self_type.
11912         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11913         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11914         TYPE_TARGET_TYPE.
11915         * stabsread.c (read_member_functions): Mark methods with
11916         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11917         TYPE_SELF_TYPE.
11918
11919 2015-01-31  Doug Evans  <xdje42@gmail.com>
11920
11921         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11922         All uses updated.
11923
11924 2015-01-31  Doug Evans  <xdje42@gmail.com>
11925
11926         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11927         or unions.  Return zero if union.
11928         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11929         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11930         gnuv3_get_vtable.
11931         (compute_vtable_size): Assert only passed structs.
11932         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11933
11934 2015-01-31  Doug Evans  <xdje42@gmail.com>
11935
11936         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11937         kinds.
11938
11939 2015-01-31  Gary Benson <gbenson@redhat.com>
11940             Doug Evans  <dje@google.com>
11941
11942         PR cli/9007
11943         PR cli/11920
11944         PR cli/15548
11945         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11946         reached.
11947         * common/common-exceptions.h (enum errors)
11948         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11949         * completer.h (get_max_completions_reached_message): New declaration.
11950         (max_completions): Likewise.
11951         (completion_tracker_t): New typedef.
11952         (new_completion_tracker): New declaration.
11953         (make_cleanup_free_completion_tracker): Likewise.
11954         (maybe_add_completion_enum): New enum.
11955         (maybe_add_completion): New declaration.
11956         (throw_max_completions_reached_error): Likewise.
11957         * completer.c (max_completions): New global variable.
11958         (new_completion_tracker): New function.
11959         (free_completion_tracker): Likewise.
11960         (make_cleanup_free_completion_tracker): Likewise.
11961         (maybe_add_completions): Likewise.
11962         (throw_max_completions_reached_error): Likewise.
11963         (complete_line): Remove duplicates and limit result to max_completions
11964         entries.
11965         (get_max_completions_reached_message): New function.
11966         (gdb_display_match_list): Handle max_completions.
11967         (_initialize_completer): New declaration and function.
11968         * symtab.c: Include completer.h.
11969         (completion_tracker): New static variable.
11970         (completion_list_add_name): Call maybe_add_completion.
11971         (default_make_symbol_completion_list_break_on_1): Renamed from
11972         default_make_symbol_completion_list_break_on.  Maintain
11973         completion_tracker across calls to completion_list_add_name.
11974         (default_make_symbol_completion_list_break_on): New function.
11975         * top.c (init_main): Set rl_completion_display_matches_hook.
11976         * tui/tui-io.c: Include completer.h.
11977         (tui_old_rl_display_matches_hook): New static global.
11978         (tui_rl_display_match_list): Notify user if max-completions reached.
11979         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11980         * NEWS (New Options): Mention set/show max-completions.
11981
11982 2015-01-31  Gary Benson  <gbenson@redhat.com>
11983
11984         * symtab.c (struct add_name_data) <code>: New field.
11985         Updated comments.
11986         (add_symtab_completions): New function.
11987         (symtab_expansion_callback): Likewise.
11988         (default_make_symbol_completion_list_break_on): Set datum.code.
11989         Move minimal symbol scan before calling expand_symtabs_matching.
11990         Scan known primary symtabs for externs and statics before calling
11991         expand_symtabs_matching.  Pass symtab_expansion_callback as
11992         expansion_notify argument to expand_symtabs_matching.  Do not scan
11993         primary symtabs for externs and statics after calling
11994         expand_symtabs_matching.
11995
11996 2015-01-31  Gary Benson  <gbenson@redhat.com>
11997
11998         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11999         (struct quick_symbol_functions) <expand_symtabs_matching>:
12000         New argument expansion_notify.  All uses updated.
12001         (expand_symtabs_matching): New argument expansion_notify.
12002         All uses updated.
12003         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12004         Also print expansion notify.
12005         * symtab.c (expand_symtabs_matching_via_partial): Call
12006         expansion_notify whenever a partial symbol table is expanded.
12007         * dwarf2read.c (dw2_expand_symtabs_matching): Call
12008         expansion_notify whenever a symbol table is instantiated.
12009
12010 2015-01-31  Doug Evans  <xdje42@gmail.com>
12011
12012         * cli-out.c: #include completer.h, readline/readline.h.
12013         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12014         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12015         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12016         * cli-out.h (cli_display_match_list): Declare.
12017         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12018         (ELLIPSIS_LEN): Ditto.
12019         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12020         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12021         (gdb_fnprint, gdb_print_filename): Ditto.
12022         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12023         (gdb_display_match_list): Ditto.
12024         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12025         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12026         (mld_beep_ftype, mld_read_key_ftype): Ditto.
12027         (match_list_displayer): New struct.
12028         (gdb_display_match_list): Declare.
12029         * top.c (init_main): Set rl_completion_display_matches_hook.
12030         * tui/tui-io.c: #include completer.h.
12031         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12032         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12033         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12034         (tui_mld_getc, tui_mld_read_key): Ditto.
12035         (tui_rl_display_match_list): Rewrite.
12036         (tui_handle_resize_during_io): New arg for_completion.  All callers
12037         updated.
12038
12039 2015-01-31  Doug Evans  <xdje42@gmail.com>
12040
12041         Add symbol lookup cache.
12042         * NEWS: Document new options and commands.
12043         * symtab.c (symbol_cache_key): New static global.
12044         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12045         (SYMBOL_LOOKUP_FAILED): New macro.
12046         (symbol_cache_slot_state): New enum.
12047         (block_symbol_cache): New struct.
12048         (symbol_cache): New struct.
12049         (new_symbol_cache_size, symbol_cache_size): New static globals.
12050         (hash_symbol_entry, eq_symbol_entry): New functions.
12051         (symbol_cache_byte_size, resize_symbol_cache): New functions.
12052         (make_symbol_cache, free_symbol_cache): New functions.
12053         (get_symbol_cache, symbol_cache_cleanup): New function.
12054         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12055         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12056         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12057         (symbol_cache_flush, symbol_cache_dump): New functions.
12058         (maintenance_print_symbol_cache): New function.
12059         (maintenance_flush_symbol_cache): New function.
12060         (symbol_cache_stats): New function.
12061         (maintenance_print_symbol_cache_statistics): New function.
12062         (symtab_new_objfile_observer): New function.
12063         (symtab_free_objfile_observer): New function.
12064         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12065         (_initialize_symtab): Init symbol_cache_key.  New parameter
12066         maint symbol-cache-size.  New maint commands print symbol-cache,
12067         print symbol-cache-statistics, flush-symbol-cache.
12068         Install new_objfile, free_objfile observers.
12069
12070 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
12071
12072         PR symtab/17855
12073         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12074         to end.
12075
12076 2015-01-31  Doug Evans  <xdje42@gmail.com>
12077
12078         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12079         * auto-load.c: #include ctype.h.
12080         (struct auto_load_pspace_info): Replace member loaded_scripts with
12081         new members loaded_script_files, loaded_script_texts.
12082         (auto_load_pspace_data_cleanup): Update.
12083         (init_loaded_scripts_info): Update.
12084         (get_auto_load_pspace_data_for_loading): Update.
12085         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12086         updated.
12087         (maybe_add_script_text): New function.
12088         (clear_section_scripts): Update.
12089         (source_script_file, execute_script_contents): New functions.
12090         (source_section_scripts): Add support for
12091         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12092         (print_scripts): New function.
12093         (auto_load_info_scripts): Also print inlined scripts.
12094         (maybe_print_unsupported_script_warning): Renamed from
12095         unsupported_script_warning_print.  All callers updated.
12096         (maybe_print_script_not_found_warning): Renamed from
12097         script_not_found_warning_print.  All callers updated.
12098         * extension-priv.h (struct extension_language_script_ops): New member
12099         objfile_script_executor.
12100         * extension.c (ext_lang_objfile_script_executor): New function.
12101         * extension.h (objfile_script_executor_func): New typedef.
12102         (ext_lang_objfile_script_executor): Declare.
12103         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12104         * guile/guile.c (guile_extension_script_ops): Update.
12105         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12106         * python/python.c (python_extension_script_ops): Update.
12107         (gdbpy_execute_objfile_script): New function.
12108
12109 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12110
12111         * tui/tui-io.c (tui_expand_tabs): New function.
12112         (tui_puts, tui_redisplay_readline): Expand TABs into the
12113         appropriate number of spaces.
12114         * tui/tui-regs.c: Include tui-io.h.
12115         (tui_register_format): Call tui_expand_tabs to expand TABs into
12116         the appropriate number of spaces.
12117         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12118
12119 2015-01-30  Doug Evans  <dje@google.com>
12120
12121         * NEWS: "info source" command now display producer string if present.
12122         * source.c (source_info): Print producer string if present.
12123
12124 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12125
12126         * varobj.c (varobj_delete): Fix comment.
12127
12128 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12129
12130         * varobj.c (create_child): Modify comment.
12131
12132 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12133
12134         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12135         parameter.
12136         (ada_name_of_variable): Same.
12137         (ada_path_expr_of_child): Same.
12138         (ada_value_of_variable): Same.
12139         (ada_value_is_changeable_p): Same.
12140         (ada_value_has_mutated): Same.
12141         * c-varobj.c (varobj_is_anonymous_child): Same.
12142         (c_is_path_expr_parent): Same.
12143         (c_number_of_children): Same.
12144         (c_name_of_variable): Same.
12145         (c_path_expr_of_child): Same.
12146         (get_type): Same.
12147         (c_value_of_variable): Same.
12148         (cplus_number_of_children): Same.
12149         (cplus_name_of_variable): Same.
12150         (cplus_path_expr_of_child): Same.
12151         (cplus_value_of_variable): Same.
12152         * jv-varobj.c (java_number_of_children): Same.
12153         (java_name_of_variable): Same.
12154         (java_path_expr_of_child): Same.
12155         (java_value_of_variable): Same.
12156         * varobj.c (number_of_children): Same.
12157         (name_of_variable): Same.
12158         (is_root_p): Same.
12159         (varobj_ensure_python_env): Same.
12160         (varobj_get_objname): Same.
12161         (varobj_get_expression): Same.
12162         (varobj_get_display_format): Same.
12163         (varobj_get_display_hint): Same.
12164         (varobj_has_more): Same.
12165         (varobj_get_thread_id): Same.
12166         (varobj_get_frozen): Same.
12167         (dynamic_varobj_has_child_method): Same.
12168         (varobj_get_gdb_type): Same.
12169         (is_path_expr_parent): Same.
12170         (varobj_default_is_path_expr_parent): Same.
12171         (varobj_get_language): Same.
12172         (varobj_get_attributes): Same.
12173         (varobj_is_dynamic_p): Same.
12174         (varobj_get_child_range): Same.
12175         (varobj_value_has_mutated): Same.
12176         (varobj_get_value_type): Same.
12177         (number_of_children): Same.
12178         (name_of_variable): Same.
12179         (check_scope): Same.
12180         (varobj_editable_p): Same.
12181         (varobj_value_is_changeable_p): Same.
12182         (varobj_floating_p): Same.
12183         (varobj_default_value_is_changeable_p): Same.
12184
12185 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12186
12187         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12188         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12189         child->path_expr.
12190         (cplus_path_expr_of_child): Same.
12191
12192 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12193
12194         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12195         result.
12196         (mi_cmd_var_info_expression): Same.
12197         * varobj.c (varobj_get_expression): Mention in the comment that
12198         the result must by freed by the caller.
12199
12200 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12201
12202         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12203         varobj_get_type.
12204         (varobj_update_one): Same.
12205         * varobj.c (update_type_if_necessary): Free curr_type_str and
12206         new_type_str.
12207         (varobj_get_type): Specify in comment that the result needs to be
12208         freed by the caller.
12209
12210 2015-01-29  Doug Evans  <dje@google.com>
12211
12212         PR symtab/17890
12213         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12214
12215 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12216
12217         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12218         * utils.c (producer_is_gcc_ge_4): Likewise.
12219         (producer_is_gcc): New function.
12220         * utils.h (producer_is_gcc): New declaration.
12221
12222 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12223
12224         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12225         kind.
12226         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12227         parameter by "addr_stack" parameter.
12228         (resolve_dynamic_range): Replace "addr" parameter by
12229         "stack_addr" parameter.  Update function documentation.
12230         Update code accordingly.
12231         (resolve_dynamic_array, resolve_dynamic_union)
12232         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12233         (resolve_dynamic_type): Update code, following the changes made
12234         to resolve_dynamic_type_internal's interface.
12235         * dwarf2loc.h (struct property_addr_info): New.
12236         (dwarf2_evaluate_property): Replace "address" parameter
12237         by "addr_stack" parameter.  Adjust function documentation.
12238         (struct dwarf2_offset_baton): New.
12239         (struct dwarf2_property_baton): Update documentation of
12240         field "referenced_type" to be more general. New field
12241         "offset_info" in union data field.
12242         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12243         parameter by "addr_stack" parameter.  Adjust code accordingly.
12244         Add support for PROP_ADDR_OFFSET properties.
12245         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12246         DW_AT_data_member_location attributes as well.  Use case
12247         statements instead of if/else condition.
12248
12249 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12250
12251         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12252         Return zero if PARENT_VALUE is NULL and parent_type's
12253         range type is dynamic.
12254
12255 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12256
12257         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12258         nonzero if the type's subtype is dynamic.
12259         (resolve_dynamic_range): Also resolve the range's subtype.
12260
12261 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12262
12263         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12264         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12265
12266 2015-01-27  Doug Evans  <dje@google.com>
12267
12268         * NEWS: Mention gdb.Objfile.username.
12269         * python/py-objfile.c (objfpy_get_username): New function.
12270         (objfile_getset): Add "username".
12271
12272 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12273
12274         * stack.c (return_command): Markup warning message with _.
12275
12276 2015-01-24  Doug Evans  <xdje42@gmail.com>
12277
12278         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12279
12280 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12281
12282         Fix 100x slowdown regression on DWZ files.
12283         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12284         (struct line_header): Add offset and offset_in_dwz.
12285         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12286         (free_line_header_voidp): New declaration.
12287         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12288         functions.
12289         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12290         (handle_DW_AT_stmt_list): Use line_header_hash.
12291         (free_line_header_voidp): New function.
12292         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12293         (dwarf_decode_lines): New parameter decode_mapping, use it.
12294         (dwarf2_free_objfile): Free line_header_hash.
12295
12296 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12297
12298         PR gdb/17416
12299         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12300         value_ind.
12301
12302 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12303
12304         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12305         DW_AT_noreturn.
12306         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12307         calling_convention an 8 bit bit field.
12308         (TYPE_NO_RETURN): New macro.
12309         * infcmd.c (finish_command): Query if function does not return
12310         normally.
12311         * stack.c (return_command): Likewise.
12312
12313 2015-01-23  Pedro Alves  <palves@redhat.com>
12314
12315         * linux-nat.c (linux_is_async_p): New macro.
12316         (linux_nat_is_async_p):
12317         (linux_nat_terminal_inferior): Check whether the target can async
12318         instead of whether it is already async.
12319         (linux_nat_terminal_ours): Don't check whether the target is
12320         async.
12321         (linux_async_pipe): Use linux_is_async_p.
12322
12323 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12324
12325         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12326         '-ascending'.
12327         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12328         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12329         Sort tp_array using tp_array_compar.
12330         (_initialize_thread): Extend thread_apply_all_command help.
12331
12332 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12333
12334         * corelow.c (core_open): Call also thread_command.
12335         * gdbthread.h (thread_command): New prototype moved from ...
12336         * thread.c (thread_command): ... here.
12337         (thread_command): Make it global.
12338
12339 2015-01-22  Pedro Alves  <palves@redhat.com>
12340
12341         * configure.ac [*mingw32*]: Check $curses_found instead of
12342         $prefer_curses.
12343         * configure: Regenerate.
12344         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12345         HAVE_NCURSES_NCURSES_H checks.
12346
12347 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12348
12349         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12350         fails with the 1st arg NULL, try again with "unknown".  Don't test
12351         the "cup" capability: it isn't supported by the Windows port of
12352         ncurses, but the Windows console driver is still capable of
12353         supporting TUI.
12354
12355 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12356
12357         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12358
12359 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12360
12361         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12362         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12363         reason that "make TAGS" is broken.
12364
12365 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12366
12367         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12368         and check additional store instructions.
12369
12370 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12371
12372         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12373
12374 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12375
12376         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12377         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12378         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12379         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12380         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12381         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12382         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12383         ppc_process_record_op19, ppc_process_record_op31,
12384         ppc_process_record_op59, ppc_process_record_op60,
12385         ppc_process_record_op63): Likewise.
12386
12387 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12388
12389         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12390         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12391         strerror.
12392
12393 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12394
12395         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12396         ppc_process_record_op31, ppc_process_record_op59,
12397         ppc_process_record_op60, ppc_process_record_op63,
12398         ppc_process_record): Fix -Wformat warning.
12399         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12400         Remove unused variables.
12401
12402 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12403
12404         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12405
12406 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12407
12408         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12409         CONFIG_OBS if not building with a curses library.
12410         * configure: Regenerate.
12411
12412         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12413         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12414         HAVE_NCURSES_NCURSES_H is defined.
12415
12416 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12417
12418         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12419         from end of line to start of next line.
12420
12421 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12422
12423         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12424         Scan PLT stub backward for reverse debugging.
12425         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12426
12427 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12428             Ulrich Weigand  <uweigand@de.ibm.com>
12429
12430         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12431         gdb_target_obs.
12432         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12433         record.
12434         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12435         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12436         (ppc_linux_init_abi): Set process_record, process_record_signal.
12437         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12438         ppc_linux_record_tdep to gdbarch_tdep.
12439         (ppc_process_record): New declaration.
12440         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12441         ppc_process_record_op19, ppc_process_record_op31,
12442         ppc_process_record_op59, ppc_process_record_op60,
12443         ppc_process_record_op63, ppc_process_record): New functions.
12444
12445 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12446
12447         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12448         rs6000_in_function_epilogue_frame_p and add an argument
12449         for frame_info.
12450         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12451         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12452         New functions.
12453         (rs6000_epilogue_frame_unwind): New.
12454         (rs6000_gdbarch_init): Append epilogue unwinder.
12455
12456 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12457
12458         * nat/linux-personality.c: Replace "#ifndef
12459         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12460         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12461         systems.
12462
12463 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12464
12465         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12466         functions.
12467         (_initialize_tui_win) <border-kind, border-mode>:
12468         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12469         (tui_set_tab_width_command): Fix the commentary.
12470
12471         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12472
12473         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12474         Doc fix.
12475         (tui_set_tab_width_command): Delete and recreate the source and
12476         the disassembly windows, to show the effect of the changed tab
12477         size immediately.
12478
12479         * tui/tui-data.h (LINE_PREFIX): Make shorter
12480         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12481         "Thread NNNNN.XXXX" thread ID notation on Windows.
12482
12483 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12484
12485         Fix gcc-5 compilation.
12486         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12487
12488 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12489
12490         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12491         (linux-personality.o): New rule.
12492         * common/common-defs.h: Include <stdint.h>.
12493         * config/aarch64/linux.mh (NATDEPFILES): Include
12494         linux-personality.o.
12495         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12496         * config/arm/linux.mh (NATDEPFILES): Likewise.
12497         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12498         * config/i386/linux.mh (NATDEPFILES): Likewise.
12499         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12500         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12501         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12502         * config/mips/linux.mh (NATDEPFILES): Likewise.
12503         * config/pa/linux.mh (NATDEPFILES): Likewise.
12504         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12505         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12506         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12507         * config/s390/linux.mh (NATDEPFILES): Likewise.
12508         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12509         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12510         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12511         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12512         * defs.h: Remove #include <stdint.h> (moved to
12513         common/common-defs.h).
12514         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12515         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12516         nat/linux-personality.c).
12517         (linux_nat_create_inferior): Remove code to disable address space
12518         randomization (moved to nat/linux-personality.c).  Create cleanup
12519         to disable address space randomization.
12520         * nat/linux-personality.c: New file.
12521         * nat/linux-personality.h: Likewise.
12522
12523 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12524
12525         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12526         common/posix-strerror.c.
12527         (posix-strerror.o): New rule.
12528         (mingw-strerror.o): Likewise.
12529         * common/common-utils.h (safe_strerror): Move prototype to here,
12530         from utils.h.
12531         * common/common.host: New file.
12532         * common/mingw-strerror.c: Likewise.
12533         * common/posix-strerror.c: Likewise.
12534         * configure: Regenerated.
12535         * configure.ac: Source common/common.host.  Add variable
12536         common_host_obs to gdb_host_obs.
12537         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12538         gdb/common/posix-strerror.c when warning about the use of
12539         strerror.
12540         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12541         common/mingw-strerror.c.
12542         * posix-hdep.c (safe_strerror): Remove definition; move it to
12543         common/posix-hdep.c.
12544         * utils.h (safe_strerror): Remove prototype; move to
12545         common/common-utils.h.
12546
12547 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12548
12549         GDB 7.8.2 released.
12550
12551 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12552
12553         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12554         ___XA type if the array has already been fixed.
12555
12556 2015-01-14  Yao Qi  <yao@codesourcery.com>
12557
12558         * Makefile.in (ppc-linux.o): New rule.
12559         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12560         * configure.ac: AC_CHECK_FUNCS(getauxval).
12561         * config.in: Re-generated.
12562         * configure: Re-generated.
12563         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12564         Declare.
12565         * nat/ppc-linux.c: New file.
12566         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12567         Call ppc64_64bit_inferior_p.
12568
12569 2015-01-14  Yao Qi  <yao@codesourcery.com>
12570
12571         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12572         nat/ppc-linux.h.
12573         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12574         (PPC_FEATURE_HAS_DFP): Likewise.
12575         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12576         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12577         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12578         Include "nat/ppc-linux.h".
12579         * nat/ppc-linux.h: New file.
12580         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12581
12582 2015-01-14  Pedro Alves  <palves@redhat.com>
12583
12584         PR gdb/17525
12585         * breakpoint.c: Include "interps.h".
12586         (bpstat_do_actions_1): Also check whether the interpreter is
12587         async.
12588
12589 2015-01-14  Pedro Alves  <palves@redhat.com>
12590
12591         PR cli/17828
12592         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12593         reinstall if the interpreter is sync.
12594
12595 2015-01-13  Doug Evans  <dje@google.com>
12596
12597         * objfiles.c (objfile_filename): New function.
12598         * objfiles.h (objfile_filename): Declare it.
12599         (objfile_name): Add function comment.
12600         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12601         bfd file name (which may be realpath'd), and the original name.
12602
12603 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12604
12605         * NEWS: Create a new section for the next release branch.
12606         Rename the section of the current branch, now that it has
12607         been cut.
12608
12609 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12610
12611         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12612         * version.in: Bump version to 7.9.50.DATE-cvs.
12613
12614 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12615
12616         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12617         Remove trailing new-line in argument of call to warning.
12618
12619 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12620
12621         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12622         new-line in argument of call to "warning".
12623
12624 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12625
12626         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12627         in static block, then try searching for primitive types.
12628
12629 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12630
12631         * top.h (gdb_add_history): Declare.
12632         * top.c (command_count): New variable.
12633         (gdb_add_history): New function.
12634         (gdb_safe_append_history): New static function.
12635         (quit_force): Call it.
12636         (command_line_input): Use gdb_add_history instead of
12637         add_history.
12638         * event-top.c (command_line_handler): Likewise.
12639
12640 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12641
12642         PR gdb/17046
12643         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12644         <setjmp.h> #include.
12645
12646 2015-01-11  Doug Evans  <xdje42@gmail.com>
12647
12648         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12649
12650 2015-01-11  Doug Evans  <xdje42@gmail.com>
12651
12652         PR gdb/15830
12653         * NEWS: The "maint demangle" command is renamed as "demangle".
12654         * demangle.c: #include cli/cli-utils.h, language.h.
12655         (demangle_command): New function.
12656         (_initialize_demangle): Add new command "demangle".
12657         * maint.c (maintenance_demangle): Stub out.
12658         (_initialize_maint_cmds): Update help text for "maint demangle",
12659         and mark as deprecated.
12660
12661 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12662
12663         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12664         inferior_thread is a function.
12665
12666 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12667
12668         * Makefile.in (.y.c): Don't munge yacc's #line
12669         directives.
12670
12671 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12672
12673         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12674         to prompt for input.
12675         * tui/tui-hooks.c (tui_query_hook): Remove.
12676         (tui_install_hooks): Don't set deprecated_query_hook.
12677         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12678         height calculation.  Always update the command window's cur_line.
12679
12680 2015-01-09  Pedro Alves  <palves@redhat.com>
12681
12682         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12683         function.
12684         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12685         declaration.
12686         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12687         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12688         stop_reason.
12689         (check_stopped_by_watchpoint): New function.
12690         (save_sigtrap): Reimplement.
12691         (linux_nat_stopped_by_watchpoint): Adjust.
12692         (linux_nat_lp_status_is_event): Delete.
12693         (stop_wait_callback): Only call save_sigtrap after storing the
12694         pending status.
12695         (status_callback): If the thread had been stopped for a breakpoint
12696         that has since been removed, discard the event and resume the LWP.
12697         (count_events_callback, select_event_lwp_callback): Use
12698         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12699         (cancel_breakpoint): Rename to ...
12700         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12701         stopped for a software breakpoint or hardware breakpoint.
12702         (select_event_lwp): Only give preference to the stepping LWP in
12703         all-stop mode.  Adjust comments.
12704         (stop_and_resume_callback): Remove references to new_pending_p.
12705         (linux_nat_filter_event): Likewise.  Leave exit events of the
12706         leader thread pending here.  Handle signal short circuiting here.
12707         Only call save_sigtrap after storing the pending waitstatus.
12708         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12709         new_pending.  Don't handle leaving events the caller is not
12710         interested in pending here, nor handle signal short-circuiting
12711         here.  Also give equal priority to all LWPs that have had events
12712         in non-stop mode.  If reporting a software breakpoint event,
12713         unadjust the LWP's PC.
12714         * linux-nat.h (enum lwp_stop_reason): New.
12715         (struct lwp_info) <stop_pc>: New field.
12716         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12717         (struct lwp_info) <stop_reason>: New field.
12718         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12719
12720 2015-01-09  Pedro Alves  <palves@redhat.com>
12721
12722         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12723         Set the LWP's 'resumed' flag.
12724
12725 2015-01-09  Pedro Alves  <palves@redhat.com>
12726
12727         * linux-nat.c (linux_resume_one_lwp): New function.
12728         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12729         (linux_nat_resume): Use lwp_status_pending_p and
12730         linux_resume_one_lwp.
12731         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12732         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12733         (status_callback, running_callback): Use lwp_status_pending_p.
12734         (lwp_status_pending_p): New function.
12735         (stop_and_resume_callback): Use lwp_status_pending_p.
12736         (linux_nat_filter_event): Use linux_resume_one_lwp.
12737         (linux_nat_wait_1): Always use status_callback to look for an LWP
12738         with a pending status.  Use linux_resume_one_lwp.
12739         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12740         linux_resume_one_lwp.
12741
12742 2015-01-09  Pedro Alves  <palves@redhat.com>
12743
12744         * breakpoint.c (bp_location_inserted_here_p): New function,
12745         factored out from ...
12746         (breakpoint_inserted_here_p): ... here.  Use
12747         ALL_BP_LOCATIONS_AT_ADDR.
12748         (software_breakpoint_inserted_here_p): Use
12749         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12750
12751 2014-01-09  Pedro Alves  <palves@redhat.com>
12752
12753         Skip enabling event reporting if the kernel supports
12754         PTRACE_EVENT_CLONE.
12755         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12756         (thread_db_use_events): New function.
12757         (try_thread_db_load_1): Check thread_db_use_events before enabling
12758         event reporting.
12759         (update_thread_state): New function.
12760         (attach_thread): Use it.  Check thread_db_use_events before
12761         enabling event reporting.
12762         (thread_db_detach): Check thread_db_use_events before disabling
12763         event reporting.
12764         (find_new_threads_callback): Check thread_db_use_events before
12765         enabling event reporting.  Update the thread's state if not using
12766         libthread_db events.
12767
12768 2015-01-09  Pedro Alves  <palves@redhat.com>
12769
12770         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12771         about to wait for is > 0.
12772         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12773         the kernel thread ID is -1.
12774
12775 2015-01-09  Pedro Alves  <palves@redhat.com>
12776
12777         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12778         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12779         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12780         ptrace option flags.
12781         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12782         field.
12783         * nat/linux-procfs.c: Include <dirent.h>.
12784         (linux_proc_get_int): New parameter "warn".  Handle it.
12785         (linux_proc_get_tgid): Adjust.
12786         (linux_proc_get_tracerpid): Rename to ...
12787         (linux_proc_get_tracerpid_nowarn): ... this.
12788         (linux_proc_pid_get_state): New function, factored out from
12789         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12790         and handle it.
12791         (linux_proc_pid_is_gone): New function.
12792         (linux_proc_pid_is_stopped): Adjust.
12793         (linux_proc_pid_is_zombie_maybe_warn)
12794         (linux_proc_pid_is_zombie_nowarn): New functions.
12795         (linux_proc_pid_is_zombie): Use
12796         linux_proc_pid_is_zombie_maybe_warn.
12797         (linux_proc_attach_tgid_threads): New function.
12798         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12799         (linux_proc_get_tracerpid): Rename to ...
12800         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12801         (linux_proc_pid_is_gone): New declaration.
12802         (linux_proc_pid_is_zombie): Update comment.
12803         (linux_proc_pid_is_zombie_nowarn): New declaration.
12804         (linux_proc_attach_lwp_func): New typedef.
12805         (linux_proc_attach_tgid_threads): New declaration.
12806         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12807         use nowarn functions.
12808         (linux_ptrace_attach_fail_reason_string): Move here from
12809         gdbserver/linux-low.c and rename.
12810         (ptrace_supports_feature): If the current ptrace options are not
12811         known yet, check them now, instead of asserting.
12812         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12813         Declare.
12814
12815 2015-01-09  Pedro Alves  <palves@redhat.com>
12816
12817         * linux-thread-db.c (thread_db_find_new_threads_silently)
12818         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12819         (find_new_threads_once): Print debug output on gdb_stdlog.
12820
12821 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12822             Pedro Alves  <palves@redhat.com>
12823
12824         * compile/compile.c: Include "gdb_wait.h".
12825         (do_rmdir): Check return value, and free 'zap'.
12826
12827 2015-01-08  Pedro Alves  <palves@redhat.com>
12828             Yao Qi  <yao@codesourcery.com>
12829
12830         * dwarf2loc.c (indirect_pieced_value): Don't call
12831         gdb_sign_extend.  Call extract_signed_integer instead.
12832         * utils.c (gdb_sign_extend): Remove.
12833         * utils.h (gdb_sign_extend): Remove declaration.
12834
12835 2015-01-07  Pierre Muller  <muller@sourceware.org>
12836
12837         PR symtab/17811
12838         * stabsread.c (define_symbol): Set language for C++ special symbols.
12839
12840 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12841
12842         * inflow.c (initial_gdb_ttystate): Tweak comment.
12843
12844 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12845
12846         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12847         comment documenting function.
12848
12849 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12850
12851         * terminal.h (set_initial_gdb_ttystate): Declare.
12852         * inflow.c (initial_gdb_ttystate): New static variable.
12853         (set_initial_gdb_ttystate): New setter.
12854         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12855         instead of our current terminal state.
12856         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12857
12858 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12859
12860         * guile/scm-type.c (tyscm_array_1): Add comment.
12861         * python/py-type.c (typy_array_1): Add comment.
12862
12863 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12864
12865         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12866         error if N2 is equal to N1 - 1.
12867
12868 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12869
12870         * python/py-type.c (typy_array_1): Do not raise negative-length
12871         exception if N2 is equal to N1 - 1.
12872
12873 2015-01-03  Doug Evans  <xdje42@gmail.com>
12874
12875         * c-exp.y: Whitespace cleanup.
12876         (classify_inner_name): Remove extra ;.
12877
12878 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12879
12880         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12881         offset signed.
12882
12883 2015-01-02  Doug Evans  <dje@google.com>
12884
12885         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12886
12887 2015-01-02  Doug Evans  <dje@google.com>
12888
12889         * symtab.h (struct symbol): Fix typo in comment.
12890
12891 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12892
12893         Update year range in copyright notice of all files.
12894
12895 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12896
12897         * top.c (print_gdb_version): Update copyright year to 2015.
12898
12899 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12900
12901         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12902
12903 For older changes see ChangeLog-2014.
12904 \f
12905 Local Variables:
12906 mode: change-log
12907 left-margin: 8
12908 fill-column: 74
12909 version-control: never
12910 coding: utf-8
12911 End: