Add cast in python.c
[external/binutils.git] / gdb / ChangeLog
1 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
2
3         * python/python.c (_initialize_python): Add cast.
4
5 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
6
7         * nto-tdep.c (nto_inferior_data): Add cast.
8
9 2015-10-22  Pedro Alves  <palves@redhat.com>
10
11         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
12         windows_wait and windows_resume directly instead of
13         wait_for_inferior and resume.
14
15 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
16
17         * xtensa-tdep.h (XTREG): Add casts.
18         (XTREG_END): Likewise.
19
20 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
21
22         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
23
24 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
25
26         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
27
28 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
29
30         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
31         buf to gdb_byte*.
32         (supply_32bit_reg): Add cast.
33         (mips64_fill_gregset): Likewise.
34
35 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
36
37         PR python/18073
38         * python/py-type.c (typy_get_composite): Allow returning a
39         function type.
40
41 2015-10-21  Keven Boell  <keven.boell@intel.com>
42
43         * dwarf2read.c (set_die_type): Add read of
44         DW_AT_allocated and DW_AT_associated.
45         * f-typeprint.c: New include of typeprint.h
46         (f_print_type): Add check for allocated/associated
47         status of type.
48         (f_type_print_varspec_suffix): Add check for
49         * gdbtypes.c (create_array_type_with_stride):
50         Add check for valid data location of type in
51         case allocated or associated attributes are set.
52         Length of an array should be only calculated if
53         allocated or associated is resolved as true.
54         (is_dynamic_type_internal): Add check for allocated/
55         associated.
56         (resolve_dynamic_array): Evaluate allocated/associated
57         properties.
58         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
59         <DYN_PROP_ASSOCIATED>: New enums.
60         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
61         (type_not_allocated): New function.
62         (type_not_associated): New function.
63         * valarith.c (value_subscripted_rvalue): Add check for
64         allocated/associated.
65         * valprint.c: New include of typeprint.h.
66         (valprint_check_validity): Add check for allocated/associated.
67         (value_check_printable): Add check for allocated/
68         associated.
69         * typeprint.h (val_print_not_allocated): New function.
70         (val_print_not_associated): New function.
71         * typeprint.c (val_print_not_allocated): New function.
72         (val_print_not_associated): New function.
73
74 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
75
76         * Makefile.in: Add arm.c/o.
77         * arch/arm.c: New file.
78         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
79         (MAKE_THUMB_ADDR): Likewise.
80         (UNMAKE_THUMB_ADDR): Likewise.
81         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
82         (IS_THUMB_ADDR): Move to arm.h.
83         (MAKE_THUMB_ADDR): Likewise.
84         (UNMAKE_THUMB_ADDR): Likewise.
85         * configure.tgt: Add arm.o to all ARM configs.
86
87 2015-10-21  Yao Qi  <yao.qi@linaro.org>
88
89         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
90         Remove argument exp_vCont_s.
91         * gdb.base/range-stepping.exp: Callers updated.
92         * gdb.trace/range-stepping.exp: Likewise.
93
94 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
95
96         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
97         (nto_sniff_abi_note_section): New function.
98         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
99         binary.
100
101 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
102
103         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
104         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
105         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
106         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
107         New functions.
108         (_initialize_nto_tdep): New forward declaration, new function.
109         * nto-tdep.h (struct nto_inferior_data): New struct.
110         (nto_inferior_data): New function declaration.
111
112 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
113
114         * findvar.c (address_from_register): Check REGNUM validity.
115
116 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
117
118         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
119         (init_procfs_targets): Wire new function.
120
121 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
122
123         * nto-procfs.c (sys/auxv.h): Include.
124         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
125         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
126         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
127
128 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
129
130         * nto-procfs.c (nto_procfs_path): Rename to...
131         (nodestr): ... this, and change type.
132         (nto_node): Use new variable and logic accordingly.
133         (procfs_open_1): Use new variable name. Use local buffer to construct
134         procfrs path.
135         (procfs_pidlist): Use NODESTR to construct procfs path.
136         (procfs_files_info): Use NODESTR to output meaningful text.
137         (do_attach): Construct procfs using NODESTR.
138         (procfs_create_inferior): Compare pointer to NULL.
139
140 2015-10-19  Josh Stone  <jistone@redhat.com>
141
142         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
143         return state, even when not actively catching syscalls at all.
144         (linux_handle_extended_wait): Mark syscall_state like an entry.
145         (wait_lwp): Set syscall_state ignored for other traps.
146         (linux_nat_filter_event): Likewise.
147
148 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
149
150         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
151         when handling 'E', 'T', 'S', 'X' and 'W' packets.
152         Do not set rs->waiting_for_stop_reply back to 1.
153
154 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
155
156         * nto-procfs.c (common/filestuff.h): Include.
157         (procfs_can_use_hw_breakpoint): Fix enum name.
158         (procfs_open_1): Fix compiler warning.
159         (procfs_pidlist): Make static.
160         (procfs_meminfo): Make static, fix type name, add missing argument.
161         (procfs_store_registers): Make static.
162         (procfs_thread_info): Remove unused function.
163         (_initialize_procfs): Forward declare.
164
165 2015-10-16  Yao Qi  <yao.qi@arm.com>
166
167         * MAINTAINERS: Update my email address.
168
169 2015-10-15  Yao Qi  <yao.qi@linaro.org>
170
171         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
172         Call gdbarch_breakpoint_from_pc to instruction length.
173         (aarch64_linux_remove_hw_breakpoint): Likewise.
174         * common/common-regcache.h (regcache_register_size): Declare.
175         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
176         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
177         the process is 32bit, otherwise set alignment to 4.
178         (aarch64_handle_breakpoint): Update comments.
179         * regcache.c (regcache_register_size): New function.
180
181 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
182
183         * gdbarch.sh (core_regset_section): Remove.
184         * gdbarch.h: Regenerate.
185
186 2015-10-14  Yao Qi  <yao.qi@linaro.org>
187
188         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
189         out of it.
190         (enum aarch64_memory_operand_type): New.
191
192 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
193
194         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
195
196 2015-10-13  Pedro Alves  <palves@redhat.com>
197
198         * ada-lang.c (ada_enum_name): Constify local.
199         * ada-typeprint.c (print_range_bound): Constify locals.
200         * c-varobj.c (c_describe_child): Likewise.
201         * cli/cli-setshow.c (do_set_command): Likewise.
202         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
203         * dwarf2read.c (find_file_and_directory): Likewise.
204         (anonymous_struct_prefix, dwarf2_name): Likewise.
205         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
206         * go-lang.c (unpack_mangled_go_symbol): Likewise.
207         * jv-typeprint.c (java_type_print_base): Likewise.
208         * ser-tcp.c (net_open): Likewise.
209         * symfile.c (deduce_language_from_filename): Likewise.
210         * symtab.c (gdb_mangle_name): Likewise.
211         * tui/tui-io.c (tui_redisplay_readline): Likewise.
212
213 2015-10-13  Pedro Alves  <palves@redhat.com>
214
215         * infrun.c (restore_execution_direction): New function.
216         (fetch_inferior_event): Use it instead of
217         make_cleanup_restore_integer.
218         (execution_direction): Change type to enum
219         exec_direction_kind.
220         * infrun.h (execution_direction): Likewise.
221
222 2015-10-13  Pedro Alves  <palves@redhat.com>
223
224         * ada-lang.c (ada_value_primitive_packed_val): Constify
225         locals.  Use value_contents_writeable.  Remove casts.
226
227 2015-10-13  Pedro Alves  <palves@redhat.com>
228
229         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
230         and alloca calls.
231
232 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
233
234         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
235         write_memory with write_memory_unsigned_integer.
236
237 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
238
239         * solib-dsbt.c (cmp_name): Constify arguments.
240         * solib-frv.c (cmp_name): Likewise.
241         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
242         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
243         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
244         (gdb_bfd_lookup_symbol): Likewise.
245         * solib.h (gdb_bfd_lookup_symbol): Likewise.
246         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
247
248 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
249
250         * stack.c (parse_frame_specification): Remove message parameter,
251         replace with fixed string in function body, update function
252         comment.
253         (frame_info): Remove message to parse_frame_specification.
254         (select_frame_command): Likewise.
255
256 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
257
258         * stack.c (parse_frame_specification): Delete.
259         (parse_frame_specification_1): Rename to
260         parse_frame_specification.
261         (frame_info): Use parse_frame_specification.
262         (select_frame_command): Likewise.
263         (return_command): Use select_frame and print_stack_frame rather
264         than frame_command and select_frame_command.
265         (func_command): Use get_current_frame rather than
266         parse_frame_specification.
267
268 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
269
270         * stack.c (func_command): Return early when there is no ARG
271         string.
272
273 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
274
275         * stack.c: Include safe-ctype.h not ctype.h.
276         (parse_frame_specification): Use ISSPACE not isspace.
277         (backtrace_command): Use TOLOWER not tolower.
278
279 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
280
281         * mep-tdep.c (current_me_module): Add cast.
282         (mep_gdbarch_init): Likewise.
283
284 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
285
286         * m32c-tdep.c (m32c_move_reg_t): Replace with...
287         (m32c_write_reg_t): ...this and...
288         (m32c_read_reg_t): ...this.
289         (struct m32c_reg): Update types of read and write.
290         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
291         adjust definition.
292         (m32c_banked_read): Likewise.
293         (m32c_sb_read): Likewise.
294         (m32c_part_read): Likewise.
295         (m32c_cat_read): Likewise.
296         (m32c_r3r2r1r0_read): Likewise.
297         (m32c_raw_write): Change declaration type to m32c_write_reg_t
298         and adjust definition.
299         (m32c_banked_write): Likewise.
300         (m32c_sb_write): Likewise.
301         (m32c_part_write): Likewise.
302         (m32c_cat_write): Likewise.
303         (m32c_r3r2r1r0_write): Likewise.
304
305 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
306
307         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
308
309 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
310
311         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
312         gdb_sys_no_syscall instead of -1.
313
314 2015-10-12  Yao Qi  <yao.qi@linaro.org>
315
316         * NEWS: Mention the change.
317
318 2015-10-12  Yao Qi  <yao.qi@linaro.org>
319
320         * arch/aarch64-insn.c (emit_load_store): Rename to ...
321         (aarch64_emit_load_store): ... it.  All callers updated.
322
323 2015-10-12  Yao Qi  <yao.qi@linaro.org>
324
325         * arch/aarch64-insn.c (emit_insn): Rename to ...
326         (aarch64_emit_insn): ... it.  All callers updated.
327
328 2015-10-12  Yao Qi  <yao.qi@linaro.org>
329
330         * aarch64-linux-tdep.c: Include arch-utils.h.
331         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
332         set_gdbarch_displaced_step_copy_insn,
333         set_gdbarch_displaced_step_fixup,
334         set_gdbarch_displaced_step_free_closure,
335         set_gdbarch_displaced_step_location,
336         and set_gdbarch_displaced_step_hw_singlestep.
337         * aarch64-tdep.c (struct displaced_step_closure): New.
338         (struct aarch64_displaced_step_data): New.
339         (aarch64_displaced_step_b): New function.
340         (aarch64_displaced_step_b_cond): Likewise.
341         (aarch64_register): Likewise.
342         (aarch64_displaced_step_cb): Likewise.
343         (aarch64_displaced_step_tb): Likewise.
344         (aarch64_displaced_step_adr): Likewise.
345         (aarch64_displaced_step_ldr_literal): Likewise.
346         (aarch64_displaced_step_others): Likewise.
347         (aarch64_displaced_step_copy_insn): Likewise.
348         (aarch64_displaced_step_fixup): Likewise.
349         (aarch64_displaced_step_hw_singlestep): Likewise.
350         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
351         (aarch64_displaced_step_copy_insn): Declare.
352         (aarch64_displaced_step_fixup): Declare.
353         (aarch64_displaced_step_hw_singlestep): Declare.
354         * arch/aarch64-insn.c (emit_insn): Moved from
355         gdbserver/linux-aarch64-low.c.
356         (emit_load_store): Likewise.
357         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
358         gdbserver/linux-aarch64-low.c.
359         (struct aarch64_register): Likewise.
360         (struct aarch64_memory_operand): Likewise.
361         (ENCODE): Likewise.
362         (can_encode_int32): New macro.
363         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
364         (emit_tb, emit_nop): Likewise.
365         (emit_insn): Declare.
366         (emit_load_store): Declare.
367
368 2015-10-12  Yao Qi  <yao.qi@linaro.org>
369
370         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
371         gdbserver/linux-aarch64-low.c.
372         (aarch64_relocate_instruction): Likewise.
373         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
374         (struct aarch64_insn_data): Moved from
375         gdbserver/linux-aarch64-low.c.
376         (struct aarch64_insn_visitor): Likewise.
377         (aarch64_relocate_instruction): Declare.
378
379 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
380
381         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
382         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
383         to the returned value.
384
385 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
386
387         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
388         is large enough for BIT_SIZE.  Update function comment.
389
390 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
391
392         * ada-lang.c (ada_value_primitive_packed_val): Move
393         src_len variable to local block where used.  Override
394         BIT_SIZE if bigger than size of resolved type.
395
396 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
397
398         * gdbtypes.h (is_scalar_type): Add extern declaration.
399         * gdbtypes.c (is_scalar_type): Make non-static.
400         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
401         to compute IS_SCALAR instead of doing it ourselves.
402
403 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
404
405         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
406         of case where TYPE is dynamic.
407
408 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
409
410         * ada-lang.c (ada_unpack_from_contents): New function,
411         extracted from ada_value_primitive_packed_val.
412         (ada_value_primitive_packed_val): Replace extracted out code
413         by call to ada_unpack_from_contents.
414
415 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
416
417         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
418         variable declarations.
419
420 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
421
422         * ada-lang.c (ada_value_primitive_packed_val): Change the type
423         of local variables src and unpacked to "gdb_type *" instead of
424         "unsigned char *".
425
426 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
427
428         * ada-lang.c (ada_value_primitive_packed_val): Make the name
429         of various local variables more explicit and consistent.
430         No real code change otherwise.
431
432 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
433
434         * i386-tdep.h (struct gdbarch_tdep): Change type of
435         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
436
437 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
438
439         * cris-tdep.c (struct instruction_environment): Change type of
440         byte_order to enum bfd_endian.
441
442 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
443
444         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
445         enum gdb_syscall casts.
446
447 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
448
449         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
450         * arm-tdep.c (struct stack_item): Likewise.
451         (push_stack_item): Add gdb_byte* cast.
452         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
453         (push_stack_item): Add gdb_byte* cast.
454         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
455         and add cast.
456         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
457         (push_stack_item): Add gdb_byte* cast.
458         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
459         add cast.
460         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
461         gdb_byte*.
462         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
463         gdb_byte* and remove unnecessary cast.
464         (h8300h_extract_return_value): Likewise.
465         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
466         (h8300h_store_return_value): Likewise.
467         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
468         gdb_byte* and remove unnecessary cast.
469         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
470         and add cast.
471         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
472         gdb_byte* and remove unnecessary cast.
473         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
474         valbuf.
475         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
476         (mep_pseudo_cr64_read): Likewise.
477         (mep_pseudo_csr_write): Likewise.
478         (mep_pseudo_cr32_write): Likewise.
479         (mep_pseudo_cr64_write): Likewise.
480         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
481         gdb_byte* and add cast.
482         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
483         gdb_byte* and remove unnecessary cast.
484         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
485         valbuf.
486         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
487         gdb_byte*.
488         * printcmd.c (void): Likewise.
489         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
490         gdb_byte* and add cast.
491         (infpy_write_memory): Likewise.
492         (infpy_search_memory): Likewise.
493         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
494         and add cast.
495         (regcache_raw_write_unsigned): Likewise.
496         (regcache_cooked_write_signed): Likewise.
497         (regcache_cooked_write_unsigned): Likewise.
498         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
499         gdb_byte*.
500
501 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
502
503         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
504         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
505
506 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
507
508         * stack.c (print_stack_frame):
509         * utils.c (printchar): Fix typos in commentary.
510
511 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
512
513         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
514         (PostfixExpression): Support `expr.sizeof' expressions.
515         (PrimaryExpression): Support `typeof(expr)' expressions.
516
517 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
518
519         * MAINTAINERS: Update my email address.
520
521 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
522
523         * record-btrace.c (record_btrace_resume): Fix void return.
524
525 2015-10-07  Yao Qi  <yao.qi@linaro.org>
526
527         * aarch64-tdep.c: Include opcode/aarch64.h.
528         (submask): Move it above.
529         (bit): Likewise.
530         (bits): Likewise.
531         (aarch64_software_single_step): Call aarch64_decode_insn.
532         Decode instruction by aarch64_inst instead of using
533         aarch64_decode_bcond and decode_masked_match.
534
535 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
536
537         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
538         only when the file is binary.
539
540 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
541
542         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
543         subroutine handling.
544
545 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
546
547         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
548
549 2015-09-30  Doug Evans  <dje@google.com>
550
551         * dwarf2read.c (setup_type_unit_groups): Add comment.
552
553 2015-09-30  Pedro Alves  <palves@redhat.com>
554
555         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
556         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
557         (x86_linux_create_target): Don't install
558         x86_linux_always_non_stop_p.
559
560 2015-09-30  Don Breazeal  <donb@codesourcery.com>
561
562         * remote.c (remote_parse_stop_reply): Call strprefix instead
563         of strncmp.
564
565 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
566
567         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
568         * gdbarch.h: Regenerate.
569         * i386-tdep.c (i386_gdbarch_init): Remove cast to
570         struct gdbarch_tdep_info *.
571         * mips-tdep.c (mips_gdbarch_init): Likewise.
572         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
573         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
574         * spu-multiarch.c (spu_gdbarch): Likewise.
575
576 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
577
578         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
579         record a NULL value.
580
581 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
582
583         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
584         and union arguments the same as pointer arguments when determining
585         size of argument.
586
587 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
588
589         * ft32-tdep.c: #include "opcode/ft32.h".
590         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
591         (ft32_analyze_prologue): Use FT32_* macros.
592
593 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
594
595         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
596         comment.
597
598 2015-09-28  Doug Evans  <dje@google.com>
599
600         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
601
602 2015-09-28  Doug Evans  <dje@google.com>
603
604         * common/filestuff.c (make_cleanup_close): Update comment.
605
606 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
607
608         * btrace.c (parse_xml_btrace_block): Fix cast of
609         xml_find_attribute's return value.
610         * memory-map.c (memory_map_start_memory): Likewise.
611         * solib-svr4.c (library_list_start_library): Likewise.
612         * solib-target.c (library_list_start_segment): Likewise.
613         (library_list_start_section): Likewise.
614         * tracepoint.c (traceframe_info_start_memory): Likewise.
615
616 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
617
618         * d-namespace.c (d_lookup_symbol): New arg langdef.
619         All callers updated.  Support looking up symbol as a primitive type.
620         (lookup_module_scope): New arg langdef.  All callers updated.
621         Call d_lookup_symbol directly for simple bare symbols.
622
623 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
624
625         * macrocmd.c (print_macro_callback): Add cast(s).
626         * macrotab.c (macro_bcache_str): Likewise.
627         (new_macro_definition): Likewise.
628         * main.c (captured_main): Likewise.
629         * maint.c (print_bfd_section_info): Likewise.
630         * mdebugread.c (mdebug_build_psymtabs): Likewise.
631         (basic_type): Likewise.
632         * memattr.c (mem_region_cmp): Likewise.
633         * memory-map.c (memory_map_start_memory): Likewise.
634         (memory_map_end_memory): Likewise.
635         (memory_map_start_property): Likewise.
636         (memory_map_end_property): Likewise.
637         (clear_result): Likewise.
638         * memrange.c (compare_mem_ranges): Likewise.
639         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
640         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
641         * mi/mi-console.c (mi_console_file_delete): Likewise.
642         (mi_console_file_fputs): Likewise.
643         (mi_console_raw_packet): Likewise.
644         (mi_console_file_flush): Likewise.
645         (mi_console_set_raw): Likewise.
646         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
647         (mi_new_thread): Likewise.
648         (mi_thread_exit): Likewise.
649         (mi_record_changed): Likewise.
650         (mi_inferior_added): Likewise.
651         (mi_inferior_appeared): Likewise.
652         (mi_inferior_exit): Likewise.
653         (mi_inferior_removed): Likewise.
654         (mi_interp_data): Likewise.
655         (mi_on_normal_stop): Likewise.
656         (mi_traceframe_changed): Likewise.
657         (mi_tsv_created): Likewise.
658         (mi_tsv_deleted): Likewise.
659         (mi_tsv_modified): Likewise.
660         (mi_breakpoint_created): Likewise.
661         (mi_breakpoint_deleted): Likewise.
662         (mi_breakpoint_modified): Likewise.
663         (mi_output_running_pid): Likewise.
664         (mi_inferior_count): Likewise.
665         (mi_solib_loaded): Likewise.
666         (mi_solib_unloaded): Likewise.
667         (mi_command_param_changed): Likewise.
668         (mi_memory_changed): Likewise.
669         (report_initial_inferior): Likewise.
670         (mi_ui_out): Likewise.
671         (mi_set_logging): Likewise.
672         * mi/mi-main.c (collect_cores): Likewise.
673         (print_one_inferior): Likewise.
674         (free_vector_of_ints): Likewise.
675         (free_splay_tree): Likewise.
676         (mi_execute_command): Likewise.
677         * mi/mi-out.c (mi_table_body): Likewise.
678         (mi_table_end): Likewise.
679         (mi_table_header): Likewise.
680         (mi_begin): Likewise.
681         (mi_end): Likewise.
682         (mi_field_int): Likewise.
683         (mi_field_string): Likewise.
684         (mi_field_fmt): Likewise.
685         (mi_flush): Likewise.
686         (mi_redirect): Likewise.
687         (field_separator): Likewise.
688         (mi_open): Likewise.
689         (mi_close): Likewise.
690         (mi_out_buffered): Likewise.
691         (mi_out_rewind): Likewise.
692         (mi_out_put): Likewise.
693         (mi_version): Likewise.
694         (mi_out_data_dtor): Likewise.
695         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
696         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
697         * minidebug.c (lzma_open): Likewise.
698         (lzma_pread): Likewise.
699         (lzma_close): Likewise.
700         (lzma_stat): Likewise.
701         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
702         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
703         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
704         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
705         (mips_micro_frame_cache): Likewise.
706         (mips_insn32_frame_cache): Likewise.
707         (mips_stub_frame_cache): Likewise.
708         (gdb_print_insn_mips): Likewise.
709         (value_of_mips_user_reg): Likewise.
710         (mips_gdbarch_init): Likewise.
711         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
712         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
713         (mipsnbsd_supply_gregset): Likewise.
714         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
715         (am33_collect_gregset_method): Likewise.
716         (am33_collect_fpregset_method): Likewise.
717         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
718         * moxie-tdep.c (moxie_frame_cache): Likewise.
719         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
720         (msp430_analyze_frame_prologue): Likewise.
721         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
722         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
723         (nios2_collect_gregset): Likewise.
724         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
725         (nios2_stub_frame_cache): Likewise.
726         * objc-lang.c (find_methods): Likewise.
727         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
728         (get_objfile_pspace_data): Likewise.
729         (get_objfile_bfd_data): Likewise.
730         (objfile_bfd_data_free): Likewise.
731         (add_to_objfile_sections): Likewise.
732         (do_free_objfile_cleanup): Likewise.
733         (resume_section_map_updates_cleanup): Likewise.
734         * opencl-lang.c (builtin_opencl_type): Likewise.
735         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
736         * osdata.c (osdata_start_osdata): Likewise.
737         (osdata_start_item): Likewise.
738         (osdata_start_column): Likewise.
739         (osdata_end_column): Likewise.
740         (clear_parsing_data): Likewise.
741         (osdata_free_cleanup): Likewise.
742         * parse.c (type_stack_cleanup): Likewise.
743         (exp_uses_objfile_iter): Likewise.
744         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
745         (ppc_linux_collect_gregset): Likewise.
746         (ppu2spu_prev_arch): Likewise.
747         (ppu2spu_this_id): Likewise.
748         (ppu2spu_prev_register): Likewise.
749         (ppu2spu_unwind_register): Likewise.
750         (ppu2spu_sniffer): Likewise.
751         (ppu2spu_dealloc_cache): Likewise.
752         (ppc_linux_init_abi): Likewise.
753         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
754         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
755         * progspace.c (restore_program_space): Likewise.
756         * psymtab.c (find_pc_sect_psymtab): Likewise.
757         (compare_psymbols): Likewise.
758         (psymbol_bcache_full): Likewise.
759         (allocate_psymtab): Likewise.
760         (discard_psymtabs_upto): Likewise.
761         * python/py-block.c (set_block): Likewise.
762         (del_objfile_blocks): Likewise.
763         * python/py-breakpoint.c (build_bp_list): Likewise.
764         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
765         (build_inferior_list): Likewise.
766         (py_free_inferior): Likewise.
767         * python/py-objfile.c (py_free_objfile): Likewise.
768         (objfile_to_objfile_object): Likewise.
769         * python/py-prettyprint.c (py_restore_tstate): Likewise.
770         * python/py-progspace.c (py_free_pspace): Likewise.
771         (pspace_to_pspace_object): Likewise.
772         * python/py-symbol.c (set_symbol): Likewise.
773         (del_objfile_symbols): Likewise.
774         * python/py-symtab.c (set_sal): Likewise.
775         (set_symtab): Likewise.
776         (del_objfile_symtab): Likewise.
777         (del_objfile_sal): Likewise.
778         * python/py-type.c (save_objfile_types): Likewise.
779         (set_type): Likewise.
780         * python/py-unwind.c (pyuw_prev_register): Likewise.
781         (pyuw_on_new_gdbarch): Likewise.
782         * python/py-utils.c (py_decref): Likewise.
783         (py_xdecref): Likewise.
784         (gdb_py_generic_dict): Likewise.
785         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
786         (gdbpy_clone_xmethod_worker_data): Likewise.
787         (gdbpy_get_xmethod_arg_types): Likewise.
788         (gdbpy_get_xmethod_result_type): Likewise.
789         (gdbpy_invoke_xmethod): Likewise.
790         * python/python.c (gdbpy_apply_type_printers): Likewise.
791         (gdbpy_free_type_printers): Likewise.
792         * record-btrace.c (record_btrace_disable_callback): Likewise.
793         (bfcache_hash): Likewise.
794         (bfcache_eq): Likewise.
795         (btrace_get_frame_function): Likewise.
796         (record_btrace_frame_unwind_stop_reason): Likewise.
797         (record_btrace_frame_this_id): Likewise.
798         (record_btrace_frame_prev_register): Likewise.
799         (record_btrace_frame_dealloc_cache): Likewise.
800         * record-full.c (record_full_message_wrapper): Likewise.
801         (record_full_save_cleanups): Likewise.
802         * regcache.c (regcache_descr): Likewise.
803         (do_regcache_xfree): Likewise.
804         (do_regcache_invalidate): Likewise.
805         (do_cooked_read): Likewise.
806         (regcache_transfer_regset): Likewise.
807         * reggroups.c (reggroup_add): Likewise.
808         (reggroup_next): Likewise.
809         (reggroup_prev): Likewise.
810         * remote-fileio.c (do_remote_fileio_request): Likewise.
811         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
812         (do_notif_event_xfree): Likewise.
813         * remote.c (get_remote_arch_state): Likewise.
814         (remote_pspace_data_cleanup): Likewise.
815         (get_remote_exec_file): Likewise.
816         (set_pspace_remote_exec_file): Likewise.
817         (compare_pnums): Likewise.
818         (clear_threads_listing_context): Likewise.
819         (remote_newthread_step): Likewise.
820         (start_thread): Likewise.
821         (end_thread): Likewise.
822         (remove_child_of_pending_fork): Likewise.
823         (remove_stop_reply_for_inferior): Likewise.
824         (remove_stop_reply_of_remote_state): Likewise.
825         (remote_notif_remove_once_on_match): Likewise.
826         (stop_reply_match_ptid_and_ws): Likewise.
827         (kill_child_of_pending_fork): Likewise.
828         (register_remote_g_packet_guess): Likewise.
829         (remote_read_description_p): Likewise.
830         (remote_read_description): Likewise.
831         (free_actions_list_cleanup_wrapper): Likewise.
832         (remote_async_serial_handler): Likewise.
833         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
834         (rl78_analyze_frame_prologue): Likewise.
835         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
836         (ppc_supply_fpregset): Likewise.
837         (ppc_supply_vsxregset): Likewise.
838         (ppc_supply_vrregset): Likewise.
839         (ppc_collect_gregset): Likewise.
840         (ppc_collect_fpregset): Likewise.
841         (ppc_collect_vsxregset): Likewise.
842         (ppc_collect_vrregset): Likewise.
843         (e500_move_ev_register): Likewise.
844         (do_regcache_raw_write): Likewise.
845         (rs6000_frame_cache): Likewise.
846         (rs6000_epilogue_frame_cache): Likewise.
847         (rs6000_gdbarch_init): Likewise.
848         * rx-tdep.c (rx_get_opcode_byte): Likewise.
849         (rx_analyze_frame_prologue): Likewise.
850         (rx_frame_type): Likewise.
851         (rx_frame_sniffer_common): Likewise.
852         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
853         (s390_frame_unwind_cache): Likewise.
854         (s390_stub_frame_unwind_cache): Likewise.
855         (s390_sigtramp_frame_unwind_cache): Likewise.
856         * score-tdep.c (score_make_prologue_cache): Likewise.
857         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
858         (sentinel_frame_prev_arch): Likewise.
859         * ser-base.c (fd_event): Likewise.
860         (push_event): Likewise.
861         (ser_base_write): Likewise.
862         * ser-pipe.c (pipe_close): Likewise.
863         * serial.c (serial_write): Likewise.
864         * sh-tdep.c (sh_frame_cache): Likewise.
865         (sh_stub_this_id): Likewise.
866         * sh64-tdep.c (sh64_frame_cache): Likewise.
867         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
868         (library_list_start_library): Likewise.
869         (library_list_start_list): Likewise.
870         (solib_aix_free_library_list): Likewise.
871         * solib-darwin.c (get_darwin_info): Likewise.
872         * solib-dsbt.c (get_dsbt_info): Likewise.
873         * solib-spu.c (append_ocl_sos): Likewise.
874         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
875         (get_svr4_info): Likewise.
876         (library_list_start_library): Likewise.
877         (svr4_library_list_start_list): Likewise.
878         (hash_probe_and_action): Likewise.
879         (equal_probe_and_action): Likewise.
880         (svr4_update_solib_event_breakpoint): Likewise.
881         (set_solib_svr4_fetch_link_map_offsets): Likewise.
882         (svr4_fetch_link_map_offsets): Likewise.
883         (svr4_have_link_map_offsets): Likewise.
884         * solib-target.c (library_list_start_segment): Likewise.
885         (library_list_start_section): Likewise.
886         (library_list_start_library): Likewise.
887         (library_list_end_library): Likewise.
888         (library_list_start_list): Likewise.
889         (solib_target_free_library_list): Likewise.
890         * solib.c (solib_ops): Likewise.
891         (set_solib_ops): Likewise.
892         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
893         * sparc-tdep.c (sparc_frame_cache): Likewise.
894         (sparc32_frame_cache): Likewise.
895         (sparc32_supply_gregset): Likewise.
896         (sparc32_collect_gregset): Likewise.
897         (sparc32_supply_fpregset): Likewise.
898         (sparc32_collect_fpregset): Likewise.
899         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
900         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
901         (sparc64_collect_gregset): Likewise.
902         (sparc64_supply_fpregset): Likewise.
903         (sparc64_collect_fpregset): Likewise.
904         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
905         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
906         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
907         (sparc64obsd_trapframe_cache): Likewise.
908         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
909         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
910         * spu-multiarch.c (spu_gdbarch): Likewise.
911         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
912         (spu2ppu_prev_arch): Likewise.
913         (spu2ppu_this_id): Likewise.
914         (spu2ppu_prev_register): Likewise.
915         (spu2ppu_dealloc_cache): Likewise.
916         (spu_dis_asm_print_address): Likewise.
917         (gdb_print_insn_spu): Likewise.
918         (spu_get_overlay_table): Likewise.
919         * stabsread.c (rs6000_builtin_type): Likewise.
920         * stack.c (do_print_variable_and_value): Likewise.
921         * stap-probe.c (get_stap_base_address_1): Likewise.
922         * symfile-debug.c (debug_qf_has_symbols): Likewise.
923         (debug_qf_find_last_source_symtab): Likewise.
924         (debug_qf_forget_cached_source_info): Likewise.
925         (debug_qf_map_symtabs_matching_filename): Likewise.
926         (debug_qf_lookup_symbol): Likewise.
927         (debug_qf_print_stats): Likewise.
928         (debug_qf_dump): Likewise.
929         (debug_qf_relocate): Likewise.
930         (debug_qf_expand_symtabs_for_function): Likewise.
931         (debug_qf_expand_all_symtabs): Likewise.
932         (debug_qf_expand_symtabs_with_fullname): Likewise.
933         (debug_qf_map_matching_symbols): Likewise.
934         (debug_qf_expand_symtabs_matching): Likewise.
935         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
936         (debug_qf_map_symbol_filenames): Likewise.
937         (debug_sym_get_probes): Likewise.
938         (debug_sym_new_init): Likewise.
939         (debug_sym_init): Likewise.
940         (debug_sym_read): Likewise.
941         (debug_sym_read_psymbols): Likewise.
942         (debug_sym_finish): Likewise.
943         (debug_sym_offsets): Likewise.
944         (debug_sym_read_linetable): Likewise.
945         (debug_sym_relocate): Likewise.
946         (uninstall_symfile_debug_logging): Likewise.
947         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
948         * symfile.c (place_section): Likewise.
949         (add_section_size_callback): Likewise.
950         (load_progress): Likewise.
951         (load_section_callback): Likewise.
952         (clear_memory_write_data): Likewise.
953         (allocate_symtab): Likewise.
954         * symmisc.c (maintenance_expand_file_matcher): Likewise.
955         * symtab.c (lookup_symtab_callback): Likewise.
956         (hash_demangled_name_entry): Likewise.
957         (eq_demangled_name_entry): Likewise.
958         (get_symbol_cache): Likewise.
959         (symbol_cache_cleanup): Likewise.
960         (set_symbol_cache_size): Likewise.
961         (symbol_cache_flush): Likewise.
962         (maintenance_print_symbol_cache): Likewise.
963         (maintenance_print_symbol_cache_statistics): Likewise.
964         (delete_filename_seen_cache): Likewise.
965         (output_partial_symbol_filename): Likewise.
966         (search_symbols_file_matches): Likewise.
967         (search_symbols_name_matches): Likewise.
968         (do_free_completion_list): Likewise.
969         (maybe_add_partial_symtab_filename): Likewise.
970         (get_main_info): Likewise.
971         (main_info_cleanup): Likewise.
972         * target-dcache.c (target_dcache_cleanup): Likewise.
973         (target_dcache_init_p): Likewise.
974         (target_dcache_invalidate): Likewise.
975         (target_dcache_get): Likewise.
976         (target_dcache_get_or_init): Likewise.
977         * target-descriptions.c (target_find_description): Likewise.
978         (tdesc_find_type): Likewise.
979         (tdesc_data_cleanup): Likewise.
980         (tdesc_find_arch_register): Likewise.
981         (tdesc_register_name): Likewise.
982         (tdesc_register_type): Likewise.
983         (tdesc_register_reggroup_p): Likewise.
984         (set_tdesc_pseudo_register_name): Likewise.
985         (set_tdesc_pseudo_register_type): Likewise.
986         (set_tdesc_pseudo_register_reggroup_p): Likewise.
987         (tdesc_use_registers): Likewise.
988         (free_target_description): Likewise.
989         * target-memory.c (compare_block_starting_address): Likewise.
990         (cleanup_request_data): Likewise.
991         (cleanup_write_requests_vector): Likewise.
992         * target.c (open_target): Likewise.
993         (cleanup_restore_target_terminal): Likewise.
994         (free_memory_read_result_vector): Likewise.
995         * thread.c (disable_thread_stack_temporaries): Likewise.
996         (finish_thread_state_cleanup): Likewise.
997         (do_restore_current_thread_cleanup): Likewise.
998         (restore_current_thread_cleanup_dtor): Likewise.
999         (set_thread_refcount): Likewise.
1000         (tp_array_compar): Likewise.
1001         (do_captured_thread_select): Likewise.
1002         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1003         (tic6x_stub_this_id): Likewise.
1004         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1005         * top.c (do_restore_instream_cleanup): Likewise.
1006         (gdb_readline_wrapper_cleanup): Likewise.
1007         (kill_or_detach): Likewise.
1008         (print_inferior_quit_action): Likewise.
1009         * tracefile-tfile.c (match_blocktype): Likewise.
1010         (build_traceframe_info): Likewise.
1011         * tracefile.c (trace_file_writer_xfree): Likewise.
1012         * tracepoint.c (memrange_cmp): Likewise.
1013         (do_collect_symbol): Likewise.
1014         (do_clear_collection_list): Likewise.
1015         (do_restore_current_traceframe_cleanup): Likewise.
1016         (restore_current_traceframe_cleanup_dtor): Likewise.
1017         (free_current_marker): Likewise.
1018         (traceframe_info_start_memory): Likewise.
1019         (traceframe_info_start_tvar): Likewise.
1020         (free_result): Likewise.
1021         * tramp-frame.c (tramp_frame_cache): Likewise.
1022         * tui/tui-file.c (tui_file_delete): Likewise.
1023         (tui_fileopen): Likewise.
1024         (tui_sfileopen): Likewise.
1025         (tui_file_isatty): Likewise.
1026         (tui_file_rewind): Likewise.
1027         (tui_file_put): Likewise.
1028         (tui_file_fputs): Likewise.
1029         (tui_file_get_strbuf): Likewise.
1030         (tui_file_adjust_strbuf): Likewise.
1031         (tui_file_flush): Likewise.
1032         * tui/tui-layout.c (make_command_window): Likewise.
1033         (make_data_window): Likewise.
1034         (show_source_disasm_command): Likewise.
1035         (show_data): Likewise.
1036         (make_source_or_disasm_window): Likewise.
1037         (show_source_or_disasm_and_command): Likewise.
1038         * tui/tui-out.c (tui_field_int): Likewise.
1039         (tui_field_string): Likewise.
1040         (tui_field_fmt): Likewise.
1041         (tui_text): Likewise.
1042         * typeprint.c (hash_typedef_field): Likewise.
1043         (eq_typedef_field): Likewise.
1044         (do_free_typedef_hash): Likewise.
1045         (copy_typedef_hash_element): Likewise.
1046         (do_free_global_table): Likewise.
1047         (find_global_typedef): Likewise.
1048         (find_typedef_in_hash): Likewise.
1049         * ui-file.c (ui_file_write_for_put): Likewise.
1050         (do_ui_file_xstrdup): Likewise.
1051         (mem_file_delete): Likewise.
1052         (mem_file_rewind): Likewise.
1053         (mem_file_put): Likewise.
1054         (mem_file_write): Likewise.
1055         (stdio_file_delete): Likewise.
1056         (stdio_file_flush): Likewise.
1057         (stdio_file_read): Likewise.
1058         (stdio_file_write): Likewise.
1059         (stdio_file_write_async_safe): Likewise.
1060         (stdio_file_fputs): Likewise.
1061         (stdio_file_isatty): Likewise.
1062         (stdio_file_fseek): Likewise.
1063         (tee_file_delete): Likewise.
1064         (tee_file_flush): Likewise.
1065         (tee_file_write): Likewise.
1066         (tee_file_fputs): Likewise.
1067         (tee_file_isatty): Likewise.
1068         * ui-out.c (do_cleanup_table_end): Likewise.
1069         (do_cleanup_end): Likewise.
1070         * user-regs.c (user_reg_add): Likewise.
1071         (user_reg_map_name_to_regnum): Likewise.
1072         (usernum_to_user_reg): Likewise.
1073         (maintenance_print_user_registers): Likewise.
1074         * utils.c (do_bfd_close_cleanup): Likewise.
1075         (do_fclose_cleanup): Likewise.
1076         (do_obstack_free): Likewise.
1077         (do_ui_file_delete): Likewise.
1078         (do_ui_out_redirect_pop): Likewise.
1079         (do_free_section_addr_info): Likewise.
1080         (restore_integer): Likewise.
1081         (do_unpush_target): Likewise.
1082         (do_htab_delete_cleanup): Likewise.
1083         (do_restore_ui_file): Likewise.
1084         (do_value_free): Likewise.
1085         (do_free_so): Likewise.
1086         (free_current_contents): Likewise.
1087         (do_regfree_cleanup): Likewise.
1088         (core_addr_hash): Likewise.
1089         (core_addr_eq): Likewise.
1090         (do_free_char_ptr_vec): Likewise.
1091         * v850-tdep.c (v850_frame_cache): Likewise.
1092         * varobj.c (do_free_variable_cleanup): Likewise.
1093         * vax-tdep.c (vax_supply_gregset): Likewise.
1094         (vax_frame_cache): Likewise.
1095         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1096         * xml-support.c (gdb_xml_body_text): Likewise.
1097         (gdb_xml_values_cleanup): Likewise.
1098         (gdb_xml_start_element): Likewise.
1099         (gdb_xml_start_element_wrapper): Likewise.
1100         (gdb_xml_end_element): Likewise.
1101         (gdb_xml_end_element_wrapper): Likewise.
1102         (gdb_xml_cleanup): Likewise.
1103         (gdb_xml_fetch_external_entity): Likewise.
1104         (gdb_xml_parse_attr_enum): Likewise.
1105         (xinclude_start_include): Likewise.
1106         (xinclude_end_include): Likewise.
1107         (xml_xinclude_default): Likewise.
1108         (xml_xinclude_start_doctype): Likewise.
1109         (xml_xinclude_end_doctype): Likewise.
1110         (xml_xinclude_cleanup): Likewise.
1111         (xml_fetch_content_from_file): Likewise.
1112         * xml-syscall.c (free_syscalls_info): Likewise.
1113         (syscall_start_syscall): Likewise.
1114         * xml-tdesc.c (tdesc_end_arch): Likewise.
1115         (tdesc_end_osabi): Likewise.
1116         (tdesc_end_compatible): Likewise.
1117         (tdesc_start_target): Likewise.
1118         (tdesc_start_feature): Likewise.
1119         (tdesc_start_reg): Likewise.
1120         (tdesc_start_union): Likewise.
1121         (tdesc_start_struct): Likewise.
1122         (tdesc_start_flags): Likewise.
1123         (tdesc_start_field): Likewise.
1124         (tdesc_start_vector): Likewise.
1125         (fetch_available_features_from_target): Likewise.
1126         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1127         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1128         (xtensa_frame_cache): Likewise.
1129         (xtensa_frame_prev_register): Likewise.
1130         (xtensa_extract_return_value): Likewise.
1131
1132 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1133
1134         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1135         (aarch64_make_stub_cache): Likewise.
1136         (value_of_aarch64_user_reg): Likewise.
1137         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1138         (get_ada_inferior_data): Likewise.
1139         (get_ada_pspace_data): Likewise.
1140         (ada_pspace_data_cleanup): Likewise.
1141         (ada_complete_symbol_matcher): Likewise.
1142         (ada_exc_search_name_matches): Likewise.
1143         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1144         (get_ada_tasks_inferior_data): Likewise.
1145         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1146         (splay_obstack_alloc): Likewise.
1147         (splay_obstack_free): Likewise.
1148         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1149         (alpha_linux_collect_gregset): Likewise.
1150         (alpha_linux_supply_fpregset): Likewise.
1151         (alpha_linux_collect_fpregset): Likewise.
1152         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1153         * alpha-tdep.c (alpha_lds): Likewise.
1154         (alpha_sts): Likewise.
1155         (alpha_sigtramp_frame_unwind_cache): Likewise.
1156         (alpha_heuristic_frame_unwind_cache): Likewise.
1157         (alpha_supply_int_regs): Likewise.
1158         (alpha_fill_int_regs): Likewise.
1159         (alpha_supply_fp_regs): Likewise.
1160         (alpha_fill_fp_regs): Likewise.
1161         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1162         (alphanbsd_aout_supply_gregset): Likewise.
1163         (alphanbsd_supply_gregset): Likewise.
1164         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1165         (amd64_x32_linux_init_abi): Likewise.
1166         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1167         (amd64_collect_native_gregset): Likewise.
1168         * amd64-tdep.c (amd64_frame_cache): Likewise.
1169         (amd64_sigtramp_frame_cache): Likewise.
1170         (amd64_epilogue_frame_cache): Likewise.
1171         (amd64_supply_fxsave): Likewise.
1172         (amd64_supply_xsave): Likewise.
1173         (amd64_collect_fxsave): Likewise.
1174         (amd64_collect_xsave): Likewise.
1175         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1176         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1177         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1178         (arm_linux_collect_gregset): Likewise.
1179         (arm_linux_supply_nwfpe): Likewise.
1180         (arm_linux_collect_nwfpe): Likewise.
1181         (arm_linux_supply_vfp): Likewise.
1182         (arm_linux_collect_vfp): Likewise.
1183         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1184         (arm_prologue_unwind_stop_reason): Likewise.
1185         (arm_prologue_this_id): Likewise.
1186         (arm_prologue_prev_register): Likewise.
1187         (arm_exidx_data_free): Likewise.
1188         (arm_find_exidx_entry): Likewise.
1189         (arm_stub_this_id): Likewise.
1190         (arm_m_exception_this_id): Likewise.
1191         (arm_m_exception_prev_register): Likewise.
1192         (arm_normal_frame_base): Likewise.
1193         (gdb_print_insn_arm): Likewise.
1194         (arm_objfile_data_free): Likewise.
1195         (arm_record_special_symbol): Likewise.
1196         (value_of_arm_user_reg): Likewise.
1197         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1198         (armbsd_supply_gregset): Likewise.
1199         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1200         (get_auto_load_pspace_data): Likewise.
1201         (hash_loaded_script_entry): Likewise.
1202         (eq_loaded_script_entry): Likewise.
1203         (clear_section_scripts): Likewise.
1204         (collect_matching_scripts): Likewise.
1205         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1206         (get_auxv_inferior_data): Likewise.
1207         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1208         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1209         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1210         (target_bfd_xclose): Likewise.
1211         (target_bfd_get_section_table): Likewise.
1212         * bfin-tdep.c (bfin_frame_cache): Likewise.
1213         * block.c (find_block_in_blockvector): Likewise.
1214         (call_site_for_pc): Likewise.
1215         (block_find_non_opaque_type_preferred): Likewise.
1216         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1217         (signal_catchpoint_remove_location): Likewise.
1218         (signal_catchpoint_breakpoint_hit): Likewise.
1219         (signal_catchpoint_print_one): Likewise.
1220         (signal_catchpoint_print_mention): Likewise.
1221         (signal_catchpoint_print_recreate): Likewise.
1222         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1223         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1224         (bp_location_compare_addrs): Likewise.
1225         (get_first_locp_gte_addr): Likewise.
1226         (check_tracepoint_command): Likewise.
1227         (do_map_commands_command): Likewise.
1228         (get_breakpoint_objfile_data): Likewise.
1229         (free_breakpoint_probes): Likewise.
1230         (do_captured_breakpoint_query): Likewise.
1231         (compare_breakpoints): Likewise.
1232         (bp_location_compare): Likewise.
1233         (bpstat_remove_breakpoint_callback): Likewise.
1234         (do_delete_breakpoint_cleanup): Likewise.
1235         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1236         (bsd_uthread_set_collect_uthread): Likewise.
1237         (bsd_uthread_activate): Likewise.
1238         (bsd_uthread_fetch_registers): Likewise.
1239         (bsd_uthread_store_registers): Likewise.
1240         * btrace.c (check_xml_btrace_version): Likewise.
1241         (parse_xml_btrace_block): Likewise.
1242         (parse_xml_btrace_pt_config_cpu): Likewise.
1243         (parse_xml_btrace_pt_raw): Likewise.
1244         (parse_xml_btrace_pt): Likewise.
1245         (parse_xml_btrace_conf_bts): Likewise.
1246         (parse_xml_btrace_conf_pt): Likewise.
1247         (do_btrace_data_cleanup): Likewise.
1248         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1249         * charset.c (cleanup_iconv): Likewise.
1250         (do_cleanup_iterator): Likewise.
1251         * cli-out.c (cli_uiout_dtor): Likewise.
1252         (cli_table_begin): Likewise.
1253         (cli_table_body): Likewise.
1254         (cli_table_end): Likewise.
1255         (cli_table_header): Likewise.
1256         (cli_begin): Likewise.
1257         (cli_end): Likewise.
1258         (cli_field_int): Likewise.
1259         (cli_field_skip): Likewise.
1260         (cli_field_string): Likewise.
1261         (cli_field_fmt): Likewise.
1262         (cli_spaces): Likewise.
1263         (cli_text): Likewise.
1264         (cli_message): Likewise.
1265         (cli_wrap_hint): Likewise.
1266         (cli_flush): Likewise.
1267         (cli_redirect): Likewise.
1268         (out_field_fmt): Likewise.
1269         (field_separator): Likewise.
1270         (cli_out_set_stream): Likewise.
1271         * cli/cli-cmds.c (compare_symtabs): Likewise.
1272         * cli/cli-dump.c (call_dump_func): Likewise.
1273         (restore_section_callback): Likewise.
1274         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1275         (do_restore_user_call_depth): Likewise.
1276         (do_free_command_lines_cleanup): Likewise.
1277         * coff-pe-read.c (get_section_vmas): Likewise.
1278         (pe_as16): Likewise.
1279         (pe_as32): Likewise.
1280         * coffread.c (coff_symfile_read): Likewise.
1281         * common/agent.c (agent_look_up_symbols): Likewise.
1282         * common/filestuff.c (do_close_cleanup): Likewise.
1283         * common/format.c (free_format_pieces_cleanup): Likewise.
1284         * common/vec.c (vec_o_reserve): Likewise.
1285         * compile/compile-c-support.c (print_one_macro): Likewise.
1286         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1287         (eq_symbol_error): Likewise.
1288         (del_symbol_error): Likewise.
1289         (error_symbol_once): Likewise.
1290         (gcc_convert_symbol): Likewise.
1291         (gcc_symbol_address): Likewise.
1292         (hash_symname): Likewise.
1293         (eq_symname): Likewise.
1294         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1295         (eq_type_map_instance): Likewise.
1296         (insert_type): Likewise.
1297         (convert_type): Likewise.
1298         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1299         (setup_sections): Likewise.
1300         (link_hash_table_free): Likewise.
1301         (copy_sections): Likewise.
1302         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1303         * compile/compile.c (compile_print_value): Likewise.
1304         (do_rmdir): Likewise.
1305         (cleanup_compile_instance): Likewise.
1306         (cleanup_unlink_file): Likewise.
1307         * completer.c (free_completion_tracker): Likewise.
1308         * corelow.c (add_to_spuid_list): Likewise.
1309         * cp-namespace.c (reset_directive_searched): Likewise.
1310         * cp-support.c (reset_directive_searched): Likewise.
1311         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1312         (cris_frame_unwind_cache): Likewise.
1313         * d-lang.c (builtin_d_type): Likewise.
1314         * d-namespace.c (reset_directive_searched): Likewise.
1315         * dbxread.c (dbx_free_symfile_info): Likewise.
1316         (do_free_bincl_list_cleanup): Likewise.
1317         * disasm.c (hash_dis_line_entry): Likewise.
1318         (eq_dis_line_entry): Likewise.
1319         (dis_asm_print_address): Likewise.
1320         (fprintf_disasm): Likewise.
1321         (do_ui_file_delete): Likewise.
1322         * doublest.c (convert_floatformat_to_doublest): Likewise.
1323         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1324         (dummy_frame_prev_register): Likewise.
1325         (dummy_frame_this_id): Likewise.
1326         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1327         (cache_eq): Likewise.
1328         (cache_find): Likewise.
1329         (tailcall_frame_this_id): Likewise.
1330         (dwarf2_tailcall_prev_register_first): Likewise.
1331         (tailcall_frame_prev_register): Likewise.
1332         (tailcall_frame_dealloc_cache): Likewise.
1333         (tailcall_frame_prev_arch): Likewise.
1334         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1335         (dwarf2_frame_set_init_reg): Likewise.
1336         (dwarf2_frame_init_reg): Likewise.
1337         (dwarf2_frame_set_signal_frame_p): Likewise.
1338         (dwarf2_frame_signal_frame_p): Likewise.
1339         (dwarf2_frame_set_adjust_regnum): Likewise.
1340         (dwarf2_frame_adjust_regnum): Likewise.
1341         (clear_pointer_cleanup): Likewise.
1342         (dwarf2_frame_cache): Likewise.
1343         (find_cie): Likewise.
1344         (dwarf2_frame_find_fde): Likewise.
1345         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1346         (free_dwarf_expr_context_cleanup): Likewise.
1347         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1348         (locexpr_get_frame_base): Likewise.
1349         (loclist_find_frame_base_location): Likewise.
1350         (loclist_get_frame_base): Likewise.
1351         (dwarf_expr_dwarf_call): Likewise.
1352         (dwarf_expr_get_base_type): Likewise.
1353         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1354         (dwarf_expr_get_obj_addr): Likewise.
1355         (entry_data_value_coerce_ref): Likewise.
1356         (entry_data_value_copy_closure): Likewise.
1357         (entry_data_value_free_closure): Likewise.
1358         (get_frame_address_in_block_wrapper): Likewise.
1359         (dwarf2_evaluate_property): Likewise.
1360         (dwarf2_compile_property_to_c): Likewise.
1361         (needs_frame_read_addr_from_reg): Likewise.
1362         (needs_frame_get_reg_value): Likewise.
1363         (needs_frame_frame_base): Likewise.
1364         (needs_frame_frame_cfa): Likewise.
1365         (needs_frame_tls_address): Likewise.
1366         (needs_frame_dwarf_call): Likewise.
1367         (needs_dwarf_reg_entry_value): Likewise.
1368         (get_ax_pc): Likewise.
1369         (locexpr_read_variable): Likewise.
1370         (locexpr_read_variable_at_entry): Likewise.
1371         (locexpr_read_needs_frame): Likewise.
1372         (locexpr_describe_location): Likewise.
1373         (locexpr_tracepoint_var_ref): Likewise.
1374         (locexpr_generate_c_location): Likewise.
1375         (loclist_read_variable): Likewise.
1376         (loclist_read_variable_at_entry): Likewise.
1377         (loclist_describe_location): Likewise.
1378         (loclist_tracepoint_var_ref): Likewise.
1379         (loclist_generate_c_location): Likewise.
1380         * dwarf2read.c (line_header_hash_voidp): Likewise.
1381         (line_header_eq_voidp): Likewise.
1382         (dwarf2_has_info): Likewise.
1383         (dwarf2_get_section_info): Likewise.
1384         (locate_dwz_sections): Likewise.
1385         (hash_file_name_entry): Likewise.
1386         (eq_file_name_entry): Likewise.
1387         (delete_file_name_entry): Likewise.
1388         (dw2_setup): Likewise.
1389         (dw2_get_file_names_reader): Likewise.
1390         (dw2_find_pc_sect_compunit_symtab): Likewise.
1391         (hash_signatured_type): Likewise.
1392         (eq_signatured_type): Likewise.
1393         (add_signatured_type_cu_to_table): Likewise.
1394         (create_debug_types_hash_table): Likewise.
1395         (lookup_dwo_signatured_type): Likewise.
1396         (lookup_dwp_signatured_type): Likewise.
1397         (lookup_signatured_type): Likewise.
1398         (hash_type_unit_group): Likewise.
1399         (eq_type_unit_group): Likewise.
1400         (get_type_unit_group): Likewise.
1401         (process_psymtab_comp_unit_reader): Likewise.
1402         (sort_tu_by_abbrev_offset): Likewise.
1403         (process_skeletonless_type_unit): Likewise.
1404         (psymtabs_addrmap_cleanup): Likewise.
1405         (dwarf2_read_symtab): Likewise.
1406         (psymtab_to_symtab_1): Likewise.
1407         (die_hash): Likewise.
1408         (die_eq): Likewise.
1409         (load_full_comp_unit_reader): Likewise.
1410         (reset_die_in_process): Likewise.
1411         (free_cu_line_header): Likewise.
1412         (handle_DW_AT_stmt_list): Likewise.
1413         (hash_dwo_file): Likewise.
1414         (eq_dwo_file): Likewise.
1415         (hash_dwo_unit): Likewise.
1416         (eq_dwo_unit): Likewise.
1417         (create_dwo_cu_reader): Likewise.
1418         (create_dwo_unit_in_dwp_v1): Likewise.
1419         (create_dwo_unit_in_dwp_v2): Likewise.
1420         (lookup_dwo_unit_in_dwp): Likewise.
1421         (dwarf2_locate_dwo_sections): Likewise.
1422         (dwarf2_locate_common_dwp_sections): Likewise.
1423         (dwarf2_locate_v2_dwp_sections): Likewise.
1424         (hash_dwp_loaded_cutus): Likewise.
1425         (eq_dwp_loaded_cutus): Likewise.
1426         (lookup_dwo_cutu): Likewise.
1427         (abbrev_table_free_cleanup): Likewise.
1428         (dwarf2_free_abbrev_table): Likewise.
1429         (find_partial_die_in_comp_unit): Likewise.
1430         (free_line_header_voidp): Likewise.
1431         (follow_die_offset): Likewise.
1432         (follow_die_sig_1): Likewise.
1433         (free_heap_comp_unit): Likewise.
1434         (free_stack_comp_unit): Likewise.
1435         (dwarf2_free_objfile): Likewise.
1436         (per_cu_offset_and_type_hash): Likewise.
1437         (per_cu_offset_and_type_eq): Likewise.
1438         (get_die_type_at_offset): Likewise.
1439         (partial_die_hash): Likewise.
1440         (partial_die_eq): Likewise.
1441         (dwarf2_per_objfile_free): Likewise.
1442         (hash_strtab_entry): Likewise.
1443         (eq_strtab_entry): Likewise.
1444         (add_string): Likewise.
1445         (hash_symtab_entry): Likewise.
1446         (eq_symtab_entry): Likewise.
1447         (delete_symtab_entry): Likewise.
1448         (cleanup_mapped_symtab): Likewise.
1449         (add_indices_to_cpool): Likewise.
1450         (hash_psymtab_cu_index): Likewise.
1451         (eq_psymtab_cu_index): Likewise.
1452         (add_address_entry_worker): Likewise.
1453         (unlink_if_set): Likewise.
1454         (write_one_signatured_type): Likewise.
1455         (save_gdb_index_command): Likewise.
1456         * elfread.c (elf_symtab_read): Likewise.
1457         (elf_gnu_ifunc_cache_hash): Likewise.
1458         (elf_gnu_ifunc_cache_eq): Likewise.
1459         (elf_gnu_ifunc_record_cache): Likewise.
1460         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1461         (elf_get_probes): Likewise.
1462         (probe_key_free): Likewise.
1463         * f-lang.c (builtin_f_type): Likewise.
1464         * frame-base.c (frame_base_append_sniffer): Likewise.
1465         (frame_base_set_default): Likewise.
1466         (frame_base_find_by_frame): Likewise.
1467         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1468         (frame_unwind_append_unwinder): Likewise.
1469         (frame_unwind_find_by_frame): Likewise.
1470         * frame.c (frame_addr_hash): Likewise.
1471         (frame_addr_hash_eq): Likewise.
1472         (frame_stash_find): Likewise.
1473         (do_frame_register_read): Likewise.
1474         (unwind_to_current_frame): Likewise.
1475         (frame_cleanup_after_sniffer): Likewise.
1476         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1477         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1478         * ft32-tdep.c (ft32_frame_cache): Likewise.
1479         * gcore.c (do_bfd_delete_cleanup): Likewise.
1480         (gcore_create_callback): Likewise.
1481         * gdb_bfd.c (hash_bfd): Likewise.
1482         (eq_bfd): Likewise.
1483         (gdb_bfd_open): Likewise.
1484         (free_one_bfd_section): Likewise.
1485         (gdb_bfd_ref): Likewise.
1486         (gdb_bfd_unref): Likewise.
1487         (get_section_descriptor): Likewise.
1488         (gdb_bfd_map_section): Likewise.
1489         (gdb_bfd_crc): Likewise.
1490         (gdb_bfd_mark_parent): Likewise.
1491         (gdb_bfd_record_inclusion): Likewise.
1492         (gdb_bfd_requires_relocations): Likewise.
1493         (print_one_bfd): Likewise.
1494         * gdbtypes.c (type_pair_hash): Likewise.
1495         (type_pair_eq): Likewise.
1496         (builtin_type): Likewise.
1497         (objfile_type): Likewise.
1498         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1499         (vtable_address_point_offset): Likewise.
1500         (gnuv3_get_vtable): Likewise.
1501         (hash_value_and_voffset): Likewise.
1502         (eq_value_and_voffset): Likewise.
1503         (compare_value_and_voffset): Likewise.
1504         (compute_vtable_size): Likewise.
1505         (gnuv3_get_typeid_type): Likewise.
1506         * go-lang.c (builtin_go_type): Likewise.
1507         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1508         (bkscm_eq_block_smob): Likewise.
1509         (bkscm_objfile_block_map): Likewise.
1510         (bkscm_del_objfile_blocks): Likewise.
1511         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1512         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1513         (gdbscm_disasm_print_address): Likewise.
1514         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1515         (frscm_eq_frame_smob): Likewise.
1516         (frscm_inferior_frame_map): Likewise.
1517         (frscm_del_inferior_frames): Likewise.
1518         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1519         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1520         (ofscm_objfile_smob_from_objfile): Likewise.
1521         * guile/scm-ports.c (ioscm_write): Likewise.
1522         (ioscm_file_port_delete): Likewise.
1523         (ioscm_file_port_rewind): Likewise.
1524         (ioscm_file_port_put): Likewise.
1525         (ioscm_file_port_write): Likewise.
1526         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1527         (psscm_pspace_smob_from_pspace): Likewise.
1528         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1529         (scscm_recording_unwind_handler): Likewise.
1530         (gdbscm_with_catch): Likewise.
1531         (scscm_call_0_body): Likewise.
1532         (scscm_call_1_body): Likewise.
1533         (scscm_call_2_body): Likewise.
1534         (scscm_call_3_body): Likewise.
1535         (scscm_call_4_body): Likewise.
1536         (scscm_apply_1_body): Likewise.
1537         (scscm_eval_scheme_string): Likewise.
1538         (gdbscm_safe_eval_string): Likewise.
1539         (scscm_source_scheme_script): Likewise.
1540         (gdbscm_safe_source_script): Likewise.
1541         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1542         (gdbscm_call_scm_from_stringn): Likewise.
1543         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1544         (syscm_eq_symbol_smob): Likewise.
1545         (syscm_get_symbol_map): Likewise.
1546         (syscm_del_objfile_symbols): Likewise.
1547         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1548         (stscm_eq_symtab_smob): Likewise.
1549         (stscm_objfile_symtab_map): Likewise.
1550         (stscm_del_objfile_symtabs): Likewise.
1551         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1552         (tyscm_eq_type_smob): Likewise.
1553         (tyscm_type_map): Likewise.
1554         (tyscm_copy_type_recursive): Likewise.
1555         (save_objfile_types): Likewise.
1556         * guile/scm-utils.c (extract_arg): Likewise.
1557         * h8300-tdep.c (h8300_frame_cache): Likewise.
1558         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1559         * hppa-tdep.c (compare_unwind_entries): Likewise.
1560         (find_unwind_entry): Likewise.
1561         (hppa_frame_cache): Likewise.
1562         (hppa_stub_frame_unwind_cache): Likewise.
1563         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1564         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1565         (hppaobsd_supply_fpregset): Likewise.
1566         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1567         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1568         * i386-tdep.c (i386_frame_cache): Likewise.
1569         (i386_epilogue_frame_cache): Likewise.
1570         (i386_sigtramp_frame_cache): Likewise.
1571         (i386_supply_gregset): Likewise.
1572         (i386_collect_gregset): Likewise.
1573         (i386_gdbarch_init): Likewise.
1574         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1575         (i386obsd_trapframe_cache): Likewise.
1576         * i387-tdep.c (i387_supply_fsave): Likewise.
1577         (i387_collect_fsave): Likewise.
1578         (i387_supply_fxsave): Likewise.
1579         (i387_collect_fxsave): Likewise.
1580         (i387_supply_xsave): Likewise.
1581         (i387_collect_xsave): Likewise.
1582         * ia64-tdep.c (ia64_frame_cache): Likewise.
1583         (ia64_sigtramp_frame_cache): Likewise.
1584         * infcmd.c (attach_command_continuation): Likewise.
1585         (attach_command_continuation_free_args): Likewise.
1586         * inferior.c (restore_inferior): Likewise.
1587         (delete_thread_of_inferior): Likewise.
1588         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1589         (get_inflow_inferior_data): Likewise.
1590         (inflow_inferior_exit): Likewise.
1591         * infrun.c (displaced_step_clear_cleanup): Likewise.
1592         (restore_current_uiout_cleanup): Likewise.
1593         (release_stop_context_cleanup): Likewise.
1594         (do_restore_infcall_suspend_state_cleanup): Likewise.
1595         (do_restore_infcall_control_state_cleanup): Likewise.
1596         (restore_inferior_ptid): Likewise.
1597         * inline-frame.c (block_starting_point_at): Likewise.
1598         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1599         * jit.c (get_jit_objfile_data): Likewise.
1600         (get_jit_program_space_data): Likewise.
1601         (jit_object_close_impl): Likewise.
1602         (jit_find_objf_with_entry_addr): Likewise.
1603         (jit_breakpoint_deleted): Likewise.
1604         (jit_unwind_reg_set_impl): Likewise.
1605         (jit_unwind_reg_get_impl): Likewise.
1606         (jit_dealloc_cache): Likewise.
1607         (jit_frame_sniffer): Likewise.
1608         (jit_frame_prev_register): Likewise.
1609         (jit_prepend_unwinder): Likewise.
1610         (jit_inferior_exit_hook): Likewise.
1611         (free_objfile_data): Likewise.
1612         * jv-lang.c (jv_per_objfile_free): Likewise.
1613         (get_dynamics_objfile): Likewise.
1614         (get_java_class_symtab): Likewise.
1615         (builtin_java_type): Likewise.
1616         * language.c (language_string_char_type): Likewise.
1617         (language_bool_type): Likewise.
1618         (language_lookup_primitive_type): Likewise.
1619         (language_lookup_primitive_type_as_symbol): Likewise.
1620         * linespec.c (hash_address_entry): Likewise.
1621         (eq_address_entry): Likewise.
1622         (iterate_inline_only): Likewise.
1623         (iterate_name_matcher): Likewise.
1624         (decode_line_2_compare_items): Likewise.
1625         (collect_one_symbol): Likewise.
1626         (compare_symbols): Likewise.
1627         (compare_msymbols): Likewise.
1628         (add_symtabs_to_list): Likewise.
1629         (collect_symbols): Likewise.
1630         (compare_msyms): Likewise.
1631         (add_minsym): Likewise.
1632         (cleanup_linespec_result): Likewise.
1633         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1634         * linux-nat.c (delete_lwp_cleanup): Likewise.
1635         (count_events_callback): Likewise.
1636         (select_event_lwp_callback): Likewise.
1637         (resume_stopped_resumed_lwps): Likewise.
1638         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1639         (invalidate_linux_cache_inf): Likewise.
1640         (get_linux_inferior_data): Likewise.
1641         (linux_find_memory_regions_thunk): Likewise.
1642         (linux_make_mappings_callback): Likewise.
1643         (linux_corefile_thread_callback): Likewise.
1644         (find_mapping_size): Likewise.
1645         * linux-thread-db.c (find_new_threads_callback): Likewise.
1646         * lm32-tdep.c (lm32_frame_cache): Likewise.
1647         * m2-lang.c (builtin_m2_type): Likewise.
1648         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1649         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1650         (m32r_linux_supply_gregset): Likewise.
1651         (m32r_linux_collect_gregset): Likewise.
1652         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1653         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1654         * m68k-tdep.c (m68k_frame_cache): Likewise.
1655         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1656         (m68kbsd_supply_gregset): Likewise.
1657         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1658         * m88k-tdep.c (m88k_frame_cache): Likewise.
1659         (m88k_supply_gregset): Likewise.
1660
1661 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1662
1663         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1664         to allocation result assignment.
1665         * ada-exp.y (write_object_renaming): Likewise.
1666         (write_ambiguous_var): Likewise.
1667         (ada_nget_field_index): Likewise.
1668         (write_var_or_type): Likewise.
1669         * ada-lang.c (ada_decode_symbol): Likewise.
1670         (ada_value_assign): Likewise.
1671         (value_pointer): Likewise.
1672         (cache_symbol): Likewise.
1673         (add_nonlocal_symbols): Likewise.
1674         (ada_name_for_lookup): Likewise.
1675         (symbol_completion_add): Likewise.
1676         (ada_to_fixed_type_1): Likewise.
1677         (ada_get_next_arg): Likewise.
1678         (defns_collected): Likewise.
1679         * ada-lex.l (processId): Likewise.
1680         (processString): Likewise.
1681         * ada-tasks.c (read_known_tasks_array): Likewise.
1682         (read_known_tasks_list): Likewise.
1683         * ada-typeprint.c (decoded_type_name): Likewise.
1684         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1685         * amd64-tdep.c (amd64_push_arguments): Likewise.
1686         (amd64_displaced_step_copy_insn): Likewise.
1687         (amd64_classify_insn_at): Likewise.
1688         (amd64_relocate_instruction): Likewise.
1689         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1690         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1691         (initialize_current_architecture): Likewise.
1692         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1693         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1694         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1695         (arm_push_dummy_call): Likewise.
1696         (extend_buffer_earlier): Likewise.
1697         (arm_adjust_breakpoint_address): Likewise.
1698         (arm_skip_stub): Likewise.
1699         * auto-load.c (filename_is_in_pattern): Likewise.
1700         (maybe_add_script_file): Likewise.
1701         (maybe_add_script_text): Likewise.
1702         (auto_load_objfile_script_1): Likewise.
1703         * auxv.c (ld_so_xfer_auxv): Likewise.
1704         * ax-general.c (new_agent_expr): Likewise.
1705         (grow_expr): Likewise.
1706         (ax_reg_mask): Likewise.
1707         * bcache.c (bcache_full): Likewise.
1708         * breakpoint.c (program_breakpoint_here_p): Likewise.
1709         * btrace.c (parse_xml_raw): Likewise.
1710         * build-id.c (build_id_to_debug_bfd): Likewise.
1711         * buildsym.c (end_symtab_with_blockvector): Likewise.
1712         * c-exp.y (string_exp): Likewise.
1713         (qualified_name): Likewise.
1714         (write_destructor_name): Likewise.
1715         (operator_stoken): Likewise.
1716         (parse_number): Likewise.
1717         (scan_macro_expansion): Likewise.
1718         (yylex): Likewise.
1719         (c_print_token): Likewise.
1720         * c-lang.c (c_get_string): Likewise.
1721         (emit_numeric_character): Likewise.
1722         * charset.c (wchar_iterate): Likewise.
1723         * cli/cli-cmds.c (complete_command): Likewise.
1724         (make_command): Likewise.
1725         * cli/cli-dump.c (restore_section_callback): Likewise.
1726         (restore_binary_file): Likewise.
1727         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1728         * cli/cli-script.c (execute_control_command): Likewise.
1729         * cli/cli-setshow.c (do_set_command): Likewise.
1730         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1731         (read_pe_exported_syms): Likewise.
1732         * coffread.c (coff_read_struct_type): Likewise.
1733         (coff_read_enum_type): Likewise.
1734         * common/btrace-common.c (btrace_data_append): Likewise.
1735         * common/buffer.c (buffer_grow): Likewise.
1736         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1737         * common/format.c (parse_format_string): Likewise.
1738         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1739         * common/xml-utils.c (xml_escape_text): Likewise.
1740         * compile/compile-object-load.c (copy_sections): Likewise.
1741         (compile_object_load): Likewise.
1742         * compile/compile-object-run.c (compile_object_run): Likewise.
1743         * completer.c (filename_completer): Likewise.
1744         * corefile.c (read_memory_typed_address): Likewise.
1745         (write_memory_unsigned_integer): Likewise.
1746         (write_memory_signed_integer): Likewise.
1747         (complete_set_gnutarget): Likewise.
1748         * corelow.c (get_core_register_section): Likewise.
1749         * cp-name-parser.y (d_grab): Likewise.
1750         (allocate_info): Likewise.
1751         (cp_new_demangle_parse_info): Likewise.
1752         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1753         (cp_lookup_symbol_in_namespace): Likewise.
1754         (lookup_namespace_scope): Likewise.
1755         (find_symbol_in_baseclass): Likewise.
1756         (cp_lookup_nested_symbol): Likewise.
1757         (cp_lookup_transparent_type_loop): Likewise.
1758         * cp-support.c (copy_string_to_obstack): Likewise.
1759         (make_symbol_overload_list): Likewise.
1760         (make_symbol_overload_list_namespace): Likewise.
1761         (make_symbol_overload_list_adl_namespace): Likewise.
1762         (first_component_command): Likewise.
1763         * cp-valprint.c (cp_print_value): Likewise.
1764         * ctf.c (ctf_xfer_partial): Likewise.
1765         * d-exp.y (StringExp): Likewise.
1766         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1767         (lookup_module_scope): Likewise.
1768         (find_symbol_in_baseclass): Likewise.
1769         (d_lookup_nested_symbol): Likewise.
1770         * dbxread.c (find_stab_function_addr): Likewise.
1771         (read_dbx_symtab): Likewise.
1772         (dbx_end_psymtab): Likewise.
1773         (cp_set_block_scope): Likewise.
1774         * dcache.c (dcache_alloc): Likewise.
1775         * demangle.c (_initialize_demangler): Likewise.
1776         * dicos-tdep.c (dicos_load_module_p): Likewise.
1777         * dictionary.c (dict_create_hashed_expandable): Likewise.
1778         (dict_create_linear_expandable): Likewise.
1779         (expand_hashtable): Likewise.
1780         (add_symbol_linear_expandable): Likewise.
1781         * dwarf2-frame.c (add_cie): Likewise.
1782         (add_fde): Likewise.
1783         (dwarf2_build_frame_info): Likewise.
1784         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1785         (dwarf_expr_fetch_address): Likewise.
1786         (add_piece): Likewise.
1787         (execute_stack_op): Likewise.
1788         * dwarf2loc.c (chain_candidate): Likewise.
1789         (dwarf_entry_parameter_to_value): Likewise.
1790         (read_pieced_value): Likewise.
1791         (write_pieced_value): Likewise.
1792         * dwarf2read.c (dwarf2_read_section): Likewise.
1793         (add_type_unit): Likewise.
1794         (read_comp_units_from_section): Likewise.
1795         (fixup_go_packaging): Likewise.
1796         (dwarf2_compute_name): Likewise.
1797         (dwarf2_physname): Likewise.
1798         (create_dwo_unit_in_dwp_v1): Likewise.
1799         (create_dwo_unit_in_dwp_v2): Likewise.
1800         (read_func_scope): Likewise.
1801         (read_call_site_scope): Likewise.
1802         (dwarf2_attach_fields_to_type): Likewise.
1803         (process_structure_scope): Likewise.
1804         (mark_common_block_symbol_computed): Likewise.
1805         (read_common_block): Likewise.
1806         (abbrev_table_read_table): Likewise.
1807         (guess_partial_die_structure_name): Likewise.
1808         (fixup_partial_die): Likewise.
1809         (add_file_name): Likewise.
1810         (dwarf2_const_value_data): Likewise.
1811         (dwarf2_const_value_attr): Likewise.
1812         (build_error_marker_type): Likewise.
1813         (guess_full_die_structure_name): Likewise.
1814         (anonymous_struct_prefix): Likewise.
1815         (typename_concat): Likewise.
1816         (dwarf2_canonicalize_name): Likewise.
1817         (dwarf2_name): Likewise.
1818         (write_constant_as_bytes): Likewise.
1819         (dwarf2_fetch_constant_bytes): Likewise.
1820         (copy_string): Likewise.
1821         (parse_macro_definition): Likewise.
1822         * elfread.c (elf_symfile_segments): Likewise.
1823         (elf_rel_plt_read): Likewise.
1824         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1825         (elf_gnu_ifunc_resolve_by_got): Likewise.
1826         (elf_read_minimal_symbols): Likewise.
1827         (elf_gnu_ifunc_record_cache): Likewise.
1828         * event-top.c (top_level_prompt): Likewise.
1829         (command_line_handler): Likewise.
1830         * exec.c (resize_section_table): Likewise.
1831         * expprint.c (print_subexp_standard): Likewise.
1832         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1833         * findcmd.c (parse_find_args): Likewise.
1834         * findvar.c (address_from_register): Likewise.
1835         * frame.c (get_prev_frame_always): Likewise.
1836         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1837         (get_section_descriptor): Likewise.
1838         * gdb_obstack.c (obconcat): Likewise.
1839         (obstack_strdup): Likewise.
1840         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1841         (create_set_type): Likewise.
1842         (lookup_unsigned_typename): Likewise.
1843         (lookup_signed_typename): Likewise.
1844         (resolve_dynamic_union): Likewise.
1845         (resolve_dynamic_struct): Likewise.
1846         (add_dyn_prop): Likewise.
1847         (copy_dynamic_prop_list): Likewise.
1848         (arch_flags_type): Likewise.
1849         (append_composite_type_field_raw): Likewise.
1850         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1851         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1852         * go-exp.y (string_exp): Likewise.
1853         * go-lang.c (go_demangle): Likewise.
1854         * guile/guile.c (compute_scheme_string): Likewise.
1855         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1856         (gdbscm_canonicalize_command_name): Likewise.
1857         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1858         (ioscm_init_memory_port): Likewise.
1859         (ioscm_reinit_memory_port): Likewise.
1860         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1861         (gdbscm_gc_dup_argv): Likewise.
1862         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1863         * hppa-tdep.c (internalize_unwinds): Likewise.
1864         (read_unwind_info): Likewise.
1865         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1866         (windows_core_xfer_shared_libraries): Likewise.
1867         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1868         (i386_stap_parse_special_token_triplet): Likewise.
1869         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1870         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1871         * inf-child.c (inf_child_fileio_readlink): Likewise.
1872         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1873         (inf_ptrace_store_register): Likewise.
1874         * infrun.c (follow_exec): Likewise.
1875         (displaced_step_prepare_throw): Likewise.
1876         (save_stop_context): Likewise.
1877         (save_infcall_suspend_state): Likewise.
1878         * jit.c (jit_read_descriptor): Likewise.
1879         (jit_read_code_entry): Likewise.
1880         (jit_symtab_line_mapping_add_impl): Likewise.
1881         (finalize_symtab): Likewise.
1882         (jit_unwind_reg_get_impl): Likewise.
1883         * jv-exp.y (QualifiedName): Likewise.
1884         * jv-lang.c (get_java_utf8_name): Likewise.
1885         (type_from_class): Likewise.
1886         (java_demangle_type_signature): Likewise.
1887         (java_class_name_from_physname): Likewise.
1888         * jv-typeprint.c (java_type_print_base): Likewise.
1889         * jv-valprint.c (java_value_print): Likewise.
1890         * language.c (add_language): Likewise.
1891         * linespec.c (add_sal_to_sals_basic): Likewise.
1892         (add_sal_to_sals): Likewise.
1893         (decode_objc): Likewise.
1894         (find_linespec_symbols): Likewise.
1895         * linux-fork.c (fork_save_infrun_state): Likewise.
1896         * linux-nat.c (linux_nat_detach): Likewise.
1897         (linux_nat_fileio_readlink): Likewise.
1898         * linux-record.c (record_linux_sockaddr): Likewise.
1899         (record_linux_msghdr): Likewise.
1900         (Do): Likewise.
1901         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1902         (linux_collect_regset_section_cb): Likewise.
1903         (linux_get_siginfo_data): Likewise.
1904         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1905         (try_thread_db_load_from_dir): Likewise.
1906         (thread_db_load_search): Likewise.
1907         (info_auto_load_libthread_db): Likewise.
1908         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1909         (m32c_m16c_pointer_to_address): Likewise.
1910         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1911         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1912         * machoread.c (macho_check_dsym): Likewise.
1913         * macroexp.c (resize_buffer): Likewise.
1914         (gather_arguments): Likewise.
1915         (maybe_expand): Likewise.
1916         * macrotab.c (new_macro_key): Likewise.
1917         (new_source_file): Likewise.
1918         (new_macro_definition): Likewise.
1919         * mdebugread.c (parse_symbol): Likewise.
1920         (parse_type): Likewise.
1921         (parse_partial_symbols): Likewise.
1922         (psymtab_to_symtab_1): Likewise.
1923         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1924         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1925         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1926         (mi_cmd_data_read_memory_bytes): Likewise.
1927         (mi_cmd_data_write_memory_bytes): Likewise.
1928         (mi_cmd_trace_frame_collected): Likewise.
1929         * mi/mi-parse.c (mi_parse_argv): Likewise.
1930         (mi_parse): Likewise.
1931         * minidebug.c (lzma_open): Likewise.
1932         (lzma_pread): Likewise.
1933         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1934         (mips_print_fp_register): Likewise.
1935         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1936         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1937         * mt-tdep.c (mt_register_name): Likewise.
1938         (mt_registers_info): Likewise.
1939         (mt_push_dummy_call): Likewise.
1940         * namespace.c (add_using_directive): Likewise.
1941         * nat/linux-btrace.c (perf_event_read): Likewise.
1942         (linux_enable_bts): Likewise.
1943         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1944         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1945         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1946         (nto_parse_redirection): Likewise.
1947         * objc-lang.c (objc_demangle): Likewise.
1948         (find_methods): Likewise.
1949         * objfiles.c (get_objfile_bfd_data): Likewise.
1950         (set_objfile_main_name): Likewise.
1951         (allocate_objfile): Likewise.
1952         (objfile_relocate): Likewise.
1953         (update_section_map): Likewise.
1954         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1955         * p-exp.y (exp): Likewise.
1956         (yylex): Likewise.
1957         * p-valprint.c (pascal_object_print_value): Likewise.
1958         * parse.c (initialize_expout): Likewise.
1959         (mark_completion_tag): Likewise.
1960         (copy_name): Likewise.
1961         (parse_float): Likewise.
1962         (type_stack_reserve): Likewise.
1963         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1964         (ppu2spu_prev_register): Likewise.
1965         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1966         * printcmd.c (printf_wide_c_string): Likewise.
1967         (printf_pointer): Likewise.
1968         * probe.c (parse_probes): Likewise.
1969         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1970         (cmdpy_init): Likewise.
1971         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1972         * python/py-symtab.c (set_sal): Likewise.
1973         * python/py-unwind.c (pyuw_sniffer): Likewise.
1974         * python/python.c (python_interactive_command): Likewise.
1975         (compute_python_string): Likewise.
1976         * ravenscar-thread.c (get_running_thread_id): Likewise.
1977         * record-full.c (record_full_exec_insn): Likewise.
1978         (record_full_core_open_1): Likewise.
1979         * regcache.c (regcache_raw_read_signed): Likewise.
1980         (regcache_raw_read_unsigned): Likewise.
1981         (regcache_cooked_read_signed): Likewise.
1982         (regcache_cooked_read_unsigned): Likewise.
1983         * remote-fileio.c (remote_fileio_func_open): Likewise.
1984         (remote_fileio_func_rename): Likewise.
1985         (remote_fileio_func_unlink): Likewise.
1986         (remote_fileio_func_stat): Likewise.
1987         (remote_fileio_func_system): Likewise.
1988         * remote-mips.c (mips_xfer_memory): Likewise.
1989         (mips_load_srec): Likewise.
1990         (pmon_end_download): Likewise.
1991         * remote.c (new_remote_state): Likewise.
1992         (map_regcache_remote_table): Likewise.
1993         (remote_register_number_and_offset): Likewise.
1994         (init_remote_state): Likewise.
1995         (get_memory_packet_size): Likewise.
1996         (remote_pass_signals): Likewise.
1997         (remote_program_signals): Likewise.
1998         (remote_start_remote): Likewise.
1999         (remote_check_symbols): Likewise.
2000         (remote_query_supported): Likewise.
2001         (extended_remote_attach): Likewise.
2002         (process_g_packet): Likewise.
2003         (store_registers_using_G): Likewise.
2004         (putpkt_binary): Likewise.
2005         (read_frame): Likewise.
2006         (compare_sections_command): Likewise.
2007         (remote_hostio_pread): Likewise.
2008         (remote_hostio_readlink): Likewise.
2009         (remote_file_put): Likewise.
2010         (remote_file_get): Likewise.
2011         (remote_pid_to_exec_file): Likewise.
2012         (_initialize_remote): Likewise.
2013         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2014         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2015         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2016         (bfd_uses_spe_extensions): Likewise.
2017         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2018         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2019         * solib-dsbt.c (decode_loadmap): Likewise.
2020         (fetch_loadmap): Likewise.
2021         (scan_dyntag): Likewise.
2022         (enable_break): Likewise.
2023         (dsbt_relocate_main_executable): Likewise.
2024         * solib-frv.c (fetch_loadmap): Likewise.
2025         (enable_break2): Likewise.
2026         (frv_relocate_main_executable): Likewise.
2027         * solib-spu.c (spu_relocate_main_executable): Likewise.
2028         (spu_bfd_open): Likewise.
2029         * solib-svr4.c (lm_info_read): Likewise.
2030         (read_program_header): Likewise.
2031         (find_program_interpreter): Likewise.
2032         (scan_dyntag): Likewise.
2033         (elf_locate_base): Likewise.
2034         (open_symbol_file_object): Likewise.
2035         (read_program_headers_from_bfd): Likewise.
2036         (svr4_relocate_main_executable): Likewise.
2037         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2038         * solib.c (solib_find_1): Likewise.
2039         (exec_file_find): Likewise.
2040         (solib_find): Likewise.
2041         * source.c (openp): Likewise.
2042         (print_source_lines_base): Likewise.
2043         (forward_search_command): Likewise.
2044         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2045         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2046         (spu_get_overlay_table): Likewise.
2047         * stabsread.c (patch_block_stabs): Likewise.
2048         (define_symbol): Likewise.
2049         (again:): Likewise.
2050         (read_member_functions): Likewise.
2051         (read_one_struct_field): Likewise.
2052         (read_enum_type): Likewise.
2053         (common_block_start): Likewise.
2054         * stack.c (read_frame_arg): Likewise.
2055         (backtrace_command): Likewise.
2056         * stap-probe.c (stap_parse_register_operand): Likewise.
2057         * symfile.c (syms_from_objfile_1): Likewise.
2058         (find_separate_debug_file): Likewise.
2059         (load_command): Likewise.
2060         (load_progress): Likewise.
2061         (load_section_callback): Likewise.
2062         (reread_symbols): Likewise.
2063         (add_filename_language): Likewise.
2064         (allocate_compunit_symtab): Likewise.
2065         (read_target_long_array): Likewise.
2066         (simple_read_overlay_table): Likewise.
2067         * symtab.c (symbol_set_names): Likewise.
2068         (resize_symbol_cache): Likewise.
2069         (rbreak_command): Likewise.
2070         (completion_list_add_name): Likewise.
2071         (completion_list_objc_symbol): Likewise.
2072         (add_filename_to_list): Likewise.
2073         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2074         * target-memory.c (target_write_memory_blocks): Likewise.
2075         * target.c (target_read_string): Likewise.
2076         (read_whatever_is_readable): Likewise.
2077         (target_read_alloc_1): Likewise.
2078         (simple_search_memory): Likewise.
2079         (target_fileio_read_alloc_1): Likewise.
2080         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2081         * top.c (command_line_input): Likewise.
2082         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2083         * tracefile.c (tracefile_fetch_registers): Likewise.
2084         * tracepoint.c (add_memrange): Likewise.
2085         (init_collection_list): Likewise.
2086         (add_aexpr): Likewise.
2087         (trace_dump_actions): Likewise.
2088         (parse_trace_status): Likewise.
2089         (parse_tracepoint_definition): Likewise.
2090         (parse_tsv_definition): Likewise.
2091         (parse_static_tracepoint_marker_definition): Likewise.
2092         * tui/tui-file.c (tui_sfileopen): Likewise.
2093         (tui_file_adjust_strbuf): Likewise.
2094         * tui/tui-io.c (tui_expand_tabs): Likewise.
2095         * tui/tui-source.c (tui_set_source_content): Likewise.
2096         * typeprint.c (find_global_typedef): Likewise.
2097         * ui-file.c (do_ui_file_xstrdup): Likewise.
2098         (ui_file_obsavestring): Likewise.
2099         (mem_file_write): Likewise.
2100         * utils.c (make_hex_string): Likewise.
2101         (get_regcomp_error): Likewise.
2102         (puts_filtered_tabular): Likewise.
2103         (gdb_realpath_keepfile): Likewise.
2104         (ldirname): Likewise.
2105         (gdb_bfd_errmsg): Likewise.
2106         (substitute_path_component): Likewise.
2107         * valops.c (search_struct_method): Likewise.
2108         (find_oload_champ_namespace_loop): Likewise.
2109         * valprint.c (print_decimal_chars): Likewise.
2110         (read_string): Likewise.
2111         (generic_emit_char): Likewise.
2112         * varobj.c (varobj_delete): Likewise.
2113         (varobj_value_get_print_value): Likewise.
2114         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2115         * windows-tdep.c (display_one_tib): Likewise.
2116         * xcoffread.c (read_xcoff_symtab): Likewise.
2117         (process_xcoff_symbol): Likewise.
2118         (swap_sym): Likewise.
2119         (scan_xcoff_symtab): Likewise.
2120         (xcoff_initial_scan): Likewise.
2121         * xml-support.c (gdb_xml_end_element): Likewise.
2122         (xml_process_xincludes): Likewise.
2123         (xml_fetch_content_from_file): Likewise.
2124         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2125         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2126
2127 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2128
2129         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2130         instead of builtin_func_ptr.
2131         (ft32_pointer_to_address): New function.
2132         (ft32_address_class_type_flags): New function.
2133         (ft32_address_class_type_flags_to_name): New function.
2134         (ft32_address_class_name_to_type_flags): New function.
2135         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2136         set_gdbarch_pointer_to_address,
2137         set_gdbarch_address_class_type_flags
2138         set_gdbarch_address_class_name_to_type_flags,
2139         and set_gdbarch_address_class_type_flags_to_name.
2140         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2141
2142 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2143
2144         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2145         value is a reference, actually dereference it in order to get
2146         the underlying value.
2147
2148 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2149
2150         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2151
2152 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2153
2154         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2155         * linespec.c (linespec_lexer_lex_string): Same.
2156
2157 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2158
2159         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2160
2161 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2162
2163         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2164         variable.  Call aarch64_decode_adr instead of
2165         aarch64_decode_adrp.
2166         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2167         (aarch64_decode_adr): New function declaration.
2168         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2169         (aarch64_decode_adr): New function, factored out from
2170         aarch64_decode_adrp to decode both adr and adrp instructions.
2171
2172 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2173
2174         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2175         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2176         (aarch64-insn.o): New rule.
2177         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2178         (aarch64*-*-linux*): Likewise.
2179         * arch/aarch64-insn.c: New file.
2180         * arch/aarch64-insn.h: New file.
2181         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2182         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2183         arch/aarch64-insn.h.
2184         (decode_add_sub_imm): Rename to ...
2185         (aarch64_decode_add_sub_imm): ... this.
2186         (decode_adrp): Rename to ...
2187         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2188         Declare in arch/aarch64-insn.h.
2189         (decode_b): Rename to ...
2190         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2191         Declare in arch/aarch64-insn.h.
2192         (decode_bcond): Rename to ...
2193         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2194         Declare in arch/aarch64-insn.h.
2195         (decode_br): Rename to ...
2196         (aarch64_decode_br): ... this.
2197         (decode_cb): Rename to ...
2198         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2199         Declare in arch/aarch64-insn.h.
2200         (decode_eret): Rename to ...
2201         (aarch64_decode_eret): ... this.
2202         (decode_movz): Rename to ...
2203         (aarch64_decode_movz): ... this.
2204         (decode_orr_shifted_register_x): Rename to ...
2205         (aarch64_decode_orr_shifted_register_x): ... this.
2206         (decode_ret): Rename to ...
2207         (aarch64_decode_ret): ... this.
2208         (decode_stp_offset): Rename to ...
2209         (aarch64_decode_stp_offset): ... this.
2210         (decode_stp_offset_wb): Rename to ...
2211         (aarch64_decode_stp_offset_wb): ... this.
2212         (decode_stur): Rename to ...
2213         (aarch64_decode_stur): ... this.
2214         (decode_tb): Rename to ...
2215         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2216         Declare in arch/aarch64-insn.h.
2217         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2218
2219 2015-09-20  Doug Evans  <xdje42@gmail.com>
2220
2221         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2222
2223 2015-09-20  Doug Evans  <xdje42@gmail.com>
2224
2225         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2226         variable name that collides with a parameter.
2227
2228 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2229
2230         * dwarf2loc.c (locexpr_get_frame_base): Renames
2231         block_op_get_frame_base.
2232         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2233         block_op_get_frame_base by reference to locexpr_get_frame_base.
2234         (loclist_get_frame_base): New function, near identical copy of
2235         locexpr_get_frame_base.
2236         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2237         block_op_get_frame_base by reference to loclist_get_frame_base.
2238
2239 2015-09-19  Doug Evans  <xdje42@gmail.com>
2240
2241         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2242         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2243
2244 2015-09-18  Doug Evans  <xdje42@gmail.com>
2245
2246         * linux-thread-db.c (record_thread): Return the created thread.
2247         (thread_from_lwp): Likewise.
2248         (thread_db_get_thread_local_address): Update.
2249
2250 2015-09-18  Doug Evans  <xdje42@gmail.com>
2251
2252         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2253         move only member demangled_name up.  All uses updated.
2254
2255 2015-09-18  Doug Evans  <xdje42@gmail.com>
2256
2257         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2258         kind of minimal symbol in the error message.
2259         * objfiles.c (objfile_flavour_name): New function.
2260         * objfiles.h (objfile_flavour_name): Declare.
2261
2262 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2263
2264         * nat/aarch64-linux.c: Include elf/common.h,
2265         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2266         (aarch64_ps_get_thread_area): New function.
2267         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2268         (aarch64_ps_get_thread_area): Declare.
2269         * aarch64-linux-nat.c (ps_get_thread_area): Call
2270         aarch64_ps_get_thread_area.
2271
2272 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2273
2274         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2275
2276 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2277
2278         * NEWS: Announce new scheduler-locking mode.
2279         * infrun.c (schedlock_replay): New.
2280         (scheduler_enums): Add schedlock_replay.
2281         (scheduler_mode): Change default to schedlock_replay.
2282         (user_visible_resume_ptid): Handle schedlock_replay.
2283         (clear_proceed_status_thread): Stop replaying if resumed thread is
2284         not replaying.
2285         (schedlock_applies): Handle schedlock_replay.
2286         (_initialize_infrun): Document new scheduler-locking mode.
2287         * record-btrace.c (record_btrace_resume): Remove code to stop other
2288         threads when not replaying the resumed thread.
2289
2290 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2291
2292         * record-btrace.c ((record_btrace_will_replay): New.
2293         (init_record_btrace_ops): Initialize to_record_will_replay.
2294         * record-full.c ((record_full_will_replay): New.
2295         (init_record_full_ops): Initialize to_record_will_replay.
2296         * target-delegates.c: Regenerated.
2297         * target.c (target_record_will_replay): New.
2298         * target.h (struct target_ops) <to_record_will_replay>: New.
2299         (target_record_will_replay): New.
2300
2301 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2302
2303         * record-btrace.c (record_btrace_resume): Call
2304         target_record_stop_replaying.
2305         (record_btrace_stop_replaying_all): New.
2306         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2307         * record-full.c (record_full_stop_replaying): New.
2308         (init_record_full_ops ): Initialize to_record_stop_replaying.
2309         * target-delegates.c: Regenerated.
2310         * target.c (target_record_stop_replaying): New.
2311         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2312         (target_record_stop_replaying): New.
2313
2314 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2315
2316         * record-btrace.c (record_btrace_xfer_partial)
2317         (record_btrace_store_registers, record_btrace_prepare_to_store):
2318         Call record_btrace_is_replaying with inferior_ptid instead of
2319         minus_one_ptid.
2320         (record_btrace_store_registers): Change error message.
2321
2322 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2323
2324         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2325         Update users to pass minus_one_ptid.
2326         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2327         * record.c (cmd_record_delete): Pass inferior_ptid to
2328         target_record_is_replaying.
2329         * target-delegates.c: Regenerated.
2330         * target.c (target_record_is_replaying): Add ptid argument.
2331         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2332         argument.
2333         (target_record_is_replaying): Add ptid argument.
2334
2335 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2336
2337         * record-btrace.c (record_btrace_open): Remove non_stop check.
2338         * NEWS: Announce that record btrace supports non-stop mode.
2339
2340 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2341
2342         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2343         in the TARKET_WAITKIND_NO_HISTORY case.
2344
2345 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2346
2347         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2348         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2349
2350 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2351
2352         * record-btrace.c (get_thread_current_frame): New.
2353         (record_btrace_start_replaying): Call get_thread_current_frame.
2354
2355 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2356
2357         * record-btrace.c (record_btrace_resume_thread): A move request
2358         overwrites a previous move request.
2359         (record_btrace_find_resume_thread): Removed.
2360         (record_btrace_resume): Resume all requested threads.
2361
2362 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2363
2364         * record-btrace.c: Include vec.h.
2365         (record_btrace_find_thread_to_move): Removed.
2366         (btrace_step_no_resumed, btrace_step_again)
2367         (record_btrace_stop_replaying_at_end): New.
2368         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2369         (record_btrace_single_step_forward): Remove calls to
2370         record_btrace_stop_replaying.
2371         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2372         BTHR_RCONT.  Keep threads at the end of their history moving.
2373         (record_btrace_wait): Call record_btrace_step_thread for all threads
2374         until one reports an event.  Call record_btrace_stop_replaying_at_end
2375         for the eventing thread.
2376
2377 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2378
2379         * record-btrace.c (record_btrace_single_step_forward): Return
2380         NO_HISTORY if a step brings us to the end of the execution history.
2381
2382 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2383
2384         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2385         to ...
2386         (record_btrace_single_step_forward): ... here and
2387         (record_btrace_single_step_backward): ... here.
2388
2389 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2390
2391         * record-btrace.c (btrace_step_spurious)
2392         (record_btrace_single_step_forward)
2393         (record_btrace_single_step_backward): New.
2394         (record_btrace_step_thread): Call record_btrace_single_step_forward
2395         and record_btrace_single_step_backward.
2396
2397 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2398
2399         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2400         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2401
2402 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2403
2404         * record-btrace.c (btrace_thread_flag_to_str)
2405         (record_btrace_cancel_resume): New.
2406         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2407         (record_btrace_resume): Print execution direction.
2408         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2409         (record_btrace_wait): Call record_btrace_cancel_resume.
2410
2411 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2412
2413         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2414         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2415         (record_btrace_find_thread_to_move): Also accept threads that have
2416         BTHR_STOP set.
2417         (btrace_step_stopped_on_request, record_btrace_stop): New.
2418         (record_btrace_step_thread): Support BTHR_STOP.
2419         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2420         (init_record_btrace_ops): Initialize to_stop.
2421
2422 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2423
2424         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2425         target_is_non_stop_p ().
2426
2427 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2428
2429         * ada-typeprint.c (print_array_type): Do not describe arrays as
2430         packed when they embed dynamic elements.
2431
2432 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2433
2434         * symtab.h (address_class): Document that TLS variables
2435         are handled by LOC_UNRESOLVED.
2436         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2437         * printcmd.c (address_info): Don't relocate TLS variables.
2438
2439 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2440
2441         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2442         (decode_adrp): Likewise.
2443         (decode_b): Likewise.
2444         (decode_bcond): Likewise.
2445         (decode_br): Likewise.
2446         (decode_cb): Likewise.
2447         (decode_eret): Likewise.
2448         (decode_movz): Likewise.
2449         (decode_orr_shifted_register_x): Likewise.
2450         (decode_ret): Likewise.
2451         (decode_stp_offset): Likewise.
2452         (decode_stp_offset_wb): Likewise.
2453         (decode_stur): Likewise.
2454         (decode_tb): Likewise.
2455         (aarch64_analyze_prologue): Likewise.
2456         (pass_in_x): Likewise.
2457         (pass_in_v): Likewise.
2458         (pass_on_stack): Likewise.
2459         (aarch64_push_dummy_call): Likewise.
2460         (aarch64_extract_return_value): Likewise.
2461         (aarch64_store_return_value): Likewise.
2462         (aarch64_return_value): Likewise.
2463         (aarch64_record_asimd_load_store): Likewise.
2464         (aarch64_record_load_store): Likewise.
2465         (aarch64_record_data_proc_simd_fp): Likewise.
2466
2467 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2468
2469         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2470         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2471         (ppc64_skip_trampoline_code_1): ... here.
2472         (ppc64_skip_trampoline_code): New wrapper function.
2473         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2474
2475 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2476
2477         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2478         function.
2479         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2480         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2481         if target_can_do_single_step returns 1.
2482         * remote.c (struct vCont_action_support) <s, S>: New fields.
2483         (PACKET_vContSupported): New enum.
2484         (remote_protocol_features): New element for vContSupported.
2485         (remote_query_supported): Append "vContSupported+".
2486         (remote_vcont_probe): Remove support_s and support_S, use
2487         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2488         vCont packet if c and C actions are not supported.
2489         (remote_can_do_single_step): New function.
2490         (init_remote_ops): Install it to to_can_do_single_step.
2491         (_initialize_remote): Call add_packet_config_cmd.
2492         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2493         (target_can_do_single_step): New macro.
2494         * target-delegates.c: Re-generated.
2495
2496 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2497
2498         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2499         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2500         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2501         New function.
2502         (aarch64_siginfo_from_compat_siginfo): New function.
2503         * nat/aarch64-linux.h: Include signal.h.
2504         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2505         (compat_timer_t, compat_clock_t): Likewise.
2506         (struct compat_timeval): New.
2507         (union compat_sigval): New.
2508         (struct compat_siginfo): New.
2509         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2510         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2511         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2512         (cpt_si_band, cpt_si_fd): Likewise.
2513
2514 2015-09-14  Pedro Alves  <palves@redhat.com>
2515
2516         * infrun.c (current_stop_id): New global.
2517         (get_stop_id, new_stop_id): New functions.
2518         (fetch_inferior_event): Handle normal_stop proceeding the target.
2519         (struct stop_context): New.
2520         (save_stop_context, release_stop_context_cleanup)
2521         (stop_context_changed): New functions.
2522         (normal_stop): Return true if the hook-stop changes the stop
2523         context.
2524         * infrun.h (get_stop_id): Declare.
2525         (normal_stop): Now returns int.  Add documentation.
2526
2527 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2528
2529         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2530         comment.  Handle packed arrays.
2531
2532 2015-09-14  Pedro Alves  <palves@redhat.com>
2533
2534         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2535         mention of maint set/show target-non-stop.
2536
2537 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2538
2539         * NEWS: Announce new remote packets for the exec-events
2540         feature and the exec-events feature and associated commands.
2541
2542 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2543
2544         * remote.c (remote_exec_event_p): New function.
2545         (remote_insert_exec_catchpoint): New function.
2546         (remote_remove_exec_catchpoint): New function.
2547         (init_extended_remote_ops): Initialize extended_remote_ops
2548         members to_insert_exec_catchpoint and
2549         to_remove_exec_catchpoint.
2550
2551 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2552             Luis Machado  <lgustavo@codesourcery.com>
2553
2554         * infrun.c (follow_exec): Use process-style ptid for
2555         exec message.  Call add_inferior_with_spaces and
2556         target_follow_exec.
2557         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2558         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2559         * remote.c (remote_pspace_data): New static variable.
2560         (remote_pspace_data_cleanup): New function.
2561         (get_remote_exec_file): New function.
2562         (set_remote_exec_file_1): New function.
2563         (set_remote_exec_file): New function.
2564         (show_remote_exec_file): New function.
2565         (remote_exec_file): Delete static variable.
2566         (anonymous enum) <PACKET_exec_event_feature>: New
2567         enumeration constant.
2568         (remote_protocol_features): Add entry for exec-events feature.
2569         (remote_query_supported): Add client side of qSupported query
2570         for exec-events feature.
2571         (remote_follow_exec): New function.
2572         (remote_parse_stop_reply): Handle 'exec' stop reason.
2573         (extended_remote_run, extended_remote_create_inferior): Call
2574         get_remote_exec_file and set_remote_exec_file_1.
2575         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2576         member.
2577         (_initialize_remote): Call
2578         register_program_space_data_with_cleanup.  Call
2579         add_packet_config_cmd for remote exec-events feature.
2580         Modify call to add_setshow_string_noescape_cmd for exec-file
2581         to use new functions set_remote_exec_file and
2582         show_remote_exec_file.
2583         * target-debug.h, target-delegates.c: Regenerated.
2584         * target.c (target_follow_exec): New function.
2585         * target.h (struct target_ops) <to_follow_exec>: New member.
2586         (target_follow_exec): Declare new function.
2587
2588 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2589
2590         * aarch64-tdep.c (decode_cb): Move up comment describing the
2591         encoding.
2592         (decode_tb): Fix a typo in comment above the function.  Move up
2593         comment describing the encoding.
2594
2595 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2596
2597         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2598
2599 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2600
2601         PR gdb/18947
2602         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2603         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2604
2605 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2606
2607         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2608         operations.
2609
2610 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2611
2612         * ada-lang.c (ada_search_struct_field): Constify parameters
2613         and/or variables..
2614         (xget_renaming_scope): Likewise.
2615         (ada_is_redundant_range_encoding): Likewise.
2616         (scan_discrim_bound): Likewise.
2617         (to_fixed_range_type): Likewise.
2618
2619 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2620
2621         * breakpoint.c (download_tracepoint_locations): New local
2622         can_download_tracepoint.  Check the result of
2623         target_can_download_tracepoint and save it in
2624         can_download_tracepoint if there are tracepoints to download.
2625         * linux-nat.h (enum tribool): Move it to ...
2626         * common/common-types.h: ... here.
2627
2628 2015-09-09  Pedro Alves  <palves@redhat.com>
2629
2630         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2631         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2632
2633 2015-09-09  Pedro Alves  <palves@redhat.com>
2634
2635         * continuations.c (add_continuation, restore_thread_cleanup)
2636         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2637         (do_all_continuations_thread, do_all_continuations)
2638         (discard_all_continuations_thread_callback)
2639         (discard_all_continuations_thread, discard_all_continuations)
2640         (add_intermediate_continuation)
2641         (do_all_intermediate_continuations_thread_callback)
2642         (do_all_intermediate_continuations_thread)
2643         (do_all_intermediate_continuations)
2644         (discard_all_intermediate_continuations_thread_callback)
2645         (discard_all_intermediate_continuations_thread)
2646         (discard_all_intermediate_continuations): Delete.
2647         * continuations.h (add_continuation, do_all_continuations)
2648         (do_all_continuations_thread, discard_all_continuations)
2649         (discard_all_continuations_thread, add_intermediate_continuation)
2650         (do_all_intermediate_continuations)
2651         (do_all_intermediate_continuations_thread)
2652         (discard_all_intermediate_continuations)
2653         (discard_all_intermediate_continuations_thread): Delete
2654         declarations.
2655         * event-top.c (stdin_event_handler): Delete references to
2656         continuations.
2657         * gdbthread.h (struct thread_info): Delete continuations and
2658         intermediate_continuations fields.
2659         * inf-loop.c (inferior_event_handler): Remove references to
2660         continuations.
2661         * infrun.c (infrun_thread_stop_requested_callback): Remove
2662         references to continuations.
2663         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2664         * thread.c: Don't include "continuations.h".
2665         (clear_thread_inferior_resources): Remove references to
2666         continuations.
2667
2668 2015-09-09  Pedro Alves  <palves@redhat.com>
2669
2670         * infcall.c (struct dummy_frame_context_saver): Delete.
2671         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2672         (dummy_frame_context_saver_drop)
2673         (dummy_frame_context_saver_cleanup)
2674         (dummy_frame_context_saver_get_regs)
2675         (dummy_frame_context_saver_setup): Delete.
2676         * infcall.h (dummy_frame_context_saver_drop)
2677         (dummy_frame_context_saver_cleanup)
2678         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2679         Delete.
2680         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2681         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2682         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2683
2684 2015-09-09  Pedro Alves  <palves@redhat.com>
2685
2686         * breakpoint.c: Include "thread-fsm.h".
2687         (struct until_break_command_continuation_args): Delete.
2688         (struct until_break_fsm): New.
2689         (until_break_fsm_ops): New global.
2690         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2691         (until_break_command_continuation): Delete.
2692         (until_break_fsm_clean_up): New function.
2693         (until_break_fsm_async_reply_reason): New function.
2694         (until_break_command): Adjust to create an until_break_fsm instead
2695         of a continuation.
2696         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2697         here.
2698         * infcmd.c (struct until_next_fsm): New.
2699         (until_next_fsm_ops): New global.
2700         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2701         (until_next_continuation): Delete.
2702         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2703         functions.
2704         (until_next_command): Adjust to create a new until_next_fsm
2705         instead of a continuation.
2706
2707 2015-09-09  Pedro Alves  <palves@redhat.com>
2708
2709         * infcall.c: Include thread_fsm.h.
2710         (struct call_return_meta_info): New.
2711         (get_call_return_value): New function, factored out from
2712         call_function_by_hand_dummy.
2713         (struct call_thread_fsm): New.
2714         (call_thread_fsm_ops): New global.
2715         (new_call_thread_fsm, call_thread_fsm_should_stop)
2716         (call_thread_fsm_should_notify_stop): New functions.
2717         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2718         the thread.
2719         (call_function_by_hand_dummy): Create a new call_thread_fsm
2720         instance, associate it with the thread, and wait for the FSM to
2721         finish.  If finished successfully, fetch the function's result
2722         value out of the FSM.
2723         * infrun.c (fetch_inferior_event): If the FSM says the stop
2724         shouldn't be notified, don't call normal_stop.
2725         (maybe_remove_breakpoints): New function, factored out from ...
2726         (normal_stop): ... here.  Simplify.
2727         * infrun.h (maybe_remove_breakpoints): Declare.
2728         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2729         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2730         (thread_fsm_should_notify_stop): Declare.
2731
2732 2015-09-09  Pedro Alves  <palves@redhat.com>
2733
2734         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2735         * breakpoint.c (handle_jit_event): Print debug output.
2736         (bpstat_what): Split event callback handling to ...
2737         (bpstat_run_callbacks): ... this new function.
2738         (momentary_bkpt_print_it): No longer handle bp_finish here.
2739         * breakpoint.h (bpstat_run_callbacks): Declare.
2740         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2741         <thread_fsm>: New field.
2742         (thread_cancel_execution_command): Declare.
2743         * infcmd.c: Include thread-fsm.h.
2744         (struct step_command_fsm): New.
2745         (step_command_fsm_ops): New global.
2746         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2747         (step_1): Adjust to use step_command_fsm_prepare and
2748         prepare_one_step.
2749         (struct step_1_continuation_args): Delete.
2750         (step_1_continuation): Delete.
2751         (step_command_fsm_should_stop): New function.
2752         (step_once): Delete.
2753         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2754         (prepare_one_step): New function, based on step_once.
2755         (until_next_command): Remove step_multi reference.
2756         (struct return_value_info): New.
2757         (print_return_value): Rename to ...
2758         (print_return_value_1): ... this.  New struct return_value_info
2759         parameter.  Adjust.
2760         (print_return_value): Reimplement as wrapper around
2761         print_return_value_1.
2762         (struct finish_command_fsm): New.
2763         (finish_command_continuation): Delete.
2764         (finish_command_fsm_ops): New global.
2765         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2766         functions.
2767         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2768         New.
2769         (finish_command_continuation_free_arg): Delete.
2770         (finish_command_fsm_async_reply_reason): New.
2771         (finish_backward, finish_forward): Change symbol parameter to a
2772         finish_command_fsm.  Adjust.
2773         (finish_command): Create a finish_command_fsm.  Adjust.
2774         * infrun.c: Include "thread-fsm.h".
2775         (clear_proceed_status_thread): Delete the thread's FSM.
2776         (infrun_thread_stop_requested_callback): Cancel the thread's
2777         execution command.
2778         (clean_up_just_stopped_threads_fsms): New function.
2779         (fetch_inferior_event): Handle the event_thread's should_stop
2780         method saying the command isn't done yet.
2781         (process_event_stop_test): Run breakpoint callbacks here.
2782         (print_stop_event): Rename to ...
2783         (print_stop_location): ... this.
2784         (restore_current_uiout_cleanup): New function.
2785         (print_stop_event): Reimplement.
2786         (normal_stop): No longer notify the end_stepping_range observers
2787         here handle "step N" nor "finish" here.  No longer call
2788         print_stop_event here.
2789         * infrun.h (struct return_value_info): Forward declare.
2790         (print_return_value): Declare.
2791         (print_stop_event): Change prototype.
2792         * thread-fsm.c: New file.
2793         * thread-fsm.h: New file.
2794         * thread.c: Include "thread-fsm.h".
2795         (thread_cancel_execution_command): New function.
2796         (clear_thread_inferior_resources): Call it.
2797         * cli/cli-interp.c (cli_on_normal_stop): New function.
2798         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2799         observer.
2800         * mi/mi-interp.c: Include "thread-fsm.h".
2801         (restore_current_uiout_cleanup): Delete.
2802         (mi_on_normal_stop): If the thread has an FSM associated, and it
2803         finished, ask it for the async-reply-reason to print.  Always call
2804         print_stop_event here, regardless of the top-level interpreter.
2805         Check bpstat_what to tell whether an asynchronous breakpoint hit
2806         triggered.
2807         * tui/tui-interp.c (tui_on_normal_stop): New function.
2808         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2809
2810 2015-09-09  Pedro Alves  <palves@redhat.com>
2811
2812         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2813         check whether the target can async.
2814         * inf-loop.c (inferior_event_handler): Only call target_async if
2815         the target can async.
2816         * infcall.c: Include top.h and interps.h.
2817         (run_inferior_call): For the interpreter to sync mode while
2818         running the infcall.  Call wait_sync_command_done instead of
2819         wait_for_inferior plus normal_stop.
2820         * infcmd.c (prepare_execution_command): Don't check whether the
2821         target can async when running in the foreground.
2822         (step_1): Delete synchronous case handling.
2823         (step_once): Always install a continuation, even in sync mode.
2824         (until_next_command, finish_forward): Don't check whether the
2825         target can async.
2826         (attach_command_post_wait, notice_new_inferior): Always install a
2827         continuation, even in sync mode.
2828         * infrun.c (mark_infrun_async_event_handler): New function.
2829         (proceed): In sync mode, mark infrun's event source instead of
2830         waiting for events here.
2831         (fetch_inferior_event): If the target can't async, do a blocking
2832         wait.
2833         (prepare_to_wait): In sync mode, mark infrun's event source.
2834         (infrun_async_inferior_event_handler): No longer bail out if the
2835         target can't async.
2836         * infrun.h (mark_infrun_async_event_handler): New declaration.
2837         * linux-nat.c (linux_nat_wait_1): Remove calls to
2838         set_sigint_trap/clear_sigint_trap.
2839         (linux_nat_terminal_inferior): No longer check whether the target
2840         can async.
2841         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2842         comment.
2843         (mi_execute_command_input_handler): No longer check whether the
2844         target is async.  Update and simplify comment.
2845         * target.c (default_target_wait): New function.
2846         * target.h (struct target_ops) <to_wait>: Now defaults to
2847         default_target_wait.
2848         (default_target_wait): Declare.
2849         * top.c (wait_sync_command_done): New function, factored out from
2850         ...
2851         (maybe_wait_sync_command_done): ... this.
2852         * top.h (wait_sync_command_done): Declare.
2853         * target-delegates.c: Regenerate.
2854
2855 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2856
2857         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2858         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2859         Remove include of sys/utsname.h.
2860         (linux_determine_kernel_ptr_bits): Remove.
2861         (linux_determine_kernel_start): New.
2862         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2863         Update check.
2864         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2865         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2866         initialization.
2867         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2868         assignment.
2869
2870 2015-09-07  Pedro Alves  <palves@redhat.com>
2871
2872         * guile/guile-internal.h (as_a_scm_t_subr): New.
2873         * guile/guile.c (misc_guile_functions): Use it.
2874         * guile/scm-arch.c (arch_functions): Use it.
2875         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2876         Use it.
2877         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2878         * guile/scm-cmd.c (command_functions): Use it.
2879         * guile/scm-disasm.c (disasm_functions): Use it.
2880         * guile/scm-exception.c (exception_functions)
2881         (private_exception_functions): Use it.
2882         * guile/scm-frame.c (frame_functions)
2883         * guile/scm-gsmob.c (gsmob_functions): Use it.
2884         * guile/scm-iterator.c (iterator_functions): Use it.
2885         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2886         * guile/scm-math.c (math_functions): Use it.
2887         * guile/scm-objfile.c (objfile_functions): Use it.
2888         * guile/scm-param.c (parameter_functions): Use it.
2889         * guile/scm-ports.c (port_functions, private_port_functions): Use
2890         it.
2891         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2892         * guile/scm-progspace.c (pspace_functions): Use it.
2893         * guile/scm-string.c (string_functions): Use it.
2894         * guile/scm-symbol.c (symbol_functions): Use it.
2895         * guile/scm-symtab.c (symtab_functions): Use it.
2896         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2897         it.
2898         * guile/scm-value.c (value_functions): Use it.
2899
2900 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2901
2902         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2903         (tui_next_win): Likewise.
2904         (tui_prev_win): Likewise.
2905         (tui_partial_win_by_name): Likewise.
2906         (tui_init_generic_part): Likewise.
2907         (init_content_element): Likewise.
2908         (tui_del_window): Likewise.
2909         (tui_free_window): Likewise.
2910         (tui_del_data_windows): Likewise.
2911         (tui_free_data_content): Likewise.
2912         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2913         * tui/tui-regs.c (tui_show_register_group): Likewise.
2914         * tui/tui-win.c (tui_resize_all): Likewise.
2915         (tui_set_focus): Likewise.
2916         (tui_set_win_height): Likewise.
2917         (make_invisible_and_set_new_height): Likewise.
2918         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2919         * tui/tui-wingeneral.c (make_visible): Likewise.
2920
2921 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2922
2923         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2924
2925 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2926
2927         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2928         pointer.
2929         * dbxread.c (dbx_end_psymtab): Likewise.
2930         * gnu-nat.c (gnu_write_inferior): Likewise.
2931         * mdebugread.c (cross_ref): Likewise.
2932         * p-valprint.c (pascal_val_print): Likewise.
2933         * xcoffread.c (xcoff_end_psymtab): Likewise.
2934
2935 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2936
2937         * NEWS: Mention the aarch64 multi-arch debugging support.
2938
2939 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2940
2941         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2942         type instead of a TYPE_CODE_INT one for the string_char_type
2943         and the ada_primitive_type_char types.
2944
2945 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2946
2947         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2948         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2949         aarch64_linux_region_ok_for_watchpoint.
2950         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2951         New function.
2952         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2953         Declare it.
2954
2955 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2956
2957         * gdb_obstack.h (obstack_strdup): Declare.
2958         * gdb_obstack.c (obstack_strdup): Define.
2959         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2960         * gdbarch.c: Regenerate.
2961         * gdbarch.h: Regenerate.
2962         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2963
2964 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2965
2966         * gdbtypes.c (copy_type_recursive): Update documentation.
2967
2968 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2969
2970         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2971         as zero.
2972
2973 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2974
2975         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2976
2977 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2978
2979         * solib-svr4.c (solib_event_probe_action): Call
2980         get_probe_argument_count using TRY...CATCH.
2981         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2982
2983 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2984
2985         * probe.h (struct probe_ops) <get_probe_argument_count,
2986         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2987         the comment that the function can throw an exception.
2988         (get_probe_argument_count): Likewise.
2989         (evaluate_probe_argument): Likewise.
2990         * stap-probe.c (stap_get_opcode): Call error instead of
2991         internal_error.
2992         (stap_get_expected_argument_type): Likewise.  Add argument
2993         'probe'.  Improve error message by mentioning the probe's name.
2994         (stap_parse_probe_arguments): Adjust call to
2995         stap_get_expected_argument_type.
2996         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
2997         not zero.  Call internal_error if GDB requests an argument but the
2998         probe has no arguments.
2999
3000 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3001
3002         * ada-lang.c (ada_resolve_function): Do not ask the user what
3003         match to use when in completion mode.
3004
3005 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3006
3007         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3008         cast of NULL.
3009
3010 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3011
3012         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3013         call_abi using XSHAL_ABI macro.
3014
3015 2015-08-29  Doug Evans  <xdje42@gmail.com>
3016
3017         * symtab.h (struct symbol): Tweak comment.
3018
3019 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3020
3021         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3022         gdbarch obstack instead of on the heap.  Update commentary
3023         accordingly.
3024
3025 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3026
3027         GDB 7.10 released.
3028
3029 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3030
3031         * NEWS: Update entry about non-8-bits addressable memory.
3032
3033 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3034
3035         Revert:
3036         2014-11-06  Doug Evans  <xdje42@gmail.com>
3037         * solib.c (solib_global_lookup): Fetch arch from objfile,
3038         not target_gdbarch.
3039
3040 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3041
3042         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3043         attempt to relocate a TLS variable offset.
3044
3045 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3046
3047         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3048         registered yet.  Set inferior_ptid while calling target_read_memory.
3049
3050 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3051
3052         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3053         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3054         * linux-nat.c (check_stopped_by_breakpoint): Use
3055         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3056
3057 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3058
3059         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3060         thread was not yet discovered, use thread_from_lwp instead of
3061         calling thread_db_find_new_threads_1.
3062
3063 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3064
3065         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3066         statements.
3067
3068 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3069
3070         * NEWS: Document support for non-8-bits addressable memory.
3071
3072 2015-08-27  Pedro Alves  <palves@redhat.com>
3073
3074         * configure.ac: Remove AC_TYPE_SIGNAL call.
3075         * configure, config.in: Regenerate.
3076
3077 2015-08-27  Pedro Alves  <palves@redhat.com>
3078
3079         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3080         * extension-priv.h: Include signal.h.
3081         (struct signal_handler) <handler>: Change type to sighandler_t.
3082         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3083         * inflow.c (sigint_ours, sigquit_ours): Change type to
3084         sighandler_t.
3085         (child_terminal_inferior): Remove casts.
3086         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3087         (osig): Change type to sighandler_t.
3088         * nto-procfs.c (ofunc): Change type to sighandler_t.
3089         (procfs_wait): Remove casts.
3090         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3091         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3092         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3093
3094 2015-08-27  Pedro Alves  <palves@redhat.com>
3095
3096         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3097         * gnulib/aclocal.m4: Renegerate.
3098         * gnulib/config.in: Renegerate.
3099         * gnulib/configure: Renegerate.
3100         * gnulib/import/Makefile.am: Update.
3101         * gnulib/import/Makefile.in: Regenerate.
3102         * gnulib/import/m4/gnulib-cache.m4: Update.
3103         * gnulib/import/m4/gnulib-comp.m4: Update.
3104         * gnulib/import/m4/signal_h.m4: New file.
3105         * gnulib/import/signal.in.h: New file.
3106
3107 2015-08-27  Pedro Alves  <palves@redhat.com>
3108
3109         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3110         (MIN_MEMORY_PACKET_SIZE): New.
3111         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3112         (get_memory_packet_size): Adjust.  No longer limit the max packet
3113         size.
3114         (set_memory_packet_size): Adjust, and remove dead code.
3115         (remote_check_symbols): Use xmalloc and a cleanup instead of
3116         alloca.
3117         (remote_packet_size): No longer cap the packet size.
3118         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3119
3120 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3121
3122         * compile/compile.c (compile_to_object): Mention language in
3123         error message.
3124
3125 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3126
3127         * target.c (target_pre_inferior): Unset attach_flag.
3128
3129 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3130
3131         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3132         * gdbarch.c: Re-generate.
3133
3134 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3135
3136         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3137         function with the XNEW-family equivalent.
3138         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3139         * ada-exp.y (write_ambiguous_var): Likewise.
3140         * ada-lang.c (resolve_subexp): Likewise.
3141         (user_select_syms): Likewise.
3142         (assign_aggregate): Likewise.
3143         (ada_evaluate_subexp): Likewise.
3144         (cache_symbol): Likewise.
3145         * addrmap.c (allocate_key): Likewise.
3146         (addrmap_create_mutable): Likewise.
3147         * aix-thread.c (sync_threadlists): Likewise.
3148         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3149         (alpha_gdbarch_init): Likewise.
3150         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3151         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3152         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3153         * arm-tdep.c (push_stack_item): Likewise.
3154         (arm_displaced_step_copy_insn): Likewise.
3155         (arm_gdbarch_init): Likewise.
3156         (_initialize_arm_tdep): Likewise.
3157         * avr-tdep.c (push_stack_item): Likewise.
3158         * ax-general.c (new_agent_expr): Likewise.
3159         * block.c (block_initialize_namespace): Likewise.
3160         * breakpoint.c (alloc_counted_command_line): Likewise.
3161         (update_dprintf_command_list): Likewise.
3162         (parse_breakpoint_sals): Likewise.
3163         (decode_static_tracepoint_spec): Likewise.
3164         (until_break_command): Likewise.
3165         (clear_command): Likewise.
3166         (update_global_location_list): Likewise.
3167         (get_breakpoint_objfile_data) Likewise.
3168         * btrace.c (ftrace_new_function): Likewise.
3169         (btrace_set_insn_history): Likewise.
3170         (btrace_set_call_history): Likewise.
3171         * buildsym.c (add_symbol_to_list): Likewise.
3172         (record_pending_block): Likewise.
3173         (start_subfile): Likewise.
3174         (start_buildsym_compunit): Likewise.
3175         (push_subfile): Likewise.
3176         (end_symtab_get_static_block): Likewise.
3177         (buildsym_init): Likewise.
3178         * cli/cli-cmds.c (source_command): Likewise.
3179         * cli/cli-decode.c (add_cmd): Likewise.
3180         * cli/cli-script.c (build_command_line): Likewise.
3181         (setup_user_args): Likewise.
3182         (realloc_body_list): Likewise.
3183         (process_next_line): Likewise.
3184         (copy_command_lines): Likewise.
3185         * cli/cli-setshow.c (do_set_command): Likewise.
3186         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3187         * coffread.c (coff_locate_sections): Likewise.
3188         (coff_symtab_read): Likewise.
3189         (coff_read_struct_type): Likewise.
3190         * common/cleanups.c (make_my_cleanup2): Likewise.
3191         * common/common-exceptions.c (throw_it): Likewise.
3192         * common/filestuff.c (make_cleanup_close): Likewise.
3193         * common/format.c (parse_format_string): Likewise.
3194         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3195         * compile/compile-object-load.c (munmap_list_add): Likewise.
3196         (compile_object_load): Likewise.
3197         * compile/compile-object-run.c (compile_object_run): Likewise.
3198         * compile/compile.c (append_args): Likewise.
3199         * corefile.c (specify_exec_file_hook): Likewise.
3200         * cp-support.c (make_symbol_overload_list): Likewise.
3201         * cris-tdep.c (push_stack_item): Likewise.
3202         (cris_gdbarch_init): Likewise.
3203         * ctf.c (ctf_trace_file_writer_new): Likewise.
3204         * dbxread.c (init_header_files): Likewise.
3205         (add_new_header_file): Likewise.
3206         (init_bincl_list): Likewise.
3207         (dbx_end_psymtab): Likewise.
3208         (start_psymtab): Likewise.
3209         (dbx_end_psymtab): Likewise.
3210         * dcache.c (dcache_init): Likewise.
3211         * dictionary.c (dict_create_hashed): Likewise.
3212         (dict_create_hashed_expandable): Likewise.
3213         (dict_create_linear): Likewise.
3214         (dict_create_linear_expandable): Likewise.
3215         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3216         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3217         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3218         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3219         (decode_frame_entry_1): Likewise.
3220         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3221         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3222         * dwarf2read.c (dwarf2_has_info): Likewise.
3223         (create_signatured_type_table_from_index): Likewise.
3224         (dwarf2_read_index): Likewise.
3225         (dw2_get_file_names_reader): Likewise.
3226         (create_all_type_units): Likewise.
3227         (read_cutu_die_from_dwo): Likewise.
3228         (init_tu_and_read_dwo_dies): Likewise.
3229         (init_cutu_and_read_dies): Likewise.
3230         (create_all_comp_units): Likewise.
3231         (queue_comp_unit): Likewise.
3232         (inherit_abstract_dies): Likewise.
3233         (read_call_site_scope): Likewise.
3234         (dwarf2_add_field): Likewise.
3235         (dwarf2_add_typedef): Likewise.
3236         (dwarf2_add_member_fn): Likewise.
3237         (attr_to_dynamic_prop): Likewise.
3238         (abbrev_table_alloc_abbrev): Likewise.
3239         (abbrev_table_read_table): Likewise.
3240         (add_include_dir): Likewise.
3241         (add_file_name): Likewise.
3242         (dwarf_decode_line_header): Likewise.
3243         (dwarf2_const_value_attr): Likewise.
3244         (dwarf_alloc_block): Likewise.
3245         (parse_macro_definition): Likewise.
3246         (set_die_type): Likewise.
3247         (write_psymtabs_to_index): Likewise.
3248         (create_cus_from_index): Likewise.
3249         (dwarf2_create_include_psymtab): Likewise.
3250         (process_psymtab_comp_unit_reader): Likewise.
3251         (build_type_psymtab_dependencies): Likewise.
3252         (read_comp_units_from_section): Likewise.
3253         (compute_compunit_symtab_includes): Likewise.
3254         (create_dwo_unit_in_dwp_v1): Likewise.
3255         (create_dwo_unit_in_dwp_v2): Likewise.
3256         (read_func_scope): Likewise.
3257         (process_structure_scope): Likewise.
3258         (mark_common_block_symbol_computed): Likewise.
3259         (load_partial_dies): Likewise.
3260         (dwarf2_symbol_mark_computed): Likewise.
3261         * elfread.c (elf_symfile_segments): Likewise.
3262         (elf_read_minimal_symbols): Likewise.
3263         * environ.c (make_environ): Likewise.
3264         * eval.c (evaluate_subexp_standard): Likewise.
3265         * event-loop.c (create_file_handler): Likewise.
3266         (create_async_signal_handler): Likewise.
3267         (create_async_event_handler): Likewise.
3268         (create_timer): Likewise.
3269         * exec.c (build_section_table): Likewise.
3270         * fbsd-nat.c (fbsd_remember_child): Likewise.
3271         * fork-child.c (fork_inferior): Likewise.
3272         * frv-tdep.c (new_variant): Likewise.
3273         * gdbarch.sh (gdbarch_alloc): Likewise.
3274         (append_name): Likewise.
3275         * gdbtypes.c (rank_function): Likewise.
3276         (copy_type_recursive): Likewise.
3277         (add_dyn_prop): Likewise.
3278         * gnu-nat.c (make_proc): Likewise.
3279         (make_inf): Likewise.
3280         (gnu_write_inferior): Likewise.
3281         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3282         (build_std_type_info_type): Likewise.
3283         * guile/scm-param.c (compute_enum_list): Likewise.
3284         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3285         * guile/scm-value.c (gdbscm_value_call): Likewise.
3286         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3287         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3288         (read_unwind_info): Likewise.
3289         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3290         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3291         (call_function_by_hand_dummy): Likewise.
3292         * infcmd.c (step_once): Likewise.
3293         (finish_forward): Likewise.
3294         (attach_command): Likewise.
3295         (notice_new_inferior): Likewise.
3296         * inferior.c (add_inferior_silent): Likewise.
3297         * infrun.c (add_displaced_stepping_state): Likewise.
3298         (save_infcall_control_state): Likewise.
3299         (save_inferior_ptid): Likewise.
3300         (_initialize_infrun): Likewise.
3301         * jit.c (bfd_open_from_target_memory): Likewise.
3302         (jit_gdbarch_data_init): Likewise.
3303         * language.c (add_language): Likewise.
3304         * linespec.c (decode_line_2): Likewise.
3305         * linux-nat.c (add_to_pid_list): Likewise.
3306         (add_initial_lwp): Likewise.
3307         * linux-thread-db.c (add_thread_db_info): Likewise.
3308         (record_thread): Likewise.
3309         (info_auto_load_libthread_db): Likewise.
3310         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3311         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3312         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3313         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3314         * macrocmd.c (macro_define_command): Likewise.
3315         * macroexp.c (gather_arguments): Likewise.
3316         * macroscope.c (sal_macro_scope): Likewise.
3317         * macrotab.c (new_macro_table): Likewise.
3318         * mdebugread.c (push_parse_stack): Likewise.
3319         (parse_partial_symbols): Likewise.
3320         (parse_symbol): Likewise.
3321         (psymtab_to_symtab_1): Likewise.
3322         (new_block): Likewise.
3323         (new_psymtab): Likewise.
3324         (mdebug_build_psymtabs): Likewise.
3325         (add_pending): Likewise.
3326         (elfmdebug_build_psymtabs): Likewise.
3327         * mep-tdep.c (mep_gdbarch_init): Likewise.
3328         * mi/mi-main.c (mi_execute_command): Likewise.
3329         * mi/mi-parse.c (mi_parse_argv): Likewise.
3330         * minidebug.c (lzma_open): Likewise.
3331         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3332         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3333         * mips-tdep.c (mips_gdbarch_init): Likewise.
3334         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3335         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3336         * mt-tdep.c (mt_registers_info): Likewise.
3337         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3338         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3339         (linux_enable_pt): Likewise.
3340         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3341         (linux_xfer_osdata_processgroups): Likewise.
3342         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3343         * nto-procfs.c (procfs_meminfo): Likewise.
3344         * objc-lang.c (start_msglist): Likewise.
3345         (selectors_info): Likewise.
3346         (classes_info): Likewise.
3347         (find_methods): Likewise.
3348         * objfiles.c (allocate_objfile): Likewise.
3349         (update_section_map): Likewise.
3350         * osabi.c (gdbarch_register_osabi): Likewise.
3351         (gdbarch_register_osabi_sniffer): Likewise.
3352         * parse.c (start_arglist): Likewise.
3353         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3354         (hwdebug_insert_point): Likewise.
3355         * printcmd.c (display_command): Likewise.
3356         (ui_printf): Likewise.
3357         * procfs.c (create_procinfo): Likewise.
3358         (load_syscalls): Likewise.
3359         (proc_get_LDT_entry): Likewise.
3360         (proc_update_threads): Likewise.
3361         * prologue-value.c (make_pv_area): Likewise.
3362         (pv_area_store): Likewise.
3363         * psymtab.c (extend_psymbol_list): Likewise.
3364         (init_psymbol_list): Likewise.
3365         (allocate_psymtab): Likewise.
3366         * python/py-inferior.c (add_thread_object): Likewise.
3367         * python/py-param.c (compute_enum_values): Likewise.
3368         * python/py-value.c (valpy_call): Likewise.
3369         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3370         * python/python.c (ensure_python_env): Likewise.
3371         * record-btrace.c (record_btrace_start_replaying): Likewise.
3372         * record-full.c (record_full_reg_alloc): Likewise.
3373         (record_full_mem_alloc): Likewise.
3374         (record_full_end_alloc): Likewise.
3375         (record_full_core_xfer_partial): Likewise.
3376         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3377         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3378         * remote-notif.c (remote_notif_state_allocate): Likewise.
3379         * remote.c (demand_private_info): Likewise.
3380         (remote_notif_stop_alloc_reply): Likewise.
3381         (remote_enable_btrace): Likewise.
3382         * reverse.c (save_bookmark_command): Likewise.
3383         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3384         * rx-tdep.c (rx_gdbarch_init): Likewise.
3385         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3386         * ser-go32.c (dos_get_tty_state): Likewise.
3387         (dos_copy_tty_state): Likewise.
3388         * ser-mingw.c (ser_windows_open): Likewise.
3389         (ser_console_wait_handle): Likewise.
3390         (ser_console_get_tty_state): Likewise.
3391         (make_pipe_state): Likewise.
3392         (net_windows_open): Likewise.
3393         * ser-unix.c (hardwire_get_tty_state): Likewise.
3394         (hardwire_copy_tty_state): Likewise.
3395         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3396         * solib-dsbt.c (dsbt_current_sos): Likewise.
3397         (dsbt_relocate_main_executable): Likewise.
3398         * solib-frv.c (frv_current_sos): Likewise.
3399         (frv_relocate_main_executable): Likewise.
3400         * solib-spu.c (spu_bfd_fopen): Likewise.
3401         * solib-svr4.c (lm_info_read): Likewise.
3402         (svr4_copy_library_list): Likewise.
3403         (svr4_default_sos): Likewise.
3404         * source.c (find_source_lines): Likewise.
3405         (line_info): Likewise.
3406         (add_substitute_path_rule): Likewise.
3407         * spu-linux-nat.c (spu_bfd_open): Likewise.
3408         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3409         * stabsread.c (dbx_lookup_type): Likewise.
3410         (read_type): Likewise.
3411         (read_member_functions): Likewise.
3412         (read_struct_fields): Likewise.
3413         (read_baseclasses): Likewise.
3414         (read_args): Likewise.
3415         (_initialize_stabsread): Likewise.
3416         * stack.c (func_command): Likewise.
3417         * stap-probe.c (handle_stap_probe): Likewise.
3418         * symfile.c (addrs_section_sort): Likewise.
3419         (addr_info_make_relative): Likewise.
3420         (load_section_callback): Likewise.
3421         (add_symbol_file_command): Likewise.
3422         (init_filename_language_table): Likewise.
3423         * symtab.c (create_filename_seen_cache): Likewise.
3424         (sort_search_symbols_remove_dups): Likewise.
3425         (search_symbols): Likewise.
3426         * target.c (make_cleanup_restore_target_terminal): Likewise.
3427         * thread.c (new_thread): Likewise.
3428         (enable_thread_stack_temporaries): Likewise.
3429         (make_cleanup_restore_current_thread): Likewise.
3430         (thread_apply_all_command): Likewise.
3431         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3432         * top.c (gdb_readline_wrapper): Likewise.
3433         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3434         * tracepoint.c (trace_find_line_command): Likewise.
3435         (all_tracepoint_actions_and_cleanup): Likewise.
3436         (make_cleanup_restore_current_traceframe): Likewise.
3437         (get_uploaded_tp): Likewise.
3438         (get_uploaded_tsv): Likewise.
3439         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3440         (tui_alloc_win_info): Likewise.
3441         (tui_alloc_content): Likewise.
3442         (tui_add_content_elements): Likewise.
3443         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3444         (tui_set_disassem_content): Likewise.
3445         * ui-file.c (ui_file_new): Likewise.
3446         (stdio_file_new): Likewise.
3447         (tee_file_new): Likewise.
3448         * utils.c (make_cleanup_restore_integer): Likewise.
3449         (add_internal_problem_command): Likewise.
3450         * v850-tdep.c (v850_gdbarch_init): Likewise.
3451         * valops.c (find_oload_champ): Likewise.
3452         * value.c (allocate_value_lazy): Likewise.
3453         (record_latest_value): Likewise.
3454         (create_internalvar): Likewise.
3455         * varobj.c (install_variable): Likewise.
3456         (new_variable): Likewise.
3457         (new_root_variable): Likewise.
3458         (cppush): Likewise.
3459         (_initialize_varobj): Likewise.
3460         * windows-nat.c (windows_make_so): Likewise.
3461         * x86-nat.c (x86_add_process): Likewise.
3462         * xcoffread.c (arrange_linetable): Likewise.
3463         (allocate_include_entry): Likewise.
3464         (process_linenos): Likewise.
3465         (SYMBOL_DUP): Likewise.
3466         (xcoff_start_psymtab): Likewise.
3467         (xcoff_end_psymtab): Likewise.
3468         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3469         * xtensa-tdep.c (xtensa_register_type): Likewise.
3470         * gdbarch.c: Regenerate.
3471         * gdbarch.h: Regenerate.
3472
3473 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3474
3475         * infrun.c (follow_exec): Re-order operations for
3476         handling follow-exec-mode "new".
3477         (handle_inferior_event_1): Assign ecs->event_thread
3478         to the current thread.
3479         * remote.c (get_remote_arch_state): Add an assertion.
3480
3481 2015-08-26  Pedro Alves  <palves@redhat.com>
3482
3483         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3484
3485 2015-08-25  Pedro Alves  <palves@redhat.com>
3486
3487         PR gdb/18804
3488         * defs.h (maybe_quit): Declare.
3489         (QUIT): Now calls maybe_quit.
3490         * event-loop.c (clear_async_signal_handler)
3491         (async_signal_handler_is_marked): New functions.
3492         * event-loop.h (async_signal_handler_is_marked)
3493         (clear_async_signal_handler): New declarations.
3494         * remote.c (remote_check_pending_interrupt): New function.
3495         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3496         longer check whether the target is async.  If waiting for a stop
3497         reply, and a Ctrl-C as been sent to the target, offer to
3498         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3499         Otherwise do not disconnect and throw a quit.
3500         (_initialize_remote): Install remote_check_pending_interrupt as
3501         to_check_pending_interrupt.
3502         * target.c (target_check_pending_interrupt): New function.
3503         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3504         field.
3505         (target_check_pending_interrupt): New declaration.
3506         * utils.c (maybe_quit): New function.
3507         * target-delegates.c: Regenerate.
3508
3509 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3510
3511         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3512         Rename local variable pid to tid, and get lwpid of lwp.  Update
3513         debug output.
3514
3515 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3516
3517         * ada-lang.c (ada_read_var_value): Add a var_block argument
3518         and pass it to default_read_var_value.
3519         * block.c (block_static_link): New accessor.
3520         * block.h (block_static_link): Declare it.
3521         * buildsym.c (finish_block_internal): Add a static_link
3522         argument.  If there is a static link, associate it to the new
3523         block.
3524         (finish_block): Add a static link argument and pass it to
3525         finish_block_internal.
3526         (end_symtab_get_static_block): Update calls to finish_block and
3527         to finish_block_internal.
3528         (end_symtab_with_blockvector): Update call to
3529         finish_block_internal.
3530         * buildsym.h: Forward-declare struct dynamic_prop.
3531         (struct context_stack): Add a static_link field.
3532         (finish_block): Add a static link argument.
3533         * c-exp.y: Remove an obsolete comment (evaluation of variables
3534         already start from the selected frame, and now they climb *up*
3535         the call stack) and propagate the block information to the
3536         produced expression.
3537         * d-exp.y: Likewise.
3538         * f-exp.y: Likewise.
3539         * go-exp.y: Likewise.
3540         * jv-exp.y: Likewise.
3541         * m2-exp.y: Likewise.
3542         * p-exp.y: Likewise.
3543         * coffread.c (coff_symtab_read): Update calls to finish_block.
3544         * dbxread.c (process_one_symbol): Likewise.
3545         * xcoffread.c (read_xcoff_symtab): Likewise.
3546         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3547         "sym" parameter to struct block_symbol, update its uses and pass
3548         its block to calls to read_var_value.
3549         (convert_symbol_sym): Update the calls to convert_one_symbol.
3550         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3551         call to read_var_value.
3552         * dwarf2loc.c (block_op_get_frame_base): New.
3553         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3554         get_frame_base method.
3555         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3556         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3557         instead of the selected frame in order to evaluate the
3558         expression.
3559         (dwarf2_evaluate_property): Add a frame argument.  Update call
3560         to dwarf2_locexpr_baton_eval to provide a frame in available and
3561         to handle the absence of address stack.
3562         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3563         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3564         declaration.
3565         (read_func_scope): Record any available static link description.
3566         Update call to finish_block.
3567         (read_lexical_block_scope): Update call to finish_block.
3568         * findvar.c (follow_static_link): New.
3569         (get_hosting_frame): New.
3570         (default_read_var_value): Add a var_block argument.  Use
3571         get_hosting_frame to handle non-local references.
3572         (read_var_value): Add a var_block argument and pass it to the
3573         LA_READ_VAR_VALUE method.
3574         * gdbtypes.c (resolve_dynamic_range): Update calls to
3575         dwarf2_evaluate_property.
3576         (resolve_dynamic_type_internal): Likewise.
3577         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3578         read_var_value, passing it the block coming from symbol lookup.
3579         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3580         read_var_value (TODO).
3581         * infcmd.c (finish_command_continuation): Update call to
3582         read_var_value, passing it the block coming from symbol lookup.
3583         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3584         * language.h (struct language_defn): Add a var_block argument to
3585         the LA_READ_VAR_VALUE method.
3586         * objfiles.c (struct static_link_htab_entry): New.
3587         (static_link_htab_entry_hash): New.
3588         (static_link_htab_entry_eq): New.
3589         (objfile_register_static_link): New.
3590         (objfile_lookup_static_link): New.
3591         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3592         * objfiles.h: Include hashtab.h.
3593         (struct objfile): Add a static_links field.
3594         (objfile_register_static_link): New.
3595         (objfile_lookup_static_link): New.
3596         * printcmd.c (print_variable_and_value): Update call to
3597         read_var_value.
3598         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3599         * python/py-frame.c (frapy_read_var): Update call to
3600         read_var_value, passing it the block coming from symbol lookup.
3601         * python/py-framefilter.c (extract_sym): Add a sym_block
3602         parameter and set the pointed value to NULL (TODO).
3603         (enumerate_args): Update call to extract_sym.
3604         (enumerate_locals): Update calls to extract_sym and to
3605         read_var_value.
3606         * python/py-symbol.c (sympy_value): Update call to
3607         read_var_value (TODO).
3608         * stack.c (read_frame_local): Update call to read_var_value.
3609         (read_frame_arg): Likewise.
3610         (return_command): Likewise.
3611         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3612         method.
3613         (struct symbol): Add a block field.
3614         (SYMBOL_BLOCK): New accessor.
3615         * valops.c (value_of_variable): Remove frame/block handling and
3616         pass the block argument to read_var_value, which does this job
3617         now.
3618         (value_struct_elt_for_reference): Update calls to
3619         read_var_value.
3620         (value_of_this): Pass the block found to read_var_value.
3621         * value.h (read_var_value): Add a var_block argument.
3622         (default_read_var_value): Likewise.
3623
3624 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3625
3626         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3627         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3628         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3629
3630 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3631
3632         * Makefile.in (aarch64-liunx.o): New rule.
3633         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3634         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3635         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3636         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3637         extern.
3638         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3639         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3640         * nat/aarch64-linux.c: New file.
3641         * nat/aarch64-linux.h: New file.
3642
3643 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3644
3645         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3646         lwp_arch_private_info and ptid_of_lwp.
3647
3648 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3649
3650         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3651         Move it to nat/aarch64-linux-hw-point.c.
3652         (debug_reg_change_callback): Likewise.
3653         (aarch64_notify_debug_reg_change): :Likewise.
3654         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3655         (aarch64_dr_update_callback_param): New.
3656         (debug_reg_change_callback): New function.
3657         (aarch64_notify_debug_reg_change): Likewise.
3658         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3659         Remove the declaration.
3660
3661 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3662
3663         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3664         Call current_lwp_ptid.
3665
3666 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3667
3668         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3669         debug_printf.
3670
3671 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3672
3673         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3674         ptid_get_pid rather than ptid_get_lwp.
3675
3676 2015-08-24  Pedro Alves  <palves@redhat.com>
3677
3678         * NEWS (New commands): Mention set/show remote
3679         multiprocess-extensions-packet.
3680         * remote.c (remote_query_supported): Only tell the server to use
3681         the multiprocess extensions if the user hasn't force-disabled them
3682         with "set remote multiprocess-extensions-packet off".
3683
3684 2015-08-24  Pedro Alves  <palves@redhat.com>
3685
3686         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3687         1029a8112290f6eee9d7878a391c49db42c999bd.
3688         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3689         Regenerate.
3690         * gnulib/import/Makefile.am: Update.
3691         * gnulib/import/Makefile.in: Update.
3692         * gnulib/import/alloca.in.h: Update.
3693         * gnulib/import/basename-lgpl.c: Update.
3694         * gnulib/import/canonicalize-lgpl.c: Update.
3695         * gnulib/import/config.charset: Update.
3696         * gnulib/import/dirent.in.h: Update.
3697         * gnulib/import/dirfd.c: Update.
3698         * gnulib/import/dirname-lgpl.c: Update.
3699         * gnulib/import/dirname.h: Update.
3700         * gnulib/import/dosname.h: Update.
3701         * gnulib/import/errno.in.h: Update.
3702         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3703         * gnulib/import/extra/snippet/c++defs.h: Update.
3704         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3705         * gnulib/import/extra/update-copyright: Update.
3706         * gnulib/import/float+.h: Update.
3707         * gnulib/import/float.c: Update.
3708         * gnulib/import/float.in.h: Update.
3709         * gnulib/import/fnmatch.c: Update.
3710         * gnulib/import/fnmatch.in.h: Update.
3711         * gnulib/import/fnmatch_loop.c: Update.
3712         * gnulib/import/fpucw.h: Update.
3713         * gnulib/import/frexp.c: Update.
3714         * gnulib/import/frexpl.c: Update.
3715         * gnulib/import/gettimeofday.c: Update.
3716         * gnulib/import/inttypes.in.h: Update.
3717         * gnulib/import/isnan.c: Update.
3718         * gnulib/import/isnand-nolibm.h: Update.
3719         * gnulib/import/isnand.c: Update.
3720         * gnulib/import/isnanl-nolibm.h: Update.
3721         * gnulib/import/isnanl.c: Update.
3722         * gnulib/import/itold.c: Update.
3723         * gnulib/import/localcharset.c: Update.
3724         * gnulib/import/localcharset.h: Update.
3725         * gnulib/import/lstat.c: Update.
3726         * gnulib/import/m4/00gnulib.m4: Update.
3727         * gnulib/import/m4/absolute-header.m4: Update.
3728         * gnulib/import/m4/alloca.m4: Update.
3729         * gnulib/import/m4/canonicalize.m4: Update.
3730         * gnulib/import/m4/codeset.m4: Update.
3731         * gnulib/import/m4/configmake.m4: Update.
3732         * gnulib/import/m4/dirent_h.m4: Update.
3733         * gnulib/import/m4/dirfd.m4: Update.
3734         * gnulib/import/m4/dirname.m4: Update.
3735         * gnulib/import/m4/double-slash-root.m4: Update.
3736         * gnulib/import/m4/eealloc.m4: Update.
3737         * gnulib/import/m4/errno_h.m4: Update.
3738         * gnulib/import/m4/exponentd.m4: Update.
3739         * gnulib/import/m4/exponentl.m4: Update.
3740         * gnulib/import/m4/extensions.m4: Update.
3741         * gnulib/import/m4/extern-inline.m4: Update.
3742         * gnulib/import/m4/fcntl-o.m4: Update.
3743         * gnulib/import/m4/float_h.m4: Update.
3744         * gnulib/import/m4/fnmatch.m4: Update.
3745         * gnulib/import/m4/fpieee.m4: Update.
3746         * gnulib/import/m4/frexp.m4: Update.
3747         * gnulib/import/m4/frexpl.m4: Update.
3748         * gnulib/import/m4/gettimeofday.m4: Update.
3749         * gnulib/import/m4/glibc21.m4: Update.
3750         * gnulib/import/m4/gnulib-cache.m4: Update.
3751         * gnulib/import/m4/gnulib-common.m4: Update.
3752         * gnulib/import/m4/gnulib-comp.m4: Update.
3753         * gnulib/import/m4/gnulib-tool.m4: Update.
3754         * gnulib/import/m4/include_next.m4: Update.
3755         * gnulib/import/m4/inttypes-pri.m4: Update.
3756         * gnulib/import/m4/inttypes.m4: Update.
3757         * gnulib/import/m4/isnand.m4: Update.
3758         * gnulib/import/m4/isnanl.m4: Update.
3759         * gnulib/import/m4/largefile.m4: Update.
3760         * gnulib/import/m4/localcharset.m4: Update.
3761         * gnulib/import/m4/locale-fr.m4: Update.
3762         * gnulib/import/m4/locale-ja.m4: Update.
3763         * gnulib/import/m4/locale-zh.m4: Update.
3764         * gnulib/import/m4/longlong.m4: Update.
3765         * gnulib/import/m4/lstat.m4: Update.
3766         * gnulib/import/m4/malloc.m4: Update.
3767         * gnulib/import/m4/malloca.m4: Update.
3768         * gnulib/import/m4/math_h.m4: Update.
3769         * gnulib/import/m4/mbrtowc.m4: Update.
3770         * gnulib/import/m4/mbsinit.m4: Update.
3771         * gnulib/import/m4/mbsrtowcs.m4: Update.
3772         * gnulib/import/m4/mbstate_t.m4: Update.
3773         * gnulib/import/m4/memchr.m4: Update.
3774         * gnulib/import/m4/memmem.m4: Update.
3775         * gnulib/import/m4/mmap-anon.m4: Update.
3776         * gnulib/import/m4/multiarch.m4: Update.
3777         * gnulib/import/m4/nocrash.m4: Update.
3778         * gnulib/import/m4/off_t.m4: Update.
3779         * gnulib/import/m4/pathmax.m4: Update.
3780         * gnulib/import/m4/readlink.m4: Update.
3781         * gnulib/import/m4/rename.m4: Update.
3782         * gnulib/import/m4/rmdir.m4: Update.
3783         * gnulib/import/m4/ssize_t.m4: Update.
3784         * gnulib/import/m4/stat.m4: Update.
3785         * gnulib/import/m4/stdbool.m4: Update.
3786         * gnulib/import/m4/stddef_h.m4: Update.
3787         * gnulib/import/m4/stdint.m4: Update.
3788         * gnulib/import/m4/stdio_h.m4: Update.
3789         * gnulib/import/m4/stdlib_h.m4: Update.
3790         * gnulib/import/m4/string_h.m4: Update.
3791         * gnulib/import/m4/strstr.m4: Update.
3792         * gnulib/import/m4/strtok_r.m4: Update.
3793         * gnulib/import/m4/sys_socket_h.m4: Update.
3794         * gnulib/import/m4/sys_stat_h.m4: Update.
3795         * gnulib/import/m4/sys_time_h.m4: Update.
3796         * gnulib/import/m4/sys_types_h.m4: Update.
3797         * gnulib/import/m4/time_h.m4: Update.
3798         * gnulib/import/m4/unistd_h.m4: Update.
3799         * gnulib/import/m4/warn-on-use.m4: Update.
3800         * gnulib/import/m4/wchar_h.m4: Update.
3801         * gnulib/import/m4/wchar_t.m4: Update.
3802         * gnulib/import/m4/wctype_h.m4: Update.
3803         * gnulib/import/m4/wint_t.m4: Update.
3804         * gnulib/import/malloc.c: Update.
3805         * gnulib/import/malloca.c: Update.
3806         * gnulib/import/malloca.h: Update.
3807         * gnulib/import/math.in.h: Update.
3808         * gnulib/import/mbrtowc.c: Update.
3809         * gnulib/import/mbsinit.c: Update.
3810         * gnulib/import/mbsrtowcs-impl.h: Update.
3811         * gnulib/import/mbsrtowcs-state.c: Update.
3812         * gnulib/import/mbsrtowcs.c: Update.
3813         * gnulib/import/memchr.c: Update.
3814         * gnulib/import/memmem.c: Update.
3815         * gnulib/import/pathmax.h: Update.
3816         * gnulib/import/readlink.c: Update.
3817         * gnulib/import/ref-add.sin: Update.
3818         * gnulib/import/ref-del.sin: Update.
3819         * gnulib/import/rename.c: Update.
3820         * gnulib/import/rmdir.c: Update.
3821         * gnulib/import/same-inode.h: Update.
3822         * gnulib/import/stat.c: Update.
3823         * gnulib/import/stdbool.in.h: Update.
3824         * gnulib/import/stddef.in.h: Update.
3825         * gnulib/import/stdint.in.h: Update.
3826         * gnulib/import/stdio.c: Update.
3827         * gnulib/import/stdio.in.h: Update.
3828         * gnulib/import/stdlib.in.h: Update.
3829         * gnulib/import/str-two-way.h: Update.
3830         * gnulib/import/streq.h: Update.
3831         * gnulib/import/string.in.h: Update.
3832         * gnulib/import/stripslash.c: Update.
3833         * gnulib/import/strnlen1.c: Update.
3834         * gnulib/import/strnlen1.h: Update.
3835         * gnulib/import/strstr.c: Update.
3836         * gnulib/import/strtok_r.c: Update.
3837         * gnulib/import/sys_stat.in.h: Update.
3838         * gnulib/import/sys_time.in.h: Update.
3839         * gnulib/import/sys_types.in.h: Update.
3840         * gnulib/import/time.in.h: Update.
3841         * gnulib/import/unistd.in.h: Update.
3842         * gnulib/import/verify.h: Update.
3843         * gnulib/import/wchar.in.h: Update.
3844         * gnulib/import/wctype.in.h: Update.
3845         * gnulib/import/gettimeofday.c: New file.
3846         * gnulib/import/m4/absolute-header.m4: New file.
3847         * gnulib/import/m4/gettimeofday.m4: New file.
3848         * gnulib/import/m4/sys_socket_h.m4: New file.
3849         * gnulib/import/m4/sys_time_h.m4: New file.
3850         * gnulib/import/stdio.c: Delete file.
3851         * gnulib/import/sys_time.in.h: New file.
3852
3853 2015-08-24  Pedro Alves  <palves@redhat.com>
3854
3855         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3856         * common/gdb_sys_time.h: New file.
3857         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3858         * gdb_select.h: Likewise.
3859         * gdb_usleep.c: Likewise.
3860         * maint.c: Likewise.
3861         * mi/mi-main.c: Likewise.
3862         * mi/mi-parse.h: Likewise.
3863         * remote-fileio.c: Likewise.
3864         * remote-m32r-sdi.c: Likewise.
3865         * remote.c: Likewise.
3866         * ser-base.c: Likewise.
3867         * ser-pipe.c: Likewise.
3868         * ser-tcp.c: Likewise.
3869         * ser-unix.c: Likewise.
3870         * symfile.c: Likewise.
3871         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3872         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3873         * utils.c: Likewise.
3874
3875 2015-08-24  Pedro Alves  <palves@redhat.com>
3876
3877         * NEWS: Mention removed support for the various ROM monitors.
3878         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3879         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3880         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3881         gdb_target_obs.
3882         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3883         gdb_target_obs.
3884         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3885         dsrec.o from gdb_target_obs.
3886         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3887         from gdb_target_obs.
3888         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3889         gdb_target_obs.
3890         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3891         dink32-rom.o from gdb_target_obs.
3892         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3893         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3894         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3895         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3896
3897 2015-08-21  Pedro Alves  <palves@redhat.com>
3898
3899         * frame.c (null_frame_id): Explicitly zero-initialize.
3900
3901 2015-08-21  Tom Tromey  <tromey@redhat.com>
3902
3903         * dwarf2read.c (struct dwarf2_section_info): Rename field
3904         'asection' to 'section'.
3905         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3906         (dwarf2_locate_sections, dwarf2_locate_sections)
3907         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3908         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3909         (dwarf2_locate_v2_dwp_sections): Adjust.
3910
3911 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3912
3913         * top.h (gdb_in_secondary_prompt_p): Declare.
3914         * top.c (gdb_secondary_prompt_depth): Define.
3915         (gdb_in_secondary_prompt_p): Define.
3916         (gdb_readline_wrapper_cleanup): Decrement
3917         gdb_secondary_prompt_depth.
3918         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3919         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3920         are in a secondary prompt.
3921
3922 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3923
3924         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3925         emit the newline.
3926
3927 2015-08-21  Gary Benson  <gbenson@redhat.com>
3928
3929         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3930
3931 2015-08-21  Gary Benson  <gbenson@redhat.com>
3932
3933         * target.h (struct target_ops) <to_fileio_open>: New argument
3934         warn_if_slow.  Update comment.  All implementations updated.
3935         (target_fileio_open_warn_if_slow): New declaration.
3936         * target.c (target_fileio_open): Renamed as...
3937         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3938         Pass warn_if_slow to implementation.  Update debug printing.
3939         (target_fileio_open): New function.
3940         (target_fileio_open_warn_if_slow): Likewise.
3941         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3942         target_fileio_open_warn_if_slow.
3943
3944 2015-08-21  Gary Benson  <gbenson@redhat.com>
3945
3946         * nat/linux-namespaces.c (linux_mntns_access_fs):
3947         Do not overwrite old_chain.
3948
3949 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3950
3951         * arch/xtensa.h: New file.
3952         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3953         (ps_get_thread_area): New function.
3954         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3955         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3956         * xtensa-tdep.c (osabi.h): New #include.
3957         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3958         xtensa-specific hooks.
3959         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3960         member and move the structure to arch/xtensa.h.
3961
3962 2015-08-21  Pedro Alves  <palves@redhat.com>
3963
3964         * remote.c (struct readahead_cache): New.
3965         (struct remote_state) <readahead_cache>: New field.
3966         (remote_open_1): Invalidate the cache.
3967         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3968         functions.
3969         (remote_hostio_pwrite): Invalidate the readahead cache.
3970         (remote_hostio_pread): Rename to ...
3971         (remote_hostio_pread_vFile): ... this.
3972         (remote_hostio_pread_from_cache): New function.
3973         (remote_hostio_pread): Reimplement.
3974         (remote_hostio_close): Invalidate the readahead cache.
3975
3976 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3977
3978         PR build/18843
3979         * procfs.c: Include "filestuff.h".
3980
3981 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3982
3983         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3984         curch.
3985         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3986         cur_line or curch, instead call wmove().
3987         (init_win_info) [CMD_WIN]: Likewise.
3988         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3989         instead call getcury().
3990         (tui_redisplay_readline): Don't set cur_line or curch.
3991         (tui_mld_erase_entire_line): Don't read cur_line, instead call
3992         getcury().
3993         (tui_cont_sig): Remove call to wmove.
3994         (tui_getc): Don't read cur_line or curch, instead call getcury()
3995         or getyx().  Don't set curch.
3996         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3997         set cur_line or curch.  Always move cursor to (0,0).
3998
3999 2015-08-20  Pedro Alves  <palves@redhat.com>
4000
4001         * infrun.c (print_target_wait_results): Make extern.
4002         * infrun.h (print_target_wait_results): Declare.
4003         * remote.c (set_stop_requested_callback): Delete.
4004         (process_initial_stop_replies): New function.
4005         (remote_start_remote): Use it.
4006         (stop_reply_queue_length): New function.
4007
4008 2015-08-20  Pedro Alves  <palves@redhat.com>
4009
4010         * dwarf2read.c (process_full_comp_unit): To tell whether
4011         start_subfile managed to deduce a language, test for
4012         language_unknown instead of language_c.
4013
4014 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4015
4016         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4017         matches attributes.
4018
4019 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4020
4021         * dwarf2read.c (dwarf2_string_attr): New function.
4022         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4023         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4024         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4025         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4026         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4027
4028 2015-08-18  Doug Evans  <dje@google.com>
4029             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4030
4031         PR mi/18833
4032         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4033         if MI-like.
4034         * mi/mi-out.c: #include "vec.h".
4035         (ui_filep): New type.
4036         (DEV_VEC_P (ui_filep)): New type.
4037         (struct ui_out_data) <buffer, original_buffer>: Delete.
4038         (struct ui_out_data) <streams>: New member.
4039         (mi_ui_out_impl): Add data_destroy field.
4040         (mi_field_string, mi_field_fmt): Update.
4041         (mi_flush, mi_redirect, field_separator): Update.
4042         (mi_open, mi_close): Update.
4043         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4044         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4045         (mi_out_new): Call mi_out_data_ctor.
4046
4047 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4048
4049         * remote.c (strprefix): New.
4050         (remote_parse_stop_reply): Use strprefix instead of strncmp
4051         to ensure exact match of keyword.
4052
4053 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4054
4055         * gdb_bfd.c (debug_bfd_cache): New variable.
4056         (show_bfd_cache_debug): New function.
4057         (gdb_bfd_open): Add debug logging.
4058         (gdb_bfd_ref): Likewise.
4059         (gdb_bfd_unref): Likewise.
4060         (_initialize_gdb_bfd): Add new set/show command.
4061         * NEWS: Mention new command.
4062
4063 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4064
4065         * gdb_bfd.c (bfd_sharing): New variable.
4066         (show_bfd_sharing): New function.
4067         (gdb_bfd_open): Check bfd_sharing variable.
4068         (_initialize_gdb_bfd): Add new set/show command.
4069         * NEWS: Mention new command.
4070
4071 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4072
4073         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4074         field.
4075         (struct gdb_bfd_cache_search): Likewise.
4076         (eq_bfd): Compare the size, inode, and device id fields.
4077         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4078         (gdb_bfd_ref): Likewise.
4079         (gdb_bfd_unref): Likewise.
4080
4081 2015-08-18  Pedro Alves  <palves@redhat.com>
4082
4083         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4084         target implements to_always_non_stop_p, call it.
4085         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4086         (x86_linux_create_target): Install it as to_always_non_stop_p
4087         method.
4088
4089 2015-08-17  Doug Evans  <dje@google.com>
4090
4091         * ui-out.c (default_ui_out_impl): Add comment.
4092
4093 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4094
4095         * d-exp.y (type_aggregate_p): New function.
4096         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4097         (classify_inner_name): Likewise.
4098         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4099
4100 2015-08-15  Doug Evans  <xdje42@gmail.com>
4101
4102         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4103         updated.
4104         (add_psymbol_to_list): Ditto.
4105
4106 2015-08-15  Doug Evans  <xdje42@gmail.com>
4107
4108         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4109         updated.  Call end_psymtab_common.
4110         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4111         end_psymtab_common.
4112         (build_type_psymtabs_reader): Ditto.
4113         * psympriv.h (sort_pst_symbols): Delete.
4114         (end_psymtab_common): Declare.
4115         * psymtab.c (sort_pst_symbols): Make static.
4116         (end_psymtab_common): New function.
4117         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4118
4119 2015-08-15  Doug Evans  <xdje42@gmail.com>
4120
4121         * defs.h (LANGUAGE_BITS): Define.
4122         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4123         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4124         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4125         (minimal_symbol_type): Add nr_minsym_types.
4126         (MINSYM_TYPE_BITS): Define.
4127         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4128         (domain_enum_tag): Add NR_DOMAINS.
4129         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4130         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4131
4132 2015-08-15  Doug Evans  <xdje42@gmail.com>
4133
4134         * objfiles.h: Whitespace cleanup.
4135         * psympriv.h: Whitespace cleanup.
4136         * psymtab.c: Whitespace/coding convention cleanup.
4137
4138 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4139
4140         * inferior.c (detach_inferior_command): Don't call
4141         any_thread_of_process when pid is 0.
4142         (kill_inferior_command): Likewise.
4143
4144 2015-08-14  Doug Evans  <xdje42@gmail.com>
4145
4146         PR gdb/11833
4147         * NEWS: Document new /s modifier for the disassemble command.
4148         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4149         (_initialize_cli_cmds): Update online docs of disassemble command.
4150         * disasm.c: #include "source.h".
4151         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4152         All uses updated.
4153         (dis_line_entry): New struct.
4154         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4155         (allocate_dis_line_table): New functions.
4156         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4157         (dump_insns): New arg end_pc.  All callers updated.
4158         (do_mixed_source_and_assembly_deprecated): Renamed from
4159         do_mixed_source_and_assembly.  All callers updated.
4160         (do_mixed_source_and_assembly): New function.
4161         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4162         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4163         DISASSEMBLY_SOURCE.  All uses updated.
4164         (DISASSEMBLY_SOURCE): New macro.
4165         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4166
4167 2015-08-14  Keith Seitz  <keiths@redhat.com>
4168
4169         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4170         `typename' to `type_name' to avoid C++ reserved word.
4171
4172 2015-08-14  Keith Seitz  <keiths@redhat.com>
4173
4174         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4175         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4176         silence ARI errors.
4177
4178 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4179
4180         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4181         xstrprintf instead of malloc and sprintf.
4182         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4183         (lex_one_token): Likewise.
4184
4185 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4186
4187         * solib-svr4.c (read_program_header): Add base_addr argument to
4188         report the runtime address of the segment.
4189         (find_program_interpreter): Update read_program_header call to pass
4190         a NULL pointer for the new argument.
4191         (scan_dyntag): Add ptr_addr argument to report the runtime address
4192         of the tag payload.
4193         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4194         read_program_header to get the base address of the dynamic segment.
4195         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4196         read_program_header.
4197         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4198
4199 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4200
4201         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4202
4203 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4204
4205         * d-exp.y (%union): Add voidval.
4206         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4207         name in the lexing stage.
4208         (PostfixExpression): Move symbol completion handling in grammar here
4209         from PrimaryExpression.
4210         (PrimaryExpression): Move routines to handle resolving identifier
4211         tokens in the grammar here from push_expression_name.
4212         (IdentifierExp): Remove the handling of alternating '.' and identifier
4213         tokens.
4214         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4215         (BasicType): Remove C-style typename rules.
4216         (d_type_from_name, d_module_from_name, push_variable)
4217         (push_fieldnames, push_type_name, push_module_name)
4218         (push_expression_name): Remove.
4219         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4220         (token_and_value): New type.
4221         (token_fifo, popping, name_obstack): New globals.
4222         (classify_name): New function.
4223         (classify_inner_name): Likewise.
4224         (yylex): Likewise.
4225         (d_parse): Initialize token_fifo, popping and name_obstack.
4226
4227 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4228
4229         * Makefile.in (SFILES): Add d-namespace.c.
4230         (COMMON_OBS): Add d-namespace.o.
4231         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4232         la_lookup_symbol_nonlocal callback function pointer.
4233         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4234         (d_lookup_nested_symbol): New declaration.
4235         * d-namespace.c: New file.
4236
4237 2015-08-13  Pedro Alves  <palves@redhat.com>
4238
4239         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4240         cleanup after the decref cleanup, not before.
4241
4242 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4243
4244         * ada-lang.c: Include namespace.h
4245         (aux_add_nonlocal_symbols): Fix a function name in comment.
4246         (ada_add_block_renamings): New.
4247         (add_nonlocal_symbols): Add global renamings handling.
4248         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4249         to...
4250         (ada_add_all_symbols): ... this new function.
4251         (ada_add_block_symbols): Try to match the input name against the
4252         "using directives list", perform a recursive symbol lookup on
4253         the matched declarations.
4254         * block.h (struct block): Move the_namespace to top-level as
4255         namespace_info. Remove the language_specific field.
4256         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4257         * buildsym.h (using_directives): Rename into...
4258         (local_using_directives): ... this.
4259         (global_using_directives): New.
4260         (struct context_stack): Rename the using_directives field into
4261         local_using_directives.
4262         * buildsym.c (finish_block_internal): Deal with the proper
4263         using directives repository (local or global).
4264         (prepare_for_building): Reset local_using_directives. Assert
4265         that there is no pending global using directive.
4266         (reset_symtab_globals): Reset global_using_directives and
4267         local_using_directives.
4268         (end_symtab_get_static_block): Don't ignore symtabs that have
4269         only using directives.
4270         (push_context): Update references to local_using_directives.
4271         (buildsym_init): Do not reset using_directives.
4272         * cp-support.c: Include namespace.h.
4273         * cp-support.h (struct using_direct): Move to namespace.h.
4274         (cp_add_using_directives): Move to namespace.h.
4275         * cp-namespace.c: Include namespace.h
4276         (cp_add_using_directive): Move to namespace.c, rename it to
4277         add_using_directive, add a "using_directives" argument and use
4278         it as the pending using directives repository.  All callers
4279         updated.
4280         * dwarf2read.c (using_directives): New.
4281         (read_import_statement): Call using_directives.
4282         (read_func_scope): Update references to local_using_directives.
4283         (read_lexical_block_scope): Likewise.
4284         (read_namespace): Update the heading comment, call
4285         using_directives.
4286         * namespace.h: New file.
4287         * namespace.c: New file.
4288         * Makefile.in (SFILES): Add namespace.c.
4289         (COMMON_OBS): Add namespace.o
4290
4291 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4292
4293         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4294         compute RETADDR.
4295
4296 2015-08-12  Keith Seitz  <keiths@redhat.com>
4297
4298         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4299         reserved C++ keyword "explicit" to "explicit_loc".
4300         * breakpoint.c (create_overlay_event_breakpoint)
4301         (create_longjmp_master_breakpoint)
4302         (create_std_terminate_master_breakpoint)
4303         (create_exception_master_breakpoint, update_static_tracepoint):
4304         Rename reserved C++ keyword "explicit" to "explicit_loc".
4305         * completer.c (collect_explicit_location_matches)
4306         (explicit_location_completer): Rename reserved C++ keyword
4307         "explicit" to "explicit_loc".
4308         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4309         (canonicalize_linespec, create_sals_line_offset)
4310         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4311         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4312         "explicit" to "explicit_loc".
4313         * location.c (struct event_location) <explicit>: Rename to
4314         "explicit_loc".
4315         (initialize_explicit_location, new_explicit_location)
4316         (explicit_location_to_string_internal, explicit_location_to_linespec):
4317         Rename reserved C++ keyword "explicit" to "explicit_loc".
4318         * location.h (explicit_location_to_string)
4319         (explicit_location_to_linespec, initialize_explicit_location)
4320         (new_explicit_location): Rename reserved C++ keyword "explicit"
4321         to "explicit_loc".
4322         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4323         keyword "explicit" to "explicit_loc".
4324
4325 2015-08-12  Keith Seitz  <keiths@redhat.com>
4326
4327         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4328         and only call decode_line_1 when it is non-NULL.
4329
4330 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4331
4332         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4333         location address is not meaningful.
4334         (breakpoint_address_is_meaningful): Update comment.
4335
4336 2015-08-11  Keith Seitz  <keiths@redhat.com>
4337
4338         * NEWS: Mention explicit locations.
4339         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4340         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4341         (_initialize_breakpoint): Update documentation for
4342         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4343
4344 2015-08-11  Keith Seitz  <keiths@redhat.com>
4345
4346         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4347         explicit locations, options "--source", "--function",
4348         "--label", and "--line".
4349
4350 2015-08-11  Keith Seitz  <keiths@redhat.com>
4351
4352         * completer.c: Include location.h.
4353         (enum match_type): New enum.
4354         (location_completer): Rename to ...
4355         (linespec_completer): ... this.
4356         (collect_explicit_location_matches, backup_text_ptr)
4357         (explicit_location_completer): New functions.
4358         (location_completer): "New" function; handle linespec
4359         and explicit location completions.
4360         (complete_line_internal): Remove all location completer-specific
4361         handling.
4362         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4363         (find_toplevel_char): Export.
4364         (linespec_parse_line_offset): Export.
4365         Issue error if STRING is not numerical.
4366         (gdb_get_linespec_parser_quote_characters): New function.
4367         * linespec.h (linespec_parse_line_offset): Declare.
4368         (get_gdb_linespec_parser_quote_characters): Declare.
4369         (is_ada_operator): Declare.
4370         (find_toplevel_char): Declare.
4371         (linespec_lexer_lex_keyword): Declare.
4372         * location.c (explicit_to_event_location): New function.
4373         (explicit_location_lex_one): New function.
4374         (string_to_explicit_location): New function.
4375         (string_to_event_location): Handle explicit locations.
4376         * location.h (explicit_to_event_location): Declare.
4377         (string_to_explicit_location): Declare.
4378
4379 2015-08-11  Keith Seitz  <keiths@redhat.com>
4380
4381         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4382         linespec into explicit location.
4383         * breakpoint.c (create_overlay_breakpoint)
4384         (create_longjmp_master_breakpoint)
4385         (create_std_terminate_master_breakpoint)
4386         (create_exception_master_breakpoint): Convert linespec into explicit
4387         location.
4388         (update_static_tracepoint): Convert linespec into explicit location.
4389         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4390         location.h.
4391         (struct linespec) <expression, expr_pc, source_filename>
4392         <function_name, label_name, line_offset>: Replace with ...
4393         <explicit>: ... this.
4394         <is_linespec>: New member.
4395         (PARSER_EXPLICIT): New accessor macro.
4396         (undefined_label_error): New function.
4397         (source_file_not_found_error): New function.
4398         (linespec_parse_basic): The parser result is now an explicit location.
4399         Use PARSER_EXPLICIT to access it.
4400         Use undefined_label_error.
4401         (canonicalize_linespec): Convert canonical linespec into explicit
4402         location.
4403         Move string representation of location to explicit_location_to_linespec
4404         and use it and explicit_location_to_string to save string
4405         representations of the canonical location.
4406         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4407         explicit location.  Update all references.
4408         (convert_explicit_location_to_sals): New function.
4409         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4410         result's explicit location.
4411         (linespec_state_constructor): Initialize is_linespec.
4412         Use PARSER_EXPLICIT.
4413         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4414         result.
4415         (event_location_to_sals): For linespec locations, set is_linespec.
4416         Handle explicit locations.
4417         (decode_objc): 'ls' contains an explicit location now. Update all
4418         references.
4419         (symtabs_from_filename): Use source_file_not_found_error.
4420         * location.c (struct event_location.u) <explicit>: New member.
4421         (initialize_explicit_location): New function.
4422         (initialize_event_location): Initialize explicit locations.
4423         (new_explicit_location, get_explicit_location)
4424         (get_explicit_location_const): New functions.
4425         (explicit_to_string_internal): New function; most of contents moved
4426         from canonicalize_linespec.
4427         (explicit_location_to_string): New function.
4428         (explicit_location_to_linespec): New function.
4429         (copy_event_location, delete_event_location)
4430         (event_location_to_string_const, event_location_empty_p): Handle
4431         explicit locations.
4432         * location.h (enum offset_relative_sign, struct line_offset): Move
4433         here from linespec.h.
4434         (enum event_location_type): Add EXPLICIT_LOCATION.
4435         (struct explicit_location): New structure.
4436         (explicit_location_to_string): Declare.
4437         (explicit_location_to_linespec): Declare.
4438         (new_explicit_location, get_explicit_locationp
4439         (get_explicit_location_const, initialize_explicit_location): Declare.
4440
4441 2015-08-11  Keith Seitz  <keiths@redhat.com>
4442
4443         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4444         linespec for stap probe to probe location.
4445         * breakpoint.c (create_longjmp_master_breakpoint)
4446         (create_exception_master_breakpoint): Likewise.
4447         (break_command_1): Remove local variable `arg_cp'.
4448         Check location type to set appropriate breakpoint ops methods.
4449         (trace_command): Likewise.
4450         * linespec.c (event_location_to_sals): Assert on probe locations.
4451         * location.c (EL_PROBE): Add macro definition.
4452         (new_probe_location, get_probe_location): New functions.
4453         (copy_event_location, delete_event_location, event_location_to_string)
4454         (string_to_event_location, event_location_empty_p): Handle probe
4455         locations.
4456         * location.h (enum event_location_type): Add PROBE_LOCATION.
4457         (new_probe_location, get_probe_location): Declare.
4458         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4459         Convert linespec into probe location.
4460
4461 2015-08-11  Keith Seitz  <keiths@redhat.com>
4462
4463         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4464         Convert linespec to address location.
4465         * linespec.c (canonicalize_linespec): Do not handle address
4466         locations here.
4467         (convert_address_location_to_sals): New function; contents moved
4468         from ...
4469         (convert_linespc_to_sals): ... here.
4470         (parse_linespec): Remove address locations from linespec grammar.
4471         Remove handling of address locations.
4472         (linespec_lex_to_end): Remove handling of address linespecs.
4473         (event_location_to_sals): Handle ADDRESS_LOCATION.
4474         (linespec_expression_to_pc): Export.
4475         * linespec.h (linespec_expression_to_pc): Add declaration.
4476         * location.c (struct event_location.u) <address>: New member.
4477         (new_address_location, get_address_location): New functions.
4478         (copy_event_location, delete_event_location, event_location_to_string)
4479         (string_to_event_location, event_location_empty_p): Handle address
4480         locations.
4481         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4482         (new_address_location, get_address_location): Declare.
4483         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4484         to address location.
4485         * spu-tdep.c (spu_catch_start): Likewise.
4486
4487 2015-08-11  Keith Seitz  <keiths@redhat.com>
4488
4489         * ax-gdb.c: Include location.h.
4490         (agent_command_1) Use linespec location instead of address
4491         string.
4492         * break-catch-throw.c: Include location.h.
4493         (re_set_exception_catchpoint): Use linespec locations instead
4494         of address strings.
4495         * breakpoint.c: Include location.h.
4496         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4497         (create_std_terminate_master_breakpoint)
4498         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4499         Use linespec location instead of address string.
4500         (print_breakpoint_location):  Use locations and
4501         event_location_to_string.
4502         Print extra_string for pending locations for non-MI streams.
4503         (print_one_breakpoint_location): Use locations and
4504         event_location_to_string.
4505         (init_raw_breakpoint_without_location): Initialize b->location.
4506         (create_thread_event_breakpoint): Use linespec location instead of
4507         address string.
4508         (init_breakpoint_sal): Likewise.
4509         Only save extra_string if it is non-NULL and not the empty string.
4510         Use event_location_to_string instead of `addr_string'.
4511         Constify `p' and `endp'.
4512         Use skip_spaces_const/skip_space_const instead of non-const versions.
4513         Copy the location into the breakpoint.
4514         If LOCATION is NULL, save the breakpoint address as a linespec location
4515         instead of an address string.
4516         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4517         event_location. All uses updated.
4518         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4519         (parse_breakpoint_sals): Use locations instead of address strings.
4520         Remove check for empty linespec with conditional.
4521         Refactor.
4522         (decode_static_tracepoint_spec): Make argument const and update
4523         function.
4524         (create_breakpoint): Change `arg' to a struct event_location and
4525         rename.
4526         Remove `copy_arg' and `addr_start'.
4527         If EXTRA_STRING is empty, set it to NULL.
4528         Don't populate `canonical' for pending breakpoints.
4529         Pass `extra_string' to find_condition_and_thread.
4530         Clear `extra_string' if `rest' was NULL.
4531         Do not error with "garbage after location" if setting a dprintf
4532         breakpoint.
4533         Copy the location into the breakpoint instead of an address string.
4534         (break_command_1): Use string_to_event_location and pass this to
4535         create_breakpoint instead of an address string.
4536         Check against `arg_cp' for a probe linespec.
4537         (dprintf_command): Use string_to_event_location and pass this to
4538         create_breakpoint instead of an address string.
4539         Throw an exception if no format string was specified.
4540         (print_recreate_ranged_breakpoint): Use event_location_to_string
4541         instead of address strings.
4542         (break_range_command, until_break_command)
4543         (init_ada_exception_breakpoint): Use locations instead
4544         of address strings.
4545         (say_where): Print out extra_string for pending locations.
4546         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4547         the breakpoint.
4548         (base_breakpoint_create_sals_from_location): Use struct event_location
4549         instead of address string.
4550         Remove `addr_start' and `copy_arg' parameters.
4551         (base_breakpoint_decode_location): Use struct event_location instead of
4552         address string.
4553         (bkpt_re_set): Use locations instead of address strings.
4554         Use event_location_empty_p to check for unset location.
4555         (bkpt_print_recreate): Use event_location_to_string instead of
4556         an address string.
4557         Print out extra_string for pending locations.
4558         (bkpt_create_sals_from_location, bkpt_decode_location)
4559         (bkpt_probe_create_sals_from_location): Use struct event_location
4560         instead of address string.
4561         (bkpt_probe_decode_location): Use struct event_location instead of
4562         address string.
4563         (tracepoint_print_recreate): Use event_location_to_string to
4564         recreate the tracepoint.
4565         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4566         (tracepoint_probe_create_sals_from_location)
4567         (tracepoint_probe_decode_location): Use struct event_location
4568         instead of address string.
4569         (dprintf_print_recreate): Use event_location_to_string to recreate
4570         the dprintf.
4571         (dprintf_re_set): Remove check for valid/missing format string.
4572         (strace_marker_create_sals_from_location)
4573         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4574         (update_static_tracepoint): Use struct event_location instead of
4575         address string.
4576         (location_to_sals): Likewise.
4577         Pass `extra_string' to find_condition_and_thread.
4578         For newly resolved pending breakpoint locations, clear the location's
4579         string representation.
4580         Assert that the breakpoint's condition string is NULL when
4581         condition_not_parsed.
4582         (breakpoint_re_set_default, create_sals_from_location_default)
4583         (decode_location_default, trace_command, ftrace_command)
4584         (strace_command, create_tracepoint_from_upload): Use locations
4585         instead of address strings.
4586         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4587         Use struct event_location instead of address string.
4588         Update all uses.
4589         <decode_location>: Likewise.
4590         (struct breakpoint) <addr_string>: Change to struct event_location
4591         and rename `location'.
4592         <addr_string_range_end>: Change to struct event_location and rename
4593         `location_range_end'.
4594         (create_breakpoint): Use struct event_location instead of address
4595         string.
4596         * cli/cli-cmds.c: Include location.h.
4597         (edit_command, list_command): Use locations instead of address strings.
4598         * elfread.c: Include location.h.
4599         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4600         * guile/scm-breakpoint.c: Include location.h.
4601         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4602         (gdbscm_register_breakpoint): Use locations instead of address
4603         strings.
4604         * linespec.c: Include location.h.
4605         (struct ls_parser) <stream>: Change to const char *.
4606         (PARSER_STREAM): Update.
4607         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4608         keywords must be followed by whitespace.
4609         (canonicalize_linespec): Save a linespec location into `canonical'.
4610         Save a canonical linespec into `canonical'.
4611         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4612         All uses updated.
4613         Update function description.
4614         (linespec_parser_new): Initialize `parser'.
4615         Update initialization of  parsing stream.
4616         (event_location_to_sals): New function.
4617         (decode_line_full): Change `argptr' to a struct event_location and
4618         rename it `location'.
4619         Use locations instead of address strings.
4620         Call event_location_to_sals instead of parse_linespec.
4621         (decode_line_1): Likewise.
4622         (decode_line_with_current_source, decode_line_with_last_displayed)
4623         Use locations instead of address strings.
4624         (decode_objc): Likewise.
4625         Change `argptr' to const char * and rename `arg'.
4626         (destroy_linespec_result): Delete the linespec result's location
4627         instead of freeing the address string.
4628         * linespec.h (struct linespec_result) <addr_string>: Change to
4629         struct event_location and rename to ...
4630         <location>: ... this.
4631         (decode_line_1, decode_line_full): Change `argptr' to struct
4632         event_location.  All callers updated.
4633         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4634         (mi_cmd_break_insert_1): Use locations instead of address strings.
4635         Throw an error if there was "garbage" at the end of the specified
4636         linespec.
4637         * probe.c: Include location.h.
4638         (parse_probes): Change `argptr' to struct event_location.
4639         Use event locations instead of address strings.
4640         * probe.h (parse_probes): Change `argptr' to struct event_location.
4641         * python/py-breakpoint.c: Include location.h.
4642         (bppy_get_location): Constify local variable `str'.
4643         Use event_location_to_string.
4644         (bppy_init): Use locations instead of address strings.
4645         * python/py-finishbreakpoint.c: Include location.h.
4646         (bpfinishpy_init): Remove local variable `addr_str'.
4647         Use locations instead of address strings.
4648         * python/python.c: Include location.h.
4649         (gdbpy_decode_line): Use locations instead of address strings.
4650         * remote.c: Include location.h.
4651         (remote_download_tracepoint): Use locations instead of address
4652         strings.
4653         * spu-tdep.c: Include location.h.
4654         (spu_catch_start): Remove local variable `buf'.
4655         Use locations instead of address strings.
4656         * tracepoint.c: Include location.h.
4657         (scope_info): Use locations instead of address strings.
4658         (encode_source_string): Constify parameter `src'.
4659         * tracepoint.h (encode_source_string): Likewise.
4660
4661 2015-08-11  Keith Seitz  <keiths@redhat.com>
4662
4663         * Makefile.in (SFILES): Add location.c.
4664         (HFILES_NO_SRCDIR): Add location.h.
4665         (COMMON_OBS): Add location.o.
4666         * linespec.c (linespec_lex_to_end): New function.
4667         * linespec.h (linespec_lex_to_end): Declare.
4668         * location.c: New file.
4669         * location.h: New file.
4670
4671 2015-08-11  Keith Seitz  <keiths@redhat.com>
4672
4673         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4674         Renamed to create_sals_from_location.
4675         <decode_linespec>: Renamed to decode_location.
4676         Update all callers.
4677         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4678         (create_sals_from_location_default): ... this.
4679         (addr_string_to_sals): Renamed to ...
4680         (location_to_sals): ... this.
4681         (decode_linespec_default): Renamed to ...
4682         (decode_location_default): ... this.
4683         (base_breakpoint_create_sals_from_address): Renamed to ...
4684         (base_breakpoint_create_sals_from_location): ... this.
4685         (bkpt_create_sals_from_address): Renamed to ...
4686         (bkpt_create_sals_from_location): ... this.
4687         (bkpt_decode_linespec): Renamed to ...
4688         (bkpt_decode_location): ... this.
4689         (bkpt_probe_create_sals_from_address): Renamed to ...
4690         (bkpt_probe_create_sals_from_location): ... this.
4691         (tracepoint_create_sals_from_address): Renamed to ...
4692         (tracepoint_create_sals_from_location): ... this.
4693         (tracepoint_decode_linespec): Renamed to ...
4694         (tracepoint_decode_location): ... this.
4695         (tracepoint_probe_create_sals_from_address): Renamed to ...
4696         (tracepoint_probe_create_sals_from_location): ... this.
4697         (tracepoint_probe_decode_linespec): Renamed to ...
4698         (tracepoint_probe_decode_location): ... this.
4699         (strace_marker_create_sals_from_address): Renamed to ...
4700         (strace_marker_create_sals_from_location): ... this.
4701         (decode_linespec_default): Renamed to ...
4702         (decode_location_default): ... this.
4703
4704 2015-08-10  Doug Evans  <dje@google.com>
4705             Keith Seitz  <keiths@redhat.com>
4706
4707         PR gdb/17960
4708         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4709         make_file_symbol_completion_list and made static.
4710         (make_file_symbol_completion_list): New function.
4711
4712 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4713
4714         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4715         trailing new-line at end of warning message.
4716         (proceed): Add i18n marker to error messages.
4717
4718 2015-08-07  Pedro Alves  <palves@redhat.com>
4719
4720         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4721
4722 2015-08-07  Pedro Alves  <palves@redhat.com>
4723
4724         * s390-linux-tdep.c (is_non_branch_ril)
4725         (s390_displaced_step_copy_insn): New functions.
4726         (s390_displaced_step_fixup): Update comment.
4727         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4728         gdbarch_displaced_step_copy_insn hook.
4729
4730 2015-08-07  Pedro Alves  <palves@redhat.com>
4731
4732         * infrun.c (displaced_step_prepare_throw): Return -1 if
4733         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4734         comment.
4735         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4736         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4737         in file.
4738         (ppc_displaced_step_copy_insn): New function.
4739         (ppc_displaced_step_fixup): Update comment.
4740         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4741         gdbarch_displaced_step_copy_insn hook.
4742         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4743         NULL return.
4744         * gdbarch.h: Regenerate.
4745
4746 2015-08-07  Pedro Alves  <palves@redhat.com>
4747
4748         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4749         field.
4750         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4751         Return false if dispaced stepping failed before.
4752         (resume): Pass the current inferior to
4753         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4754         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4755         displaced_stepping_failed flag, and fall back to an in-line
4756         step-over.
4757
4758 2015-08-07  Pedro Alves  <palves@redhat.com>
4759
4760         * darwin-nat.c (darwin_stop): Rename to ...
4761         (darwin_interrupt): ... this.
4762         (_initialize_darwin_inferior): Adjust.
4763         * gnu-nat.c (gnu_stop): Delete.
4764         (gnu_target): Don't install gnu_stop.
4765         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4766         (inf_ptrace_interrupt): ... this.
4767         (inf_ptrace_target): Adjust.
4768         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4769         target_stop.
4770         * linux-nat (linux_nat_stop): Rename to ...
4771         (linux_nat_interrupt): ... this.
4772         (linux_nat_stop): Reimplement.
4773         (linux_nat_add_target): Install linux_nat_interrupt.
4774         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4775         (nto_handle_sigint_twice): ... this.
4776         (nto_interrupt): Rename to ...
4777         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4778         target_stop.
4779         (procfs_wait): Adjust.
4780         (procfs_stop): Rename to ...
4781         (procfs_interrupt): ... this.
4782         (init_procfs_targets): Adjust.
4783         * procfs.c (procfs_stop): Rename to ...
4784         (procfs_interrupt): ... this.
4785         (procfs_target): Adjust.
4786         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4787         (m32r_interrupt): ... this.
4788         (init_m32r_ops): Adjust.
4789         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4790         (gdbsim_interrupt_inferior): ... this.
4791         (gdbsim_stop): Rename to ...
4792         (gdbsim_interrupt): ... this.
4793         (gdbsim_cntrl_c): Adjust.
4794         (init_gdbsim_ops): Adjust.
4795         * remote.c (sync_remote_interrupt): Adjust comments.
4796         (remote_stop_as): Rename to ...
4797         (remote_interrupt_as): ... this.
4798         (remote_stop): Adjust comment.
4799         (remote_interrupt): New function.
4800         (init_remote_ops): Install remote_interrupt.
4801         * target.c (target_interrupt): New function.
4802         * target.h (struct target_ops) <to_interrupt>: New field.
4803         (target_interrupt): New declaration.
4804         * windows-nat.c (windows_stop): Rename to ...
4805         (windows_interrupt): ... this.
4806         * target-delegates.c: Regenerate.
4807
4808 2015-08-07  Pedro Alves  <palves@redhat.com>
4809
4810         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4811         threads" as alternative to "switching back to stepped thread".
4812
4813 2015-08-07  Pedro Alves  <palves@redhat.com>
4814
4815         * NEWS: Mention "maint set/show target-non-stop".
4816         * breakpoint.c (update_global_location_list): Check
4817         target_is_non_stop_p instead of non_stop.
4818         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4819         * infrun.c (show_can_use_displaced_stepping)
4820         (can_use_displaced_stepping_p, start_step_over_inferior):
4821         Likewise.
4822         (internal_resume_ptid): New function.
4823         (resume): Use it.
4824         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4825         all-stop mode but the target is always in non-stop mode, start all
4826         the other threads that are implicitly resumed too.
4827         (for_each_just_stopped_thread, fetch_inferior_event)
4828         (adjust_pc_after_break, stop_all_threads): Check
4829         target_is_non_stop_p instead of non_stop.
4830         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4831         with the target always in non-stop mode.
4832         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4833         instead of non_stop.
4834         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4835         instead of non_stop.
4836         (keep_going_stepped_thread): Use internal_resume_ptid.
4837         (stop_waiting): If in all-stop mode, and the target is in non-stop
4838         mode, stop all threads.
4839         (keep_going_pass): Likewise, when starting a new in-line step-over
4840         sequence.
4841         * linux-nat.c (get_pending_status, select_event_lwp)
4842         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4843         target_is_non_stop_p instead of non_stop.
4844         (linux_nat_always_non_stop_p): New function.
4845         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4846         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4847         * target-delegates.c: Regenerate.
4848         * target.c (target_is_non_stop_p): New function.
4849         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4850         (maint_set_target_non_stop_command)
4851         (maint_show_target_non_stop_command): New functions.
4852         (_initilize_target): Install "maint set/show target-non-stop"
4853         commands.
4854         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4855         (target_non_stop_enabled): New declaration.
4856         (target_is_non_stop_p): New declaration.
4857
4858 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4859
4860         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4861         has a pending status, return true.
4862         * gdbthread.h: Include target/waitstatus.h.
4863         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4864         stop_pc>: New fields.
4865         (struct thread_info) <resumed>: New field.
4866         (set_resumed): Declare.
4867         * infrun.c: Include "event-loop.h".
4868         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4869         (infrun_async): New function.
4870         (clear_step_over_info): Add debug output.
4871         (displaced_step_in_progress_any_inferior): New function.
4872         (displaced_step_fixup): New returns int.
4873         (start_step_over): Handle in-line step-overs too.  Assert the
4874         thread is marked resumed.
4875         (resume_cleanups): Clear the thread's resumed flag.
4876         (resume): Set the thread's resumed flag.  Return early if the
4877         thread has a pending status.  Allow stepping a breakpoint with no
4878         signal.
4879         (proceed): Adjust to check 'resumed' instead of 'executing'.
4880         (clear_proceed_status_thread): If the thread has a pending status,
4881         and that status is a finished step, discard the pending status.
4882         (clear_proceed_status): Don't clear step_over_info here.
4883         (random_pending_event_thread, do_target_wait): New functions.
4884         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4885         do_target_wait.
4886         (wait_one): New function.
4887         (THREAD_STOPPED_BY): New macro.
4888         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4889         (thread_stopped_by_hw_breakpoint): New functions.
4890         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4891         functions.
4892         (handle_inferior_event): Also call set_resumed(false) on all
4893         threads implicitly stopped by the event.
4894         (restart_threads, resumed_thread_with_pending_status): New
4895         functions.
4896         (finish_step_over): If we were doing an in-line step-over before,
4897         and no longer are after trying to start a new step-over, restart
4898         all threads.  If we have multiple threads with pending events,
4899         save the current event and go through the event loop again.
4900         (handle_signal_stop): Return early if finish_step_over returns
4901         false.
4902         <random signal>: If we get a signal while stepping over a
4903         breakpoint in-line in non-stop mode, restart all threads.  Clear
4904         step_over_info before delivering the signal.
4905         (keep_going_stepped_thread): Use internal_error instead of
4906         gdb_assert.  Mark the thread as resumed.
4907         (keep_going_pass_signal): Assert the thread isn't already resumed.
4908         If some other thread is doing an in-line step-over, defer the
4909         resume.  If we just started a new in-line step-over, stop all
4910         threads.  Don't clear step_over_info.
4911         (infrun_async_inferior_event_handler): New function.
4912         (_initialize_infrun): Create async event handler with
4913         infrun_async_inferior_event_handler as callback.
4914         (infrun_async): New declaration.
4915         * target.c (target_async): New function.
4916         * target.h (target_async): Declare macro and readd as function
4917         declaration.
4918         * target/waitstatus.h (enum target_stop_reason)
4919         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4920         * thread.c (new_thread): Clear the new waitstatus field.
4921         (set_resumed): New function.
4922
4923 2015-08-07  Pedro Alves  <palves@redhat.com>
4924
4925         * infrun.c (keep_going_stepped_thread): New function, factored out
4926         from ...
4927         (switch_back_to_stepped_thread): ... here.
4928
4929 2015-08-07  Pedro Alves  <palves@redhat.com>
4930
4931         * infrun.c (currently_stepping): Extend intro comment.
4932         * target.h (target_resume): Extend intro comment.
4933
4934 2015-08-07  Pedro Alves  <palves@redhat.com>
4935
4936         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4937         of inferior_ptid.  If the stepped thread vanished, return 0
4938         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4939         the current stop_pc in log message.  Clear trap_expected if the
4940         thread advanced.  Don't pass currently_stepping to
4941         do_target_resume.
4942
4943 2015-08-07  Pedro Alves  <palves@redhat.com>
4944
4945         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4946         * infrun.c (struct execution_control_state): Move higher up in the
4947         file.
4948         (reset_ecs): New function.
4949         (start_step_over): Now returns int.  Rewrite to use
4950         keep_going_pass_signal instead of manually starting a displaced step.
4951         (resume): Don't call set_running here.  If displaced stepping
4952         can't start now, clear trap_expected.
4953         (find_thread_needs_step_over): Delete function.
4954         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4955         If the current thread needs a step over, push it in the step-over
4956         chain.  Don't set insert breakpoints nor call resume directly
4957         here.  Instead rewrite to use start_step_over and
4958         keep_going_pass_signal.
4959         (finish_step_over): New function.
4960         (handle_signal_stop): Call finish_step_over instead of
4961         start_step_over.
4962         (switch_back_to_stepped_thread): If the event thread needs another
4963         step-over do that first.  Use start_step_over.
4964         (keep_going_pass_signal): New function, factored out from ...
4965         (keep_going): ... here.
4966         (_initialize_infrun): Comment moved here.
4967         * thread.c (set_running_thread): New function.
4968         (set_running, finish_thread_state): Use set_running_thread.
4969
4970 2015-08-07  Pedro Alves  <palves@redhat.com>
4971
4972         * gdbthread.h (struct thread_info) <step_over_prev,
4973         step_over_next>: New fields.
4974         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4975         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4976         declarations.
4977         * infrun.c (struct displaced_step_request): Delete.
4978         (struct displaced_step_inferior_state) <step_request_queue>:
4979         Delete field.
4980         (displaced_step_prepare): Assert that trap_expected is set.  Use
4981         thread_step_over_chain_enqueue.  Split starting a new displaced
4982         step to ...
4983         (start_step_over): ... this new function.
4984         (resume): Assert the thread isn't waiting for a step over already.
4985         (proceed): Assert the thread isn't waiting for a step over
4986         already.
4987         (infrun_thread_stop_requested): Adjust to remove threads from the
4988         embedded step-over chain.
4989         (handle_inferior_event) <fork/vfork>: Call start_step_over after
4990         displaced_step_fixup.
4991         (handle_signal_stop): Call start_step_over after
4992         displaced_step_fixup.
4993         * infrun.h (step_over_queue_head): New declaration.
4994         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4995         (thread_step_over_chain_next, thread_is_in_step_over_chain)
4996         (thread_step_over_chain_enqueue)
4997         (thread_step_over_chain_remove): New functions.
4998         (delete_thread_1): Remove thread from the step-over chain.
4999
5000 2015-08-07  Pedro Alves  <palves@redhat.com>
5001
5002         * infrun.c (thread_still_needs_step_over): Rename to ...
5003         (thread_still_needs_step_over_bp): ... this.
5004         (enum step_over_what): New.
5005         (thread_still_needs_step_over): Reimplement.
5006
5007 2015-08-07  Pedro Alves  <palves@redhat.com>
5008
5009         * remote.c (remote_wait_as): If not waiting for a stop reply,
5010         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5011         requested, don't block waiting forever.
5012
5013 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5014
5015         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5016         waitstatus pointers instead of an ecs.  Adjust.
5017         (handle_inferior_event): Adjust caller.
5018
5019 2015-08-07  Pedro Alves  <palves@redhat.com>
5020
5021         * infrun.c (handle_inferior_event): If we get
5022         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5023         mode, mark all threads of the exiting process as not-executing.
5024         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5025         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5026         exiting process, if inferior_ptid still points at a process.
5027         * thread.c (struct current_thread_cleanup) <next>: New field.
5028         (current_thread_cleanup_chain): New global.
5029         (restore_current_thread_ptid_changed): New function.
5030         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5031         current_thread_cleanup_chain list.
5032         (make_cleanup_restore_current_thread): Add the cleanup data to the
5033         current_thread_cleanup_chain list.
5034         (_initialize_thread): Install restore_current_thread_ptid_changed
5035         as thread_ptid_changed observer.
5036
5037 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5038
5039         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5040         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5041         smaller than expected.
5042
5043 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5044
5045         * stack.c (get_frame_language): Moved ...
5046         * frame.c (get_frame_language): ... to here.
5047         * language.h (get_frame_language): Declaration moved to frame.h.
5048         * frame.h: Add language.h include, for language enum.
5049         (get_frame_language): Declaration moved from language.h.
5050         * language.c: Add frame.h include.
5051         * top.c: Add frame.h include.
5052         * symtab.h (struct obj_section): Declare.
5053         (struct cmd_list_element): Declare.
5054
5055 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5056
5057         * language.c (show_language_command): Find selected frame before
5058         asking for the language of that frame.
5059         (set_language_command): Likewise.
5060         * language.h (get_frame_language): Add frame parameter.
5061         * stack.c (get_frame_language): Add frame parameter, assert
5062         parameter is not NULL, update comment and reindent.
5063         * top.c (check_frame_language_change): Pass the selected frame
5064         into get_frame_language.
5065
5066 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5067
5068         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5069         (pt_btrace_insn_flags): New.
5070         (ftrace_add_pt): Call pt_btrace_insn_flags.
5071         * btrace.h (btrace_insn_flag): New.
5072         (btrace_insn) <flags>: New.
5073         * record-btrace.c (btrace_insn_history): Print insn prefix.
5074         * NEWS: Announce it.
5075
5076 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5077
5078         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5079         * configure: Regenerate.
5080
5081 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5082
5083         * Makefile.in (LIBICONV): Define.
5084         (CLIBS): Add LIBICONV.
5085         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5086         * configure: Regenerate.
5087
5088 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5089             Pedro Alves  <palves@redhat.com>
5090
5091         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5092         (arm_set_abi): Likewise.
5093         * ax-general.c (ax_print): Likewise.
5094         * c-exp.y (exp : string_exp): Likewise.
5095         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5096         (do_compile_dwarf_expr_to_c): Likewise.
5097         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5098         Likewise.
5099         * dwarf2expr.c (execute_stack_op): Likewise.
5100         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5101         (disassemble_dwarf_expression): Likewise.
5102         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5103         (read_array_order): Likewise.
5104         (abbrev_table_read_table): Likewise.
5105         (read_attribute_value): Likewise.
5106         (skip_unknown_opcode): Likewise.
5107         (dwarf_decode_macro_bytes): Likewise.
5108         (dwarf_decode_macros): Likewise.
5109         * eval.c (value_f90_subarray): Likewise.
5110         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5111         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5112         * infrun.c (handle_command): Likewise.
5113         * memory-map.c (memory_map_start_memory): Likewise.
5114         * osabi.c (set_osabi): Likewise.
5115         * parse.c (operator_length_standard): Likewise.
5116         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5117         single return point.
5118         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5119         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5120         (gdbpy_lookup_global_symbol): Likewise.
5121         * record-full.c (record_full_restore): Likewise.
5122         * regcache.c (regcache_register_status): Likewise.
5123         (regcache_raw_read): Likewise.
5124         (regcache_cooked_read): Likewise.
5125         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5126         * symtab.c (initialize_ordinary_address_classes): Likewise.
5127         * target-debug.h (target_debug_print_signals): Likewise.
5128         * utils.c (do_restore_current_language): Likewise.
5129
5130 2015-08-06  Clem Dickey  <clemd@acm.org>
5131
5132         PR python/17136
5133         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5134
5135 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5136
5137         * complaints.c (enum complaint_series): Add newlines and remove
5138         out of date comment.
5139         (struct complaints) <series>: Change type to enum
5140         complaint_series and remove out of date comment.
5141         (symfile_complaint_hook): Use equivalent enum value
5142         ISOLATED_MESSAGE instead of 0.
5143
5144 2015-08-06  Pedro Alves  <palves@redhat.com>
5145
5146         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5147         returned > 0.
5148
5149 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5150
5151         * common/agent.c (symbol_list) <required>: Remove.
5152
5153 2015-08-06  Pedro Alves  <palves@redhat.com>
5154
5155         * target/waitstatus.h (enum target_stop_reason)
5156         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5157
5158 2015-08-05  Pedro Alves  <palves@redhat.com>
5159             Joel Brobecker  <brobecker@adacore.com>
5160
5161         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5162         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5163         case where BS->STOP is not set.
5164
5165 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5166
5167         * nat/gdb_thread_db.h: Add copyright header.
5168         Protect against multiple inclusion.
5169
5170 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5171
5172         * aarch64-linux-nat.c (get_thread_id): Remove.
5173         (debug_reg_change_callback): Call ptid_get_lwp instead of
5174         get_thread_id.
5175         (fetch_gregs_from_thread): Likewise.
5176         (store_gregs_to_thread): Likewise.
5177         (fetch_fpregs_from_thread): Likewise.
5178         (store_fpregs_to_thread): Likewise.
5179         (aarch64_linux_get_debug_reg_capacity): Likewise.
5180         * arm-linux-nat.c (get_thread_id): Remove.
5181         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5182         * xtensa-linux-nat.c (get_thread_id): Remove.
5183         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5184         * arm-linux-nat.c (get_thread_id): Remove.
5185         (GET_THREAD_ID): Remove.
5186         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5187         (store_fpregs, fetch_regs, store_regs): Likewise.
5188         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5189         (fetch_vfp_regs, store_vfp_regs): Likewise.
5190         (arm_linux_read_description): Likewise.
5191         (arm_linux_get_hwbp_cap): Likewise.
5192         * xtensa-linux-nat.c (get_thread_id): Remove.
5193         (GET_THREAD_ID): Remove.
5194         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5195         GET_THREAD_ID.
5196
5197 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5198
5199         * python/py-linetable.c: Fix case of Linetable to LineTable
5200         in docstrings and code comments.
5201         * python/py-symtab.c: Same.
5202
5203 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5204
5205         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5206
5207 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5208
5209         PR gdb/18767
5210         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5211         use.
5212
5213 2015-08-04  Pedro Alves  <palves@redhat.com>
5214
5215         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5216         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5217         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5218         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5219         (td_thr_validate_ftype, td_thr_get_info_ftype)
5220         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5221         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5222         New typedefs.
5223         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5224         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5225         local macros and use them instead of verbose_dlsym and dlsym
5226         calls.
5227
5228 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5229
5230         * nios2-tdep.h: Include opcode/nios2.h here.
5231         (NIOS2_CDX_OPCODE_SIZE): New.
5232         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5233         * nios2-tdep.c: Don't include opcode/nios2.h here.
5234         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5235         4-byte read fails.
5236         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5237         (nios2_match_addi, nios2_match_orhi): Likewise.
5238         (nios2_match_stw, nios2_match_ldw): Likewise.
5239         (nios2_match_rdctl): Likewise.
5240         (nios2_match_stwm, nios2_match_ldwm): New.
5241         (nios2_match_branch): Add cases for R2 encodings.
5242         (nios2_match_jmpi, nios2_match_calli): Likewise.
5243         (nios2_match_jmpr, nios2_match_callr): Likewise.
5244         (nios2_match_break, nios2_match_trap): Likewise.
5245         (nios2_in_epilogue_p): Add R2 support.
5246         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5247         prologues.
5248         (nios2_breakpoint_from_pc): Handle R2 instructions.
5249         (nios2_get_next_pc): Likewise.  Adjust call to
5250         tdep->syscall_next_pc.
5251         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5252         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5253         instruction field macros instead of literal hex values.
5254         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5255         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5256         Use size field from OP instead of assuming all instructions
5257         are the same size.
5258         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5259
5260 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5261
5262         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5263         variable warning with some compilers.
5264
5265 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5266
5267         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5268         in comment.  Replace "rw" with "type".
5269         (arm_linux_remove_watchpoint): Change type of "rw" to
5270         "enum target_hw_bp_type".
5271
5272 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5273
5274         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5275         lookup_symbol.
5276         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5277         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5278         * mt-tdep.c (mt_skip_prologue): Likewise.
5279         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5280
5281 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5282
5283         * ada-exp.y (write_object_renaming): Replace struct
5284         ada_symbol_info with struct block_symbol.  Update field
5285         references accordingly.
5286         (block_lookup, select_possible_type_sym): Likewise.
5287         (find_primitive_type): Likewise.  Also update call to
5288         ada_lookup_symbol to extract the symbol itself.
5289         (write_var_or_type, write_name_assoc): Likewise.
5290         * ada-lang.h (struct ada_symbol_info): Remove.
5291         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5292         struct block_symbol.
5293         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5294         (ada_lookup_symbol): Return struct block_symbol instead of a
5295         mere symbol.
5296         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5297         with struct block_symbol.
5298         (resolve_subexp, ada_resolve_function, sort_choices,
5299         user_select_syms, is_nonfunction, add_defn_to_vec,
5300         num_defns_collected, defns_collected,
5301         symbols_are_identical_enums, remove_extra_symbols,
5302         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5303         ada_lookup_symbol_list, ada_iterate_over_symbols,
5304         ada_lookup_encoded_symbol, get_var_value): Likewise.
5305         (ada_lookup_symbol): Return a block_symbol instead of a mere
5306         symbol.  Replace struct ada_symbol_info with struct
5307         block_symbol.
5308         (ada_lookup_symbol_nonlocal): Likewise.
5309         (standard_lookup): Make block passing explicit through
5310         lookup_symbol_in_language.
5311         * ada-tasks.c (get_tcb_types_info): Update the calls to
5312         lookup_symbol_in_language to extract the mere symbol out of the
5313         returned value.
5314         (ada_tasks_inferior_data_sniffer): Likewise.
5315         * ax-gdb.c (gen_static_field): Likewise for the call to
5316         lookup_symbol.
5317         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5318         lookup functions.
5319         (gen_expr): Likewise.
5320         * c-exp.y: Likewise.  Remove uses of block_found.
5321         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5322         (classify_name): Likewise.  Rename the "sym" local variable to
5323         "bsym".
5324         * c-valprint.c (print_unpacked_pointer): Likewise.
5325         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5326         "sym" parameter from struct symbol * to struct block_symbol.
5327         Use it to remove uses of block_found.  Deal with struct
5328         block_symbol from lookup functions.
5329         (gcc_convert_symbol): Likewise.  Update the call to
5330         convert_symbol_sym.
5331         * compile/compile-object-load.c (compile_object_load): Deal with
5332         struct block_symbol from lookup functions.
5333         * cp-namespace.c (cp_lookup_nested_symbol_1,
5334         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5335         cp_search_static_and_baseclasses,
5336         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5337         cp_lookup_symbol_imports_or_template,
5338         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5339         lookup_namespace_scope, cp_lookup_nonlocal,
5340         find_symbol_in_baseclass): Return struct block_symbol instead of
5341         mere symbols and deal with struct block_symbol from lookup
5342         functions.
5343         * cp-support.c (inspect_type, replace_typedefs,
5344         cp_lookup_rtti_type): Deal with struct block_symbol from
5345         lookup functions.
5346         * cp-support.h (cp_lookup_symbol_nonlocal,
5347         cp_lookup_symbol_from_namespace,
5348         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5349         Return struct block_symbol instead of mere symbols.
5350         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5351         push_module_name):
5352         Deal with struct block_symbol from lookup functions.  Remove
5353         uses of block_found.
5354         * eval.c (evaluate_subexp_standard): Update call to
5355         cp_lookup_symbol_namespace.
5356         * f-exp.y: Deal with struct block_symbol from lookup functions.
5357         Remove uses of block_found.
5358         (yylex): Likewise.
5359         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5360         lookup_enum, lookup_template_type, check_typedef): Deal with
5361         struct block_symbol from lookup functions.
5362         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5363         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5364         (gdbscm_lookup_global_symbol): Likewise.
5365         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5366         * go-exp.y: Likewise.  Remove uses of block_found.
5367         (package_name_p, classify_packaged_name, classify_name):
5368         Likewise.
5369         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5370         * jv-exp.y (push_variable): Likewise.
5371         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5372         * language.c (language_bool_type): Likewise.
5373         * language.h (struct language_defn): Update
5374         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5375         than a mere symbol.
5376         * linespec.c (find_label_symbols): Deal with struct block_symbol
5377         from lookup functions.
5378         * m2-exp.y: Likewise.  Remove uses of block_found.
5379         (yylex): Likewise.
5380         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5381         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5382         * p-exp.y: Likewise.  Remove uses of block_found.
5383         (yylex): Likewise.
5384         * p-valprint.c (pascal_val_print): Likewise.
5385         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5386         block_found.
5387         * parser-defs.h (struct symtoken): Turn the SYM field into a
5388         struct block_symbol.
5389         * printcmd.c (address_info): Deal with struct block_symbol from
5390         lookup functions.
5391         * python/py-frame.c (frapy_read_var): Likewise.
5392         * python/py-symbol.c (gdbpy_lookup_symbol,
5393         gdbpy_lookup_global_symbol): Likewise.
5394         * skip.c (skip_function_command): Likewise.
5395         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5396         block_symbol instead of a mere symbol.
5397         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5398         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5399         * solib.c (solib_global_lookup): Likewise.
5400         * solist.h (solib_global_lookup): Likewise.
5401         (struct target_so_ops): Update lookup_lib_global_symbol to
5402         return a struct block_symbol rather than a mere symbol.
5403         * source.c (select_source_symtab): Deal with struct block_symbol
5404         from lookup functions.
5405         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5406         Likewise.
5407         * symfile.c (set_initial_language): Likewise.
5408         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5409         block_symbol.
5410         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5411         (struct symbol_cache_slot): Turn the FOUND field into a struct
5412         block_symbol.
5413         (block_found): Remove.
5414         (eq_symbol_entry): Update to deal with struct block_symbol in
5415         cache slots.
5416         (symbol_cache_lookup): Return a struct block_symbol rather than
5417         a mere symbol.
5418         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5419         appropriately the cache slots.  Update callers.
5420         (symbol_cache_dump): Update cache slots handling to the type
5421         change.
5422         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5423         lookup_symbol_aux, lookup_local_symbol,
5424         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5425         lookup_symbol_in_objfile_symtabs,
5426         lookup_symbol_in_objfile_from_linkage_name,
5427         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5428         lookup_symbol_in_static_block, lookup_static_symbol,
5429         lookup_global_symbol):
5430         Return a struct block_symbol rather than a mere symbol.  Deal
5431         with struct block_symbol from other lookup functions.  Remove
5432         uses of block_found.
5433         (lookup_symbol_in_block): Remove uses of block_found.
5434         (struct global_sym_lookup_data): Turn the RESULT field into a
5435         struct block_symbol.
5436         (lookup_symbol_global_iterator_cb): Update references to the
5437         RESULT field.
5438         (search_symbols): Deal with struct block_symbol from lookup
5439         functions.
5440         * symtab.h (struct block_symbol): New structure.
5441         (block_found): Remove.
5442         (lookup_symbol_in_language, lookup_symbol,
5443         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5444         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5445         lookup_global_symbol_from_objfile): Return a struct block_symbol
5446         rather than just a mere symbol.  Update comments to remove
5447         mentions of block_found.
5448         * valops.c (find_function_in_inferior,
5449         value_struct_elt_for_reference, value_maybe_namespace_elt,
5450         value_of_this):  Deal with struct block_symbol from lookup
5451         functions.
5452         * value.c (value_static_field, value_fn_field): Likewise.
5453
5454 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5455
5456         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5457         instead of integer.
5458
5459 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5460             Pedro Alves  <palves@redhat.com>
5461
5462         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5463         type or value instead of integer.
5464         (aarch64_linux_insert_watchpoint): Likewise.
5465         (aarch64_linux_remove_watchpoint): Likewise.
5466         * ada-lang.c (ada_op_print_tab): Likewise.
5467         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5468         (amd64_linux_syscall_record_common): Likewise.
5469         * arch-utils.c (target_byte_order_user): Likewise.
5470         (default_byte_order): Likewise.
5471         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5472         (arm_linux_get_hwbp_type): Likewise.
5473         (arm_linux_hw_watchpoint_initialize): Likewise.
5474         (arm_linux_insert_watchpoint): Likewise.
5475         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5476         (arm_linux_syscall_record): Likewise.
5477         * breakpoint.c (update_watchpoint): Likewise.
5478         (breakpoint_here_p): Likewise.
5479         (bpstat_print): Likewise.
5480         (enable_breakpoint_disp): Likewise.
5481         * c-lang.c (c_op_print_tab): Likewise.
5482         * cli/cli-decode.c (add_info_alias): Likewise.
5483         * d-lang.c (d_op_print_tab): Likewise.
5484         * eval.c (evaluate_subexp_standard): Likewise.
5485         * f-exp.y (dot_ops): Likewise.
5486         (f77_keywords): Likewise.
5487         * f-lang.c (f_op_print_tab): Likewise.
5488         * go-lang.c (go_op_print_tab): Likewise.
5489         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5490         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5491         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5492         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5493         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5494         (struct scm_from_stringn_data): Likewise.
5495         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5496         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5497         (ia64_linux_remove_watchpoint): Likewise.
5498         (ia64_linux_can_use_hw_breakpoint): Likewise.
5499         * infrun.c (print_stop_event): Likewise.
5500         * jv-lang.c (java_op_print_tab): Likewise.
5501         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5502         * linux-nat.h (struct lwp_info): Likewise.
5503         * linux-thread-db.c (enable_thread_event): Likewise.
5504         * m2-lang.c (m2_op_print_tab): Likewise.
5505         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5506         (mi_cmd_stack_list_variables): Likewise.
5507         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5508         * mi/mi-out.c (mi_table_begin): Likewise.
5509         (mi_table_header): Likewise.
5510         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5511         (mips_linux_insert_watchpoint): Likewise.
5512         (mips_linux_remove_watchpoint): Likewise.
5513         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5514         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5515         (mips_linux_watch_type_to_irw): Likewise.
5516         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5517         (procfs_insert_hw_watchpoint): Likewise.
5518         (procfs_remove_hw_watchpoint): Likewise.
5519         (procfs_hw_watchpoint): Likewise.
5520         (procfs_can_use_hw_breakpoint): Likewise.
5521         (procfs_remove_hw_watchpoint): Likewise.
5522         (procfs_insert_hw_watchpoint): Likewise.
5523         * p-lang.c (pascal_op_print_tab): Likewise.
5524         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5525         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5526         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5527         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5528         (procfs_insert_watchpoint): Likewise.
5529         (procfs_remove_watchpoint): Likewise.
5530         * psymtab.c (recursively_search_psymtabs): Likewise.
5531         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5532         (m32r_insert_watchpoint): Likewise.
5533         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5534         (mips_insert_watchpoint): Likewise.
5535         (mips_remove_watchpoint): Likewise.
5536         * remote.c (watchpoint_to_Z_packet): Likewise.
5537         (remote_insert_watchpoint): Likewise.
5538         (remote_remove_watchpoint): Likewise.
5539         (remote_check_watch_resources): Likewise.
5540         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5541         (s390_remove_watchpoint): Likewise.
5542         (s390_can_use_hw_breakpoint): Likewise.
5543         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5544         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5545         * target.h (struct target_ops): Likewise.
5546         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5547         * ui-out.c (struct ui_out_hdr): Likewise.
5548         (append_header_to_list): Likewise.
5549         (get_next_header): Likewise.
5550         (verify_field): Likewise.
5551         (ui_out_begin): Likewise.
5552         (ui_out_field_int): Likewise.
5553         (ui_out_field_fmt_int): Likewise.
5554         (ui_out_field_skip): Likewise.
5555         (ui_out_field_string): Likewise.
5556         (ui_out_field_fmt): Likewise.
5557         * varobj.c (new_variable): Likewise.
5558         * x86-nat.c (x86_insert_watchpoint): Likewise.
5559         (x86_remove_watchpoint): Likewise.
5560         (x86_can_use_hw_breakpoint): Likewise.
5561         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5562         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5563         previously anonymous enumeration type..
5564         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5565         value.
5566         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5567         (target_debug_print_enum_bptype): New.
5568         * target-delegates.c: Regenerate.
5569
5570 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5571
5572         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5573         already says and disallow non-stack memory writes in the prologue.
5574
5575 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5576
5577         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5578         reflect how current GCC emits stack overflow checks.  Match
5579         both trap and break instructions for backward compatbility.
5580         Disallow other trap and break instructions in the prologue.
5581
5582 2015-07-30  Pedro Alves  <palves@redhat.com>
5583
5584         PR threads/18600
5585         * linux-nat.c (wait_lwp): Report to the core when thread group
5586         leader exits.
5587
5588 2015-07-30  Pedro Alves  <palves@redhat.com>
5589             Simon Marchi  <simon.marchi@ericsson.com>
5590
5591         PR threads/18600
5592         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5593         mark the new thread as resumed.  Remove STOPPING parameter.
5594         (wait_lwp): Adjust call to linux_handle_extended_wait.
5595         (linux_nat_filter_event): Adjust call to
5596         linux_handle_extended_wait.
5597         (resume_stopped_resumed_lwps): Add debug output.
5598
5599 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5600
5601         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5602         isize argument.
5603         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5604         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5605         gdbarch_fast_tracepoint_valid_at.
5606         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5607         * gdbarch.h: Regenerate.
5608         * gdbarch.c: Regenerate.
5609         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5610         argument.  Do not set it.
5611         * remote.c (remote_download_tracepoint): Adjust call to
5612         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5613         the instruction length.
5614
5615 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5616
5617         * arm-tdep.h (enum gdb_regnum): Move it to ...
5618         * arch/arm.h: ... here.  New file.
5619         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5620
5621 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5622
5623         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5624         Change its type to int *.
5625         (decode_br): Rename link argument to is_blr.  Change its type to
5626         int *.
5627         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5628         int *.
5629         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5630         int *.  Set is_tbnz to either 1 or 0.
5631         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5632         new variables is_cbnz and is_tbnz.  Adjust call to
5633         aarch64_decode_cb and aarch64_decode_tb.
5634
5635 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5636
5637         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5638         parameter.
5639         (mips_linux_new_thread): Likewise.
5640         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5641
5642 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5643
5644         * top.c: Include "tui/tui.h".
5645         (undo_terminal_modifications_before_exit): New static function.
5646         (quit_force): Use it.
5647
5648 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5649
5650         * target.c (terminal_state): Initialize to terminal_is_ours.
5651
5652 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5653
5654         PR record/18691
5655         * dcache.c (dcache_read_memory_partial): Call
5656         raw_memory_xfer_partial.
5657         * target.c (raw_memory_xfer_partial): Make it non-static.
5658         * target.h (raw_memory_xfer_partial): Declare.
5659
5660 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5661
5662         * c-valprint.c (c_val_print_array): Consider addressable memory
5663         unit size.
5664         (c_val_print_ptr): Likewise.
5665         (c_val_print_int): Likewise.
5666         * findvar.c (read_frame_register_value): Likewise.
5667         * valarith.c (find_size_for_pointer_math): Likewise.
5668         (value_ptrdiff): Likewise.
5669         (value_subscripted_rvalue): Likewise.
5670         * valops.c (read_value_memory): Likewise (and rename variables).
5671         (value_assign): Likewise.
5672         (value_repeat): Likewise.
5673         (value_array): Likewise.
5674         (value_slice): Likewise.
5675         * valprint.c (generic_val_print_ptr): Likewise.
5676         (generic_val_print_enum): Likewise.
5677         (generic_val_print_bool): Likewise.
5678         (generic_val_print_int): Likewise.
5679         (generic_val_print_char): Likewise.
5680         (generic_val_print_float): Likewise.
5681         (generic_val_print_decfloat): Likewise.
5682         (generic_val_print_complex): Likewise.
5683         (val_print_scalar_formatted): Likewise.
5684         (val_print_array_elements): Likewise.
5685         * value.c (set_value_parent): Likewise.
5686         (value_contents_copy_raw): Likewise.
5687         (set_internalvar_component): Likewise.
5688         (value_primitive_field): Likewise.
5689         (value_fetch_lazy): Likewise.
5690         * value.h (read_value_memory): Update comment.
5691
5692 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5693
5694         * value.c (get_value_arch): New function.
5695         * value.h (get_value_arch): New declaration.
5696
5697 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5698
5699         * value.c (struct value): Update comments.
5700
5701 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5702
5703         * gdbtypes.c (type_length_units): New function.
5704         * gdbtypes.h (type_length_units): New declaration.
5705         (struct type) <length>: Update comment.
5706
5707 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5708
5709         * valprint.c (generic_val_print): Factor out complex
5710         printing code to ...
5711         (generic_val_print_complex): ... this new function.
5712
5713 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5714
5715         * valprint.c (generic_val_print): Factor out decfloat
5716         printing code to ...
5717         (generic_val_print_decfloat): ... this new function.
5718
5719 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5720
5721         * valprint.c (generic_val_print): Factor out float
5722         printing code to ...
5723         (generic_val_print_float): ... this new function.
5724
5725 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5726
5727         * valprint.c (generic_val_print): Factor out char
5728         printing code to ...
5729         (generic_val_print_char): ... this new function.
5730
5731 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5732
5733         * valprint.c (generic_val_print): Factor out integer
5734         printing code to ...
5735         (generic_val_print_int): ... this new function.
5736
5737 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5738
5739         * valprint.c (generic_val_print): Factor out bool
5740         printing code to ...
5741         (generic_val_print_bool): ... this new function.
5742
5743 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5744
5745         * valprint.c (generic_val_print): Factor out function/method
5746         printing code to ...
5747         (generic_val_print_func): ... this new function.
5748
5749 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5750
5751         * valprint.c (generic_val_print): Factor out flags
5752         printing code to ...
5753         (generic_val_print_flags): ... this new function.
5754
5755 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5756
5757         * valprint.c (generic_val_print): Factor out enum
5758         printing code to ...
5759         (generic_val_print_enum): ... this new function.
5760
5761 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5762
5763         * valprint.c (generic_val_print): Factor out reference
5764         printing code to ...
5765         (generic_val_print_ref): ... this new function.
5766
5767 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5768
5769         * valprint.c (generic_val_print): Factor out memberptr
5770         printing code to ...
5771         (generic_val_print_memberptr): ... this new function.
5772
5773 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5774
5775         * valprint.c (generic_val_print): Factor out pointer
5776         printing code to ...
5777         (generic_val_print_ptr): ... this new function.
5778
5779 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5780
5781         * valprint.c (generic_val_print): Factor out array
5782         printing code to ...
5783         (generic_val_print_array): ... this new function.
5784
5785 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5786
5787         * valprint.c (generic_val_print): Factor out
5788         print_unpacked_pointer code to ...
5789         (print_unpacked_pointer): ... this new function.
5790
5791 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5792
5793         * event-top.c (handle_sigterm): Don't inspect
5794         target_can_async_p.  Always set the quit flag and always mark
5795         the async signal handler.
5796
5797 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5798
5799         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5800
5801 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5802
5803         * remote.c (read_ptid): Return null_ptid when no thread id
5804         is found.
5805         (remote_current_thread): Add log warning for malformed
5806         qC reply.
5807         (remote_start_remote): Add log warning when current thread
5808         not found.
5809
5810 2015-07-24  Pedro Alves  <palves@redhat.com>
5811
5812         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5813         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5814         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5815
5816 2015-07-24  Pedro Alves  <palves@redhat.com>
5817
5818         PR gdb/18717
5819         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5820         is resumed, and extend the debug log.
5821
5822 2015-07-24  Pedro Alves  <palves@redhat.com>
5823
5824         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5825
5826 2015-07-24  Pedro Alves  <palves@redhat.com>
5827
5828         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5829         sys/ptrace.h.
5830         * alpha-linux-nat.c: Likewise.
5831         * amd64-linux-nat.c: Likewise.
5832         * arm-linux-nat.c: Likewise.
5833         * hppa-linux-nat.c: Likewise.
5834         * i386-linux-nat.c: Likewise.
5835         * ia64-linux-nat.c: Likewise.
5836         * linux-fork.c: Likewise.
5837         * linux-nat.c: Likewise.
5838         * m32r-linux-nat.c: Likewise.
5839         * m68klinux-nat.c: Likewise.
5840         * mips-linux-nat.c: Likewise.
5841         * nat/linux-btrace.c: Likewise.
5842         * nat/linux-ptrace.c: Likewise.
5843         * nat/linux-ptrace.h
5844         * nat/mips-linux-watch.c: Likewise.
5845         * nat/x86-linux-dregs.c: Likewise.
5846         * ppc-linux-nat.c: Likewise.
5847         * s390-linux-nat.c: Likewise.
5848         * spu-linux-nat.c: Likewise.
5849         * tilegx-linux-nat.c: Likewise.
5850         * x86-linux-nat.c: Likewise.
5851         * xtensa-linux-nat.c: Likewise.
5852
5853 2015-07-24  Pedro Alves  <palves@redhat.com>
5854
5855         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5856         __ptrace_request as first parameter type instead of int.
5857         (PTRACE_TYPE_ARG1): Define.
5858         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5859         that casts first argument to PTRACE_TYPE_ARG1.
5860         * config.in: Regenerate.
5861         * configure: Regenerate.
5862
5863 2015-07-24  Pedro Alves  <palves@redhat.com>
5864
5865         * gdb_ptrace.h: Move ...
5866         * nat/gdb_ptrace.h: ... here.
5867         * inf-ptrace.c: Adjust.
5868
5869 2015-07-24  Pedro Alves  <palves@redhat.com>
5870
5871         * acinclude.m4: Include ptrace.m4.
5872         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5873         * ptrace.m4: ... to this new file.
5874
5875 2015-07-23  Doug Evans  <dje@google.com>
5876
5877         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5878         (load_cu): Handle dummy CUs.
5879         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5880         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5881
5882 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5883
5884         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5885         documentation to say that it returns a list rather than
5886         a FrozenSet.
5887         (linetable_object_methods): Update the docstring of the
5888         "source_line" entry.
5889
5890 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5891
5892         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5893         type to the recursive call instead of the original (maybe
5894         TYPE_CODE_TYPEDEF) type.
5895
5896 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5897
5898         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5899         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5900         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5901
5902 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5903
5904         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5905         Move it to nat/aarch64-linux-hw-point.c.
5906         (aarch64_linux_child_post_startup_inferior): Update.
5907         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5908         New function.
5909         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5910         Declare it.
5911
5912 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5913
5914         * common/btrace-common.c (btrace_data_append): Change case label.
5915
5916 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5917
5918         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5919         Re-indent the code.
5920         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5921         "unsigned long long".
5922
5923 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5924
5925         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5926         to be set for SEC_ALLOC sections too.
5927
5928 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5929
5930         * Makefile.in (HFILES_NO_SRCDIR): Add
5931         nat/aarch64-linux-hw-point.h.
5932         (aarch64-linux-hw-point.o): New rule.
5933         * nat/aarch64-linux-hw-point.h: New file.
5934         * nat/aarch64-linux-hw-point.c: New file.
5935         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5936         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5937         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5938         (AARCH64_HWP_ALIGNMENT): Likewise.
5939         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5940         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5941         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5942         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5943         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5944         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5945         (struct aarch64_debug_reg_state): Likewise.
5946         (struct arch_lwp_info): Likewise.
5947         (aarch64_linux_set_debug_regs): Likewise.
5948         (aarch64_notify_debug_reg_change): Remove static.
5949         (aarch64_align_watchpoint): Likewise.
5950         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5951         (aarch64_watchpoint_length): Likewise.
5952         (aarch64_point_encode_ctrl_reg): Likewise
5953         (aarch64_point_is_aligned): Likewise.
5954         (aarch64_dr_state_insert_one_point): Likewise.
5955         (aarch64_dr_state_remove_one_point): Likewise.
5956         (aarch64_handle_breakpoint): Likewise.
5957         (aarch64_handle_aligned_watchpoint): Likewise.
5958         (aarch64_handle_unaligned_watchpoint): Likewise.
5959         (aarch64_handle_watchpoint): Likewise.
5960         * config/aarch64/linux.mh (NAT_FILE): Add
5961         aarch64-linux-hw-point.o.
5962
5963 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5964
5965         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5966         state and don't call aarch64_get_debug_reg_state.  All callers
5967         update.
5968         (aarch64_linux_insert_hw_breakpoint): Call
5969         aarch64_get_debug_reg_state earlier.
5970         (aarch64_linux_remove_hw_breakpoint): Likewise.
5971         (aarch64_handle_aligned_watchpoint): Add argument state and
5972         don't call aarch64_get_debug_reg_state.  All callers update.
5973         (aarch64_handle_unaligned_watchpoint): Likewise.
5974         (aarch64_handle_watchpoint): Add argument state.
5975         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5976         earlier.
5977         (aarch64_linux_remove_watchpoint): Likewise.
5978
5979 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5980
5981         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5982         debug_printf.
5983         (aarch64_handle_unaligned_watchpoint): Likewise.
5984
5985 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5986
5987         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5988         argument type's type to 'enum target_hw_bp_type'.
5989         (aarch64_dr_state_remove_one_point): Likewise.
5990         (aarch64_handle_breakpoint): Likewise.
5991         (aarch64_linux_insert_hw_breakpoint): Likewise.
5992         (aarch64_linux_remove_hw_breakpoint): Likewise.
5993         (aarch64_handle_aligned_watchpoint): Likewise.
5994
5995 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5996
5997         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5998         ptid_get_pid instead of get_thread_id.
5999
6000 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6001
6002         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6003         (add_current_inferior_and_thread): Don't initialise ptid.
6004
6005 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6006
6007         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6008         unavailable if invalid.
6009
6010 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6011
6012         Revert the previous 6 commits:
6013         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6014         Move gdb_regex* to common/
6015         Prepare linux_find_memory_regions_full & co. for move
6016         Move linux_find_memory_regions_full & co.
6017         gdbserver build-id attribute generator
6018         Validate symbol file using build-id
6019
6020 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6021             Jan Kratochvil  <jan.kratochvil@redhat.com>
6022
6023         Validate symbol file using build-id.
6024         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6025         and 'show validate-build-id'.  Add build-id attribute.
6026         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6027         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6028         * solib-frv.c (_initialize_frv_solib): Ditto.
6029         * solib-spu.c (set_spu_solib_ops): Ditto.
6030         * solib-svr4.c: Include rsp-low.h.
6031         (NOTE_GNU_BUILD_ID_NAME): New define.
6032         (svr4_validate): New function.
6033         (svr4_copy_library_list): Duplicate field build_id.
6034         (library_list_start_library): Parse 'build-id' attribute.
6035         (svr4_library_attributes): Add 'build-id' attribute.
6036         (_initialize_svr4_solib): Assign validate value.
6037         * solib-target.c (solib.h): Include.
6038         (_initialize_solib_target): Assign validate value.
6039         * solib.c (validate_build_id, show_validate_build_id): New.
6040         (solib_map_sections): Use ops->validate.
6041         (clear_so): Free build_id.
6042         (default_solib_validate): New function.
6043         (_initialize_solib): Add "validate-build-id".
6044         * solib.h (default_solib_validate): New declaration.
6045         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6046         (target_so_ops): New field 'validate'.
6047
6048 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6049             Jan Kratochvil  <jan.kratochvil@redhat.com>
6050
6051         gdbserver build-id attribute generator.
6052         * features/library-list-svr4.dtd (library-list-svr4): New
6053         'build-id' attribute.
6054
6055 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6056             Jan Kratochvil  <jan.kratochvil@redhat.com>
6057
6058         Move linux_find_memory_regions_full & co.
6059         * linux-tdep.c (nat/linux-maps.h): Include.
6060         (gdb_regex.h): Remove the include.
6061         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6062         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6063         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6064         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6065         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6066         and target/target.h.
6067         (struct smaps_vmflags, read_mapping, decode_vmflags)
6068         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6069         (linux_find_memory_regions_full): Move from linux-tdep.c.
6070         * nat/linux-maps.h (read_mapping): New declaration.
6071         (linux_find_memory_region_ftype, enum filterflags): Moved from
6072         linux-tdep.c.
6073         (linux_find_memory_regions_full): New declaration.
6074         * target.c (target/target-utils.h): Include.
6075         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6076         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6077         definitions to target/target-utils.c.
6078         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6079         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6080         from target.c.
6081         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6082         (read_alloc): New declaration.
6083         (read_stralloc_func_ftype): New typedef.
6084         (read_stralloc): New declaration.
6085         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6086
6087 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6088             Jan Kratochvil  <jan.kratochvil@redhat.com>
6089
6090         Prepare linux_find_memory_regions_full & co. for move.
6091         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6092         (linux_find_memory_regions_full): Change signature and prepare
6093         for moving to linux-maps.
6094         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6095         (linux_find_memory_regions_thunk): New.
6096         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6097         (linux_find_memory_regions_gdb): New.
6098         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6099         (linux_make_mappings_corefile_notes): Use
6100         linux_find_memory_regions_gdb.
6101         * target.c (read_alloc_pread_ftype): New typedef.
6102         (target_fileio_read_alloc_1_pread): New function.
6103         (read_alloc): Refactor from target_fileio_read_alloc_1.
6104         (read_stralloc_func_ftype): New typedef.
6105         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6106         (read_stralloc): Refactored from target_fileio_read_stralloc.
6107         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6108
6109 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6110
6111         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6112         common/gdb_regex.h.
6113         (COMMON_OBS): Add gdb_regex.o.
6114         (gdb_regex.o): New.
6115         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6116         --without-included-regex and USE_INCLUDED_REGEX.
6117         * common/gdb_regex.c: New file from utils.c functions.
6118         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6119         file wrapping define name.
6120         * configure: Rebuilt.
6121         * configure.ac (gdb_use_included_regex, --without-included-regex)
6122         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6123         * gdb_regex.h: Move it to common/gdb_regex.h.
6124         * utils.c: Remove include gdb_regex.h.
6125         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6126         (compile_rx_or_error): Move them to common/gdb_regex.c.
6127
6128 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6129             Jan Kratochvil  <jan.kratochvil@redhat.com>
6130
6131         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6132         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6133         common/target-utils.h.
6134         (COMMON_OBS): Add target-utils.o.
6135         (linux-maps.o, target-utils.o): New.
6136         * target/target-utils.c: New file.
6137         * target/target-utils.h: New file.
6138         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6139         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6140         * nat/linux-maps.c: New file.
6141         * nat/linux-maps.h: New file.
6142
6143 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6144             Pedro Alves <palves@redhat.com>
6145
6146         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6147         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6148         (perf_event_read_bts): Change the type of SIZE and READ.
6149         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6150         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6151         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6152         mmap page.
6153         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6154         buffer size to UINT_MAX.
6155         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6156         DATA_TAIL.
6157         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6158         <last_head>: Change type.
6159         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6160         * common/btrace-common.c (btrace_data_append): Change the type of
6161         SIZE.
6162         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6163         check.
6164
6165 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6166
6167         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6168         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6169         with check_typedef.
6170         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6171         (ada_array_length): Likewise.
6172         (find_parallel_type_by_descriptive_type): Likewise.
6173         (ada_check_typedef): Likewise.
6174         * arm-tdep.c (arm_return_in_memory): Likewise.
6175         * ax-gdb.c (gen_trace_static_fields): Likewise.
6176         (gen_struct_ref_recursive): Likewise.
6177         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6178         (variable: block COLONCOLON name): Likewise.
6179         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6180         * c-lang.c (classify_type): Likewise.
6181         * c-typeprint.c (c_print_type): Likewise.
6182         (c_print_typedef): Likewise.
6183         (c_type_print_base): Likewise.
6184         * c-valprint.c (c_val_print): Likewise.
6185         * compile/compile-c-types.c (convert_type): Likewise.
6186         * compile/compile-object-load.c (get_out_value_type): Likewise.
6187         * completer.c (add_struct_fields): Likewise.
6188         (expression_completer): Likewise.
6189         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6190         (cp_lookup_nested_symbol_1): Likewise.
6191         (cp_lookup_nested_symbol): Likewise.
6192         * cp-valprint.c (cp_print_value_fields): Likewise.
6193         (cp_print_static_field): Likewise.
6194         * d-valprint.c (d_val_print): Likewise.
6195         * eval.c (evaluate_subexp_standard): Likewise.
6196         (evaluate_subexp_for_sizeof): Likewise.
6197         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6198         * f-typeprint.c (f_type_print_base): Likewise.
6199         * f-valprint.c (f_val_print): Likewise.
6200         * gdbtypes.c (get_discrete_bounds): Likewise.
6201         (create_array_type_with_stride): Likewise.
6202         (type_name_no_tag_or_error): Likewise.
6203         (lookup_struct_elt_type): Likewise.
6204         (get_unsigned_type_max): Likewise.
6205         (internal_type_vptr_fieldno): Likewise.
6206         (set_type_vptr_fieldno): Likewise.
6207         (internal_type_vptr_basetype): Likewise.
6208         (set_type_vptr_basetype): Likewise.
6209         (get_vptr_fieldno): Likewise.
6210         (is_integral_type): Likewise.
6211         (is_scalar_type): Likewise.
6212         (is_scalar_type_recursive): Likewise.
6213         (distance_to_ancestor): Likewise.
6214         (is_unique_ancestor_worker): Likewise.
6215         (check_types_equal): Likewise.
6216         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6217
6218 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6219
6220         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6221         also test for language_d.
6222         (dwarf2_compute_name): Likewise.
6223         (read_func_scope): Likewise.
6224         (read_structure_type): Likewise.
6225         (new_symbol_full): Likewise.
6226         (determine_prefix): Likewise.
6227         (read_import_statement): Use dot as the separator for language_d.
6228         (typename_concat): Likewise, but don't prefix the D main function.
6229
6230 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6231
6232         * nat/linux-namespaces.c (setns): Rename from this ...
6233         (do_setns): ... to this.  Support calling setns if it exists.
6234         (mnsh_handle_setns): Call do_setns.
6235
6236 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6237
6238         * exec.c (exec_file_attach): Add period at the end of error
6239         message.
6240
6241 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6242
6243         * tui/tui-win.c (window_name_completer): New function.
6244         (focus_completer): Call window_name_completer.  All old content
6245         moved into window_name_completer.
6246         (winheight_completer): New function.
6247         (_initialize_tui_win): Rename variable.  Add completer to
6248         winheight command.  Update doc string on winheight.
6249
6250 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6251
6252         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6253         all nios2 mach variants.
6254
6255 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6256
6257         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6258         of target_read_memory.
6259
6260 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6261
6262         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6263         string copy.
6264         (parse_scrolling_args): Likewise.
6265
6266 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6267
6268         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6269         names in this function.
6270
6271 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6272
6273         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6274         (CMD_NAME): Likewise.
6275         (DATA_NAME): Likewise.
6276         (DISASSEM_NAME): Likewise.
6277         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6278         (tui_set_win_height): Likewise.
6279         (parse_scrolling_args): Likewise.
6280
6281 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6282
6283         * record-btrace.c (record_btrace_goto_begin)
6284         (record_btrace_goto_end, record_btrace_goto): Move call to
6285         print_stack_frame ...
6286         (record_btrace_set_replay): ... here.  Set stop_pc.
6287         * record-full.c (record_full_goto_entry): Set stop_pc.
6288
6289 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6290
6291         * NEWS: Mention support for tracepoints on aarch64-linux.
6292
6293 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6294
6295         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6296         function.  Return 1.
6297         (the_low_target): Install it.
6298
6299 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6300
6301         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6302         * gdb.trace/collection.exp: Likewise.
6303         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6304         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6305         * gdb.trace/report.exp: Likewise.
6306         * gdb.trace/trace-break.exp: Likewise.
6307         * gdb.trace/unavailable.exp: Likewise.
6308         * gdb.trace/while-dyn.exp: Likewise.
6309
6310 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6311
6312         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6313         (aarch64_gen_return_address): New function.
6314         (aarch64_gdbarch_init): Hook it.
6315
6316 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6317
6318         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6319         swallow NOT_AVAILABLE_ERROR.
6320         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6321         available_p is not set.
6322         (aarch64_stub_frame_unwind_stop_reason): New function.
6323         (aarch64_stub_unwind): Install it.
6324
6325 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6326
6327         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6328         field.
6329         (aarch64_make_prologue_cache_1): New function, factored out from
6330         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6331         available_p.
6332         (aarch64_make_prologue_cache): Reimplement wrapping
6333         aarch64_make_prologue_cache_1, and swallowing
6334         NOT_AVAILABLE_ERROR.
6335         (aarch64_prologue_frame_unwind_stop_reason): New function.
6336         Return UNWIND_UNAVAILABLE if available_p is not set.
6337         (aarch64_prologue_unwind): Install it.
6338         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6339         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6340         frame_id_build_unavailable_stack if available_p is not set.
6341
6342 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6343
6344         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6345         fields.
6346         (aarch64_scan_prologue): Set prev_pc.
6347         (aarch64_make_prologue_cache): Set func.
6348         (aarch64_make_stub_cache): Set prev_pc.
6349         (aarch64_prologue_this_id): Remove local variables id, pc and
6350         func.  Read prev_pc and func from cache.
6351         (aarch64_stub_this_id): Read prev_pc from cache.
6352
6353 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6354
6355         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6356         argument this_cache.  Remove unused local variables reg and
6357         unwound_fp.  Return early if this_cache is already set.  Set
6358         this_cache.
6359         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6360
6361 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6362
6363         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6364         New argument this_cache.  Return early if this_cache is already
6365         set.  Set this_cache.
6366         (aarch64_prologue_this_id): Update call to
6367         aarch64_make_prologue_cache.
6368         (aarch64_prologue_prev_register): Likewise.
6369         (aarch64_normal_frame_base): Likewise.
6370
6371 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6372
6373         * c-valprint.c (c_val_print): Factor out memberptr printing code
6374         from c_val_print to ...
6375         (c_val_print_memberptr): ... this new function.
6376
6377 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6378
6379         * c-valprint.c (c_val_print): Factor out int printing code to ...
6380         (c_val_print_int): ... this new function.
6381
6382 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6383
6384         * c-valprint.c (c_val_print): Factor out struct and union
6385         printing code to ...
6386         (c_val_print_struct): ... this new function ...
6387         (c_val_print_union): ... and this new function.
6388
6389 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6390
6391         * c-valprint.c (c_val_print): Factor out pointer printing code
6392         to ...
6393         (c_val_print_ptr): ... this new function.
6394
6395 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6396
6397         * c-valprint.c (c_valprint): Factor our array printing code from
6398         c_val_print to ...
6399         (c_val_print_array): ... this new function.
6400
6401 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6402
6403         * c-valprint.c (c_val_print): Factor out pointer printing code
6404         to ...
6405         (print_unpacked_pointer): ... this new function.
6406
6407 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6408
6409         * c-valprint.c (c_val_print): Remove an assignment to i and move
6410         its declaration.
6411
6412 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6413
6414         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6415         argument ptid.  Update comments.  Caller update.
6416
6417 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6418
6419         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6420         mnt packets.
6421
6422 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6423
6424         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6425
6426 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6427
6428         * progspace.c (delete_program_space): Add missing spaces.
6429
6430 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6431
6432         * inferior.c (delete_inferior_1): Rename to ...
6433         (delete_inferior): ..., remove 'silent' parameter, delete
6434         program space when unused and remove call to prune_program_spaces.
6435         Remove the old, unused, delete_inferior.
6436         (delete_inferior_silent): Remove.
6437         (prune_inferiors): Change call from delete_inferior_1 to
6438         delete_inferior and remove 'silent' parameter. Remove call to
6439         prune_program_spaces.
6440         (remove_inferior_command): Idem.
6441         * inferior.h (delete_inferior_1): Rename to...
6442         (delete_inferior): ..., remove 'silent' parameter and remove the
6443         original delete_inferior.
6444         (delete_inferior_silent): Remove.
6445         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6446         delete_inferior_1 to delete_inferior and remove 'silent'
6447         parameter.
6448         * progspace.c (prune_program_spaces): Remove.
6449         (pspace_empty_p): Rename to...
6450         (program_space_empty_p): ... and make non-static.
6451         (delete_program_space): New.
6452         * progspace.h (prune_program_spaces): Remove declaration.
6453         (program_space_empty_p): New declaration.
6454         (delete_program_space): New declaration.
6455         * monitor.c (monitor_close): Replace call to
6456         delete_thread_silent and delete_inferior_silent with
6457         discard_all_inferiors.
6458
6459 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6460
6461         * defs.h (deprecated_register_changed_hook): Remove prototype.
6462         * interps.c (clear_iterpreter_hooks): Remove reference to
6463         deprecated_register_changed_hook.
6464         * top.c (deprecated_register_changed_hook): Remove prototype.
6465         * valops.c (value_assign): Remove reference to
6466         deprecated_register_changed_hook.
6467         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6468         Add comment documenting the function.
6469         (tui_register_changed_observer): Define.
6470         (tui_install_hooks): Remove reference to
6471         deprecated_register_changed_hook.  Set
6472         tui_register_changed_observer.
6473         (tui_remove_hooks): Remove reference to
6474         deprecated_register_changed_hook.  Unset
6475         tui_register_changed_observer.
6476
6477 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6478
6479         PR compile/18484
6480         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6481
6482 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6483
6484         PR exp/18617
6485         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6486
6487 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6488
6489         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6490
6491 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6492
6493         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6494         Use safe_strerror() instead of strerror().
6495
6496 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6497
6498         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6499         * features/arm-with-m-fpa-layout.c: Regenerated.
6500         * features/arm-with-m-vfp-d16.xml: Likewise.
6501         * features/arm-with-m-vfp-d16.c: Regenerated.
6502         * features/arm-with-m.xml: Likewise.
6503         * features/arm-with-m.c: Regenerated.
6504         * features/arm-with-neon.xml: Likewise.
6505         * features/arm-with-neon.c: Regenerated.
6506         * features/arm-with-vfpv2.xml: Likewise.
6507         * features/arm-with-vfpv2.c: Regenerated.
6508         * features/arm-with-vfpv3.xml: Likewise.
6509         * features/arm-with-vfpv3.c: Regenerated.
6510
6511 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6512
6513         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6514         arm-linux-nat.c.
6515         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6516         elf/external.h.
6517         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6518         if target is 32-bit.
6519         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6520         if target is 32-bit.
6521         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6522         if target is 32-bit.
6523         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6524         if target is 32-bit.
6525         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6526         (aarch64_linux_read_description): Return the right target
6527         description.
6528         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6529         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6530         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6531         arm-linux-tdep.o.
6532
6533 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6534
6535         * aarch32-linux-nat.c: New file.
6536         * aarch32-linux-nat.h: New file.
6537         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6538         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6539         aarch32_gp_regcache_supply.
6540         (store_regs): Move code to aarch32-linux-nat.c.  Call
6541         aarch32_gp_regcache_collect.
6542         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6543         aarch32_vfp_regcache_supply.
6544         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6545         aarch32_vfp_regcache_collect.
6546         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6547
6548 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6549
6550         * arm-linux-nat.c (store_fpregister): Remove.
6551         (store_register): Likewise.
6552         (fetch_fpregister): Likewise.
6553         (fetch_register): Likewise.
6554         (arm_linux_store_inferior_registers): Call store_regs and
6555         store_fpregs instead.
6556         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6557         fetch_regs instead.
6558
6559 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6560
6561         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6562         and focus commands.
6563
6564 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6565
6566         * NEWS: Create a new section for the next release branch.
6567         Rename the section of the current branch, now that it has
6568         been cut.
6569
6570 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6571
6572         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6573         * version.in: Bump version to 7.10.50.DATE-cvs.
6574
6575 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6576
6577         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6578         breakpoints in a special way.
6579         (remove_breakpoint): Likewise.
6580         (mark_breakpoints_out): Likewise.
6581
6582 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6583
6584         * doc/gdb.texinfo (TUI): Add comma after @xref.
6585
6586 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6587
6588         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6589         instead of casting the structure type.
6590
6591 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6592
6593         * valops.c (search_struct_field): Remove OFFSET parameter.
6594         (value_cast_structs): Adjust calls to search_struct_field.
6595         (value_struct_elt): Same.
6596         (find_overload_match): Same.
6597
6598 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6599
6600         * value.c (value_fetch_lazy): Update comment, change return
6601         value to void.
6602         * value.h (value_fetch_lazy): Change return value to void.
6603
6604 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6605
6606         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6607         (tui_win_name): Make parameter and result const.
6608         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6609
6610 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6611
6612         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6613         use printf_unfiltered.
6614         (set_mpx_cmd): Add missing trailing space to command string
6615         literal.
6616         (_initialize_i386_tdep): Give the "mpx" prefix command its
6617         correct name.
6618
6619 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6620
6621         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6622         (enum rx_frame_type): New.
6623         (struct rx_prologue): Add new field `frame_type'.
6624         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6625         parameter in the prologue struct.  Add code for recording
6626         locations of PC and PSW for fast interrupt and exception frames.
6627         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6628         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6629         (rx_frame_type): New function.
6630         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6631         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6632         `this_cache'.
6633         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6634         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6635         RX_FRAME_TYPE_FAST_INTERRUPT.
6636         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6637         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6638         (rx_frame_unwind): Use rx_frame_sniffer instead of
6639         default_frame_sniffer.
6640         (rx_frame_unwind): New unwinder.
6641         (rx_gdbarch_init): Register new unwinder.
6642
6643 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6644
6645         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6646         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6647         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6648         and RX_FPSW_REGNUM.
6649         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6650
6651 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6652
6653         Fix GCC false warning.
6654         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6655
6656 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6657
6658         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6659         typo in the debugging message.
6660
6661 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6662
6663         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6664         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6665         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6666         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6667         (btrace_maint_clear): New.
6668         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6669         (pt_print_packet, btrace_maint_decode_pt)
6670         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6671         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6672         (maint_btrace_packet_history_cmd)
6673         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6674         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6675         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6676         (maint_info_btrace_cmd, _initialize_btrace): New.
6677         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6678         (btrace_maint_packet_history, btrace_maint_info): New.
6679         (btrace_thread_info) <maint>: New.
6680         * NEWS: Announce it.
6681
6682 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6683
6684         * btrace.c (btrace_fetch): Append the new trace data.
6685         (btrace_clear): Clear the stored trace data.
6686         * btrace.h (btrace_thread_info) <data>: New.
6687         * common/btrace-common.h (btrace_data_clear)
6688         (btrace_data_append): New.
6689         * common/btrace-common.c (btrace_data_clear)
6690         (btrace_data_append): New.
6691
6692 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6693
6694         * nat/linux-btrace.c (linux_enable_bts): Check for
6695         PERF_ATTR_SIZE_VER5.
6696         Check for data_offset and data_size fields.  Use them.
6697
6698 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6699
6700         * NEWS: Announce new commands "record btrace pt" and "record pt".
6701         Announce new options "set|show record btrace pt buffer-size".
6702         * btrace.c: Include "rsp-low.h".
6703         Include "inttypes.h".
6704         (btrace_add_pc): Add forward declaration.
6705         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6706         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6707         (btrace_compute_ftrace_pt): New.
6708         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6709         (check_xml_btrace_version): Update version check.
6710         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6711         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6712         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6713         (btrace_pt_children): New.
6714         (btrace_children): Add support for "pt".
6715         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6716         (btrace_conf_children): Add support for "pt".
6717         * btrace.h: Include "intel-pt.h".
6718         (btrace_pt_error): New.
6719         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6720         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6721         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6722         (struct btrace_config_pt): New.
6723         (struct btrace_config)<pt>: New.
6724         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6725         (struct btrace_data)<pt>: New.
6726         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6727         (pt): New.
6728         * features/btrace.dtd (btrace)<pt>: New.
6729         (pt, pt-config, cpu): New.
6730         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6731         (perf_event_pt_event_type, kernel_supports_pt)
6732         (linux_supports_pt): New.
6733         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6734         (linux_enable_bts): Free tinfo on error.
6735         (linux_enable_pt): New.
6736         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6737         (linux_disable_pt): New.
6738         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6739         (linux_fill_btrace_pt_config, linux_read_pt): New.
6740         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6741         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6742         (struct btrace_target_info)<pt>: New.
6743         * record-btrace.c (set_record_btrace_pt_cmdlist)
6744         (show_record_btrace_pt_cmdlist): New.
6745         (record_btrace_print_pt_conf): New.
6746         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6747         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6748         (cmd_record_btrace_pt_start): New.
6749         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6750         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6751         (_initialize_record_btrace): Add new commands.
6752         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6753         (remote_protocol_features): Add "Qbtrace:pt".
6754         Add "Qbtrace-conf:pt:size".
6755         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6756         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6757         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6758         (_initialize_remote): Add new commands.
6759
6760 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6761
6762         * configure.ac: check for libipt
6763         * configure: Regenerate.
6764         * config.in: Regenerate.
6765         * Makefile.in (LIBIPT): New.
6766         (CLIBS): Add $LIBIPT.
6767         * NEWS: document new configure options
6768
6769 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6770
6771         * compile/compile-object-load.c (compile_object_load): Replace debug
6772         message "lookup undefined ELF symbol" by 3 more specific messages.
6773
6774 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6775
6776         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6777         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6778         (rl78_gdbarch_init): Initialize rl78_psw_type.
6779
6780 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6781
6782         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6783         Update commentary.  Always refresh the registers when frame
6784         information has changed.
6785         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6786         Change return type to int.  Return 1 if frame information has
6787         changed, 0 otherwise.
6788         (tui_before_prompt): Update commentary.
6789         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6790         int.
6791
6792 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6793
6794         PR tui/13378
6795         * frame.c (select_frame): Remove reference to
6796         deprecated_selected_frame_level_changed_hook.
6797         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6798         declaration.
6799         * stack.c (deprecated_selected_frame_level_changed_hook):
6800         Likewise.
6801         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6802         Rename to ...
6803         (tui_refresh_frame_and_register_information): ... this.  Bail
6804         out if there is no stack.  Don't update register information
6805         unless registers_too_p is true.
6806         (tui_print_frame_info_listing_hook): Rename to ...
6807         (tui_dummy_print_frame_info_listing_hook): ... this.
6808         (tui_before_prompt): New function.
6809         (tui_normal_stop): New function.
6810         (tui_before_prompt_observer): New observer.
6811         (tui_normal_stop_observer): New observer.
6812         (tui_install_hooks): Set
6813         deprecated_print_frame_info_listing_hook to
6814         tui_dummy_print_frame_info_listing_hook.  Register
6815         tui_before_prompt_observer to call tui_before_prompt and
6816         tui_normal_stop_observer to call tui_normal_stop.  Remove
6817         reference to deprecated_selected_frame_level_changed_hook.
6818         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6819         and tui_normal_stop_observer.  Remove reference to
6820         deprecated_selected_frame_level_changed_hook.
6821
6822 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6823
6824         PR tui/13378
6825         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6826         return an int instead of void.  Return whether the locator
6827         window has changed.
6828         (tui_show_frame_info): If the locator info has not changed, then
6829         bail out early to avoid refreshing the windows.
6830
6831 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6832
6833         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6834         LOCATOR_WIN to tui_alloc_content.
6835
6836 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6837
6838         PR tdep/18605
6839         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6840         instructions.
6841
6842 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6843
6844         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6845         (rx_dwarf_reg_to_regnum): New function.
6846         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6847         unwinding.
6848
6849 2015-06-29  Pedro Alves  <palves@redhat.com>
6850
6851         PR threads/18127
6852         * infcall.c (run_inferior_call): On infcall success, if the thread
6853         was marked stopped before, reset it back to stopped.
6854         * infrun.c (resume): Don't suppress the set_running calls when
6855         doing an infcall.
6856         (normal_stop): Only discard the finish_thread_state cleanup if the
6857         infcall succeeded.
6858
6859 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6860
6861         * MAINTAINERS (Write After Approval): Update my email address.
6862
6863 2015-06-26  Keith Seitz  <keiths@redhat.com>
6864             Doug Evans  <dje@google.com>
6865
6866         PR 16253
6867         * block.c (block_lookup_symbol): For non-function blocks,
6868         continue to search for a symbol with an exact domain match
6869         Otherwise, return any previously found "best domain" symbol.
6870         (block_lookup_symbol_primary): Likewise.
6871
6872 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6873
6874         * NEWS: Mention the new option "history remove-duplicates".
6875         * top.c (history_remove_duplicates): New static variable.
6876         (show_history_remove_duplicates): New static function.
6877         (gdb_add_history): Conditionally remove duplicate history
6878         entries.
6879         (init_main): Add "history remove-duplicates" option.
6880
6881 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6882
6883         * tui/tui-win.c (focus_completer): New static function.
6884         (_initialize_tui_win): Set the completion function of the
6885         "focus" command to focus_completer.
6886
6887 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6888
6889         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6890         and language_asm..
6891         * symtab.c (find_function_start_sal): Likewise.
6892
6893 2015-06-25  Gary Benson  <gbenson@redhat.com>
6894
6895         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6896         it is the empty string after trailing slashes have been stripped.
6897
6898 2015-06-25  Gary Benson  <gbenson@redhat.com>
6899
6900         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6901         * infrun.c (follow_exec): Likewise.
6902         * remote.c (remote_filesystem_is_local): Likewise.
6903         * solib.c (solib_find_1): Likewise.
6904
6905 2015-06-24  Keith Seitz  <keiths@redhat.com>
6906
6907         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6908         return value from lrealpath.
6909
6910 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6911
6912         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6913
6914 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6915
6916         * remote-sim.c: Include gdb_bfd.h.
6917         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6918         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6919
6920 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6921
6922         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6923         set_gdbarch_get_siginfo_type.
6924         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6925         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6926         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6927         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6928         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6929         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6930         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6931         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6932         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6933         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6934
6935 2015-06-24  Gary Benson  <gbenson@redhat.com>
6936
6937         * common/buffer.c (stdint.h): Do not include.
6938         * common/print-utils.c (stdint.h): Likewise.
6939         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6940         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6941         * ft32-tdep.c (gdb_assert.h): Likewise.
6942         * guile/scm-utils.c (stdint.h): Likewise.
6943         * i386-linux-tdep.c (stdint.h): Likewise.
6944         * i386-tdep.c (stdint.h): Likewise.
6945         * nat/linux-btrace.c (stdint.h): Likewise.
6946         * nat/linux-btrace.h (stdint.h): Likewise.
6947         * nat/linux-ptrace.c (stdint.h): Likewise.
6948         * nat/mips-linux-watch.h (stdint.h): Likewise.
6949         * ppc-linux-nat.c (stdint.h): Likewise.
6950         * python/python-internal.h (stdint.h): Likewise.
6951         * stub-termcap.c (stdlib.h): Likewise.
6952         * target/target.h (stdint.h): Likewise.
6953         * xtensa-linux-nat.c (stdint.h): Likewise.
6954
6955 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6956
6957         * top.c (init_history): Look at errno after calling strtol to
6958         properly map large GDBHISTSIZE values to infinity.
6959
6960 2015-06-23  Doug Evans  <dje@google.com>
6961
6962         * inferior.h (struct inferior_suspend_state): Delete, unused.
6963         All references deleted.
6964
6965 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6966
6967         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6968         (microblaze_push_dummy_call): Likewise.
6969         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6970         and set_gdbarch_push_dummy_call.
6971
6972 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6973
6974         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6975         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6976         (amd64_linux_store_inferior_registers): Likewise.
6977         * arm-linux-nat.c (fetch_fpregister): Likewise.
6978         (fetch_fpregs, store_fpregister): Likewise.
6979         (store_fpregister, store_fpregs): Likewise.
6980         (fetch_register, fetch_regs): Likewise.
6981         (store_register, store_regs): Likewise.
6982         (fetch_vfp_regs, store_vfp_regs): Likewise.
6983         (arm_linux_read_description): Check have_ptrace_getregset is
6984         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
6985         or TRIBOOL_FALSE.
6986         * i386-linux-nat.c (fetch_xstateregs): Check
6987         have_ptrace_getregset is not TRIBOOL_TRUE.
6988         (store_xstateregs): Likewise.
6989         * linux-nat.c (have_ptrace_getregset): Change its type to
6990         enum tribool.
6991         * linux-nat.h (tribool): New enum.
6992         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6993         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6994
6995 2015-06-19  Doug Evans  <dje@google.com>
6996
6997         * NEWS: Mention Sun's version of stabs is no longer supported.
6998         * elfread.c (free_elfinfo): Delete.  All uses updated.
6999         (elfstab_offset_sections): Delete.  All uses updated.
7000         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7001         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7002         All uses updated.
7003         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7004         All callers updated.
7005
7006 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7007
7008         * common/rsp-low.c (needs_escaping): New.
7009         (remote_escape_output): Add unit_size parameter. Refactor to
7010         support multi-byte addressable units.  Rename parameters.
7011         * common/rsp-low.h (remote_escape_output): Add unit_size
7012         parameter and rename others. Update doc.
7013         * remote.c (align_for_efficient_write): New.
7014         (remote_write_bytes_aux): Add unit_size parameter and use it.
7015         Rename some variables.  Update doc.
7016         (remote_xfer_partial): Get unit size and use it.
7017         (remote_read_bytes_1): Add unit_size parameter and use it.
7018         Rename some variables. Update doc.
7019         (remote_write_bytes): Same.
7020         (remote_xfer_live_readonly_partial): Same.
7021         (remote_read_bytes): Same.
7022         (remote_flash_write): Update call to remote_write_bytes_aux.
7023         (remote_write_qxfer): Update call to remote_escape_output.
7024         (remote_search_memory): Same.
7025         (remote_hostio_pwrite): Same.
7026
7027 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7028
7029         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7030         locations as inserted.
7031         Update and expand comment about permanent locations.
7032         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7033         Move comment to add_location_to_breakpoint.
7034         (update_global_location_list): Don't error out if a permanent
7035         breakpoint is not marked inserted.
7036         Don't error out if a non-permanent breakpoint location is inserted on
7037         top of a permanent breakpoint.
7038
7039 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7040
7041         * breakpoint.c (make_breakpoint_permanent): Remove unused
7042         function.
7043         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7044
7045 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7046
7047         PR gdb/16999
7048         * NEWS: Mention new GDBHISTSIZE behavior.
7049         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7050         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7051
7052 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7053
7054         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7055         * top.c (init_history): Read from GDBHISTSIZE instead of
7056         HISTSIZE.
7057         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7058
7059 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7060
7061         * top.c (gdb_safe_append_history): Do not call
7062         history_truncate_file if the history is not stifled.
7063
7064 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7065
7066         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7067         * syscalls/s390x-linux.xml: Likewise.
7068
7069 2015-06-16  Michael Eager  <eager@eagercon.com>
7070
7071         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7072
7073 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7074
7075         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7076         target_terminal_ours_for_output() before calling
7077         tui_show_frame_info(), and restore the original terminal
7078         settings afterwards.
7079
7080 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7081
7082         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7083
7084 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7085
7086         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7087         memory unit size.
7088         (mi_cmd_data_write_memory_bytes): Same.
7089
7090 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7091
7092         * corefile.c (write_memory): Update doc.
7093         * gdbcore.h (write_memory): Same.
7094
7095 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7096
7097         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7098         (dump_mapping_p): Use it for parameter filterflags.
7099         (linux_find_memory_regions_full): Use it for variable filterflags.
7100
7101 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7102             Jan Kratochvil  <jan.kratochvil@redhat.com>
7103
7104         Merge multiple hex conversions.
7105         * monitor.c: Include rsp-low.h.
7106         (fromhex): Remove definition.
7107
7108 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7109             Jan Kratochvil  <jan.kratochvil@redhat.com>
7110
7111         Move utility functions to common/.
7112         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7113         Move defs to common/common-utils.c.
7114         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7115         (skip_to_space_const): Move decls to common/common-utils.h.
7116         * common/common-defs.h: Move include of common-types.h before
7117         common-utils.h.
7118         * common/common-utils.c: Include host-defs.h and ctype.h.
7119         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7120         from utils.c.
7121         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7122         cli/cli-utils.c.
7123         * common/common-utils.h (strtoulst): Move decl from utils.h.
7124         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7125         Move from cli/cli-utils.h.
7126         * common/host-defs.h: Include limits.h.
7127         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7128         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7129         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7130         common/common-utils.h.
7131         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7132         (strtoulst): Move to common/common-utils.c.
7133         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7134
7135 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7136
7137         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7138
7139 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7140
7141         * build-id.c: Don't include elf-bfd.h.
7142         (build_id_bfd_get): Use bfd_build_id.
7143         (build_id_verify): Ditto.
7144         * build-id.h: Ditto.
7145         (find_separate_debug_file_by_buildid): Ditto.
7146         * python/py-objfile.c: Don't include elf-bfd.h.
7147         (objfpy_get_build_id) Use bfd_build_id.
7148         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7149         * coffread.c: Include build-id.h.
7150         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7151
7152 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7153
7154         * windows-nat.c (do_windows_fetch_inferior_registers)
7155         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7156         conditional with __CYGWIN__.
7157
7158 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7159
7160         * completer.c: Add arch-utils.h include.
7161         (enum reg_completer_targets): New enum.
7162         (reg_or_group_completer_1): New function containing old
7163         reg_or_group_completer, add and use new parameter to control what
7164         is completed on.  Use get_current_arch rather than architecture of
7165         currently selected frame.
7166         (reg_or_group_completer): Call new reg_or_group_completer_1.
7167         (reggroup_completer): Call new reg_or_group_completer_1.
7168         * completer.h (reggroup_completer): Add declaration.
7169         * tui/tui-regs.c: Add 'completer.h' include.
7170         (tui_reg_next_command): Renamed to...
7171         (tui_reg_next): ...this.  Adjust parameters and return rather than
7172         display new group.
7173         (tui_reg_prev_command): Renamed to...
7174         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7175         display new group.
7176         (tui_reg_float_command): Delete.
7177         (tui_reg_general_command): Delete.
7178         (tui_reg_system_command): Delete.
7179         (tui_reg_command): Rewrite to perform switching of register group.
7180         Add header comment.
7181         (tuireglist): Remove.
7182         (tui_reggroup_completer): New function.
7183         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7184         creation of 'tui reg' command.
7185         * NEWS: Add comment about 'tui reg' changes.
7186
7187 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7188
7189         * target.c (target_read): Consider addressable unit size when
7190         reading from a memory object.
7191         (read_memory_robust): Same.
7192         (read_whatever_is_readable): Same.
7193         (target_write_with_progress): Consider addressable unit size
7194         when writing to a memory object.
7195         * target.h (target_read): Update documentation.
7196         (target_write): Add documentation.
7197
7198 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7199
7200         * arch-utils.h (default_addressable_memory_unit_size): New.
7201         * arch-utils.c (default_addressable_memory_unit_size): New.
7202         * gdbarch.sh (addressable_memory_unit_size): New.
7203         * gdbarch.h: Re-generate.
7204         * gdbarch.c: Re-generate.
7205
7206 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7207
7208         * target.c (target_read): Rename variables and use
7209         TARGET_XFER_E_IO.
7210         (target_read_with_progress): Same.
7211         (read_memory_robust): Constify parameters and rename
7212         variables.
7213         (read_whatever_is_readable): Constify parameters,
7214         rename variables, adjust formatting.
7215         * target.h (read_memory_robust): Constify parameters.
7216
7217 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7218
7219         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7220         synthetic (non-AltiVec) vector types.
7221         (ppc64_sysv_abi_return_value): Likewise.
7222
7223 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7224
7225         PR breakpoints/16465
7226         * breakpoint.c (create_breakpoint): Save extra_string for
7227         pending breakpoints.
7228
7229 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7230
7231         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7232         and bt_mask to CORE_ADDR.
7233
7234 2015-06-11  Gary Benson <gbenson@redhat.com>
7235
7236         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7237         (mnsh_recv_message): Likewise.
7238
7239 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7240
7241         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7242         long long int and plongest instead of %ll.
7243
7244 2015-06-11  Gary Benson <gbenson@redhat.com>
7245
7246         * nat/linux-namespaces.c (gdb_wait.h): New include.
7247         (sys/wait.h): Do not include.
7248
7249 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7250
7251         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7252         end_sequence is true.
7253
7254 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7255
7256         Code cleanup.
7257         * solib-target.c (library_list_start_list): Use explicit NULL
7258         comparison.
7259
7260 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7261
7262         * solib-target.c (library_list_start_list): Do not dereference
7263         variable version in its initialization.  Make the VERSION check handle
7264         NULL.
7265         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7266
7267 2015-06-10  Gary Benson <gbenson@redhat.com>
7268
7269         * NEWS: Announce support for direct access of executable and
7270         shared library files when attaching to inferiors in containers
7271         on GNU/Linux systems.
7272
7273 2015-06-10  Gary Benson <gbenson@redhat.com>
7274
7275         * remote.c (struct remote_state) <fs_pid>: New field.
7276         (new_remote_state): Initialize the above.
7277         (PACKET_vFile_setfs): New enum value.
7278         (remote_hostio_set_filesystem): New function.
7279         (remote_hostio_open): Call the above.
7280         (remote_hostio_unlink): Likewise.
7281         (remote_hostio_readlink): Likewise.
7282         (_initialize_remote): Register new "set/show remote
7283         hostio-setfs-packet" command.
7284         * NEWS: Announce new vFile:setfs packet.
7285
7286 2015-06-10  Gary Benson <gbenson@redhat.com>
7287
7288         * linux-nat.c (nat/linux-namespaces.h): New include.
7289         (fileio.h): Likewise.
7290         (linux_nat_filesystem_is_local): New function.
7291         (linux_nat_fileio_pid_of): Likewise.
7292         (linux_nat_fileio_open): Likewise.
7293         (linux_nat_fileio_readlink): Likewise.
7294         (linux_nat_fileio_unlink): Likewise.
7295         (linux_nat_add_target): Initialize to_filesystem_is_local,
7296         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7297         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7298         commands.
7299         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7300
7301 2015-06-10  Gary Benson <gbenson@redhat.com>
7302
7303         * target.h (struct inferior): New forward declaration.
7304         (struct target_ops) <to_filesystem_is_local>: Update comment.
7305         (struct target_ops) <to_fileio_open>: New argument inf.
7306         Update comment.  All implementations updated.
7307         (struct target_ops) <to_fileio_unlink>: Likewise.
7308         (struct target_ops) <to_fileio_readlink>: Likewise.
7309         (target_filesystem_is_local): Update comment.
7310         (target_fileio_open): New argument inf.  Update comment.
7311         (target_fileio_unlink): Likewise.
7312         (target_fileio_readlink): Likewise.
7313         (target_fileio_read_alloc): Likewise.
7314         (target_fileio_read_stralloc): Likewise.
7315         * target.c (target_fileio_open): New argument inf.
7316         Pass inf to implementation.  Update debug printing.
7317         (target_fileio_unlink): Likewise.
7318         (target_fileio_readlink): Likewise.
7319         (target_fileio_read_alloc_1): New argument inf. Pass inf
7320         to target_fileio_open.
7321         (target_fileio_read_alloc): New argument inf. Pass inf to
7322         target_fileio_read_alloc_1.
7323         (target_fileio_read_stralloc): Likewise.
7324         * gdb_bfd.c (inferior.h): New include.
7325         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7326         argument with new argument "inferior".  Pass inferior to
7327         target_fileio_open.
7328         (gdb_bfd_open): Supply inferior argument to
7329         gdb_bfd_iovec_fileio_open.
7330         * linux-tdep.c (linux_info_proc): Supply inf argument to
7331         relevant target_fileio calls.
7332         (linux_find_memory_regions_full): Likewise.
7333         (linux_fill_prpsinfo): Likewise.
7334         * remote.c (remote_filesystem_is_local): Supply inf
7335         argument to remote_hostio_open.
7336         (remote_file_put): Likewise.
7337         (remote_file_get): Likewise.
7338         (remote_file_delete): Supply inf argument to
7339         remote_hostio_unlink.
7340
7341 2015-06-10  Gary Benson <gbenson@redhat.com>
7342
7343         * inf-child.c (inf_child_fileio_open): Replace comment.
7344         (inf_child_fileio_pwrite): Likewise.
7345         (inf_child_fileio_pread): Likewise.
7346         (inf_child_fileio_fstat): Insert blank line before comment.
7347         (inf_child_fileio_close): Replace comment.
7348         (inf_child_fileio_unlink): Likewise.
7349         (inf_child_fileio_readlink): Likewise.
7350         * remote.c (remote_hostio_open): Likewise.
7351         (remote_hostio_pread): Likewise.
7352         (remote_hostio_pwrite): Likewise.
7353         (remote_hostio_close): Likewise.
7354         (remote_hostio_unlink): Likewise.
7355         (remote_hostio_readlink): Likewise.
7356         (remote_hostio_fstat): Likewise.
7357         (remote_filesystem_is_local): Likewise.
7358         * target.c (target_fileio_open): Likewise.
7359         (target_fileio_pwrite): Likewise.
7360         (target_fileio_pread): Likewise.
7361         (target_fileio_fstat): Insert blank line before comment.
7362         (target_fileio_close): Replace comment.
7363         (target_fileio_unlink): Likewise.
7364         (target_fileio_readlink): Likewise.
7365         (target_fileio_read_alloc): Likewise.
7366         (target_fileio_read_stralloc): Likewise.
7367
7368 2015-06-10  Gary Benson <gbenson@redhat.com>
7369
7370         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7371         (check_pid_namespace_match): Use linux_ns_same rather than
7372         linux_proc_pid_get_ns to spot PID namespace mismatches.
7373         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7374         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7375
7376 2015-06-10  Gary Benson <gbenson@redhat.com>
7377
7378         * configure.ac (AC_CHECK_FUNCS): Add setns.
7379         * config.in: Regenerate.
7380         * configure: Likewise.
7381         * nat/linux-namespaces.h: New file.
7382         * nat/linux-namespaces.c: Likewise.
7383         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7384         (linux-namespaces.o): New rule.
7385         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7386         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7387         * config/arm/linux.mh (NATDEPFILES): Likewise.
7388         * config/i386/linux.mh (NATDEPFILES): Likewise.
7389         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7390         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7391         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7392         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7393         * config/mips/linux.mh (NATDEPFILES): Likewise.
7394         * config/pa/linux.mh (NATDEPFILES): Likewise.
7395         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7396         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7397         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7398         * config/s390/linux.mh (NATDEPFILES): Likewise.
7399         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7400         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7401         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7402         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7403
7404 2015-06-10  Gary Benson <gbenson@redhat.com>
7405
7406         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7407         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7408         (make_cleanup_close): Likewise.
7409         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7410         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7411         (make_cleanup_close): Likewise.
7412
7413 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7414
7415         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7416         from SuspendThread().
7417
7418 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7419
7420         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7421         from OutputDebugString.
7422
7423 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7424                         Mircea Gherzan  <mircea.gherzan@intel.com>
7425
7426         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7427         MPX_BT_MASK_32): New macros.
7428         (i386_mpx_set_bounds): New function that implements
7429         the command "set-mpx-bound".
7430         (i386_mpx_enabled): Helper function to test MPX availability.
7431         (i386_mpx_bd_base): Helper function to calculate the base directory
7432         address.
7433         (i386_mpx_get_bt_entry): Helper function to access a bound
7434         table entry.
7435         (i386_mpx_print_bounds): Effectively display bound information.
7436         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7437         "show mpx".
7438         (_initialize_i386_tdep):
7439         Add "bound" to the commands "show mpx" and "set mpx" commands.
7440         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7441         and "show mpx" commands.
7442         * NEWS: List new commands for MPX support.
7443
7444 2015-06-09  Gary Benson <gbenson@redhat.com>
7445
7446         * common/fileio.h (fileio_to_host_mode): New declaration.
7447         * common/fileio.c (fileio_to_host_mode): New Function.
7448         * inf-child.c (inf_child_fileio_open): Process mode argument
7449         with fileio_to_host_mode.
7450
7451 2015-06-09  Gary Benson <gbenson@redhat.com>
7452
7453         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7454         conditional.
7455
7456 2015-06-05  Gary Benson <gbenson@redhat.com>
7457
7458         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7459         * remote.c (remote_filesystem_is_local): ...here.
7460
7461 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7462
7463         * gdbarch.c: Regenerate it.
7464
7465 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7466
7467         * arch-utils.c (default_infcall_munmap): New.
7468         * arch-utils.h (default_infcall_munmap): New declaration.
7469         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7470         (munmap_list_free, munmap_listp_free_cleanup): New.
7471         (struct setup_sections_data): Add field munmap_list_headp.
7472         (setup_sections): Call munmap_list_add.
7473         (compile_object_load): New variable munmap_list_head, initialize
7474         setup_sections_data.munmap_list_headp, return munmap_list_head.
7475         * compile/compile-object-load.h (struct munmap_list): New declaration.
7476         (struct compile_module): Add field munmap_list_head.
7477         (munmap_list_free): New declaration.
7478         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7479         munmap_list_head.
7480         (do_module_cleanup): Call munmap_list_free.
7481         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7482         * gdbarch.c: Regenerate.
7483         * gdbarch.h: Regenerate.
7484         * gdbarch.sh (infcall_munmap): New.
7485         * linux-tdep.c (linux_infcall_munmap): New.
7486         (linux_init_abi): Install it.
7487
7488 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7489
7490         PR gdb/15564
7491         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7492
7493 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7494
7495         * i386-linux-nat.c: Include linux-nat.h.
7496
7497 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7498             Jan Kratochvil  <jan.kratochvil@redhat.com>
7499
7500         PR symtab/18392
7501         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7502         assertion.
7503         * dwarf2loc.c (chain_candidate): Likewise.
7504
7505 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7506
7507         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7508         (store_vfp_regs): Use PTRACE_SETREGSET.
7509
7510 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7511
7512         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7513         (fetch_fpregs): Likewise.
7514         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7515         (store_fpregs): Likewise.
7516
7517 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7518
7519         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7520         (fetch_regs): Likewise.
7521         (store_regs): Use PTRACE_SETREGSET.
7522         (store_register): Likewise.
7523
7524 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7525
7526         * arm-linux-nat.c (arm_linux_read_description): Check whether
7527         kernel supports PTRACE_GETREGSET.
7528
7529 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7530
7531         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7532         * linux-nat.c: ... here.
7533         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7534         to ...
7535         * linux-nat.h: ... here.
7536
7537 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7538
7539         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7540         * i386-linux-nat.c: Likewise.
7541         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7542         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7543         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7544         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7545         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7546
7547 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7548
7549         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7550         compatible to what read_child and write_child return.  This
7551         unbreaks that DJGPP build of GDB which was broken since v7.7.
7552
7553 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7554
7555         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7556
7557 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7558
7559         PR gdb/18464
7560         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7561         rather than internal_error for an unrecognized value.
7562
7563 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7564
7565         * xtensa-tdep.c (xtensa_pseudo_register_read)
7566         (xtensa_pseudo_register_write): Don't alias last pseudo register
7567         to a1.
7568
7569 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7570
7571         * infrun.c (follow_fork_inferior): Ensure the use of
7572         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7573         messages.
7574
7575 2015-05-28  Doug Evans  <dje@google.com>
7576
7577         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7578
7579 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7580
7581         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7582         (arm_linux_fetch_inferior_registers): Use
7583         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7584         (arm_linux_store_inferior_registers): Likewise.
7585         (arm_linux_read_description): Don't set
7586         arm_linux_has_wmmx_registers.
7587         * arm-tdep.c (arm_gdbarch_init): Set
7588         tdep->have_wmmx_registers according target descriptions.
7589         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7590         field.
7591
7592 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7593
7594         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7595         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7596         instead of arm_linux_vfp_register_count.
7597         (store_vfp_regs): Likewise.
7598         (arm_linux_fetch_inferior_registers): Likewise.
7599         (arm_linux_store_inferior_registers): Likewise.
7600         (arm_linux_read_description): Don't set
7601         arm_linux_vfp_register_count.
7602         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7603         Adjust.
7604         * arm-tdep.c (arm_gdbarch_init): Add assert on
7605         vfp_register_count.
7606         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7607         field to vfp_register_count.  All users updated.
7608
7609 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7610
7611         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7612         ELFOSABI_GNU binaries.
7613
7614 2015-05-27  Doug Evans  <dje@google.com>
7615
7616         * dwarf2read.c (lnp_state_machine): New typedef.
7617         (lnp_reader_state): New typedef.
7618         (dwarf_record_line_1): Renamed from dwarf_record_line.
7619         All callers updated.
7620         (dwarf_record_line): New function.
7621         (init_lnp_state_machine): New function.
7622         (check_line_address): Replace p_record_line parameter with state.
7623         All callers updated.
7624         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7625         Update to record state in lnp_state_machine.
7626
7627 2015-05-27  Doug Evans  <dje@google.com>
7628
7629         * dwarf2read.c (record_line_ftype): New typedef.
7630         (check_line_address): New function.
7631         (dwarf_decode_lines_1): Call it.
7632
7633 2015-05-27  Doug Evans  <dje@google.com>
7634
7635         * NEWS: Mention "set debug dwarf-line".
7636         * dwarf2read.c (dwarf_line_debug): New static global.
7637         (add_include_dir): Add debug dwarf-line support.
7638         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7639         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7640
7641 2015-05-27  Doug Evans  <dje@google.com>
7642
7643         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7644         All callers updated.
7645         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7646         * cp-support.h (cp_lookup_nested_symbol): Update.
7647
7648 2015-05-27  Doug Evans  <dje@google.com>
7649
7650         PR symtab/18258
7651         * block.c (block_find_symbol): New function.
7652         (block_find_non_opaque_type): Ditto.
7653         (block_find_non_opaque_type_preferred): Ditto.
7654         * block.h (block_symbol_matcher_ftype): New typedef.
7655         (block_find_symbol): Declare.
7656         (block_find_non_opaque_type): Ditto.
7657         (block_find_non_opaque_type_preferred): Ditto.
7658         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7659         * psymtab.c (psym_lookup_symbol): Ditto.
7660         * symtab.c (basic_lookup_transparent_type_1): New function.
7661         (basic_lookup_transparent_type): Call it.
7662
7663 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7664
7665         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7666         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7667
7668 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7669
7670         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7671         before operator &&.
7672         (aarch64_record_load_store): Likewise.
7673
7674 2015-05-26  Doug Evans  <dje@google.com>
7675
7676         PR c++/18141, c++/18417.
7677         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7678         a typedef.
7679
7680 2015-05-26  Doug Evans  <dje@google.com>
7681
7682         * NEWS: Add entries for command renamings.
7683         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7684         All uses updated.
7685         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7686         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7687         All uses updated.
7688         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7689         All callers updated.  Fix spelling of DWARF in help text.
7690         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7691         All uses updated.
7692         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7693         All uses updated.
7694         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7695         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7696         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7697         All uses updated.
7698         (show_dwarf_always_disassemble): Renamed from
7699         show_dwarf2_always_disassemble.  All callers updated.
7700         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7701         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7702         "set/show dwarf max-cache-age".  Rename
7703         "set/show dwarf2 always-disassemble" to
7704         "set/show dwarf always-disassemble".  Rename
7705         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7706         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7707
7708 2015-05-26  Doug Evans  <dje@google.com>
7709
7710         PR python/18438
7711         * python/py-lazy-string.c (stpy_convert_to_value): Use
7712         gdbpy_gdb_memory_error not PyExc_MemoryError.
7713         (gdbpy_create_lazy_string_object): Ditto.
7714
7715 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7716
7717         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7718
7719 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7720
7721         * tui/tui-regs.c (tui_reg_prev_command): New function.
7722         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7723         * reggroups.c (reggroup_prev): New function.
7724         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7725
7726 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7727             Yao Qi  <yao.qi@linaro.org>
7728
7729         * aarch64-linux-tdep.c: Include linux-record.h and
7730         record-full.h.
7731         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7732         (aarch64_syscall): New enum.
7733         (aarch64_canonicalize_syscall): New function.
7734         (aarch64_all_but_pc_registers_record): New function.
7735         (aarch64_linux_syscall_record): New function.
7736         (aarch64_linux_init_abi): Install AArch64 process record
7737         handler.  Update to handle syscall recording.
7738         * aarch64-tdep.c: Include record.h and record-full.h.
7739         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7740         (struct aarch64_mem_r): Define.
7741         (aarch64_record_result): New enum.
7742         (struct insn_decode_record): Define.
7743         (insn_decode_record): New typedef.
7744         (aarch64_record_data_proc_reg): New function.
7745         (aarch64_record_data_proc_imm): New function.
7746         (aarch64_record_branch_except_sys): New function.
7747         (aarch64_record_load_store): New function.
7748         (aarch64_record_data_proc_simd_fp): New function.
7749         (aarch64_record_asimd_load_store): New function.
7750         (aarch64_record_decode_insn_handler): New function.
7751         (deallocate_reg_mem): New function.
7752         (aarch64_process_record): New function.
7753         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7754         New field.
7755         (aarch64_process_record): New extern declaration.
7756         * configure.tgt: Add linux-record.o to gdb_target_obs.
7757         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7758
7759 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7760
7761         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7762         targets.
7763
7764 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7765
7766         * amd64-tdep.c: Replace in_function_epilogue_p with
7767         stack_frame_destroyed_p throughout.
7768         * arch-utils.c: Ditto.
7769         * arch-utils.h: Ditto.
7770         * arm-tdep.c: Ditto.
7771         * breakpoint.c: Ditto.
7772         * gdbarch.sh: Ditto.
7773         * hppa-tdep.c: Ditto.
7774         * i386-tdep.c: Ditto.
7775         * mips-tdep.c: Ditto.
7776         * nios2-tdep.c: Ditto.
7777         * rs6000-tdep.c: Ditto.
7778         * s390-linux-tdep.c: Ditto.
7779         * score-tdep.c: Ditto.
7780         * sh-tdep.c: Ditto.
7781         * sparc-tdep.c: Ditto.
7782         * sparc-tdep.h: Ditto.
7783         * sparc64-tdep.c: Ditto.
7784         * spu-tdep.c: Ditto.
7785         * tic6x-tdep.c: Ditto.
7786         * tilegx-tdep.c: Ditto.
7787         * xstormy16-tdep.c: Ditto.
7788         * gdbarch.c, gdbarch.h: Re-generated.
7789
7790 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7791
7792         * NEWS: Mention 'tui enable' and 'tui disable'.
7793         * tui/tui.c (tui_enable_command): New function.
7794         (tui_disable_command): New function.
7795         (_initialize_tui): New function.
7796
7797 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7798
7799         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7800
7801 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7802
7803         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7804         buf_ptr is freed.
7805
7806 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7807
7808         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7809         into ...
7810         (tui_set_layout_for_display_command): ...here, before calling
7811         tui_set_layout.  Only set the layout if gdb has not already
7812         entered the TUI_FAILURE state.
7813
7814 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7815
7816         * tui/tui-layout.c (layout_completer): New function.
7817         (_initialize_tui_layout): Set completer on layout command.
7818
7819 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7820
7821         * tui/tui-layout.c (tui_set_layout): Remove
7822         tui_register_display_type parameter.  Remove all checking of this
7823         parameter, and reindent function.  Update header comment.
7824         (tui_set_layout_for_display_command): Rename to...
7825         (tui_set_layout_by_name): ...this, and don't check for different
7826         register class types, don't pass a tui_register_display_type to
7827         tui_set_layout.  Update header comment.
7828         (layout_names): Remove register set specific names.
7829         * tui/tui-layout.h (tui_set_layout): Remove
7830         tui_register_display_type parameter.
7831         * tui/tui.c (tui_rl_change_windows): Don't pass a
7832         tui_register_display_type to tui_set_layout.
7833         (tui_rl_delete_other_windows): Likewise.
7834         (tui_enable): Likewise.
7835         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7836         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7837         (TUI_GENERAL_REGS_NAME): Remove.
7838         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7839         (TUI_SPECIAL_REGS_NAME): Remove.
7840         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7841         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7842         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7843         (enum tui_register_display_type): Remove.
7844         (struct tui_layout_def): Remove regs_display_type and
7845         float_regs_display_type fields.
7846         (struct tui_data_info): Remove regs_display_type field.
7847         (tui_layout_command): Use new name for
7848         tui_set_layout_for_display_command.
7849         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7850         (tui_clear_win_detail): Don't initialise removed fields of
7851         win_info.
7852         * tui/tui-regs.c (tui_show_registers): Use new name for
7853         tui_set_layout_for_display_command.
7854         * tui/tui.h (tui_set_layout_for_display_command): Rename
7855         declaration to...
7856         (tui_set_layout_by_name): ...this.
7857         * printcmd.c (display_command): Remove tui related layout call,
7858         and reindent.
7859
7860 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7861
7862         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7863         (handle_inferior_event): New function.
7864
7865 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7866
7867         * ada-lang.c (to_fixed_array_type): Rename local variable
7868         typename into type_name.
7869
7870 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7871
7872         Fix ASAN crash for gdb.compile/compile.exp.
7873         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7874
7875 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7876
7877         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7878         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7879         * compile/compile-object-load.c (setup_sections, compile_object_load):
7880         Likewise.
7881         * compile/compile.c (compile_to_object): Likewise.
7882
7883 2015-05-16  Doug Evans  <xdje42@gmail.com>
7884
7885         * NEWS: Mention support for unbuffered Guile memory ports.
7886         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7887         (ioscm_lseek_address): Improve overflow calculation.
7888         (gdbscm_memory_port_fill_input): Add assert.
7889         (gdbscm_memory_port_write): Handle unbuffered ports.
7890         Handle large writes identical to Guile's fport_write.
7891         (gdbscm_memory_port_seek): Fix seeking past end check.
7892         (gdbscm_memory_port_close): Handle closing unbuffered port.
7893         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7894         (ioscm_init_memory_port): Handle unbuffered ports.
7895         (ioscm_reinit_memory_port): Ditto.
7896         (ioscm_init_memory_port): Update size calculation.
7897         (gdbscm_open_memory): Support zero sized ports.
7898
7899 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7900
7901         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7902         variable compiler warnings.
7903
7904 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7905
7906         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7907
7908 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7909             Phil Muldoon  <pmuldoon@redhat.com>
7910
7911         * NEWS (Changes since GDB 7.9): Add compile print.
7912         * compile/compile-c-support.c (add_code_header, add_code_footer)
7913         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7914         COMPILE_I_PRINT_VALUE_SCOPE.
7915         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7916         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7917         New.
7918         * compile/compile-object-load.c: Include block.h.
7919         (get_out_value_type): New function.
7920         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7921         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7922         OUT_VALUE_TYPE.
7923         * compile/compile-object-load.h (struct compile_module): Add fields
7924         out_value_addr and out_value_type.
7925         * compile/compile-object-run.c: Include valprint.h and compile.h.
7926         (struct do_module_cleanup): Add fields out_value_addr and
7927         out_value_type.
7928         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7929         COMPILE_I_PRINT_VALUE_SCOPE.
7930         (compile_object_run): Propagate out_value_addr and out_value_type.
7931         Pass OUT_VALUE_ADDR.
7932         * compile/compile.c: Include valprint.h.
7933         (compile_print_value, compile_print_command): New functions.
7934         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7935         (_initialize_compile): Update compile code help text.  Install
7936         compile_print_command.
7937         * compile/compile.h (compile_print_value): New prototype.
7938         * defs.h (enum compile_i_scope_types): Add
7939         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7940
7941 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7942
7943         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7944         Rely on its parameter count.
7945         (compile_object_load): Replace lookup_minimal_symbol_text by
7946         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7947         return value.
7948         * compile/compile-object-load.h (struct compile_module): Replace
7949         func_addr by func_sym.
7950         * compile/compile-object-run.c: Include block.h.
7951         (compile_object_run): Reset module variable after it is freed.  Use
7952         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7953
7954 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7955
7956         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7957         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7958         (c_compute_program): Call generate_register_struct after typedefs.
7959         * compile/compile-loc2c.c (push, pushf_register_address)
7960         (pushf_register): Cast to GCC_UINTPTR.
7961         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7962         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7963         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7964         * compile/compile.c (_initialize_compile): Enable warnings for
7965         COMPILE_ARGS.
7966
7967 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7968
7969         * cli/cli-script.c (execute_control_command): Update
7970         eval_compile_command caller.
7971         * compile/compile-object-load.c (compile_object_load): Add parameters
7972         scope and scope_data.  Set them.
7973         * compile/compile-object-load.h (struct compile_module): Add fields
7974         scope and scope_data.
7975         (compile_object_load): Add parameters scope and scope_data.
7976         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7977         scope and scope_data.
7978         (compile_object_run): Propagate the fields scope and scope_data.
7979         * compile/compile.c (compile_file_command, compile_code_command):
7980         Update eval_compile_command callers.
7981         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
7982         * compile/compile.h (eval_compile_command): Add parameter scope_data.
7983         * defs.h (struct command_line): Add field scope_data.
7984
7985 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7986
7987         * printcmd.c (struct format_data): Move it to valprint.h.
7988         (print_command_parse_format, print_value): New functions from ...
7989         (print_command_1): ... here.  Call them.
7990         * valprint.h (struct format_data): Move it here from printcmd.c.
7991         (print_command_parse_format, print_value): New declarations.
7992
7993 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7994
7995         * compile/compile-object-load.c (compile_object_load): Add
7996         COMPILE_DEBUG message.
7997
7998 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7999
8000         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8001         index to get element instead of enum value.
8002         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8003         of index to compute length, but enum values to compute bounds.
8004         (ada_array_length): Use enum position of index instead of enum value.
8005         (pos_atr): Move position computation to...
8006         (ada_evaluate_subexp): Use enum values to compute bounds.
8007         * gdbtypes.c (discrete_position): ...this new function.
8008         * gdbtypes.h (discrete_position): New function declaration.
8009         * valprint.c (val_print_array_elements): Call discrete_position
8010         to handle array indexed by non-contiguous enumeration types.
8011
8012 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8013
8014         * ada-lang.c (find_parallel_type_by_descriptive_type):
8015         Go through typedefs during lookup.
8016         (to_fixed_array_type): Add support for non-bit packed arrays
8017         as variable-length fields.
8018
8019 2015-05-15  Pedro Alves  <palves@redhat.com>
8020             Simon Marchi  <simon.marchi@ericsson.com>
8021
8022         * event-loop.c (gdb_notifier) <next_file_handler,
8023         next_poll_fds_index>: New fields.
8024         (get_next_file_handler_to_handle_and_advance): New function.
8025         (delete_file_handler): If deleting the next file handler to
8026         handle, advance to the next file handler.
8027         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8028         handlers in round-robin fashion.
8029
8030 2015-05-15  Pedro Alves  <palves@redhat.com>
8031
8032         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8033         'private' to 'priv'.
8034
8035 2015-05-15  Pedro Alves  <palves@redhat.com>
8036
8037         * nat/linux-nat.h: Include "target/waitstatus.h".
8038
8039 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8040
8041         * python/py-unwind.c (struct reg_info): Move out of ...
8042         (struct cached_frame_info): ... this scope.
8043         (pending_frame_object_type, unwind_info_object_type): Make extern.
8044
8045 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8046
8047         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8048         accumSize is never negative.
8049
8050 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8051
8052         * tui/tui-command.c: Remove include of <ctype.h>.
8053         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8054
8055 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8056
8057         * dwarf2read.c (die_needs_namespace): Return 1 for
8058         DW_TAG_inlined_subroutine.
8059
8060 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8061
8062         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8063         (regcache_cpy_no_passthrough): Make it static, add function comment.
8064         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8065         (regcache_cpy_no_passthrough): Remove declaration.
8066
8067 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8068
8069         * gdbthread.h (struct thread_control_state): Update comment for
8070         proceed_to_finish.
8071         * infcall.c (run_inferior_call): Update comment about
8072         proceed_to_finish.
8073         * infcmd.c (get_return_value): Update comment about stop_registers.
8074         (finish_forward): Update comment about proceed_to_finish.
8075         * infrun.c (stop_registers): Remove.
8076         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8077         * infrun.h (stop_registers): Remove.
8078
8079 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8080
8081         * infcall.c (struct dummy_frame_context_saver)
8082         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8083         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8084         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8085         New.
8086         (call_function_by_hand_dummy): Move discard_cleanups of
8087         inf_status_cleanup before dummy_frame_push.  Call
8088         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8089         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8090         * infcall.h (struct dummy_frame_context_saver)
8091         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8092         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8093         New declarations.
8094         * infcmd.c: Include infcall.h.
8095         (get_return_value): Add parameter ctx_saver, use it instead of
8096         stop_registers.
8097         (print_return_value): Add parameter ctx_saver, pass it.
8098         (struct finish_command_continuation_args): Add field ctx_saver.
8099         (finish_command_continuation): Update print_return_value caller.
8100         (finish_command_continuation_free_arg): Free also ctx_saver.
8101         (finish_forward): Call dummy_frame_context_saver_setup.
8102         * inferior.h (struct dummy_frame_context_saver): New declaration.
8103         (get_return_value): Add parameter ctx_saver.
8104         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8105         get_return_value caller.
8106
8107 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8108
8109         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8110         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8111         (remove_dummy_frame): Process dtor_list.
8112         (pop_dummy_frame): Process dtor_list.
8113         (register_dummy_frame_dtor): Maintain dtor_list.
8114         (find_dummy_frame_dtor): Handle dtor_list.
8115         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8116         Update comments.
8117
8118 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8119
8120         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8121         registers_valid.
8122         (compile_object_run): Update do_module_cleanup caller.
8123         * dummy-frame.c: Include infcall.h.
8124         (struct dummy_frame): Update dtor comment.
8125         (remove_dummy_frame): Call dtor.
8126         (pop_dummy_frame): Update dtor caller.
8127         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8128         registers_valid.
8129
8130 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8131
8132         GDB 7.9.1 released.
8133
8134 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8135
8136         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8137         Xmethods now being able to specify a result type to that new
8138         sectioin.
8139
8140 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8141
8142         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8143         first before resizing the window.
8144         * tui/tui.c (tui_enable): Likewise.
8145
8146 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8147
8148         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8149         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8150         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8151         dummy_dtor parameter.
8152         * infcall.h: Include dummy-frame.h.
8153         (call_function_by_hand_dummy_dtor_ftype): Remove.
8154         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8155         parameter.
8156
8157 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8158
8159         PR gdb/17820
8160         * top.c (history_size_setshow_var): Change type to signed.
8161         Initialize to -2.  Update documentation.
8162         (set_readline_history_size): Define.
8163         (set_history_size_command): Use it.  Remove logic for handling
8164         out-of-range sizes.
8165         (init_history): Use set_readline_history_size().  Test for a
8166         value of -2 instead of 0 when determining whether to set a
8167         default history size.
8168         (init_main): Decode the argument of the "size" command as a
8169         zuinteger_unlimited.
8170
8171 2015-05-12  Doug Evans  <dje@google.com>
8172
8173         * dwarf2read.c (struct file_entry): Tweak comments.
8174         (get_debug_line_section): Tweak comments.
8175
8176 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8177
8178         * NEWS: Announce fork support in the RSP and support
8179         for fork debugging in extended mode.
8180
8181 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8182
8183         * remote.c (remote_insert_fork_catchpoint): New function.
8184         (remote_remove_fork_catchpoint): New function.
8185         (remote_insert_vfork_catchpoint): New function.
8186         (remote_remove_vfork_catchpoint): New function.
8187         (pending_fork_parent_callback): New function.
8188         (remove_new_fork_child): New function.
8189         (remote_update_thread_list): Call remote_notif_get_pending_events
8190         and remove_new_fork_child.
8191         (extended_remote_kill): Kill fork child when killing the
8192         parent before follow_fork completes.
8193         (init_extended_remote_ops): Initialize target vector with
8194         new fork catchpoint functions.
8195
8196 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8197
8198         * remote.c (remove_vfork_event_p): New function.
8199         (remote_follow_fork): Add vfork event type to event checking.
8200         (remote_parse_stop_reply): New stop reasons "vfork" and
8201         "vforkdone" for RSP 'T' Stop Reply Packet.
8202
8203 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8204
8205         * linux-nat.c (linux_nat_ptrace_options): New function.
8206         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8207         Call linux_nat_ptrace_options and use different argument to
8208         linux_enable_event_reporting.
8209         (_initialize_linux_nat): Delete call to
8210         linux_ptrace_set_additional_flags.
8211         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8212         supported_ptrace_options.
8213         (additional_flags): Delete variable.
8214         (linux_check_ptrace_features): Use supported_ptrace_options.
8215         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8216         Likewise, and remove additional_flags check.
8217         (linux_enable_event_reporting): Change 'attached' argument to
8218         'options'.  Use supported_ptrace_options.
8219         (ptrace_supports_feature): Change comment.  Use
8220         supported_ptrace_options.
8221         (linux_ptrace_set_additional_flags): Delete function.
8222         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8223         Delete function prototype.
8224         * remote.c (remote_fork_event_p): New function.
8225         (remote_detach_pid): New function.
8226         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8227         if doing detach-on-fork.
8228         (remote_follow_fork): New function.
8229         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8230         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8231         (init_extended_remote_ops): Initialize to_follow_fork.
8232
8233 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8234
8235         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8236         from static to extern.
8237         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8238         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8239         * PACKET_vfork_event_feature>: New enumeration constants.
8240         (remote_protocol_features): Add table entries for new packets.
8241         (remote_query_supported): Add new feature queries to qSupported
8242         packet.
8243
8244 2015-05-12  Gary Benson <gbenson@redhat.com>
8245
8246         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8247         for fake PIDs as well as real ones.
8248         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8249
8250 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8251
8252         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8253         * python/py-value.c (valpy_reference_value): New function.
8254         (valpy_const_value): Likewise.
8255         (value_object_methods): Add new methods.
8256         * value.c (make_cv_value): New function.
8257         * value.h (make_cv_value): Declare.
8258
8259 2015-05-08  Yao Qi  <yao@codesourcery.com>
8260             Sandra Loosemore  <sandra@codesourcery.com>
8261
8262         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8263         to 'lh->include_dirs' before accessing to it.
8264         (psymtab_include_file_name): Likewise.
8265         (dwarf_decode_lines_1): Likewise.
8266         (dwarf_decode_lines): Likewise.
8267         (file_file_name): Likewise.
8268
8269 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8270
8271         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8272         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8273         (nios2_linux_rt_sigreturn_init): Adjust base address of
8274         register save area.
8275
8276 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8277
8278         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8279         "trap 31" as the breakpoint instruction on all targets.
8280
8281 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8282
8283         * infcmd.c (print_return_value): Remove unused declaration.
8284
8285 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8286
8287         * dwarf2read.c (attr_to_dynamic_prop)
8288         <DW_AT_data_member_location>: Use read_type_die isntead of
8289         get_die_type.
8290
8291 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8292
8293         * ada-lang.c (ada_convert_actual): Add handling of formals
8294         passed inside an aligner type.
8295
8296 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8297
8298         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8299
8300 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8301
8302         PR python/18291
8303         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8304         Print xmethod matcher status.
8305
8306 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8307
8308         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8309         register in the regcache when treating the PSWM register, and vice
8310         versa.
8311
8312 2015-05-07  Gary Benson <gbenson@redhat.com>
8313
8314         * linux-thread-db.c (struct thread_db_info)
8315         <td_ta_map_id2thr_p>: Remove field.
8316         (try_thread_db_load_1): Remove initialization for the above.
8317
8318 2015-05-07  Gary Benson <gbenson@redhat.com>
8319
8320         * linux-thread-db.c (struct thread_db_info)
8321         <td_thr_validate_p>: Remove field.
8322         (try_thread_db_load_1): Remove initialization for the above.
8323
8324 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8325
8326         * compile/compile-object-load.c (compile_object_load): Support
8327         mst_text_gnu_ifunc.
8328
8329 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8330
8331         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8332         const.  Use new variables for the const compatibility.
8333         (eval_compile_command): Make the cmd_string parameter const.
8334         * compile/compile.h (eval_compile_command): Make the cmd_string
8335         parameter const.
8336
8337 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8338
8339         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8340         comment.
8341         * top.c (deprecated_init_ui_hook): Delete.
8342         (gdb_init): Remove handling of deprecated_init_ui_hook.
8343         * interps.c (clear_interpreter_hooks): Remove handling of
8344         deprecated_init_ui_hook.
8345         * main.c (captured_main): Update comment.
8346
8347 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8348
8349         * solib.c (_initialize_solib): Add "info dll" alias creation.
8350         * windows-nat.c (set_windows_aliases): Delete.
8351         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8352         assignment.
8353         * NEWS: Add news entry about "info dll" now being available
8354         on all platforms.
8355
8356 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8357
8358         * ada-lang.c (value_assign_to_component): Reformat and improve
8359         documentation. Remove all trailing spaces.
8360
8361 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8362
8363         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8364         Stop counting inlined frames as soon as an out-of-line function
8365         is found.
8366
8367 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8368
8369         * dwarf2read.c (inherit_abstract_dies): Skip
8370         DW_TAG_GNU_call_site dies while inheriting children of an
8371         abstract DIE into a scope.
8372         (read_lexical_block_scope): Inherit abstract DIE's for
8373         lexical scopes.
8374
8375 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8376
8377         * ada-valprint.c (val_print_packed_array_elements): Delete
8378         variable "len".  Add a type-length check when comparing two
8379         consecutive elements of the array.  Use the element's actual
8380         length in call to value_contents_eq.
8381         * ada-lang.c (ada_value_primitive_packed_val): Always return
8382         a value whose type has been resolved.
8383
8384 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8385
8386         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8387         BIT_SIZE and LEN if the size of the resolved type is smaller
8388         than BIT_SIZE * HOST_CHAR_BIT.
8389
8390 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8391
8392         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8393         correct address in call to value_at.  Adjust call to
8394         value_address accordingly.
8395
8396 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8397
8398         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8399         to print it.
8400
8401 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8402
8403         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8404         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8405         pinfo->valaddr.
8406         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8407         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8408         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8409         Add handling of addr_stack->valaddr.
8410         (resolve_dynamic_type): Add "valaddr" parameter.
8411         Set pinfo.valaddr field.
8412         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8413         resolve_dynamic_type.
8414         (ada_discrete_type_low_bound): Likewise.
8415         * findvar.c (default_read_var_value): Likewise.
8416         * value.c (value_from_contents_and_address): Likewise.
8417
8418 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8419
8420         * gdbtypes.c (resolve_dynamic_array): Use
8421         create_array_type_with_stride instead of create_array_type.
8422
8423 2015-04-30  DJ Delorie  <dj@redhat.com>
8424
8425         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8426         rl78_decode_opcode
8427
8428 2015-04-29  Doug Evans  <dje@google.com>
8429
8430         PR python/18285
8431         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8432         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8433         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8434         * extension-priv.h (struct extension_language_ops)
8435         <get_xmethod_result_type>: New member.
8436         * extension.c (get_xmethod_result_type): New function.
8437         * extension.h (get_xmethod_result_type): Declare.
8438         * python/py-xmethods.c (get_result_type_method_name): New static
8439         global.
8440         (py_get_result_type_method_name): Ditto.
8441         (gdbpy_get_xmethod_result_type): New function.
8442         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8443         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8444         * python/python.c (python_extension_ops): Add
8445         gdbpy_get_xmethod_result_type.
8446         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8447         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8448         xmethods.
8449         (value_x_unop): Ditto.
8450         * value.c (result_type_of_xmethod): New function.
8451         * value.h (result_type_of_xmethod): Declare.
8452
8453 2015-04-29  Gary Benson <gbenson@redhat.com>
8454
8455         * solib.c (solib_find_1): Allow fd argument to be NULL.
8456         (exec_file_find): Update comment.
8457         (solib_find): Likewise.
8458         * exec.c (exec_file_locate_attach): Use NULL as fd
8459         argument to exec_file_find to avoid having to close
8460         the opened file.
8461         * infrun.c (follow_exec): Likewise.
8462
8463 2015-04-28  Doug Evans  <dje@google.com>
8464
8465         PR python/18299
8466         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8467         name or __name__ attributes.  Handle gdb module as first argument.
8468
8469 2015-04-28  Doug Evans  <dje@google.com>
8470
8471         PR python/18089
8472         * python/py-prettyprint.c (print_children): Verify result of children
8473         iterator.  Provide better error message.
8474         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8475         * python/python.c (gdbpy_print_python_errors_p): New function.
8476
8477 2015-04-28  Doug Evans  <dje@google.com>
8478
8479         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8480
8481 2015-04-28  Sasha Smundak  <asmundak@google.com>
8482
8483         * NEWS: Mention gdb.Type.optimized_out method.
8484         * python/py-type.c (typy_optimized_out):  New function.
8485
8486 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8487
8488         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8489
8490 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8491
8492         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8493         (initialize_utils): Move call of init_page_info() to ...
8494         * top.c (gdb_init): ... here.
8495
8496 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8497
8498         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8499         (tui_sigwinch_handler): Still update our idea of
8500         the terminal's width and height even when TUI is not active.
8501
8502 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8503
8504         * utils.h (set_screen_width_and_height): Declare.
8505         * utils.c (set_screen_width_and_height): Define.
8506         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8507
8508 2015-04-28  Gary Benson <gbenson@redhat.com>
8509
8510         * infrun.c (solist.h): New include.
8511         (follow_exec): Use exec_file_find to prefix execd_pathname
8512         with gdb_sysroot.
8513
8514 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8515
8516         * tui/tui-source.c (tui_set_source_content): Avoid calling
8517         strcpy() when offset is 0.
8518
8519 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8520
8521         PR gdb/18155
8522         * tui/tui-data.c (tui_free_window): Don't free the locator
8523         window when passed an SRC_WIN or a DISASSEM_WIN.
8524
8525 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8526
8527         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8528         (tui_win_content): Move declaration.
8529         (struct tui_gen_win_info): Give 'content' field the
8530         type tui_win_content.
8531         * tui/tui-data.c (init_content_element): Remove redundant and
8532         erroneous casts.
8533         (tui_add_content_elements): Remove erroneous cast.
8534         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8535         casts.
8536         (tui_get_begin_asm_address): Likewise.
8537         * tui/tui-regs.c (tui_show_registers): Likewise.
8538         (tui_show_register_group): Likewise.
8539         (tui_display_registers_from): Likewise.
8540         (tui_check_register_values): Likewise.
8541         * tui/tui-source.c (tui_set_source_content): Likewise.
8542         (tui_set_source_content_nil): Likewise.
8543         (tui_source_is_displayed): Likewise.
8544         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8545         (tui_set_locator_fullname): Likewise.
8546         (tui_set_locator_info): Likewise.
8547         (tui_show_frame_info): Likewise.
8548         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8549         (tui_show_source_line): Likewise.
8550         (tui_horizontal_source_scroll): Likewise.
8551         (tui_update_breakpoint_info): Likewise.
8552         (tui_set_exec_info_content): Likewise.
8553         (tui_show_exec_info_content): Likewise.
8554         (tui_alloc_source_buffer): Likewise.
8555         (tui_line_is_displayed): Likewise.
8556         (tui_addr_is_displayed): Likewise.
8557
8558 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8559
8560         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8561         event if PL_FLAG_EXEC is set.
8562         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8563         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8564         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8565         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8566         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8567
8568 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8569
8570         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8571         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8572         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8573         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8574         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8575         [PT_LWPINFO] (fbsd_wait): New function.
8576         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8577         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8578         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8579         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8580         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8581         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8582         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8583         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8584         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8585         "fbsd_wait".
8586         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8587         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8588         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8589         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8590         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8591         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8592         Set "to_post_attach" to "fbsd_post_attach".
8593
8594 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8595
8596         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8597         (fbsd_find_memory_regions): Mark static.
8598         (fbsd_nat_add_target): New function.
8599         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8600         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8601         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8602         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8603         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8604         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8605
8606 2015-04-27  Gary Benson <gbenson@redhat.com>
8607
8608         * objfiles.c (allocate_objfile): Do not attempt to expand name
8609         if name is a "target:" filename.
8610         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8611         to load auto-load scripts for objfiles with "target:" filenames.
8612
8613 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8614
8615         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8616         (enum s390_vector_abi_kind): New enum.
8617         (struct gdbarch_tdep)<vector_abi>: New field.
8618         (s390_effective_inner_type): Add parameter min_size.  Stop
8619         unwrapping if the inner type is smaller than min_size.
8620         (s390_function_arg_float): Adjust call to
8621         s390_effective_inner_type.
8622         (s390_function_arg_vector): New function.
8623         (s390_function_arg_integer): Adjust comment.
8624         (struct s390_arg_state)<vr>: New field.
8625         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8626         arguments according to vector ABI when appropriate.
8627         (s390_push_dummy_call): Initialize the argument state's field
8628         'vr'.  Adjust calls to s390_handle_arg.
8629         (s390_register_return_value): Handle vector return values.
8630         (s390_return_value): Apply the "register" return value convention
8631         to a vector when appropriate.
8632         (s390_gdbarch_init): Initialize tdep->vector_abi.
8633         * NEWS: Announce S390 vector ABI support.
8634
8635 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8636
8637         * s390-linux-tdep.c (s390_return_value_convention): Remove
8638         function.  Inline its logic...
8639         (s390_return_value): ...here.  Instead, move the handling of the
8640         "register" return value convention...
8641         (s390_register_return_value): ...here.  New function.
8642
8643 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8644
8645         * s390-linux-tdep.c
8646         (is_float_singleton): Remove function.  Move the "singleton" part
8647         of the logic...
8648         (s390_effective_inner_type): ...here.  New function.
8649         (is_float_like): Remove function.  Inline its logic...
8650         (s390_function_arg_float): ...here.
8651         (is_pointer_like, is_integer_like, is_struct_like): Remove
8652         functions.  Inline their logic...
8653         (s390_function_arg_integer): ...here.
8654         (s390_function_arg_pass_by_reference): Remove function.
8655         (extend_simple_arg): Remove function.
8656         (alignment_of): Remove function.
8657         (struct s390_arg_state): New structure.
8658         (s390_handle_arg): New function.
8659         (s390_push_dummy_call): Move parameter placement logic to the new
8660         function s390_handle_arg.  Call it for calculating the stack area
8661         sizes first, and again for actually writing the parameters.
8662
8663 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8664
8665         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8666           false if the argument is zero.
8667
8668 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8669
8670         * ada-lang.c (template_to_static_fixed_type): Return input type
8671         when it is already fixed.  Cache the input type itself when not
8672         creating a static fixed copy.  Make it explicit that we never
8673         molestate the input type.
8674         * gdbtypes.c (resolve_dynamic_struct): Reset the
8675         TYPE_TARGET_TYPE field for resolved copies.
8676
8677 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8678
8679         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8680         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8681         (template_to_static_fixed_type): Call ada_check_typedef only
8682         when necessary.
8683
8684 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8685
8686         * cli/cli-dump.c (srec_dump_command): Add internationalization
8687         mark ups.
8688         (ihex_dump_command): Likewise.
8689         (tekhex_dump_command): Likewise.
8690         (binary_dump_command): Likewise.
8691         (binary_append_command): Likewise.
8692
8693 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8694
8695         * cli/cli-dump.c (verilog_cmdlist): New variable.
8696         (dump_verilog_memory): New function.
8697         (dump_verilog_value): New function.
8698         (verilog_dump_command): New function.
8699         (_initialize_cli_dump): Add new commands to support verilog dump
8700         format.
8701         * NEWS: Add entry for "dump verilog".
8702
8703 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8704
8705         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8706         descriptive type when there is none.
8707
8708 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8709
8710         * tui/tui-win.c (tui_async_resize_screen): Call
8711         rl_resize_terminal().
8712
8713 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8714
8715         * windows-nat.c (handle_output_debug_string): Don't change
8716         current_event.dwThreadId.
8717         (get_windows_debug_event): Use thread_id, rather than relying on
8718         current_event.dwThreadId being changed.
8719
8720 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8721
8722         * windows-nat.c (windows_continue): Report an error if
8723         ContinueDebugEvent() fails.
8724
8725 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8726
8727         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8728
8729 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8730
8731         * windows-nat.c (get_windows_debug_event): Replace retval with
8732         thread_id throughout.  Update stale comment.
8733
8734 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8735
8736         * windows-nat.c (get_windows_debug_event): Don't use ternary
8737         conditional operator.
8738
8739 2015-04-21  Pierre Muller  <muller@sourceware.org>
8740
8741         PR pascal/17815
8742         p-exp.y (yylex): Reorganize code to return the matched pattern
8743         for a field of this.
8744
8745 2015-04-21  Gary Benson <gbenson@redhat.com>
8746
8747         * common/fileio.h (fileio_to_host_openflags): New declaration.
8748         * common/fileio.c (fcntl.h): New include.
8749         (fileio_to_host_openflags): New function, factored out from...
8750         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8751         Single use updated.
8752
8753 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8754
8755         * rl78-tdep.c (RL78_SP_ADDR): Define.
8756         (opc_reg_to_gdb_regnum): New static function.
8757         (rl78_analyze_prologue): Recognize instructions forming slightly
8758         more interesting prologues.
8759
8760 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8761
8762         Revert:
8763         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8764         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8765         TYPE_CODE_REF types so that they are not considered as dynamic
8766         depending on the referenced type.
8767         (resolve_dynamic_type_internal): Likewise.
8768
8769 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8770
8771         Revert:
8772         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8773         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8774         "top_level" parameter.
8775         (resolve_dynamic_type_internal): Remove the unused "top_level"
8776         parameter.  Update call to is_dynamic_type_internal.
8777         (is_dynamic_type): Update call to is_dynamic_type_internal.
8778         (resolve_dynamic_range): Update call to
8779         resolve_dynamic_type_internal.
8780         (resolve_dynamic_union): Likewise.
8781         (resolve_dynamic_struct): Likewise.
8782         (resolve_dynamic_type): Likewise.
8783
8784 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8785
8786         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8787         xmalloc.
8788
8789 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8790
8791         * reply_mig_hack.awk: Robustify parsing.
8792
8793         * reply_mig_hack.awk: Don't bother to declare an intermediate
8794         function pointer variable.
8795
8796 2015-04-17  Doug Evans  <dje@google.com>
8797
8798         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8799         to "exec_displacement" to avoid confusion with inner use of the name.
8800
8801 2015-04-17  Pedro Alves  <palves@redhat.com>
8802
8803         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8804         if HW point of TYPE isn't supported.
8805
8806 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8807             Pedro Alves  <palves@redhat.com>
8808
8809         * target.h (target_can_use_hardware_watchpoint): Update comments.
8810         Remove trailing ";".
8811
8812 2015-04-17  Gary Benson <gbenson@redhat.com>
8813
8814         * remote.c (remote_add_inferior): New argument try_open_exec.
8815         If nonzero, attempt to open the inferior's executable file as
8816         the main executable if no main executable is open already.
8817         All callers updated.
8818         * NEWS: Mention that GDB now supports automatic location and
8819         retrieval of executable + files from remote targets.
8820
8821 2015-04-17  Gary Benson <gbenson@redhat.com>
8822
8823         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8824         * remote.c (PACKET_qXfer_exec_file): Likewise.
8825         (remote_protocol_features): Register the
8826         "qXfer:exec-file:read" feature.
8827         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8828         (remote_pid_to_exec_file): New function.
8829         (init_remote_ops): Initialize to_pid_to_exec_file.
8830         (_initialize_remote): Register new "set/show remote
8831         pid-to-exec-file-packet" command.
8832         * NEWS: Announce new qXfer:exec-file:read packet.
8833
8834 2015-04-17  Gary Benson <gbenson@redhat.com>
8835
8836         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8837         New declaration.
8838         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8839         New function, factored out from...
8840         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8841
8842 2015-04-17  Gary Benson <gbenson@redhat.com>
8843
8844         * exec.c (solist.h): New include.
8845         (exec_file_locate_attach): Prefix absolute executable
8846         paths with gdb_sysroot if set.
8847         * NEWS: Mention that executable paths may be prepended
8848         with sysroot.
8849
8850 2015-04-17  Gary Benson <gbenson@redhat.com>
8851
8852         * solist.h (exec_file_find): New declaration.
8853         * solib.c (solib_find_1): New function, factored out from...
8854         (solib_find): ...here.
8855         (exec_file_find): New function.
8856
8857 2015-04-17  Gary Benson <gbenson@redhat.com>
8858
8859         * gdbcore.h (exec_file_locate_attach): New declaration.
8860         * exec.c (exec_file_locate_attach): New function, factored
8861         out from...
8862         * infcmd.c (attach_command_post_wait): ...here.
8863
8864 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8865
8866         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8867
8868 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8869
8870         * infrun.c (maybe_software_singlestep): Declare.
8871         (displaced_step_fixup): Call maybe_software_singlestep.
8872
8873 2015-04-15  Doug Evans  <dje@google.com>
8874
8875         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8876
8877 2015-04-15  Doug Evans  <dje@google.com>
8878
8879         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8880
8881 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8882
8883         * python/lib/gdb/command/unwinders.py: Add parentheses.
8884
8885 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8886
8887         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8888
8889 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8890
8891         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8892
8893 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8894
8895         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8896         dsc->insn_size instead of 4.
8897
8898 2015-04-14  Gary Benson <gbenson@redhat.com>
8899
8900         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8901         * minidebug.c (lzma_stat): Likewise.
8902         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8903         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8904
8905 2015-04-13  Stan Shebs  <stanshebs@google.com>
8906
8907         * MAINTAINERS: Update my email address.
8908
8909 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8910
8911         * amd64-tdep.c (amd64_target_description): New function.
8912         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8913         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8914         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8915         x86 extended save area.
8916         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8917         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8918         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8919         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8920         "amd64fbsd_read_description".
8921         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8922         (amd64fbsd_supply_xstateregset): New function.
8923         (amd64fbsd_collect_xstateregset): New function.
8924         Add "amd64fbsd_xstateregset".
8925         (amd64fbsd_iterate_over_regset_sections): New function.
8926         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8927         "I386_FBSD_XSAVE_XCR0_OFFSET".
8928         Add "iterate_over_regset_sections" gdbarch method.
8929         Add "core_read_description" gdbarch method.
8930         * i386-tdep.c (i386_target_description): New function.
8931         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8932         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8933         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8934         x86 extended save area.
8935         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8936         * i386bsd-nat.h: Export i386bsd_xsave_len.
8937         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8938         (_initialize_i386fbsd_nat): Set "to_read_description" to
8939         "i386fbsd_read_description".
8940         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8941         (i386fbsd_core_read_description): New function.
8942         (i386fbsd_supply_xstateregset): New function.
8943         (i386fbsd_collect_xstateregset): New function.
8944         Add "i386fbsd_xstateregset".
8945         (i386fbsd_iterate_over_regset_sections): New function.
8946         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8947         "I386_FBSD_XSAVE_XCR0_OFFSET".
8948         Add "iterate_over_regset_sections" gdbarch method.
8949         Add "core_read_description" gdbarch method.
8950         * i386fbsd-tdep.h: New file.
8951
8952 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8953
8954         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8955         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8956         conditional.
8957         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8958         and lb.
8959         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8960         va.
8961         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8962         conditional.
8963         * defs.h (xdb_commands): Remove declaration.
8964         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8965         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8966         * infcmd.c (run_no_args_command, go_command): Remove.
8967         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8968         * infrun.c (xdb_handle_command): Remove.
8969         (_initialize_infrun): Remove xdb_commands for lz and z.
8970         * main.c (xdb_commands): Remove variable.
8971         (captured_main): Remove "xdb" from long_options.
8972         (print_gdb_help): Remove --xdb from help.
8973         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8974         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8975         * stack.c (backtrace_full_command, args_plus_locals_info)
8976         (current_frame_command): Remove.
8977         (_initialize_stack): Remove xdb_commands for t, T and l.
8978         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8979         * thread.c (_initialize_thread): Remove xdb_commands condition.
8980         * tui/tui-layout.c (tui_toggle_layout_command)
8981         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8982         (_initialize_tui_layout): Remove xdb_commands for td and ts.
8983         * tui/tui-regs.c (tui_scroll_regs_forward_command)
8984         (tui_scroll_regs_backward_command): Remove.
8985         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8986         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8987         (_initialize_tui_win): Remove xdb_commands for U and w.
8988         * utils.c (pagination_on_command, pagination_off_command): Remove.
8989         (initialize_utils): Remove xdb_commands for am and sm.
8990
8991 2015-04-10  Pedro Alves  <palves@redhat.com>
8992
8993         * infrun.c (displaced_step_fixup): Switch to the event ptid
8994         earlier.  If the thread stopped for a watchpoint and the
8995         target/arch has non-continuable watchpoints, cancel the displaced
8996         step.
8997         (resume): Don't start a displaced step if in-line step-over info
8998         is valid.
8999
9000 2015-04-10  Pedro Alves  <palves@redhat.com>
9001
9002         * infrun.c (displaced_step_in_progress): New function.
9003         (do_target_resume): Advise target to report all signals if
9004         displaced stepping.
9005
9006 2015-04-10  Pedro Alves  <palves@redhat.com>
9007
9008         PR gdb/18216
9009         * infrun.c (process_event_stop_test): Don't assume a step-resume
9010         is set if tp->stepped_breakpoint is true.
9011
9012 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9013
9014         * arm-tdep.c (install_alu_reg): Update comment.
9015         (thumb_copy_alu_reg): Remove local variable rn.  Update
9016         debugging message.  Use r2 instead of r1 in the modified
9017         instruction.
9018
9019 2015-04-10  Pedro Alves  <palves@redhat.com>
9020
9021         PR gdb/13858
9022         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9023         linux_displaced_step_location as gdbarch_displaced_step_location
9024         hook.
9025         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9026         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9027         * linux-tdep.c (linux_displaced_step_location): New function,
9028         based on ppc_linux_displaced_step_location.
9029         * linux-tdep.h (linux_displaced_step_location): New declaration.
9030         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9031         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9032         Delete.
9033         (ppc_linux_init_abi): Install linux_displaced_step_location as
9034         gdbarch_displaced_step_location hook, even without Cell/B.E..
9035         (_initialize_ppc_linux_tdep): Don't install
9036         ppc_linux_inferior_created as inferior_created observer.
9037         * s390-linux-tdep.c (s390_gdbarch_init): Install
9038         linux_displaced_step_location as gdbarch_displaced_step_location
9039         hook.
9040
9041 2015-04-09  Gary Benson <gbenson@redhat.com>
9042
9043         * common/common-remote-fileio.h: Rename to...
9044         * common/fileio.h: ...this.  Update all references.
9045         (remote_fileio_to_fio_error): Rename to...
9046         (host_to_fileio_error): ...this.
9047         (remote_fileio_to_be): Rename to...
9048         (host_to_bigendian): ...this.  Update all callers.
9049         (remote_fileio_to_fio_uint): Rename to...
9050         (host_to_fileio_uint): ...this.  Update all callers.
9051         (remote_fileio_to_fio_time): Rename to...
9052         (host_to_fileio_time): ...this.  Update all callers.
9053         (remote_fileio_to_fio_stat): Rename to...
9054         (host_to_fileio_stat): ...this.
9055         Update all references.
9056         * common/common-remote-fileio.c: Rename to...
9057         * common/fileio.c: ...this.  Update all references.
9058         (remote_fileio_to_fio_error): Rename to...
9059         (host_to_fileio_error): ...this.  Update all callers.
9060         (remote_fileio_mode_to_target): Rename to...
9061         (fileio_mode_pack): ...this.  Update all callers.
9062         (remote_fileio_to_fio_mode): Rename to...
9063         (host_to_fileio_mode): ...this.  Update all callers.
9064         (remote_fileio_to_fio_ulong): Rename to...
9065         (host_to_fileio_ulong): ...this.  Update all callers.
9066         (remote_fileio_to_fio_stat): Rename to...
9067         (host_to_fileio_stat): ...this.  Update all callers.
9068
9069 2015-04-09  Andy Wingo  <wingo@igalia.com>
9070
9071         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9072         (frame_functions): Bind gdbscm_frame_read_register to
9073         frame-read-register.
9074         * guile/lib/gdb.scm (frame-read-register): Export.
9075
9076 2015-04-09  Gary Benson <gbenson@redhat.com>
9077
9078         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9079         New declaration.
9080         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9081         New function, factored out the named functions below.
9082         * inf-child.c (gdb/fileio.h): Remove include.
9083         (common-remote-fileio.h): New include.
9084         (inf_child_errno_to_fileio_error): Remove function.  Update
9085         all callers to use remote_fileio_to_fio_error.
9086         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9087
9088 2015-04-09  Andy Wingo  <wingo@igalia.com>
9089
9090         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9091
9092 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9093
9094         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9095         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9096         * configure: Regenerated.
9097
9098 2015-04-09  Pedro Alves  <palves@redhat.com>
9099
9100         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9101         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9102         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9103         * gnulib/import/Makefile.am: Update.
9104         * gnulib/import/Makefile.in: Update.
9105         * gnulib/import/m4/gnulib-cache.m4: Update.
9106         * gnulib/import/m4/gnulib-comp.m4: Update.
9107         * gnulib/import/m4/strtok_r.m4: New file.
9108         * gnulib/import/strtok_r.c: New file.
9109
9110 2015-04-09  Pedro Alves  <palves@redhat.com>
9111
9112         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9113         "called too early to check prototype".
9114
9115 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9116
9117         PR python/16699
9118         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9119         use a caching mechanism.  Adjust comments and code to reflect
9120         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9121         (cmdpy_completer_handle_brkchars): Adjust call to
9122         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9123         (cmdpy_completer): Likewise.
9124
9125 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9126
9127         * spu-tdep.c (spu_gdbarch_init): Don't call
9128         set_gdbarch_cannot_step_breakpoint.
9129
9130 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9131
9132         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9133
9134 2015-04-07  Pedro Alves  <palves@redhat.com>
9135
9136         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9137         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9138         (delete_exited_threads): New declaration.
9139         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9140         * linux-nat.c (linux_nat_update_thread_list): New function.
9141         (linux_nat_add_target): Install it.
9142         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9143         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9144         (delete_exited_threads): New function.
9145
9146 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9147
9148         * infrun.c (resume) <displaced stepping debug output>: Get the
9149         leader thread's regcache, not resume_ptid's.
9150
9151 2015-04-06  Doug Evans  <xdje42@gmail.com>
9152
9153         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9154         VAR_DOMAIN.
9155         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9156         Include symbol domain in debugging output.
9157
9158 2015-04-06  Pedro Alves  <palves@redhat.com>
9159             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9160
9161         * configure.ac: Remove the mingw32-specific stub-termcap.o
9162         fallback, and instead fallback to the stub termcap on all hosts.
9163         * configure: Regenerate.
9164         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9165         symbols.
9166
9167 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9168
9169         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9170         "top_level" parameter.
9171         (resolve_dynamic_type_internal): Remove the unused "top_level"
9172         parameter.  Update call to is_dynamic_type_internal.
9173         (is_dynamic_type): Update call to is_dynamic_type_internal.
9174         (resolve_dynamic_range): Update call to
9175         resolve_dynamic_type_internal.
9176         (resolve_dynamic_union): Likewise.
9177         (resolve_dynamic_struct): Likewise.
9178         (resolve_dynamic_type): Likewise.
9179
9180 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9181
9182         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9183         TYPE_CODE_REF types so that they are not considered as dynamic
9184         depending on the referenced type.
9185         (resolve_dynamic_type_internal): Likewise.
9186
9187 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9188
9189         * Makefile.in (top_srcdir): New.
9190         * configure: Regenerated.
9191
9192 2015-04-02  Gary Benson <gbenson@redhat.com>
9193
9194         * NEWS: Announce the new default sysroot of "target:".
9195
9196 2015-04-02  Gary Benson <gbenson@redhat.com>
9197
9198         * main.c (captured_main): Set gdb_sysroot to "target:"
9199         if not otherwise set.
9200
9201 2015-04-02  Gary Benson <gbenson@redhat.com>
9202
9203         * exec.c (exec_file_attach): Support "target:" filenames.
9204
9205 2015-04-02  Gary Benson <gbenson@redhat.com>
9206
9207         * solib.c (solib_find): Strip "target:" prefix from sysroot
9208         if accessing local files.
9209
9210 2015-04-02  Gary Benson <gbenson@redhat.com>
9211
9212         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9213         checks and error messages.
9214
9215 2015-04-02  Gary Benson <gbenson@redhat.com>
9216
9217         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9218         (remote_filename_p): Remove declaration.
9219         (remote_bfd_open): Likewise.
9220         * remote.c (remote_bfd_iovec_open): Remove function.
9221         (remote_bfd_iovec_close): Likewise.
9222         (remote_bfd_iovec_pread): Likewise.
9223         (remote_bfd_iovec_stat): Likewise.
9224         (remote_filename_p): Likewise.
9225         (remote_bfd_open): Likewise.
9226         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9227         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9228         (gdb_bfd_open_maybe_remote): Remove function.
9229         (symfile_bfd_open):  Replace remote filename check with
9230         target filename check.
9231         (reread_symbols): Use gdb_bfd_open.
9232         * build-id.c (gdbcore.h): New include.
9233         (build_id_to_debug_bfd): Use gdb_bfd_open.
9234         * infcmd.c (attach_command_post_wait): Remove remote filename
9235         check.
9236         * solib.c (solib_find): Replace remote-specific handling with
9237         target-specific handling.  Update comments where necessary.
9238         (solib_bfd_open): Replace remote-specific handling with
9239         target-specific handling.
9240         (gdb_sysroot_changed): New function.
9241         (_initialize_solib): Call the above when gdb_sysroot changes.
9242         * windows-tdep.c (gdbcore.h): New include.
9243         (windows_xfer_shared_library): Use gdb_bfd_open.
9244
9245 2015-04-02  Gary Benson <gbenson@redhat.com>
9246
9247         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9248         (is_target_filename): New declaration.
9249         (gdb_bfd_has_target_filename): Likewise.
9250         (gdb_bfd_open): Update documentation comment.
9251         * gdb_bfd.c (target.h): New include.
9252         (gdb/fileio.h): Likewise.
9253         (is_target_filename): New function.
9254         (gdb_bfd_has_target_filename): Likewise.
9255         (fileio_errno_to_host): Likewise.
9256         (gdb_bfd_iovec_fileio_open): Likewise.
9257         (gdb_bfd_iovec_fileio_pread): Likewise.
9258         (gdb_bfd_iovec_fileio_close): Likewise.
9259         (gdb_bfd_iovec_fileio_fstat): Likewise.
9260         (gdb_bfd_open): Use target fileio to access paths prefixed
9261         with "target:" where necessary.
9262
9263 2015-04-02  Gary Benson <gbenson@redhat.com>
9264
9265         * target.h (struct target_ops) <to_filesystem_is_local>:
9266         New field.
9267         (target_filesystem_is_local): New macro.
9268         * target-delegates.c: Regenerate.
9269         * remote.c (remote_filesystem_is_local): New function.
9270         (init_remote_ops): Initialize to_filesystem_is_local.
9271
9272 2015-04-02  Gary Benson <gbenson@redhat.com>
9273
9274         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9275         (target_fileio_fstat): New declaration.
9276         * target.c (target_fileio_fstat): New function.
9277         * inf-child.c (inf_child_fileio_fstat): Likewise.
9278         (inf_child_target): Initialize to_fileio_fstat.
9279         * remote.c (init_remote_ops): Likewise.
9280
9281 2015-04-01  Sasha Smundak  <asmundak@google.com>
9282
9283         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9284         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9285         (py-unwind.o): New recipe.
9286         * NEWS: mention Python frame unwinding.
9287         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9288         gdb/unwinder.py and gdb/command/unwinder.py
9289         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9290         list.
9291         (execute_unwinders): New function.
9292         * python/lib/gdb/command/unwinders.py: New file.
9293         * python/lib/gdb/unwinder.py: New file.
9294         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9295         (objfpy_dealloc): Decrement frame_unwinders reference count.
9296         (objfpy_initialize): Create frame_unwinders list.
9297         (objfpy_get_frame_unwinders): New function.
9298         (objfpy_set_frame_unwinders): Ditto.
9299         (objfile_getset): Add frame_unwinders attribute to Objfile.
9300         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9301         (pspy_dealloc): Decrement frame_unwinders reference count.
9302         (pspy_initialize): Create frame_unwinders list.
9303         (pspy_get_frame_unwinders): New function.
9304         (pspy_set_frame_unwinders): Ditto.
9305         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9306         * python/py-unwind.c: New file.
9307         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9308         (objpy_get_frame_unwinders): New prototype.
9309         (gdbpy_initialize_unwind): New prototype.
9310         * python/python.c (gdbpy_apply_type_printers): Call
9311         gdbpy_initialize_unwind.
9312
9313 2015-04-01  Pedro Alves  <palves@redhat.com>
9314
9315         * infrun.c (resume): Check currently_stepping after clearing
9316         stepped_breakpoint, not before.
9317
9318 2015-04-01  Pedro Alves  <palves@redhat.com>
9319
9320         * infrun.c (print_target_wait_results): Print all the ptid
9321         elements.
9322
9323 2015-04-01  Pedro Alves  <palves@redhat.com>
9324
9325         * infrun.c (keep_going): Also discard cleanups if inserting
9326         breakpoints fails.
9327
9328 2015-04-01  Pedro Alves  <palves@redhat.com>
9329
9330         * infrun.c (wait_for_inferior): Install the
9331         finish_thread_state_cleanup cleanup across the whole function, not
9332         just around handle_inferior_event.
9333
9334 2015-04-01  Pedro Alves  <palves@redhat.com>
9335
9336         * infrun.c (resume) <step past permanent breakpoint>: Use
9337         do_target_resume.
9338
9339 2015-04-01  Pedro Alves  <palves@redhat.com>
9340
9341         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9342
9343 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9344
9345         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9346
9347 2015-04-01  Pedro Alves  <palves@redhat.com>
9348
9349         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9350         list if it was marked exited.
9351
9352 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9353
9354         * configure: Regenerated.
9355
9356 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9357             Jan Kratochvil  <jan.kratochvil@redhat.com>
9358             Oleg Nesterov  <oleg@redhat.com>
9359
9360         PR corefiles/16092
9361         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9362         New enum identifying the various options of the coredump_filter
9363         file.
9364         (struct smaps_vmflags): New struct.
9365         (use_coredump_filter): New variable.
9366         (decode_vmflags): New function.
9367         (mapping_is_anonymous_p): Likewise.
9368         (dump_mapping_p): Likewise.
9369         (linux_find_memory_regions_full): New variables
9370         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9371         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9372         parsing of its information.  Implement memory mapping filtering
9373         based on its contents.
9374         (show_use_coredump_filter): New function.
9375         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9376         * NEWS: Mention the possibility of using the
9377         '/proc/PID/coredump_filter' file when generating a corefile.
9378         Mention new command 'set use-coredump-filter'.
9379
9380 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9381
9382         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9383         read_memory_unsigned_integer.
9384
9385 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9386
9387         * Makefile.in (ZLIB): New.
9388         (ZLIBINC): Likewise.
9389         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9390         (CLIBS): Add $(ZLIB).
9391         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9392         Add -lz to LIBS.
9393         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9394         * top.c (print_gdb_configuration): Remove --with-zlib and
9395         --without-zlib.
9396         * config.in: Regenerated.
9397         * configure: Likewise.
9398
9399 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9400
9401         * NEWS: Mention info os cpus support.
9402         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9403         (struct osdata_type): Add cpus entry, reorder the entries in
9404         alphabetical order.
9405
9406 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9407
9408         * compile/compile.c (compile_to_object): Allow triplets with or
9409         without vendor set.
9410
9411 2015-03-30  Doug Evans  <dje@google.com>
9412
9413         PR c++/18141
9414         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9415         klass in VAR_DOMAIN.
9416
9417 2015-03-30  Gary Benson <gbenson@redhat.com>
9418
9419         * remote.c (remote_mourn_1): Remove function.  Update all callers
9420         to use remote_mourn.
9421         (extended_remote_mourn_1): Remove function.  Update all callers
9422         to use extended_remote_mourn.
9423         (extended_remote_attach_1): Remove function.  Update all callers
9424         to use extended_remote_attach.
9425
9426 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9427
9428         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9429         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9430         (ALLDEPFILES): Add ft32-tdep.c.
9431         * configure.tgt: Add FT32 entry.
9432         * ft32-tdep.c: New file, FT32 target-dependent code.
9433         * ft32-tdep.h: New file, FT32 target-dependent code.
9434
9435 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9436
9437         Revert:
9438         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9439         Code cleanup.
9440         * printcmd.c (print_command_1): Move expr variable scope.
9441
9442 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9443
9444         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9445
9446 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9447
9448         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9449         sections.
9450
9451 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9452
9453         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9454         exception raised while parsing the probe arguments.
9455         Force parsing to be done using the C language parser.
9456         * expression.h (parse_expression_with_language): Declare.
9457         * parse.c (parse_expression_with_language): New function.
9458
9459 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9460
9461         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9462
9463 2015-03-26  Andy Wingo  <wingo@igalia.com>
9464
9465         PR symtab/18148
9466         * dwarf2read.c (struct partial_die_info): Add has_const_value
9467         member.
9468         (add_partial_symbol): Don't punt on symbols that have const_value
9469         attributes.
9470         (read_partial_die): Detect DW_AT_const_value.
9471
9472 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9473
9474         Code cleanup.
9475         * printcmd.c (print_command_1): Move expr variable scope.
9476
9477 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9478
9479         Code cleanup.
9480         * printcmd.c (validate_format): Make the parameter cmdname const.
9481
9482 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9483
9484         * remote.c (_initialize_remote): Update comment.
9485
9486 2015-03-26  Pedro Alves  <palves@redhat.com>
9487             Jon TURNEY  <jon.turney@dronecode.org.uk>
9488
9489         * coffread.c (coff_symfile_read): When constructing the name of an
9490         import stub symbol from import symbol for amd64, only skip the
9491         char after _imp_ if the target is underscored (like i386) and the
9492         char is indeed the target's leading char.
9493
9494 2015-03-25  Pedro Alves  <palves@redhat.com>
9495
9496         * target.h <to_async>: Replace 'callback' and 'context' parameters
9497         with boolean 'enable' parameter.
9498         (target_async): Replace CALLBACK and CONTEXT parameters with
9499         boolean ENABLE parameter.
9500         * inf-loop.c (inferior_event_handler): Adjust.
9501         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9502         (linux_nat_resume): Adjust.
9503         (async_client_callback, async_client_context): Delete.
9504         (handle_target_event): Call inferior_event_handler directly.
9505         (linux_nat_async): Replace 'callback' and 'context' parameters
9506         with boolean 'enable' parameter.  Adjust.  Remove references to
9507         async_client_callback and async_client_context.
9508         (linux_nat_close): Adjust.
9509         * record-btrace.c (record_btrace_async): Replace 'callback' and
9510         'context' parameters with boolean 'enable' parameter.  Adjust.
9511         (record_btrace_resume): Adjust.
9512         * record-full.c (record_full_async): Replace 'callback' and
9513         'context' parameters with boolean 'enable' parameter.  Adjust.
9514         (record_full_resume, record_full_core_resume): Adjust.
9515         * remote.c (struct remote_state) <async_client_callback,
9516         async_client_context>: Delete fields.
9517         (remote_start_remote, extended_remote_attach_1, remote_resume)
9518         (extended_remote_create_inferior): Adjust.
9519         (remote_async_serial_handler): Call inferior_event_handler
9520         directly.
9521         (remote_async): Replace 'callback' and 'context' parameters with
9522         boolean 'enable' parameter.  Adjust.
9523         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9524         Adjust.
9525         * target-delegates.c: Regenerate.
9526
9527 2015-03-25  Gary Benson <gbenson@redhat.com>
9528             Pedro Alves  <palves@redhat.com>
9529
9530         * target.c (fileio_ft_t): New typedef, define object vector.
9531         (fileio_fhandles): New static variable.
9532         (is_closed_fileio_fh): New macro.
9533         (lowest_closed_fd): New static variable.
9534         (acquire_fileio_fd): New function.
9535         (release_fileio_fd): Likewise.
9536         (fileio_fd_to_fh): New macro.
9537         (target_fileio_open): Wrap the file descriptor on success.
9538         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9539         (target_fileio_pread): Likewise.
9540         (target_fileio_close): Likewise.
9541
9542 2015-03-24  Pedro Alves  <palves@redhat.com>
9543
9544         * thread.c (thread_apply_all_command): Take exited threads into
9545         account.
9546
9547 2015-03-24  Pedro Alves  <palves@redhat.com>
9548
9549         * infrun.c (resume, proceed): Mention
9550         switch_back_to_stepped_thread, not switch_back_to_stepping.
9551
9552 2015-03-24  Pedro Alves  <palves@redhat.com>
9553
9554         * infrun.c (user_visible_resume_ptid): Rewrite going from
9555         most-locked to unlocked instead of the opposite.  Move comment ...
9556         * infrun.h (user_visible_resume_ptid): ... here.
9557
9558 2015-03-24  Pedro Alves  <palves@redhat.com>
9559
9560         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9561         to resume the event lwp.  Use the lwp's ptid instead of the passed
9562         in (maybe wildcard) ptid.
9563         (stop_wait_callback): Tweak debug log output.
9564         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9565         TRAP_TRACE.
9566         (linux_nat_filter_event): In debug output, distinguish a
9567         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9568         before trying to resume the lwp.
9569
9570 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9571
9572         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9573         pointer indirection.
9574         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9575         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9576
9577 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9578
9579         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9580         Renames DYN_ATTR_DATA_LOCATION.
9581         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9582         DYN_ATTR_DATA_LOCATION.
9583         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9584         instead of DYN_ATTR_DATA_LOCATION.
9585
9586 2015-03-24  Pedro Alves  <palves@redhat.com>
9587
9588         * breakpoint.c (until_break_command): Adjust call to proceed.
9589         * gdbthread.h (struct thread_control_state) <stepping_command>:
9590         New field.
9591         * infcall.c (run_inferior_call): Adjust call to proceed.
9592         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9593         Adjust calls to proceed.
9594         (set_step_frame): Set the current thread's step_start_function
9595         here.
9596         (step_once): Adjust calls to proceed.
9597         (jump_command, signal_command, until_next_command)
9598         (finish_backward, finish_forward, proceed_after_attach_callback)
9599         (attach_command_post_wait): Adjust calls to proceed.
9600         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9601         (do_target_resume): New function, factored out from ...
9602         (resume): ... here.  Remove 'step' parameter.  Instead, check
9603         currently_stepping to determine whether the thread should be
9604         single-stepped.
9605         (proceed): Remove 'step' parameter and don't set the thread's
9606         step_start_function here.  Adjust call to 'resume'.
9607         (handle_inferior_event): Adjust calls to 'resume'.
9608         (switch_back_to_stepped_thread): Use do_target_resume instead of
9609         'resume'.
9610         (keep_going): Adjust calls to 'resume'.
9611         * infrun.h (proceed): Remove 'step' parameter.
9612         (resume): Likewise.
9613         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9614         'resume'.
9615         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9616
9617 2015-03-24  Pedro Alves  <palves@redhat.com>
9618
9619         * gdbthread.h (struct thread_control_state) <stepping_command>:
9620         New field.
9621         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9622         the thread's stepping_command field.
9623         * infrun.c (resume): Check the thread's stepping_command flag to
9624         determine which threads should be resumed.  Rename 'entry_step'
9625         local to user_step.
9626         (clear_proceed_status_thread): Clear 'stepping_command'.
9627         (schedlock_applies): Change parameter type to struct thread_info
9628         pointer.  Adjust.
9629         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9630         (switch_back_to_stepped_thread): Adjust calls to
9631         'schedlock_applies'.
9632         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9633
9634 2015-03-24  Pedro Alves  <palves@redhat.com>
9635
9636         * infrun.c (step_start_function): Delete and ...
9637         * gdbthread.h (struct thread_control_state) <step_start_function>:
9638         ... now a field here.
9639         * infrun.c (clear_proceed_status_thread): Clear the thread's
9640         step_start_function.
9641         (proceed, process_event_stop_test, print_stop_event): Adjust.
9642
9643 2015-03-24  Pedro Alves  <palves@redhat.com>
9644
9645         * infrun.c (proceed): No longer handle negative step.
9646
9647 2015-03-24  Gary Benson  <gbenson@redhat.com>
9648
9649         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9650         (x86_linux_prepare_to_resume): Likewise.
9651         * x86-linux-nat.c (x86_linux_new_thread):
9652         Moved to nat/x86-linux.c.
9653         (x86_linux_prepare_to_resume): Likewise.
9654         * nat/x86-linux.c (x86_linux_new_thread): New function.
9655         (x86_linux_prepare_to_resume): Likewise.
9656
9657 2015-03-24  Gary Benson  <gbenson@redhat.com>
9658
9659         * nat/x86-linux-dregs.h: New file.
9660         * nat/x86-linux-dregs.c: Likewise.
9661         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9662         (x86-linux-dregs.o): New rule.
9663         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9664         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9665         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9666         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9667         (x86_linux_dr_get): Likewise.
9668         (x86_linux_dr_set): Likewise.
9669         (x86_linux_dr_get_addr): Likewise.
9670         (x86_linux_dr_get_control): Likewise.
9671         (x86_linux_dr_get_status): Likewise.
9672         (update_debug_registers_callback): Likewise.
9673         (x86_linux_dr_set_control): Likewise.
9674         (x86_linux_dr_set_addr): Likewise.
9675         (x86_linux_update_debug_registers): Likewise.
9676
9677 2015-03-24  Gary Benson  <gbenson@redhat.com>
9678
9679         * x86-linux-nat.c (x86_linux_update_debug_registers):
9680         New function, factored out from...
9681         (x86_linux_prepare_to_resume): ...this.
9682
9683 2015-03-24  Gary Benson  <gbenson@redhat.com>
9684
9685         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9686         (x86_linux_dr_set): Likewise.
9687         (x86_linux_dr_get_addr): Likewise.
9688         (x86_linux_dr_get_control): Likewise.
9689         (x86_linux_dr_get_status): Likewise.
9690         (update_debug_registers_callback): Likewise.
9691         (x86_linux_dr_set_control): Likewise.
9692         (x86_linux_dr_set_addr): Likewise.
9693         (x86_linux_prepare_to_resume): Likewise.
9694         (x86_linux_new_thread): Likewise.
9695
9696 2015-03-24  Gary Benson  <gbenson@redhat.com>
9697
9698         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9699         (x86_linux_new_thread): Rename argument.
9700
9701 2015-03-24  Gary Benson  <gbenson@redhat.com>
9702
9703         * nat/x86-linux.h: New file.
9704         * nat/x86-linux.c: Likewise.
9705         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9706         (x86-linux.o): New rule.
9707         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9708         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9709         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9710         (lwp_set_arch_private_info): New declaration.
9711         (lwp_arch_private_info): Likewise.
9712         * linux-nat.c (lwp_set_arch_private_info): New function.
9713         (lwp_arch_private_info): Likewise.
9714         * x86-linux-nat.c: Include nat/x86-linux.h.
9715         (arch_lwp_info): Removed structure.
9716         (update_debug_registers_callback):
9717         Use lwp_set_debug_registers_changed.
9718         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9719         and lwp_set_debug_registers_changed.
9720         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9721
9722 2015-03-24  Gary Benson  <gbenson@redhat.com>
9723
9724         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9725         (lwp_is_stopped): Likewise.
9726         (lwp_stop_reason): Likewise.
9727         * linux-nat.c (ptid_of_lwp): New function.
9728         (lwp_is_stopped): Likewise.
9729         (lwp_is_stopped_by_watchpoint): Likewise.
9730         * x86-linux-nat.c (update_debug_registers_callback):
9731         Use lwp_is_stopped.
9732         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9733         lwp_stop_reason.
9734
9735 2015-03-24  Gary Benson  <gbenson@redhat.com>
9736
9737         * linux-nat.h (linux_stop_lwp): Move declaration to...
9738         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9739
9740 2015-03-24  Gary Benson  <gbenson@redhat.com>
9741
9742         * linux-nat.h: Include nat/linux-nat.h.
9743         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9744         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9745         (iterate_over_lwps_ftype): New typedef.
9746         (iterate_over_lwps): New declaration.
9747         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9748         iterate_over_lwps_ftype.  Update callback return value check.
9749
9750 2015-03-24  Gary Benson  <gbenson@redhat.com>
9751
9752         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9753         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9754
9755 2015-03-24  Gary Benson  <gbenson@redhat.com>
9756
9757         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9758         * linux-nat.c (current_lwp_ptid): New function.
9759         * x86-linux-nat.c: Include nat/linux-nat.h.
9760         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9761         (x86_linux_dr_get_control): Likewise.
9762         (x86_linux_dr_get_status): Likewise.
9763         (x86_linux_dr_set_control): Likewise.
9764         (x86_linux_dr_set_addr): Likewise.
9765
9766 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9767
9768         PR breakpoints/16466
9769         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9770
9771 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9772
9773         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9774         * ser-unix.c (hardwire_setparity): Likewise.
9775
9776 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9777
9778         * NEWS: Mention set/show serial parity command.
9779         * monitor.c (monitor_open): Call serial_setparity.
9780         * remote.c (remote_open_1): Likewise.
9781         * ser-base.c (ser_base_serparity): New function.
9782         * ser-base.h (ser_base_setparity): Add  declaration.
9783         * ser-go32.c (dos_ops): Set "setparity" field.
9784         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9785         state.Parity.
9786         (ser_windows_setparity): New function.
9787         (hardwire_ops): Add ser_windows_setparity.
9788         (tty_ops): Add NULL for setparity field.
9789         (pipe_ops): Add ser_base_setparity.
9790         (tcp_ops): Likewise.
9791         * ser-pipe.c (pipe_ops): Likewise.
9792         * ser-tcp.c (tcp_ops): Likewise.
9793         * ser-unix.c (hardwire_setparity): Add declaration.
9794         (hardwire_raw): Don't reset PARENB flag.
9795         (hardwire_setparity): New function.
9796         (hardwire_ops): Add hardwire_setparity.
9797         * serial.c (serial_setparity): New function.
9798         (serial_parity): New global.
9799         (parity_none, parity_odd, parity_even, parity_enums, parity):
9800         New static globals.
9801         (set_parity): New function.
9802         (_initialize_serial): Add set/show serial parity commands.
9803         * serial.h (GDBPARITY_NONE): Define.
9804         (GDBPARITY_ODD): Define.
9805         (GDBPARITY_EVEN): Define.
9806         (serial_setparity) Add declaration.
9807         (struct serial_ops): Add setparity field.
9808         * target.h (serial_parity): Add declaration.
9809
9810 2015-03-23  Keith Seitz  <keiths@redhat.com>
9811
9812         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9813
9814 2015-03-23  Keith Seitz  <keiths@redhat.com>
9815
9816         * breakpoint.c (parse_breakpoint_sals): Use
9817         linespec_lexer_lex_keyword to ascertain if the user specified
9818         a NULL location.
9819         * linespec.c [IF_KEYWORD_INDEX]: Define.
9820         (linespec_lexer_lex_keyword): Export.
9821         (struct ls_parser) <keyword_ok>: Remove.
9822         A keyword is only a keyword if not followed by another keyword.
9823         (linespec_lexer_lex_one): Remove keyword_ok handling.
9824         Add comment explaining why the parsing stream is not advanced
9825         when a keyword is seen.
9826         (parse_linespec): Remove parser->keyword_ok.
9827         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9828
9829 2015-03-23  Keith Seitz  <keiths@redhat.com>
9830
9831         PR gdb/18021
9832         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9833         if we find a static method with DW_AT_vtable_elem_location.
9834
9835 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9836
9837         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9838         before the second loop, to avoid undefined behavior.  Reported by
9839         Anton Blanchard <anton@samba.org>.
9840
9841 2015-03-20  Keven Boell  <keven.boell@intel.com>
9842
9843         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9844         data_location usage to linked list.
9845         (resolve_dynamic_type_internal): Adapt data_location to
9846         linked list.
9847         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9848         (copy_type_recursive, copy_type): Add copy of linked list.
9849         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9850         (struct dynamic_prop_list): New struct.
9851         * dwarf2read.c (set_die_type): Set data_location data.
9852
9853 2015-03-20  Pedro Alves  <palves@redhat.com>
9854
9855         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9856         inner block and make it const.
9857         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9858
9859 2015-03-20  Pedro Alves  <palves@redhat.com>
9860
9861         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9862         * breakpoint.h (set_breakpoint_condition): Update declaration.
9863
9864 2015-03-20  Pedro Alves  <palves@redhat.com>
9865
9866         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9867
9868 2015-03-20  Pedro Alves  <palves@redhat.com>
9869
9870         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9871
9872 2015-03-20  Pedro Alves  <palves@redhat.com>
9873
9874         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9875
9876 2015-03-20  Pedro Alves  <palves@redhat.com>
9877
9878         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9879         (nto_init_solib_absolute_prefix): Likewise.
9880
9881 2015-03-20  Pedro Alves  <palves@redhat.com>
9882
9883         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9884         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9885
9886 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9887
9888         * config/djgpp/README: Remove gdb.hp.
9889
9890 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9891
9892         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9893         set_gdbarch_cannot_step_breakpoint.
9894
9895 2015-03-19  Pedro Alves  <palves@redhat.com>
9896
9897         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9898         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9899         instead call perror_with_name.
9900         (check_ptrace_stopped_lwp_gone): New function.
9901         (linux_resume_one_lwp): Reimplement as wrapper around
9902         linux_resume_one_lwp_throw that swallows errors if the LWP is
9903         gone.
9904         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9905         swallows errors if the LWP is gone.  Use
9906         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9907
9908 2015-03-19  Pedro Alves  <palves@redhat.com>
9909
9910         * linux-nat.c (status_callback): Return early if the LWP has no
9911         status pending.
9912
9913 2015-03-19  Pedro Alves  <palves@redhat.com>
9914
9915         * linux-nat.c (select_event_lwp_callback): Update comment to no
9916         longer mention SIGTRAP.
9917
9918 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9919
9920         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9921         redirection code to ...
9922         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9923         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9924
9925 2015-03-18  Gary Benson <gbenson@redhat.com>
9926
9927         (remote_protocol_features): Remove the "vFile:fstat" feature.
9928         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9929
9930 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9931
9932         PR tdep/18107
9933         * aarch64-linux-tdep.c: Include xml-syscall.h
9934         (aarch64_linux_get_syscall_number): New function.
9935         (aarch64_linux_init_abi): Call
9936         set_gdbarch_get_syscall_number.
9937         * syscalls/aarch64-linux.xml: New file.
9938
9939 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9940
9941         * ser-base.h (ser_base_setstopbits): Change second argument name
9942         from "rate" to "num".
9943
9944 2015-03-17  Gary Benson <gbenson@redhat.com>
9945             Luke Allardyce <lukeallardyce@gmail.com>
9946
9947         PR gdb/18131
9948         * common/common-remote-fileio.h (sys/stat.h): New include.
9949         (stuct stat): Remove forward declaration.
9950
9951 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9952
9953         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9954         before writing core register notes.
9955
9956 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9957             Pedro Alves  <palves@redhat.com>
9958
9959         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9960         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9961         (tgoto): Wrap with extern "C".
9962
9963 2015-03-16  Pedro Alves  <palves@redhat.com>
9964             Yuanhui Zhang  <asmwarrior@gmail.com>
9965
9966         * stub-termcap.c (tputs): Change prototype.
9967
9968 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9969             Pedro Alves  <palves@redhat.com>
9970
9971         * windows-nat.c (struct thread_info_struct): Rename to ...
9972         (struct windows_thread_info_struct): ... this.
9973         (thread_info): Rename to ...
9974         (windows_thread_info): ... this.
9975         All users updated.
9976
9977 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9978             Pedro Alves  <palves@redhat.com>
9979
9980         * NEWS: New Removed targets and native configurations.
9981
9982 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9983
9984         Remove HPUX.
9985         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9986         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9987         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9988         ia64-hpux-tdep.h, solib-ia64-hpux.h.
9989         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9990         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9991         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9992         hppa-hpux-tdep.c.
9993         * config/ia64/hpux.mh: Remove file.
9994         * config/pa/hpux.mh: Remove file.
9995         * configure: Rebuilt.
9996         * configure.ac (dlgetmodinfo, somread.o): Remove.
9997         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9998         (ia64-*-hpux*): Remove its float format exception.
9999         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10000         * hppa-hpux-nat.c: Remove file.
10001         * hppa-hpux-tdep.c: Remove file.
10002         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10003         Move them here from hppa-tdep.h
10004         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10005         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10006         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10007         Move them to hppa-tdep.c.
10008         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10009         declarations.
10010         * ia64-hpux-nat.c: Remove file.
10011         * ia64-hpux-tdep.c: Remove file.
10012         * ia64-hpux-tdep.h: Remove file.
10013         * inf-ttrace.c: Remove file.
10014         * inf-ttrace.h: Remove file.
10015         * solib-ia64-hpux.c: Remove file.
10016         * solib-ia64-hpux.h: Remove file.
10017         * solib-pa64.c: Remove file.
10018         * solib-pa64.h: Remove file.
10019         * solib-som.c: Remove file.
10020         * solib-som.h: Remove file.
10021         * somread.c: Remove file.
10022
10023 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10024
10025         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10026         * config.in: Regenerate.
10027         * configure: Regenerate.
10028         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10029         define.
10030         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10031         enumerate memory regions if present.
10032
10033 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10034
10035         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10036         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10037         expressions.
10038         (i386fbsd_sigtramp_p): Likewise.
10039
10040 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10041
10042         * MAINTAINERS (Write After Approval): Add John Baldwin.
10043
10044 2015-03-12  Gary Benson <gbenson@redhat.com>
10045
10046         * solib.c (_initialize_solib): Make "set/show sysroot" use
10047         add_setshow_optional_filename_cmd so it can be restored to
10048         empty after being set.
10049
10050 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10051
10052         * Makefile.in (SFILES): New source break-catch-syscall.c.
10053         (COMMON_OBS): New object break-catch-syscall.o.
10054         * break-catch-syscall.c: New file.
10055         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10056         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10057         (struct syscall_catchpoint): Likewise.
10058         (dtor_catch_syscall): Likewise.
10059         (catch_syscall_inferior_data): Likewise.
10060         (struct catch_syscall_inferior_data): Likewise.
10061         (get_catch_syscall_inferior_data): Likewise.
10062         (catch_syscall_inferior_data_cleanup): Likewise.
10063         (insert_catch_syscall): Likewise.
10064         (remove_catch_syscall): Likewise.
10065         (breakpoint_hit_catch_syscall): Likewise.
10066         (print_it_catch_syscall): Likewise.
10067         (print_one_catch_syscall): Likewise.
10068         (print_mention_catch_syscall): Likewise.
10069         (print_recreate_catch_syscall): Likewise.
10070         (catch_syscall_breakpoint_ops): Likewise.
10071         (syscall_catchpoint_p): Likewise.
10072         (create_syscall_event_catchpoint): Likewise.
10073         (catch_syscall_split_args): Likewise.
10074         (catch_syscall_command_1): Likewise.
10075         (is_syscall_catchpoint_enabled): Likewise.
10076         (catch_syscall_enabled): Likewise.
10077         (catching_syscall_number): Likewise.
10078         (catch_syscall_completer): Likewise.
10079         (clear_syscall_counts): Likewise.
10080         (initialize_breakpoint_ops): Move initialization of syscall
10081         catchpoints to break-catch-syscall.c.
10082         (_initialize_breakpoint): Move code related to syscall catchpoints
10083         to break-catch-syscall.c.
10084
10085 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10086
10087         * breakpoint.c (breakpoint_find_if): New function.
10088         * breakpoint.h (breakpoint_find_if): New prototype.
10089
10090 2015-03-11  Gary Benson <gbenson@redhat.com>
10091
10092         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10093         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10094         (remote_fileio_to_host_ulong): Likewise.
10095         (remote_fileio_to_host_mode): Likewise.
10096         (remote_fileio_to_host_time): Likewise.
10097         (remote_fileio_to_host_stat): Likewise.
10098         * remote.c (PACKET_vFile_fstat): New enum value.
10099         (remote_protocol_features): Register the "vFile:fstat" feature.
10100         (remote_hostio_fstat): New function.
10101         (remote_bfd_iovec_stat): Use the above.
10102         (_initialize_remote): Register new "set/show remote
10103         hostio-fstat-packet" command.
10104         * symfile.c (separate_debug_file_exists): Update comment.
10105         * NEWS: Announce new vFile:fstat packet.
10106
10107 2015-03-11  Gary Benson <gbenson@redhat.com>
10108
10109         * common/common-remote-fileio.h: New file.
10110         * common/common-remote-fileio.c: Likewise.
10111         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10112         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10113         (COMMON_OBS): Add common-remote-fileio.o.
10114         (common-remote-fileio.o): New rule.
10115         * remote-fileio.h (common-remote-fileio.h): New include.
10116         * remote-fileio.c (gdb/fileio.h): Do not include.
10117         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10118         (remote_fileio_to_fio_uint): Likewise.
10119         (remote_fileio_to_fio_time): Likewise.
10120         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10121         (remote_fileio_to_fio_mode): Likewise.
10122         (remote_fileio_to_fio_ulong): Likewise.
10123         (remote_fileio_to_fio_stat): Likewise.
10124
10125 2015-03-11  Andy Wingo  <wingo@igalia.com>
10126
10127         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10128         we were checking the cached type, not the cached dynamic type.
10129
10130 2015-03-11  Andy Wingo  <wingo@igalia.com>
10131
10132         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10133         other strings, as these are on the GC'd heap, and will be
10134         collected along with the smob.
10135
10136 2015-03-11  Andy Wingo  <wingo@igalia.com>
10137
10138         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10139         (objfile_functions): Bind gdbscm_objfile_progspace to
10140         objfile-progspace.
10141         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10142
10143 2015-03-11  Andy Wingo  <wingo@igalia.com>
10144
10145         * guile/guile.c (_initialize_guile): Disable automatic
10146         finalization, if Guile offers us that possibility.
10147         * guile/guile.c (call_initialize_gdb_module):
10148         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10149         finalizers in appropriate places.
10150         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10151         scm_set_automatic_finalization_enabled.
10152         * configure: Regenerated.
10153
10154 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10155
10156         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10157         SAL, if possible.
10158
10159 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10160
10161         * s390-linux-nat.c (struct arch_lwp_info): New.
10162         (s390_fix_watch_points): Rename to...
10163         (s390_prepare_to_resume): ...this.  Skip the PER info update
10164         unless the watch points have changed.
10165         (s390_refresh_per_info, s390_new_thread): New functions.
10166         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10167         s390_fix_watch_points.
10168         (s390_remove_watchpoint): Likewise.
10169         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10170         Register s390_prepare_to_resume.
10171
10172 2015-03-09  Pedro Alves  <palves@redhat.com>
10173
10174         Revert:
10175         2015-03-07  Pedro Alves  <palves@redhat.com>
10176         * common/gdb_socket.h: New file.
10177         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10178         sys/socket.h.
10179         (net_open): Use union gdb_sockaddr_u.
10180
10181 2015-03-07  Pedro Alves  <palves@redhat.com>
10182
10183         * configure.ac (build_warnings): Move -Wmissing-prototypes
10184         -Wdeclaration-after-statement -Wmissing-parameter-type
10185         -Wold-style-declaration -Wold-style-definition to the C-specific
10186         set.
10187         * configure: Regenerate.
10188
10189 2015-03-07  Pedro Alves  <palves@redhat.com>
10190
10191         * common/gdb_socket.h: New file.
10192         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10193         sys/socket.h.
10194         (net_open): Use union gdb_sockaddr_u.
10195
10196 2015-03-07  Pedro Alves  <palves@redhat.com>
10197
10198         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10199         (exceptions_state_mc_action_iter)
10200         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10201         Don't define.
10202         [__cplusplus] (try_scope_depth): New global.
10203         [__cplusplus] (exception_try_scope_entry)
10204         (exception_try_scope_exit, gdb_exception_sliced_copy)
10205         (exception_rethrow): New functions.
10206         (throw_exception): In C++ mode, throw
10207         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10208         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10209         (throw_it): In C++ mode, use try_scope_depth.
10210         * common/common-exceptions.h [!__cplusplus]
10211         (exceptions_state_mc_action_iter)
10212         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10213         Don't declare.
10214         [__cplusplus] (exception_try_scope_entry)
10215         (exception_try_scope_exit, exception_rethrow): Declare.
10216         [__cplusplus] (struct exception_try_scope): New struct.
10217         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10218         C++ exceptions.
10219         (struct gdb_exception_RETURN_MASK_ALL)
10220         (struct gdb_exception_RETURN_MASK_ERROR)
10221         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10222
10223 2015-03-07  Pedro Alves  <palves@redhat.com>
10224
10225         * main.c (handle_command_errors): Remove volatile qualifier from
10226         parameter.
10227
10228 2015-03-07  Pedro Alves  <palves@redhat.com>
10229
10230         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10231         TRY and CATCH.
10232         * gdbtypes.c (safe_parse_type): Remove empty line.
10233         (types_deeply_equal):
10234         * guile/scm-frame.c (gdbscm_frame_name):
10235         * linux-thread-db.c (find_new_threads_once):
10236         * python/py-breakpoint.c (bppy_get_commands):
10237         * record-btrace.c (record_btrace_insert_breakpoint)
10238         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10239         (record_btrace_start_replaying): Adjust to avoid code between TRY
10240         and CATCH.
10241
10242 2015-03-07  Pedro Alves  <palves@redhat.com>
10243
10244         * common/common-exceptions.c (struct catcher) <exception>: No
10245         longer a pointer to volatile exception.  Now an exception value.
10246         <mask>: Delete field.
10247         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10248         (exceptions_state_mc): No longer pop the catcher here.
10249         (exceptions_state_mc_catch): New function.
10250         (throw_exception): Adjust.
10251         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10252         all parameters.
10253         (exceptions_state_mc_catch): Declare.
10254         (TRY_CATCH): Rename to ...
10255         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10256         (CATCH, END_CATCH): New.
10257         All callers adjusted.
10258
10259 2015-03-07  Tom Tromey  <tromey@redhat.com>
10260
10261         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10262
10263 2015-03-07  Pedro Alves  <palves@redhat.com>
10264
10265         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10266         (amd64_epilogue_frame_cache): Normal exception handling code.
10267         * break-catch-throw.c (check_status_exception_catchpoint)
10268         (re_set_exception_catchpoint): Ditto.
10269         * cli/cli-interp.c (safe_execute_command):
10270         * cli/cli-script.c (script_from_file): Ditto.
10271         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10272         Ditto.
10273         * compile/compile-object-run.c (compile_object_run): Ditto.
10274         * cp-abi.c (baseclass_offset): Ditto.
10275         * cp-valprint.c (cp_print_value): Ditto.
10276         * exceptions.c (catch_exceptions_with_msg):
10277         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10278         * frame.c (get_frame_address_in_block_if_available): Ditto.
10279         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10280         (i386_sigtramp_frame_cache): Ditto.
10281         * infcmd.c (post_create_inferior): Ditto.
10282         * linespec.c (parse_linespec, find_linespec_symbols):
10283         * p-valprint.c (pascal_object_print_value): Ditto.
10284         * parse.c (parse_expression_for_completion): Ditto.
10285         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10286         * remote.c (remote_get_noisy_reply): Ditto.
10287         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10288         * solib-svr4.c (solib_svr4_r_map): Ditto.
10289
10290 2015-03-06  Gary Benson  <gbenson@redhat.com>
10291
10292         * common/common-utils.h (startswith): New inline function.
10293         All places where this logic was used updated to use the above.
10294
10295 2015-03-05  Pedro Alves  <palves@redhat.com>
10296
10297         PR gdb/18002
10298         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10299         after reading the breakpoint's shadow memory.
10300
10301 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10302
10303         * hppabsd-nat.c: Remove file.
10304         * hppaobsd-nat.c: New file.
10305         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10306         hppaobsd-nat.c.
10307         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10308         hppaobsd-nat.o.
10309
10310 2015-03-04  Pedro Alves  <palves@redhat.com>
10311
10312         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10313         (target_decr_pc_after_break): Delete declaration.
10314         * target.c (default_target_decr_pc_after_break)
10315         (target_decr_pc_after_break): Delete.
10316         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10317         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10318         * linux-thread-db.c (check_event): Likewise.
10319         * infrun.c (adjust_pc_after_break): Likewise.
10320         * darwin-nat.c (cancel_breakpoint): Likewise.
10321         * aix-thread.c (aix_thread_wait): Likewise.
10322         * target-delegates.c: Regenerate.
10323
10324 2015-03-04  Pedro Alves  <palves@redhat.com>
10325
10326         * linux-nat.c (save_sigtrap): Check for breakpoints before
10327         checking watchpoints.
10328         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10329         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10330         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10331         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10332         (linux_nat_stopped_by_sw_breakpoint)
10333         (linux_nat_supports_stopped_by_sw_breakpoint)
10334         (linux_nat_stopped_by_hw_breakpoint)
10335         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10336         (linux_nat_wait_1): Don't re-increment the PC if relying on
10337         SIGTRAP's siginfo->si_code.
10338         (linux_nat_add_target): Install new target methods.
10339         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10340         offset if the target already adjusted the PC.
10341         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10342         (GDB_ARCH_TRAP_BRKPT): New.
10343         (TRAP_HWBKPT): Define if not already defined.
10344
10345 2015-03-04  Pedro Alves  <palves@redhat.com>
10346
10347         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10348         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10349         Delete field.
10350         <stop_reason>: New field.
10351         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10352         (packet_set_cmd_state): New function.
10353         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10354         features.
10355         (remote_query_supported): If not disabled with the corresponding
10356         "set remote foo-packet" command, report support for the swbreak
10357         and hwbreak features.
10358         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10359         field.
10360         <stop_reason>: New field.
10361         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10362         (remote_wait_as): Adjust.
10363         (remote_stopped_by_sw_breakpoint)
10364         (remote_supports_stopped_by_sw_breakpoint)
10365         (remote_stopped_by_hw_breakpoint)
10366         (remote_supports_stopped_by_hw_breakpoint): New functions.
10367         (remote_stopped_by_watchpoint): New function.
10368         (init_remote_ops): Install them.
10369         (_initialize_remote): Register new "set/show remote
10370         swbreak-feature-packet" and "set/show remote
10371         swbreak-feature-packet" commands.
10372
10373 2015-03-04  Pedro Alves  <palves@redhat.com>
10374
10375         * btrace.h: Include target/waitstatus.h.
10376         (struct btrace_thread_info) <stop_reason>: New field.
10377         * record-btrace.c (record_btrace_step_thread): Use
10378         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10379         (record_btrace_decr_pc_after_break): Delete.
10380         (record_btrace_stopped_by_sw_breakpoint)
10381         (record_btrace_supports_stopped_by_sw_breakpoint)
10382         (record_btrace_stopped_by_hw_breakpoint)
10383         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10384         (init_record_btrace_ops): Install them.
10385         * record-full.c (record_full_hw_watchpoint): Delete and replace
10386         with ...
10387         (record_full_stop_reason): ... this throughout.
10388         (record_full_exec_insn): Adjust.
10389         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10390         (record_full_wait_1): Adjust.  Use
10391         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10392         (record_full_stopped_by_watchpoint): Adjust.
10393         (record_full_stopped_by_sw_breakpoint)
10394         (record_full_supports_stopped_by_sw_breakpoint)
10395         (record_full_supports_stopped_by_sw_breakpoint)
10396         (record_full_stopped_by_hw_breakpoint)
10397         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10398         (init_record_full_ops, init_record_full_core_ops): Install them.
10399         * record.c (record_check_stopped_by_breakpoint): New function.
10400         * record.h: Include target/waitstatus.h.
10401         (record_check_stopped_by_breakpoint): New declaration.
10402
10403 2015-03-04  Pedro Alves  <palves@redhat.com>
10404
10405         enum lwp_stop_reason -> enum target_stop_reason
10406         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10407         (linux_nat_stopped_by_watchpoint, status_callback)
10408         (linux_nat_wait_1): Adjust.
10409         * linux-nat.h (enum lwp_stop_reason): Delete.
10410         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10411         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10412         * target/waitstatus.h (enum target_stop_reason): New.
10413
10414 2015-03-04  Pedro Alves  <palves@redhat.com>
10415
10416         * breakpoint.c (need_moribund_for_location_type): New function.
10417         (bpstat_stop_status): Don't skipping checking moribund locations
10418         of breakpoint types which the target tell caused a stop.
10419         (program_breakpoint_here_p): New function, factored out from ...
10420         (bp_loc_is_permanent): ... this.
10421         (update_global_location_list): Don't create a moribund location if
10422         the target supports reporting stops of the type of the removed
10423         breakpoint.
10424         * breakpoint.h (program_breakpoint_here_p): New declaration.
10425         * infrun.c (adjust_pc_after_break): Return early if the target has
10426         already adjusted the PC.  Add comments.
10427         (handle_signal_stop): If nothing explains a signal, and the target
10428         tells us the stop was caused by a software breakpoint, check if
10429         there's a breakpoint instruction in the memory.  If so, adjust the
10430         PC before presenting the stop to the user.  Otherwise, ignore the
10431         trap.  If nothing explains a signal, and the target tells us the
10432         stop was caused by a hardware breakpoint, ignore the trap.
10433         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10434         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10435         to_supports_stopped_by_hw_breakpoint>: New fields.
10436         (target_stopped_by_sw_breakpoint)
10437         (target_supports_stopped_by_sw_breakpoint)
10438         (target_stopped_by_hw_breakpoint)
10439         (target_supports_stopped_by_hw_breakpoint): Define.
10440         * target-delegates.c: Regenerate.
10441
10442 2015-03-04  Pedro Alves  <palves@redhat.com>
10443
10444         * infrun.c (follow_fork_inferior): Use the whole of the
10445         inferior_ptid and pending_follow.related_pid ptids instead of
10446         building ptids from the process components.  Adjust verbose output
10447         to use target_pid_to_str.
10448         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10449         inferior_ptid and pending_follow.related_pid ptids instead of
10450         building ptids from the process components.
10451
10452 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10453
10454         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10455         (inf_ptrace_insert_fork_catchpoint): New function.
10456         (inf_ptrace_remove_fork_catchpoint): New function.
10457         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10458
10459 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10460
10461         * s390-linux-tdep.c (s390_register_name): Return empty string
10462         instead of NULL for registers that shouldn't be visible.
10463
10464 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10465
10466         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10467         XML file for 64-bit targets.
10468
10469 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10470
10471         * target.h (find_default_create_inferior): Remove declaration.
10472         (find_default_attach): Likewise.
10473
10474 2015-03-03  Pedro Alves  <palves@redhat.com>
10475
10476         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10477         Use ptid_get_pid to get the overall process id when resuming all
10478         threads.
10479
10480 2015-03-03  Pedro Alves  <palves@redhat.com>
10481
10482         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10483         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10484         * inf-ptrace.c (get_ptrace_pid): New function.
10485         (inf_ptrace_resume): Use it.
10486         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10487         to the lower layer.
10488
10489 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10490
10491         * nat/linux-btrace.c: Include sys/utsname.h.
10492         (linux_determine_kernel_ptr_bits): New.
10493         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10494         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10495         ptr_bits.
10496
10497 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10498
10499         * btrace.c (ftrace_update_function): Treat return as tailcall for
10500         "_dl_runtime_resolve".
10501
10502 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10503
10504         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10505         * btrace.c (ftrace_debug): Do not print the line range.
10506         (ftrace_skip_file, ftrace_update_lines): Remove.
10507         (ftrace_new_function): Remove lbegin and lend initialization.
10508         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10509         * record-btrace.c (btrace_compute_src_line_range): New.
10510         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10511
10512 2015-03-02  Pedro Alves  <palves@redhat.com>
10513
10514         * infrun.c (follow_exec): Delete all threads of the process except
10515         the event thread.  Extended comments.
10516
10517 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10518
10519         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10520
10521 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10522
10523         * utils.h: Remove <stdbool.h> #include.
10524         (producer_is_gcc): Change return type to "int".
10525         * utils.c (producer_is_gcc): Change return type to int.
10526         Return 1 instead of true, and 0 instead of false.
10527         Adjust function documentation accordingly.
10528
10529 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10530
10531         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10532         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10533         present.
10534         (s390_linux_store_inferior_registers): Likewise.
10535         (s390_get_hwcap): Remove function.  Embed its logic...
10536         (s390_read_description): ...here.  Yield a target description with
10537         vector registers if applicable.
10538         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10539         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10540         "features/s390x-tevx-linux64.c".
10541         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10542         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10543         for "GNU/Linux-specific registers".
10544         (s390_dwarf_reg_r0l): New enum value.
10545         (s390_dwarf_reg_to_regnum): Support vector registers.
10546         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10547         of GPR lower halves.
10548         (regnum_is_vxr_full): New function.
10549         (s390_register_name): New function.
10550         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10551         f0-f15 and v0l-v15l.
10552         (s390_pseudo_register_type): Likewise.
10553         (s390_pseudo_register_read): Likewise.
10554         (s390_pseudo_register_write): Likewise.
10555         (s390_value_from_register): Account for the fact that values are
10556         placed left-justified in vector registers.
10557         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10558         the vector reggroup and omit them from the general reggroup.
10559         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10560         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10561         (s390_iterate_over_regset_sections): Add iterations for the two
10562         new vector regsets.
10563         (s390_core_read_description): Yield a target description with
10564         vector registers if applicable.
10565         (s390_gdbarch_init): Handle target descriptions with vector
10566         registers.  Add "register_name" gdbarch method.
10567         (_initialize_s390_tdep): Call new tdesc initialization functions.
10568         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10569         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10570         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10571         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10572         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10573         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10574         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10575         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10576         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10577         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10578         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10579         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10580         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10581         (S390_NUM_REGS): Adjust value.
10582         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10583         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10584         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10585         * NEWS: Announce S/390 vector register support.
10586
10587 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10588
10589         * features/s390-tevx-linux64.xml: New file.
10590         * features/s390-vx-linux64.xml: New file.
10591         * features/s390-vx.xml: New file.
10592         * features/s390x-tevx-linux64.xml: New file.
10593         * features/s390x-vx-linux64.xml: New file.
10594         * features/Makefile (WHICH): Add s390-vx-linux64,
10595         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10596         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10597         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10598         macros.
10599         * features/s390-tevx-linux64.c: New generated file.
10600         * features/s390-vx-linux64.c: Likewise.
10601         * features/s390x-tevx-linux64.c: Likewise.
10602         * features/s390x-vx-linux64.c: Likewise.
10603         * regformats/s390-tevx-linux64.dat: Likewise.
10604         * regformats/s390-vx-linux64.dat: Likewise.
10605         * regformats/s390x-tevx-linux64.dat: Likewise.
10606         * regformats/s390x-vx-linux64.dat: Likewise.
10607
10608 2015-02-28  Doug Evans  <xdje42@gmail.com>
10609
10610         * symtab.h (struct symtab) <next>: Fix comment.
10611
10612 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10613
10614         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10615         python_GdbMethods.
10616
10617 2015-02-27  Pedro Alves  <palves@redhat.com>
10618
10619         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10620
10621 2015-02-27  Pedro Alves  <palves@redhat.com>
10622
10623         * common/common-exceptions.h (exception_none): Declare.
10624         * common/common-exceptions.c (exception_none): Moved from
10625         exceptions.c.
10626         (exceptions_state_mc_init): Use exception_none.
10627         * exceptions.c (exception_none): Move to
10628         common/common-exceptions.c.
10629         * exceptions.h (exception_none): Move to
10630         common/common-exceptions.h.
10631
10632 2015-02-27  Pedro Alves  <palves@redhat.com>
10633
10634         * main.c (catch_command_errors, catch_command_errors_const):
10635         Remove 'mask' argument.  Adjust.
10636         (captured_main): Adjust callers.
10637
10638 2015-02-27  Pedro Alves  <palves@redhat.com>
10639
10640         * python/python-internal.h: Include "extension-priv.h".
10641
10642 2015-02-27  Pedro Alves  <palves@redhat.com>
10643
10644         * breakpoint.h (enum print_stop_action): Move further up in the
10645         file.
10646
10647 2015-02-27  Pedro Alves  <palves@redhat.com>
10648
10649         * gdbarch.sh: Include regcache.h.
10650         * gdbarch.h: Regenerate.
10651
10652 2015-02-27  Pedro Alves  <palves@redhat.com>
10653
10654         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10655         Remove duplicate const.
10656         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10657         duplicate const.
10658
10659 2015-02-27  Pedro Alves  <palves@redhat.com>
10660
10661         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10662         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10663         * features/feature_to_c.sh: Tag the generated xml_builtin array
10664         with extern const in C++ mode.
10665
10666 2015-02-27  Tom Tromey  <tromey@redhat.com>
10667
10668         * minidebug.c (struct lzma_stream): Rename to ...
10669         (struct gdb_lzma_stream): ... this.
10670         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10671
10672 2015-02-27  Pedro Alves  <palves@redhat.com>
10673
10674         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10675         function.
10676         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10677         (mi_cmd_stack_list_variables): Use it.
10678
10679 2015-02-27  Pedro Alves  <palves@redhat.com>
10680
10681         * x86-linux-nat.c (u_debugreg_offset): New function.
10682         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10683
10684 2015-02-27  Pedro Alves  <palves@redhat.com>
10685
10686         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10687         declaration.
10688         Include break-common.h.
10689
10690 2015-02-27  Tom Tromey  <tromey@redhat.com>
10691             Pedro Alves <palves@redhat.com>
10692
10693         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10694         local used to iterate over enums.
10695         * completer.c (signal_completer): Likewise.
10696         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10697         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10698         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10699         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10700         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10701         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10702         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10703
10704 2015-02-27  Pedro Alves  <palves@redhat.com>
10705
10706         * target.h: Include "infrun.h".
10707
10708 2015-02-27  Pedro Alves  <palves@redhat.com>
10709
10710         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10711
10712 2015-02-27  Pedro Alves  <palves@redhat.com>
10713
10714         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10715         (IPA_SYM): Use it.
10716         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10717
10718 2015-02-27  Pedro Alves  <palves@redhat.com>
10719
10720         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10721         cli_mld_erase_entire_line, and make it extern "C".
10722         * common/common-defs.h (EXTERN_C): New.
10723         * completer.c (_rl_completion_prefix_display_length)
10724         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10725         out of gdb_display_match_list_1.
10726         (_rl_qsort_string_compare): Move declaration out of
10727         gdb_display_match_list_1, and make it extern "C".
10728         * defs.h (re_comp): Use EXTERN_C.
10729         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10730         and make it extern "C".
10731         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10732         and make it extern "C".
10733         (main): Move declaration out of maintenance_set_profile_cmd.
10734         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10735         EXTERN_C.
10736
10737 2015-02-27  Pedro Alves  <palves@redhat.com>
10738
10739         * python/python.c (GdbMethods): Rename to ...
10740         (python_GdbMethods): ... this and make extern.
10741         (GdbModuleDef): Rename to ...
10742         (python_GdbModuleDef): ... this and make extern.
10743
10744 2015-02-27  Pedro Alves  <palves@redhat.com>
10745
10746         * record-btrace.c (set_record_btrace_cmdlist)
10747         (show_record_btrace_cmdlist): Remove redefinitions.
10748
10749 2015-02-27  Tom Tromey  <tromey@redhat.com>
10750             Pedro Alves  <palves@redhat.com>
10751
10752         * dwarf2-frame.c (enum cfa_how_kind, struct
10753         dwarf2_frame_state_reg_info): Move out of struct
10754         dwarf2_frame_state.
10755         * dwarf2read.c (struct tu_stats): Move out of struct
10756         dwarf2_per_objfile.
10757         (struct file_entry): Move out of struct line_header.
10758         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10759         typedef_field_list): Move out of struct field_info.
10760         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10761         Move out of struct dynamic_prop.
10762         (union type_owner, union field_location, struct field, struct
10763         range_bounds, union type_specific): Move out of struct main_type.
10764         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10765         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10766         (struct call_site_target, union call_site_parameter_u, struct
10767         call_site_parameter): Move out of struct call_site.
10768         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10769         m32c_prologue.
10770         (enum srcdest_kind): Move out of struct srcdest.
10771         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10772         * prologue-value.h (enum prologue_value_kind): Move out of struct
10773         prologue_value.
10774         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10775         gdbarch_tdep.
10776         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10777         out of struct field_info.
10778         * symfile.h (struct other_sections): Move out of struct
10779         section_addr_info.
10780         * symtab.c (struct symbol_cache_slot): Move out struct
10781         block_symbol_cache.
10782         * target-descriptions.c (enum tdesc_type_kind): Move out of
10783         typedef struct tdesc_type.
10784         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10785         struct tui_line_or_address.
10786         * value.c (enum internalvar_kind, union internalvar_data): Move
10787         out of struct internalvar.
10788         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10789         gdbarch_tdep.
10790
10791 2015-02-27  Tom Tromey  <tromey@redhat.com>
10792             Pedro Alves  <palves@redhat.com>
10793
10794         Rename symbols whose names are reserved C++ keywords throughout.
10795
10796 2015-02-27  Pedro Alves  <palves@redhat.com>
10797
10798         * Makefile.in (COMPILER): New, get it from autoconf.
10799         (COMPILE.pre, CC_LD): Use COMPILER.
10800         (CXX): Get from autoconf instead.
10801         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10802         * acinclude.m4: Include build-with-cxx.m4.
10803         * build-with-cxx.m4: New file.
10804         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10805         Disable -Werror by default if building in C++ mode.
10806         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10807         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10808         Run supported-warning-flags tests with the C++ compiler.
10809         Save/restore CXXFLAGS too.
10810         * configure: Regenerate.
10811
10812 2015-02-27  Pedro Alves  <palves@redhat.com>
10813
10814         * libiberty.m4: New file.
10815         * acinclude.m4: Include libiberty.m4.
10816         * configure.ac: Call libiberty_INIT.
10817         * config.in, configure: Regenerate.
10818
10819 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10820
10821         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10822         31-bit targets, but 64-bit targets as well.
10823         (s390_gnu_triplet_regexp): New function.
10824         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10825         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10826         method.
10827
10828 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10829
10830         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10831         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10832         from CONTEXT_DEBUGGER.
10833
10834 2015-02-26  Doug Evans  <dje@google.com>
10835
10836         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10837         CHECK_TYPEDEF.
10838         (set_type_vptr_fieldno): Ditto.
10839         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10840         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10841
10842 2015-02-26  Pedro Alves  <palves@redhat.com>
10843
10844         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10845         * complaints.c (vcomplaint): Pass argument FMT directly to
10846         printf-like functions instead of complaint->fmt.
10847         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10848         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10849         * compile/compile-loc2c.c (pushf, unary, binary): Add
10850         ATTRIBUTE_PRINTF.
10851         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10852         to pushf.
10853         (BINARY): Pass string literal as format string to 'binary'.
10854         * compile/compile-object-load.c (link_callbacks_einfo): Add
10855         ATTRIBUTE_PRINTF.
10856         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10857
10858 2015-02-26  Pedro Alves  <palves@redhat.com>
10859
10860         * windows-termcap.c: Rename to ...
10861         * stub-termcap.c: ... this.  Adjust header line.
10862         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10863         windows-termcap.c.
10864         * configure: Regenerate.
10865         * configure.ac: Refer to stub-termcap.o instead of
10866         windows-termcap.o.
10867         * gdb_curses.h: Mention stub-termcap.c instead of
10868         windows-termcap.c.
10869
10870 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10871
10872         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10873         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10874
10875 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10876
10877         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10878
10879 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10880
10881         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10882         bfd_canonicalize_symtab.
10883
10884 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10885
10886         * amd64fbsd-nat.c: Include sys/user.h.
10887         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10888         instead of KERN_PS_STRINGS to locate the signal trampoline.
10889         * i386fbsd-nat.c: Include sys/user.h.
10890         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10891         instead of KERN_PS_STRINGS to locate the signal trampoline.
10892         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10893         (amd64fbsd_sigtramp_p): New.
10894         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10895         longer set default values.
10896         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10897         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10898         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10899         (i386fbsd_freebsd4_sigtramp_start)
10900         (i386fbsd_freebsd4_sigtramp_middle)
10901         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10902         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10903         (i386fbsd_sigtramp_p): New.
10904         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10905         longer set default values.
10906         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10907
10908 2015-02-25  John Baldwin  <jhb@freebsd.org>
10909
10910         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10911         get_frame_register instead of frame_unwind_register_unsigned.
10912
10913 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10914
10915         PR build/18033
10916         * compile/compile-c-support.c (c_compute_program): Change // comment.
10917         * compile/compile-object-load.c (setup_sections): Change // comment.
10918
10919 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10920
10921         PR build/18033:
10922         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10923
10924 2015-02-23  Pedro Alves  <palves@redhat.com>
10925
10926         * remote.c (skip_to_semicolon): New function.
10927         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10928         special case the stop reasons that look like hex numbers
10929         upfront.  Instead handle real register numbers after matching
10930         all the known stop reasons.
10931
10932 2015-02-21  Doug Evans  <dje@google.com>
10933
10934         PR c++/17976, symtab/17821
10935         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10936         is_in_anonymous.  All callers updated.
10937         (find_symbol_in_baseclass): Ditto.
10938         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10939         for symbols in an anonymous namespace.
10940         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10941         DW_AT_name directly.
10942         (dwarf2_name): Convert missing namespace name to
10943         CP_ANONYMOUS_NAMESPACE_STR.
10944
10945 2015-02-20  Pedro Alves  <palves@redhat.com>
10946
10947         * linux-nat.c (linux_handle_extended_wait): Call
10948         thread_db_notice_clone whenever a new clone LWP is detected.
10949         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10950         functions.
10951         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10952         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10953         (linux_unstop_all_lwps): Declare.
10954         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10955         (thread_get_info_callback): Delete.
10956         (thread_from_lwp): Use td_thr_get_info and record_thread.
10957         (thread_db_attach_lwp): Delete.
10958         (thread_db_notice_clone): New function.
10959         (try_thread_db_load_1): If /proc is mounted and shows the
10960         process'es task list, walk over all LWPs and call thread_from_lwp
10961         instead of relying on td_ta_thr_iter.
10962         (attach_thread): Don't call check_thread_signals here.  Split the
10963         tail part of the function (which adds the thread to the core GDB
10964         thread list) to ...
10965         (record_thread): ... this function.  Call check_thread_signals
10966         here.
10967         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10968         call thread_from_lwp.
10969         (thread_db_update_thread_list): Rename to ...
10970         (thread_db_update_thread_list_org): ... this.
10971         (thread_db_update_thread_list): New function.
10972         (thread_db_find_thread_from_tid): Delete.
10973         (thread_db_get_ada_task_ptid): Simplify.
10974         * nat/linux-procfs.c: Include <sys/stat.h>.
10975         (linux_proc_task_list_dir_exists): New function.
10976         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10977
10978 2015-02-20  Pedro Alves  <palves@redhat.com>
10979
10980         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10981         main LWP.  Handle the case of waitpid returning 0 if we're already
10982         attached to the LWP.  Don't set the LWP's last_resume_kind to
10983         resume_stop if we already knew about the LWP.
10984         (linux_nat_filter_event): Add debug logs.
10985
10986 2015-02-20  Pedro Alves  <palves@redhat.com>
10987
10988         * target.h (forward_target_decr_pc_after_break): Delete
10989         declaration.
10990
10991 2015-02-20  Pedro Alves  <palves@redhat.com>
10992
10993         PR threads/18006
10994         * linux-thread-db.c (thread_get_info_callback): Return early if
10995         the thread's lwp id is -1.
10996
10997 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
10998
10999         GDB 7.9 released.
11000
11001 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11002
11003         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11004         (dtrace_get_probes) Change type of variable 'dof'.
11005
11006 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11007
11008         PR breakpoints/16812
11009         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11010         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11011         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11012
11013 2015-02-19  David Taylor  <dtaylor@emc.com>
11014
11015         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11016
11017 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11018
11019         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11020         function.
11021         (tui_putc): Don't call tui_handle_resize_during_io.
11022         (tui_getc): Likewise.
11023         (tui_mld_getc): Likewise.
11024         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11025         (tui_sigwinch_token): New static variable.
11026         (tui_initialize_win): Adjust documentation.  Set
11027         tui_sigwinch_token.
11028         (tui_async_resize_screen): New asynchronous callback.
11029         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11030         invoke tui_async_resize_screen.
11031
11032 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11033
11034         * configure: Regenerated.
11035         * configure.ac: Use GDB_AC_TRANSFORM.
11036         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11037         * acinclude.m4: sinclude transform.m4.
11038         * transform.m4: New file.
11039         (GDB_AC_TRANSFORM): New macro.
11040
11041 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11042
11043         * NEWS: Announce the support for DTrace SDT probes.
11044
11045 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11046
11047         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11048         (amd64_dtrace_parse_probe_argument): New function.
11049         (amd64_dtrace_probe_is_enabled): Likewise.
11050         (amd64_dtrace_enable_probe): Likewise.
11051         (amd64_dtrace_disable_probe): Likewise.
11052         (amd64_linux_init_abi): Register the
11053         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11054         `gdbarch_dtrace_disable_probe' and
11055         `gdbarch_dtrace_probe_is_enabled' hooks.
11056         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11057         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11058         (amd64_dtrace_enable_probe_sequence): Likewise.
11059         (amd64_dtrace_disable_probe_sequence): Likewise.
11060
11061 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11062
11063         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11064         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11065         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11066         handle ELF files.
11067         * Makefile.in (SFILES): dtrace-probe.c added.
11068         * configure: Regenerate.
11069         * dtrace-probe.c: New file.
11070         (SHT_SUNW_dof): New constant.
11071         (dtrace_probe_type): New enum.
11072         (dtrace_probe_arg): New struct.
11073         (dtrace_probe_arg_s): New typedef.
11074         (struct dtrace_probe_enabler): New struct.
11075         (dtrace_probe_enabler_s): New typedef.
11076         (dtrace_probe): New struct.
11077         (dtrace_probe_is_linespec): New function.
11078         (dtrace_dof_sect_type): New enum.
11079         (dtrace_dof_dofh_ident): Likewise.
11080         (dtrace_dof_encoding): Likewise.
11081         (DTRACE_DOF_ENCODE_LSB): Likewise.
11082         (DTRACE_DOF_ENCODE_MSB): Likewise.
11083         (dtrace_dof_hdr): New struct.
11084         (dtrace_dof_sect): Likewise.
11085         (dtrace_dof_provider): Likewise.
11086         (dtrace_dof_probe): Likewise.
11087         (DOF_UINT): New macro.
11088         (DTRACE_DOF_PTR): Likewise.
11089         (DTRACE_DOF_SECT): Likewise.
11090         (dtrace_process_dof_probe): New function.
11091         (dtrace_process_dof): Likewise.
11092         (dtrace_build_arg_exprs): Likewise.
11093         (dtrace_get_arg): Likewise.
11094         (dtrace_get_probes): Likewise.
11095         (dtrace_get_probe_argument_count): Likewise.
11096         (dtrace_can_evaluate_probe_arguments): Likewise.
11097         (dtrace_evaluate_probe_argument): Likewise.
11098         (dtrace_compile_to_ax): Likewise.
11099         (dtrace_probe_destroy): Likewise.
11100         (dtrace_gen_info_probes_table_header): Likewise.
11101         (dtrace_gen_info_probes_table_values): Likewise.
11102         (dtrace_probe_is_enabled): Likewise.
11103         (dtrace_probe_ops): New variable.
11104         (info_probes_dtrace_command): New function.
11105         (_initialize_dtrace_probe): Likewise.
11106         (dtrace_type_name): Likewise.
11107
11108 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11109
11110         * gdbarch.sh (dtrace_parse_probe_argument): New.
11111         (dtrace_probe_is_enabled): Likewise.
11112         (dtrace_enable_probe): Likewise.
11113         (dtrace_disable_probe): Likewise.
11114         * gdbarch.c: Regenerate.
11115         * gdbarch.h: Regenerate.
11116
11117 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11118
11119         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11120         stap_probe_ops for `enable_probe' and `disable_probe'.
11121         * probe.c (enable_probes_command): New function.
11122         (disable_probes_command): Likewise.
11123         (_initialize_probe): Define the cli commands `enable probe' and
11124         `disable probe'.
11125         (parse_probe_linespec): New function.
11126         (info_probes_for_ops): Use parse_probe_linespec.
11127         * probe.h (probe_ops): New hooks `enable_probe' and
11128         `disable_probe'.
11129
11130 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11131
11132         * probe.c (compute_probe_arg): Moved from stap-probe.c
11133         (compile_probe_arg): Likewise.
11134         (probe_funcs): Likewise.
11135         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11136         (compile_probe_arg): Likewise.
11137         (probe_funcs): Likewise.
11138
11139 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11140
11141         * probe.c (print_ui_out_not_applicables): New function.
11142         (exists_probe_with_pops): Likewise.
11143         (info_probes_for_ops): Do not include column headers for probe
11144         types for which no probe has been actually found on any object.
11145         Also invoke `print_ui_out_not_applicables' in order to match the
11146         column rows with the header when probes of several types are
11147         listed.
11148         Print the "Type" column.
11149         * probe.h (probe_ops): Added a new probe operation `type_name'.
11150         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11151         (stap_type_name): New function.
11152
11153 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11154
11155         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11156         (key_is_command_char): Delete.
11157
11158 2015-02-17  Pedro Alves  <palves@redhat.com>
11159
11160         * tui/tui.c (tui_enable): Resize windows before anything
11161         might show a window.
11162
11163 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11164
11165         PR gdb/17984
11166         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11167         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11168         call.
11169         * aarch64-tdep.h (tdesc_aarch64): Declare.
11170
11171 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11172
11173         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11174
11175 2015-02-13  Doug Evans  <dje@google.com>
11176
11177         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11178         anonymous_namespace to is_in_anonymous for consistency with the rest
11179         of the file.
11180         (cp_lookup_bare_symbol): Fix typo in comment.
11181         (cp_search_static_and_baseclasses): Ditto.
11182         (search_symbol_list): Use vertical space in comment better.
11183         (reset_directive_searched): Ditto. Fix typo.
11184         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11185
11186 2015-02-13  Yao Qi  <yao.qi@arm.com>
11187
11188         * MAINTAINERS: Update my email address.
11189
11190 2015-02-12  Doug Evans  <dje@google.com>
11191
11192         * symtab.c (completion_list_add_name): Fix memory leak.
11193
11194 2015-02-12  Doug Evans  <dje@google.com>
11195
11196         * completer.c (complete_line): Remove incorrect comment.
11197
11198 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11199
11200         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11201         (py_print_frame): Use RETURN_MASK_ERROR.
11202
11203 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11204
11205         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11206         function comment.  Wrap all function that can throw in cleanups.
11207         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11208         cleanups.
11209
11210 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11211
11212         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11213         Remove the error label.
11214
11215 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11216
11217         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11218         with goto first, indent the former else codepath left.  Put variable
11219         'elided' to a new inner block.
11220
11221 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11222
11223         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11224
11225 2015-02-11  Pedro Alves  <palves@redhat.com>
11226
11227         * xcoffread.c (within_function): Delete.
11228
11229 2015-02-11  Tom Tromey  <tromey@redhat.com>
11230             Pedro Alves <palves@redhat.com>
11231
11232         * breakpoint.c (base_breakpoint_ops): Delete.
11233         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11234         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11235         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11236         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11237         * python/py-arch.c (arch_object_type): Make extern.
11238         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11239         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11240         * python/py-cmd.c (cmdpy_object_type): Make extern.
11241         * python/py-continueevent.c (continue_event_object_type)
11242         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11243         parameter.  Update all callers.
11244         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11245         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11246         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11247         * python/py-function.c (fnpy_object_type): Make extern.
11248         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11249         * python/py-infevents.c (call_pre_event_object_type)
11250         (inferior_call_post_event_object_type).
11251         (memory_changed_event_object_type): Make extern.
11252         * python/py-infthread.c (thread_object_type): Make extern.
11253         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11254         * python/py-linetable.c (linetable_entry_object_type)
11255         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11256         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11257         (clear_objfiles_event_object_type): Make extern.
11258         * python/py-objfile.c (objfile_object_type): Make extern.
11259         * python/py-param.c (parmpy_object_type): Make extern.
11260         * python/py-progspace.c (pspace_object_type): Make extern.
11261         * python/py-signalevent.c (signal_event_object_type): Make extern.
11262         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11263         * python/py-type.c (type_object_type, field_object_type)
11264         (type_iterator_object_type): Make extern.
11265         * python/python.c (python_extension_script_ops)
11266         (python_extension_ops): Make extern.
11267         * stap-probe.c (stap_probe_ops): Make extern.
11268
11269 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11270
11271         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11272         because the event thread is not the current thread.
11273
11274 2015-02-11  Doug Evans  <xdje42@gmail.com>
11275
11276         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11277         been initialized yet, return NULL.
11278
11279 2015-02-11  Doug Evans  <dje@google.com>
11280
11281         * symfile.h (new_symfile_objfile): Delete.
11282         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11283         All callers updated.
11284
11285 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11286
11287         * tui/tui-io.c (tui_handle_resize_during_io): Call
11288         tui_update_gdb_sizes() after resizing the screen.
11289         * tui/tui.c (tui_enable): Resize the terminal before
11290         calling tui_update_gdb_sizes().
11291
11292 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11293
11294         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11295         line before printing a newline.
11296
11297 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11298
11299         * utils.c (producer_is_gcc): Return true or false.
11300
11301 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11302
11303         * utils.h (producer_is_gcc): Change return type to bool. Add major
11304         argument.
11305         * utils.c (producer_is_gcc): Likewise.
11306         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11307         * dwarf2read.c (check_producer): Likewise.
11308
11309 2015-02-10  Pedro Alves  <palves@redhat.com>
11310
11311         * infrun.c (displaced_step_fixup): Switch to the event thread
11312         before calling gdbarch_displaced_step_fixup.
11313
11314 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11315
11316         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11317
11318 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11319
11320         * ada-varobj.c (ada_name_of_child): Constify parent.
11321         (ada_path_expr_of_child): Same.
11322         (ada_value_of_child): Same.
11323         (ada_type_of_child): Same.
11324         * c-varobj.c (c_is_path_expr_parent): Same.
11325         (c_describe_child): Same.
11326         (c_name_of_child): Same.
11327         (c_value_of_child): Same.
11328         (c_type_of_child): Same.
11329         (cplus_number_of_children): Same.
11330         (cplus_describe_child): Constify var.
11331         (cplus_name_of_child): Constify parent.
11332         (cplus_value_of_child): Same.
11333         (cplus_type_of_child): Same.
11334         * jv-varobj.c (java_name_of_child): Same.
11335         (java_value_of_child): Same.
11336         (java_type_of_child): Same.
11337         * varobj.c (value_of_child): Same.
11338         (varobj_default_is_path_expr_parent): Constify var, parent and return
11339         value.
11340         (varobj_get_path_expr): Constify var, modify path_expr through
11341         mutable_var.
11342         (install_new_value): Constify parent.
11343         (value_of_child): Constify parent.
11344         * varobj.h (struct varobj): Constify parent.
11345         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11346         type_of_child.
11347         (varobj_get_path_expr): Constify var.
11348         (varobj_get_path_expr_parent): Constify var and return value.
11349
11350 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11351
11352         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11353         (arm_prologue_this_id): Move PC and SP limit checks to
11354         arm_prologue_unwind_stop_reason.
11355         (arm_prologue_unwind) <stop_reason> : Set to
11356         arm_prologue_unwind_stop_reason.
11357
11358 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11359
11360         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11361         DW_LANG_Fortran08 as language_fortran.
11362
11363 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11364
11365         PR remote/17946
11366         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11367         of pointer against char.
11368
11369 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11370
11371         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11372         (c_type_print_modifier): Likewise.
11373         * dwarf2read.c (read_tag_atomic_type): New function.
11374         (read_type_die_1): Handle DW_TAG_atomic_type.
11375         * gdbtypes.c (make_atomic_type): New function.
11376         (recursive_dump_type): Handle TYPE_ATOMIC.
11377         * gdbtypes.h (enum type_flag_values): Renumber.
11378         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11379         (TYPE_ATOMIC): New macro.
11380         (make_atomic_type): Declare.
11381
11382 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11383
11384         * btrace.c (ftrace_find_call): Skip gaps.
11385         (ftrace_new_function): Initialize level.
11386         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11387         (ftrace_new_switch): Update
11388         level computation.
11389         (ftrace_new_gap): New.
11390         (ftrace_update_function): Create new function after gap.
11391         (btrace_compute_ftrace_bts): Create gap on error.
11392         (btrace_stitch_bts): Update parameters.  Clear trace if it
11393         becomes empty.
11394         (btrace_stitch_trace): Update parameters.  Update callers.
11395         (btrace_clear): Reset the number of gaps.
11396         (btrace_insn_get): Return NULL if the iterator points to a gap.
11397         (btrace_insn_number): Return zero if the iterator points to a gap.
11398         (btrace_insn_end): Allow gaps at the end.
11399         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11400         (btrace_find_insn_by_number): Assert that the found iterator does
11401         not point to a gap.
11402         (btrace_call_next, btrace_call_prev): Assert that the last function
11403         is not a gap.
11404         * btrace.h (btrace_bts_error): New.
11405         (btrace_function): Update comment.
11406         (btrace_function) <insn, insn_offset, number>: Update comment.
11407         (btrace_function) <errcode>: New.
11408         (btrace_thread_info) <ngaps>: New.
11409         (btrace_thread_info) <replay>: Update comment.
11410         (btrace_insn_get): Update comment.
11411         * record-btrace.c (btrace_ui_out_decode_error): New.
11412         (record_btrace_info): Print number of gaps.
11413         (btrace_insn_history, btrace_call_history): Call
11414         btrace_ui_out_decode_error for gaps.
11415         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11416
11417 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11418
11419         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11420         * nat/linux-btrace.c: (btrace_this_cpu): New.
11421         (cpu_supports_bts): Call btrace_this_cpu.
11422         (intel_supports_bts): Add cpu parameter.
11423
11424 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11425
11426         * btrace.h (btrace_insn_class): New.
11427         (btrace_insn) <size, iclass>: New.
11428         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11429         Use instruction classification.
11430         (ftrace_new_return): Update parameters.  Update users.
11431         (ftrace_update_function): Update parameters.  Update users.  Use
11432         instruction classification.
11433         (ftrace_update_insns): Update parameters.  Update users.
11434         (ftrace_classify_insn): New.
11435         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11436         TRY_CATCH around call to gdb_insn_length.
11437
11438 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11439
11440         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11441         Update parameters.  Update users.
11442
11443 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11444
11445         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11446         (btrace_conf_bts_attributes): New.
11447         (btrace_conf_children): Add attributes.
11448         * common/btrace-common.h (btrace_config_bts): New.
11449         (btrace_config)<bts>: New.
11450         (btrace_config): Update comment.
11451         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11452         Use config.
11453         * features/btrace-conf.dtd: Increment version.  Add size
11454         attribute to bts element.
11455         * record-btrace.c (set_record_btrace_bts_cmdlist,
11456         show_record_btrace_bts_cmdlist): New.
11457         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11458         record_btrace_print_conf, cmd_set_record_btrace_bts,
11459         cmd_show_record_btrace_bts): New.
11460         (record_btrace_info): Call record_btrace_print_conf.
11461         (_initialize_record_btrace): Add commands.
11462         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11463         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11464         (btrace_sync_conf): Synchronize bts size.
11465         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11466         * NEWS: Announce new commands and new packets.
11467
11468 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11469
11470         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11471         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11472         (x86_linux_btrace_conf): New.
11473         (x86_linux_create_target): Initialize to_btrace_conf.
11474         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11475         Check format.  Split into this and ...
11476         (linux_enable_bts): ... this.
11477         (linux_btrace_conf): New.
11478         (perf_event_skip_record): Renamed into ...
11479         (perf_event_skip_bts_record): ... this.  Updated users.
11480         (linux_disable_btrace): Split into this and ...
11481         (linux_disable_bts): ... this.
11482         (linux_read_btrace): Check format.
11483         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11484         (linux_btrace_conf): New.
11485         (btrace_target_info)<ptid>: Moved.
11486         (btrace_target_info)<conf>: New.
11487         (btrace_target_info): Split into this and ...
11488         (btrace_tinfo_bts): ... this.  Updated users.
11489         * btrace.c (btrace_enable): Update parameters.
11490         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11491         (btrace_conf_children, btrace_conf_attributes)
11492         (btrace_conf_elements): New.
11493         * btrace.h (btrace_enable): Update parameters.
11494         (btrace_conf, parse_xml_btrace_conf): New.
11495         * common/btrace-common.h (btrace_config): New.
11496         * feature/btrace-conf.dtd: New.
11497         * record-btrace.c (record_btrace_conf): New.
11498         (record_btrace_cmdlist): New.
11499         (record_btrace_enable_warn, record_btrace_open): Pass
11500         &record_btrace_conf.
11501         (record_btrace_info): Print recording format.
11502         (cmd_record_btrace_bts_start): New.
11503         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11504         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11505         Add "record bts" alias command.
11506         * remote.c (remote_state)<btrace_config>: New.
11507         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11508         (remote_protocol_features): Add qXfer:btrace-conf:read.
11509         (remote_open_1): Call remote_btrace_reset.
11510         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11511         (btrace_target_info)<conf>: New.
11512         (btrace_sync_conf, btrace_read_config): New.
11513         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11514         btrace_read_conf.
11515         (remote_btrace_conf): New.
11516         (init_remote_ops): Initialize to_btrace_conf.
11517         (_initialize_remote): Add qXfer:btrace-conf packet.
11518         * target.c (target_enable_btrace): Update parameters.
11519         (target_btrace_conf): New.
11520         * target.h (target_enable_btrace): Update parameters.
11521         (target_btrace_conf): New.
11522         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11523         (target_ops)<to_enable_btrace>: Update parameters and comment.
11524         (target_ops)<to_btrace_conf>: New.
11525         * target-delegates: Regenerate.
11526         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11527         (target_debug_print_const_struct_btrace_target_info_p): New.
11528         * NEWS: Announce new command and new packet.
11529
11530 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11531
11532         * nat/linux-btrace.h (perf_event_buffer): New.
11533         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11534         <bts>: ... this.
11535         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11536         (perf_event_buffer_size, perf_event_buffer_begin)
11537         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11538         Updated users.
11539         (perf_event_new_data): New.
11540
11541 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11542
11543         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11544         * record-btrace.c (record_btrace_open): Remove call to
11545         target_supports_btrace.
11546         * remote.c (remote_supports_btrace): Update parameters.
11547         * target.c (target_supports_btrace): Update parameters.
11548         * target.h (to_supports_btrace, target_supports_btrace): Update
11549         parameters.
11550         * target-delegates.c: Regenerate.
11551         * target-debug.h (target_debug_print_enum_btrace_format): New.
11552         * nat/linux-btrace.c
11553         (kernel_supports_btrace): Rename into ...
11554         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11555         (intel_supports_btrace): Rename into ...
11556         (intel_supports_bts): ... this.  Update users.
11557         (cpu_supports_btrace): Rename into ...
11558         (cpu_supports_bts): ... this.  Update users.
11559         (linux_supports_btrace): Update parameters.  Split into this and ...
11560         (linux_supports_bts): ... this.
11561         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11562
11563 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11564
11565         * Makefile.in (SFILES): Add common/btrace-common.c.
11566         (COMMON_OBS): Add common/btrace-common.o.
11567         (btrace-common.o): Add build rules.
11568         * btrace.c (parse_xml_btrace): Update parameters.
11569         (parse_xml_btrace_block): Set format field.
11570         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11571         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11572         (btrace_compute_ftrace): Split into this and...
11573         (btrace_compute_ftrace_bts): ...this.
11574         (btrace_stitch_trace): Split into this and...
11575         (btrace_stitch_bts): ...this.
11576         * btrace.h (parse_xml_btrace): Update parameters.
11577         (make_cleanup_btrace_data): New.
11578         * common/btrace-common.c: New.
11579         * common/btrace-common.h: Include common-defs.h.
11580         (btrace_block_s): Update comment.
11581         (btrace_format): New.
11582         (btrace_format_string): New.
11583         (btrace_data_bts): New.
11584         (btrace_data): New.
11585         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11586         * remote.c (remote_read_btrace): Update parameters.
11587         * target.c (target_read_btrace): Update parameters.
11588         * target.h (target_read_btrace): Update parameters.
11589         (target_ops)<to_read_btrace>: Update parameters.
11590         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11591         * target-delegates.c: Regenerate.
11592         * target-debug (target_debug_print_struct_btrace_data_p): New.
11593         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11594         (linux_read_bts): ...this.
11595         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11596
11597 2015-02-06  Doug Evans  <dje@google.com>
11598
11599         * remote-m32r-sdi.c: Include symfile.h.
11600
11601 2015-02-06  Doug Evans  <dje@google.com>
11602
11603         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11604         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11605         to here.
11606
11607 2015-02-06  Pedro Alves  <palves@redhat.com>
11608
11609         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11610
11611 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11612
11613         PR gdb/15678
11614         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11615         (enable_count_command): Check args for NULL value.
11616
11617 2015-02-05  Doug Evans  <xdje42@gmail.com>
11618
11619         * guile/scm-frame.c: Fix spelling errors in a comment.
11620
11621 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11622
11623         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11624         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11625         return type.
11626
11627 2015-02-04  Pedro Alves  <palves@redhat.com>
11628
11629         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11630         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11631         returns true.
11632         (resume_stopped_resumed_lwps): Don't check whether the thread is
11633         marked as executing.
11634         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11635
11636 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11637
11638         * regset.h (struct regset): Add flags field.
11639         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11640         * corelow.c (get_core_register_section): Add warning if the size
11641         exceeds the requested size and the regset does not have the
11642         REGSET_VARIABLE_SIZE flag set.
11643         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11644         flag.
11645         * armbsd-tdep.c (armbsd_gregset): Likewise.
11646         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11647         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11648         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11649         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11650
11651 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11652
11653         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11654         For ".reg-xstate", explicitly specify the requested section size
11655         via X86_XSTATE_SIZE instead of just 0 on input and
11656         X86_XSTATE_MAX_SIZE on output.
11657         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11658         Likewise.
11659
11660 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11661
11662         PR corefiles/17808:
11663         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11664         function type, particularly its SIZE parameter.
11665         * gdbarch.h: Regenerate.
11666         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11667         actual against required size using ">=" instead of "==".
11668         (amd64_collect_fpregset): Likewise.
11669         * i386-tdep.c (i386_supply_gregset): Likewise.
11670         (i386_collect_gregset): Likewise.
11671         (i386_supply_fpregset): Likewise.
11672         (i386_collect_fpregset): Likewise.
11673         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11674         (mips_fill_gregset_wrapper): Likewise.
11675         (mips_supply_fpregset_wrapper): Likewise.
11676         (mips_fill_fpregset_wrapper): Likewise.
11677         (mips64_supply_gregset_wrapper): Likewise.
11678         (mips64_fill_gregset_wrapper): Likewise.
11679         (mips64_supply_fpregset_wrapper): Likewise.
11680         (mips64_fill_fpregset_wrapper): Likewise.
11681         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11682         (am33_supply_fpregset_method): Likewise.
11683         (am33_collect_gregset_method): Likewise.
11684         (am33_collect_fpregset_method): Likewise.
11685
11686 2015-02-04  Doug Evans  <dje@google.com>
11687             Pedro Alves  <palves@redhat.com>
11688             Eli Zaretskii  <eliz@gnu.org>
11689
11690         PR tui/17810
11691         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11692         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11693         * tui/tui-file.c: #include tui/tui-command.h.
11694         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11695         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11696         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11697
11698 2015-02-04  Pedro Alves  <palves@redhat.com>
11699
11700         Fix build breakage.
11701         * event-loop.c (gdb_do_one_event): Add default switch case.
11702
11703 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11704
11705         Filter out inferior gcc option -fpreprocessed.
11706         * compile/compile.c (filter_args): New function.
11707         (get_args): Use it.
11708
11709 2015-02-03  Pedro Alves  <palves@redhat.com>
11710
11711         * event-loop.c: Don't declare nor define a queue type for
11712         gdb_event_p.
11713         (event_queue): Delete.
11714         (create_event, create_file_event, gdb_event_xfree)
11715         (initialize_event_loop, process_event): Delete.
11716         (gdb_do_one_event): Return as soon as one event is handled.
11717         (handle_file_event): Change prototype.  Used the passed in
11718         file_handler pointer and ready_mask instead of looping over all
11719         file handlers.
11720         (gdb_wait_for_event): Update the poll/select timeouts before
11721         blocking.  Run event handlers directly instead of queueing events.
11722         Return as soon as one event is handled.
11723         (struct async_event_handler_data): Delete.
11724         (invoke_async_event_handler): Delete.
11725         (check_async_event_handlers): Change return type to int.  Run
11726         event handlers directly instead of queueing events.  Return as
11727         soon as one event is handled.
11728         (handle_timer_event): Delete.
11729         (update_wait_timeout): New function, factored out from
11730         poll_timers.
11731         (poll_timers): Reimplement.
11732         * event-loop.h (initialize_event_loop): Delete declaration.
11733         * top.c (gdb_init): Don't call initialize_event_loop.
11734
11735 2015-02-03  Pedro Alves  <palves@redhat.com>
11736
11737         * event-loop.c (clear_async_event_handler): New function.
11738         * event-loop.h (clear_async_event_handler): New declaration.
11739         * record-btrace.c (record_btrace_async): New function.
11740         (init_record_btrace_ops): Install record_btrace_async.
11741         * record-full.c (record_full_async): New function.
11742         (record_full_resume): Don't mark the async event source here.
11743         (init_record_full_ops): Install record_full_async.
11744         (record_full_core_resume): Don't mark the async event source here.
11745         (init_record_full_core_ops): Install record_full_async.
11746         * remote.c (remote_async): Mark and clear the async stop reply
11747         queue event-loop token as appropriate.
11748
11749 2015-02-03  Pedro Alves  <palves@redhat.com>
11750
11751         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11752         target_is_async_p instead of target_can_async.
11753         (linux_nat_wait): Use target_is_async_p instead of
11754         target_can_async.  Don't enable async here.
11755         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11756         target_is_async_p instead of target_can_async.
11757
11758 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11759
11760         * varobj.h (lang_varobj_ops): Mention which return values need
11761         to be freed.
11762
11763 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11764
11765         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11766
11767 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11768
11769         PR gdb/17856:
11770         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11771         results found in the cache.
11772
11773 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11774
11775         PR gdb/17854:
11776         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11777         when allocating a new one.
11778
11779 2015-02-01  Tom Tromey  <tom@tromey.com>
11780
11781         * MAINTAINERS: Remove myself.
11782
11783 2015-01-31  Doug Evans  <xdje42@gmail.com>
11784
11785         * dwarf2read.c (process_structure_scope): Update setting of
11786         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11787         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11788         (set_type_vptr_fieldno): New function.
11789         (internal_type_vptr_basetype): New function.
11790         (set_type_vptr_basetype): New function.
11791         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11792         TYPE_VPTR_BASETYPE.
11793         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11794         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11795         (print_cplus_stuff): ... moved here.
11796         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11797         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11798         moved to ...
11799         (struct cplus_struct_type): ... here.  All uses updated.
11800         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11801         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11802         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11803         * stabsread.c (read_tilde_fields): Update setting of
11804         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11805
11806 2015-01-31  Doug Evans  <xdje42@gmail.com>
11807
11808         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11809         to self_p.
11810         (cp_print_class_member): Rename local domain to self_type.
11811         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11812         domain_type to self_type.
11813         (set_die_type) <need_gnat_info>: Handle
11814         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11815         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11816         TYPE_SPECIFIC_SELF_TYPE.
11817         * gdbtypes.c (internal_type_self_type): New function.
11818         (set_type_self_type): New function.
11819         (smash_to_memberptr_type): Rename parameter domain to self_type.
11820         Update setting of TYPE_SELF_TYPE.
11821         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11822         (smash_to_method_type): Rename parameter domain to self_type.
11823         Update setting of TYPE_SELF_TYPE.
11824         (check_stub_method): Call smash_to_method_type.
11825         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11826         (copy_type_recursive): Ditto.
11827         * gdbtypes.h (enum type_specific_kind): New value
11828         TYPE_SPECIFIC_SELF_TYPE.
11829         (struct main_type) <type_specific>: New member self_type.
11830         (struct cplus_struct_type) <fn_field.type>: Update comment.
11831         (TYPE_SELF_TYPE): Rewrite.
11832         (internal_type_self_type, set_type_self_type): Declare.
11833         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11834         self_type.
11835         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11836         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11837         TYPE_TARGET_TYPE.
11838         * stabsread.c (read_member_functions): Mark methods with
11839         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11840         TYPE_SELF_TYPE.
11841
11842 2015-01-31  Doug Evans  <xdje42@gmail.com>
11843
11844         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11845         All uses updated.
11846
11847 2015-01-31  Doug Evans  <xdje42@gmail.com>
11848
11849         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11850         or unions.  Return zero if union.
11851         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11852         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11853         gnuv3_get_vtable.
11854         (compute_vtable_size): Assert only passed structs.
11855         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11856
11857 2015-01-31  Doug Evans  <xdje42@gmail.com>
11858
11859         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11860         kinds.
11861
11862 2015-01-31  Gary Benson <gbenson@redhat.com>
11863             Doug Evans  <dje@google.com>
11864
11865         PR cli/9007
11866         PR cli/11920
11867         PR cli/15548
11868         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11869         reached.
11870         * common/common-exceptions.h (enum errors)
11871         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11872         * completer.h (get_max_completions_reached_message): New declaration.
11873         (max_completions): Likewise.
11874         (completion_tracker_t): New typedef.
11875         (new_completion_tracker): New declaration.
11876         (make_cleanup_free_completion_tracker): Likewise.
11877         (maybe_add_completion_enum): New enum.
11878         (maybe_add_completion): New declaration.
11879         (throw_max_completions_reached_error): Likewise.
11880         * completer.c (max_completions): New global variable.
11881         (new_completion_tracker): New function.
11882         (free_completion_tracker): Likewise.
11883         (make_cleanup_free_completion_tracker): Likewise.
11884         (maybe_add_completions): Likewise.
11885         (throw_max_completions_reached_error): Likewise.
11886         (complete_line): Remove duplicates and limit result to max_completions
11887         entries.
11888         (get_max_completions_reached_message): New function.
11889         (gdb_display_match_list): Handle max_completions.
11890         (_initialize_completer): New declaration and function.
11891         * symtab.c: Include completer.h.
11892         (completion_tracker): New static variable.
11893         (completion_list_add_name): Call maybe_add_completion.
11894         (default_make_symbol_completion_list_break_on_1): Renamed from
11895         default_make_symbol_completion_list_break_on.  Maintain
11896         completion_tracker across calls to completion_list_add_name.
11897         (default_make_symbol_completion_list_break_on): New function.
11898         * top.c (init_main): Set rl_completion_display_matches_hook.
11899         * tui/tui-io.c: Include completer.h.
11900         (tui_old_rl_display_matches_hook): New static global.
11901         (tui_rl_display_match_list): Notify user if max-completions reached.
11902         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11903         * NEWS (New Options): Mention set/show max-completions.
11904
11905 2015-01-31  Gary Benson  <gbenson@redhat.com>
11906
11907         * symtab.c (struct add_name_data) <code>: New field.
11908         Updated comments.
11909         (add_symtab_completions): New function.
11910         (symtab_expansion_callback): Likewise.
11911         (default_make_symbol_completion_list_break_on): Set datum.code.
11912         Move minimal symbol scan before calling expand_symtabs_matching.
11913         Scan known primary symtabs for externs and statics before calling
11914         expand_symtabs_matching.  Pass symtab_expansion_callback as
11915         expansion_notify argument to expand_symtabs_matching.  Do not scan
11916         primary symtabs for externs and statics after calling
11917         expand_symtabs_matching.
11918
11919 2015-01-31  Gary Benson  <gbenson@redhat.com>
11920
11921         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11922         (struct quick_symbol_functions) <expand_symtabs_matching>:
11923         New argument expansion_notify.  All uses updated.
11924         (expand_symtabs_matching): New argument expansion_notify.
11925         All uses updated.
11926         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11927         Also print expansion notify.
11928         * symtab.c (expand_symtabs_matching_via_partial): Call
11929         expansion_notify whenever a partial symbol table is expanded.
11930         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11931         expansion_notify whenever a symbol table is instantiated.
11932
11933 2015-01-31  Doug Evans  <xdje42@gmail.com>
11934
11935         * cli-out.c: #include completer.h, readline/readline.h.
11936         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11937         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11938         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11939         * cli-out.h (cli_display_match_list): Declare.
11940         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11941         (ELLIPSIS_LEN): Ditto.
11942         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11943         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11944         (gdb_fnprint, gdb_print_filename): Ditto.
11945         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11946         (gdb_display_match_list): Ditto.
11947         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11948         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11949         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11950         (match_list_displayer): New struct.
11951         (gdb_display_match_list): Declare.
11952         * top.c (init_main): Set rl_completion_display_matches_hook.
11953         * tui/tui-io.c: #include completer.h.
11954         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11955         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11956         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11957         (tui_mld_getc, tui_mld_read_key): Ditto.
11958         (tui_rl_display_match_list): Rewrite.
11959         (tui_handle_resize_during_io): New arg for_completion.  All callers
11960         updated.
11961
11962 2015-01-31  Doug Evans  <xdje42@gmail.com>
11963
11964         Add symbol lookup cache.
11965         * NEWS: Document new options and commands.
11966         * symtab.c (symbol_cache_key): New static global.
11967         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11968         (SYMBOL_LOOKUP_FAILED): New macro.
11969         (symbol_cache_slot_state): New enum.
11970         (block_symbol_cache): New struct.
11971         (symbol_cache): New struct.
11972         (new_symbol_cache_size, symbol_cache_size): New static globals.
11973         (hash_symbol_entry, eq_symbol_entry): New functions.
11974         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11975         (make_symbol_cache, free_symbol_cache): New functions.
11976         (get_symbol_cache, symbol_cache_cleanup): New function.
11977         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11978         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11979         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11980         (symbol_cache_flush, symbol_cache_dump): New functions.
11981         (maintenance_print_symbol_cache): New function.
11982         (maintenance_flush_symbol_cache): New function.
11983         (symbol_cache_stats): New function.
11984         (maintenance_print_symbol_cache_statistics): New function.
11985         (symtab_new_objfile_observer): New function.
11986         (symtab_free_objfile_observer): New function.
11987         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11988         (_initialize_symtab): Init symbol_cache_key.  New parameter
11989         maint symbol-cache-size.  New maint commands print symbol-cache,
11990         print symbol-cache-statistics, flush-symbol-cache.
11991         Install new_objfile, free_objfile observers.
11992
11993 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
11994
11995         PR symtab/17855
11996         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11997         to end.
11998
11999 2015-01-31  Doug Evans  <xdje42@gmail.com>
12000
12001         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12002         * auto-load.c: #include ctype.h.
12003         (struct auto_load_pspace_info): Replace member loaded_scripts with
12004         new members loaded_script_files, loaded_script_texts.
12005         (auto_load_pspace_data_cleanup): Update.
12006         (init_loaded_scripts_info): Update.
12007         (get_auto_load_pspace_data_for_loading): Update.
12008         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12009         updated.
12010         (maybe_add_script_text): New function.
12011         (clear_section_scripts): Update.
12012         (source_script_file, execute_script_contents): New functions.
12013         (source_section_scripts): Add support for
12014         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12015         (print_scripts): New function.
12016         (auto_load_info_scripts): Also print inlined scripts.
12017         (maybe_print_unsupported_script_warning): Renamed from
12018         unsupported_script_warning_print.  All callers updated.
12019         (maybe_print_script_not_found_warning): Renamed from
12020         script_not_found_warning_print.  All callers updated.
12021         * extension-priv.h (struct extension_language_script_ops): New member
12022         objfile_script_executor.
12023         * extension.c (ext_lang_objfile_script_executor): New function.
12024         * extension.h (objfile_script_executor_func): New typedef.
12025         (ext_lang_objfile_script_executor): Declare.
12026         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12027         * guile/guile.c (guile_extension_script_ops): Update.
12028         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12029         * python/python.c (python_extension_script_ops): Update.
12030         (gdbpy_execute_objfile_script): New function.
12031
12032 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12033
12034         * tui/tui-io.c (tui_expand_tabs): New function.
12035         (tui_puts, tui_redisplay_readline): Expand TABs into the
12036         appropriate number of spaces.
12037         * tui/tui-regs.c: Include tui-io.h.
12038         (tui_register_format): Call tui_expand_tabs to expand TABs into
12039         the appropriate number of spaces.
12040         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12041
12042 2015-01-30  Doug Evans  <dje@google.com>
12043
12044         * NEWS: "info source" command now display producer string if present.
12045         * source.c (source_info): Print producer string if present.
12046
12047 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12048
12049         * varobj.c (varobj_delete): Fix comment.
12050
12051 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12052
12053         * varobj.c (create_child): Modify comment.
12054
12055 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12056
12057         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12058         parameter.
12059         (ada_name_of_variable): Same.
12060         (ada_path_expr_of_child): Same.
12061         (ada_value_of_variable): Same.
12062         (ada_value_is_changeable_p): Same.
12063         (ada_value_has_mutated): Same.
12064         * c-varobj.c (varobj_is_anonymous_child): Same.
12065         (c_is_path_expr_parent): Same.
12066         (c_number_of_children): Same.
12067         (c_name_of_variable): Same.
12068         (c_path_expr_of_child): Same.
12069         (get_type): Same.
12070         (c_value_of_variable): Same.
12071         (cplus_number_of_children): Same.
12072         (cplus_name_of_variable): Same.
12073         (cplus_path_expr_of_child): Same.
12074         (cplus_value_of_variable): Same.
12075         * jv-varobj.c (java_number_of_children): Same.
12076         (java_name_of_variable): Same.
12077         (java_path_expr_of_child): Same.
12078         (java_value_of_variable): Same.
12079         * varobj.c (number_of_children): Same.
12080         (name_of_variable): Same.
12081         (is_root_p): Same.
12082         (varobj_ensure_python_env): Same.
12083         (varobj_get_objname): Same.
12084         (varobj_get_expression): Same.
12085         (varobj_get_display_format): Same.
12086         (varobj_get_display_hint): Same.
12087         (varobj_has_more): Same.
12088         (varobj_get_thread_id): Same.
12089         (varobj_get_frozen): Same.
12090         (dynamic_varobj_has_child_method): Same.
12091         (varobj_get_gdb_type): Same.
12092         (is_path_expr_parent): Same.
12093         (varobj_default_is_path_expr_parent): Same.
12094         (varobj_get_language): Same.
12095         (varobj_get_attributes): Same.
12096         (varobj_is_dynamic_p): Same.
12097         (varobj_get_child_range): Same.
12098         (varobj_value_has_mutated): Same.
12099         (varobj_get_value_type): Same.
12100         (number_of_children): Same.
12101         (name_of_variable): Same.
12102         (check_scope): Same.
12103         (varobj_editable_p): Same.
12104         (varobj_value_is_changeable_p): Same.
12105         (varobj_floating_p): Same.
12106         (varobj_default_value_is_changeable_p): Same.
12107
12108 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12109
12110         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12111         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12112         child->path_expr.
12113         (cplus_path_expr_of_child): Same.
12114
12115 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12116
12117         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12118         result.
12119         (mi_cmd_var_info_expression): Same.
12120         * varobj.c (varobj_get_expression): Mention in the comment that
12121         the result must by freed by the caller.
12122
12123 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12124
12125         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12126         varobj_get_type.
12127         (varobj_update_one): Same.
12128         * varobj.c (update_type_if_necessary): Free curr_type_str and
12129         new_type_str.
12130         (varobj_get_type): Specify in comment that the result needs to be
12131         freed by the caller.
12132
12133 2015-01-29  Doug Evans  <dje@google.com>
12134
12135         PR symtab/17890
12136         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12137
12138 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12139
12140         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12141         * utils.c (producer_is_gcc_ge_4): Likewise.
12142         (producer_is_gcc): New function.
12143         * utils.h (producer_is_gcc): New declaration.
12144
12145 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12146
12147         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12148         kind.
12149         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12150         parameter by "addr_stack" parameter.
12151         (resolve_dynamic_range): Replace "addr" parameter by
12152         "stack_addr" parameter.  Update function documentation.
12153         Update code accordingly.
12154         (resolve_dynamic_array, resolve_dynamic_union)
12155         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12156         (resolve_dynamic_type): Update code, following the changes made
12157         to resolve_dynamic_type_internal's interface.
12158         * dwarf2loc.h (struct property_addr_info): New.
12159         (dwarf2_evaluate_property): Replace "address" parameter
12160         by "addr_stack" parameter.  Adjust function documentation.
12161         (struct dwarf2_offset_baton): New.
12162         (struct dwarf2_property_baton): Update documentation of
12163         field "referenced_type" to be more general. New field
12164         "offset_info" in union data field.
12165         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12166         parameter by "addr_stack" parameter.  Adjust code accordingly.
12167         Add support for PROP_ADDR_OFFSET properties.
12168         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12169         DW_AT_data_member_location attributes as well.  Use case
12170         statements instead of if/else condition.
12171
12172 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12173
12174         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12175         Return zero if PARENT_VALUE is NULL and parent_type's
12176         range type is dynamic.
12177
12178 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12179
12180         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12181         nonzero if the type's subtype is dynamic.
12182         (resolve_dynamic_range): Also resolve the range's subtype.
12183
12184 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12185
12186         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12187         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12188
12189 2015-01-27  Doug Evans  <dje@google.com>
12190
12191         * NEWS: Mention gdb.Objfile.username.
12192         * python/py-objfile.c (objfpy_get_username): New function.
12193         (objfile_getset): Add "username".
12194
12195 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12196
12197         * stack.c (return_command): Markup warning message with _.
12198
12199 2015-01-24  Doug Evans  <xdje42@gmail.com>
12200
12201         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12202
12203 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12204
12205         Fix 100x slowdown regression on DWZ files.
12206         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12207         (struct line_header): Add offset and offset_in_dwz.
12208         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12209         (free_line_header_voidp): New declaration.
12210         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12211         functions.
12212         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12213         (handle_DW_AT_stmt_list): Use line_header_hash.
12214         (free_line_header_voidp): New function.
12215         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12216         (dwarf_decode_lines): New parameter decode_mapping, use it.
12217         (dwarf2_free_objfile): Free line_header_hash.
12218
12219 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12220
12221         PR gdb/17416
12222         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12223         value_ind.
12224
12225 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12226
12227         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12228         DW_AT_noreturn.
12229         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12230         calling_convention an 8 bit bit field.
12231         (TYPE_NO_RETURN): New macro.
12232         * infcmd.c (finish_command): Query if function does not return
12233         normally.
12234         * stack.c (return_command): Likewise.
12235
12236 2015-01-23  Pedro Alves  <palves@redhat.com>
12237
12238         * linux-nat.c (linux_is_async_p): New macro.
12239         (linux_nat_is_async_p):
12240         (linux_nat_terminal_inferior): Check whether the target can async
12241         instead of whether it is already async.
12242         (linux_nat_terminal_ours): Don't check whether the target is
12243         async.
12244         (linux_async_pipe): Use linux_is_async_p.
12245
12246 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12247
12248         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12249         '-ascending'.
12250         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12251         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12252         Sort tp_array using tp_array_compar.
12253         (_initialize_thread): Extend thread_apply_all_command help.
12254
12255 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12256
12257         * corelow.c (core_open): Call also thread_command.
12258         * gdbthread.h (thread_command): New prototype moved from ...
12259         * thread.c (thread_command): ... here.
12260         (thread_command): Make it global.
12261
12262 2015-01-22  Pedro Alves  <palves@redhat.com>
12263
12264         * configure.ac [*mingw32*]: Check $curses_found instead of
12265         $prefer_curses.
12266         * configure: Regenerate.
12267         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12268         HAVE_NCURSES_NCURSES_H checks.
12269
12270 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12271
12272         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12273         fails with the 1st arg NULL, try again with "unknown".  Don't test
12274         the "cup" capability: it isn't supported by the Windows port of
12275         ncurses, but the Windows console driver is still capable of
12276         supporting TUI.
12277
12278 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12279
12280         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12281
12282 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12283
12284         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12285         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12286         reason that "make TAGS" is broken.
12287
12288 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12289
12290         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12291         and check additional store instructions.
12292
12293 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12294
12295         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12296
12297 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12298
12299         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12300         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12301         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12302         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12303         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12304         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12305         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12306         ppc_process_record_op19, ppc_process_record_op31,
12307         ppc_process_record_op59, ppc_process_record_op60,
12308         ppc_process_record_op63): Likewise.
12309
12310 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12311
12312         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12313         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12314         strerror.
12315
12316 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12317
12318         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12319         ppc_process_record_op31, ppc_process_record_op59,
12320         ppc_process_record_op60, ppc_process_record_op63,
12321         ppc_process_record): Fix -Wformat warning.
12322         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12323         Remove unused variables.
12324
12325 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12326
12327         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12328
12329 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12330
12331         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12332         CONFIG_OBS if not building with a curses library.
12333         * configure: Regenerate.
12334
12335         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12336         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12337         HAVE_NCURSES_NCURSES_H is defined.
12338
12339 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12340
12341         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12342         from end of line to start of next line.
12343
12344 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12345
12346         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12347         Scan PLT stub backward for reverse debugging.
12348         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12349
12350 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12351             Ulrich Weigand  <uweigand@de.ibm.com>
12352
12353         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12354         gdb_target_obs.
12355         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12356         record.
12357         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12358         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12359         (ppc_linux_init_abi): Set process_record, process_record_signal.
12360         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12361         ppc_linux_record_tdep to gdbarch_tdep.
12362         (ppc_process_record): New declaration.
12363         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12364         ppc_process_record_op19, ppc_process_record_op31,
12365         ppc_process_record_op59, ppc_process_record_op60,
12366         ppc_process_record_op63, ppc_process_record): New functions.
12367
12368 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12369
12370         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12371         rs6000_in_function_epilogue_frame_p and add an argument
12372         for frame_info.
12373         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12374         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12375         New functions.
12376         (rs6000_epilogue_frame_unwind): New.
12377         (rs6000_gdbarch_init): Append epilogue unwinder.
12378
12379 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12380
12381         * nat/linux-personality.c: Replace "#ifndef
12382         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12383         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12384         systems.
12385
12386 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12387
12388         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12389         functions.
12390         (_initialize_tui_win) <border-kind, border-mode>:
12391         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12392         (tui_set_tab_width_command): Fix the commentary.
12393
12394         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12395
12396         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12397         Doc fix.
12398         (tui_set_tab_width_command): Delete and recreate the source and
12399         the disassembly windows, to show the effect of the changed tab
12400         size immediately.
12401
12402         * tui/tui-data.h (LINE_PREFIX): Make shorter
12403         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12404         "Thread NNNNN.XXXX" thread ID notation on Windows.
12405
12406 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12407
12408         Fix gcc-5 compilation.
12409         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12410
12411 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12412
12413         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12414         (linux-personality.o): New rule.
12415         * common/common-defs.h: Include <stdint.h>.
12416         * config/aarch64/linux.mh (NATDEPFILES): Include
12417         linux-personality.o.
12418         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12419         * config/arm/linux.mh (NATDEPFILES): Likewise.
12420         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12421         * config/i386/linux.mh (NATDEPFILES): Likewise.
12422         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12423         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12424         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12425         * config/mips/linux.mh (NATDEPFILES): Likewise.
12426         * config/pa/linux.mh (NATDEPFILES): Likewise.
12427         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12428         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12429         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12430         * config/s390/linux.mh (NATDEPFILES): Likewise.
12431         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12432         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12433         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12434         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12435         * defs.h: Remove #include <stdint.h> (moved to
12436         common/common-defs.h).
12437         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12438         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12439         nat/linux-personality.c).
12440         (linux_nat_create_inferior): Remove code to disable address space
12441         randomization (moved to nat/linux-personality.c).  Create cleanup
12442         to disable address space randomization.
12443         * nat/linux-personality.c: New file.
12444         * nat/linux-personality.h: Likewise.
12445
12446 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12447
12448         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12449         common/posix-strerror.c.
12450         (posix-strerror.o): New rule.
12451         (mingw-strerror.o): Likewise.
12452         * common/common-utils.h (safe_strerror): Move prototype to here,
12453         from utils.h.
12454         * common/common.host: New file.
12455         * common/mingw-strerror.c: Likewise.
12456         * common/posix-strerror.c: Likewise.
12457         * configure: Regenerated.
12458         * configure.ac: Source common/common.host.  Add variable
12459         common_host_obs to gdb_host_obs.
12460         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12461         gdb/common/posix-strerror.c when warning about the use of
12462         strerror.
12463         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12464         common/mingw-strerror.c.
12465         * posix-hdep.c (safe_strerror): Remove definition; move it to
12466         common/posix-hdep.c.
12467         * utils.h (safe_strerror): Remove prototype; move to
12468         common/common-utils.h.
12469
12470 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12471
12472         GDB 7.8.2 released.
12473
12474 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12475
12476         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12477         ___XA type if the array has already been fixed.
12478
12479 2015-01-14  Yao Qi  <yao@codesourcery.com>
12480
12481         * Makefile.in (ppc-linux.o): New rule.
12482         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12483         * configure.ac: AC_CHECK_FUNCS(getauxval).
12484         * config.in: Re-generated.
12485         * configure: Re-generated.
12486         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12487         Declare.
12488         * nat/ppc-linux.c: New file.
12489         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12490         Call ppc64_64bit_inferior_p.
12491
12492 2015-01-14  Yao Qi  <yao@codesourcery.com>
12493
12494         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12495         nat/ppc-linux.h.
12496         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12497         (PPC_FEATURE_HAS_DFP): Likewise.
12498         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12499         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12500         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12501         Include "nat/ppc-linux.h".
12502         * nat/ppc-linux.h: New file.
12503         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12504
12505 2015-01-14  Pedro Alves  <palves@redhat.com>
12506
12507         PR gdb/17525
12508         * breakpoint.c: Include "interps.h".
12509         (bpstat_do_actions_1): Also check whether the interpreter is
12510         async.
12511
12512 2015-01-14  Pedro Alves  <palves@redhat.com>
12513
12514         PR cli/17828
12515         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12516         reinstall if the interpreter is sync.
12517
12518 2015-01-13  Doug Evans  <dje@google.com>
12519
12520         * objfiles.c (objfile_filename): New function.
12521         * objfiles.h (objfile_filename): Declare it.
12522         (objfile_name): Add function comment.
12523         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12524         bfd file name (which may be realpath'd), and the original name.
12525
12526 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12527
12528         * NEWS: Create a new section for the next release branch.
12529         Rename the section of the current branch, now that it has
12530         been cut.
12531
12532 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12533
12534         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12535         * version.in: Bump version to 7.9.50.DATE-cvs.
12536
12537 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12538
12539         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12540         Remove trailing new-line in argument of call to warning.
12541
12542 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12543
12544         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12545         new-line in argument of call to "warning".
12546
12547 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12548
12549         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12550         in static block, then try searching for primitive types.
12551
12552 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12553
12554         * top.h (gdb_add_history): Declare.
12555         * top.c (command_count): New variable.
12556         (gdb_add_history): New function.
12557         (gdb_safe_append_history): New static function.
12558         (quit_force): Call it.
12559         (command_line_input): Use gdb_add_history instead of
12560         add_history.
12561         * event-top.c (command_line_handler): Likewise.
12562
12563 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12564
12565         PR gdb/17046
12566         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12567         <setjmp.h> #include.
12568
12569 2015-01-11  Doug Evans  <xdje42@gmail.com>
12570
12571         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12572
12573 2015-01-11  Doug Evans  <xdje42@gmail.com>
12574
12575         PR gdb/15830
12576         * NEWS: The "maint demangle" command is renamed as "demangle".
12577         * demangle.c: #include cli/cli-utils.h, language.h.
12578         (demangle_command): New function.
12579         (_initialize_demangle): Add new command "demangle".
12580         * maint.c (maintenance_demangle): Stub out.
12581         (_initialize_maint_cmds): Update help text for "maint demangle",
12582         and mark as deprecated.
12583
12584 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12585
12586         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12587         inferior_thread is a function.
12588
12589 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12590
12591         * Makefile.in (.y.c): Don't munge yacc's #line
12592         directives.
12593
12594 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12595
12596         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12597         to prompt for input.
12598         * tui/tui-hooks.c (tui_query_hook): Remove.
12599         (tui_install_hooks): Don't set deprecated_query_hook.
12600         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12601         height calculation.  Always update the command window's cur_line.
12602
12603 2015-01-09  Pedro Alves  <palves@redhat.com>
12604
12605         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12606         function.
12607         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12608         declaration.
12609         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12610         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12611         stop_reason.
12612         (check_stopped_by_watchpoint): New function.
12613         (save_sigtrap): Reimplement.
12614         (linux_nat_stopped_by_watchpoint): Adjust.
12615         (linux_nat_lp_status_is_event): Delete.
12616         (stop_wait_callback): Only call save_sigtrap after storing the
12617         pending status.
12618         (status_callback): If the thread had been stopped for a breakpoint
12619         that has since been removed, discard the event and resume the LWP.
12620         (count_events_callback, select_event_lwp_callback): Use
12621         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12622         (cancel_breakpoint): Rename to ...
12623         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12624         stopped for a software breakpoint or hardware breakpoint.
12625         (select_event_lwp): Only give preference to the stepping LWP in
12626         all-stop mode.  Adjust comments.
12627         (stop_and_resume_callback): Remove references to new_pending_p.
12628         (linux_nat_filter_event): Likewise.  Leave exit events of the
12629         leader thread pending here.  Handle signal short circuiting here.
12630         Only call save_sigtrap after storing the pending waitstatus.
12631         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12632         new_pending.  Don't handle leaving events the caller is not
12633         interested in pending here, nor handle signal short-circuiting
12634         here.  Also give equal priority to all LWPs that have had events
12635         in non-stop mode.  If reporting a software breakpoint event,
12636         unadjust the LWP's PC.
12637         * linux-nat.h (enum lwp_stop_reason): New.
12638         (struct lwp_info) <stop_pc>: New field.
12639         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12640         (struct lwp_info) <stop_reason>: New field.
12641         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12642
12643 2015-01-09  Pedro Alves  <palves@redhat.com>
12644
12645         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12646         Set the LWP's 'resumed' flag.
12647
12648 2015-01-09  Pedro Alves  <palves@redhat.com>
12649
12650         * linux-nat.c (linux_resume_one_lwp): New function.
12651         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12652         (linux_nat_resume): Use lwp_status_pending_p and
12653         linux_resume_one_lwp.
12654         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12655         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12656         (status_callback, running_callback): Use lwp_status_pending_p.
12657         (lwp_status_pending_p): New function.
12658         (stop_and_resume_callback): Use lwp_status_pending_p.
12659         (linux_nat_filter_event): Use linux_resume_one_lwp.
12660         (linux_nat_wait_1): Always use status_callback to look for an LWP
12661         with a pending status.  Use linux_resume_one_lwp.
12662         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12663         linux_resume_one_lwp.
12664
12665 2015-01-09  Pedro Alves  <palves@redhat.com>
12666
12667         * breakpoint.c (bp_location_inserted_here_p): New function,
12668         factored out from ...
12669         (breakpoint_inserted_here_p): ... here.  Use
12670         ALL_BP_LOCATIONS_AT_ADDR.
12671         (software_breakpoint_inserted_here_p): Use
12672         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12673
12674 2014-01-09  Pedro Alves  <palves@redhat.com>
12675
12676         Skip enabling event reporting if the kernel supports
12677         PTRACE_EVENT_CLONE.
12678         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12679         (thread_db_use_events): New function.
12680         (try_thread_db_load_1): Check thread_db_use_events before enabling
12681         event reporting.
12682         (update_thread_state): New function.
12683         (attach_thread): Use it.  Check thread_db_use_events before
12684         enabling event reporting.
12685         (thread_db_detach): Check thread_db_use_events before disabling
12686         event reporting.
12687         (find_new_threads_callback): Check thread_db_use_events before
12688         enabling event reporting.  Update the thread's state if not using
12689         libthread_db events.
12690
12691 2015-01-09  Pedro Alves  <palves@redhat.com>
12692
12693         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12694         about to wait for is > 0.
12695         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12696         the kernel thread ID is -1.
12697
12698 2015-01-09  Pedro Alves  <palves@redhat.com>
12699
12700         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12701         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12702         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12703         ptrace option flags.
12704         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12705         field.
12706         * nat/linux-procfs.c: Include <dirent.h>.
12707         (linux_proc_get_int): New parameter "warn".  Handle it.
12708         (linux_proc_get_tgid): Adjust.
12709         (linux_proc_get_tracerpid): Rename to ...
12710         (linux_proc_get_tracerpid_nowarn): ... this.
12711         (linux_proc_pid_get_state): New function, factored out from
12712         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12713         and handle it.
12714         (linux_proc_pid_is_gone): New function.
12715         (linux_proc_pid_is_stopped): Adjust.
12716         (linux_proc_pid_is_zombie_maybe_warn)
12717         (linux_proc_pid_is_zombie_nowarn): New functions.
12718         (linux_proc_pid_is_zombie): Use
12719         linux_proc_pid_is_zombie_maybe_warn.
12720         (linux_proc_attach_tgid_threads): New function.
12721         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12722         (linux_proc_get_tracerpid): Rename to ...
12723         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12724         (linux_proc_pid_is_gone): New declaration.
12725         (linux_proc_pid_is_zombie): Update comment.
12726         (linux_proc_pid_is_zombie_nowarn): New declaration.
12727         (linux_proc_attach_lwp_func): New typedef.
12728         (linux_proc_attach_tgid_threads): New declaration.
12729         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12730         use nowarn functions.
12731         (linux_ptrace_attach_fail_reason_string): Move here from
12732         gdbserver/linux-low.c and rename.
12733         (ptrace_supports_feature): If the current ptrace options are not
12734         known yet, check them now, instead of asserting.
12735         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12736         Declare.
12737
12738 2015-01-09  Pedro Alves  <palves@redhat.com>
12739
12740         * linux-thread-db.c (thread_db_find_new_threads_silently)
12741         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12742         (find_new_threads_once): Print debug output on gdb_stdlog.
12743
12744 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12745             Pedro Alves  <palves@redhat.com>
12746
12747         * compile/compile.c: Include "gdb_wait.h".
12748         (do_rmdir): Check return value, and free 'zap'.
12749
12750 2015-01-08  Pedro Alves  <palves@redhat.com>
12751             Yao Qi  <yao@codesourcery.com>
12752
12753         * dwarf2loc.c (indirect_pieced_value): Don't call
12754         gdb_sign_extend.  Call extract_signed_integer instead.
12755         * utils.c (gdb_sign_extend): Remove.
12756         * utils.h (gdb_sign_extend): Remove declaration.
12757
12758 2015-01-07  Pierre Muller  <muller@sourceware.org>
12759
12760         PR symtab/17811
12761         * stabsread.c (define_symbol): Set language for C++ special symbols.
12762
12763 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12764
12765         * inflow.c (initial_gdb_ttystate): Tweak comment.
12766
12767 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12768
12769         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12770         comment documenting function.
12771
12772 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12773
12774         * terminal.h (set_initial_gdb_ttystate): Declare.
12775         * inflow.c (initial_gdb_ttystate): New static variable.
12776         (set_initial_gdb_ttystate): New setter.
12777         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12778         instead of our current terminal state.
12779         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12780
12781 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12782
12783         * guile/scm-type.c (tyscm_array_1): Add comment.
12784         * python/py-type.c (typy_array_1): Add comment.
12785
12786 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12787
12788         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12789         error if N2 is equal to N1 - 1.
12790
12791 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12792
12793         * python/py-type.c (typy_array_1): Do not raise negative-length
12794         exception if N2 is equal to N1 - 1.
12795
12796 2015-01-03  Doug Evans  <xdje42@gmail.com>
12797
12798         * c-exp.y: Whitespace cleanup.
12799         (classify_inner_name): Remove extra ;.
12800
12801 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12802
12803         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12804         offset signed.
12805
12806 2015-01-02  Doug Evans  <dje@google.com>
12807
12808         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12809
12810 2015-01-02  Doug Evans  <dje@google.com>
12811
12812         * symtab.h (struct symbol): Fix typo in comment.
12813
12814 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12815
12816         Update year range in copyright notice of all files.
12817
12818 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12819
12820         * top.c (print_gdb_version): Update copyright year to 2015.
12821
12822 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12823
12824         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12825
12826 For older changes see ChangeLog-2014.
12827 \f
12828 Local Variables:
12829 mode: change-log
12830 left-margin: 8
12831 fill-column: 74
12832 version-control: never
12833 coding: utf-8
12834 End: