xtensa: Fix implicit enum conversions
[external/binutils.git] / gdb / ChangeLog
1 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
2
3         * xtensa-tdep.h (XTREG): Add casts.
4         (XTREG_END): Likewise.
5
6 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
7
8         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
9
10 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
11
12         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
13
14 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
15
16         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
17         buf to gdb_byte*.
18         (supply_32bit_reg): Add cast.
19         (mips64_fill_gregset): Likewise.
20
21 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
22
23         PR python/18073
24         * python/py-type.c (typy_get_composite): Allow returning a
25         function type.
26
27 2015-10-21  Keven Boell  <keven.boell@intel.com>
28
29         * dwarf2read.c (set_die_type): Add read of
30         DW_AT_allocated and DW_AT_associated.
31         * f-typeprint.c: New include of typeprint.h
32         (f_print_type): Add check for allocated/associated
33         status of type.
34         (f_type_print_varspec_suffix): Add check for
35         * gdbtypes.c (create_array_type_with_stride):
36         Add check for valid data location of type in
37         case allocated or associated attributes are set.
38         Length of an array should be only calculated if
39         allocated or associated is resolved as true.
40         (is_dynamic_type_internal): Add check for allocated/
41         associated.
42         (resolve_dynamic_array): Evaluate allocated/associated
43         properties.
44         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
45         <DYN_PROP_ASSOCIATED>: New enums.
46         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
47         (type_not_allocated): New function.
48         (type_not_associated): New function.
49         * valarith.c (value_subscripted_rvalue): Add check for
50         allocated/associated.
51         * valprint.c: New include of typeprint.h.
52         (valprint_check_validity): Add check for allocated/associated.
53         (value_check_printable): Add check for allocated/
54         associated.
55         * typeprint.h (val_print_not_allocated): New function.
56         (val_print_not_associated): New function.
57         * typeprint.c (val_print_not_allocated): New function.
58         (val_print_not_associated): New function.
59
60 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
61
62         * Makefile.in: Add arm.c/o.
63         * arch/arm.c: New file.
64         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
65         (MAKE_THUMB_ADDR): Likewise.
66         (UNMAKE_THUMB_ADDR): Likewise.
67         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
68         (IS_THUMB_ADDR): Move to arm.h.
69         (MAKE_THUMB_ADDR): Likewise.
70         (UNMAKE_THUMB_ADDR): Likewise.
71         * configure.tgt: Add arm.o to all ARM configs.
72
73 2015-10-21  Yao Qi  <yao.qi@linaro.org>
74
75         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
76         Remove argument exp_vCont_s.
77         * gdb.base/range-stepping.exp: Callers updated.
78         * gdb.trace/range-stepping.exp: Likewise.
79
80 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
81
82         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
83         (nto_sniff_abi_note_section): New function.
84         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
85         binary.
86
87 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
88
89         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
90         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
91         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
92         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
93         New functions.
94         (_initialize_nto_tdep): New forward declaration, new function.
95         * nto-tdep.h (struct nto_inferior_data): New struct.
96         (nto_inferior_data): New function declaration.
97
98 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
99
100         * findvar.c (address_from_register): Check REGNUM validity.
101
102 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
103
104         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
105         (init_procfs_targets): Wire new function.
106
107 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
108
109         * nto-procfs.c (sys/auxv.h): Include.
110         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
111         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
112         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
113
114 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
115
116         * nto-procfs.c (nto_procfs_path): Rename to...
117         (nodestr): ... this, and change type.
118         (nto_node): Use new variable and logic accordingly.
119         (procfs_open_1): Use new variable name. Use local buffer to construct
120         procfrs path.
121         (procfs_pidlist): Use NODESTR to construct procfs path.
122         (procfs_files_info): Use NODESTR to output meaningful text.
123         (do_attach): Construct procfs using NODESTR.
124         (procfs_create_inferior): Compare pointer to NULL.
125
126 2015-10-19  Josh Stone  <jistone@redhat.com>
127
128         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
129         return state, even when not actively catching syscalls at all.
130         (linux_handle_extended_wait): Mark syscall_state like an entry.
131         (wait_lwp): Set syscall_state ignored for other traps.
132         (linux_nat_filter_event): Likewise.
133
134 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
135
136         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
137         when handling 'E', 'T', 'S', 'X' and 'W' packets.
138         Do not set rs->waiting_for_stop_reply back to 1.
139
140 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
141
142         * nto-procfs.c (common/filestuff.h): Include.
143         (procfs_can_use_hw_breakpoint): Fix enum name.
144         (procfs_open_1): Fix compiler warning.
145         (procfs_pidlist): Make static.
146         (procfs_meminfo): Make static, fix type name, add missing argument.
147         (procfs_store_registers): Make static.
148         (procfs_thread_info): Remove unused function.
149         (_initialize_procfs): Forward declare.
150
151 2015-10-16  Yao Qi  <yao.qi@arm.com>
152
153         * MAINTAINERS: Update my email address.
154
155 2015-10-15  Yao Qi  <yao.qi@linaro.org>
156
157         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
158         Call gdbarch_breakpoint_from_pc to instruction length.
159         (aarch64_linux_remove_hw_breakpoint): Likewise.
160         * common/common-regcache.h (regcache_register_size): Declare.
161         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
162         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
163         the process is 32bit, otherwise set alignment to 4.
164         (aarch64_handle_breakpoint): Update comments.
165         * regcache.c (regcache_register_size): New function.
166
167 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
168
169         * gdbarch.sh (core_regset_section): Remove.
170         * gdbarch.h: Regenerate.
171
172 2015-10-14  Yao Qi  <yao.qi@linaro.org>
173
174         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
175         out of it.
176         (enum aarch64_memory_operand_type): New.
177
178 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
179
180         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
181
182 2015-10-13  Pedro Alves  <palves@redhat.com>
183
184         * ada-lang.c (ada_enum_name): Constify local.
185         * ada-typeprint.c (print_range_bound): Constify locals.
186         * c-varobj.c (c_describe_child): Likewise.
187         * cli/cli-setshow.c (do_set_command): Likewise.
188         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
189         * dwarf2read.c (find_file_and_directory): Likewise.
190         (anonymous_struct_prefix, dwarf2_name): Likewise.
191         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
192         * go-lang.c (unpack_mangled_go_symbol): Likewise.
193         * jv-typeprint.c (java_type_print_base): Likewise.
194         * ser-tcp.c (net_open): Likewise.
195         * symfile.c (deduce_language_from_filename): Likewise.
196         * symtab.c (gdb_mangle_name): Likewise.
197         * tui/tui-io.c (tui_redisplay_readline): Likewise.
198
199 2015-10-13  Pedro Alves  <palves@redhat.com>
200
201         * infrun.c (restore_execution_direction): New function.
202         (fetch_inferior_event): Use it instead of
203         make_cleanup_restore_integer.
204         (execution_direction): Change type to enum
205         exec_direction_kind.
206         * infrun.h (execution_direction): Likewise.
207
208 2015-10-13  Pedro Alves  <palves@redhat.com>
209
210         * ada-lang.c (ada_value_primitive_packed_val): Constify
211         locals.  Use value_contents_writeable.  Remove casts.
212
213 2015-10-13  Pedro Alves  <palves@redhat.com>
214
215         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
216         and alloca calls.
217
218 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
219
220         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
221         write_memory with write_memory_unsigned_integer.
222
223 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
224
225         * solib-dsbt.c (cmp_name): Constify arguments.
226         * solib-frv.c (cmp_name): Likewise.
227         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
228         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
229         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
230         (gdb_bfd_lookup_symbol): Likewise.
231         * solib.h (gdb_bfd_lookup_symbol): Likewise.
232         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
233
234 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
235
236         * stack.c (parse_frame_specification): Remove message parameter,
237         replace with fixed string in function body, update function
238         comment.
239         (frame_info): Remove message to parse_frame_specification.
240         (select_frame_command): Likewise.
241
242 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
243
244         * stack.c (parse_frame_specification): Delete.
245         (parse_frame_specification_1): Rename to
246         parse_frame_specification.
247         (frame_info): Use parse_frame_specification.
248         (select_frame_command): Likewise.
249         (return_command): Use select_frame and print_stack_frame rather
250         than frame_command and select_frame_command.
251         (func_command): Use get_current_frame rather than
252         parse_frame_specification.
253
254 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
255
256         * stack.c (func_command): Return early when there is no ARG
257         string.
258
259 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
260
261         * stack.c: Include safe-ctype.h not ctype.h.
262         (parse_frame_specification): Use ISSPACE not isspace.
263         (backtrace_command): Use TOLOWER not tolower.
264
265 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
266
267         * mep-tdep.c (current_me_module): Add cast.
268         (mep_gdbarch_init): Likewise.
269
270 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
271
272         * m32c-tdep.c (m32c_move_reg_t): Replace with...
273         (m32c_write_reg_t): ...this and...
274         (m32c_read_reg_t): ...this.
275         (struct m32c_reg): Update types of read and write.
276         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
277         adjust definition.
278         (m32c_banked_read): Likewise.
279         (m32c_sb_read): Likewise.
280         (m32c_part_read): Likewise.
281         (m32c_cat_read): Likewise.
282         (m32c_r3r2r1r0_read): Likewise.
283         (m32c_raw_write): Change declaration type to m32c_write_reg_t
284         and adjust definition.
285         (m32c_banked_write): Likewise.
286         (m32c_sb_write): Likewise.
287         (m32c_part_write): Likewise.
288         (m32c_cat_write): Likewise.
289         (m32c_r3r2r1r0_write): Likewise.
290
291 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
292
293         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
294
295 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
296
297         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
298         gdb_sys_no_syscall instead of -1.
299
300 2015-10-12  Yao Qi  <yao.qi@linaro.org>
301
302         * NEWS: Mention the change.
303
304 2015-10-12  Yao Qi  <yao.qi@linaro.org>
305
306         * arch/aarch64-insn.c (emit_load_store): Rename to ...
307         (aarch64_emit_load_store): ... it.  All callers updated.
308
309 2015-10-12  Yao Qi  <yao.qi@linaro.org>
310
311         * arch/aarch64-insn.c (emit_insn): Rename to ...
312         (aarch64_emit_insn): ... it.  All callers updated.
313
314 2015-10-12  Yao Qi  <yao.qi@linaro.org>
315
316         * aarch64-linux-tdep.c: Include arch-utils.h.
317         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
318         set_gdbarch_displaced_step_copy_insn,
319         set_gdbarch_displaced_step_fixup,
320         set_gdbarch_displaced_step_free_closure,
321         set_gdbarch_displaced_step_location,
322         and set_gdbarch_displaced_step_hw_singlestep.
323         * aarch64-tdep.c (struct displaced_step_closure): New.
324         (struct aarch64_displaced_step_data): New.
325         (aarch64_displaced_step_b): New function.
326         (aarch64_displaced_step_b_cond): Likewise.
327         (aarch64_register): Likewise.
328         (aarch64_displaced_step_cb): Likewise.
329         (aarch64_displaced_step_tb): Likewise.
330         (aarch64_displaced_step_adr): Likewise.
331         (aarch64_displaced_step_ldr_literal): Likewise.
332         (aarch64_displaced_step_others): Likewise.
333         (aarch64_displaced_step_copy_insn): Likewise.
334         (aarch64_displaced_step_fixup): Likewise.
335         (aarch64_displaced_step_hw_singlestep): Likewise.
336         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
337         (aarch64_displaced_step_copy_insn): Declare.
338         (aarch64_displaced_step_fixup): Declare.
339         (aarch64_displaced_step_hw_singlestep): Declare.
340         * arch/aarch64-insn.c (emit_insn): Moved from
341         gdbserver/linux-aarch64-low.c.
342         (emit_load_store): Likewise.
343         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
344         gdbserver/linux-aarch64-low.c.
345         (struct aarch64_register): Likewise.
346         (struct aarch64_memory_operand): Likewise.
347         (ENCODE): Likewise.
348         (can_encode_int32): New macro.
349         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
350         (emit_tb, emit_nop): Likewise.
351         (emit_insn): Declare.
352         (emit_load_store): Declare.
353
354 2015-10-12  Yao Qi  <yao.qi@linaro.org>
355
356         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
357         gdbserver/linux-aarch64-low.c.
358         (aarch64_relocate_instruction): Likewise.
359         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
360         (struct aarch64_insn_data): Moved from
361         gdbserver/linux-aarch64-low.c.
362         (struct aarch64_insn_visitor): Likewise.
363         (aarch64_relocate_instruction): Declare.
364
365 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
366
367         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
368         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
369         to the returned value.
370
371 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
372
373         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
374         is large enough for BIT_SIZE.  Update function comment.
375
376 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
377
378         * ada-lang.c (ada_value_primitive_packed_val): Move
379         src_len variable to local block where used.  Override
380         BIT_SIZE if bigger than size of resolved type.
381
382 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
383
384         * gdbtypes.h (is_scalar_type): Add extern declaration.
385         * gdbtypes.c (is_scalar_type): Make non-static.
386         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
387         to compute IS_SCALAR instead of doing it ourselves.
388
389 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
390
391         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
392         of case where TYPE is dynamic.
393
394 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
395
396         * ada-lang.c (ada_unpack_from_contents): New function,
397         extracted from ada_value_primitive_packed_val.
398         (ada_value_primitive_packed_val): Replace extracted out code
399         by call to ada_unpack_from_contents.
400
401 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
402
403         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
404         variable declarations.
405
406 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
407
408         * ada-lang.c (ada_value_primitive_packed_val): Change the type
409         of local variables src and unpacked to "gdb_type *" instead of
410         "unsigned char *".
411
412 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
413
414         * ada-lang.c (ada_value_primitive_packed_val): Make the name
415         of various local variables more explicit and consistent.
416         No real code change otherwise.
417
418 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
419
420         * i386-tdep.h (struct gdbarch_tdep): Change type of
421         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
422
423 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
424
425         * cris-tdep.c (struct instruction_environment): Change type of
426         byte_order to enum bfd_endian.
427
428 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
429
430         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
431         enum gdb_syscall casts.
432
433 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
434
435         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
436         * arm-tdep.c (struct stack_item): Likewise.
437         (push_stack_item): Add gdb_byte* cast.
438         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
439         (push_stack_item): Add gdb_byte* cast.
440         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
441         and add cast.
442         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
443         (push_stack_item): Add gdb_byte* cast.
444         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
445         add cast.
446         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
447         gdb_byte*.
448         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
449         gdb_byte* and remove unnecessary cast.
450         (h8300h_extract_return_value): Likewise.
451         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
452         (h8300h_store_return_value): Likewise.
453         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
454         gdb_byte* and remove unnecessary cast.
455         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
456         and add cast.
457         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
458         gdb_byte* and remove unnecessary cast.
459         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
460         valbuf.
461         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
462         (mep_pseudo_cr64_read): Likewise.
463         (mep_pseudo_csr_write): Likewise.
464         (mep_pseudo_cr32_write): Likewise.
465         (mep_pseudo_cr64_write): Likewise.
466         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
467         gdb_byte* and add cast.
468         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
469         gdb_byte* and remove unnecessary cast.
470         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
471         valbuf.
472         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
473         gdb_byte*.
474         * printcmd.c (void): Likewise.
475         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
476         gdb_byte* and add cast.
477         (infpy_write_memory): Likewise.
478         (infpy_search_memory): Likewise.
479         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
480         and add cast.
481         (regcache_raw_write_unsigned): Likewise.
482         (regcache_cooked_write_signed): Likewise.
483         (regcache_cooked_write_unsigned): Likewise.
484         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
485         gdb_byte*.
486
487 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
488
489         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
490         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
491
492 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
493
494         * stack.c (print_stack_frame):
495         * utils.c (printchar): Fix typos in commentary.
496
497 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
498
499         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
500         (PostfixExpression): Support `expr.sizeof' expressions.
501         (PrimaryExpression): Support `typeof(expr)' expressions.
502
503 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
504
505         * MAINTAINERS: Update my email address.
506
507 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
508
509         * record-btrace.c (record_btrace_resume): Fix void return.
510
511 2015-10-07  Yao Qi  <yao.qi@linaro.org>
512
513         * aarch64-tdep.c: Include opcode/aarch64.h.
514         (submask): Move it above.
515         (bit): Likewise.
516         (bits): Likewise.
517         (aarch64_software_single_step): Call aarch64_decode_insn.
518         Decode instruction by aarch64_inst instead of using
519         aarch64_decode_bcond and decode_masked_match.
520
521 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
522
523         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
524         only when the file is binary.
525
526 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
527
528         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
529         subroutine handling.
530
531 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
532
533         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
534
535 2015-09-30  Doug Evans  <dje@google.com>
536
537         * dwarf2read.c (setup_type_unit_groups): Add comment.
538
539 2015-09-30  Pedro Alves  <palves@redhat.com>
540
541         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
542         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
543         (x86_linux_create_target): Don't install
544         x86_linux_always_non_stop_p.
545
546 2015-09-30  Don Breazeal  <donb@codesourcery.com>
547
548         * remote.c (remote_parse_stop_reply): Call strprefix instead
549         of strncmp.
550
551 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
552
553         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
554         * gdbarch.h: Regenerate.
555         * i386-tdep.c (i386_gdbarch_init): Remove cast to
556         struct gdbarch_tdep_info *.
557         * mips-tdep.c (mips_gdbarch_init): Likewise.
558         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
559         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
560         * spu-multiarch.c (spu_gdbarch): Likewise.
561
562 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
563
564         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
565         record a NULL value.
566
567 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
568
569         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
570         and union arguments the same as pointer arguments when determining
571         size of argument.
572
573 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
574
575         * ft32-tdep.c: #include "opcode/ft32.h".
576         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
577         (ft32_analyze_prologue): Use FT32_* macros.
578
579 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
580
581         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
582         comment.
583
584 2015-09-28  Doug Evans  <dje@google.com>
585
586         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
587
588 2015-09-28  Doug Evans  <dje@google.com>
589
590         * common/filestuff.c (make_cleanup_close): Update comment.
591
592 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
593
594         * btrace.c (parse_xml_btrace_block): Fix cast of
595         xml_find_attribute's return value.
596         * memory-map.c (memory_map_start_memory): Likewise.
597         * solib-svr4.c (library_list_start_library): Likewise.
598         * solib-target.c (library_list_start_segment): Likewise.
599         (library_list_start_section): Likewise.
600         * tracepoint.c (traceframe_info_start_memory): Likewise.
601
602 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
603
604         * d-namespace.c (d_lookup_symbol): New arg langdef.
605         All callers updated.  Support looking up symbol as a primitive type.
606         (lookup_module_scope): New arg langdef.  All callers updated.
607         Call d_lookup_symbol directly for simple bare symbols.
608
609 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
610
611         * macrocmd.c (print_macro_callback): Add cast(s).
612         * macrotab.c (macro_bcache_str): Likewise.
613         (new_macro_definition): Likewise.
614         * main.c (captured_main): Likewise.
615         * maint.c (print_bfd_section_info): Likewise.
616         * mdebugread.c (mdebug_build_psymtabs): Likewise.
617         (basic_type): Likewise.
618         * memattr.c (mem_region_cmp): Likewise.
619         * memory-map.c (memory_map_start_memory): Likewise.
620         (memory_map_end_memory): Likewise.
621         (memory_map_start_property): Likewise.
622         (memory_map_end_property): Likewise.
623         (clear_result): Likewise.
624         * memrange.c (compare_mem_ranges): Likewise.
625         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
626         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
627         * mi/mi-console.c (mi_console_file_delete): Likewise.
628         (mi_console_file_fputs): Likewise.
629         (mi_console_raw_packet): Likewise.
630         (mi_console_file_flush): Likewise.
631         (mi_console_set_raw): Likewise.
632         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
633         (mi_new_thread): Likewise.
634         (mi_thread_exit): Likewise.
635         (mi_record_changed): Likewise.
636         (mi_inferior_added): Likewise.
637         (mi_inferior_appeared): Likewise.
638         (mi_inferior_exit): Likewise.
639         (mi_inferior_removed): Likewise.
640         (mi_interp_data): Likewise.
641         (mi_on_normal_stop): Likewise.
642         (mi_traceframe_changed): Likewise.
643         (mi_tsv_created): Likewise.
644         (mi_tsv_deleted): Likewise.
645         (mi_tsv_modified): Likewise.
646         (mi_breakpoint_created): Likewise.
647         (mi_breakpoint_deleted): Likewise.
648         (mi_breakpoint_modified): Likewise.
649         (mi_output_running_pid): Likewise.
650         (mi_inferior_count): Likewise.
651         (mi_solib_loaded): Likewise.
652         (mi_solib_unloaded): Likewise.
653         (mi_command_param_changed): Likewise.
654         (mi_memory_changed): Likewise.
655         (report_initial_inferior): Likewise.
656         (mi_ui_out): Likewise.
657         (mi_set_logging): Likewise.
658         * mi/mi-main.c (collect_cores): Likewise.
659         (print_one_inferior): Likewise.
660         (free_vector_of_ints): Likewise.
661         (free_splay_tree): Likewise.
662         (mi_execute_command): Likewise.
663         * mi/mi-out.c (mi_table_body): Likewise.
664         (mi_table_end): Likewise.
665         (mi_table_header): Likewise.
666         (mi_begin): Likewise.
667         (mi_end): Likewise.
668         (mi_field_int): Likewise.
669         (mi_field_string): Likewise.
670         (mi_field_fmt): Likewise.
671         (mi_flush): Likewise.
672         (mi_redirect): Likewise.
673         (field_separator): Likewise.
674         (mi_open): Likewise.
675         (mi_close): Likewise.
676         (mi_out_buffered): Likewise.
677         (mi_out_rewind): Likewise.
678         (mi_out_put): Likewise.
679         (mi_version): Likewise.
680         (mi_out_data_dtor): Likewise.
681         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
682         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
683         * minidebug.c (lzma_open): Likewise.
684         (lzma_pread): Likewise.
685         (lzma_close): Likewise.
686         (lzma_stat): Likewise.
687         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
688         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
689         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
690         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
691         (mips_micro_frame_cache): Likewise.
692         (mips_insn32_frame_cache): Likewise.
693         (mips_stub_frame_cache): Likewise.
694         (gdb_print_insn_mips): Likewise.
695         (value_of_mips_user_reg): Likewise.
696         (mips_gdbarch_init): Likewise.
697         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
698         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
699         (mipsnbsd_supply_gregset): Likewise.
700         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
701         (am33_collect_gregset_method): Likewise.
702         (am33_collect_fpregset_method): Likewise.
703         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
704         * moxie-tdep.c (moxie_frame_cache): Likewise.
705         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
706         (msp430_analyze_frame_prologue): Likewise.
707         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
708         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
709         (nios2_collect_gregset): Likewise.
710         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
711         (nios2_stub_frame_cache): Likewise.
712         * objc-lang.c (find_methods): Likewise.
713         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
714         (get_objfile_pspace_data): Likewise.
715         (get_objfile_bfd_data): Likewise.
716         (objfile_bfd_data_free): Likewise.
717         (add_to_objfile_sections): Likewise.
718         (do_free_objfile_cleanup): Likewise.
719         (resume_section_map_updates_cleanup): Likewise.
720         * opencl-lang.c (builtin_opencl_type): Likewise.
721         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
722         * osdata.c (osdata_start_osdata): Likewise.
723         (osdata_start_item): Likewise.
724         (osdata_start_column): Likewise.
725         (osdata_end_column): Likewise.
726         (clear_parsing_data): Likewise.
727         (osdata_free_cleanup): Likewise.
728         * parse.c (type_stack_cleanup): Likewise.
729         (exp_uses_objfile_iter): Likewise.
730         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
731         (ppc_linux_collect_gregset): Likewise.
732         (ppu2spu_prev_arch): Likewise.
733         (ppu2spu_this_id): Likewise.
734         (ppu2spu_prev_register): Likewise.
735         (ppu2spu_unwind_register): Likewise.
736         (ppu2spu_sniffer): Likewise.
737         (ppu2spu_dealloc_cache): Likewise.
738         (ppc_linux_init_abi): Likewise.
739         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
740         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
741         * progspace.c (restore_program_space): Likewise.
742         * psymtab.c (find_pc_sect_psymtab): Likewise.
743         (compare_psymbols): Likewise.
744         (psymbol_bcache_full): Likewise.
745         (allocate_psymtab): Likewise.
746         (discard_psymtabs_upto): Likewise.
747         * python/py-block.c (set_block): Likewise.
748         (del_objfile_blocks): Likewise.
749         * python/py-breakpoint.c (build_bp_list): Likewise.
750         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
751         (build_inferior_list): Likewise.
752         (py_free_inferior): Likewise.
753         * python/py-objfile.c (py_free_objfile): Likewise.
754         (objfile_to_objfile_object): Likewise.
755         * python/py-prettyprint.c (py_restore_tstate): Likewise.
756         * python/py-progspace.c (py_free_pspace): Likewise.
757         (pspace_to_pspace_object): Likewise.
758         * python/py-symbol.c (set_symbol): Likewise.
759         (del_objfile_symbols): Likewise.
760         * python/py-symtab.c (set_sal): Likewise.
761         (set_symtab): Likewise.
762         (del_objfile_symtab): Likewise.
763         (del_objfile_sal): Likewise.
764         * python/py-type.c (save_objfile_types): Likewise.
765         (set_type): Likewise.
766         * python/py-unwind.c (pyuw_prev_register): Likewise.
767         (pyuw_on_new_gdbarch): Likewise.
768         * python/py-utils.c (py_decref): Likewise.
769         (py_xdecref): Likewise.
770         (gdb_py_generic_dict): Likewise.
771         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
772         (gdbpy_clone_xmethod_worker_data): Likewise.
773         (gdbpy_get_xmethod_arg_types): Likewise.
774         (gdbpy_get_xmethod_result_type): Likewise.
775         (gdbpy_invoke_xmethod): Likewise.
776         * python/python.c (gdbpy_apply_type_printers): Likewise.
777         (gdbpy_free_type_printers): Likewise.
778         * record-btrace.c (record_btrace_disable_callback): Likewise.
779         (bfcache_hash): Likewise.
780         (bfcache_eq): Likewise.
781         (btrace_get_frame_function): Likewise.
782         (record_btrace_frame_unwind_stop_reason): Likewise.
783         (record_btrace_frame_this_id): Likewise.
784         (record_btrace_frame_prev_register): Likewise.
785         (record_btrace_frame_dealloc_cache): Likewise.
786         * record-full.c (record_full_message_wrapper): Likewise.
787         (record_full_save_cleanups): Likewise.
788         * regcache.c (regcache_descr): Likewise.
789         (do_regcache_xfree): Likewise.
790         (do_regcache_invalidate): Likewise.
791         (do_cooked_read): Likewise.
792         (regcache_transfer_regset): Likewise.
793         * reggroups.c (reggroup_add): Likewise.
794         (reggroup_next): Likewise.
795         (reggroup_prev): Likewise.
796         * remote-fileio.c (do_remote_fileio_request): Likewise.
797         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
798         (do_notif_event_xfree): Likewise.
799         * remote.c (get_remote_arch_state): Likewise.
800         (remote_pspace_data_cleanup): Likewise.
801         (get_remote_exec_file): Likewise.
802         (set_pspace_remote_exec_file): Likewise.
803         (compare_pnums): Likewise.
804         (clear_threads_listing_context): Likewise.
805         (remote_newthread_step): Likewise.
806         (start_thread): Likewise.
807         (end_thread): Likewise.
808         (remove_child_of_pending_fork): Likewise.
809         (remove_stop_reply_for_inferior): Likewise.
810         (remove_stop_reply_of_remote_state): Likewise.
811         (remote_notif_remove_once_on_match): Likewise.
812         (stop_reply_match_ptid_and_ws): Likewise.
813         (kill_child_of_pending_fork): Likewise.
814         (register_remote_g_packet_guess): Likewise.
815         (remote_read_description_p): Likewise.
816         (remote_read_description): Likewise.
817         (free_actions_list_cleanup_wrapper): Likewise.
818         (remote_async_serial_handler): Likewise.
819         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
820         (rl78_analyze_frame_prologue): Likewise.
821         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
822         (ppc_supply_fpregset): Likewise.
823         (ppc_supply_vsxregset): Likewise.
824         (ppc_supply_vrregset): Likewise.
825         (ppc_collect_gregset): Likewise.
826         (ppc_collect_fpregset): Likewise.
827         (ppc_collect_vsxregset): Likewise.
828         (ppc_collect_vrregset): Likewise.
829         (e500_move_ev_register): Likewise.
830         (do_regcache_raw_write): Likewise.
831         (rs6000_frame_cache): Likewise.
832         (rs6000_epilogue_frame_cache): Likewise.
833         (rs6000_gdbarch_init): Likewise.
834         * rx-tdep.c (rx_get_opcode_byte): Likewise.
835         (rx_analyze_frame_prologue): Likewise.
836         (rx_frame_type): Likewise.
837         (rx_frame_sniffer_common): Likewise.
838         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
839         (s390_frame_unwind_cache): Likewise.
840         (s390_stub_frame_unwind_cache): Likewise.
841         (s390_sigtramp_frame_unwind_cache): Likewise.
842         * score-tdep.c (score_make_prologue_cache): Likewise.
843         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
844         (sentinel_frame_prev_arch): Likewise.
845         * ser-base.c (fd_event): Likewise.
846         (push_event): Likewise.
847         (ser_base_write): Likewise.
848         * ser-pipe.c (pipe_close): Likewise.
849         * serial.c (serial_write): Likewise.
850         * sh-tdep.c (sh_frame_cache): Likewise.
851         (sh_stub_this_id): Likewise.
852         * sh64-tdep.c (sh64_frame_cache): Likewise.
853         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
854         (library_list_start_library): Likewise.
855         (library_list_start_list): Likewise.
856         (solib_aix_free_library_list): Likewise.
857         * solib-darwin.c (get_darwin_info): Likewise.
858         * solib-dsbt.c (get_dsbt_info): Likewise.
859         * solib-spu.c (append_ocl_sos): Likewise.
860         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
861         (get_svr4_info): Likewise.
862         (library_list_start_library): Likewise.
863         (svr4_library_list_start_list): Likewise.
864         (hash_probe_and_action): Likewise.
865         (equal_probe_and_action): Likewise.
866         (svr4_update_solib_event_breakpoint): Likewise.
867         (set_solib_svr4_fetch_link_map_offsets): Likewise.
868         (svr4_fetch_link_map_offsets): Likewise.
869         (svr4_have_link_map_offsets): Likewise.
870         * solib-target.c (library_list_start_segment): Likewise.
871         (library_list_start_section): Likewise.
872         (library_list_start_library): Likewise.
873         (library_list_end_library): Likewise.
874         (library_list_start_list): Likewise.
875         (solib_target_free_library_list): Likewise.
876         * solib.c (solib_ops): Likewise.
877         (set_solib_ops): Likewise.
878         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
879         * sparc-tdep.c (sparc_frame_cache): Likewise.
880         (sparc32_frame_cache): Likewise.
881         (sparc32_supply_gregset): Likewise.
882         (sparc32_collect_gregset): Likewise.
883         (sparc32_supply_fpregset): Likewise.
884         (sparc32_collect_fpregset): Likewise.
885         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
886         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
887         (sparc64_collect_gregset): Likewise.
888         (sparc64_supply_fpregset): Likewise.
889         (sparc64_collect_fpregset): Likewise.
890         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
891         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
892         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
893         (sparc64obsd_trapframe_cache): Likewise.
894         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
895         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
896         * spu-multiarch.c (spu_gdbarch): Likewise.
897         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
898         (spu2ppu_prev_arch): Likewise.
899         (spu2ppu_this_id): Likewise.
900         (spu2ppu_prev_register): Likewise.
901         (spu2ppu_dealloc_cache): Likewise.
902         (spu_dis_asm_print_address): Likewise.
903         (gdb_print_insn_spu): Likewise.
904         (spu_get_overlay_table): Likewise.
905         * stabsread.c (rs6000_builtin_type): Likewise.
906         * stack.c (do_print_variable_and_value): Likewise.
907         * stap-probe.c (get_stap_base_address_1): Likewise.
908         * symfile-debug.c (debug_qf_has_symbols): Likewise.
909         (debug_qf_find_last_source_symtab): Likewise.
910         (debug_qf_forget_cached_source_info): Likewise.
911         (debug_qf_map_symtabs_matching_filename): Likewise.
912         (debug_qf_lookup_symbol): Likewise.
913         (debug_qf_print_stats): Likewise.
914         (debug_qf_dump): Likewise.
915         (debug_qf_relocate): Likewise.
916         (debug_qf_expand_symtabs_for_function): Likewise.
917         (debug_qf_expand_all_symtabs): Likewise.
918         (debug_qf_expand_symtabs_with_fullname): Likewise.
919         (debug_qf_map_matching_symbols): Likewise.
920         (debug_qf_expand_symtabs_matching): Likewise.
921         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
922         (debug_qf_map_symbol_filenames): Likewise.
923         (debug_sym_get_probes): Likewise.
924         (debug_sym_new_init): Likewise.
925         (debug_sym_init): Likewise.
926         (debug_sym_read): Likewise.
927         (debug_sym_read_psymbols): Likewise.
928         (debug_sym_finish): Likewise.
929         (debug_sym_offsets): Likewise.
930         (debug_sym_read_linetable): Likewise.
931         (debug_sym_relocate): Likewise.
932         (uninstall_symfile_debug_logging): Likewise.
933         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
934         * symfile.c (place_section): Likewise.
935         (add_section_size_callback): Likewise.
936         (load_progress): Likewise.
937         (load_section_callback): Likewise.
938         (clear_memory_write_data): Likewise.
939         (allocate_symtab): Likewise.
940         * symmisc.c (maintenance_expand_file_matcher): Likewise.
941         * symtab.c (lookup_symtab_callback): Likewise.
942         (hash_demangled_name_entry): Likewise.
943         (eq_demangled_name_entry): Likewise.
944         (get_symbol_cache): Likewise.
945         (symbol_cache_cleanup): Likewise.
946         (set_symbol_cache_size): Likewise.
947         (symbol_cache_flush): Likewise.
948         (maintenance_print_symbol_cache): Likewise.
949         (maintenance_print_symbol_cache_statistics): Likewise.
950         (delete_filename_seen_cache): Likewise.
951         (output_partial_symbol_filename): Likewise.
952         (search_symbols_file_matches): Likewise.
953         (search_symbols_name_matches): Likewise.
954         (do_free_completion_list): Likewise.
955         (maybe_add_partial_symtab_filename): Likewise.
956         (get_main_info): Likewise.
957         (main_info_cleanup): Likewise.
958         * target-dcache.c (target_dcache_cleanup): Likewise.
959         (target_dcache_init_p): Likewise.
960         (target_dcache_invalidate): Likewise.
961         (target_dcache_get): Likewise.
962         (target_dcache_get_or_init): Likewise.
963         * target-descriptions.c (target_find_description): Likewise.
964         (tdesc_find_type): Likewise.
965         (tdesc_data_cleanup): Likewise.
966         (tdesc_find_arch_register): Likewise.
967         (tdesc_register_name): Likewise.
968         (tdesc_register_type): Likewise.
969         (tdesc_register_reggroup_p): Likewise.
970         (set_tdesc_pseudo_register_name): Likewise.
971         (set_tdesc_pseudo_register_type): Likewise.
972         (set_tdesc_pseudo_register_reggroup_p): Likewise.
973         (tdesc_use_registers): Likewise.
974         (free_target_description): Likewise.
975         * target-memory.c (compare_block_starting_address): Likewise.
976         (cleanup_request_data): Likewise.
977         (cleanup_write_requests_vector): Likewise.
978         * target.c (open_target): Likewise.
979         (cleanup_restore_target_terminal): Likewise.
980         (free_memory_read_result_vector): Likewise.
981         * thread.c (disable_thread_stack_temporaries): Likewise.
982         (finish_thread_state_cleanup): Likewise.
983         (do_restore_current_thread_cleanup): Likewise.
984         (restore_current_thread_cleanup_dtor): Likewise.
985         (set_thread_refcount): Likewise.
986         (tp_array_compar): Likewise.
987         (do_captured_thread_select): Likewise.
988         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
989         (tic6x_stub_this_id): Likewise.
990         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
991         * top.c (do_restore_instream_cleanup): Likewise.
992         (gdb_readline_wrapper_cleanup): Likewise.
993         (kill_or_detach): Likewise.
994         (print_inferior_quit_action): Likewise.
995         * tracefile-tfile.c (match_blocktype): Likewise.
996         (build_traceframe_info): Likewise.
997         * tracefile.c (trace_file_writer_xfree): Likewise.
998         * tracepoint.c (memrange_cmp): Likewise.
999         (do_collect_symbol): Likewise.
1000         (do_clear_collection_list): Likewise.
1001         (do_restore_current_traceframe_cleanup): Likewise.
1002         (restore_current_traceframe_cleanup_dtor): Likewise.
1003         (free_current_marker): Likewise.
1004         (traceframe_info_start_memory): Likewise.
1005         (traceframe_info_start_tvar): Likewise.
1006         (free_result): Likewise.
1007         * tramp-frame.c (tramp_frame_cache): Likewise.
1008         * tui/tui-file.c (tui_file_delete): Likewise.
1009         (tui_fileopen): Likewise.
1010         (tui_sfileopen): Likewise.
1011         (tui_file_isatty): Likewise.
1012         (tui_file_rewind): Likewise.
1013         (tui_file_put): Likewise.
1014         (tui_file_fputs): Likewise.
1015         (tui_file_get_strbuf): Likewise.
1016         (tui_file_adjust_strbuf): Likewise.
1017         (tui_file_flush): Likewise.
1018         * tui/tui-layout.c (make_command_window): Likewise.
1019         (make_data_window): Likewise.
1020         (show_source_disasm_command): Likewise.
1021         (show_data): Likewise.
1022         (make_source_or_disasm_window): Likewise.
1023         (show_source_or_disasm_and_command): Likewise.
1024         * tui/tui-out.c (tui_field_int): Likewise.
1025         (tui_field_string): Likewise.
1026         (tui_field_fmt): Likewise.
1027         (tui_text): Likewise.
1028         * typeprint.c (hash_typedef_field): Likewise.
1029         (eq_typedef_field): Likewise.
1030         (do_free_typedef_hash): Likewise.
1031         (copy_typedef_hash_element): Likewise.
1032         (do_free_global_table): Likewise.
1033         (find_global_typedef): Likewise.
1034         (find_typedef_in_hash): Likewise.
1035         * ui-file.c (ui_file_write_for_put): Likewise.
1036         (do_ui_file_xstrdup): Likewise.
1037         (mem_file_delete): Likewise.
1038         (mem_file_rewind): Likewise.
1039         (mem_file_put): Likewise.
1040         (mem_file_write): Likewise.
1041         (stdio_file_delete): Likewise.
1042         (stdio_file_flush): Likewise.
1043         (stdio_file_read): Likewise.
1044         (stdio_file_write): Likewise.
1045         (stdio_file_write_async_safe): Likewise.
1046         (stdio_file_fputs): Likewise.
1047         (stdio_file_isatty): Likewise.
1048         (stdio_file_fseek): Likewise.
1049         (tee_file_delete): Likewise.
1050         (tee_file_flush): Likewise.
1051         (tee_file_write): Likewise.
1052         (tee_file_fputs): Likewise.
1053         (tee_file_isatty): Likewise.
1054         * ui-out.c (do_cleanup_table_end): Likewise.
1055         (do_cleanup_end): Likewise.
1056         * user-regs.c (user_reg_add): Likewise.
1057         (user_reg_map_name_to_regnum): Likewise.
1058         (usernum_to_user_reg): Likewise.
1059         (maintenance_print_user_registers): Likewise.
1060         * utils.c (do_bfd_close_cleanup): Likewise.
1061         (do_fclose_cleanup): Likewise.
1062         (do_obstack_free): Likewise.
1063         (do_ui_file_delete): Likewise.
1064         (do_ui_out_redirect_pop): Likewise.
1065         (do_free_section_addr_info): Likewise.
1066         (restore_integer): Likewise.
1067         (do_unpush_target): Likewise.
1068         (do_htab_delete_cleanup): Likewise.
1069         (do_restore_ui_file): Likewise.
1070         (do_value_free): Likewise.
1071         (do_free_so): Likewise.
1072         (free_current_contents): Likewise.
1073         (do_regfree_cleanup): Likewise.
1074         (core_addr_hash): Likewise.
1075         (core_addr_eq): Likewise.
1076         (do_free_char_ptr_vec): Likewise.
1077         * v850-tdep.c (v850_frame_cache): Likewise.
1078         * varobj.c (do_free_variable_cleanup): Likewise.
1079         * vax-tdep.c (vax_supply_gregset): Likewise.
1080         (vax_frame_cache): Likewise.
1081         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1082         * xml-support.c (gdb_xml_body_text): Likewise.
1083         (gdb_xml_values_cleanup): Likewise.
1084         (gdb_xml_start_element): Likewise.
1085         (gdb_xml_start_element_wrapper): Likewise.
1086         (gdb_xml_end_element): Likewise.
1087         (gdb_xml_end_element_wrapper): Likewise.
1088         (gdb_xml_cleanup): Likewise.
1089         (gdb_xml_fetch_external_entity): Likewise.
1090         (gdb_xml_parse_attr_enum): Likewise.
1091         (xinclude_start_include): Likewise.
1092         (xinclude_end_include): Likewise.
1093         (xml_xinclude_default): Likewise.
1094         (xml_xinclude_start_doctype): Likewise.
1095         (xml_xinclude_end_doctype): Likewise.
1096         (xml_xinclude_cleanup): Likewise.
1097         (xml_fetch_content_from_file): Likewise.
1098         * xml-syscall.c (free_syscalls_info): Likewise.
1099         (syscall_start_syscall): Likewise.
1100         * xml-tdesc.c (tdesc_end_arch): Likewise.
1101         (tdesc_end_osabi): Likewise.
1102         (tdesc_end_compatible): Likewise.
1103         (tdesc_start_target): Likewise.
1104         (tdesc_start_feature): Likewise.
1105         (tdesc_start_reg): Likewise.
1106         (tdesc_start_union): Likewise.
1107         (tdesc_start_struct): Likewise.
1108         (tdesc_start_flags): Likewise.
1109         (tdesc_start_field): Likewise.
1110         (tdesc_start_vector): Likewise.
1111         (fetch_available_features_from_target): Likewise.
1112         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1113         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1114         (xtensa_frame_cache): Likewise.
1115         (xtensa_frame_prev_register): Likewise.
1116         (xtensa_extract_return_value): Likewise.
1117
1118 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1119
1120         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1121         (aarch64_make_stub_cache): Likewise.
1122         (value_of_aarch64_user_reg): Likewise.
1123         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1124         (get_ada_inferior_data): Likewise.
1125         (get_ada_pspace_data): Likewise.
1126         (ada_pspace_data_cleanup): Likewise.
1127         (ada_complete_symbol_matcher): Likewise.
1128         (ada_exc_search_name_matches): Likewise.
1129         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1130         (get_ada_tasks_inferior_data): Likewise.
1131         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1132         (splay_obstack_alloc): Likewise.
1133         (splay_obstack_free): Likewise.
1134         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1135         (alpha_linux_collect_gregset): Likewise.
1136         (alpha_linux_supply_fpregset): Likewise.
1137         (alpha_linux_collect_fpregset): Likewise.
1138         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1139         * alpha-tdep.c (alpha_lds): Likewise.
1140         (alpha_sts): Likewise.
1141         (alpha_sigtramp_frame_unwind_cache): Likewise.
1142         (alpha_heuristic_frame_unwind_cache): Likewise.
1143         (alpha_supply_int_regs): Likewise.
1144         (alpha_fill_int_regs): Likewise.
1145         (alpha_supply_fp_regs): Likewise.
1146         (alpha_fill_fp_regs): Likewise.
1147         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1148         (alphanbsd_aout_supply_gregset): Likewise.
1149         (alphanbsd_supply_gregset): Likewise.
1150         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1151         (amd64_x32_linux_init_abi): Likewise.
1152         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1153         (amd64_collect_native_gregset): Likewise.
1154         * amd64-tdep.c (amd64_frame_cache): Likewise.
1155         (amd64_sigtramp_frame_cache): Likewise.
1156         (amd64_epilogue_frame_cache): Likewise.
1157         (amd64_supply_fxsave): Likewise.
1158         (amd64_supply_xsave): Likewise.
1159         (amd64_collect_fxsave): Likewise.
1160         (amd64_collect_xsave): Likewise.
1161         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1162         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1163         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1164         (arm_linux_collect_gregset): Likewise.
1165         (arm_linux_supply_nwfpe): Likewise.
1166         (arm_linux_collect_nwfpe): Likewise.
1167         (arm_linux_supply_vfp): Likewise.
1168         (arm_linux_collect_vfp): Likewise.
1169         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1170         (arm_prologue_unwind_stop_reason): Likewise.
1171         (arm_prologue_this_id): Likewise.
1172         (arm_prologue_prev_register): Likewise.
1173         (arm_exidx_data_free): Likewise.
1174         (arm_find_exidx_entry): Likewise.
1175         (arm_stub_this_id): Likewise.
1176         (arm_m_exception_this_id): Likewise.
1177         (arm_m_exception_prev_register): Likewise.
1178         (arm_normal_frame_base): Likewise.
1179         (gdb_print_insn_arm): Likewise.
1180         (arm_objfile_data_free): Likewise.
1181         (arm_record_special_symbol): Likewise.
1182         (value_of_arm_user_reg): Likewise.
1183         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1184         (armbsd_supply_gregset): Likewise.
1185         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1186         (get_auto_load_pspace_data): Likewise.
1187         (hash_loaded_script_entry): Likewise.
1188         (eq_loaded_script_entry): Likewise.
1189         (clear_section_scripts): Likewise.
1190         (collect_matching_scripts): Likewise.
1191         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1192         (get_auxv_inferior_data): Likewise.
1193         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1194         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1195         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1196         (target_bfd_xclose): Likewise.
1197         (target_bfd_get_section_table): Likewise.
1198         * bfin-tdep.c (bfin_frame_cache): Likewise.
1199         * block.c (find_block_in_blockvector): Likewise.
1200         (call_site_for_pc): Likewise.
1201         (block_find_non_opaque_type_preferred): Likewise.
1202         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1203         (signal_catchpoint_remove_location): Likewise.
1204         (signal_catchpoint_breakpoint_hit): Likewise.
1205         (signal_catchpoint_print_one): Likewise.
1206         (signal_catchpoint_print_mention): Likewise.
1207         (signal_catchpoint_print_recreate): Likewise.
1208         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1209         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1210         (bp_location_compare_addrs): Likewise.
1211         (get_first_locp_gte_addr): Likewise.
1212         (check_tracepoint_command): Likewise.
1213         (do_map_commands_command): Likewise.
1214         (get_breakpoint_objfile_data): Likewise.
1215         (free_breakpoint_probes): Likewise.
1216         (do_captured_breakpoint_query): Likewise.
1217         (compare_breakpoints): Likewise.
1218         (bp_location_compare): Likewise.
1219         (bpstat_remove_breakpoint_callback): Likewise.
1220         (do_delete_breakpoint_cleanup): Likewise.
1221         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1222         (bsd_uthread_set_collect_uthread): Likewise.
1223         (bsd_uthread_activate): Likewise.
1224         (bsd_uthread_fetch_registers): Likewise.
1225         (bsd_uthread_store_registers): Likewise.
1226         * btrace.c (check_xml_btrace_version): Likewise.
1227         (parse_xml_btrace_block): Likewise.
1228         (parse_xml_btrace_pt_config_cpu): Likewise.
1229         (parse_xml_btrace_pt_raw): Likewise.
1230         (parse_xml_btrace_pt): Likewise.
1231         (parse_xml_btrace_conf_bts): Likewise.
1232         (parse_xml_btrace_conf_pt): Likewise.
1233         (do_btrace_data_cleanup): Likewise.
1234         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1235         * charset.c (cleanup_iconv): Likewise.
1236         (do_cleanup_iterator): Likewise.
1237         * cli-out.c (cli_uiout_dtor): Likewise.
1238         (cli_table_begin): Likewise.
1239         (cli_table_body): Likewise.
1240         (cli_table_end): Likewise.
1241         (cli_table_header): Likewise.
1242         (cli_begin): Likewise.
1243         (cli_end): Likewise.
1244         (cli_field_int): Likewise.
1245         (cli_field_skip): Likewise.
1246         (cli_field_string): Likewise.
1247         (cli_field_fmt): Likewise.
1248         (cli_spaces): Likewise.
1249         (cli_text): Likewise.
1250         (cli_message): Likewise.
1251         (cli_wrap_hint): Likewise.
1252         (cli_flush): Likewise.
1253         (cli_redirect): Likewise.
1254         (out_field_fmt): Likewise.
1255         (field_separator): Likewise.
1256         (cli_out_set_stream): Likewise.
1257         * cli/cli-cmds.c (compare_symtabs): Likewise.
1258         * cli/cli-dump.c (call_dump_func): Likewise.
1259         (restore_section_callback): Likewise.
1260         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1261         (do_restore_user_call_depth): Likewise.
1262         (do_free_command_lines_cleanup): Likewise.
1263         * coff-pe-read.c (get_section_vmas): Likewise.
1264         (pe_as16): Likewise.
1265         (pe_as32): Likewise.
1266         * coffread.c (coff_symfile_read): Likewise.
1267         * common/agent.c (agent_look_up_symbols): Likewise.
1268         * common/filestuff.c (do_close_cleanup): Likewise.
1269         * common/format.c (free_format_pieces_cleanup): Likewise.
1270         * common/vec.c (vec_o_reserve): Likewise.
1271         * compile/compile-c-support.c (print_one_macro): Likewise.
1272         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1273         (eq_symbol_error): Likewise.
1274         (del_symbol_error): Likewise.
1275         (error_symbol_once): Likewise.
1276         (gcc_convert_symbol): Likewise.
1277         (gcc_symbol_address): Likewise.
1278         (hash_symname): Likewise.
1279         (eq_symname): Likewise.
1280         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1281         (eq_type_map_instance): Likewise.
1282         (insert_type): Likewise.
1283         (convert_type): Likewise.
1284         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1285         (setup_sections): Likewise.
1286         (link_hash_table_free): Likewise.
1287         (copy_sections): Likewise.
1288         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1289         * compile/compile.c (compile_print_value): Likewise.
1290         (do_rmdir): Likewise.
1291         (cleanup_compile_instance): Likewise.
1292         (cleanup_unlink_file): Likewise.
1293         * completer.c (free_completion_tracker): Likewise.
1294         * corelow.c (add_to_spuid_list): Likewise.
1295         * cp-namespace.c (reset_directive_searched): Likewise.
1296         * cp-support.c (reset_directive_searched): Likewise.
1297         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1298         (cris_frame_unwind_cache): Likewise.
1299         * d-lang.c (builtin_d_type): Likewise.
1300         * d-namespace.c (reset_directive_searched): Likewise.
1301         * dbxread.c (dbx_free_symfile_info): Likewise.
1302         (do_free_bincl_list_cleanup): Likewise.
1303         * disasm.c (hash_dis_line_entry): Likewise.
1304         (eq_dis_line_entry): Likewise.
1305         (dis_asm_print_address): Likewise.
1306         (fprintf_disasm): Likewise.
1307         (do_ui_file_delete): Likewise.
1308         * doublest.c (convert_floatformat_to_doublest): Likewise.
1309         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1310         (dummy_frame_prev_register): Likewise.
1311         (dummy_frame_this_id): Likewise.
1312         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1313         (cache_eq): Likewise.
1314         (cache_find): Likewise.
1315         (tailcall_frame_this_id): Likewise.
1316         (dwarf2_tailcall_prev_register_first): Likewise.
1317         (tailcall_frame_prev_register): Likewise.
1318         (tailcall_frame_dealloc_cache): Likewise.
1319         (tailcall_frame_prev_arch): Likewise.
1320         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1321         (dwarf2_frame_set_init_reg): Likewise.
1322         (dwarf2_frame_init_reg): Likewise.
1323         (dwarf2_frame_set_signal_frame_p): Likewise.
1324         (dwarf2_frame_signal_frame_p): Likewise.
1325         (dwarf2_frame_set_adjust_regnum): Likewise.
1326         (dwarf2_frame_adjust_regnum): Likewise.
1327         (clear_pointer_cleanup): Likewise.
1328         (dwarf2_frame_cache): Likewise.
1329         (find_cie): Likewise.
1330         (dwarf2_frame_find_fde): Likewise.
1331         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1332         (free_dwarf_expr_context_cleanup): Likewise.
1333         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1334         (locexpr_get_frame_base): Likewise.
1335         (loclist_find_frame_base_location): Likewise.
1336         (loclist_get_frame_base): Likewise.
1337         (dwarf_expr_dwarf_call): Likewise.
1338         (dwarf_expr_get_base_type): Likewise.
1339         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1340         (dwarf_expr_get_obj_addr): Likewise.
1341         (entry_data_value_coerce_ref): Likewise.
1342         (entry_data_value_copy_closure): Likewise.
1343         (entry_data_value_free_closure): Likewise.
1344         (get_frame_address_in_block_wrapper): Likewise.
1345         (dwarf2_evaluate_property): Likewise.
1346         (dwarf2_compile_property_to_c): Likewise.
1347         (needs_frame_read_addr_from_reg): Likewise.
1348         (needs_frame_get_reg_value): Likewise.
1349         (needs_frame_frame_base): Likewise.
1350         (needs_frame_frame_cfa): Likewise.
1351         (needs_frame_tls_address): Likewise.
1352         (needs_frame_dwarf_call): Likewise.
1353         (needs_dwarf_reg_entry_value): Likewise.
1354         (get_ax_pc): Likewise.
1355         (locexpr_read_variable): Likewise.
1356         (locexpr_read_variable_at_entry): Likewise.
1357         (locexpr_read_needs_frame): Likewise.
1358         (locexpr_describe_location): Likewise.
1359         (locexpr_tracepoint_var_ref): Likewise.
1360         (locexpr_generate_c_location): Likewise.
1361         (loclist_read_variable): Likewise.
1362         (loclist_read_variable_at_entry): Likewise.
1363         (loclist_describe_location): Likewise.
1364         (loclist_tracepoint_var_ref): Likewise.
1365         (loclist_generate_c_location): Likewise.
1366         * dwarf2read.c (line_header_hash_voidp): Likewise.
1367         (line_header_eq_voidp): Likewise.
1368         (dwarf2_has_info): Likewise.
1369         (dwarf2_get_section_info): Likewise.
1370         (locate_dwz_sections): Likewise.
1371         (hash_file_name_entry): Likewise.
1372         (eq_file_name_entry): Likewise.
1373         (delete_file_name_entry): Likewise.
1374         (dw2_setup): Likewise.
1375         (dw2_get_file_names_reader): Likewise.
1376         (dw2_find_pc_sect_compunit_symtab): Likewise.
1377         (hash_signatured_type): Likewise.
1378         (eq_signatured_type): Likewise.
1379         (add_signatured_type_cu_to_table): Likewise.
1380         (create_debug_types_hash_table): Likewise.
1381         (lookup_dwo_signatured_type): Likewise.
1382         (lookup_dwp_signatured_type): Likewise.
1383         (lookup_signatured_type): Likewise.
1384         (hash_type_unit_group): Likewise.
1385         (eq_type_unit_group): Likewise.
1386         (get_type_unit_group): Likewise.
1387         (process_psymtab_comp_unit_reader): Likewise.
1388         (sort_tu_by_abbrev_offset): Likewise.
1389         (process_skeletonless_type_unit): Likewise.
1390         (psymtabs_addrmap_cleanup): Likewise.
1391         (dwarf2_read_symtab): Likewise.
1392         (psymtab_to_symtab_1): Likewise.
1393         (die_hash): Likewise.
1394         (die_eq): Likewise.
1395         (load_full_comp_unit_reader): Likewise.
1396         (reset_die_in_process): Likewise.
1397         (free_cu_line_header): Likewise.
1398         (handle_DW_AT_stmt_list): Likewise.
1399         (hash_dwo_file): Likewise.
1400         (eq_dwo_file): Likewise.
1401         (hash_dwo_unit): Likewise.
1402         (eq_dwo_unit): Likewise.
1403         (create_dwo_cu_reader): Likewise.
1404         (create_dwo_unit_in_dwp_v1): Likewise.
1405         (create_dwo_unit_in_dwp_v2): Likewise.
1406         (lookup_dwo_unit_in_dwp): Likewise.
1407         (dwarf2_locate_dwo_sections): Likewise.
1408         (dwarf2_locate_common_dwp_sections): Likewise.
1409         (dwarf2_locate_v2_dwp_sections): Likewise.
1410         (hash_dwp_loaded_cutus): Likewise.
1411         (eq_dwp_loaded_cutus): Likewise.
1412         (lookup_dwo_cutu): Likewise.
1413         (abbrev_table_free_cleanup): Likewise.
1414         (dwarf2_free_abbrev_table): Likewise.
1415         (find_partial_die_in_comp_unit): Likewise.
1416         (free_line_header_voidp): Likewise.
1417         (follow_die_offset): Likewise.
1418         (follow_die_sig_1): Likewise.
1419         (free_heap_comp_unit): Likewise.
1420         (free_stack_comp_unit): Likewise.
1421         (dwarf2_free_objfile): Likewise.
1422         (per_cu_offset_and_type_hash): Likewise.
1423         (per_cu_offset_and_type_eq): Likewise.
1424         (get_die_type_at_offset): Likewise.
1425         (partial_die_hash): Likewise.
1426         (partial_die_eq): Likewise.
1427         (dwarf2_per_objfile_free): Likewise.
1428         (hash_strtab_entry): Likewise.
1429         (eq_strtab_entry): Likewise.
1430         (add_string): Likewise.
1431         (hash_symtab_entry): Likewise.
1432         (eq_symtab_entry): Likewise.
1433         (delete_symtab_entry): Likewise.
1434         (cleanup_mapped_symtab): Likewise.
1435         (add_indices_to_cpool): Likewise.
1436         (hash_psymtab_cu_index): Likewise.
1437         (eq_psymtab_cu_index): Likewise.
1438         (add_address_entry_worker): Likewise.
1439         (unlink_if_set): Likewise.
1440         (write_one_signatured_type): Likewise.
1441         (save_gdb_index_command): Likewise.
1442         * elfread.c (elf_symtab_read): Likewise.
1443         (elf_gnu_ifunc_cache_hash): Likewise.
1444         (elf_gnu_ifunc_cache_eq): Likewise.
1445         (elf_gnu_ifunc_record_cache): Likewise.
1446         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1447         (elf_get_probes): Likewise.
1448         (probe_key_free): Likewise.
1449         * f-lang.c (builtin_f_type): Likewise.
1450         * frame-base.c (frame_base_append_sniffer): Likewise.
1451         (frame_base_set_default): Likewise.
1452         (frame_base_find_by_frame): Likewise.
1453         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1454         (frame_unwind_append_unwinder): Likewise.
1455         (frame_unwind_find_by_frame): Likewise.
1456         * frame.c (frame_addr_hash): Likewise.
1457         (frame_addr_hash_eq): Likewise.
1458         (frame_stash_find): Likewise.
1459         (do_frame_register_read): Likewise.
1460         (unwind_to_current_frame): Likewise.
1461         (frame_cleanup_after_sniffer): Likewise.
1462         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1463         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1464         * ft32-tdep.c (ft32_frame_cache): Likewise.
1465         * gcore.c (do_bfd_delete_cleanup): Likewise.
1466         (gcore_create_callback): Likewise.
1467         * gdb_bfd.c (hash_bfd): Likewise.
1468         (eq_bfd): Likewise.
1469         (gdb_bfd_open): Likewise.
1470         (free_one_bfd_section): Likewise.
1471         (gdb_bfd_ref): Likewise.
1472         (gdb_bfd_unref): Likewise.
1473         (get_section_descriptor): Likewise.
1474         (gdb_bfd_map_section): Likewise.
1475         (gdb_bfd_crc): Likewise.
1476         (gdb_bfd_mark_parent): Likewise.
1477         (gdb_bfd_record_inclusion): Likewise.
1478         (gdb_bfd_requires_relocations): Likewise.
1479         (print_one_bfd): Likewise.
1480         * gdbtypes.c (type_pair_hash): Likewise.
1481         (type_pair_eq): Likewise.
1482         (builtin_type): Likewise.
1483         (objfile_type): Likewise.
1484         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1485         (vtable_address_point_offset): Likewise.
1486         (gnuv3_get_vtable): Likewise.
1487         (hash_value_and_voffset): Likewise.
1488         (eq_value_and_voffset): Likewise.
1489         (compare_value_and_voffset): Likewise.
1490         (compute_vtable_size): Likewise.
1491         (gnuv3_get_typeid_type): Likewise.
1492         * go-lang.c (builtin_go_type): Likewise.
1493         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1494         (bkscm_eq_block_smob): Likewise.
1495         (bkscm_objfile_block_map): Likewise.
1496         (bkscm_del_objfile_blocks): Likewise.
1497         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1498         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1499         (gdbscm_disasm_print_address): Likewise.
1500         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1501         (frscm_eq_frame_smob): Likewise.
1502         (frscm_inferior_frame_map): Likewise.
1503         (frscm_del_inferior_frames): Likewise.
1504         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1505         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1506         (ofscm_objfile_smob_from_objfile): Likewise.
1507         * guile/scm-ports.c (ioscm_write): Likewise.
1508         (ioscm_file_port_delete): Likewise.
1509         (ioscm_file_port_rewind): Likewise.
1510         (ioscm_file_port_put): Likewise.
1511         (ioscm_file_port_write): Likewise.
1512         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1513         (psscm_pspace_smob_from_pspace): Likewise.
1514         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1515         (scscm_recording_unwind_handler): Likewise.
1516         (gdbscm_with_catch): Likewise.
1517         (scscm_call_0_body): Likewise.
1518         (scscm_call_1_body): Likewise.
1519         (scscm_call_2_body): Likewise.
1520         (scscm_call_3_body): Likewise.
1521         (scscm_call_4_body): Likewise.
1522         (scscm_apply_1_body): Likewise.
1523         (scscm_eval_scheme_string): Likewise.
1524         (gdbscm_safe_eval_string): Likewise.
1525         (scscm_source_scheme_script): Likewise.
1526         (gdbscm_safe_source_script): Likewise.
1527         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1528         (gdbscm_call_scm_from_stringn): Likewise.
1529         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1530         (syscm_eq_symbol_smob): Likewise.
1531         (syscm_get_symbol_map): Likewise.
1532         (syscm_del_objfile_symbols): Likewise.
1533         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1534         (stscm_eq_symtab_smob): Likewise.
1535         (stscm_objfile_symtab_map): Likewise.
1536         (stscm_del_objfile_symtabs): Likewise.
1537         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1538         (tyscm_eq_type_smob): Likewise.
1539         (tyscm_type_map): Likewise.
1540         (tyscm_copy_type_recursive): Likewise.
1541         (save_objfile_types): Likewise.
1542         * guile/scm-utils.c (extract_arg): Likewise.
1543         * h8300-tdep.c (h8300_frame_cache): Likewise.
1544         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1545         * hppa-tdep.c (compare_unwind_entries): Likewise.
1546         (find_unwind_entry): Likewise.
1547         (hppa_frame_cache): Likewise.
1548         (hppa_stub_frame_unwind_cache): Likewise.
1549         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1550         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1551         (hppaobsd_supply_fpregset): Likewise.
1552         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1553         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1554         * i386-tdep.c (i386_frame_cache): Likewise.
1555         (i386_epilogue_frame_cache): Likewise.
1556         (i386_sigtramp_frame_cache): Likewise.
1557         (i386_supply_gregset): Likewise.
1558         (i386_collect_gregset): Likewise.
1559         (i386_gdbarch_init): Likewise.
1560         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1561         (i386obsd_trapframe_cache): Likewise.
1562         * i387-tdep.c (i387_supply_fsave): Likewise.
1563         (i387_collect_fsave): Likewise.
1564         (i387_supply_fxsave): Likewise.
1565         (i387_collect_fxsave): Likewise.
1566         (i387_supply_xsave): Likewise.
1567         (i387_collect_xsave): Likewise.
1568         * ia64-tdep.c (ia64_frame_cache): Likewise.
1569         (ia64_sigtramp_frame_cache): Likewise.
1570         * infcmd.c (attach_command_continuation): Likewise.
1571         (attach_command_continuation_free_args): Likewise.
1572         * inferior.c (restore_inferior): Likewise.
1573         (delete_thread_of_inferior): Likewise.
1574         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1575         (get_inflow_inferior_data): Likewise.
1576         (inflow_inferior_exit): Likewise.
1577         * infrun.c (displaced_step_clear_cleanup): Likewise.
1578         (restore_current_uiout_cleanup): Likewise.
1579         (release_stop_context_cleanup): Likewise.
1580         (do_restore_infcall_suspend_state_cleanup): Likewise.
1581         (do_restore_infcall_control_state_cleanup): Likewise.
1582         (restore_inferior_ptid): Likewise.
1583         * inline-frame.c (block_starting_point_at): Likewise.
1584         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1585         * jit.c (get_jit_objfile_data): Likewise.
1586         (get_jit_program_space_data): Likewise.
1587         (jit_object_close_impl): Likewise.
1588         (jit_find_objf_with_entry_addr): Likewise.
1589         (jit_breakpoint_deleted): Likewise.
1590         (jit_unwind_reg_set_impl): Likewise.
1591         (jit_unwind_reg_get_impl): Likewise.
1592         (jit_dealloc_cache): Likewise.
1593         (jit_frame_sniffer): Likewise.
1594         (jit_frame_prev_register): Likewise.
1595         (jit_prepend_unwinder): Likewise.
1596         (jit_inferior_exit_hook): Likewise.
1597         (free_objfile_data): Likewise.
1598         * jv-lang.c (jv_per_objfile_free): Likewise.
1599         (get_dynamics_objfile): Likewise.
1600         (get_java_class_symtab): Likewise.
1601         (builtin_java_type): Likewise.
1602         * language.c (language_string_char_type): Likewise.
1603         (language_bool_type): Likewise.
1604         (language_lookup_primitive_type): Likewise.
1605         (language_lookup_primitive_type_as_symbol): Likewise.
1606         * linespec.c (hash_address_entry): Likewise.
1607         (eq_address_entry): Likewise.
1608         (iterate_inline_only): Likewise.
1609         (iterate_name_matcher): Likewise.
1610         (decode_line_2_compare_items): Likewise.
1611         (collect_one_symbol): Likewise.
1612         (compare_symbols): Likewise.
1613         (compare_msymbols): Likewise.
1614         (add_symtabs_to_list): Likewise.
1615         (collect_symbols): Likewise.
1616         (compare_msyms): Likewise.
1617         (add_minsym): Likewise.
1618         (cleanup_linespec_result): Likewise.
1619         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1620         * linux-nat.c (delete_lwp_cleanup): Likewise.
1621         (count_events_callback): Likewise.
1622         (select_event_lwp_callback): Likewise.
1623         (resume_stopped_resumed_lwps): Likewise.
1624         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1625         (invalidate_linux_cache_inf): Likewise.
1626         (get_linux_inferior_data): Likewise.
1627         (linux_find_memory_regions_thunk): Likewise.
1628         (linux_make_mappings_callback): Likewise.
1629         (linux_corefile_thread_callback): Likewise.
1630         (find_mapping_size): Likewise.
1631         * linux-thread-db.c (find_new_threads_callback): Likewise.
1632         * lm32-tdep.c (lm32_frame_cache): Likewise.
1633         * m2-lang.c (builtin_m2_type): Likewise.
1634         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1635         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1636         (m32r_linux_supply_gregset): Likewise.
1637         (m32r_linux_collect_gregset): Likewise.
1638         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1639         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1640         * m68k-tdep.c (m68k_frame_cache): Likewise.
1641         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1642         (m68kbsd_supply_gregset): Likewise.
1643         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1644         * m88k-tdep.c (m88k_frame_cache): Likewise.
1645         (m88k_supply_gregset): Likewise.
1646
1647 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1648
1649         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1650         to allocation result assignment.
1651         * ada-exp.y (write_object_renaming): Likewise.
1652         (write_ambiguous_var): Likewise.
1653         (ada_nget_field_index): Likewise.
1654         (write_var_or_type): Likewise.
1655         * ada-lang.c (ada_decode_symbol): Likewise.
1656         (ada_value_assign): Likewise.
1657         (value_pointer): Likewise.
1658         (cache_symbol): Likewise.
1659         (add_nonlocal_symbols): Likewise.
1660         (ada_name_for_lookup): Likewise.
1661         (symbol_completion_add): Likewise.
1662         (ada_to_fixed_type_1): Likewise.
1663         (ada_get_next_arg): Likewise.
1664         (defns_collected): Likewise.
1665         * ada-lex.l (processId): Likewise.
1666         (processString): Likewise.
1667         * ada-tasks.c (read_known_tasks_array): Likewise.
1668         (read_known_tasks_list): Likewise.
1669         * ada-typeprint.c (decoded_type_name): Likewise.
1670         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1671         * amd64-tdep.c (amd64_push_arguments): Likewise.
1672         (amd64_displaced_step_copy_insn): Likewise.
1673         (amd64_classify_insn_at): Likewise.
1674         (amd64_relocate_instruction): Likewise.
1675         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1676         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1677         (initialize_current_architecture): Likewise.
1678         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1679         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1680         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1681         (arm_push_dummy_call): Likewise.
1682         (extend_buffer_earlier): Likewise.
1683         (arm_adjust_breakpoint_address): Likewise.
1684         (arm_skip_stub): Likewise.
1685         * auto-load.c (filename_is_in_pattern): Likewise.
1686         (maybe_add_script_file): Likewise.
1687         (maybe_add_script_text): Likewise.
1688         (auto_load_objfile_script_1): Likewise.
1689         * auxv.c (ld_so_xfer_auxv): Likewise.
1690         * ax-general.c (new_agent_expr): Likewise.
1691         (grow_expr): Likewise.
1692         (ax_reg_mask): Likewise.
1693         * bcache.c (bcache_full): Likewise.
1694         * breakpoint.c (program_breakpoint_here_p): Likewise.
1695         * btrace.c (parse_xml_raw): Likewise.
1696         * build-id.c (build_id_to_debug_bfd): Likewise.
1697         * buildsym.c (end_symtab_with_blockvector): Likewise.
1698         * c-exp.y (string_exp): Likewise.
1699         (qualified_name): Likewise.
1700         (write_destructor_name): Likewise.
1701         (operator_stoken): Likewise.
1702         (parse_number): Likewise.
1703         (scan_macro_expansion): Likewise.
1704         (yylex): Likewise.
1705         (c_print_token): Likewise.
1706         * c-lang.c (c_get_string): Likewise.
1707         (emit_numeric_character): Likewise.
1708         * charset.c (wchar_iterate): Likewise.
1709         * cli/cli-cmds.c (complete_command): Likewise.
1710         (make_command): Likewise.
1711         * cli/cli-dump.c (restore_section_callback): Likewise.
1712         (restore_binary_file): Likewise.
1713         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1714         * cli/cli-script.c (execute_control_command): Likewise.
1715         * cli/cli-setshow.c (do_set_command): Likewise.
1716         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1717         (read_pe_exported_syms): Likewise.
1718         * coffread.c (coff_read_struct_type): Likewise.
1719         (coff_read_enum_type): Likewise.
1720         * common/btrace-common.c (btrace_data_append): Likewise.
1721         * common/buffer.c (buffer_grow): Likewise.
1722         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1723         * common/format.c (parse_format_string): Likewise.
1724         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1725         * common/xml-utils.c (xml_escape_text): Likewise.
1726         * compile/compile-object-load.c (copy_sections): Likewise.
1727         (compile_object_load): Likewise.
1728         * compile/compile-object-run.c (compile_object_run): Likewise.
1729         * completer.c (filename_completer): Likewise.
1730         * corefile.c (read_memory_typed_address): Likewise.
1731         (write_memory_unsigned_integer): Likewise.
1732         (write_memory_signed_integer): Likewise.
1733         (complete_set_gnutarget): Likewise.
1734         * corelow.c (get_core_register_section): Likewise.
1735         * cp-name-parser.y (d_grab): Likewise.
1736         (allocate_info): Likewise.
1737         (cp_new_demangle_parse_info): Likewise.
1738         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1739         (cp_lookup_symbol_in_namespace): Likewise.
1740         (lookup_namespace_scope): Likewise.
1741         (find_symbol_in_baseclass): Likewise.
1742         (cp_lookup_nested_symbol): Likewise.
1743         (cp_lookup_transparent_type_loop): Likewise.
1744         * cp-support.c (copy_string_to_obstack): Likewise.
1745         (make_symbol_overload_list): Likewise.
1746         (make_symbol_overload_list_namespace): Likewise.
1747         (make_symbol_overload_list_adl_namespace): Likewise.
1748         (first_component_command): Likewise.
1749         * cp-valprint.c (cp_print_value): Likewise.
1750         * ctf.c (ctf_xfer_partial): Likewise.
1751         * d-exp.y (StringExp): Likewise.
1752         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1753         (lookup_module_scope): Likewise.
1754         (find_symbol_in_baseclass): Likewise.
1755         (d_lookup_nested_symbol): Likewise.
1756         * dbxread.c (find_stab_function_addr): Likewise.
1757         (read_dbx_symtab): Likewise.
1758         (dbx_end_psymtab): Likewise.
1759         (cp_set_block_scope): Likewise.
1760         * dcache.c (dcache_alloc): Likewise.
1761         * demangle.c (_initialize_demangler): Likewise.
1762         * dicos-tdep.c (dicos_load_module_p): Likewise.
1763         * dictionary.c (dict_create_hashed_expandable): Likewise.
1764         (dict_create_linear_expandable): Likewise.
1765         (expand_hashtable): Likewise.
1766         (add_symbol_linear_expandable): Likewise.
1767         * dwarf2-frame.c (add_cie): Likewise.
1768         (add_fde): Likewise.
1769         (dwarf2_build_frame_info): Likewise.
1770         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1771         (dwarf_expr_fetch_address): Likewise.
1772         (add_piece): Likewise.
1773         (execute_stack_op): Likewise.
1774         * dwarf2loc.c (chain_candidate): Likewise.
1775         (dwarf_entry_parameter_to_value): Likewise.
1776         (read_pieced_value): Likewise.
1777         (write_pieced_value): Likewise.
1778         * dwarf2read.c (dwarf2_read_section): Likewise.
1779         (add_type_unit): Likewise.
1780         (read_comp_units_from_section): Likewise.
1781         (fixup_go_packaging): Likewise.
1782         (dwarf2_compute_name): Likewise.
1783         (dwarf2_physname): Likewise.
1784         (create_dwo_unit_in_dwp_v1): Likewise.
1785         (create_dwo_unit_in_dwp_v2): Likewise.
1786         (read_func_scope): Likewise.
1787         (read_call_site_scope): Likewise.
1788         (dwarf2_attach_fields_to_type): Likewise.
1789         (process_structure_scope): Likewise.
1790         (mark_common_block_symbol_computed): Likewise.
1791         (read_common_block): Likewise.
1792         (abbrev_table_read_table): Likewise.
1793         (guess_partial_die_structure_name): Likewise.
1794         (fixup_partial_die): Likewise.
1795         (add_file_name): Likewise.
1796         (dwarf2_const_value_data): Likewise.
1797         (dwarf2_const_value_attr): Likewise.
1798         (build_error_marker_type): Likewise.
1799         (guess_full_die_structure_name): Likewise.
1800         (anonymous_struct_prefix): Likewise.
1801         (typename_concat): Likewise.
1802         (dwarf2_canonicalize_name): Likewise.
1803         (dwarf2_name): Likewise.
1804         (write_constant_as_bytes): Likewise.
1805         (dwarf2_fetch_constant_bytes): Likewise.
1806         (copy_string): Likewise.
1807         (parse_macro_definition): Likewise.
1808         * elfread.c (elf_symfile_segments): Likewise.
1809         (elf_rel_plt_read): Likewise.
1810         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1811         (elf_gnu_ifunc_resolve_by_got): Likewise.
1812         (elf_read_minimal_symbols): Likewise.
1813         (elf_gnu_ifunc_record_cache): Likewise.
1814         * event-top.c (top_level_prompt): Likewise.
1815         (command_line_handler): Likewise.
1816         * exec.c (resize_section_table): Likewise.
1817         * expprint.c (print_subexp_standard): Likewise.
1818         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1819         * findcmd.c (parse_find_args): Likewise.
1820         * findvar.c (address_from_register): Likewise.
1821         * frame.c (get_prev_frame_always): Likewise.
1822         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1823         (get_section_descriptor): Likewise.
1824         * gdb_obstack.c (obconcat): Likewise.
1825         (obstack_strdup): Likewise.
1826         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1827         (create_set_type): Likewise.
1828         (lookup_unsigned_typename): Likewise.
1829         (lookup_signed_typename): Likewise.
1830         (resolve_dynamic_union): Likewise.
1831         (resolve_dynamic_struct): Likewise.
1832         (add_dyn_prop): Likewise.
1833         (copy_dynamic_prop_list): Likewise.
1834         (arch_flags_type): Likewise.
1835         (append_composite_type_field_raw): Likewise.
1836         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1837         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1838         * go-exp.y (string_exp): Likewise.
1839         * go-lang.c (go_demangle): Likewise.
1840         * guile/guile.c (compute_scheme_string): Likewise.
1841         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1842         (gdbscm_canonicalize_command_name): Likewise.
1843         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1844         (ioscm_init_memory_port): Likewise.
1845         (ioscm_reinit_memory_port): Likewise.
1846         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1847         (gdbscm_gc_dup_argv): Likewise.
1848         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1849         * hppa-tdep.c (internalize_unwinds): Likewise.
1850         (read_unwind_info): Likewise.
1851         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1852         (windows_core_xfer_shared_libraries): Likewise.
1853         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1854         (i386_stap_parse_special_token_triplet): Likewise.
1855         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1856         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1857         * inf-child.c (inf_child_fileio_readlink): Likewise.
1858         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1859         (inf_ptrace_store_register): Likewise.
1860         * infrun.c (follow_exec): Likewise.
1861         (displaced_step_prepare_throw): Likewise.
1862         (save_stop_context): Likewise.
1863         (save_infcall_suspend_state): Likewise.
1864         * jit.c (jit_read_descriptor): Likewise.
1865         (jit_read_code_entry): Likewise.
1866         (jit_symtab_line_mapping_add_impl): Likewise.
1867         (finalize_symtab): Likewise.
1868         (jit_unwind_reg_get_impl): Likewise.
1869         * jv-exp.y (QualifiedName): Likewise.
1870         * jv-lang.c (get_java_utf8_name): Likewise.
1871         (type_from_class): Likewise.
1872         (java_demangle_type_signature): Likewise.
1873         (java_class_name_from_physname): Likewise.
1874         * jv-typeprint.c (java_type_print_base): Likewise.
1875         * jv-valprint.c (java_value_print): Likewise.
1876         * language.c (add_language): Likewise.
1877         * linespec.c (add_sal_to_sals_basic): Likewise.
1878         (add_sal_to_sals): Likewise.
1879         (decode_objc): Likewise.
1880         (find_linespec_symbols): Likewise.
1881         * linux-fork.c (fork_save_infrun_state): Likewise.
1882         * linux-nat.c (linux_nat_detach): Likewise.
1883         (linux_nat_fileio_readlink): Likewise.
1884         * linux-record.c (record_linux_sockaddr): Likewise.
1885         (record_linux_msghdr): Likewise.
1886         (Do): Likewise.
1887         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1888         (linux_collect_regset_section_cb): Likewise.
1889         (linux_get_siginfo_data): Likewise.
1890         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1891         (try_thread_db_load_from_dir): Likewise.
1892         (thread_db_load_search): Likewise.
1893         (info_auto_load_libthread_db): Likewise.
1894         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1895         (m32c_m16c_pointer_to_address): Likewise.
1896         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1897         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1898         * machoread.c (macho_check_dsym): Likewise.
1899         * macroexp.c (resize_buffer): Likewise.
1900         (gather_arguments): Likewise.
1901         (maybe_expand): Likewise.
1902         * macrotab.c (new_macro_key): Likewise.
1903         (new_source_file): Likewise.
1904         (new_macro_definition): Likewise.
1905         * mdebugread.c (parse_symbol): Likewise.
1906         (parse_type): Likewise.
1907         (parse_partial_symbols): Likewise.
1908         (psymtab_to_symtab_1): Likewise.
1909         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1910         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1911         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1912         (mi_cmd_data_read_memory_bytes): Likewise.
1913         (mi_cmd_data_write_memory_bytes): Likewise.
1914         (mi_cmd_trace_frame_collected): Likewise.
1915         * mi/mi-parse.c (mi_parse_argv): Likewise.
1916         (mi_parse): Likewise.
1917         * minidebug.c (lzma_open): Likewise.
1918         (lzma_pread): Likewise.
1919         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1920         (mips_print_fp_register): Likewise.
1921         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1922         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1923         * mt-tdep.c (mt_register_name): Likewise.
1924         (mt_registers_info): Likewise.
1925         (mt_push_dummy_call): Likewise.
1926         * namespace.c (add_using_directive): Likewise.
1927         * nat/linux-btrace.c (perf_event_read): Likewise.
1928         (linux_enable_bts): Likewise.
1929         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1930         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1931         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1932         (nto_parse_redirection): Likewise.
1933         * objc-lang.c (objc_demangle): Likewise.
1934         (find_methods): Likewise.
1935         * objfiles.c (get_objfile_bfd_data): Likewise.
1936         (set_objfile_main_name): Likewise.
1937         (allocate_objfile): Likewise.
1938         (objfile_relocate): Likewise.
1939         (update_section_map): Likewise.
1940         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1941         * p-exp.y (exp): Likewise.
1942         (yylex): Likewise.
1943         * p-valprint.c (pascal_object_print_value): Likewise.
1944         * parse.c (initialize_expout): Likewise.
1945         (mark_completion_tag): Likewise.
1946         (copy_name): Likewise.
1947         (parse_float): Likewise.
1948         (type_stack_reserve): Likewise.
1949         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1950         (ppu2spu_prev_register): Likewise.
1951         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1952         * printcmd.c (printf_wide_c_string): Likewise.
1953         (printf_pointer): Likewise.
1954         * probe.c (parse_probes): Likewise.
1955         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1956         (cmdpy_init): Likewise.
1957         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1958         * python/py-symtab.c (set_sal): Likewise.
1959         * python/py-unwind.c (pyuw_sniffer): Likewise.
1960         * python/python.c (python_interactive_command): Likewise.
1961         (compute_python_string): Likewise.
1962         * ravenscar-thread.c (get_running_thread_id): Likewise.
1963         * record-full.c (record_full_exec_insn): Likewise.
1964         (record_full_core_open_1): Likewise.
1965         * regcache.c (regcache_raw_read_signed): Likewise.
1966         (regcache_raw_read_unsigned): Likewise.
1967         (regcache_cooked_read_signed): Likewise.
1968         (regcache_cooked_read_unsigned): Likewise.
1969         * remote-fileio.c (remote_fileio_func_open): Likewise.
1970         (remote_fileio_func_rename): Likewise.
1971         (remote_fileio_func_unlink): Likewise.
1972         (remote_fileio_func_stat): Likewise.
1973         (remote_fileio_func_system): Likewise.
1974         * remote-mips.c (mips_xfer_memory): Likewise.
1975         (mips_load_srec): Likewise.
1976         (pmon_end_download): Likewise.
1977         * remote.c (new_remote_state): Likewise.
1978         (map_regcache_remote_table): Likewise.
1979         (remote_register_number_and_offset): Likewise.
1980         (init_remote_state): Likewise.
1981         (get_memory_packet_size): Likewise.
1982         (remote_pass_signals): Likewise.
1983         (remote_program_signals): Likewise.
1984         (remote_start_remote): Likewise.
1985         (remote_check_symbols): Likewise.
1986         (remote_query_supported): Likewise.
1987         (extended_remote_attach): Likewise.
1988         (process_g_packet): Likewise.
1989         (store_registers_using_G): Likewise.
1990         (putpkt_binary): Likewise.
1991         (read_frame): Likewise.
1992         (compare_sections_command): Likewise.
1993         (remote_hostio_pread): Likewise.
1994         (remote_hostio_readlink): Likewise.
1995         (remote_file_put): Likewise.
1996         (remote_file_get): Likewise.
1997         (remote_pid_to_exec_file): Likewise.
1998         (_initialize_remote): Likewise.
1999         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2000         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2001         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2002         (bfd_uses_spe_extensions): Likewise.
2003         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2004         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2005         * solib-dsbt.c (decode_loadmap): Likewise.
2006         (fetch_loadmap): Likewise.
2007         (scan_dyntag): Likewise.
2008         (enable_break): Likewise.
2009         (dsbt_relocate_main_executable): Likewise.
2010         * solib-frv.c (fetch_loadmap): Likewise.
2011         (enable_break2): Likewise.
2012         (frv_relocate_main_executable): Likewise.
2013         * solib-spu.c (spu_relocate_main_executable): Likewise.
2014         (spu_bfd_open): Likewise.
2015         * solib-svr4.c (lm_info_read): Likewise.
2016         (read_program_header): Likewise.
2017         (find_program_interpreter): Likewise.
2018         (scan_dyntag): Likewise.
2019         (elf_locate_base): Likewise.
2020         (open_symbol_file_object): Likewise.
2021         (read_program_headers_from_bfd): Likewise.
2022         (svr4_relocate_main_executable): Likewise.
2023         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2024         * solib.c (solib_find_1): Likewise.
2025         (exec_file_find): Likewise.
2026         (solib_find): Likewise.
2027         * source.c (openp): Likewise.
2028         (print_source_lines_base): Likewise.
2029         (forward_search_command): Likewise.
2030         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2031         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2032         (spu_get_overlay_table): Likewise.
2033         * stabsread.c (patch_block_stabs): Likewise.
2034         (define_symbol): Likewise.
2035         (again:): Likewise.
2036         (read_member_functions): Likewise.
2037         (read_one_struct_field): Likewise.
2038         (read_enum_type): Likewise.
2039         (common_block_start): Likewise.
2040         * stack.c (read_frame_arg): Likewise.
2041         (backtrace_command): Likewise.
2042         * stap-probe.c (stap_parse_register_operand): Likewise.
2043         * symfile.c (syms_from_objfile_1): Likewise.
2044         (find_separate_debug_file): Likewise.
2045         (load_command): Likewise.
2046         (load_progress): Likewise.
2047         (load_section_callback): Likewise.
2048         (reread_symbols): Likewise.
2049         (add_filename_language): Likewise.
2050         (allocate_compunit_symtab): Likewise.
2051         (read_target_long_array): Likewise.
2052         (simple_read_overlay_table): Likewise.
2053         * symtab.c (symbol_set_names): Likewise.
2054         (resize_symbol_cache): Likewise.
2055         (rbreak_command): Likewise.
2056         (completion_list_add_name): Likewise.
2057         (completion_list_objc_symbol): Likewise.
2058         (add_filename_to_list): Likewise.
2059         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2060         * target-memory.c (target_write_memory_blocks): Likewise.
2061         * target.c (target_read_string): Likewise.
2062         (read_whatever_is_readable): Likewise.
2063         (target_read_alloc_1): Likewise.
2064         (simple_search_memory): Likewise.
2065         (target_fileio_read_alloc_1): Likewise.
2066         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2067         * top.c (command_line_input): Likewise.
2068         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2069         * tracefile.c (tracefile_fetch_registers): Likewise.
2070         * tracepoint.c (add_memrange): Likewise.
2071         (init_collection_list): Likewise.
2072         (add_aexpr): Likewise.
2073         (trace_dump_actions): Likewise.
2074         (parse_trace_status): Likewise.
2075         (parse_tracepoint_definition): Likewise.
2076         (parse_tsv_definition): Likewise.
2077         (parse_static_tracepoint_marker_definition): Likewise.
2078         * tui/tui-file.c (tui_sfileopen): Likewise.
2079         (tui_file_adjust_strbuf): Likewise.
2080         * tui/tui-io.c (tui_expand_tabs): Likewise.
2081         * tui/tui-source.c (tui_set_source_content): Likewise.
2082         * typeprint.c (find_global_typedef): Likewise.
2083         * ui-file.c (do_ui_file_xstrdup): Likewise.
2084         (ui_file_obsavestring): Likewise.
2085         (mem_file_write): Likewise.
2086         * utils.c (make_hex_string): Likewise.
2087         (get_regcomp_error): Likewise.
2088         (puts_filtered_tabular): Likewise.
2089         (gdb_realpath_keepfile): Likewise.
2090         (ldirname): Likewise.
2091         (gdb_bfd_errmsg): Likewise.
2092         (substitute_path_component): Likewise.
2093         * valops.c (search_struct_method): Likewise.
2094         (find_oload_champ_namespace_loop): Likewise.
2095         * valprint.c (print_decimal_chars): Likewise.
2096         (read_string): Likewise.
2097         (generic_emit_char): Likewise.
2098         * varobj.c (varobj_delete): Likewise.
2099         (varobj_value_get_print_value): Likewise.
2100         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2101         * windows-tdep.c (display_one_tib): Likewise.
2102         * xcoffread.c (read_xcoff_symtab): Likewise.
2103         (process_xcoff_symbol): Likewise.
2104         (swap_sym): Likewise.
2105         (scan_xcoff_symtab): Likewise.
2106         (xcoff_initial_scan): Likewise.
2107         * xml-support.c (gdb_xml_end_element): Likewise.
2108         (xml_process_xincludes): Likewise.
2109         (xml_fetch_content_from_file): Likewise.
2110         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2111         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2112
2113 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2114
2115         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2116         instead of builtin_func_ptr.
2117         (ft32_pointer_to_address): New function.
2118         (ft32_address_class_type_flags): New function.
2119         (ft32_address_class_type_flags_to_name): New function.
2120         (ft32_address_class_name_to_type_flags): New function.
2121         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2122         set_gdbarch_pointer_to_address,
2123         set_gdbarch_address_class_type_flags
2124         set_gdbarch_address_class_name_to_type_flags,
2125         and set_gdbarch_address_class_type_flags_to_name.
2126         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2127
2128 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2129
2130         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2131         value is a reference, actually dereference it in order to get
2132         the underlying value.
2133
2134 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2135
2136         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2137
2138 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2139
2140         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2141         * linespec.c (linespec_lexer_lex_string): Same.
2142
2143 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2144
2145         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2146
2147 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2148
2149         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2150         variable.  Call aarch64_decode_adr instead of
2151         aarch64_decode_adrp.
2152         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2153         (aarch64_decode_adr): New function declaration.
2154         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2155         (aarch64_decode_adr): New function, factored out from
2156         aarch64_decode_adrp to decode both adr and adrp instructions.
2157
2158 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2159
2160         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2161         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2162         (aarch64-insn.o): New rule.
2163         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2164         (aarch64*-*-linux*): Likewise.
2165         * arch/aarch64-insn.c: New file.
2166         * arch/aarch64-insn.h: New file.
2167         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2168         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2169         arch/aarch64-insn.h.
2170         (decode_add_sub_imm): Rename to ...
2171         (aarch64_decode_add_sub_imm): ... this.
2172         (decode_adrp): Rename to ...
2173         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2174         Declare in arch/aarch64-insn.h.
2175         (decode_b): Rename to ...
2176         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2177         Declare in arch/aarch64-insn.h.
2178         (decode_bcond): Rename to ...
2179         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2180         Declare in arch/aarch64-insn.h.
2181         (decode_br): Rename to ...
2182         (aarch64_decode_br): ... this.
2183         (decode_cb): Rename to ...
2184         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2185         Declare in arch/aarch64-insn.h.
2186         (decode_eret): Rename to ...
2187         (aarch64_decode_eret): ... this.
2188         (decode_movz): Rename to ...
2189         (aarch64_decode_movz): ... this.
2190         (decode_orr_shifted_register_x): Rename to ...
2191         (aarch64_decode_orr_shifted_register_x): ... this.
2192         (decode_ret): Rename to ...
2193         (aarch64_decode_ret): ... this.
2194         (decode_stp_offset): Rename to ...
2195         (aarch64_decode_stp_offset): ... this.
2196         (decode_stp_offset_wb): Rename to ...
2197         (aarch64_decode_stp_offset_wb): ... this.
2198         (decode_stur): Rename to ...
2199         (aarch64_decode_stur): ... this.
2200         (decode_tb): Rename to ...
2201         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2202         Declare in arch/aarch64-insn.h.
2203         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2204
2205 2015-09-20  Doug Evans  <xdje42@gmail.com>
2206
2207         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2208
2209 2015-09-20  Doug Evans  <xdje42@gmail.com>
2210
2211         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2212         variable name that collides with a parameter.
2213
2214 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2215
2216         * dwarf2loc.c (locexpr_get_frame_base): Renames
2217         block_op_get_frame_base.
2218         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2219         block_op_get_frame_base by reference to locexpr_get_frame_base.
2220         (loclist_get_frame_base): New function, near identical copy of
2221         locexpr_get_frame_base.
2222         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2223         block_op_get_frame_base by reference to loclist_get_frame_base.
2224
2225 2015-09-19  Doug Evans  <xdje42@gmail.com>
2226
2227         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2228         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2229
2230 2015-09-18  Doug Evans  <xdje42@gmail.com>
2231
2232         * linux-thread-db.c (record_thread): Return the created thread.
2233         (thread_from_lwp): Likewise.
2234         (thread_db_get_thread_local_address): Update.
2235
2236 2015-09-18  Doug Evans  <xdje42@gmail.com>
2237
2238         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2239         move only member demangled_name up.  All uses updated.
2240
2241 2015-09-18  Doug Evans  <xdje42@gmail.com>
2242
2243         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2244         kind of minimal symbol in the error message.
2245         * objfiles.c (objfile_flavour_name): New function.
2246         * objfiles.h (objfile_flavour_name): Declare.
2247
2248 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2249
2250         * nat/aarch64-linux.c: Include elf/common.h,
2251         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2252         (aarch64_ps_get_thread_area): New function.
2253         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2254         (aarch64_ps_get_thread_area): Declare.
2255         * aarch64-linux-nat.c (ps_get_thread_area): Call
2256         aarch64_ps_get_thread_area.
2257
2258 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2259
2260         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2261
2262 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2263
2264         * NEWS: Announce new scheduler-locking mode.
2265         * infrun.c (schedlock_replay): New.
2266         (scheduler_enums): Add schedlock_replay.
2267         (scheduler_mode): Change default to schedlock_replay.
2268         (user_visible_resume_ptid): Handle schedlock_replay.
2269         (clear_proceed_status_thread): Stop replaying if resumed thread is
2270         not replaying.
2271         (schedlock_applies): Handle schedlock_replay.
2272         (_initialize_infrun): Document new scheduler-locking mode.
2273         * record-btrace.c (record_btrace_resume): Remove code to stop other
2274         threads when not replaying the resumed thread.
2275
2276 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2277
2278         * record-btrace.c ((record_btrace_will_replay): New.
2279         (init_record_btrace_ops): Initialize to_record_will_replay.
2280         * record-full.c ((record_full_will_replay): New.
2281         (init_record_full_ops): Initialize to_record_will_replay.
2282         * target-delegates.c: Regenerated.
2283         * target.c (target_record_will_replay): New.
2284         * target.h (struct target_ops) <to_record_will_replay>: New.
2285         (target_record_will_replay): New.
2286
2287 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2288
2289         * record-btrace.c (record_btrace_resume): Call
2290         target_record_stop_replaying.
2291         (record_btrace_stop_replaying_all): New.
2292         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2293         * record-full.c (record_full_stop_replaying): New.
2294         (init_record_full_ops ): Initialize to_record_stop_replaying.
2295         * target-delegates.c: Regenerated.
2296         * target.c (target_record_stop_replaying): New.
2297         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2298         (target_record_stop_replaying): New.
2299
2300 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2301
2302         * record-btrace.c (record_btrace_xfer_partial)
2303         (record_btrace_store_registers, record_btrace_prepare_to_store):
2304         Call record_btrace_is_replaying with inferior_ptid instead of
2305         minus_one_ptid.
2306         (record_btrace_store_registers): Change error message.
2307
2308 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2309
2310         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2311         Update users to pass minus_one_ptid.
2312         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2313         * record.c (cmd_record_delete): Pass inferior_ptid to
2314         target_record_is_replaying.
2315         * target-delegates.c: Regenerated.
2316         * target.c (target_record_is_replaying): Add ptid argument.
2317         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2318         argument.
2319         (target_record_is_replaying): Add ptid argument.
2320
2321 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2322
2323         * record-btrace.c (record_btrace_open): Remove non_stop check.
2324         * NEWS: Announce that record btrace supports non-stop mode.
2325
2326 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2327
2328         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2329         in the TARKET_WAITKIND_NO_HISTORY case.
2330
2331 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2332
2333         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2334         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2335
2336 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2337
2338         * record-btrace.c (get_thread_current_frame): New.
2339         (record_btrace_start_replaying): Call get_thread_current_frame.
2340
2341 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2342
2343         * record-btrace.c (record_btrace_resume_thread): A move request
2344         overwrites a previous move request.
2345         (record_btrace_find_resume_thread): Removed.
2346         (record_btrace_resume): Resume all requested threads.
2347
2348 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2349
2350         * record-btrace.c: Include vec.h.
2351         (record_btrace_find_thread_to_move): Removed.
2352         (btrace_step_no_resumed, btrace_step_again)
2353         (record_btrace_stop_replaying_at_end): New.
2354         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2355         (record_btrace_single_step_forward): Remove calls to
2356         record_btrace_stop_replaying.
2357         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2358         BTHR_RCONT.  Keep threads at the end of their history moving.
2359         (record_btrace_wait): Call record_btrace_step_thread for all threads
2360         until one reports an event.  Call record_btrace_stop_replaying_at_end
2361         for the eventing thread.
2362
2363 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2364
2365         * record-btrace.c (record_btrace_single_step_forward): Return
2366         NO_HISTORY if a step brings us to the end of the execution history.
2367
2368 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2369
2370         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2371         to ...
2372         (record_btrace_single_step_forward): ... here and
2373         (record_btrace_single_step_backward): ... here.
2374
2375 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2376
2377         * record-btrace.c (btrace_step_spurious)
2378         (record_btrace_single_step_forward)
2379         (record_btrace_single_step_backward): New.
2380         (record_btrace_step_thread): Call record_btrace_single_step_forward
2381         and record_btrace_single_step_backward.
2382
2383 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2384
2385         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2386         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2387
2388 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2389
2390         * record-btrace.c (btrace_thread_flag_to_str)
2391         (record_btrace_cancel_resume): New.
2392         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2393         (record_btrace_resume): Print execution direction.
2394         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2395         (record_btrace_wait): Call record_btrace_cancel_resume.
2396
2397 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2398
2399         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2400         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2401         (record_btrace_find_thread_to_move): Also accept threads that have
2402         BTHR_STOP set.
2403         (btrace_step_stopped_on_request, record_btrace_stop): New.
2404         (record_btrace_step_thread): Support BTHR_STOP.
2405         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2406         (init_record_btrace_ops): Initialize to_stop.
2407
2408 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2409
2410         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2411         target_is_non_stop_p ().
2412
2413 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2414
2415         * ada-typeprint.c (print_array_type): Do not describe arrays as
2416         packed when they embed dynamic elements.
2417
2418 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2419
2420         * symtab.h (address_class): Document that TLS variables
2421         are handled by LOC_UNRESOLVED.
2422         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2423         * printcmd.c (address_info): Don't relocate TLS variables.
2424
2425 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2426
2427         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2428         (decode_adrp): Likewise.
2429         (decode_b): Likewise.
2430         (decode_bcond): Likewise.
2431         (decode_br): Likewise.
2432         (decode_cb): Likewise.
2433         (decode_eret): Likewise.
2434         (decode_movz): Likewise.
2435         (decode_orr_shifted_register_x): Likewise.
2436         (decode_ret): Likewise.
2437         (decode_stp_offset): Likewise.
2438         (decode_stp_offset_wb): Likewise.
2439         (decode_stur): Likewise.
2440         (decode_tb): Likewise.
2441         (aarch64_analyze_prologue): Likewise.
2442         (pass_in_x): Likewise.
2443         (pass_in_v): Likewise.
2444         (pass_on_stack): Likewise.
2445         (aarch64_push_dummy_call): Likewise.
2446         (aarch64_extract_return_value): Likewise.
2447         (aarch64_store_return_value): Likewise.
2448         (aarch64_return_value): Likewise.
2449         (aarch64_record_asimd_load_store): Likewise.
2450         (aarch64_record_load_store): Likewise.
2451         (aarch64_record_data_proc_simd_fp): Likewise.
2452
2453 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2454
2455         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2456         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2457         (ppc64_skip_trampoline_code_1): ... here.
2458         (ppc64_skip_trampoline_code): New wrapper function.
2459         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2460
2461 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2462
2463         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2464         function.
2465         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2466         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2467         if target_can_do_single_step returns 1.
2468         * remote.c (struct vCont_action_support) <s, S>: New fields.
2469         (PACKET_vContSupported): New enum.
2470         (remote_protocol_features): New element for vContSupported.
2471         (remote_query_supported): Append "vContSupported+".
2472         (remote_vcont_probe): Remove support_s and support_S, use
2473         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2474         vCont packet if c and C actions are not supported.
2475         (remote_can_do_single_step): New function.
2476         (init_remote_ops): Install it to to_can_do_single_step.
2477         (_initialize_remote): Call add_packet_config_cmd.
2478         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2479         (target_can_do_single_step): New macro.
2480         * target-delegates.c: Re-generated.
2481
2482 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2483
2484         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2485         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2486         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2487         New function.
2488         (aarch64_siginfo_from_compat_siginfo): New function.
2489         * nat/aarch64-linux.h: Include signal.h.
2490         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2491         (compat_timer_t, compat_clock_t): Likewise.
2492         (struct compat_timeval): New.
2493         (union compat_sigval): New.
2494         (struct compat_siginfo): New.
2495         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2496         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2497         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2498         (cpt_si_band, cpt_si_fd): Likewise.
2499
2500 2015-09-14  Pedro Alves  <palves@redhat.com>
2501
2502         * infrun.c (current_stop_id): New global.
2503         (get_stop_id, new_stop_id): New functions.
2504         (fetch_inferior_event): Handle normal_stop proceeding the target.
2505         (struct stop_context): New.
2506         (save_stop_context, release_stop_context_cleanup)
2507         (stop_context_changed): New functions.
2508         (normal_stop): Return true if the hook-stop changes the stop
2509         context.
2510         * infrun.h (get_stop_id): Declare.
2511         (normal_stop): Now returns int.  Add documentation.
2512
2513 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2514
2515         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2516         comment.  Handle packed arrays.
2517
2518 2015-09-14  Pedro Alves  <palves@redhat.com>
2519
2520         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2521         mention of maint set/show target-non-stop.
2522
2523 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2524
2525         * NEWS: Announce new remote packets for the exec-events
2526         feature and the exec-events feature and associated commands.
2527
2528 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2529
2530         * remote.c (remote_exec_event_p): New function.
2531         (remote_insert_exec_catchpoint): New function.
2532         (remote_remove_exec_catchpoint): New function.
2533         (init_extended_remote_ops): Initialize extended_remote_ops
2534         members to_insert_exec_catchpoint and
2535         to_remove_exec_catchpoint.
2536
2537 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2538             Luis Machado  <lgustavo@codesourcery.com>
2539
2540         * infrun.c (follow_exec): Use process-style ptid for
2541         exec message.  Call add_inferior_with_spaces and
2542         target_follow_exec.
2543         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2544         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2545         * remote.c (remote_pspace_data): New static variable.
2546         (remote_pspace_data_cleanup): New function.
2547         (get_remote_exec_file): New function.
2548         (set_remote_exec_file_1): New function.
2549         (set_remote_exec_file): New function.
2550         (show_remote_exec_file): New function.
2551         (remote_exec_file): Delete static variable.
2552         (anonymous enum) <PACKET_exec_event_feature>: New
2553         enumeration constant.
2554         (remote_protocol_features): Add entry for exec-events feature.
2555         (remote_query_supported): Add client side of qSupported query
2556         for exec-events feature.
2557         (remote_follow_exec): New function.
2558         (remote_parse_stop_reply): Handle 'exec' stop reason.
2559         (extended_remote_run, extended_remote_create_inferior): Call
2560         get_remote_exec_file and set_remote_exec_file_1.
2561         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2562         member.
2563         (_initialize_remote): Call
2564         register_program_space_data_with_cleanup.  Call
2565         add_packet_config_cmd for remote exec-events feature.
2566         Modify call to add_setshow_string_noescape_cmd for exec-file
2567         to use new functions set_remote_exec_file and
2568         show_remote_exec_file.
2569         * target-debug.h, target-delegates.c: Regenerated.
2570         * target.c (target_follow_exec): New function.
2571         * target.h (struct target_ops) <to_follow_exec>: New member.
2572         (target_follow_exec): Declare new function.
2573
2574 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2575
2576         * aarch64-tdep.c (decode_cb): Move up comment describing the
2577         encoding.
2578         (decode_tb): Fix a typo in comment above the function.  Move up
2579         comment describing the encoding.
2580
2581 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2582
2583         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2584
2585 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2586
2587         PR gdb/18947
2588         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2589         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2590
2591 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2592
2593         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2594         operations.
2595
2596 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2597
2598         * ada-lang.c (ada_search_struct_field): Constify parameters
2599         and/or variables..
2600         (xget_renaming_scope): Likewise.
2601         (ada_is_redundant_range_encoding): Likewise.
2602         (scan_discrim_bound): Likewise.
2603         (to_fixed_range_type): Likewise.
2604
2605 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2606
2607         * breakpoint.c (download_tracepoint_locations): New local
2608         can_download_tracepoint.  Check the result of
2609         target_can_download_tracepoint and save it in
2610         can_download_tracepoint if there are tracepoints to download.
2611         * linux-nat.h (enum tribool): Move it to ...
2612         * common/common-types.h: ... here.
2613
2614 2015-09-09  Pedro Alves  <palves@redhat.com>
2615
2616         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2617         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2618
2619 2015-09-09  Pedro Alves  <palves@redhat.com>
2620
2621         * continuations.c (add_continuation, restore_thread_cleanup)
2622         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2623         (do_all_continuations_thread, do_all_continuations)
2624         (discard_all_continuations_thread_callback)
2625         (discard_all_continuations_thread, discard_all_continuations)
2626         (add_intermediate_continuation)
2627         (do_all_intermediate_continuations_thread_callback)
2628         (do_all_intermediate_continuations_thread)
2629         (do_all_intermediate_continuations)
2630         (discard_all_intermediate_continuations_thread_callback)
2631         (discard_all_intermediate_continuations_thread)
2632         (discard_all_intermediate_continuations): Delete.
2633         * continuations.h (add_continuation, do_all_continuations)
2634         (do_all_continuations_thread, discard_all_continuations)
2635         (discard_all_continuations_thread, add_intermediate_continuation)
2636         (do_all_intermediate_continuations)
2637         (do_all_intermediate_continuations_thread)
2638         (discard_all_intermediate_continuations)
2639         (discard_all_intermediate_continuations_thread): Delete
2640         declarations.
2641         * event-top.c (stdin_event_handler): Delete references to
2642         continuations.
2643         * gdbthread.h (struct thread_info): Delete continuations and
2644         intermediate_continuations fields.
2645         * inf-loop.c (inferior_event_handler): Remove references to
2646         continuations.
2647         * infrun.c (infrun_thread_stop_requested_callback): Remove
2648         references to continuations.
2649         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2650         * thread.c: Don't include "continuations.h".
2651         (clear_thread_inferior_resources): Remove references to
2652         continuations.
2653
2654 2015-09-09  Pedro Alves  <palves@redhat.com>
2655
2656         * infcall.c (struct dummy_frame_context_saver): Delete.
2657         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2658         (dummy_frame_context_saver_drop)
2659         (dummy_frame_context_saver_cleanup)
2660         (dummy_frame_context_saver_get_regs)
2661         (dummy_frame_context_saver_setup): Delete.
2662         * infcall.h (dummy_frame_context_saver_drop)
2663         (dummy_frame_context_saver_cleanup)
2664         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2665         Delete.
2666         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2667         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2668         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2669
2670 2015-09-09  Pedro Alves  <palves@redhat.com>
2671
2672         * breakpoint.c: Include "thread-fsm.h".
2673         (struct until_break_command_continuation_args): Delete.
2674         (struct until_break_fsm): New.
2675         (until_break_fsm_ops): New global.
2676         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2677         (until_break_command_continuation): Delete.
2678         (until_break_fsm_clean_up): New function.
2679         (until_break_fsm_async_reply_reason): New function.
2680         (until_break_command): Adjust to create an until_break_fsm instead
2681         of a continuation.
2682         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2683         here.
2684         * infcmd.c (struct until_next_fsm): New.
2685         (until_next_fsm_ops): New global.
2686         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2687         (until_next_continuation): Delete.
2688         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2689         functions.
2690         (until_next_command): Adjust to create a new until_next_fsm
2691         instead of a continuation.
2692
2693 2015-09-09  Pedro Alves  <palves@redhat.com>
2694
2695         * infcall.c: Include thread_fsm.h.
2696         (struct call_return_meta_info): New.
2697         (get_call_return_value): New function, factored out from
2698         call_function_by_hand_dummy.
2699         (struct call_thread_fsm): New.
2700         (call_thread_fsm_ops): New global.
2701         (new_call_thread_fsm, call_thread_fsm_should_stop)
2702         (call_thread_fsm_should_notify_stop): New functions.
2703         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2704         the thread.
2705         (call_function_by_hand_dummy): Create a new call_thread_fsm
2706         instance, associate it with the thread, and wait for the FSM to
2707         finish.  If finished successfully, fetch the function's result
2708         value out of the FSM.
2709         * infrun.c (fetch_inferior_event): If the FSM says the stop
2710         shouldn't be notified, don't call normal_stop.
2711         (maybe_remove_breakpoints): New function, factored out from ...
2712         (normal_stop): ... here.  Simplify.
2713         * infrun.h (maybe_remove_breakpoints): Declare.
2714         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2715         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2716         (thread_fsm_should_notify_stop): Declare.
2717
2718 2015-09-09  Pedro Alves  <palves@redhat.com>
2719
2720         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2721         * breakpoint.c (handle_jit_event): Print debug output.
2722         (bpstat_what): Split event callback handling to ...
2723         (bpstat_run_callbacks): ... this new function.
2724         (momentary_bkpt_print_it): No longer handle bp_finish here.
2725         * breakpoint.h (bpstat_run_callbacks): Declare.
2726         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2727         <thread_fsm>: New field.
2728         (thread_cancel_execution_command): Declare.
2729         * infcmd.c: Include thread-fsm.h.
2730         (struct step_command_fsm): New.
2731         (step_command_fsm_ops): New global.
2732         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2733         (step_1): Adjust to use step_command_fsm_prepare and
2734         prepare_one_step.
2735         (struct step_1_continuation_args): Delete.
2736         (step_1_continuation): Delete.
2737         (step_command_fsm_should_stop): New function.
2738         (step_once): Delete.
2739         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2740         (prepare_one_step): New function, based on step_once.
2741         (until_next_command): Remove step_multi reference.
2742         (struct return_value_info): New.
2743         (print_return_value): Rename to ...
2744         (print_return_value_1): ... this.  New struct return_value_info
2745         parameter.  Adjust.
2746         (print_return_value): Reimplement as wrapper around
2747         print_return_value_1.
2748         (struct finish_command_fsm): New.
2749         (finish_command_continuation): Delete.
2750         (finish_command_fsm_ops): New global.
2751         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2752         functions.
2753         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2754         New.
2755         (finish_command_continuation_free_arg): Delete.
2756         (finish_command_fsm_async_reply_reason): New.
2757         (finish_backward, finish_forward): Change symbol parameter to a
2758         finish_command_fsm.  Adjust.
2759         (finish_command): Create a finish_command_fsm.  Adjust.
2760         * infrun.c: Include "thread-fsm.h".
2761         (clear_proceed_status_thread): Delete the thread's FSM.
2762         (infrun_thread_stop_requested_callback): Cancel the thread's
2763         execution command.
2764         (clean_up_just_stopped_threads_fsms): New function.
2765         (fetch_inferior_event): Handle the event_thread's should_stop
2766         method saying the command isn't done yet.
2767         (process_event_stop_test): Run breakpoint callbacks here.
2768         (print_stop_event): Rename to ...
2769         (print_stop_location): ... this.
2770         (restore_current_uiout_cleanup): New function.
2771         (print_stop_event): Reimplement.
2772         (normal_stop): No longer notify the end_stepping_range observers
2773         here handle "step N" nor "finish" here.  No longer call
2774         print_stop_event here.
2775         * infrun.h (struct return_value_info): Forward declare.
2776         (print_return_value): Declare.
2777         (print_stop_event): Change prototype.
2778         * thread-fsm.c: New file.
2779         * thread-fsm.h: New file.
2780         * thread.c: Include "thread-fsm.h".
2781         (thread_cancel_execution_command): New function.
2782         (clear_thread_inferior_resources): Call it.
2783         * cli/cli-interp.c (cli_on_normal_stop): New function.
2784         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2785         observer.
2786         * mi/mi-interp.c: Include "thread-fsm.h".
2787         (restore_current_uiout_cleanup): Delete.
2788         (mi_on_normal_stop): If the thread has an FSM associated, and it
2789         finished, ask it for the async-reply-reason to print.  Always call
2790         print_stop_event here, regardless of the top-level interpreter.
2791         Check bpstat_what to tell whether an asynchronous breakpoint hit
2792         triggered.
2793         * tui/tui-interp.c (tui_on_normal_stop): New function.
2794         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2795
2796 2015-09-09  Pedro Alves  <palves@redhat.com>
2797
2798         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2799         check whether the target can async.
2800         * inf-loop.c (inferior_event_handler): Only call target_async if
2801         the target can async.
2802         * infcall.c: Include top.h and interps.h.
2803         (run_inferior_call): For the interpreter to sync mode while
2804         running the infcall.  Call wait_sync_command_done instead of
2805         wait_for_inferior plus normal_stop.
2806         * infcmd.c (prepare_execution_command): Don't check whether the
2807         target can async when running in the foreground.
2808         (step_1): Delete synchronous case handling.
2809         (step_once): Always install a continuation, even in sync mode.
2810         (until_next_command, finish_forward): Don't check whether the
2811         target can async.
2812         (attach_command_post_wait, notice_new_inferior): Always install a
2813         continuation, even in sync mode.
2814         * infrun.c (mark_infrun_async_event_handler): New function.
2815         (proceed): In sync mode, mark infrun's event source instead of
2816         waiting for events here.
2817         (fetch_inferior_event): If the target can't async, do a blocking
2818         wait.
2819         (prepare_to_wait): In sync mode, mark infrun's event source.
2820         (infrun_async_inferior_event_handler): No longer bail out if the
2821         target can't async.
2822         * infrun.h (mark_infrun_async_event_handler): New declaration.
2823         * linux-nat.c (linux_nat_wait_1): Remove calls to
2824         set_sigint_trap/clear_sigint_trap.
2825         (linux_nat_terminal_inferior): No longer check whether the target
2826         can async.
2827         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2828         comment.
2829         (mi_execute_command_input_handler): No longer check whether the
2830         target is async.  Update and simplify comment.
2831         * target.c (default_target_wait): New function.
2832         * target.h (struct target_ops) <to_wait>: Now defaults to
2833         default_target_wait.
2834         (default_target_wait): Declare.
2835         * top.c (wait_sync_command_done): New function, factored out from
2836         ...
2837         (maybe_wait_sync_command_done): ... this.
2838         * top.h (wait_sync_command_done): Declare.
2839         * target-delegates.c: Regenerate.
2840
2841 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2842
2843         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2844         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2845         Remove include of sys/utsname.h.
2846         (linux_determine_kernel_ptr_bits): Remove.
2847         (linux_determine_kernel_start): New.
2848         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2849         Update check.
2850         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2851         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2852         initialization.
2853         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2854         assignment.
2855
2856 2015-09-07  Pedro Alves  <palves@redhat.com>
2857
2858         * guile/guile-internal.h (as_a_scm_t_subr): New.
2859         * guile/guile.c (misc_guile_functions): Use it.
2860         * guile/scm-arch.c (arch_functions): Use it.
2861         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2862         Use it.
2863         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2864         * guile/scm-cmd.c (command_functions): Use it.
2865         * guile/scm-disasm.c (disasm_functions): Use it.
2866         * guile/scm-exception.c (exception_functions)
2867         (private_exception_functions): Use it.
2868         * guile/scm-frame.c (frame_functions)
2869         * guile/scm-gsmob.c (gsmob_functions): Use it.
2870         * guile/scm-iterator.c (iterator_functions): Use it.
2871         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2872         * guile/scm-math.c (math_functions): Use it.
2873         * guile/scm-objfile.c (objfile_functions): Use it.
2874         * guile/scm-param.c (parameter_functions): Use it.
2875         * guile/scm-ports.c (port_functions, private_port_functions): Use
2876         it.
2877         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2878         * guile/scm-progspace.c (pspace_functions): Use it.
2879         * guile/scm-string.c (string_functions): Use it.
2880         * guile/scm-symbol.c (symbol_functions): Use it.
2881         * guile/scm-symtab.c (symtab_functions): Use it.
2882         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2883         it.
2884         * guile/scm-value.c (value_functions): Use it.
2885
2886 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2887
2888         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2889         (tui_next_win): Likewise.
2890         (tui_prev_win): Likewise.
2891         (tui_partial_win_by_name): Likewise.
2892         (tui_init_generic_part): Likewise.
2893         (init_content_element): Likewise.
2894         (tui_del_window): Likewise.
2895         (tui_free_window): Likewise.
2896         (tui_del_data_windows): Likewise.
2897         (tui_free_data_content): Likewise.
2898         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2899         * tui/tui-regs.c (tui_show_register_group): Likewise.
2900         * tui/tui-win.c (tui_resize_all): Likewise.
2901         (tui_set_focus): Likewise.
2902         (tui_set_win_height): Likewise.
2903         (make_invisible_and_set_new_height): Likewise.
2904         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2905         * tui/tui-wingeneral.c (make_visible): Likewise.
2906
2907 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2908
2909         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2910
2911 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2912
2913         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2914         pointer.
2915         * dbxread.c (dbx_end_psymtab): Likewise.
2916         * gnu-nat.c (gnu_write_inferior): Likewise.
2917         * mdebugread.c (cross_ref): Likewise.
2918         * p-valprint.c (pascal_val_print): Likewise.
2919         * xcoffread.c (xcoff_end_psymtab): Likewise.
2920
2921 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2922
2923         * NEWS: Mention the aarch64 multi-arch debugging support.
2924
2925 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2926
2927         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2928         type instead of a TYPE_CODE_INT one for the string_char_type
2929         and the ada_primitive_type_char types.
2930
2931 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2932
2933         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2934         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2935         aarch64_linux_region_ok_for_watchpoint.
2936         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2937         New function.
2938         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2939         Declare it.
2940
2941 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2942
2943         * gdb_obstack.h (obstack_strdup): Declare.
2944         * gdb_obstack.c (obstack_strdup): Define.
2945         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2946         * gdbarch.c: Regenerate.
2947         * gdbarch.h: Regenerate.
2948         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2949
2950 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2951
2952         * gdbtypes.c (copy_type_recursive): Update documentation.
2953
2954 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2955
2956         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2957         as zero.
2958
2959 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2960
2961         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2962
2963 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2964
2965         * solib-svr4.c (solib_event_probe_action): Call
2966         get_probe_argument_count using TRY...CATCH.
2967         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2968
2969 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2970
2971         * probe.h (struct probe_ops) <get_probe_argument_count,
2972         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2973         the comment that the function can throw an exception.
2974         (get_probe_argument_count): Likewise.
2975         (evaluate_probe_argument): Likewise.
2976         * stap-probe.c (stap_get_opcode): Call error instead of
2977         internal_error.
2978         (stap_get_expected_argument_type): Likewise.  Add argument
2979         'probe'.  Improve error message by mentioning the probe's name.
2980         (stap_parse_probe_arguments): Adjust call to
2981         stap_get_expected_argument_type.
2982         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
2983         not zero.  Call internal_error if GDB requests an argument but the
2984         probe has no arguments.
2985
2986 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2987
2988         * ada-lang.c (ada_resolve_function): Do not ask the user what
2989         match to use when in completion mode.
2990
2991 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
2992
2993         * tui/tui-data.c (tui_win_name): Make local variable const, remove
2994         cast of NULL.
2995
2996 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
2997
2998         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2999         call_abi using XSHAL_ABI macro.
3000
3001 2015-08-29  Doug Evans  <xdje42@gmail.com>
3002
3003         * symtab.h (struct symbol): Tweak comment.
3004
3005 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3006
3007         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3008         gdbarch obstack instead of on the heap.  Update commentary
3009         accordingly.
3010
3011 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3012
3013         GDB 7.10 released.
3014
3015 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3016
3017         * NEWS: Update entry about non-8-bits addressable memory.
3018
3019 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3020
3021         Revert:
3022         2014-11-06  Doug Evans  <xdje42@gmail.com>
3023         * solib.c (solib_global_lookup): Fetch arch from objfile,
3024         not target_gdbarch.
3025
3026 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3027
3028         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3029         attempt to relocate a TLS variable offset.
3030
3031 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3032
3033         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3034         registered yet.  Set inferior_ptid while calling target_read_memory.
3035
3036 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3037
3038         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3039         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3040         * linux-nat.c (check_stopped_by_breakpoint): Use
3041         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3042
3043 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3044
3045         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3046         thread was not yet discovered, use thread_from_lwp instead of
3047         calling thread_db_find_new_threads_1.
3048
3049 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3050
3051         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3052         statements.
3053
3054 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3055
3056         * NEWS: Document support for non-8-bits addressable memory.
3057
3058 2015-08-27  Pedro Alves  <palves@redhat.com>
3059
3060         * configure.ac: Remove AC_TYPE_SIGNAL call.
3061         * configure, config.in: Regenerate.
3062
3063 2015-08-27  Pedro Alves  <palves@redhat.com>
3064
3065         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3066         * extension-priv.h: Include signal.h.
3067         (struct signal_handler) <handler>: Change type to sighandler_t.
3068         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3069         * inflow.c (sigint_ours, sigquit_ours): Change type to
3070         sighandler_t.
3071         (child_terminal_inferior): Remove casts.
3072         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3073         (osig): Change type to sighandler_t.
3074         * nto-procfs.c (ofunc): Change type to sighandler_t.
3075         (procfs_wait): Remove casts.
3076         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3077         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3078         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3079
3080 2015-08-27  Pedro Alves  <palves@redhat.com>
3081
3082         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3083         * gnulib/aclocal.m4: Renegerate.
3084         * gnulib/config.in: Renegerate.
3085         * gnulib/configure: Renegerate.
3086         * gnulib/import/Makefile.am: Update.
3087         * gnulib/import/Makefile.in: Regenerate.
3088         * gnulib/import/m4/gnulib-cache.m4: Update.
3089         * gnulib/import/m4/gnulib-comp.m4: Update.
3090         * gnulib/import/m4/signal_h.m4: New file.
3091         * gnulib/import/signal.in.h: New file.
3092
3093 2015-08-27  Pedro Alves  <palves@redhat.com>
3094
3095         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3096         (MIN_MEMORY_PACKET_SIZE): New.
3097         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3098         (get_memory_packet_size): Adjust.  No longer limit the max packet
3099         size.
3100         (set_memory_packet_size): Adjust, and remove dead code.
3101         (remote_check_symbols): Use xmalloc and a cleanup instead of
3102         alloca.
3103         (remote_packet_size): No longer cap the packet size.
3104         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3105
3106 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3107
3108         * compile/compile.c (compile_to_object): Mention language in
3109         error message.
3110
3111 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3112
3113         * target.c (target_pre_inferior): Unset attach_flag.
3114
3115 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3116
3117         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3118         * gdbarch.c: Re-generate.
3119
3120 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3121
3122         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3123         function with the XNEW-family equivalent.
3124         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3125         * ada-exp.y (write_ambiguous_var): Likewise.
3126         * ada-lang.c (resolve_subexp): Likewise.
3127         (user_select_syms): Likewise.
3128         (assign_aggregate): Likewise.
3129         (ada_evaluate_subexp): Likewise.
3130         (cache_symbol): Likewise.
3131         * addrmap.c (allocate_key): Likewise.
3132         (addrmap_create_mutable): Likewise.
3133         * aix-thread.c (sync_threadlists): Likewise.
3134         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3135         (alpha_gdbarch_init): Likewise.
3136         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3137         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3138         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3139         * arm-tdep.c (push_stack_item): Likewise.
3140         (arm_displaced_step_copy_insn): Likewise.
3141         (arm_gdbarch_init): Likewise.
3142         (_initialize_arm_tdep): Likewise.
3143         * avr-tdep.c (push_stack_item): Likewise.
3144         * ax-general.c (new_agent_expr): Likewise.
3145         * block.c (block_initialize_namespace): Likewise.
3146         * breakpoint.c (alloc_counted_command_line): Likewise.
3147         (update_dprintf_command_list): Likewise.
3148         (parse_breakpoint_sals): Likewise.
3149         (decode_static_tracepoint_spec): Likewise.
3150         (until_break_command): Likewise.
3151         (clear_command): Likewise.
3152         (update_global_location_list): Likewise.
3153         (get_breakpoint_objfile_data) Likewise.
3154         * btrace.c (ftrace_new_function): Likewise.
3155         (btrace_set_insn_history): Likewise.
3156         (btrace_set_call_history): Likewise.
3157         * buildsym.c (add_symbol_to_list): Likewise.
3158         (record_pending_block): Likewise.
3159         (start_subfile): Likewise.
3160         (start_buildsym_compunit): Likewise.
3161         (push_subfile): Likewise.
3162         (end_symtab_get_static_block): Likewise.
3163         (buildsym_init): Likewise.
3164         * cli/cli-cmds.c (source_command): Likewise.
3165         * cli/cli-decode.c (add_cmd): Likewise.
3166         * cli/cli-script.c (build_command_line): Likewise.
3167         (setup_user_args): Likewise.
3168         (realloc_body_list): Likewise.
3169         (process_next_line): Likewise.
3170         (copy_command_lines): Likewise.
3171         * cli/cli-setshow.c (do_set_command): Likewise.
3172         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3173         * coffread.c (coff_locate_sections): Likewise.
3174         (coff_symtab_read): Likewise.
3175         (coff_read_struct_type): Likewise.
3176         * common/cleanups.c (make_my_cleanup2): Likewise.
3177         * common/common-exceptions.c (throw_it): Likewise.
3178         * common/filestuff.c (make_cleanup_close): Likewise.
3179         * common/format.c (parse_format_string): Likewise.
3180         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3181         * compile/compile-object-load.c (munmap_list_add): Likewise.
3182         (compile_object_load): Likewise.
3183         * compile/compile-object-run.c (compile_object_run): Likewise.
3184         * compile/compile.c (append_args): Likewise.
3185         * corefile.c (specify_exec_file_hook): Likewise.
3186         * cp-support.c (make_symbol_overload_list): Likewise.
3187         * cris-tdep.c (push_stack_item): Likewise.
3188         (cris_gdbarch_init): Likewise.
3189         * ctf.c (ctf_trace_file_writer_new): Likewise.
3190         * dbxread.c (init_header_files): Likewise.
3191         (add_new_header_file): Likewise.
3192         (init_bincl_list): Likewise.
3193         (dbx_end_psymtab): Likewise.
3194         (start_psymtab): Likewise.
3195         (dbx_end_psymtab): Likewise.
3196         * dcache.c (dcache_init): Likewise.
3197         * dictionary.c (dict_create_hashed): Likewise.
3198         (dict_create_hashed_expandable): Likewise.
3199         (dict_create_linear): Likewise.
3200         (dict_create_linear_expandable): Likewise.
3201         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3202         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3203         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3204         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3205         (decode_frame_entry_1): Likewise.
3206         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3207         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3208         * dwarf2read.c (dwarf2_has_info): Likewise.
3209         (create_signatured_type_table_from_index): Likewise.
3210         (dwarf2_read_index): Likewise.
3211         (dw2_get_file_names_reader): Likewise.
3212         (create_all_type_units): Likewise.
3213         (read_cutu_die_from_dwo): Likewise.
3214         (init_tu_and_read_dwo_dies): Likewise.
3215         (init_cutu_and_read_dies): Likewise.
3216         (create_all_comp_units): Likewise.
3217         (queue_comp_unit): Likewise.
3218         (inherit_abstract_dies): Likewise.
3219         (read_call_site_scope): Likewise.
3220         (dwarf2_add_field): Likewise.
3221         (dwarf2_add_typedef): Likewise.
3222         (dwarf2_add_member_fn): Likewise.
3223         (attr_to_dynamic_prop): Likewise.
3224         (abbrev_table_alloc_abbrev): Likewise.
3225         (abbrev_table_read_table): Likewise.
3226         (add_include_dir): Likewise.
3227         (add_file_name): Likewise.
3228         (dwarf_decode_line_header): Likewise.
3229         (dwarf2_const_value_attr): Likewise.
3230         (dwarf_alloc_block): Likewise.
3231         (parse_macro_definition): Likewise.
3232         (set_die_type): Likewise.
3233         (write_psymtabs_to_index): Likewise.
3234         (create_cus_from_index): Likewise.
3235         (dwarf2_create_include_psymtab): Likewise.
3236         (process_psymtab_comp_unit_reader): Likewise.
3237         (build_type_psymtab_dependencies): Likewise.
3238         (read_comp_units_from_section): Likewise.
3239         (compute_compunit_symtab_includes): Likewise.
3240         (create_dwo_unit_in_dwp_v1): Likewise.
3241         (create_dwo_unit_in_dwp_v2): Likewise.
3242         (read_func_scope): Likewise.
3243         (process_structure_scope): Likewise.
3244         (mark_common_block_symbol_computed): Likewise.
3245         (load_partial_dies): Likewise.
3246         (dwarf2_symbol_mark_computed): Likewise.
3247         * elfread.c (elf_symfile_segments): Likewise.
3248         (elf_read_minimal_symbols): Likewise.
3249         * environ.c (make_environ): Likewise.
3250         * eval.c (evaluate_subexp_standard): Likewise.
3251         * event-loop.c (create_file_handler): Likewise.
3252         (create_async_signal_handler): Likewise.
3253         (create_async_event_handler): Likewise.
3254         (create_timer): Likewise.
3255         * exec.c (build_section_table): Likewise.
3256         * fbsd-nat.c (fbsd_remember_child): Likewise.
3257         * fork-child.c (fork_inferior): Likewise.
3258         * frv-tdep.c (new_variant): Likewise.
3259         * gdbarch.sh (gdbarch_alloc): Likewise.
3260         (append_name): Likewise.
3261         * gdbtypes.c (rank_function): Likewise.
3262         (copy_type_recursive): Likewise.
3263         (add_dyn_prop): Likewise.
3264         * gnu-nat.c (make_proc): Likewise.
3265         (make_inf): Likewise.
3266         (gnu_write_inferior): Likewise.
3267         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3268         (build_std_type_info_type): Likewise.
3269         * guile/scm-param.c (compute_enum_list): Likewise.
3270         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3271         * guile/scm-value.c (gdbscm_value_call): Likewise.
3272         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3273         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3274         (read_unwind_info): Likewise.
3275         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3276         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3277         (call_function_by_hand_dummy): Likewise.
3278         * infcmd.c (step_once): Likewise.
3279         (finish_forward): Likewise.
3280         (attach_command): Likewise.
3281         (notice_new_inferior): Likewise.
3282         * inferior.c (add_inferior_silent): Likewise.
3283         * infrun.c (add_displaced_stepping_state): Likewise.
3284         (save_infcall_control_state): Likewise.
3285         (save_inferior_ptid): Likewise.
3286         (_initialize_infrun): Likewise.
3287         * jit.c (bfd_open_from_target_memory): Likewise.
3288         (jit_gdbarch_data_init): Likewise.
3289         * language.c (add_language): Likewise.
3290         * linespec.c (decode_line_2): Likewise.
3291         * linux-nat.c (add_to_pid_list): Likewise.
3292         (add_initial_lwp): Likewise.
3293         * linux-thread-db.c (add_thread_db_info): Likewise.
3294         (record_thread): Likewise.
3295         (info_auto_load_libthread_db): Likewise.
3296         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3297         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3298         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3299         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3300         * macrocmd.c (macro_define_command): Likewise.
3301         * macroexp.c (gather_arguments): Likewise.
3302         * macroscope.c (sal_macro_scope): Likewise.
3303         * macrotab.c (new_macro_table): Likewise.
3304         * mdebugread.c (push_parse_stack): Likewise.
3305         (parse_partial_symbols): Likewise.
3306         (parse_symbol): Likewise.
3307         (psymtab_to_symtab_1): Likewise.
3308         (new_block): Likewise.
3309         (new_psymtab): Likewise.
3310         (mdebug_build_psymtabs): Likewise.
3311         (add_pending): Likewise.
3312         (elfmdebug_build_psymtabs): Likewise.
3313         * mep-tdep.c (mep_gdbarch_init): Likewise.
3314         * mi/mi-main.c (mi_execute_command): Likewise.
3315         * mi/mi-parse.c (mi_parse_argv): Likewise.
3316         * minidebug.c (lzma_open): Likewise.
3317         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3318         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3319         * mips-tdep.c (mips_gdbarch_init): Likewise.
3320         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3321         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3322         * mt-tdep.c (mt_registers_info): Likewise.
3323         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3324         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3325         (linux_enable_pt): Likewise.
3326         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3327         (linux_xfer_osdata_processgroups): Likewise.
3328         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3329         * nto-procfs.c (procfs_meminfo): Likewise.
3330         * objc-lang.c (start_msglist): Likewise.
3331         (selectors_info): Likewise.
3332         (classes_info): Likewise.
3333         (find_methods): Likewise.
3334         * objfiles.c (allocate_objfile): Likewise.
3335         (update_section_map): Likewise.
3336         * osabi.c (gdbarch_register_osabi): Likewise.
3337         (gdbarch_register_osabi_sniffer): Likewise.
3338         * parse.c (start_arglist): Likewise.
3339         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3340         (hwdebug_insert_point): Likewise.
3341         * printcmd.c (display_command): Likewise.
3342         (ui_printf): Likewise.
3343         * procfs.c (create_procinfo): Likewise.
3344         (load_syscalls): Likewise.
3345         (proc_get_LDT_entry): Likewise.
3346         (proc_update_threads): Likewise.
3347         * prologue-value.c (make_pv_area): Likewise.
3348         (pv_area_store): Likewise.
3349         * psymtab.c (extend_psymbol_list): Likewise.
3350         (init_psymbol_list): Likewise.
3351         (allocate_psymtab): Likewise.
3352         * python/py-inferior.c (add_thread_object): Likewise.
3353         * python/py-param.c (compute_enum_values): Likewise.
3354         * python/py-value.c (valpy_call): Likewise.
3355         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3356         * python/python.c (ensure_python_env): Likewise.
3357         * record-btrace.c (record_btrace_start_replaying): Likewise.
3358         * record-full.c (record_full_reg_alloc): Likewise.
3359         (record_full_mem_alloc): Likewise.
3360         (record_full_end_alloc): Likewise.
3361         (record_full_core_xfer_partial): Likewise.
3362         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3363         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3364         * remote-notif.c (remote_notif_state_allocate): Likewise.
3365         * remote.c (demand_private_info): Likewise.
3366         (remote_notif_stop_alloc_reply): Likewise.
3367         (remote_enable_btrace): Likewise.
3368         * reverse.c (save_bookmark_command): Likewise.
3369         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3370         * rx-tdep.c (rx_gdbarch_init): Likewise.
3371         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3372         * ser-go32.c (dos_get_tty_state): Likewise.
3373         (dos_copy_tty_state): Likewise.
3374         * ser-mingw.c (ser_windows_open): Likewise.
3375         (ser_console_wait_handle): Likewise.
3376         (ser_console_get_tty_state): Likewise.
3377         (make_pipe_state): Likewise.
3378         (net_windows_open): Likewise.
3379         * ser-unix.c (hardwire_get_tty_state): Likewise.
3380         (hardwire_copy_tty_state): Likewise.
3381         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3382         * solib-dsbt.c (dsbt_current_sos): Likewise.
3383         (dsbt_relocate_main_executable): Likewise.
3384         * solib-frv.c (frv_current_sos): Likewise.
3385         (frv_relocate_main_executable): Likewise.
3386         * solib-spu.c (spu_bfd_fopen): Likewise.
3387         * solib-svr4.c (lm_info_read): Likewise.
3388         (svr4_copy_library_list): Likewise.
3389         (svr4_default_sos): Likewise.
3390         * source.c (find_source_lines): Likewise.
3391         (line_info): Likewise.
3392         (add_substitute_path_rule): Likewise.
3393         * spu-linux-nat.c (spu_bfd_open): Likewise.
3394         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3395         * stabsread.c (dbx_lookup_type): Likewise.
3396         (read_type): Likewise.
3397         (read_member_functions): Likewise.
3398         (read_struct_fields): Likewise.
3399         (read_baseclasses): Likewise.
3400         (read_args): Likewise.
3401         (_initialize_stabsread): Likewise.
3402         * stack.c (func_command): Likewise.
3403         * stap-probe.c (handle_stap_probe): Likewise.
3404         * symfile.c (addrs_section_sort): Likewise.
3405         (addr_info_make_relative): Likewise.
3406         (load_section_callback): Likewise.
3407         (add_symbol_file_command): Likewise.
3408         (init_filename_language_table): Likewise.
3409         * symtab.c (create_filename_seen_cache): Likewise.
3410         (sort_search_symbols_remove_dups): Likewise.
3411         (search_symbols): Likewise.
3412         * target.c (make_cleanup_restore_target_terminal): Likewise.
3413         * thread.c (new_thread): Likewise.
3414         (enable_thread_stack_temporaries): Likewise.
3415         (make_cleanup_restore_current_thread): Likewise.
3416         (thread_apply_all_command): Likewise.
3417         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3418         * top.c (gdb_readline_wrapper): Likewise.
3419         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3420         * tracepoint.c (trace_find_line_command): Likewise.
3421         (all_tracepoint_actions_and_cleanup): Likewise.
3422         (make_cleanup_restore_current_traceframe): Likewise.
3423         (get_uploaded_tp): Likewise.
3424         (get_uploaded_tsv): Likewise.
3425         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3426         (tui_alloc_win_info): Likewise.
3427         (tui_alloc_content): Likewise.
3428         (tui_add_content_elements): Likewise.
3429         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3430         (tui_set_disassem_content): Likewise.
3431         * ui-file.c (ui_file_new): Likewise.
3432         (stdio_file_new): Likewise.
3433         (tee_file_new): Likewise.
3434         * utils.c (make_cleanup_restore_integer): Likewise.
3435         (add_internal_problem_command): Likewise.
3436         * v850-tdep.c (v850_gdbarch_init): Likewise.
3437         * valops.c (find_oload_champ): Likewise.
3438         * value.c (allocate_value_lazy): Likewise.
3439         (record_latest_value): Likewise.
3440         (create_internalvar): Likewise.
3441         * varobj.c (install_variable): Likewise.
3442         (new_variable): Likewise.
3443         (new_root_variable): Likewise.
3444         (cppush): Likewise.
3445         (_initialize_varobj): Likewise.
3446         * windows-nat.c (windows_make_so): Likewise.
3447         * x86-nat.c (x86_add_process): Likewise.
3448         * xcoffread.c (arrange_linetable): Likewise.
3449         (allocate_include_entry): Likewise.
3450         (process_linenos): Likewise.
3451         (SYMBOL_DUP): Likewise.
3452         (xcoff_start_psymtab): Likewise.
3453         (xcoff_end_psymtab): Likewise.
3454         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3455         * xtensa-tdep.c (xtensa_register_type): Likewise.
3456         * gdbarch.c: Regenerate.
3457         * gdbarch.h: Regenerate.
3458
3459 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3460
3461         * infrun.c (follow_exec): Re-order operations for
3462         handling follow-exec-mode "new".
3463         (handle_inferior_event_1): Assign ecs->event_thread
3464         to the current thread.
3465         * remote.c (get_remote_arch_state): Add an assertion.
3466
3467 2015-08-26  Pedro Alves  <palves@redhat.com>
3468
3469         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3470
3471 2015-08-25  Pedro Alves  <palves@redhat.com>
3472
3473         PR gdb/18804
3474         * defs.h (maybe_quit): Declare.
3475         (QUIT): Now calls maybe_quit.
3476         * event-loop.c (clear_async_signal_handler)
3477         (async_signal_handler_is_marked): New functions.
3478         * event-loop.h (async_signal_handler_is_marked)
3479         (clear_async_signal_handler): New declarations.
3480         * remote.c (remote_check_pending_interrupt): New function.
3481         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3482         longer check whether the target is async.  If waiting for a stop
3483         reply, and a Ctrl-C as been sent to the target, offer to
3484         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3485         Otherwise do not disconnect and throw a quit.
3486         (_initialize_remote): Install remote_check_pending_interrupt as
3487         to_check_pending_interrupt.
3488         * target.c (target_check_pending_interrupt): New function.
3489         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3490         field.
3491         (target_check_pending_interrupt): New declaration.
3492         * utils.c (maybe_quit): New function.
3493         * target-delegates.c: Regenerate.
3494
3495 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3496
3497         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3498         Rename local variable pid to tid, and get lwpid of lwp.  Update
3499         debug output.
3500
3501 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3502
3503         * ada-lang.c (ada_read_var_value): Add a var_block argument
3504         and pass it to default_read_var_value.
3505         * block.c (block_static_link): New accessor.
3506         * block.h (block_static_link): Declare it.
3507         * buildsym.c (finish_block_internal): Add a static_link
3508         argument.  If there is a static link, associate it to the new
3509         block.
3510         (finish_block): Add a static link argument and pass it to
3511         finish_block_internal.
3512         (end_symtab_get_static_block): Update calls to finish_block and
3513         to finish_block_internal.
3514         (end_symtab_with_blockvector): Update call to
3515         finish_block_internal.
3516         * buildsym.h: Forward-declare struct dynamic_prop.
3517         (struct context_stack): Add a static_link field.
3518         (finish_block): Add a static link argument.
3519         * c-exp.y: Remove an obsolete comment (evaluation of variables
3520         already start from the selected frame, and now they climb *up*
3521         the call stack) and propagate the block information to the
3522         produced expression.
3523         * d-exp.y: Likewise.
3524         * f-exp.y: Likewise.
3525         * go-exp.y: Likewise.
3526         * jv-exp.y: Likewise.
3527         * m2-exp.y: Likewise.
3528         * p-exp.y: Likewise.
3529         * coffread.c (coff_symtab_read): Update calls to finish_block.
3530         * dbxread.c (process_one_symbol): Likewise.
3531         * xcoffread.c (read_xcoff_symtab): Likewise.
3532         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3533         "sym" parameter to struct block_symbol, update its uses and pass
3534         its block to calls to read_var_value.
3535         (convert_symbol_sym): Update the calls to convert_one_symbol.
3536         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3537         call to read_var_value.
3538         * dwarf2loc.c (block_op_get_frame_base): New.
3539         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3540         get_frame_base method.
3541         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3542         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3543         instead of the selected frame in order to evaluate the
3544         expression.
3545         (dwarf2_evaluate_property): Add a frame argument.  Update call
3546         to dwarf2_locexpr_baton_eval to provide a frame in available and
3547         to handle the absence of address stack.
3548         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3549         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3550         declaration.
3551         (read_func_scope): Record any available static link description.
3552         Update call to finish_block.
3553         (read_lexical_block_scope): Update call to finish_block.
3554         * findvar.c (follow_static_link): New.
3555         (get_hosting_frame): New.
3556         (default_read_var_value): Add a var_block argument.  Use
3557         get_hosting_frame to handle non-local references.
3558         (read_var_value): Add a var_block argument and pass it to the
3559         LA_READ_VAR_VALUE method.
3560         * gdbtypes.c (resolve_dynamic_range): Update calls to
3561         dwarf2_evaluate_property.
3562         (resolve_dynamic_type_internal): Likewise.
3563         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3564         read_var_value, passing it the block coming from symbol lookup.
3565         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3566         read_var_value (TODO).
3567         * infcmd.c (finish_command_continuation): Update call to
3568         read_var_value, passing it the block coming from symbol lookup.
3569         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3570         * language.h (struct language_defn): Add a var_block argument to
3571         the LA_READ_VAR_VALUE method.
3572         * objfiles.c (struct static_link_htab_entry): New.
3573         (static_link_htab_entry_hash): New.
3574         (static_link_htab_entry_eq): New.
3575         (objfile_register_static_link): New.
3576         (objfile_lookup_static_link): New.
3577         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3578         * objfiles.h: Include hashtab.h.
3579         (struct objfile): Add a static_links field.
3580         (objfile_register_static_link): New.
3581         (objfile_lookup_static_link): New.
3582         * printcmd.c (print_variable_and_value): Update call to
3583         read_var_value.
3584         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3585         * python/py-frame.c (frapy_read_var): Update call to
3586         read_var_value, passing it the block coming from symbol lookup.
3587         * python/py-framefilter.c (extract_sym): Add a sym_block
3588         parameter and set the pointed value to NULL (TODO).
3589         (enumerate_args): Update call to extract_sym.
3590         (enumerate_locals): Update calls to extract_sym and to
3591         read_var_value.
3592         * python/py-symbol.c (sympy_value): Update call to
3593         read_var_value (TODO).
3594         * stack.c (read_frame_local): Update call to read_var_value.
3595         (read_frame_arg): Likewise.
3596         (return_command): Likewise.
3597         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3598         method.
3599         (struct symbol): Add a block field.
3600         (SYMBOL_BLOCK): New accessor.
3601         * valops.c (value_of_variable): Remove frame/block handling and
3602         pass the block argument to read_var_value, which does this job
3603         now.
3604         (value_struct_elt_for_reference): Update calls to
3605         read_var_value.
3606         (value_of_this): Pass the block found to read_var_value.
3607         * value.h (read_var_value): Add a var_block argument.
3608         (default_read_var_value): Likewise.
3609
3610 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3611
3612         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3613         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3614         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3615
3616 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3617
3618         * Makefile.in (aarch64-liunx.o): New rule.
3619         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3620         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3621         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3622         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3623         extern.
3624         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3625         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3626         * nat/aarch64-linux.c: New file.
3627         * nat/aarch64-linux.h: New file.
3628
3629 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3630
3631         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3632         lwp_arch_private_info and ptid_of_lwp.
3633
3634 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3635
3636         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3637         Move it to nat/aarch64-linux-hw-point.c.
3638         (debug_reg_change_callback): Likewise.
3639         (aarch64_notify_debug_reg_change): :Likewise.
3640         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3641         (aarch64_dr_update_callback_param): New.
3642         (debug_reg_change_callback): New function.
3643         (aarch64_notify_debug_reg_change): Likewise.
3644         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3645         Remove the declaration.
3646
3647 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3648
3649         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3650         Call current_lwp_ptid.
3651
3652 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3653
3654         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3655         debug_printf.
3656
3657 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3658
3659         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3660         ptid_get_pid rather than ptid_get_lwp.
3661
3662 2015-08-24  Pedro Alves  <palves@redhat.com>
3663
3664         * NEWS (New commands): Mention set/show remote
3665         multiprocess-extensions-packet.
3666         * remote.c (remote_query_supported): Only tell the server to use
3667         the multiprocess extensions if the user hasn't force-disabled them
3668         with "set remote multiprocess-extensions-packet off".
3669
3670 2015-08-24  Pedro Alves  <palves@redhat.com>
3671
3672         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3673         1029a8112290f6eee9d7878a391c49db42c999bd.
3674         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3675         Regenerate.
3676         * gnulib/import/Makefile.am: Update.
3677         * gnulib/import/Makefile.in: Update.
3678         * gnulib/import/alloca.in.h: Update.
3679         * gnulib/import/basename-lgpl.c: Update.
3680         * gnulib/import/canonicalize-lgpl.c: Update.
3681         * gnulib/import/config.charset: Update.
3682         * gnulib/import/dirent.in.h: Update.
3683         * gnulib/import/dirfd.c: Update.
3684         * gnulib/import/dirname-lgpl.c: Update.
3685         * gnulib/import/dirname.h: Update.
3686         * gnulib/import/dosname.h: Update.
3687         * gnulib/import/errno.in.h: Update.
3688         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3689         * gnulib/import/extra/snippet/c++defs.h: Update.
3690         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3691         * gnulib/import/extra/update-copyright: Update.
3692         * gnulib/import/float+.h: Update.
3693         * gnulib/import/float.c: Update.
3694         * gnulib/import/float.in.h: Update.
3695         * gnulib/import/fnmatch.c: Update.
3696         * gnulib/import/fnmatch.in.h: Update.
3697         * gnulib/import/fnmatch_loop.c: Update.
3698         * gnulib/import/fpucw.h: Update.
3699         * gnulib/import/frexp.c: Update.
3700         * gnulib/import/frexpl.c: Update.
3701         * gnulib/import/gettimeofday.c: Update.
3702         * gnulib/import/inttypes.in.h: Update.
3703         * gnulib/import/isnan.c: Update.
3704         * gnulib/import/isnand-nolibm.h: Update.
3705         * gnulib/import/isnand.c: Update.
3706         * gnulib/import/isnanl-nolibm.h: Update.
3707         * gnulib/import/isnanl.c: Update.
3708         * gnulib/import/itold.c: Update.
3709         * gnulib/import/localcharset.c: Update.
3710         * gnulib/import/localcharset.h: Update.
3711         * gnulib/import/lstat.c: Update.
3712         * gnulib/import/m4/00gnulib.m4: Update.
3713         * gnulib/import/m4/absolute-header.m4: Update.
3714         * gnulib/import/m4/alloca.m4: Update.
3715         * gnulib/import/m4/canonicalize.m4: Update.
3716         * gnulib/import/m4/codeset.m4: Update.
3717         * gnulib/import/m4/configmake.m4: Update.
3718         * gnulib/import/m4/dirent_h.m4: Update.
3719         * gnulib/import/m4/dirfd.m4: Update.
3720         * gnulib/import/m4/dirname.m4: Update.
3721         * gnulib/import/m4/double-slash-root.m4: Update.
3722         * gnulib/import/m4/eealloc.m4: Update.
3723         * gnulib/import/m4/errno_h.m4: Update.
3724         * gnulib/import/m4/exponentd.m4: Update.
3725         * gnulib/import/m4/exponentl.m4: Update.
3726         * gnulib/import/m4/extensions.m4: Update.
3727         * gnulib/import/m4/extern-inline.m4: Update.
3728         * gnulib/import/m4/fcntl-o.m4: Update.
3729         * gnulib/import/m4/float_h.m4: Update.
3730         * gnulib/import/m4/fnmatch.m4: Update.
3731         * gnulib/import/m4/fpieee.m4: Update.
3732         * gnulib/import/m4/frexp.m4: Update.
3733         * gnulib/import/m4/frexpl.m4: Update.
3734         * gnulib/import/m4/gettimeofday.m4: Update.
3735         * gnulib/import/m4/glibc21.m4: Update.
3736         * gnulib/import/m4/gnulib-cache.m4: Update.
3737         * gnulib/import/m4/gnulib-common.m4: Update.
3738         * gnulib/import/m4/gnulib-comp.m4: Update.
3739         * gnulib/import/m4/gnulib-tool.m4: Update.
3740         * gnulib/import/m4/include_next.m4: Update.
3741         * gnulib/import/m4/inttypes-pri.m4: Update.
3742         * gnulib/import/m4/inttypes.m4: Update.
3743         * gnulib/import/m4/isnand.m4: Update.
3744         * gnulib/import/m4/isnanl.m4: Update.
3745         * gnulib/import/m4/largefile.m4: Update.
3746         * gnulib/import/m4/localcharset.m4: Update.
3747         * gnulib/import/m4/locale-fr.m4: Update.
3748         * gnulib/import/m4/locale-ja.m4: Update.
3749         * gnulib/import/m4/locale-zh.m4: Update.
3750         * gnulib/import/m4/longlong.m4: Update.
3751         * gnulib/import/m4/lstat.m4: Update.
3752         * gnulib/import/m4/malloc.m4: Update.
3753         * gnulib/import/m4/malloca.m4: Update.
3754         * gnulib/import/m4/math_h.m4: Update.
3755         * gnulib/import/m4/mbrtowc.m4: Update.
3756         * gnulib/import/m4/mbsinit.m4: Update.
3757         * gnulib/import/m4/mbsrtowcs.m4: Update.
3758         * gnulib/import/m4/mbstate_t.m4: Update.
3759         * gnulib/import/m4/memchr.m4: Update.
3760         * gnulib/import/m4/memmem.m4: Update.
3761         * gnulib/import/m4/mmap-anon.m4: Update.
3762         * gnulib/import/m4/multiarch.m4: Update.
3763         * gnulib/import/m4/nocrash.m4: Update.
3764         * gnulib/import/m4/off_t.m4: Update.
3765         * gnulib/import/m4/pathmax.m4: Update.
3766         * gnulib/import/m4/readlink.m4: Update.
3767         * gnulib/import/m4/rename.m4: Update.
3768         * gnulib/import/m4/rmdir.m4: Update.
3769         * gnulib/import/m4/ssize_t.m4: Update.
3770         * gnulib/import/m4/stat.m4: Update.
3771         * gnulib/import/m4/stdbool.m4: Update.
3772         * gnulib/import/m4/stddef_h.m4: Update.
3773         * gnulib/import/m4/stdint.m4: Update.
3774         * gnulib/import/m4/stdio_h.m4: Update.
3775         * gnulib/import/m4/stdlib_h.m4: Update.
3776         * gnulib/import/m4/string_h.m4: Update.
3777         * gnulib/import/m4/strstr.m4: Update.
3778         * gnulib/import/m4/strtok_r.m4: Update.
3779         * gnulib/import/m4/sys_socket_h.m4: Update.
3780         * gnulib/import/m4/sys_stat_h.m4: Update.
3781         * gnulib/import/m4/sys_time_h.m4: Update.
3782         * gnulib/import/m4/sys_types_h.m4: Update.
3783         * gnulib/import/m4/time_h.m4: Update.
3784         * gnulib/import/m4/unistd_h.m4: Update.
3785         * gnulib/import/m4/warn-on-use.m4: Update.
3786         * gnulib/import/m4/wchar_h.m4: Update.
3787         * gnulib/import/m4/wchar_t.m4: Update.
3788         * gnulib/import/m4/wctype_h.m4: Update.
3789         * gnulib/import/m4/wint_t.m4: Update.
3790         * gnulib/import/malloc.c: Update.
3791         * gnulib/import/malloca.c: Update.
3792         * gnulib/import/malloca.h: Update.
3793         * gnulib/import/math.in.h: Update.
3794         * gnulib/import/mbrtowc.c: Update.
3795         * gnulib/import/mbsinit.c: Update.
3796         * gnulib/import/mbsrtowcs-impl.h: Update.
3797         * gnulib/import/mbsrtowcs-state.c: Update.
3798         * gnulib/import/mbsrtowcs.c: Update.
3799         * gnulib/import/memchr.c: Update.
3800         * gnulib/import/memmem.c: Update.
3801         * gnulib/import/pathmax.h: Update.
3802         * gnulib/import/readlink.c: Update.
3803         * gnulib/import/ref-add.sin: Update.
3804         * gnulib/import/ref-del.sin: Update.
3805         * gnulib/import/rename.c: Update.
3806         * gnulib/import/rmdir.c: Update.
3807         * gnulib/import/same-inode.h: Update.
3808         * gnulib/import/stat.c: Update.
3809         * gnulib/import/stdbool.in.h: Update.
3810         * gnulib/import/stddef.in.h: Update.
3811         * gnulib/import/stdint.in.h: Update.
3812         * gnulib/import/stdio.c: Update.
3813         * gnulib/import/stdio.in.h: Update.
3814         * gnulib/import/stdlib.in.h: Update.
3815         * gnulib/import/str-two-way.h: Update.
3816         * gnulib/import/streq.h: Update.
3817         * gnulib/import/string.in.h: Update.
3818         * gnulib/import/stripslash.c: Update.
3819         * gnulib/import/strnlen1.c: Update.
3820         * gnulib/import/strnlen1.h: Update.
3821         * gnulib/import/strstr.c: Update.
3822         * gnulib/import/strtok_r.c: Update.
3823         * gnulib/import/sys_stat.in.h: Update.
3824         * gnulib/import/sys_time.in.h: Update.
3825         * gnulib/import/sys_types.in.h: Update.
3826         * gnulib/import/time.in.h: Update.
3827         * gnulib/import/unistd.in.h: Update.
3828         * gnulib/import/verify.h: Update.
3829         * gnulib/import/wchar.in.h: Update.
3830         * gnulib/import/wctype.in.h: Update.
3831         * gnulib/import/gettimeofday.c: New file.
3832         * gnulib/import/m4/absolute-header.m4: New file.
3833         * gnulib/import/m4/gettimeofday.m4: New file.
3834         * gnulib/import/m4/sys_socket_h.m4: New file.
3835         * gnulib/import/m4/sys_time_h.m4: New file.
3836         * gnulib/import/stdio.c: Delete file.
3837         * gnulib/import/sys_time.in.h: New file.
3838
3839 2015-08-24  Pedro Alves  <palves@redhat.com>
3840
3841         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3842         * common/gdb_sys_time.h: New file.
3843         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3844         * gdb_select.h: Likewise.
3845         * gdb_usleep.c: Likewise.
3846         * maint.c: Likewise.
3847         * mi/mi-main.c: Likewise.
3848         * mi/mi-parse.h: Likewise.
3849         * remote-fileio.c: Likewise.
3850         * remote-m32r-sdi.c: Likewise.
3851         * remote.c: Likewise.
3852         * ser-base.c: Likewise.
3853         * ser-pipe.c: Likewise.
3854         * ser-tcp.c: Likewise.
3855         * ser-unix.c: Likewise.
3856         * symfile.c: Likewise.
3857         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3858         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3859         * utils.c: Likewise.
3860
3861 2015-08-24  Pedro Alves  <palves@redhat.com>
3862
3863         * NEWS: Mention removed support for the various ROM monitors.
3864         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3865         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3866         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3867         gdb_target_obs.
3868         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3869         gdb_target_obs.
3870         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3871         dsrec.o from gdb_target_obs.
3872         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3873         from gdb_target_obs.
3874         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3875         gdb_target_obs.
3876         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3877         dink32-rom.o from gdb_target_obs.
3878         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3879         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3880         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3881         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3882
3883 2015-08-21  Pedro Alves  <palves@redhat.com>
3884
3885         * frame.c (null_frame_id): Explicitly zero-initialize.
3886
3887 2015-08-21  Tom Tromey  <tromey@redhat.com>
3888
3889         * dwarf2read.c (struct dwarf2_section_info): Rename field
3890         'asection' to 'section'.
3891         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3892         (dwarf2_locate_sections, dwarf2_locate_sections)
3893         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3894         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3895         (dwarf2_locate_v2_dwp_sections): Adjust.
3896
3897 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3898
3899         * top.h (gdb_in_secondary_prompt_p): Declare.
3900         * top.c (gdb_secondary_prompt_depth): Define.
3901         (gdb_in_secondary_prompt_p): Define.
3902         (gdb_readline_wrapper_cleanup): Decrement
3903         gdb_secondary_prompt_depth.
3904         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3905         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3906         are in a secondary prompt.
3907
3908 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3909
3910         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3911         emit the newline.
3912
3913 2015-08-21  Gary Benson  <gbenson@redhat.com>
3914
3915         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3916
3917 2015-08-21  Gary Benson  <gbenson@redhat.com>
3918
3919         * target.h (struct target_ops) <to_fileio_open>: New argument
3920         warn_if_slow.  Update comment.  All implementations updated.
3921         (target_fileio_open_warn_if_slow): New declaration.
3922         * target.c (target_fileio_open): Renamed as...
3923         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3924         Pass warn_if_slow to implementation.  Update debug printing.
3925         (target_fileio_open): New function.
3926         (target_fileio_open_warn_if_slow): Likewise.
3927         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3928         target_fileio_open_warn_if_slow.
3929
3930 2015-08-21  Gary Benson  <gbenson@redhat.com>
3931
3932         * nat/linux-namespaces.c (linux_mntns_access_fs):
3933         Do not overwrite old_chain.
3934
3935 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3936
3937         * arch/xtensa.h: New file.
3938         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3939         (ps_get_thread_area): New function.
3940         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3941         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3942         * xtensa-tdep.c (osabi.h): New #include.
3943         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3944         xtensa-specific hooks.
3945         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3946         member and move the structure to arch/xtensa.h.
3947
3948 2015-08-21  Pedro Alves  <palves@redhat.com>
3949
3950         * remote.c (struct readahead_cache): New.
3951         (struct remote_state) <readahead_cache>: New field.
3952         (remote_open_1): Invalidate the cache.
3953         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3954         functions.
3955         (remote_hostio_pwrite): Invalidate the readahead cache.
3956         (remote_hostio_pread): Rename to ...
3957         (remote_hostio_pread_vFile): ... this.
3958         (remote_hostio_pread_from_cache): New function.
3959         (remote_hostio_pread): Reimplement.
3960         (remote_hostio_close): Invalidate the readahead cache.
3961
3962 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3963
3964         PR build/18843
3965         * procfs.c: Include "filestuff.h".
3966
3967 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3968
3969         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3970         curch.
3971         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3972         cur_line or curch, instead call wmove().
3973         (init_win_info) [CMD_WIN]: Likewise.
3974         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3975         instead call getcury().
3976         (tui_redisplay_readline): Don't set cur_line or curch.
3977         (tui_mld_erase_entire_line): Don't read cur_line, instead call
3978         getcury().
3979         (tui_cont_sig): Remove call to wmove.
3980         (tui_getc): Don't read cur_line or curch, instead call getcury()
3981         or getyx().  Don't set curch.
3982         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3983         set cur_line or curch.  Always move cursor to (0,0).
3984
3985 2015-08-20  Pedro Alves  <palves@redhat.com>
3986
3987         * infrun.c (print_target_wait_results): Make extern.
3988         * infrun.h (print_target_wait_results): Declare.
3989         * remote.c (set_stop_requested_callback): Delete.
3990         (process_initial_stop_replies): New function.
3991         (remote_start_remote): Use it.
3992         (stop_reply_queue_length): New function.
3993
3994 2015-08-20  Pedro Alves  <palves@redhat.com>
3995
3996         * dwarf2read.c (process_full_comp_unit): To tell whether
3997         start_subfile managed to deduce a language, test for
3998         language_unknown instead of language_c.
3999
4000 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4001
4002         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4003         matches attributes.
4004
4005 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4006
4007         * dwarf2read.c (dwarf2_string_attr): New function.
4008         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4009         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4010         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4011         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4012         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4013
4014 2015-08-18  Doug Evans  <dje@google.com>
4015             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4016
4017         PR mi/18833
4018         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4019         if MI-like.
4020         * mi/mi-out.c: #include "vec.h".
4021         (ui_filep): New type.
4022         (DEV_VEC_P (ui_filep)): New type.
4023         (struct ui_out_data) <buffer, original_buffer>: Delete.
4024         (struct ui_out_data) <streams>: New member.
4025         (mi_ui_out_impl): Add data_destroy field.
4026         (mi_field_string, mi_field_fmt): Update.
4027         (mi_flush, mi_redirect, field_separator): Update.
4028         (mi_open, mi_close): Update.
4029         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4030         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4031         (mi_out_new): Call mi_out_data_ctor.
4032
4033 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4034
4035         * remote.c (strprefix): New.
4036         (remote_parse_stop_reply): Use strprefix instead of strncmp
4037         to ensure exact match of keyword.
4038
4039 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4040
4041         * gdb_bfd.c (debug_bfd_cache): New variable.
4042         (show_bfd_cache_debug): New function.
4043         (gdb_bfd_open): Add debug logging.
4044         (gdb_bfd_ref): Likewise.
4045         (gdb_bfd_unref): Likewise.
4046         (_initialize_gdb_bfd): Add new set/show command.
4047         * NEWS: Mention new command.
4048
4049 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4050
4051         * gdb_bfd.c (bfd_sharing): New variable.
4052         (show_bfd_sharing): New function.
4053         (gdb_bfd_open): Check bfd_sharing variable.
4054         (_initialize_gdb_bfd): Add new set/show command.
4055         * NEWS: Mention new command.
4056
4057 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4058
4059         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4060         field.
4061         (struct gdb_bfd_cache_search): Likewise.
4062         (eq_bfd): Compare the size, inode, and device id fields.
4063         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4064         (gdb_bfd_ref): Likewise.
4065         (gdb_bfd_unref): Likewise.
4066
4067 2015-08-18  Pedro Alves  <palves@redhat.com>
4068
4069         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4070         target implements to_always_non_stop_p, call it.
4071         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4072         (x86_linux_create_target): Install it as to_always_non_stop_p
4073         method.
4074
4075 2015-08-17  Doug Evans  <dje@google.com>
4076
4077         * ui-out.c (default_ui_out_impl): Add comment.
4078
4079 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4080
4081         * d-exp.y (type_aggregate_p): New function.
4082         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4083         (classify_inner_name): Likewise.
4084         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4085
4086 2015-08-15  Doug Evans  <xdje42@gmail.com>
4087
4088         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4089         updated.
4090         (add_psymbol_to_list): Ditto.
4091
4092 2015-08-15  Doug Evans  <xdje42@gmail.com>
4093
4094         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4095         updated.  Call end_psymtab_common.
4096         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4097         end_psymtab_common.
4098         (build_type_psymtabs_reader): Ditto.
4099         * psympriv.h (sort_pst_symbols): Delete.
4100         (end_psymtab_common): Declare.
4101         * psymtab.c (sort_pst_symbols): Make static.
4102         (end_psymtab_common): New function.
4103         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4104
4105 2015-08-15  Doug Evans  <xdje42@gmail.com>
4106
4107         * defs.h (LANGUAGE_BITS): Define.
4108         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4109         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4110         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4111         (minimal_symbol_type): Add nr_minsym_types.
4112         (MINSYM_TYPE_BITS): Define.
4113         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4114         (domain_enum_tag): Add NR_DOMAINS.
4115         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4116         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4117
4118 2015-08-15  Doug Evans  <xdje42@gmail.com>
4119
4120         * objfiles.h: Whitespace cleanup.
4121         * psympriv.h: Whitespace cleanup.
4122         * psymtab.c: Whitespace/coding convention cleanup.
4123
4124 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4125
4126         * inferior.c (detach_inferior_command): Don't call
4127         any_thread_of_process when pid is 0.
4128         (kill_inferior_command): Likewise.
4129
4130 2015-08-14  Doug Evans  <xdje42@gmail.com>
4131
4132         PR gdb/11833
4133         * NEWS: Document new /s modifier for the disassemble command.
4134         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4135         (_initialize_cli_cmds): Update online docs of disassemble command.
4136         * disasm.c: #include "source.h".
4137         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4138         All uses updated.
4139         (dis_line_entry): New struct.
4140         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4141         (allocate_dis_line_table): New functions.
4142         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4143         (dump_insns): New arg end_pc.  All callers updated.
4144         (do_mixed_source_and_assembly_deprecated): Renamed from
4145         do_mixed_source_and_assembly.  All callers updated.
4146         (do_mixed_source_and_assembly): New function.
4147         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4148         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4149         DISASSEMBLY_SOURCE.  All uses updated.
4150         (DISASSEMBLY_SOURCE): New macro.
4151         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4152
4153 2015-08-14  Keith Seitz  <keiths@redhat.com>
4154
4155         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4156         `typename' to `type_name' to avoid C++ reserved word.
4157
4158 2015-08-14  Keith Seitz  <keiths@redhat.com>
4159
4160         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4161         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4162         silence ARI errors.
4163
4164 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4165
4166         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4167         xstrprintf instead of malloc and sprintf.
4168         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4169         (lex_one_token): Likewise.
4170
4171 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4172
4173         * solib-svr4.c (read_program_header): Add base_addr argument to
4174         report the runtime address of the segment.
4175         (find_program_interpreter): Update read_program_header call to pass
4176         a NULL pointer for the new argument.
4177         (scan_dyntag): Add ptr_addr argument to report the runtime address
4178         of the tag payload.
4179         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4180         read_program_header to get the base address of the dynamic segment.
4181         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4182         read_program_header.
4183         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4184
4185 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4186
4187         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4188
4189 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4190
4191         * d-exp.y (%union): Add voidval.
4192         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4193         name in the lexing stage.
4194         (PostfixExpression): Move symbol completion handling in grammar here
4195         from PrimaryExpression.
4196         (PrimaryExpression): Move routines to handle resolving identifier
4197         tokens in the grammar here from push_expression_name.
4198         (IdentifierExp): Remove the handling of alternating '.' and identifier
4199         tokens.
4200         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4201         (BasicType): Remove C-style typename rules.
4202         (d_type_from_name, d_module_from_name, push_variable)
4203         (push_fieldnames, push_type_name, push_module_name)
4204         (push_expression_name): Remove.
4205         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4206         (token_and_value): New type.
4207         (token_fifo, popping, name_obstack): New globals.
4208         (classify_name): New function.
4209         (classify_inner_name): Likewise.
4210         (yylex): Likewise.
4211         (d_parse): Initialize token_fifo, popping and name_obstack.
4212
4213 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4214
4215         * Makefile.in (SFILES): Add d-namespace.c.
4216         (COMMON_OBS): Add d-namespace.o.
4217         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4218         la_lookup_symbol_nonlocal callback function pointer.
4219         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4220         (d_lookup_nested_symbol): New declaration.
4221         * d-namespace.c: New file.
4222
4223 2015-08-13  Pedro Alves  <palves@redhat.com>
4224
4225         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4226         cleanup after the decref cleanup, not before.
4227
4228 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4229
4230         * ada-lang.c: Include namespace.h
4231         (aux_add_nonlocal_symbols): Fix a function name in comment.
4232         (ada_add_block_renamings): New.
4233         (add_nonlocal_symbols): Add global renamings handling.
4234         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4235         to...
4236         (ada_add_all_symbols): ... this new function.
4237         (ada_add_block_symbols): Try to match the input name against the
4238         "using directives list", perform a recursive symbol lookup on
4239         the matched declarations.
4240         * block.h (struct block): Move the_namespace to top-level as
4241         namespace_info. Remove the language_specific field.
4242         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4243         * buildsym.h (using_directives): Rename into...
4244         (local_using_directives): ... this.
4245         (global_using_directives): New.
4246         (struct context_stack): Rename the using_directives field into
4247         local_using_directives.
4248         * buildsym.c (finish_block_internal): Deal with the proper
4249         using directives repository (local or global).
4250         (prepare_for_building): Reset local_using_directives. Assert
4251         that there is no pending global using directive.
4252         (reset_symtab_globals): Reset global_using_directives and
4253         local_using_directives.
4254         (end_symtab_get_static_block): Don't ignore symtabs that have
4255         only using directives.
4256         (push_context): Update references to local_using_directives.
4257         (buildsym_init): Do not reset using_directives.
4258         * cp-support.c: Include namespace.h.
4259         * cp-support.h (struct using_direct): Move to namespace.h.
4260         (cp_add_using_directives): Move to namespace.h.
4261         * cp-namespace.c: Include namespace.h
4262         (cp_add_using_directive): Move to namespace.c, rename it to
4263         add_using_directive, add a "using_directives" argument and use
4264         it as the pending using directives repository.  All callers
4265         updated.
4266         * dwarf2read.c (using_directives): New.
4267         (read_import_statement): Call using_directives.
4268         (read_func_scope): Update references to local_using_directives.
4269         (read_lexical_block_scope): Likewise.
4270         (read_namespace): Update the heading comment, call
4271         using_directives.
4272         * namespace.h: New file.
4273         * namespace.c: New file.
4274         * Makefile.in (SFILES): Add namespace.c.
4275         (COMMON_OBS): Add namespace.o
4276
4277 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4278
4279         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4280         compute RETADDR.
4281
4282 2015-08-12  Keith Seitz  <keiths@redhat.com>
4283
4284         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4285         reserved C++ keyword "explicit" to "explicit_loc".
4286         * breakpoint.c (create_overlay_event_breakpoint)
4287         (create_longjmp_master_breakpoint)
4288         (create_std_terminate_master_breakpoint)
4289         (create_exception_master_breakpoint, update_static_tracepoint):
4290         Rename reserved C++ keyword "explicit" to "explicit_loc".
4291         * completer.c (collect_explicit_location_matches)
4292         (explicit_location_completer): Rename reserved C++ keyword
4293         "explicit" to "explicit_loc".
4294         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4295         (canonicalize_linespec, create_sals_line_offset)
4296         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4297         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4298         "explicit" to "explicit_loc".
4299         * location.c (struct event_location) <explicit>: Rename to
4300         "explicit_loc".
4301         (initialize_explicit_location, new_explicit_location)
4302         (explicit_location_to_string_internal, explicit_location_to_linespec):
4303         Rename reserved C++ keyword "explicit" to "explicit_loc".
4304         * location.h (explicit_location_to_string)
4305         (explicit_location_to_linespec, initialize_explicit_location)
4306         (new_explicit_location): Rename reserved C++ keyword "explicit"
4307         to "explicit_loc".
4308         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4309         keyword "explicit" to "explicit_loc".
4310
4311 2015-08-12  Keith Seitz  <keiths@redhat.com>
4312
4313         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4314         and only call decode_line_1 when it is non-NULL.
4315
4316 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4317
4318         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4319         location address is not meaningful.
4320         (breakpoint_address_is_meaningful): Update comment.
4321
4322 2015-08-11  Keith Seitz  <keiths@redhat.com>
4323
4324         * NEWS: Mention explicit locations.
4325         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4326         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4327         (_initialize_breakpoint): Update documentation for
4328         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4329
4330 2015-08-11  Keith Seitz  <keiths@redhat.com>
4331
4332         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4333         explicit locations, options "--source", "--function",
4334         "--label", and "--line".
4335
4336 2015-08-11  Keith Seitz  <keiths@redhat.com>
4337
4338         * completer.c: Include location.h.
4339         (enum match_type): New enum.
4340         (location_completer): Rename to ...
4341         (linespec_completer): ... this.
4342         (collect_explicit_location_matches, backup_text_ptr)
4343         (explicit_location_completer): New functions.
4344         (location_completer): "New" function; handle linespec
4345         and explicit location completions.
4346         (complete_line_internal): Remove all location completer-specific
4347         handling.
4348         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4349         (find_toplevel_char): Export.
4350         (linespec_parse_line_offset): Export.
4351         Issue error if STRING is not numerical.
4352         (gdb_get_linespec_parser_quote_characters): New function.
4353         * linespec.h (linespec_parse_line_offset): Declare.
4354         (get_gdb_linespec_parser_quote_characters): Declare.
4355         (is_ada_operator): Declare.
4356         (find_toplevel_char): Declare.
4357         (linespec_lexer_lex_keyword): Declare.
4358         * location.c (explicit_to_event_location): New function.
4359         (explicit_location_lex_one): New function.
4360         (string_to_explicit_location): New function.
4361         (string_to_event_location): Handle explicit locations.
4362         * location.h (explicit_to_event_location): Declare.
4363         (string_to_explicit_location): Declare.
4364
4365 2015-08-11  Keith Seitz  <keiths@redhat.com>
4366
4367         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4368         linespec into explicit location.
4369         * breakpoint.c (create_overlay_breakpoint)
4370         (create_longjmp_master_breakpoint)
4371         (create_std_terminate_master_breakpoint)
4372         (create_exception_master_breakpoint): Convert linespec into explicit
4373         location.
4374         (update_static_tracepoint): Convert linespec into explicit location.
4375         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4376         location.h.
4377         (struct linespec) <expression, expr_pc, source_filename>
4378         <function_name, label_name, line_offset>: Replace with ...
4379         <explicit>: ... this.
4380         <is_linespec>: New member.
4381         (PARSER_EXPLICIT): New accessor macro.
4382         (undefined_label_error): New function.
4383         (source_file_not_found_error): New function.
4384         (linespec_parse_basic): The parser result is now an explicit location.
4385         Use PARSER_EXPLICIT to access it.
4386         Use undefined_label_error.
4387         (canonicalize_linespec): Convert canonical linespec into explicit
4388         location.
4389         Move string representation of location to explicit_location_to_linespec
4390         and use it and explicit_location_to_string to save string
4391         representations of the canonical location.
4392         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4393         explicit location.  Update all references.
4394         (convert_explicit_location_to_sals): New function.
4395         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4396         result's explicit location.
4397         (linespec_state_constructor): Initialize is_linespec.
4398         Use PARSER_EXPLICIT.
4399         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4400         result.
4401         (event_location_to_sals): For linespec locations, set is_linespec.
4402         Handle explicit locations.
4403         (decode_objc): 'ls' contains an explicit location now. Update all
4404         references.
4405         (symtabs_from_filename): Use source_file_not_found_error.
4406         * location.c (struct event_location.u) <explicit>: New member.
4407         (initialize_explicit_location): New function.
4408         (initialize_event_location): Initialize explicit locations.
4409         (new_explicit_location, get_explicit_location)
4410         (get_explicit_location_const): New functions.
4411         (explicit_to_string_internal): New function; most of contents moved
4412         from canonicalize_linespec.
4413         (explicit_location_to_string): New function.
4414         (explicit_location_to_linespec): New function.
4415         (copy_event_location, delete_event_location)
4416         (event_location_to_string_const, event_location_empty_p): Handle
4417         explicit locations.
4418         * location.h (enum offset_relative_sign, struct line_offset): Move
4419         here from linespec.h.
4420         (enum event_location_type): Add EXPLICIT_LOCATION.
4421         (struct explicit_location): New structure.
4422         (explicit_location_to_string): Declare.
4423         (explicit_location_to_linespec): Declare.
4424         (new_explicit_location, get_explicit_locationp
4425         (get_explicit_location_const, initialize_explicit_location): Declare.
4426
4427 2015-08-11  Keith Seitz  <keiths@redhat.com>
4428
4429         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4430         linespec for stap probe to probe location.
4431         * breakpoint.c (create_longjmp_master_breakpoint)
4432         (create_exception_master_breakpoint): Likewise.
4433         (break_command_1): Remove local variable `arg_cp'.
4434         Check location type to set appropriate breakpoint ops methods.
4435         (trace_command): Likewise.
4436         * linespec.c (event_location_to_sals): Assert on probe locations.
4437         * location.c (EL_PROBE): Add macro definition.
4438         (new_probe_location, get_probe_location): New functions.
4439         (copy_event_location, delete_event_location, event_location_to_string)
4440         (string_to_event_location, event_location_empty_p): Handle probe
4441         locations.
4442         * location.h (enum event_location_type): Add PROBE_LOCATION.
4443         (new_probe_location, get_probe_location): Declare.
4444         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4445         Convert linespec into probe location.
4446
4447 2015-08-11  Keith Seitz  <keiths@redhat.com>
4448
4449         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4450         Convert linespec to address location.
4451         * linespec.c (canonicalize_linespec): Do not handle address
4452         locations here.
4453         (convert_address_location_to_sals): New function; contents moved
4454         from ...
4455         (convert_linespc_to_sals): ... here.
4456         (parse_linespec): Remove address locations from linespec grammar.
4457         Remove handling of address locations.
4458         (linespec_lex_to_end): Remove handling of address linespecs.
4459         (event_location_to_sals): Handle ADDRESS_LOCATION.
4460         (linespec_expression_to_pc): Export.
4461         * linespec.h (linespec_expression_to_pc): Add declaration.
4462         * location.c (struct event_location.u) <address>: New member.
4463         (new_address_location, get_address_location): New functions.
4464         (copy_event_location, delete_event_location, event_location_to_string)
4465         (string_to_event_location, event_location_empty_p): Handle address
4466         locations.
4467         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4468         (new_address_location, get_address_location): Declare.
4469         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4470         to address location.
4471         * spu-tdep.c (spu_catch_start): Likewise.
4472
4473 2015-08-11  Keith Seitz  <keiths@redhat.com>
4474
4475         * ax-gdb.c: Include location.h.
4476         (agent_command_1) Use linespec location instead of address
4477         string.
4478         * break-catch-throw.c: Include location.h.
4479         (re_set_exception_catchpoint): Use linespec locations instead
4480         of address strings.
4481         * breakpoint.c: Include location.h.
4482         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4483         (create_std_terminate_master_breakpoint)
4484         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4485         Use linespec location instead of address string.
4486         (print_breakpoint_location):  Use locations and
4487         event_location_to_string.
4488         Print extra_string for pending locations for non-MI streams.
4489         (print_one_breakpoint_location): Use locations and
4490         event_location_to_string.
4491         (init_raw_breakpoint_without_location): Initialize b->location.
4492         (create_thread_event_breakpoint): Use linespec location instead of
4493         address string.
4494         (init_breakpoint_sal): Likewise.
4495         Only save extra_string if it is non-NULL and not the empty string.
4496         Use event_location_to_string instead of `addr_string'.
4497         Constify `p' and `endp'.
4498         Use skip_spaces_const/skip_space_const instead of non-const versions.
4499         Copy the location into the breakpoint.
4500         If LOCATION is NULL, save the breakpoint address as a linespec location
4501         instead of an address string.
4502         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4503         event_location. All uses updated.
4504         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4505         (parse_breakpoint_sals): Use locations instead of address strings.
4506         Remove check for empty linespec with conditional.
4507         Refactor.
4508         (decode_static_tracepoint_spec): Make argument const and update
4509         function.
4510         (create_breakpoint): Change `arg' to a struct event_location and
4511         rename.
4512         Remove `copy_arg' and `addr_start'.
4513         If EXTRA_STRING is empty, set it to NULL.
4514         Don't populate `canonical' for pending breakpoints.
4515         Pass `extra_string' to find_condition_and_thread.
4516         Clear `extra_string' if `rest' was NULL.
4517         Do not error with "garbage after location" if setting a dprintf
4518         breakpoint.
4519         Copy the location into the breakpoint instead of an address string.
4520         (break_command_1): Use string_to_event_location and pass this to
4521         create_breakpoint instead of an address string.
4522         Check against `arg_cp' for a probe linespec.
4523         (dprintf_command): Use string_to_event_location and pass this to
4524         create_breakpoint instead of an address string.
4525         Throw an exception if no format string was specified.
4526         (print_recreate_ranged_breakpoint): Use event_location_to_string
4527         instead of address strings.
4528         (break_range_command, until_break_command)
4529         (init_ada_exception_breakpoint): Use locations instead
4530         of address strings.
4531         (say_where): Print out extra_string for pending locations.
4532         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4533         the breakpoint.
4534         (base_breakpoint_create_sals_from_location): Use struct event_location
4535         instead of address string.
4536         Remove `addr_start' and `copy_arg' parameters.
4537         (base_breakpoint_decode_location): Use struct event_location instead of
4538         address string.
4539         (bkpt_re_set): Use locations instead of address strings.
4540         Use event_location_empty_p to check for unset location.
4541         (bkpt_print_recreate): Use event_location_to_string instead of
4542         an address string.
4543         Print out extra_string for pending locations.
4544         (bkpt_create_sals_from_location, bkpt_decode_location)
4545         (bkpt_probe_create_sals_from_location): Use struct event_location
4546         instead of address string.
4547         (bkpt_probe_decode_location): Use struct event_location instead of
4548         address string.
4549         (tracepoint_print_recreate): Use event_location_to_string to
4550         recreate the tracepoint.
4551         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4552         (tracepoint_probe_create_sals_from_location)
4553         (tracepoint_probe_decode_location): Use struct event_location
4554         instead of address string.
4555         (dprintf_print_recreate): Use event_location_to_string to recreate
4556         the dprintf.
4557         (dprintf_re_set): Remove check for valid/missing format string.
4558         (strace_marker_create_sals_from_location)
4559         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4560         (update_static_tracepoint): Use struct event_location instead of
4561         address string.
4562         (location_to_sals): Likewise.
4563         Pass `extra_string' to find_condition_and_thread.
4564         For newly resolved pending breakpoint locations, clear the location's
4565         string representation.
4566         Assert that the breakpoint's condition string is NULL when
4567         condition_not_parsed.
4568         (breakpoint_re_set_default, create_sals_from_location_default)
4569         (decode_location_default, trace_command, ftrace_command)
4570         (strace_command, create_tracepoint_from_upload): Use locations
4571         instead of address strings.
4572         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4573         Use struct event_location instead of address string.
4574         Update all uses.
4575         <decode_location>: Likewise.
4576         (struct breakpoint) <addr_string>: Change to struct event_location
4577         and rename `location'.
4578         <addr_string_range_end>: Change to struct event_location and rename
4579         `location_range_end'.
4580         (create_breakpoint): Use struct event_location instead of address
4581         string.
4582         * cli/cli-cmds.c: Include location.h.
4583         (edit_command, list_command): Use locations instead of address strings.
4584         * elfread.c: Include location.h.
4585         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4586         * guile/scm-breakpoint.c: Include location.h.
4587         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4588         (gdbscm_register_breakpoint): Use locations instead of address
4589         strings.
4590         * linespec.c: Include location.h.
4591         (struct ls_parser) <stream>: Change to const char *.
4592         (PARSER_STREAM): Update.
4593         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4594         keywords must be followed by whitespace.
4595         (canonicalize_linespec): Save a linespec location into `canonical'.
4596         Save a canonical linespec into `canonical'.
4597         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4598         All uses updated.
4599         Update function description.
4600         (linespec_parser_new): Initialize `parser'.
4601         Update initialization of  parsing stream.
4602         (event_location_to_sals): New function.
4603         (decode_line_full): Change `argptr' to a struct event_location and
4604         rename it `location'.
4605         Use locations instead of address strings.
4606         Call event_location_to_sals instead of parse_linespec.
4607         (decode_line_1): Likewise.
4608         (decode_line_with_current_source, decode_line_with_last_displayed)
4609         Use locations instead of address strings.
4610         (decode_objc): Likewise.
4611         Change `argptr' to const char * and rename `arg'.
4612         (destroy_linespec_result): Delete the linespec result's location
4613         instead of freeing the address string.
4614         * linespec.h (struct linespec_result) <addr_string>: Change to
4615         struct event_location and rename to ...
4616         <location>: ... this.
4617         (decode_line_1, decode_line_full): Change `argptr' to struct
4618         event_location.  All callers updated.
4619         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4620         (mi_cmd_break_insert_1): Use locations instead of address strings.
4621         Throw an error if there was "garbage" at the end of the specified
4622         linespec.
4623         * probe.c: Include location.h.
4624         (parse_probes): Change `argptr' to struct event_location.
4625         Use event locations instead of address strings.
4626         * probe.h (parse_probes): Change `argptr' to struct event_location.
4627         * python/py-breakpoint.c: Include location.h.
4628         (bppy_get_location): Constify local variable `str'.
4629         Use event_location_to_string.
4630         (bppy_init): Use locations instead of address strings.
4631         * python/py-finishbreakpoint.c: Include location.h.
4632         (bpfinishpy_init): Remove local variable `addr_str'.
4633         Use locations instead of address strings.
4634         * python/python.c: Include location.h.
4635         (gdbpy_decode_line): Use locations instead of address strings.
4636         * remote.c: Include location.h.
4637         (remote_download_tracepoint): Use locations instead of address
4638         strings.
4639         * spu-tdep.c: Include location.h.
4640         (spu_catch_start): Remove local variable `buf'.
4641         Use locations instead of address strings.
4642         * tracepoint.c: Include location.h.
4643         (scope_info): Use locations instead of address strings.
4644         (encode_source_string): Constify parameter `src'.
4645         * tracepoint.h (encode_source_string): Likewise.
4646
4647 2015-08-11  Keith Seitz  <keiths@redhat.com>
4648
4649         * Makefile.in (SFILES): Add location.c.
4650         (HFILES_NO_SRCDIR): Add location.h.
4651         (COMMON_OBS): Add location.o.
4652         * linespec.c (linespec_lex_to_end): New function.
4653         * linespec.h (linespec_lex_to_end): Declare.
4654         * location.c: New file.
4655         * location.h: New file.
4656
4657 2015-08-11  Keith Seitz  <keiths@redhat.com>
4658
4659         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4660         Renamed to create_sals_from_location.
4661         <decode_linespec>: Renamed to decode_location.
4662         Update all callers.
4663         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4664         (create_sals_from_location_default): ... this.
4665         (addr_string_to_sals): Renamed to ...
4666         (location_to_sals): ... this.
4667         (decode_linespec_default): Renamed to ...
4668         (decode_location_default): ... this.
4669         (base_breakpoint_create_sals_from_address): Renamed to ...
4670         (base_breakpoint_create_sals_from_location): ... this.
4671         (bkpt_create_sals_from_address): Renamed to ...
4672         (bkpt_create_sals_from_location): ... this.
4673         (bkpt_decode_linespec): Renamed to ...
4674         (bkpt_decode_location): ... this.
4675         (bkpt_probe_create_sals_from_address): Renamed to ...
4676         (bkpt_probe_create_sals_from_location): ... this.
4677         (tracepoint_create_sals_from_address): Renamed to ...
4678         (tracepoint_create_sals_from_location): ... this.
4679         (tracepoint_decode_linespec): Renamed to ...
4680         (tracepoint_decode_location): ... this.
4681         (tracepoint_probe_create_sals_from_address): Renamed to ...
4682         (tracepoint_probe_create_sals_from_location): ... this.
4683         (tracepoint_probe_decode_linespec): Renamed to ...
4684         (tracepoint_probe_decode_location): ... this.
4685         (strace_marker_create_sals_from_address): Renamed to ...
4686         (strace_marker_create_sals_from_location): ... this.
4687         (decode_linespec_default): Renamed to ...
4688         (decode_location_default): ... this.
4689
4690 2015-08-10  Doug Evans  <dje@google.com>
4691             Keith Seitz  <keiths@redhat.com>
4692
4693         PR gdb/17960
4694         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4695         make_file_symbol_completion_list and made static.
4696         (make_file_symbol_completion_list): New function.
4697
4698 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4699
4700         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4701         trailing new-line at end of warning message.
4702         (proceed): Add i18n marker to error messages.
4703
4704 2015-08-07  Pedro Alves  <palves@redhat.com>
4705
4706         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4707
4708 2015-08-07  Pedro Alves  <palves@redhat.com>
4709
4710         * s390-linux-tdep.c (is_non_branch_ril)
4711         (s390_displaced_step_copy_insn): New functions.
4712         (s390_displaced_step_fixup): Update comment.
4713         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4714         gdbarch_displaced_step_copy_insn hook.
4715
4716 2015-08-07  Pedro Alves  <palves@redhat.com>
4717
4718         * infrun.c (displaced_step_prepare_throw): Return -1 if
4719         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4720         comment.
4721         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4722         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4723         in file.
4724         (ppc_displaced_step_copy_insn): New function.
4725         (ppc_displaced_step_fixup): Update comment.
4726         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4727         gdbarch_displaced_step_copy_insn hook.
4728         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4729         NULL return.
4730         * gdbarch.h: Regenerate.
4731
4732 2015-08-07  Pedro Alves  <palves@redhat.com>
4733
4734         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4735         field.
4736         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4737         Return false if dispaced stepping failed before.
4738         (resume): Pass the current inferior to
4739         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4740         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4741         displaced_stepping_failed flag, and fall back to an in-line
4742         step-over.
4743
4744 2015-08-07  Pedro Alves  <palves@redhat.com>
4745
4746         * darwin-nat.c (darwin_stop): Rename to ...
4747         (darwin_interrupt): ... this.
4748         (_initialize_darwin_inferior): Adjust.
4749         * gnu-nat.c (gnu_stop): Delete.
4750         (gnu_target): Don't install gnu_stop.
4751         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4752         (inf_ptrace_interrupt): ... this.
4753         (inf_ptrace_target): Adjust.
4754         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4755         target_stop.
4756         * linux-nat (linux_nat_stop): Rename to ...
4757         (linux_nat_interrupt): ... this.
4758         (linux_nat_stop): Reimplement.
4759         (linux_nat_add_target): Install linux_nat_interrupt.
4760         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4761         (nto_handle_sigint_twice): ... this.
4762         (nto_interrupt): Rename to ...
4763         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4764         target_stop.
4765         (procfs_wait): Adjust.
4766         (procfs_stop): Rename to ...
4767         (procfs_interrupt): ... this.
4768         (init_procfs_targets): Adjust.
4769         * procfs.c (procfs_stop): Rename to ...
4770         (procfs_interrupt): ... this.
4771         (procfs_target): Adjust.
4772         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4773         (m32r_interrupt): ... this.
4774         (init_m32r_ops): Adjust.
4775         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4776         (gdbsim_interrupt_inferior): ... this.
4777         (gdbsim_stop): Rename to ...
4778         (gdbsim_interrupt): ... this.
4779         (gdbsim_cntrl_c): Adjust.
4780         (init_gdbsim_ops): Adjust.
4781         * remote.c (sync_remote_interrupt): Adjust comments.
4782         (remote_stop_as): Rename to ...
4783         (remote_interrupt_as): ... this.
4784         (remote_stop): Adjust comment.
4785         (remote_interrupt): New function.
4786         (init_remote_ops): Install remote_interrupt.
4787         * target.c (target_interrupt): New function.
4788         * target.h (struct target_ops) <to_interrupt>: New field.
4789         (target_interrupt): New declaration.
4790         * windows-nat.c (windows_stop): Rename to ...
4791         (windows_interrupt): ... this.
4792         * target-delegates.c: Regenerate.
4793
4794 2015-08-07  Pedro Alves  <palves@redhat.com>
4795
4796         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4797         threads" as alternative to "switching back to stepped thread".
4798
4799 2015-08-07  Pedro Alves  <palves@redhat.com>
4800
4801         * NEWS: Mention "maint set/show target-non-stop".
4802         * breakpoint.c (update_global_location_list): Check
4803         target_is_non_stop_p instead of non_stop.
4804         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4805         * infrun.c (show_can_use_displaced_stepping)
4806         (can_use_displaced_stepping_p, start_step_over_inferior):
4807         Likewise.
4808         (internal_resume_ptid): New function.
4809         (resume): Use it.
4810         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4811         all-stop mode but the target is always in non-stop mode, start all
4812         the other threads that are implicitly resumed too.
4813         (for_each_just_stopped_thread, fetch_inferior_event)
4814         (adjust_pc_after_break, stop_all_threads): Check
4815         target_is_non_stop_p instead of non_stop.
4816         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4817         with the target always in non-stop mode.
4818         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4819         instead of non_stop.
4820         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4821         instead of non_stop.
4822         (keep_going_stepped_thread): Use internal_resume_ptid.
4823         (stop_waiting): If in all-stop mode, and the target is in non-stop
4824         mode, stop all threads.
4825         (keep_going_pass): Likewise, when starting a new in-line step-over
4826         sequence.
4827         * linux-nat.c (get_pending_status, select_event_lwp)
4828         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4829         target_is_non_stop_p instead of non_stop.
4830         (linux_nat_always_non_stop_p): New function.
4831         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4832         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4833         * target-delegates.c: Regenerate.
4834         * target.c (target_is_non_stop_p): New function.
4835         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4836         (maint_set_target_non_stop_command)
4837         (maint_show_target_non_stop_command): New functions.
4838         (_initilize_target): Install "maint set/show target-non-stop"
4839         commands.
4840         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4841         (target_non_stop_enabled): New declaration.
4842         (target_is_non_stop_p): New declaration.
4843
4844 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4845
4846         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4847         has a pending status, return true.
4848         * gdbthread.h: Include target/waitstatus.h.
4849         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4850         stop_pc>: New fields.
4851         (struct thread_info) <resumed>: New field.
4852         (set_resumed): Declare.
4853         * infrun.c: Include "event-loop.h".
4854         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4855         (infrun_async): New function.
4856         (clear_step_over_info): Add debug output.
4857         (displaced_step_in_progress_any_inferior): New function.
4858         (displaced_step_fixup): New returns int.
4859         (start_step_over): Handle in-line step-overs too.  Assert the
4860         thread is marked resumed.
4861         (resume_cleanups): Clear the thread's resumed flag.
4862         (resume): Set the thread's resumed flag.  Return early if the
4863         thread has a pending status.  Allow stepping a breakpoint with no
4864         signal.
4865         (proceed): Adjust to check 'resumed' instead of 'executing'.
4866         (clear_proceed_status_thread): If the thread has a pending status,
4867         and that status is a finished step, discard the pending status.
4868         (clear_proceed_status): Don't clear step_over_info here.
4869         (random_pending_event_thread, do_target_wait): New functions.
4870         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4871         do_target_wait.
4872         (wait_one): New function.
4873         (THREAD_STOPPED_BY): New macro.
4874         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4875         (thread_stopped_by_hw_breakpoint): New functions.
4876         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4877         functions.
4878         (handle_inferior_event): Also call set_resumed(false) on all
4879         threads implicitly stopped by the event.
4880         (restart_threads, resumed_thread_with_pending_status): New
4881         functions.
4882         (finish_step_over): If we were doing an in-line step-over before,
4883         and no longer are after trying to start a new step-over, restart
4884         all threads.  If we have multiple threads with pending events,
4885         save the current event and go through the event loop again.
4886         (handle_signal_stop): Return early if finish_step_over returns
4887         false.
4888         <random signal>: If we get a signal while stepping over a
4889         breakpoint in-line in non-stop mode, restart all threads.  Clear
4890         step_over_info before delivering the signal.
4891         (keep_going_stepped_thread): Use internal_error instead of
4892         gdb_assert.  Mark the thread as resumed.
4893         (keep_going_pass_signal): Assert the thread isn't already resumed.
4894         If some other thread is doing an in-line step-over, defer the
4895         resume.  If we just started a new in-line step-over, stop all
4896         threads.  Don't clear step_over_info.
4897         (infrun_async_inferior_event_handler): New function.
4898         (_initialize_infrun): Create async event handler with
4899         infrun_async_inferior_event_handler as callback.
4900         (infrun_async): New declaration.
4901         * target.c (target_async): New function.
4902         * target.h (target_async): Declare macro and readd as function
4903         declaration.
4904         * target/waitstatus.h (enum target_stop_reason)
4905         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4906         * thread.c (new_thread): Clear the new waitstatus field.
4907         (set_resumed): New function.
4908
4909 2015-08-07  Pedro Alves  <palves@redhat.com>
4910
4911         * infrun.c (keep_going_stepped_thread): New function, factored out
4912         from ...
4913         (switch_back_to_stepped_thread): ... here.
4914
4915 2015-08-07  Pedro Alves  <palves@redhat.com>
4916
4917         * infrun.c (currently_stepping): Extend intro comment.
4918         * target.h (target_resume): Extend intro comment.
4919
4920 2015-08-07  Pedro Alves  <palves@redhat.com>
4921
4922         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4923         of inferior_ptid.  If the stepped thread vanished, return 0
4924         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4925         the current stop_pc in log message.  Clear trap_expected if the
4926         thread advanced.  Don't pass currently_stepping to
4927         do_target_resume.
4928
4929 2015-08-07  Pedro Alves  <palves@redhat.com>
4930
4931         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4932         * infrun.c (struct execution_control_state): Move higher up in the
4933         file.
4934         (reset_ecs): New function.
4935         (start_step_over): Now returns int.  Rewrite to use
4936         keep_going_pass_signal instead of manually starting a displaced step.
4937         (resume): Don't call set_running here.  If displaced stepping
4938         can't start now, clear trap_expected.
4939         (find_thread_needs_step_over): Delete function.
4940         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4941         If the current thread needs a step over, push it in the step-over
4942         chain.  Don't set insert breakpoints nor call resume directly
4943         here.  Instead rewrite to use start_step_over and
4944         keep_going_pass_signal.
4945         (finish_step_over): New function.
4946         (handle_signal_stop): Call finish_step_over instead of
4947         start_step_over.
4948         (switch_back_to_stepped_thread): If the event thread needs another
4949         step-over do that first.  Use start_step_over.
4950         (keep_going_pass_signal): New function, factored out from ...
4951         (keep_going): ... here.
4952         (_initialize_infrun): Comment moved here.
4953         * thread.c (set_running_thread): New function.
4954         (set_running, finish_thread_state): Use set_running_thread.
4955
4956 2015-08-07  Pedro Alves  <palves@redhat.com>
4957
4958         * gdbthread.h (struct thread_info) <step_over_prev,
4959         step_over_next>: New fields.
4960         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4961         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4962         declarations.
4963         * infrun.c (struct displaced_step_request): Delete.
4964         (struct displaced_step_inferior_state) <step_request_queue>:
4965         Delete field.
4966         (displaced_step_prepare): Assert that trap_expected is set.  Use
4967         thread_step_over_chain_enqueue.  Split starting a new displaced
4968         step to ...
4969         (start_step_over): ... this new function.
4970         (resume): Assert the thread isn't waiting for a step over already.
4971         (proceed): Assert the thread isn't waiting for a step over
4972         already.
4973         (infrun_thread_stop_requested): Adjust to remove threads from the
4974         embedded step-over chain.
4975         (handle_inferior_event) <fork/vfork>: Call start_step_over after
4976         displaced_step_fixup.
4977         (handle_signal_stop): Call start_step_over after
4978         displaced_step_fixup.
4979         * infrun.h (step_over_queue_head): New declaration.
4980         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4981         (thread_step_over_chain_next, thread_is_in_step_over_chain)
4982         (thread_step_over_chain_enqueue)
4983         (thread_step_over_chain_remove): New functions.
4984         (delete_thread_1): Remove thread from the step-over chain.
4985
4986 2015-08-07  Pedro Alves  <palves@redhat.com>
4987
4988         * infrun.c (thread_still_needs_step_over): Rename to ...
4989         (thread_still_needs_step_over_bp): ... this.
4990         (enum step_over_what): New.
4991         (thread_still_needs_step_over): Reimplement.
4992
4993 2015-08-07  Pedro Alves  <palves@redhat.com>
4994
4995         * remote.c (remote_wait_as): If not waiting for a stop reply,
4996         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
4997         requested, don't block waiting forever.
4998
4999 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5000
5001         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5002         waitstatus pointers instead of an ecs.  Adjust.
5003         (handle_inferior_event): Adjust caller.
5004
5005 2015-08-07  Pedro Alves  <palves@redhat.com>
5006
5007         * infrun.c (handle_inferior_event): If we get
5008         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5009         mode, mark all threads of the exiting process as not-executing.
5010         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5011         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5012         exiting process, if inferior_ptid still points at a process.
5013         * thread.c (struct current_thread_cleanup) <next>: New field.
5014         (current_thread_cleanup_chain): New global.
5015         (restore_current_thread_ptid_changed): New function.
5016         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5017         current_thread_cleanup_chain list.
5018         (make_cleanup_restore_current_thread): Add the cleanup data to the
5019         current_thread_cleanup_chain list.
5020         (_initialize_thread): Install restore_current_thread_ptid_changed
5021         as thread_ptid_changed observer.
5022
5023 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5024
5025         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5026         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5027         smaller than expected.
5028
5029 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5030
5031         * stack.c (get_frame_language): Moved ...
5032         * frame.c (get_frame_language): ... to here.
5033         * language.h (get_frame_language): Declaration moved to frame.h.
5034         * frame.h: Add language.h include, for language enum.
5035         (get_frame_language): Declaration moved from language.h.
5036         * language.c: Add frame.h include.
5037         * top.c: Add frame.h include.
5038         * symtab.h (struct obj_section): Declare.
5039         (struct cmd_list_element): Declare.
5040
5041 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5042
5043         * language.c (show_language_command): Find selected frame before
5044         asking for the language of that frame.
5045         (set_language_command): Likewise.
5046         * language.h (get_frame_language): Add frame parameter.
5047         * stack.c (get_frame_language): Add frame parameter, assert
5048         parameter is not NULL, update comment and reindent.
5049         * top.c (check_frame_language_change): Pass the selected frame
5050         into get_frame_language.
5051
5052 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5053
5054         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5055         (pt_btrace_insn_flags): New.
5056         (ftrace_add_pt): Call pt_btrace_insn_flags.
5057         * btrace.h (btrace_insn_flag): New.
5058         (btrace_insn) <flags>: New.
5059         * record-btrace.c (btrace_insn_history): Print insn prefix.
5060         * NEWS: Announce it.
5061
5062 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5063
5064         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5065         * configure: Regenerate.
5066
5067 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5068
5069         * Makefile.in (LIBICONV): Define.
5070         (CLIBS): Add LIBICONV.
5071         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5072         * configure: Regenerate.
5073
5074 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5075             Pedro Alves  <palves@redhat.com>
5076
5077         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5078         (arm_set_abi): Likewise.
5079         * ax-general.c (ax_print): Likewise.
5080         * c-exp.y (exp : string_exp): Likewise.
5081         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5082         (do_compile_dwarf_expr_to_c): Likewise.
5083         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5084         Likewise.
5085         * dwarf2expr.c (execute_stack_op): Likewise.
5086         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5087         (disassemble_dwarf_expression): Likewise.
5088         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5089         (read_array_order): Likewise.
5090         (abbrev_table_read_table): Likewise.
5091         (read_attribute_value): Likewise.
5092         (skip_unknown_opcode): Likewise.
5093         (dwarf_decode_macro_bytes): Likewise.
5094         (dwarf_decode_macros): Likewise.
5095         * eval.c (value_f90_subarray): Likewise.
5096         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5097         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5098         * infrun.c (handle_command): Likewise.
5099         * memory-map.c (memory_map_start_memory): Likewise.
5100         * osabi.c (set_osabi): Likewise.
5101         * parse.c (operator_length_standard): Likewise.
5102         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5103         single return point.
5104         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5105         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5106         (gdbpy_lookup_global_symbol): Likewise.
5107         * record-full.c (record_full_restore): Likewise.
5108         * regcache.c (regcache_register_status): Likewise.
5109         (regcache_raw_read): Likewise.
5110         (regcache_cooked_read): Likewise.
5111         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5112         * symtab.c (initialize_ordinary_address_classes): Likewise.
5113         * target-debug.h (target_debug_print_signals): Likewise.
5114         * utils.c (do_restore_current_language): Likewise.
5115
5116 2015-08-06  Clem Dickey  <clemd@acm.org>
5117
5118         PR python/17136
5119         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5120
5121 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5122
5123         * complaints.c (enum complaint_series): Add newlines and remove
5124         out of date comment.
5125         (struct complaints) <series>: Change type to enum
5126         complaint_series and remove out of date comment.
5127         (symfile_complaint_hook): Use equivalent enum value
5128         ISOLATED_MESSAGE instead of 0.
5129
5130 2015-08-06  Pedro Alves  <palves@redhat.com>
5131
5132         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5133         returned > 0.
5134
5135 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5136
5137         * common/agent.c (symbol_list) <required>: Remove.
5138
5139 2015-08-06  Pedro Alves  <palves@redhat.com>
5140
5141         * target/waitstatus.h (enum target_stop_reason)
5142         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5143
5144 2015-08-05  Pedro Alves  <palves@redhat.com>
5145             Joel Brobecker  <brobecker@adacore.com>
5146
5147         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5148         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5149         case where BS->STOP is not set.
5150
5151 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5152
5153         * nat/gdb_thread_db.h: Add copyright header.
5154         Protect against multiple inclusion.
5155
5156 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5157
5158         * aarch64-linux-nat.c (get_thread_id): Remove.
5159         (debug_reg_change_callback): Call ptid_get_lwp instead of
5160         get_thread_id.
5161         (fetch_gregs_from_thread): Likewise.
5162         (store_gregs_to_thread): Likewise.
5163         (fetch_fpregs_from_thread): Likewise.
5164         (store_fpregs_to_thread): Likewise.
5165         (aarch64_linux_get_debug_reg_capacity): Likewise.
5166         * arm-linux-nat.c (get_thread_id): Remove.
5167         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5168         * xtensa-linux-nat.c (get_thread_id): Remove.
5169         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5170         * arm-linux-nat.c (get_thread_id): Remove.
5171         (GET_THREAD_ID): Remove.
5172         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5173         (store_fpregs, fetch_regs, store_regs): Likewise.
5174         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5175         (fetch_vfp_regs, store_vfp_regs): Likewise.
5176         (arm_linux_read_description): Likewise.
5177         (arm_linux_get_hwbp_cap): Likewise.
5178         * xtensa-linux-nat.c (get_thread_id): Remove.
5179         (GET_THREAD_ID): Remove.
5180         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5181         GET_THREAD_ID.
5182
5183 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5184
5185         * python/py-linetable.c: Fix case of Linetable to LineTable
5186         in docstrings and code comments.
5187         * python/py-symtab.c: Same.
5188
5189 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5190
5191         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5192
5193 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5194
5195         PR gdb/18767
5196         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5197         use.
5198
5199 2015-08-04  Pedro Alves  <palves@redhat.com>
5200
5201         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5202         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5203         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5204         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5205         (td_thr_validate_ftype, td_thr_get_info_ftype)
5206         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5207         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5208         New typedefs.
5209         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5210         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5211         local macros and use them instead of verbose_dlsym and dlsym
5212         calls.
5213
5214 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5215
5216         * nios2-tdep.h: Include opcode/nios2.h here.
5217         (NIOS2_CDX_OPCODE_SIZE): New.
5218         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5219         * nios2-tdep.c: Don't include opcode/nios2.h here.
5220         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5221         4-byte read fails.
5222         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5223         (nios2_match_addi, nios2_match_orhi): Likewise.
5224         (nios2_match_stw, nios2_match_ldw): Likewise.
5225         (nios2_match_rdctl): Likewise.
5226         (nios2_match_stwm, nios2_match_ldwm): New.
5227         (nios2_match_branch): Add cases for R2 encodings.
5228         (nios2_match_jmpi, nios2_match_calli): Likewise.
5229         (nios2_match_jmpr, nios2_match_callr): Likewise.
5230         (nios2_match_break, nios2_match_trap): Likewise.
5231         (nios2_in_epilogue_p): Add R2 support.
5232         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5233         prologues.
5234         (nios2_breakpoint_from_pc): Handle R2 instructions.
5235         (nios2_get_next_pc): Likewise.  Adjust call to
5236         tdep->syscall_next_pc.
5237         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5238         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5239         instruction field macros instead of literal hex values.
5240         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5241         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5242         Use size field from OP instead of assuming all instructions
5243         are the same size.
5244         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5245
5246 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5247
5248         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5249         variable warning with some compilers.
5250
5251 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5252
5253         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5254         in comment.  Replace "rw" with "type".
5255         (arm_linux_remove_watchpoint): Change type of "rw" to
5256         "enum target_hw_bp_type".
5257
5258 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5259
5260         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5261         lookup_symbol.
5262         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5263         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5264         * mt-tdep.c (mt_skip_prologue): Likewise.
5265         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5266
5267 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5268
5269         * ada-exp.y (write_object_renaming): Replace struct
5270         ada_symbol_info with struct block_symbol.  Update field
5271         references accordingly.
5272         (block_lookup, select_possible_type_sym): Likewise.
5273         (find_primitive_type): Likewise.  Also update call to
5274         ada_lookup_symbol to extract the symbol itself.
5275         (write_var_or_type, write_name_assoc): Likewise.
5276         * ada-lang.h (struct ada_symbol_info): Remove.
5277         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5278         struct block_symbol.
5279         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5280         (ada_lookup_symbol): Return struct block_symbol instead of a
5281         mere symbol.
5282         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5283         with struct block_symbol.
5284         (resolve_subexp, ada_resolve_function, sort_choices,
5285         user_select_syms, is_nonfunction, add_defn_to_vec,
5286         num_defns_collected, defns_collected,
5287         symbols_are_identical_enums, remove_extra_symbols,
5288         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5289         ada_lookup_symbol_list, ada_iterate_over_symbols,
5290         ada_lookup_encoded_symbol, get_var_value): Likewise.
5291         (ada_lookup_symbol): Return a block_symbol instead of a mere
5292         symbol.  Replace struct ada_symbol_info with struct
5293         block_symbol.
5294         (ada_lookup_symbol_nonlocal): Likewise.
5295         (standard_lookup): Make block passing explicit through
5296         lookup_symbol_in_language.
5297         * ada-tasks.c (get_tcb_types_info): Update the calls to
5298         lookup_symbol_in_language to extract the mere symbol out of the
5299         returned value.
5300         (ada_tasks_inferior_data_sniffer): Likewise.
5301         * ax-gdb.c (gen_static_field): Likewise for the call to
5302         lookup_symbol.
5303         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5304         lookup functions.
5305         (gen_expr): Likewise.
5306         * c-exp.y: Likewise.  Remove uses of block_found.
5307         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5308         (classify_name): Likewise.  Rename the "sym" local variable to
5309         "bsym".
5310         * c-valprint.c (print_unpacked_pointer): Likewise.
5311         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5312         "sym" parameter from struct symbol * to struct block_symbol.
5313         Use it to remove uses of block_found.  Deal with struct
5314         block_symbol from lookup functions.
5315         (gcc_convert_symbol): Likewise.  Update the call to
5316         convert_symbol_sym.
5317         * compile/compile-object-load.c (compile_object_load): Deal with
5318         struct block_symbol from lookup functions.
5319         * cp-namespace.c (cp_lookup_nested_symbol_1,
5320         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5321         cp_search_static_and_baseclasses,
5322         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5323         cp_lookup_symbol_imports_or_template,
5324         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5325         lookup_namespace_scope, cp_lookup_nonlocal,
5326         find_symbol_in_baseclass): Return struct block_symbol instead of
5327         mere symbols and deal with struct block_symbol from lookup
5328         functions.
5329         * cp-support.c (inspect_type, replace_typedefs,
5330         cp_lookup_rtti_type): Deal with struct block_symbol from
5331         lookup functions.
5332         * cp-support.h (cp_lookup_symbol_nonlocal,
5333         cp_lookup_symbol_from_namespace,
5334         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5335         Return struct block_symbol instead of mere symbols.
5336         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5337         push_module_name):
5338         Deal with struct block_symbol from lookup functions.  Remove
5339         uses of block_found.
5340         * eval.c (evaluate_subexp_standard): Update call to
5341         cp_lookup_symbol_namespace.
5342         * f-exp.y: Deal with struct block_symbol from lookup functions.
5343         Remove uses of block_found.
5344         (yylex): Likewise.
5345         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5346         lookup_enum, lookup_template_type, check_typedef): Deal with
5347         struct block_symbol from lookup functions.
5348         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5349         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5350         (gdbscm_lookup_global_symbol): Likewise.
5351         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5352         * go-exp.y: Likewise.  Remove uses of block_found.
5353         (package_name_p, classify_packaged_name, classify_name):
5354         Likewise.
5355         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5356         * jv-exp.y (push_variable): Likewise.
5357         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5358         * language.c (language_bool_type): Likewise.
5359         * language.h (struct language_defn): Update
5360         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5361         than a mere symbol.
5362         * linespec.c (find_label_symbols): Deal with struct block_symbol
5363         from lookup functions.
5364         * m2-exp.y: Likewise.  Remove uses of block_found.
5365         (yylex): Likewise.
5366         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5367         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5368         * p-exp.y: Likewise.  Remove uses of block_found.
5369         (yylex): Likewise.
5370         * p-valprint.c (pascal_val_print): Likewise.
5371         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5372         block_found.
5373         * parser-defs.h (struct symtoken): Turn the SYM field into a
5374         struct block_symbol.
5375         * printcmd.c (address_info): Deal with struct block_symbol from
5376         lookup functions.
5377         * python/py-frame.c (frapy_read_var): Likewise.
5378         * python/py-symbol.c (gdbpy_lookup_symbol,
5379         gdbpy_lookup_global_symbol): Likewise.
5380         * skip.c (skip_function_command): Likewise.
5381         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5382         block_symbol instead of a mere symbol.
5383         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5384         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5385         * solib.c (solib_global_lookup): Likewise.
5386         * solist.h (solib_global_lookup): Likewise.
5387         (struct target_so_ops): Update lookup_lib_global_symbol to
5388         return a struct block_symbol rather than a mere symbol.
5389         * source.c (select_source_symtab): Deal with struct block_symbol
5390         from lookup functions.
5391         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5392         Likewise.
5393         * symfile.c (set_initial_language): Likewise.
5394         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5395         block_symbol.
5396         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5397         (struct symbol_cache_slot): Turn the FOUND field into a struct
5398         block_symbol.
5399         (block_found): Remove.
5400         (eq_symbol_entry): Update to deal with struct block_symbol in
5401         cache slots.
5402         (symbol_cache_lookup): Return a struct block_symbol rather than
5403         a mere symbol.
5404         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5405         appropriately the cache slots.  Update callers.
5406         (symbol_cache_dump): Update cache slots handling to the type
5407         change.
5408         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5409         lookup_symbol_aux, lookup_local_symbol,
5410         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5411         lookup_symbol_in_objfile_symtabs,
5412         lookup_symbol_in_objfile_from_linkage_name,
5413         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5414         lookup_symbol_in_static_block, lookup_static_symbol,
5415         lookup_global_symbol):
5416         Return a struct block_symbol rather than a mere symbol.  Deal
5417         with struct block_symbol from other lookup functions.  Remove
5418         uses of block_found.
5419         (lookup_symbol_in_block): Remove uses of block_found.
5420         (struct global_sym_lookup_data): Turn the RESULT field into a
5421         struct block_symbol.
5422         (lookup_symbol_global_iterator_cb): Update references to the
5423         RESULT field.
5424         (search_symbols): Deal with struct block_symbol from lookup
5425         functions.
5426         * symtab.h (struct block_symbol): New structure.
5427         (block_found): Remove.
5428         (lookup_symbol_in_language, lookup_symbol,
5429         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5430         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5431         lookup_global_symbol_from_objfile): Return a struct block_symbol
5432         rather than just a mere symbol.  Update comments to remove
5433         mentions of block_found.
5434         * valops.c (find_function_in_inferior,
5435         value_struct_elt_for_reference, value_maybe_namespace_elt,
5436         value_of_this):  Deal with struct block_symbol from lookup
5437         functions.
5438         * value.c (value_static_field, value_fn_field): Likewise.
5439
5440 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5441
5442         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5443         instead of integer.
5444
5445 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5446             Pedro Alves  <palves@redhat.com>
5447
5448         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5449         type or value instead of integer.
5450         (aarch64_linux_insert_watchpoint): Likewise.
5451         (aarch64_linux_remove_watchpoint): Likewise.
5452         * ada-lang.c (ada_op_print_tab): Likewise.
5453         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5454         (amd64_linux_syscall_record_common): Likewise.
5455         * arch-utils.c (target_byte_order_user): Likewise.
5456         (default_byte_order): Likewise.
5457         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5458         (arm_linux_get_hwbp_type): Likewise.
5459         (arm_linux_hw_watchpoint_initialize): Likewise.
5460         (arm_linux_insert_watchpoint): Likewise.
5461         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5462         (arm_linux_syscall_record): Likewise.
5463         * breakpoint.c (update_watchpoint): Likewise.
5464         (breakpoint_here_p): Likewise.
5465         (bpstat_print): Likewise.
5466         (enable_breakpoint_disp): Likewise.
5467         * c-lang.c (c_op_print_tab): Likewise.
5468         * cli/cli-decode.c (add_info_alias): Likewise.
5469         * d-lang.c (d_op_print_tab): Likewise.
5470         * eval.c (evaluate_subexp_standard): Likewise.
5471         * f-exp.y (dot_ops): Likewise.
5472         (f77_keywords): Likewise.
5473         * f-lang.c (f_op_print_tab): Likewise.
5474         * go-lang.c (go_op_print_tab): Likewise.
5475         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5476         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5477         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5478         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5479         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5480         (struct scm_from_stringn_data): Likewise.
5481         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5482         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5483         (ia64_linux_remove_watchpoint): Likewise.
5484         (ia64_linux_can_use_hw_breakpoint): Likewise.
5485         * infrun.c (print_stop_event): Likewise.
5486         * jv-lang.c (java_op_print_tab): Likewise.
5487         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5488         * linux-nat.h (struct lwp_info): Likewise.
5489         * linux-thread-db.c (enable_thread_event): Likewise.
5490         * m2-lang.c (m2_op_print_tab): Likewise.
5491         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5492         (mi_cmd_stack_list_variables): Likewise.
5493         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5494         * mi/mi-out.c (mi_table_begin): Likewise.
5495         (mi_table_header): Likewise.
5496         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5497         (mips_linux_insert_watchpoint): Likewise.
5498         (mips_linux_remove_watchpoint): Likewise.
5499         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5500         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5501         (mips_linux_watch_type_to_irw): Likewise.
5502         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5503         (procfs_insert_hw_watchpoint): Likewise.
5504         (procfs_remove_hw_watchpoint): Likewise.
5505         (procfs_hw_watchpoint): Likewise.
5506         (procfs_can_use_hw_breakpoint): Likewise.
5507         (procfs_remove_hw_watchpoint): Likewise.
5508         (procfs_insert_hw_watchpoint): Likewise.
5509         * p-lang.c (pascal_op_print_tab): Likewise.
5510         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5511         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5512         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5513         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5514         (procfs_insert_watchpoint): Likewise.
5515         (procfs_remove_watchpoint): Likewise.
5516         * psymtab.c (recursively_search_psymtabs): Likewise.
5517         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5518         (m32r_insert_watchpoint): Likewise.
5519         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5520         (mips_insert_watchpoint): Likewise.
5521         (mips_remove_watchpoint): Likewise.
5522         * remote.c (watchpoint_to_Z_packet): Likewise.
5523         (remote_insert_watchpoint): Likewise.
5524         (remote_remove_watchpoint): Likewise.
5525         (remote_check_watch_resources): Likewise.
5526         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5527         (s390_remove_watchpoint): Likewise.
5528         (s390_can_use_hw_breakpoint): Likewise.
5529         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5530         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5531         * target.h (struct target_ops): Likewise.
5532         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5533         * ui-out.c (struct ui_out_hdr): Likewise.
5534         (append_header_to_list): Likewise.
5535         (get_next_header): Likewise.
5536         (verify_field): Likewise.
5537         (ui_out_begin): Likewise.
5538         (ui_out_field_int): Likewise.
5539         (ui_out_field_fmt_int): Likewise.
5540         (ui_out_field_skip): Likewise.
5541         (ui_out_field_string): Likewise.
5542         (ui_out_field_fmt): Likewise.
5543         * varobj.c (new_variable): Likewise.
5544         * x86-nat.c (x86_insert_watchpoint): Likewise.
5545         (x86_remove_watchpoint): Likewise.
5546         (x86_can_use_hw_breakpoint): Likewise.
5547         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5548         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5549         previously anonymous enumeration type..
5550         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5551         value.
5552         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5553         (target_debug_print_enum_bptype): New.
5554         * target-delegates.c: Regenerate.
5555
5556 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5557
5558         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5559         already says and disallow non-stack memory writes in the prologue.
5560
5561 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5562
5563         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5564         reflect how current GCC emits stack overflow checks.  Match
5565         both trap and break instructions for backward compatbility.
5566         Disallow other trap and break instructions in the prologue.
5567
5568 2015-07-30  Pedro Alves  <palves@redhat.com>
5569
5570         PR threads/18600
5571         * linux-nat.c (wait_lwp): Report to the core when thread group
5572         leader exits.
5573
5574 2015-07-30  Pedro Alves  <palves@redhat.com>
5575             Simon Marchi  <simon.marchi@ericsson.com>
5576
5577         PR threads/18600
5578         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5579         mark the new thread as resumed.  Remove STOPPING parameter.
5580         (wait_lwp): Adjust call to linux_handle_extended_wait.
5581         (linux_nat_filter_event): Adjust call to
5582         linux_handle_extended_wait.
5583         (resume_stopped_resumed_lwps): Add debug output.
5584
5585 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5586
5587         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5588         isize argument.
5589         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5590         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5591         gdbarch_fast_tracepoint_valid_at.
5592         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5593         * gdbarch.h: Regenerate.
5594         * gdbarch.c: Regenerate.
5595         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5596         argument.  Do not set it.
5597         * remote.c (remote_download_tracepoint): Adjust call to
5598         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5599         the instruction length.
5600
5601 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5602
5603         * arm-tdep.h (enum gdb_regnum): Move it to ...
5604         * arch/arm.h: ... here.  New file.
5605         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5606
5607 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5608
5609         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5610         Change its type to int *.
5611         (decode_br): Rename link argument to is_blr.  Change its type to
5612         int *.
5613         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5614         int *.
5615         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5616         int *.  Set is_tbnz to either 1 or 0.
5617         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5618         new variables is_cbnz and is_tbnz.  Adjust call to
5619         aarch64_decode_cb and aarch64_decode_tb.
5620
5621 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5622
5623         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5624         parameter.
5625         (mips_linux_new_thread): Likewise.
5626         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5627
5628 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5629
5630         * top.c: Include "tui/tui.h".
5631         (undo_terminal_modifications_before_exit): New static function.
5632         (quit_force): Use it.
5633
5634 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5635
5636         * target.c (terminal_state): Initialize to terminal_is_ours.
5637
5638 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5639
5640         PR record/18691
5641         * dcache.c (dcache_read_memory_partial): Call
5642         raw_memory_xfer_partial.
5643         * target.c (raw_memory_xfer_partial): Make it non-static.
5644         * target.h (raw_memory_xfer_partial): Declare.
5645
5646 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5647
5648         * c-valprint.c (c_val_print_array): Consider addressable memory
5649         unit size.
5650         (c_val_print_ptr): Likewise.
5651         (c_val_print_int): Likewise.
5652         * findvar.c (read_frame_register_value): Likewise.
5653         * valarith.c (find_size_for_pointer_math): Likewise.
5654         (value_ptrdiff): Likewise.
5655         (value_subscripted_rvalue): Likewise.
5656         * valops.c (read_value_memory): Likewise (and rename variables).
5657         (value_assign): Likewise.
5658         (value_repeat): Likewise.
5659         (value_array): Likewise.
5660         (value_slice): Likewise.
5661         * valprint.c (generic_val_print_ptr): Likewise.
5662         (generic_val_print_enum): Likewise.
5663         (generic_val_print_bool): Likewise.
5664         (generic_val_print_int): Likewise.
5665         (generic_val_print_char): Likewise.
5666         (generic_val_print_float): Likewise.
5667         (generic_val_print_decfloat): Likewise.
5668         (generic_val_print_complex): Likewise.
5669         (val_print_scalar_formatted): Likewise.
5670         (val_print_array_elements): Likewise.
5671         * value.c (set_value_parent): Likewise.
5672         (value_contents_copy_raw): Likewise.
5673         (set_internalvar_component): Likewise.
5674         (value_primitive_field): Likewise.
5675         (value_fetch_lazy): Likewise.
5676         * value.h (read_value_memory): Update comment.
5677
5678 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5679
5680         * value.c (get_value_arch): New function.
5681         * value.h (get_value_arch): New declaration.
5682
5683 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5684
5685         * value.c (struct value): Update comments.
5686
5687 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5688
5689         * gdbtypes.c (type_length_units): New function.
5690         * gdbtypes.h (type_length_units): New declaration.
5691         (struct type) <length>: Update comment.
5692
5693 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5694
5695         * valprint.c (generic_val_print): Factor out complex
5696         printing code to ...
5697         (generic_val_print_complex): ... this new function.
5698
5699 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5700
5701         * valprint.c (generic_val_print): Factor out decfloat
5702         printing code to ...
5703         (generic_val_print_decfloat): ... this new function.
5704
5705 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5706
5707         * valprint.c (generic_val_print): Factor out float
5708         printing code to ...
5709         (generic_val_print_float): ... this new function.
5710
5711 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5712
5713         * valprint.c (generic_val_print): Factor out char
5714         printing code to ...
5715         (generic_val_print_char): ... this new function.
5716
5717 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5718
5719         * valprint.c (generic_val_print): Factor out integer
5720         printing code to ...
5721         (generic_val_print_int): ... this new function.
5722
5723 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5724
5725         * valprint.c (generic_val_print): Factor out bool
5726         printing code to ...
5727         (generic_val_print_bool): ... this new function.
5728
5729 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5730
5731         * valprint.c (generic_val_print): Factor out function/method
5732         printing code to ...
5733         (generic_val_print_func): ... this new function.
5734
5735 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5736
5737         * valprint.c (generic_val_print): Factor out flags
5738         printing code to ...
5739         (generic_val_print_flags): ... this new function.
5740
5741 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5742
5743         * valprint.c (generic_val_print): Factor out enum
5744         printing code to ...
5745         (generic_val_print_enum): ... this new function.
5746
5747 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5748
5749         * valprint.c (generic_val_print): Factor out reference
5750         printing code to ...
5751         (generic_val_print_ref): ... this new function.
5752
5753 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5754
5755         * valprint.c (generic_val_print): Factor out memberptr
5756         printing code to ...
5757         (generic_val_print_memberptr): ... this new function.
5758
5759 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5760
5761         * valprint.c (generic_val_print): Factor out pointer
5762         printing code to ...
5763         (generic_val_print_ptr): ... this new function.
5764
5765 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5766
5767         * valprint.c (generic_val_print): Factor out array
5768         printing code to ...
5769         (generic_val_print_array): ... this new function.
5770
5771 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5772
5773         * valprint.c (generic_val_print): Factor out
5774         print_unpacked_pointer code to ...
5775         (print_unpacked_pointer): ... this new function.
5776
5777 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5778
5779         * event-top.c (handle_sigterm): Don't inspect
5780         target_can_async_p.  Always set the quit flag and always mark
5781         the async signal handler.
5782
5783 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5784
5785         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5786
5787 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5788
5789         * remote.c (read_ptid): Return null_ptid when no thread id
5790         is found.
5791         (remote_current_thread): Add log warning for malformed
5792         qC reply.
5793         (remote_start_remote): Add log warning when current thread
5794         not found.
5795
5796 2015-07-24  Pedro Alves  <palves@redhat.com>
5797
5798         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5799         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5800         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5801
5802 2015-07-24  Pedro Alves  <palves@redhat.com>
5803
5804         PR gdb/18717
5805         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5806         is resumed, and extend the debug log.
5807
5808 2015-07-24  Pedro Alves  <palves@redhat.com>
5809
5810         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5811
5812 2015-07-24  Pedro Alves  <palves@redhat.com>
5813
5814         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5815         sys/ptrace.h.
5816         * alpha-linux-nat.c: Likewise.
5817         * amd64-linux-nat.c: Likewise.
5818         * arm-linux-nat.c: Likewise.
5819         * hppa-linux-nat.c: Likewise.
5820         * i386-linux-nat.c: Likewise.
5821         * ia64-linux-nat.c: Likewise.
5822         * linux-fork.c: Likewise.
5823         * linux-nat.c: Likewise.
5824         * m32r-linux-nat.c: Likewise.
5825         * m68klinux-nat.c: Likewise.
5826         * mips-linux-nat.c: Likewise.
5827         * nat/linux-btrace.c: Likewise.
5828         * nat/linux-ptrace.c: Likewise.
5829         * nat/linux-ptrace.h
5830         * nat/mips-linux-watch.c: Likewise.
5831         * nat/x86-linux-dregs.c: Likewise.
5832         * ppc-linux-nat.c: Likewise.
5833         * s390-linux-nat.c: Likewise.
5834         * spu-linux-nat.c: Likewise.
5835         * tilegx-linux-nat.c: Likewise.
5836         * x86-linux-nat.c: Likewise.
5837         * xtensa-linux-nat.c: Likewise.
5838
5839 2015-07-24  Pedro Alves  <palves@redhat.com>
5840
5841         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5842         __ptrace_request as first parameter type instead of int.
5843         (PTRACE_TYPE_ARG1): Define.
5844         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5845         that casts first argument to PTRACE_TYPE_ARG1.
5846         * config.in: Regenerate.
5847         * configure: Regenerate.
5848
5849 2015-07-24  Pedro Alves  <palves@redhat.com>
5850
5851         * gdb_ptrace.h: Move ...
5852         * nat/gdb_ptrace.h: ... here.
5853         * inf-ptrace.c: Adjust.
5854
5855 2015-07-24  Pedro Alves  <palves@redhat.com>
5856
5857         * acinclude.m4: Include ptrace.m4.
5858         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5859         * ptrace.m4: ... to this new file.
5860
5861 2015-07-23  Doug Evans  <dje@google.com>
5862
5863         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5864         (load_cu): Handle dummy CUs.
5865         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5866         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5867
5868 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5869
5870         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5871         documentation to say that it returns a list rather than
5872         a FrozenSet.
5873         (linetable_object_methods): Update the docstring of the
5874         "source_line" entry.
5875
5876 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5877
5878         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5879         type to the recursive call instead of the original (maybe
5880         TYPE_CODE_TYPEDEF) type.
5881
5882 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5883
5884         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5885         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5886         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5887
5888 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5889
5890         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5891         Move it to nat/aarch64-linux-hw-point.c.
5892         (aarch64_linux_child_post_startup_inferior): Update.
5893         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5894         New function.
5895         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5896         Declare it.
5897
5898 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5899
5900         * common/btrace-common.c (btrace_data_append): Change case label.
5901
5902 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5903
5904         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5905         Re-indent the code.
5906         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5907         "unsigned long long".
5908
5909 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5910
5911         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5912         to be set for SEC_ALLOC sections too.
5913
5914 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5915
5916         * Makefile.in (HFILES_NO_SRCDIR): Add
5917         nat/aarch64-linux-hw-point.h.
5918         (aarch64-linux-hw-point.o): New rule.
5919         * nat/aarch64-linux-hw-point.h: New file.
5920         * nat/aarch64-linux-hw-point.c: New file.
5921         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5922         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5923         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5924         (AARCH64_HWP_ALIGNMENT): Likewise.
5925         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5926         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5927         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5928         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5929         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5930         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5931         (struct aarch64_debug_reg_state): Likewise.
5932         (struct arch_lwp_info): Likewise.
5933         (aarch64_linux_set_debug_regs): Likewise.
5934         (aarch64_notify_debug_reg_change): Remove static.
5935         (aarch64_align_watchpoint): Likewise.
5936         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5937         (aarch64_watchpoint_length): Likewise.
5938         (aarch64_point_encode_ctrl_reg): Likewise
5939         (aarch64_point_is_aligned): Likewise.
5940         (aarch64_dr_state_insert_one_point): Likewise.
5941         (aarch64_dr_state_remove_one_point): Likewise.
5942         (aarch64_handle_breakpoint): Likewise.
5943         (aarch64_handle_aligned_watchpoint): Likewise.
5944         (aarch64_handle_unaligned_watchpoint): Likewise.
5945         (aarch64_handle_watchpoint): Likewise.
5946         * config/aarch64/linux.mh (NAT_FILE): Add
5947         aarch64-linux-hw-point.o.
5948
5949 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5950
5951         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5952         state and don't call aarch64_get_debug_reg_state.  All callers
5953         update.
5954         (aarch64_linux_insert_hw_breakpoint): Call
5955         aarch64_get_debug_reg_state earlier.
5956         (aarch64_linux_remove_hw_breakpoint): Likewise.
5957         (aarch64_handle_aligned_watchpoint): Add argument state and
5958         don't call aarch64_get_debug_reg_state.  All callers update.
5959         (aarch64_handle_unaligned_watchpoint): Likewise.
5960         (aarch64_handle_watchpoint): Add argument state.
5961         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5962         earlier.
5963         (aarch64_linux_remove_watchpoint): Likewise.
5964
5965 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5966
5967         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5968         debug_printf.
5969         (aarch64_handle_unaligned_watchpoint): Likewise.
5970
5971 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5972
5973         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5974         argument type's type to 'enum target_hw_bp_type'.
5975         (aarch64_dr_state_remove_one_point): Likewise.
5976         (aarch64_handle_breakpoint): Likewise.
5977         (aarch64_linux_insert_hw_breakpoint): Likewise.
5978         (aarch64_linux_remove_hw_breakpoint): Likewise.
5979         (aarch64_handle_aligned_watchpoint): Likewise.
5980
5981 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5982
5983         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5984         ptid_get_pid instead of get_thread_id.
5985
5986 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5987
5988         * remote.c (get_current_thread): Initialise ptid to null_ptid.
5989         (add_current_inferior_and_thread): Don't initialise ptid.
5990
5991 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
5992
5993         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5994         unavailable if invalid.
5995
5996 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5997
5998         Revert the previous 6 commits:
5999         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6000         Move gdb_regex* to common/
6001         Prepare linux_find_memory_regions_full & co. for move
6002         Move linux_find_memory_regions_full & co.
6003         gdbserver build-id attribute generator
6004         Validate symbol file using build-id
6005
6006 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6007             Jan Kratochvil  <jan.kratochvil@redhat.com>
6008
6009         Validate symbol file using build-id.
6010         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6011         and 'show validate-build-id'.  Add build-id attribute.
6012         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6013         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6014         * solib-frv.c (_initialize_frv_solib): Ditto.
6015         * solib-spu.c (set_spu_solib_ops): Ditto.
6016         * solib-svr4.c: Include rsp-low.h.
6017         (NOTE_GNU_BUILD_ID_NAME): New define.
6018         (svr4_validate): New function.
6019         (svr4_copy_library_list): Duplicate field build_id.
6020         (library_list_start_library): Parse 'build-id' attribute.
6021         (svr4_library_attributes): Add 'build-id' attribute.
6022         (_initialize_svr4_solib): Assign validate value.
6023         * solib-target.c (solib.h): Include.
6024         (_initialize_solib_target): Assign validate value.
6025         * solib.c (validate_build_id, show_validate_build_id): New.
6026         (solib_map_sections): Use ops->validate.
6027         (clear_so): Free build_id.
6028         (default_solib_validate): New function.
6029         (_initialize_solib): Add "validate-build-id".
6030         * solib.h (default_solib_validate): New declaration.
6031         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6032         (target_so_ops): New field 'validate'.
6033
6034 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6035             Jan Kratochvil  <jan.kratochvil@redhat.com>
6036
6037         gdbserver build-id attribute generator.
6038         * features/library-list-svr4.dtd (library-list-svr4): New
6039         'build-id' attribute.
6040
6041 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6042             Jan Kratochvil  <jan.kratochvil@redhat.com>
6043
6044         Move linux_find_memory_regions_full & co.
6045         * linux-tdep.c (nat/linux-maps.h): Include.
6046         (gdb_regex.h): Remove the include.
6047         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6048         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6049         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6050         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6051         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6052         and target/target.h.
6053         (struct smaps_vmflags, read_mapping, decode_vmflags)
6054         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6055         (linux_find_memory_regions_full): Move from linux-tdep.c.
6056         * nat/linux-maps.h (read_mapping): New declaration.
6057         (linux_find_memory_region_ftype, enum filterflags): Moved from
6058         linux-tdep.c.
6059         (linux_find_memory_regions_full): New declaration.
6060         * target.c (target/target-utils.h): Include.
6061         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6062         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6063         definitions to target/target-utils.c.
6064         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6065         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6066         from target.c.
6067         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6068         (read_alloc): New declaration.
6069         (read_stralloc_func_ftype): New typedef.
6070         (read_stralloc): New declaration.
6071         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6072
6073 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6074             Jan Kratochvil  <jan.kratochvil@redhat.com>
6075
6076         Prepare linux_find_memory_regions_full & co. for move.
6077         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6078         (linux_find_memory_regions_full): Change signature and prepare
6079         for moving to linux-maps.
6080         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6081         (linux_find_memory_regions_thunk): New.
6082         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6083         (linux_find_memory_regions_gdb): New.
6084         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6085         (linux_make_mappings_corefile_notes): Use
6086         linux_find_memory_regions_gdb.
6087         * target.c (read_alloc_pread_ftype): New typedef.
6088         (target_fileio_read_alloc_1_pread): New function.
6089         (read_alloc): Refactor from target_fileio_read_alloc_1.
6090         (read_stralloc_func_ftype): New typedef.
6091         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6092         (read_stralloc): Refactored from target_fileio_read_stralloc.
6093         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6094
6095 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6096
6097         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6098         common/gdb_regex.h.
6099         (COMMON_OBS): Add gdb_regex.o.
6100         (gdb_regex.o): New.
6101         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6102         --without-included-regex and USE_INCLUDED_REGEX.
6103         * common/gdb_regex.c: New file from utils.c functions.
6104         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6105         file wrapping define name.
6106         * configure: Rebuilt.
6107         * configure.ac (gdb_use_included_regex, --without-included-regex)
6108         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6109         * gdb_regex.h: Move it to common/gdb_regex.h.
6110         * utils.c: Remove include gdb_regex.h.
6111         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6112         (compile_rx_or_error): Move them to common/gdb_regex.c.
6113
6114 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6115             Jan Kratochvil  <jan.kratochvil@redhat.com>
6116
6117         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6118         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6119         common/target-utils.h.
6120         (COMMON_OBS): Add target-utils.o.
6121         (linux-maps.o, target-utils.o): New.
6122         * target/target-utils.c: New file.
6123         * target/target-utils.h: New file.
6124         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6125         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6126         * nat/linux-maps.c: New file.
6127         * nat/linux-maps.h: New file.
6128
6129 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6130             Pedro Alves <palves@redhat.com>
6131
6132         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6133         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6134         (perf_event_read_bts): Change the type of SIZE and READ.
6135         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6136         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6137         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6138         mmap page.
6139         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6140         buffer size to UINT_MAX.
6141         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6142         DATA_TAIL.
6143         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6144         <last_head>: Change type.
6145         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6146         * common/btrace-common.c (btrace_data_append): Change the type of
6147         SIZE.
6148         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6149         check.
6150
6151 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6152
6153         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6154         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6155         with check_typedef.
6156         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6157         (ada_array_length): Likewise.
6158         (find_parallel_type_by_descriptive_type): Likewise.
6159         (ada_check_typedef): Likewise.
6160         * arm-tdep.c (arm_return_in_memory): Likewise.
6161         * ax-gdb.c (gen_trace_static_fields): Likewise.
6162         (gen_struct_ref_recursive): Likewise.
6163         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6164         (variable: block COLONCOLON name): Likewise.
6165         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6166         * c-lang.c (classify_type): Likewise.
6167         * c-typeprint.c (c_print_type): Likewise.
6168         (c_print_typedef): Likewise.
6169         (c_type_print_base): Likewise.
6170         * c-valprint.c (c_val_print): Likewise.
6171         * compile/compile-c-types.c (convert_type): Likewise.
6172         * compile/compile-object-load.c (get_out_value_type): Likewise.
6173         * completer.c (add_struct_fields): Likewise.
6174         (expression_completer): Likewise.
6175         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6176         (cp_lookup_nested_symbol_1): Likewise.
6177         (cp_lookup_nested_symbol): Likewise.
6178         * cp-valprint.c (cp_print_value_fields): Likewise.
6179         (cp_print_static_field): Likewise.
6180         * d-valprint.c (d_val_print): Likewise.
6181         * eval.c (evaluate_subexp_standard): Likewise.
6182         (evaluate_subexp_for_sizeof): Likewise.
6183         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6184         * f-typeprint.c (f_type_print_base): Likewise.
6185         * f-valprint.c (f_val_print): Likewise.
6186         * gdbtypes.c (get_discrete_bounds): Likewise.
6187         (create_array_type_with_stride): Likewise.
6188         (type_name_no_tag_or_error): Likewise.
6189         (lookup_struct_elt_type): Likewise.
6190         (get_unsigned_type_max): Likewise.
6191         (internal_type_vptr_fieldno): Likewise.
6192         (set_type_vptr_fieldno): Likewise.
6193         (internal_type_vptr_basetype): Likewise.
6194         (set_type_vptr_basetype): Likewise.
6195         (get_vptr_fieldno): Likewise.
6196         (is_integral_type): Likewise.
6197         (is_scalar_type): Likewise.
6198         (is_scalar_type_recursive): Likewise.
6199         (distance_to_ancestor): Likewise.
6200         (is_unique_ancestor_worker): Likewise.
6201         (check_types_equal): Likewise.
6202         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6203
6204 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6205
6206         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6207         also test for language_d.
6208         (dwarf2_compute_name): Likewise.
6209         (read_func_scope): Likewise.
6210         (read_structure_type): Likewise.
6211         (new_symbol_full): Likewise.
6212         (determine_prefix): Likewise.
6213         (read_import_statement): Use dot as the separator for language_d.
6214         (typename_concat): Likewise, but don't prefix the D main function.
6215
6216 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6217
6218         * nat/linux-namespaces.c (setns): Rename from this ...
6219         (do_setns): ... to this.  Support calling setns if it exists.
6220         (mnsh_handle_setns): Call do_setns.
6221
6222 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6223
6224         * exec.c (exec_file_attach): Add period at the end of error
6225         message.
6226
6227 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6228
6229         * tui/tui-win.c (window_name_completer): New function.
6230         (focus_completer): Call window_name_completer.  All old content
6231         moved into window_name_completer.
6232         (winheight_completer): New function.
6233         (_initialize_tui_win): Rename variable.  Add completer to
6234         winheight command.  Update doc string on winheight.
6235
6236 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6237
6238         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6239         all nios2 mach variants.
6240
6241 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6242
6243         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6244         of target_read_memory.
6245
6246 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6247
6248         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6249         string copy.
6250         (parse_scrolling_args): Likewise.
6251
6252 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6253
6254         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6255         names in this function.
6256
6257 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6258
6259         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6260         (CMD_NAME): Likewise.
6261         (DATA_NAME): Likewise.
6262         (DISASSEM_NAME): Likewise.
6263         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6264         (tui_set_win_height): Likewise.
6265         (parse_scrolling_args): Likewise.
6266
6267 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6268
6269         * record-btrace.c (record_btrace_goto_begin)
6270         (record_btrace_goto_end, record_btrace_goto): Move call to
6271         print_stack_frame ...
6272         (record_btrace_set_replay): ... here.  Set stop_pc.
6273         * record-full.c (record_full_goto_entry): Set stop_pc.
6274
6275 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6276
6277         * NEWS: Mention support for tracepoints on aarch64-linux.
6278
6279 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6280
6281         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6282         function.  Return 1.
6283         (the_low_target): Install it.
6284
6285 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6286
6287         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6288         * gdb.trace/collection.exp: Likewise.
6289         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6290         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6291         * gdb.trace/report.exp: Likewise.
6292         * gdb.trace/trace-break.exp: Likewise.
6293         * gdb.trace/unavailable.exp: Likewise.
6294         * gdb.trace/while-dyn.exp: Likewise.
6295
6296 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6297
6298         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6299         (aarch64_gen_return_address): New function.
6300         (aarch64_gdbarch_init): Hook it.
6301
6302 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6303
6304         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6305         swallow NOT_AVAILABLE_ERROR.
6306         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6307         available_p is not set.
6308         (aarch64_stub_frame_unwind_stop_reason): New function.
6309         (aarch64_stub_unwind): Install it.
6310
6311 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6312
6313         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6314         field.
6315         (aarch64_make_prologue_cache_1): New function, factored out from
6316         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6317         available_p.
6318         (aarch64_make_prologue_cache): Reimplement wrapping
6319         aarch64_make_prologue_cache_1, and swallowing
6320         NOT_AVAILABLE_ERROR.
6321         (aarch64_prologue_frame_unwind_stop_reason): New function.
6322         Return UNWIND_UNAVAILABLE if available_p is not set.
6323         (aarch64_prologue_unwind): Install it.
6324         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6325         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6326         frame_id_build_unavailable_stack if available_p is not set.
6327
6328 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6329
6330         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6331         fields.
6332         (aarch64_scan_prologue): Set prev_pc.
6333         (aarch64_make_prologue_cache): Set func.
6334         (aarch64_make_stub_cache): Set prev_pc.
6335         (aarch64_prologue_this_id): Remove local variables id, pc and
6336         func.  Read prev_pc and func from cache.
6337         (aarch64_stub_this_id): Read prev_pc from cache.
6338
6339 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6340
6341         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6342         argument this_cache.  Remove unused local variables reg and
6343         unwound_fp.  Return early if this_cache is already set.  Set
6344         this_cache.
6345         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6346
6347 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6348
6349         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6350         New argument this_cache.  Return early if this_cache is already
6351         set.  Set this_cache.
6352         (aarch64_prologue_this_id): Update call to
6353         aarch64_make_prologue_cache.
6354         (aarch64_prologue_prev_register): Likewise.
6355         (aarch64_normal_frame_base): Likewise.
6356
6357 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6358
6359         * c-valprint.c (c_val_print): Factor out memberptr printing code
6360         from c_val_print to ...
6361         (c_val_print_memberptr): ... this new function.
6362
6363 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6364
6365         * c-valprint.c (c_val_print): Factor out int printing code to ...
6366         (c_val_print_int): ... this new function.
6367
6368 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6369
6370         * c-valprint.c (c_val_print): Factor out struct and union
6371         printing code to ...
6372         (c_val_print_struct): ... this new function ...
6373         (c_val_print_union): ... and this new function.
6374
6375 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6376
6377         * c-valprint.c (c_val_print): Factor out pointer printing code
6378         to ...
6379         (c_val_print_ptr): ... this new function.
6380
6381 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6382
6383         * c-valprint.c (c_valprint): Factor our array printing code from
6384         c_val_print to ...
6385         (c_val_print_array): ... this new function.
6386
6387 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6388
6389         * c-valprint.c (c_val_print): Factor out pointer printing code
6390         to ...
6391         (print_unpacked_pointer): ... this new function.
6392
6393 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6394
6395         * c-valprint.c (c_val_print): Remove an assignment to i and move
6396         its declaration.
6397
6398 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6399
6400         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6401         argument ptid.  Update comments.  Caller update.
6402
6403 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6404
6405         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6406         mnt packets.
6407
6408 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6409
6410         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6411
6412 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6413
6414         * progspace.c (delete_program_space): Add missing spaces.
6415
6416 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6417
6418         * inferior.c (delete_inferior_1): Rename to ...
6419         (delete_inferior): ..., remove 'silent' parameter, delete
6420         program space when unused and remove call to prune_program_spaces.
6421         Remove the old, unused, delete_inferior.
6422         (delete_inferior_silent): Remove.
6423         (prune_inferiors): Change call from delete_inferior_1 to
6424         delete_inferior and remove 'silent' parameter. Remove call to
6425         prune_program_spaces.
6426         (remove_inferior_command): Idem.
6427         * inferior.h (delete_inferior_1): Rename to...
6428         (delete_inferior): ..., remove 'silent' parameter and remove the
6429         original delete_inferior.
6430         (delete_inferior_silent): Remove.
6431         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6432         delete_inferior_1 to delete_inferior and remove 'silent'
6433         parameter.
6434         * progspace.c (prune_program_spaces): Remove.
6435         (pspace_empty_p): Rename to...
6436         (program_space_empty_p): ... and make non-static.
6437         (delete_program_space): New.
6438         * progspace.h (prune_program_spaces): Remove declaration.
6439         (program_space_empty_p): New declaration.
6440         (delete_program_space): New declaration.
6441         * monitor.c (monitor_close): Replace call to
6442         delete_thread_silent and delete_inferior_silent with
6443         discard_all_inferiors.
6444
6445 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6446
6447         * defs.h (deprecated_register_changed_hook): Remove prototype.
6448         * interps.c (clear_iterpreter_hooks): Remove reference to
6449         deprecated_register_changed_hook.
6450         * top.c (deprecated_register_changed_hook): Remove prototype.
6451         * valops.c (value_assign): Remove reference to
6452         deprecated_register_changed_hook.
6453         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6454         Add comment documenting the function.
6455         (tui_register_changed_observer): Define.
6456         (tui_install_hooks): Remove reference to
6457         deprecated_register_changed_hook.  Set
6458         tui_register_changed_observer.
6459         (tui_remove_hooks): Remove reference to
6460         deprecated_register_changed_hook.  Unset
6461         tui_register_changed_observer.
6462
6463 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6464
6465         PR compile/18484
6466         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6467
6468 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6469
6470         PR exp/18617
6471         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6472
6473 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6474
6475         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6476
6477 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6478
6479         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6480         Use safe_strerror() instead of strerror().
6481
6482 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6483
6484         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6485         * features/arm-with-m-fpa-layout.c: Regenerated.
6486         * features/arm-with-m-vfp-d16.xml: Likewise.
6487         * features/arm-with-m-vfp-d16.c: Regenerated.
6488         * features/arm-with-m.xml: Likewise.
6489         * features/arm-with-m.c: Regenerated.
6490         * features/arm-with-neon.xml: Likewise.
6491         * features/arm-with-neon.c: Regenerated.
6492         * features/arm-with-vfpv2.xml: Likewise.
6493         * features/arm-with-vfpv2.c: Regenerated.
6494         * features/arm-with-vfpv3.xml: Likewise.
6495         * features/arm-with-vfpv3.c: Regenerated.
6496
6497 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6498
6499         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6500         arm-linux-nat.c.
6501         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6502         elf/external.h.
6503         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6504         if target is 32-bit.
6505         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6506         if target is 32-bit.
6507         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6508         if target is 32-bit.
6509         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6510         if target is 32-bit.
6511         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6512         (aarch64_linux_read_description): Return the right target
6513         description.
6514         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6515         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6516         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6517         arm-linux-tdep.o.
6518
6519 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6520
6521         * aarch32-linux-nat.c: New file.
6522         * aarch32-linux-nat.h: New file.
6523         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6524         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6525         aarch32_gp_regcache_supply.
6526         (store_regs): Move code to aarch32-linux-nat.c.  Call
6527         aarch32_gp_regcache_collect.
6528         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6529         aarch32_vfp_regcache_supply.
6530         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6531         aarch32_vfp_regcache_collect.
6532         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6533
6534 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6535
6536         * arm-linux-nat.c (store_fpregister): Remove.
6537         (store_register): Likewise.
6538         (fetch_fpregister): Likewise.
6539         (fetch_register): Likewise.
6540         (arm_linux_store_inferior_registers): Call store_regs and
6541         store_fpregs instead.
6542         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6543         fetch_regs instead.
6544
6545 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6546
6547         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6548         and focus commands.
6549
6550 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6551
6552         * NEWS: Create a new section for the next release branch.
6553         Rename the section of the current branch, now that it has
6554         been cut.
6555
6556 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6557
6558         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6559         * version.in: Bump version to 7.10.50.DATE-cvs.
6560
6561 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6562
6563         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6564         breakpoints in a special way.
6565         (remove_breakpoint): Likewise.
6566         (mark_breakpoints_out): Likewise.
6567
6568 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6569
6570         * doc/gdb.texinfo (TUI): Add comma after @xref.
6571
6572 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6573
6574         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6575         instead of casting the structure type.
6576
6577 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6578
6579         * valops.c (search_struct_field): Remove OFFSET parameter.
6580         (value_cast_structs): Adjust calls to search_struct_field.
6581         (value_struct_elt): Same.
6582         (find_overload_match): Same.
6583
6584 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6585
6586         * value.c (value_fetch_lazy): Update comment, change return
6587         value to void.
6588         * value.h (value_fetch_lazy): Change return value to void.
6589
6590 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6591
6592         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6593         (tui_win_name): Make parameter and result const.
6594         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6595
6596 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6597
6598         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6599         use printf_unfiltered.
6600         (set_mpx_cmd): Add missing trailing space to command string
6601         literal.
6602         (_initialize_i386_tdep): Give the "mpx" prefix command its
6603         correct name.
6604
6605 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6606
6607         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6608         (enum rx_frame_type): New.
6609         (struct rx_prologue): Add new field `frame_type'.
6610         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6611         parameter in the prologue struct.  Add code for recording
6612         locations of PC and PSW for fast interrupt and exception frames.
6613         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6614         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6615         (rx_frame_type): New function.
6616         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6617         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6618         `this_cache'.
6619         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6620         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6621         RX_FRAME_TYPE_FAST_INTERRUPT.
6622         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6623         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6624         (rx_frame_unwind): Use rx_frame_sniffer instead of
6625         default_frame_sniffer.
6626         (rx_frame_unwind): New unwinder.
6627         (rx_gdbarch_init): Register new unwinder.
6628
6629 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6630
6631         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6632         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6633         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6634         and RX_FPSW_REGNUM.
6635         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6636
6637 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6638
6639         Fix GCC false warning.
6640         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6641
6642 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6643
6644         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6645         typo in the debugging message.
6646
6647 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6648
6649         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6650         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6651         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6652         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6653         (btrace_maint_clear): New.
6654         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6655         (pt_print_packet, btrace_maint_decode_pt)
6656         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6657         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6658         (maint_btrace_packet_history_cmd)
6659         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6660         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6661         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6662         (maint_info_btrace_cmd, _initialize_btrace): New.
6663         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6664         (btrace_maint_packet_history, btrace_maint_info): New.
6665         (btrace_thread_info) <maint>: New.
6666         * NEWS: Announce it.
6667
6668 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6669
6670         * btrace.c (btrace_fetch): Append the new trace data.
6671         (btrace_clear): Clear the stored trace data.
6672         * btrace.h (btrace_thread_info) <data>: New.
6673         * common/btrace-common.h (btrace_data_clear)
6674         (btrace_data_append): New.
6675         * common/btrace-common.c (btrace_data_clear)
6676         (btrace_data_append): New.
6677
6678 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6679
6680         * nat/linux-btrace.c (linux_enable_bts): Check for
6681         PERF_ATTR_SIZE_VER5.
6682         Check for data_offset and data_size fields.  Use them.
6683
6684 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6685
6686         * NEWS: Announce new commands "record btrace pt" and "record pt".
6687         Announce new options "set|show record btrace pt buffer-size".
6688         * btrace.c: Include "rsp-low.h".
6689         Include "inttypes.h".
6690         (btrace_add_pc): Add forward declaration.
6691         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6692         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6693         (btrace_compute_ftrace_pt): New.
6694         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6695         (check_xml_btrace_version): Update version check.
6696         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6697         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6698         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6699         (btrace_pt_children): New.
6700         (btrace_children): Add support for "pt".
6701         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6702         (btrace_conf_children): Add support for "pt".
6703         * btrace.h: Include "intel-pt.h".
6704         (btrace_pt_error): New.
6705         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6706         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6707         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6708         (struct btrace_config_pt): New.
6709         (struct btrace_config)<pt>: New.
6710         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6711         (struct btrace_data)<pt>: New.
6712         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6713         (pt): New.
6714         * features/btrace.dtd (btrace)<pt>: New.
6715         (pt, pt-config, cpu): New.
6716         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6717         (perf_event_pt_event_type, kernel_supports_pt)
6718         (linux_supports_pt): New.
6719         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6720         (linux_enable_bts): Free tinfo on error.
6721         (linux_enable_pt): New.
6722         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6723         (linux_disable_pt): New.
6724         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6725         (linux_fill_btrace_pt_config, linux_read_pt): New.
6726         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6727         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6728         (struct btrace_target_info)<pt>: New.
6729         * record-btrace.c (set_record_btrace_pt_cmdlist)
6730         (show_record_btrace_pt_cmdlist): New.
6731         (record_btrace_print_pt_conf): New.
6732         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6733         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6734         (cmd_record_btrace_pt_start): New.
6735         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6736         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6737         (_initialize_record_btrace): Add new commands.
6738         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6739         (remote_protocol_features): Add "Qbtrace:pt".
6740         Add "Qbtrace-conf:pt:size".
6741         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6742         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6743         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6744         (_initialize_remote): Add new commands.
6745
6746 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6747
6748         * configure.ac: check for libipt
6749         * configure: Regenerate.
6750         * config.in: Regenerate.
6751         * Makefile.in (LIBIPT): New.
6752         (CLIBS): Add $LIBIPT.
6753         * NEWS: document new configure options
6754
6755 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6756
6757         * compile/compile-object-load.c (compile_object_load): Replace debug
6758         message "lookup undefined ELF symbol" by 3 more specific messages.
6759
6760 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6761
6762         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6763         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6764         (rl78_gdbarch_init): Initialize rl78_psw_type.
6765
6766 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6767
6768         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6769         Update commentary.  Always refresh the registers when frame
6770         information has changed.
6771         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6772         Change return type to int.  Return 1 if frame information has
6773         changed, 0 otherwise.
6774         (tui_before_prompt): Update commentary.
6775         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6776         int.
6777
6778 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6779
6780         PR tui/13378
6781         * frame.c (select_frame): Remove reference to
6782         deprecated_selected_frame_level_changed_hook.
6783         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6784         declaration.
6785         * stack.c (deprecated_selected_frame_level_changed_hook):
6786         Likewise.
6787         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6788         Rename to ...
6789         (tui_refresh_frame_and_register_information): ... this.  Bail
6790         out if there is no stack.  Don't update register information
6791         unless registers_too_p is true.
6792         (tui_print_frame_info_listing_hook): Rename to ...
6793         (tui_dummy_print_frame_info_listing_hook): ... this.
6794         (tui_before_prompt): New function.
6795         (tui_normal_stop): New function.
6796         (tui_before_prompt_observer): New observer.
6797         (tui_normal_stop_observer): New observer.
6798         (tui_install_hooks): Set
6799         deprecated_print_frame_info_listing_hook to
6800         tui_dummy_print_frame_info_listing_hook.  Register
6801         tui_before_prompt_observer to call tui_before_prompt and
6802         tui_normal_stop_observer to call tui_normal_stop.  Remove
6803         reference to deprecated_selected_frame_level_changed_hook.
6804         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6805         and tui_normal_stop_observer.  Remove reference to
6806         deprecated_selected_frame_level_changed_hook.
6807
6808 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6809
6810         PR tui/13378
6811         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6812         return an int instead of void.  Return whether the locator
6813         window has changed.
6814         (tui_show_frame_info): If the locator info has not changed, then
6815         bail out early to avoid refreshing the windows.
6816
6817 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6818
6819         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6820         LOCATOR_WIN to tui_alloc_content.
6821
6822 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6823
6824         PR tdep/18605
6825         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6826         instructions.
6827
6828 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6829
6830         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6831         (rx_dwarf_reg_to_regnum): New function.
6832         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6833         unwinding.
6834
6835 2015-06-29  Pedro Alves  <palves@redhat.com>
6836
6837         PR threads/18127
6838         * infcall.c (run_inferior_call): On infcall success, if the thread
6839         was marked stopped before, reset it back to stopped.
6840         * infrun.c (resume): Don't suppress the set_running calls when
6841         doing an infcall.
6842         (normal_stop): Only discard the finish_thread_state cleanup if the
6843         infcall succeeded.
6844
6845 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6846
6847         * MAINTAINERS (Write After Approval): Update my email address.
6848
6849 2015-06-26  Keith Seitz  <keiths@redhat.com>
6850             Doug Evans  <dje@google.com>
6851
6852         PR 16253
6853         * block.c (block_lookup_symbol): For non-function blocks,
6854         continue to search for a symbol with an exact domain match
6855         Otherwise, return any previously found "best domain" symbol.
6856         (block_lookup_symbol_primary): Likewise.
6857
6858 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6859
6860         * NEWS: Mention the new option "history remove-duplicates".
6861         * top.c (history_remove_duplicates): New static variable.
6862         (show_history_remove_duplicates): New static function.
6863         (gdb_add_history): Conditionally remove duplicate history
6864         entries.
6865         (init_main): Add "history remove-duplicates" option.
6866
6867 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6868
6869         * tui/tui-win.c (focus_completer): New static function.
6870         (_initialize_tui_win): Set the completion function of the
6871         "focus" command to focus_completer.
6872
6873 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6874
6875         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6876         and language_asm..
6877         * symtab.c (find_function_start_sal): Likewise.
6878
6879 2015-06-25  Gary Benson  <gbenson@redhat.com>
6880
6881         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6882         it is the empty string after trailing slashes have been stripped.
6883
6884 2015-06-25  Gary Benson  <gbenson@redhat.com>
6885
6886         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6887         * infrun.c (follow_exec): Likewise.
6888         * remote.c (remote_filesystem_is_local): Likewise.
6889         * solib.c (solib_find_1): Likewise.
6890
6891 2015-06-24  Keith Seitz  <keiths@redhat.com>
6892
6893         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6894         return value from lrealpath.
6895
6896 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6897
6898         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6899
6900 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6901
6902         * remote-sim.c: Include gdb_bfd.h.
6903         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6904         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6905
6906 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6907
6908         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6909         set_gdbarch_get_siginfo_type.
6910         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6911         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6912         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6913         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6914         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6915         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6916         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6917         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6918         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6919         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6920
6921 2015-06-24  Gary Benson  <gbenson@redhat.com>
6922
6923         * common/buffer.c (stdint.h): Do not include.
6924         * common/print-utils.c (stdint.h): Likewise.
6925         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6926         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6927         * ft32-tdep.c (gdb_assert.h): Likewise.
6928         * guile/scm-utils.c (stdint.h): Likewise.
6929         * i386-linux-tdep.c (stdint.h): Likewise.
6930         * i386-tdep.c (stdint.h): Likewise.
6931         * nat/linux-btrace.c (stdint.h): Likewise.
6932         * nat/linux-btrace.h (stdint.h): Likewise.
6933         * nat/linux-ptrace.c (stdint.h): Likewise.
6934         * nat/mips-linux-watch.h (stdint.h): Likewise.
6935         * ppc-linux-nat.c (stdint.h): Likewise.
6936         * python/python-internal.h (stdint.h): Likewise.
6937         * stub-termcap.c (stdlib.h): Likewise.
6938         * target/target.h (stdint.h): Likewise.
6939         * xtensa-linux-nat.c (stdint.h): Likewise.
6940
6941 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6942
6943         * top.c (init_history): Look at errno after calling strtol to
6944         properly map large GDBHISTSIZE values to infinity.
6945
6946 2015-06-23  Doug Evans  <dje@google.com>
6947
6948         * inferior.h (struct inferior_suspend_state): Delete, unused.
6949         All references deleted.
6950
6951 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6952
6953         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6954         (microblaze_push_dummy_call): Likewise.
6955         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6956         and set_gdbarch_push_dummy_call.
6957
6958 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6959
6960         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6961         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6962         (amd64_linux_store_inferior_registers): Likewise.
6963         * arm-linux-nat.c (fetch_fpregister): Likewise.
6964         (fetch_fpregs, store_fpregister): Likewise.
6965         (store_fpregister, store_fpregs): Likewise.
6966         (fetch_register, fetch_regs): Likewise.
6967         (store_register, store_regs): Likewise.
6968         (fetch_vfp_regs, store_vfp_regs): Likewise.
6969         (arm_linux_read_description): Check have_ptrace_getregset is
6970         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
6971         or TRIBOOL_FALSE.
6972         * i386-linux-nat.c (fetch_xstateregs): Check
6973         have_ptrace_getregset is not TRIBOOL_TRUE.
6974         (store_xstateregs): Likewise.
6975         * linux-nat.c (have_ptrace_getregset): Change its type to
6976         enum tribool.
6977         * linux-nat.h (tribool): New enum.
6978         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6979         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6980
6981 2015-06-19  Doug Evans  <dje@google.com>
6982
6983         * NEWS: Mention Sun's version of stabs is no longer supported.
6984         * elfread.c (free_elfinfo): Delete.  All uses updated.
6985         (elfstab_offset_sections): Delete.  All uses updated.
6986         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
6987         * psympriv.h (partial_symtab) <section_offsets>: Delete.
6988         All uses updated.
6989         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6990         All callers updated.
6991
6992 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
6993
6994         * common/rsp-low.c (needs_escaping): New.
6995         (remote_escape_output): Add unit_size parameter. Refactor to
6996         support multi-byte addressable units.  Rename parameters.
6997         * common/rsp-low.h (remote_escape_output): Add unit_size
6998         parameter and rename others. Update doc.
6999         * remote.c (align_for_efficient_write): New.
7000         (remote_write_bytes_aux): Add unit_size parameter and use it.
7001         Rename some variables.  Update doc.
7002         (remote_xfer_partial): Get unit size and use it.
7003         (remote_read_bytes_1): Add unit_size parameter and use it.
7004         Rename some variables. Update doc.
7005         (remote_write_bytes): Same.
7006         (remote_xfer_live_readonly_partial): Same.
7007         (remote_read_bytes): Same.
7008         (remote_flash_write): Update call to remote_write_bytes_aux.
7009         (remote_write_qxfer): Update call to remote_escape_output.
7010         (remote_search_memory): Same.
7011         (remote_hostio_pwrite): Same.
7012
7013 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7014
7015         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7016         locations as inserted.
7017         Update and expand comment about permanent locations.
7018         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7019         Move comment to add_location_to_breakpoint.
7020         (update_global_location_list): Don't error out if a permanent
7021         breakpoint is not marked inserted.
7022         Don't error out if a non-permanent breakpoint location is inserted on
7023         top of a permanent breakpoint.
7024
7025 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7026
7027         * breakpoint.c (make_breakpoint_permanent): Remove unused
7028         function.
7029         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7030
7031 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7032
7033         PR gdb/16999
7034         * NEWS: Mention new GDBHISTSIZE behavior.
7035         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7036         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7037
7038 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7039
7040         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7041         * top.c (init_history): Read from GDBHISTSIZE instead of
7042         HISTSIZE.
7043         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7044
7045 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7046
7047         * top.c (gdb_safe_append_history): Do not call
7048         history_truncate_file if the history is not stifled.
7049
7050 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7051
7052         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7053         * syscalls/s390x-linux.xml: Likewise.
7054
7055 2015-06-16  Michael Eager  <eager@eagercon.com>
7056
7057         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7058
7059 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7060
7061         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7062         target_terminal_ours_for_output() before calling
7063         tui_show_frame_info(), and restore the original terminal
7064         settings afterwards.
7065
7066 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7067
7068         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7069
7070 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7071
7072         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7073         memory unit size.
7074         (mi_cmd_data_write_memory_bytes): Same.
7075
7076 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7077
7078         * corefile.c (write_memory): Update doc.
7079         * gdbcore.h (write_memory): Same.
7080
7081 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7082
7083         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7084         (dump_mapping_p): Use it for parameter filterflags.
7085         (linux_find_memory_regions_full): Use it for variable filterflags.
7086
7087 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7088             Jan Kratochvil  <jan.kratochvil@redhat.com>
7089
7090         Merge multiple hex conversions.
7091         * monitor.c: Include rsp-low.h.
7092         (fromhex): Remove definition.
7093
7094 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7095             Jan Kratochvil  <jan.kratochvil@redhat.com>
7096
7097         Move utility functions to common/.
7098         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7099         Move defs to common/common-utils.c.
7100         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7101         (skip_to_space_const): Move decls to common/common-utils.h.
7102         * common/common-defs.h: Move include of common-types.h before
7103         common-utils.h.
7104         * common/common-utils.c: Include host-defs.h and ctype.h.
7105         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7106         from utils.c.
7107         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7108         cli/cli-utils.c.
7109         * common/common-utils.h (strtoulst): Move decl from utils.h.
7110         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7111         Move from cli/cli-utils.h.
7112         * common/host-defs.h: Include limits.h.
7113         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7114         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7115         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7116         common/common-utils.h.
7117         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7118         (strtoulst): Move to common/common-utils.c.
7119         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7120
7121 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7122
7123         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7124
7125 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7126
7127         * build-id.c: Don't include elf-bfd.h.
7128         (build_id_bfd_get): Use bfd_build_id.
7129         (build_id_verify): Ditto.
7130         * build-id.h: Ditto.
7131         (find_separate_debug_file_by_buildid): Ditto.
7132         * python/py-objfile.c: Don't include elf-bfd.h.
7133         (objfpy_get_build_id) Use bfd_build_id.
7134         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7135         * coffread.c: Include build-id.h.
7136         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7137
7138 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7139
7140         * windows-nat.c (do_windows_fetch_inferior_registers)
7141         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7142         conditional with __CYGWIN__.
7143
7144 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7145
7146         * completer.c: Add arch-utils.h include.
7147         (enum reg_completer_targets): New enum.
7148         (reg_or_group_completer_1): New function containing old
7149         reg_or_group_completer, add and use new parameter to control what
7150         is completed on.  Use get_current_arch rather than architecture of
7151         currently selected frame.
7152         (reg_or_group_completer): Call new reg_or_group_completer_1.
7153         (reggroup_completer): Call new reg_or_group_completer_1.
7154         * completer.h (reggroup_completer): Add declaration.
7155         * tui/tui-regs.c: Add 'completer.h' include.
7156         (tui_reg_next_command): Renamed to...
7157         (tui_reg_next): ...this.  Adjust parameters and return rather than
7158         display new group.
7159         (tui_reg_prev_command): Renamed to...
7160         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7161         display new group.
7162         (tui_reg_float_command): Delete.
7163         (tui_reg_general_command): Delete.
7164         (tui_reg_system_command): Delete.
7165         (tui_reg_command): Rewrite to perform switching of register group.
7166         Add header comment.
7167         (tuireglist): Remove.
7168         (tui_reggroup_completer): New function.
7169         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7170         creation of 'tui reg' command.
7171         * NEWS: Add comment about 'tui reg' changes.
7172
7173 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7174
7175         * target.c (target_read): Consider addressable unit size when
7176         reading from a memory object.
7177         (read_memory_robust): Same.
7178         (read_whatever_is_readable): Same.
7179         (target_write_with_progress): Consider addressable unit size
7180         when writing to a memory object.
7181         * target.h (target_read): Update documentation.
7182         (target_write): Add documentation.
7183
7184 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7185
7186         * arch-utils.h (default_addressable_memory_unit_size): New.
7187         * arch-utils.c (default_addressable_memory_unit_size): New.
7188         * gdbarch.sh (addressable_memory_unit_size): New.
7189         * gdbarch.h: Re-generate.
7190         * gdbarch.c: Re-generate.
7191
7192 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7193
7194         * target.c (target_read): Rename variables and use
7195         TARGET_XFER_E_IO.
7196         (target_read_with_progress): Same.
7197         (read_memory_robust): Constify parameters and rename
7198         variables.
7199         (read_whatever_is_readable): Constify parameters,
7200         rename variables, adjust formatting.
7201         * target.h (read_memory_robust): Constify parameters.
7202
7203 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7204
7205         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7206         synthetic (non-AltiVec) vector types.
7207         (ppc64_sysv_abi_return_value): Likewise.
7208
7209 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7210
7211         PR breakpoints/16465
7212         * breakpoint.c (create_breakpoint): Save extra_string for
7213         pending breakpoints.
7214
7215 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7216
7217         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7218         and bt_mask to CORE_ADDR.
7219
7220 2015-06-11  Gary Benson <gbenson@redhat.com>
7221
7222         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7223         (mnsh_recv_message): Likewise.
7224
7225 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7226
7227         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7228         long long int and plongest instead of %ll.
7229
7230 2015-06-11  Gary Benson <gbenson@redhat.com>
7231
7232         * nat/linux-namespaces.c (gdb_wait.h): New include.
7233         (sys/wait.h): Do not include.
7234
7235 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7236
7237         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7238         end_sequence is true.
7239
7240 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7241
7242         Code cleanup.
7243         * solib-target.c (library_list_start_list): Use explicit NULL
7244         comparison.
7245
7246 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7247
7248         * solib-target.c (library_list_start_list): Do not dereference
7249         variable version in its initialization.  Make the VERSION check handle
7250         NULL.
7251         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7252
7253 2015-06-10  Gary Benson <gbenson@redhat.com>
7254
7255         * NEWS: Announce support for direct access of executable and
7256         shared library files when attaching to inferiors in containers
7257         on GNU/Linux systems.
7258
7259 2015-06-10  Gary Benson <gbenson@redhat.com>
7260
7261         * remote.c (struct remote_state) <fs_pid>: New field.
7262         (new_remote_state): Initialize the above.
7263         (PACKET_vFile_setfs): New enum value.
7264         (remote_hostio_set_filesystem): New function.
7265         (remote_hostio_open): Call the above.
7266         (remote_hostio_unlink): Likewise.
7267         (remote_hostio_readlink): Likewise.
7268         (_initialize_remote): Register new "set/show remote
7269         hostio-setfs-packet" command.
7270         * NEWS: Announce new vFile:setfs packet.
7271
7272 2015-06-10  Gary Benson <gbenson@redhat.com>
7273
7274         * linux-nat.c (nat/linux-namespaces.h): New include.
7275         (fileio.h): Likewise.
7276         (linux_nat_filesystem_is_local): New function.
7277         (linux_nat_fileio_pid_of): Likewise.
7278         (linux_nat_fileio_open): Likewise.
7279         (linux_nat_fileio_readlink): Likewise.
7280         (linux_nat_fileio_unlink): Likewise.
7281         (linux_nat_add_target): Initialize to_filesystem_is_local,
7282         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7283         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7284         commands.
7285         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7286
7287 2015-06-10  Gary Benson <gbenson@redhat.com>
7288
7289         * target.h (struct inferior): New forward declaration.
7290         (struct target_ops) <to_filesystem_is_local>: Update comment.
7291         (struct target_ops) <to_fileio_open>: New argument inf.
7292         Update comment.  All implementations updated.
7293         (struct target_ops) <to_fileio_unlink>: Likewise.
7294         (struct target_ops) <to_fileio_readlink>: Likewise.
7295         (target_filesystem_is_local): Update comment.
7296         (target_fileio_open): New argument inf.  Update comment.
7297         (target_fileio_unlink): Likewise.
7298         (target_fileio_readlink): Likewise.
7299         (target_fileio_read_alloc): Likewise.
7300         (target_fileio_read_stralloc): Likewise.
7301         * target.c (target_fileio_open): New argument inf.
7302         Pass inf to implementation.  Update debug printing.
7303         (target_fileio_unlink): Likewise.
7304         (target_fileio_readlink): Likewise.
7305         (target_fileio_read_alloc_1): New argument inf. Pass inf
7306         to target_fileio_open.
7307         (target_fileio_read_alloc): New argument inf. Pass inf to
7308         target_fileio_read_alloc_1.
7309         (target_fileio_read_stralloc): Likewise.
7310         * gdb_bfd.c (inferior.h): New include.
7311         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7312         argument with new argument "inferior".  Pass inferior to
7313         target_fileio_open.
7314         (gdb_bfd_open): Supply inferior argument to
7315         gdb_bfd_iovec_fileio_open.
7316         * linux-tdep.c (linux_info_proc): Supply inf argument to
7317         relevant target_fileio calls.
7318         (linux_find_memory_regions_full): Likewise.
7319         (linux_fill_prpsinfo): Likewise.
7320         * remote.c (remote_filesystem_is_local): Supply inf
7321         argument to remote_hostio_open.
7322         (remote_file_put): Likewise.
7323         (remote_file_get): Likewise.
7324         (remote_file_delete): Supply inf argument to
7325         remote_hostio_unlink.
7326
7327 2015-06-10  Gary Benson <gbenson@redhat.com>
7328
7329         * inf-child.c (inf_child_fileio_open): Replace comment.
7330         (inf_child_fileio_pwrite): Likewise.
7331         (inf_child_fileio_pread): Likewise.
7332         (inf_child_fileio_fstat): Insert blank line before comment.
7333         (inf_child_fileio_close): Replace comment.
7334         (inf_child_fileio_unlink): Likewise.
7335         (inf_child_fileio_readlink): Likewise.
7336         * remote.c (remote_hostio_open): Likewise.
7337         (remote_hostio_pread): Likewise.
7338         (remote_hostio_pwrite): Likewise.
7339         (remote_hostio_close): Likewise.
7340         (remote_hostio_unlink): Likewise.
7341         (remote_hostio_readlink): Likewise.
7342         (remote_hostio_fstat): Likewise.
7343         (remote_filesystem_is_local): Likewise.
7344         * target.c (target_fileio_open): Likewise.
7345         (target_fileio_pwrite): Likewise.
7346         (target_fileio_pread): Likewise.
7347         (target_fileio_fstat): Insert blank line before comment.
7348         (target_fileio_close): Replace comment.
7349         (target_fileio_unlink): Likewise.
7350         (target_fileio_readlink): Likewise.
7351         (target_fileio_read_alloc): Likewise.
7352         (target_fileio_read_stralloc): Likewise.
7353
7354 2015-06-10  Gary Benson <gbenson@redhat.com>
7355
7356         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7357         (check_pid_namespace_match): Use linux_ns_same rather than
7358         linux_proc_pid_get_ns to spot PID namespace mismatches.
7359         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7360         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7361
7362 2015-06-10  Gary Benson <gbenson@redhat.com>
7363
7364         * configure.ac (AC_CHECK_FUNCS): Add setns.
7365         * config.in: Regenerate.
7366         * configure: Likewise.
7367         * nat/linux-namespaces.h: New file.
7368         * nat/linux-namespaces.c: Likewise.
7369         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7370         (linux-namespaces.o): New rule.
7371         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7372         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7373         * config/arm/linux.mh (NATDEPFILES): Likewise.
7374         * config/i386/linux.mh (NATDEPFILES): Likewise.
7375         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7376         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7377         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7378         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7379         * config/mips/linux.mh (NATDEPFILES): Likewise.
7380         * config/pa/linux.mh (NATDEPFILES): Likewise.
7381         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7382         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7383         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7384         * config/s390/linux.mh (NATDEPFILES): Likewise.
7385         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7386         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7387         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7388         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7389
7390 2015-06-10  Gary Benson <gbenson@redhat.com>
7391
7392         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7393         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7394         (make_cleanup_close): Likewise.
7395         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7396         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7397         (make_cleanup_close): Likewise.
7398
7399 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7400
7401         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7402         from SuspendThread().
7403
7404 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7405
7406         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7407         from OutputDebugString.
7408
7409 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7410                         Mircea Gherzan  <mircea.gherzan@intel.com>
7411
7412         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7413         MPX_BT_MASK_32): New macros.
7414         (i386_mpx_set_bounds): New function that implements
7415         the command "set-mpx-bound".
7416         (i386_mpx_enabled): Helper function to test MPX availability.
7417         (i386_mpx_bd_base): Helper function to calculate the base directory
7418         address.
7419         (i386_mpx_get_bt_entry): Helper function to access a bound
7420         table entry.
7421         (i386_mpx_print_bounds): Effectively display bound information.
7422         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7423         "show mpx".
7424         (_initialize_i386_tdep):
7425         Add "bound" to the commands "show mpx" and "set mpx" commands.
7426         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7427         and "show mpx" commands.
7428         * NEWS: List new commands for MPX support.
7429
7430 2015-06-09  Gary Benson <gbenson@redhat.com>
7431
7432         * common/fileio.h (fileio_to_host_mode): New declaration.
7433         * common/fileio.c (fileio_to_host_mode): New Function.
7434         * inf-child.c (inf_child_fileio_open): Process mode argument
7435         with fileio_to_host_mode.
7436
7437 2015-06-09  Gary Benson <gbenson@redhat.com>
7438
7439         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7440         conditional.
7441
7442 2015-06-05  Gary Benson <gbenson@redhat.com>
7443
7444         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7445         * remote.c (remote_filesystem_is_local): ...here.
7446
7447 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7448
7449         * gdbarch.c: Regenerate it.
7450
7451 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7452
7453         * arch-utils.c (default_infcall_munmap): New.
7454         * arch-utils.h (default_infcall_munmap): New declaration.
7455         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7456         (munmap_list_free, munmap_listp_free_cleanup): New.
7457         (struct setup_sections_data): Add field munmap_list_headp.
7458         (setup_sections): Call munmap_list_add.
7459         (compile_object_load): New variable munmap_list_head, initialize
7460         setup_sections_data.munmap_list_headp, return munmap_list_head.
7461         * compile/compile-object-load.h (struct munmap_list): New declaration.
7462         (struct compile_module): Add field munmap_list_head.
7463         (munmap_list_free): New declaration.
7464         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7465         munmap_list_head.
7466         (do_module_cleanup): Call munmap_list_free.
7467         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7468         * gdbarch.c: Regenerate.
7469         * gdbarch.h: Regenerate.
7470         * gdbarch.sh (infcall_munmap): New.
7471         * linux-tdep.c (linux_infcall_munmap): New.
7472         (linux_init_abi): Install it.
7473
7474 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7475
7476         PR gdb/15564
7477         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7478
7479 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7480
7481         * i386-linux-nat.c: Include linux-nat.h.
7482
7483 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7484             Jan Kratochvil  <jan.kratochvil@redhat.com>
7485
7486         PR symtab/18392
7487         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7488         assertion.
7489         * dwarf2loc.c (chain_candidate): Likewise.
7490
7491 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7492
7493         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7494         (store_vfp_regs): Use PTRACE_SETREGSET.
7495
7496 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7497
7498         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7499         (fetch_fpregs): Likewise.
7500         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7501         (store_fpregs): Likewise.
7502
7503 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7504
7505         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7506         (fetch_regs): Likewise.
7507         (store_regs): Use PTRACE_SETREGSET.
7508         (store_register): Likewise.
7509
7510 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7511
7512         * arm-linux-nat.c (arm_linux_read_description): Check whether
7513         kernel supports PTRACE_GETREGSET.
7514
7515 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7516
7517         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7518         * linux-nat.c: ... here.
7519         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7520         to ...
7521         * linux-nat.h: ... here.
7522
7523 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7524
7525         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7526         * i386-linux-nat.c: Likewise.
7527         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7528         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7529         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7530         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7531         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7532
7533 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7534
7535         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7536         compatible to what read_child and write_child return.  This
7537         unbreaks that DJGPP build of GDB which was broken since v7.7.
7538
7539 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7540
7541         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7542
7543 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7544
7545         PR gdb/18464
7546         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7547         rather than internal_error for an unrecognized value.
7548
7549 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7550
7551         * xtensa-tdep.c (xtensa_pseudo_register_read)
7552         (xtensa_pseudo_register_write): Don't alias last pseudo register
7553         to a1.
7554
7555 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7556
7557         * infrun.c (follow_fork_inferior): Ensure the use of
7558         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7559         messages.
7560
7561 2015-05-28  Doug Evans  <dje@google.com>
7562
7563         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7564
7565 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7566
7567         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7568         (arm_linux_fetch_inferior_registers): Use
7569         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7570         (arm_linux_store_inferior_registers): Likewise.
7571         (arm_linux_read_description): Don't set
7572         arm_linux_has_wmmx_registers.
7573         * arm-tdep.c (arm_gdbarch_init): Set
7574         tdep->have_wmmx_registers according target descriptions.
7575         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7576         field.
7577
7578 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7579
7580         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7581         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7582         instead of arm_linux_vfp_register_count.
7583         (store_vfp_regs): Likewise.
7584         (arm_linux_fetch_inferior_registers): Likewise.
7585         (arm_linux_store_inferior_registers): Likewise.
7586         (arm_linux_read_description): Don't set
7587         arm_linux_vfp_register_count.
7588         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7589         Adjust.
7590         * arm-tdep.c (arm_gdbarch_init): Add assert on
7591         vfp_register_count.
7592         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7593         field to vfp_register_count.  All users updated.
7594
7595 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7596
7597         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7598         ELFOSABI_GNU binaries.
7599
7600 2015-05-27  Doug Evans  <dje@google.com>
7601
7602         * dwarf2read.c (lnp_state_machine): New typedef.
7603         (lnp_reader_state): New typedef.
7604         (dwarf_record_line_1): Renamed from dwarf_record_line.
7605         All callers updated.
7606         (dwarf_record_line): New function.
7607         (init_lnp_state_machine): New function.
7608         (check_line_address): Replace p_record_line parameter with state.
7609         All callers updated.
7610         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7611         Update to record state in lnp_state_machine.
7612
7613 2015-05-27  Doug Evans  <dje@google.com>
7614
7615         * dwarf2read.c (record_line_ftype): New typedef.
7616         (check_line_address): New function.
7617         (dwarf_decode_lines_1): Call it.
7618
7619 2015-05-27  Doug Evans  <dje@google.com>
7620
7621         * NEWS: Mention "set debug dwarf-line".
7622         * dwarf2read.c (dwarf_line_debug): New static global.
7623         (add_include_dir): Add debug dwarf-line support.
7624         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7625         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7626
7627 2015-05-27  Doug Evans  <dje@google.com>
7628
7629         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7630         All callers updated.
7631         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7632         * cp-support.h (cp_lookup_nested_symbol): Update.
7633
7634 2015-05-27  Doug Evans  <dje@google.com>
7635
7636         PR symtab/18258
7637         * block.c (block_find_symbol): New function.
7638         (block_find_non_opaque_type): Ditto.
7639         (block_find_non_opaque_type_preferred): Ditto.
7640         * block.h (block_symbol_matcher_ftype): New typedef.
7641         (block_find_symbol): Declare.
7642         (block_find_non_opaque_type): Ditto.
7643         (block_find_non_opaque_type_preferred): Ditto.
7644         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7645         * psymtab.c (psym_lookup_symbol): Ditto.
7646         * symtab.c (basic_lookup_transparent_type_1): New function.
7647         (basic_lookup_transparent_type): Call it.
7648
7649 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7650
7651         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7652         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7653
7654 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7655
7656         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7657         before operator &&.
7658         (aarch64_record_load_store): Likewise.
7659
7660 2015-05-26  Doug Evans  <dje@google.com>
7661
7662         PR c++/18141, c++/18417.
7663         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7664         a typedef.
7665
7666 2015-05-26  Doug Evans  <dje@google.com>
7667
7668         * NEWS: Add entries for command renamings.
7669         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7670         All uses updated.
7671         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7672         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7673         All uses updated.
7674         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7675         All callers updated.  Fix spelling of DWARF in help text.
7676         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7677         All uses updated.
7678         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7679         All uses updated.
7680         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7681         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7682         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7683         All uses updated.
7684         (show_dwarf_always_disassemble): Renamed from
7685         show_dwarf2_always_disassemble.  All callers updated.
7686         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7687         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7688         "set/show dwarf max-cache-age".  Rename
7689         "set/show dwarf2 always-disassemble" to
7690         "set/show dwarf always-disassemble".  Rename
7691         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7692         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7693
7694 2015-05-26  Doug Evans  <dje@google.com>
7695
7696         PR python/18438
7697         * python/py-lazy-string.c (stpy_convert_to_value): Use
7698         gdbpy_gdb_memory_error not PyExc_MemoryError.
7699         (gdbpy_create_lazy_string_object): Ditto.
7700
7701 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7702
7703         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7704
7705 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7706
7707         * tui/tui-regs.c (tui_reg_prev_command): New function.
7708         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7709         * reggroups.c (reggroup_prev): New function.
7710         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7711
7712 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7713             Yao Qi  <yao.qi@linaro.org>
7714
7715         * aarch64-linux-tdep.c: Include linux-record.h and
7716         record-full.h.
7717         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7718         (aarch64_syscall): New enum.
7719         (aarch64_canonicalize_syscall): New function.
7720         (aarch64_all_but_pc_registers_record): New function.
7721         (aarch64_linux_syscall_record): New function.
7722         (aarch64_linux_init_abi): Install AArch64 process record
7723         handler.  Update to handle syscall recording.
7724         * aarch64-tdep.c: Include record.h and record-full.h.
7725         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7726         (struct aarch64_mem_r): Define.
7727         (aarch64_record_result): New enum.
7728         (struct insn_decode_record): Define.
7729         (insn_decode_record): New typedef.
7730         (aarch64_record_data_proc_reg): New function.
7731         (aarch64_record_data_proc_imm): New function.
7732         (aarch64_record_branch_except_sys): New function.
7733         (aarch64_record_load_store): New function.
7734         (aarch64_record_data_proc_simd_fp): New function.
7735         (aarch64_record_asimd_load_store): New function.
7736         (aarch64_record_decode_insn_handler): New function.
7737         (deallocate_reg_mem): New function.
7738         (aarch64_process_record): New function.
7739         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7740         New field.
7741         (aarch64_process_record): New extern declaration.
7742         * configure.tgt: Add linux-record.o to gdb_target_obs.
7743         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7744
7745 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7746
7747         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7748         targets.
7749
7750 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7751
7752         * amd64-tdep.c: Replace in_function_epilogue_p with
7753         stack_frame_destroyed_p throughout.
7754         * arch-utils.c: Ditto.
7755         * arch-utils.h: Ditto.
7756         * arm-tdep.c: Ditto.
7757         * breakpoint.c: Ditto.
7758         * gdbarch.sh: Ditto.
7759         * hppa-tdep.c: Ditto.
7760         * i386-tdep.c: Ditto.
7761         * mips-tdep.c: Ditto.
7762         * nios2-tdep.c: Ditto.
7763         * rs6000-tdep.c: Ditto.
7764         * s390-linux-tdep.c: Ditto.
7765         * score-tdep.c: Ditto.
7766         * sh-tdep.c: Ditto.
7767         * sparc-tdep.c: Ditto.
7768         * sparc-tdep.h: Ditto.
7769         * sparc64-tdep.c: Ditto.
7770         * spu-tdep.c: Ditto.
7771         * tic6x-tdep.c: Ditto.
7772         * tilegx-tdep.c: Ditto.
7773         * xstormy16-tdep.c: Ditto.
7774         * gdbarch.c, gdbarch.h: Re-generated.
7775
7776 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7777
7778         * NEWS: Mention 'tui enable' and 'tui disable'.
7779         * tui/tui.c (tui_enable_command): New function.
7780         (tui_disable_command): New function.
7781         (_initialize_tui): New function.
7782
7783 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7784
7785         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7786
7787 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7788
7789         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7790         buf_ptr is freed.
7791
7792 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7793
7794         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7795         into ...
7796         (tui_set_layout_for_display_command): ...here, before calling
7797         tui_set_layout.  Only set the layout if gdb has not already
7798         entered the TUI_FAILURE state.
7799
7800 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7801
7802         * tui/tui-layout.c (layout_completer): New function.
7803         (_initialize_tui_layout): Set completer on layout command.
7804
7805 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7806
7807         * tui/tui-layout.c (tui_set_layout): Remove
7808         tui_register_display_type parameter.  Remove all checking of this
7809         parameter, and reindent function.  Update header comment.
7810         (tui_set_layout_for_display_command): Rename to...
7811         (tui_set_layout_by_name): ...this, and don't check for different
7812         register class types, don't pass a tui_register_display_type to
7813         tui_set_layout.  Update header comment.
7814         (layout_names): Remove register set specific names.
7815         * tui/tui-layout.h (tui_set_layout): Remove
7816         tui_register_display_type parameter.
7817         * tui/tui.c (tui_rl_change_windows): Don't pass a
7818         tui_register_display_type to tui_set_layout.
7819         (tui_rl_delete_other_windows): Likewise.
7820         (tui_enable): Likewise.
7821         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7822         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7823         (TUI_GENERAL_REGS_NAME): Remove.
7824         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7825         (TUI_SPECIAL_REGS_NAME): Remove.
7826         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7827         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7828         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7829         (enum tui_register_display_type): Remove.
7830         (struct tui_layout_def): Remove regs_display_type and
7831         float_regs_display_type fields.
7832         (struct tui_data_info): Remove regs_display_type field.
7833         (tui_layout_command): Use new name for
7834         tui_set_layout_for_display_command.
7835         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7836         (tui_clear_win_detail): Don't initialise removed fields of
7837         win_info.
7838         * tui/tui-regs.c (tui_show_registers): Use new name for
7839         tui_set_layout_for_display_command.
7840         * tui/tui.h (tui_set_layout_for_display_command): Rename
7841         declaration to...
7842         (tui_set_layout_by_name): ...this.
7843         * printcmd.c (display_command): Remove tui related layout call,
7844         and reindent.
7845
7846 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7847
7848         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7849         (handle_inferior_event): New function.
7850
7851 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7852
7853         * ada-lang.c (to_fixed_array_type): Rename local variable
7854         typename into type_name.
7855
7856 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7857
7858         Fix ASAN crash for gdb.compile/compile.exp.
7859         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7860
7861 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7862
7863         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7864         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7865         * compile/compile-object-load.c (setup_sections, compile_object_load):
7866         Likewise.
7867         * compile/compile.c (compile_to_object): Likewise.
7868
7869 2015-05-16  Doug Evans  <xdje42@gmail.com>
7870
7871         * NEWS: Mention support for unbuffered Guile memory ports.
7872         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7873         (ioscm_lseek_address): Improve overflow calculation.
7874         (gdbscm_memory_port_fill_input): Add assert.
7875         (gdbscm_memory_port_write): Handle unbuffered ports.
7876         Handle large writes identical to Guile's fport_write.
7877         (gdbscm_memory_port_seek): Fix seeking past end check.
7878         (gdbscm_memory_port_close): Handle closing unbuffered port.
7879         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7880         (ioscm_init_memory_port): Handle unbuffered ports.
7881         (ioscm_reinit_memory_port): Ditto.
7882         (ioscm_init_memory_port): Update size calculation.
7883         (gdbscm_open_memory): Support zero sized ports.
7884
7885 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7886
7887         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7888         variable compiler warnings.
7889
7890 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7891
7892         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7893
7894 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7895             Phil Muldoon  <pmuldoon@redhat.com>
7896
7897         * NEWS (Changes since GDB 7.9): Add compile print.
7898         * compile/compile-c-support.c (add_code_header, add_code_footer)
7899         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7900         COMPILE_I_PRINT_VALUE_SCOPE.
7901         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7902         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7903         New.
7904         * compile/compile-object-load.c: Include block.h.
7905         (get_out_value_type): New function.
7906         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7907         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7908         OUT_VALUE_TYPE.
7909         * compile/compile-object-load.h (struct compile_module): Add fields
7910         out_value_addr and out_value_type.
7911         * compile/compile-object-run.c: Include valprint.h and compile.h.
7912         (struct do_module_cleanup): Add fields out_value_addr and
7913         out_value_type.
7914         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7915         COMPILE_I_PRINT_VALUE_SCOPE.
7916         (compile_object_run): Propagate out_value_addr and out_value_type.
7917         Pass OUT_VALUE_ADDR.
7918         * compile/compile.c: Include valprint.h.
7919         (compile_print_value, compile_print_command): New functions.
7920         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7921         (_initialize_compile): Update compile code help text.  Install
7922         compile_print_command.
7923         * compile/compile.h (compile_print_value): New prototype.
7924         * defs.h (enum compile_i_scope_types): Add
7925         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7926
7927 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7928
7929         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7930         Rely on its parameter count.
7931         (compile_object_load): Replace lookup_minimal_symbol_text by
7932         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7933         return value.
7934         * compile/compile-object-load.h (struct compile_module): Replace
7935         func_addr by func_sym.
7936         * compile/compile-object-run.c: Include block.h.
7937         (compile_object_run): Reset module variable after it is freed.  Use
7938         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7939
7940 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7941
7942         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7943         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7944         (c_compute_program): Call generate_register_struct after typedefs.
7945         * compile/compile-loc2c.c (push, pushf_register_address)
7946         (pushf_register): Cast to GCC_UINTPTR.
7947         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7948         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7949         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7950         * compile/compile.c (_initialize_compile): Enable warnings for
7951         COMPILE_ARGS.
7952
7953 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7954
7955         * cli/cli-script.c (execute_control_command): Update
7956         eval_compile_command caller.
7957         * compile/compile-object-load.c (compile_object_load): Add parameters
7958         scope and scope_data.  Set them.
7959         * compile/compile-object-load.h (struct compile_module): Add fields
7960         scope and scope_data.
7961         (compile_object_load): Add parameters scope and scope_data.
7962         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7963         scope and scope_data.
7964         (compile_object_run): Propagate the fields scope and scope_data.
7965         * compile/compile.c (compile_file_command, compile_code_command):
7966         Update eval_compile_command callers.
7967         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
7968         * compile/compile.h (eval_compile_command): Add parameter scope_data.
7969         * defs.h (struct command_line): Add field scope_data.
7970
7971 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7972
7973         * printcmd.c (struct format_data): Move it to valprint.h.
7974         (print_command_parse_format, print_value): New functions from ...
7975         (print_command_1): ... here.  Call them.
7976         * valprint.h (struct format_data): Move it here from printcmd.c.
7977         (print_command_parse_format, print_value): New declarations.
7978
7979 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7980
7981         * compile/compile-object-load.c (compile_object_load): Add
7982         COMPILE_DEBUG message.
7983
7984 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7985
7986         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7987         index to get element instead of enum value.
7988         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7989         of index to compute length, but enum values to compute bounds.
7990         (ada_array_length): Use enum position of index instead of enum value.
7991         (pos_atr): Move position computation to...
7992         (ada_evaluate_subexp): Use enum values to compute bounds.
7993         * gdbtypes.c (discrete_position): ...this new function.
7994         * gdbtypes.h (discrete_position): New function declaration.
7995         * valprint.c (val_print_array_elements): Call discrete_position
7996         to handle array indexed by non-contiguous enumeration types.
7997
7998 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7999
8000         * ada-lang.c (find_parallel_type_by_descriptive_type):
8001         Go through typedefs during lookup.
8002         (to_fixed_array_type): Add support for non-bit packed arrays
8003         as variable-length fields.
8004
8005 2015-05-15  Pedro Alves  <palves@redhat.com>
8006             Simon Marchi  <simon.marchi@ericsson.com>
8007
8008         * event-loop.c (gdb_notifier) <next_file_handler,
8009         next_poll_fds_index>: New fields.
8010         (get_next_file_handler_to_handle_and_advance): New function.
8011         (delete_file_handler): If deleting the next file handler to
8012         handle, advance to the next file handler.
8013         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8014         handlers in round-robin fashion.
8015
8016 2015-05-15  Pedro Alves  <palves@redhat.com>
8017
8018         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8019         'private' to 'priv'.
8020
8021 2015-05-15  Pedro Alves  <palves@redhat.com>
8022
8023         * nat/linux-nat.h: Include "target/waitstatus.h".
8024
8025 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8026
8027         * python/py-unwind.c (struct reg_info): Move out of ...
8028         (struct cached_frame_info): ... this scope.
8029         (pending_frame_object_type, unwind_info_object_type): Make extern.
8030
8031 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8032
8033         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8034         accumSize is never negative.
8035
8036 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8037
8038         * tui/tui-command.c: Remove include of <ctype.h>.
8039         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8040
8041 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8042
8043         * dwarf2read.c (die_needs_namespace): Return 1 for
8044         DW_TAG_inlined_subroutine.
8045
8046 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8047
8048         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8049         (regcache_cpy_no_passthrough): Make it static, add function comment.
8050         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8051         (regcache_cpy_no_passthrough): Remove declaration.
8052
8053 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8054
8055         * gdbthread.h (struct thread_control_state): Update comment for
8056         proceed_to_finish.
8057         * infcall.c (run_inferior_call): Update comment about
8058         proceed_to_finish.
8059         * infcmd.c (get_return_value): Update comment about stop_registers.
8060         (finish_forward): Update comment about proceed_to_finish.
8061         * infrun.c (stop_registers): Remove.
8062         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8063         * infrun.h (stop_registers): Remove.
8064
8065 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8066
8067         * infcall.c (struct dummy_frame_context_saver)
8068         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8069         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8070         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8071         New.
8072         (call_function_by_hand_dummy): Move discard_cleanups of
8073         inf_status_cleanup before dummy_frame_push.  Call
8074         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8075         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8076         * infcall.h (struct dummy_frame_context_saver)
8077         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8078         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8079         New declarations.
8080         * infcmd.c: Include infcall.h.
8081         (get_return_value): Add parameter ctx_saver, use it instead of
8082         stop_registers.
8083         (print_return_value): Add parameter ctx_saver, pass it.
8084         (struct finish_command_continuation_args): Add field ctx_saver.
8085         (finish_command_continuation): Update print_return_value caller.
8086         (finish_command_continuation_free_arg): Free also ctx_saver.
8087         (finish_forward): Call dummy_frame_context_saver_setup.
8088         * inferior.h (struct dummy_frame_context_saver): New declaration.
8089         (get_return_value): Add parameter ctx_saver.
8090         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8091         get_return_value caller.
8092
8093 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8094
8095         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8096         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8097         (remove_dummy_frame): Process dtor_list.
8098         (pop_dummy_frame): Process dtor_list.
8099         (register_dummy_frame_dtor): Maintain dtor_list.
8100         (find_dummy_frame_dtor): Handle dtor_list.
8101         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8102         Update comments.
8103
8104 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8105
8106         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8107         registers_valid.
8108         (compile_object_run): Update do_module_cleanup caller.
8109         * dummy-frame.c: Include infcall.h.
8110         (struct dummy_frame): Update dtor comment.
8111         (remove_dummy_frame): Call dtor.
8112         (pop_dummy_frame): Update dtor caller.
8113         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8114         registers_valid.
8115
8116 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8117
8118         GDB 7.9.1 released.
8119
8120 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8121
8122         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8123         Xmethods now being able to specify a result type to that new
8124         sectioin.
8125
8126 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8127
8128         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8129         first before resizing the window.
8130         * tui/tui.c (tui_enable): Likewise.
8131
8132 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8133
8134         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8135         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8136         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8137         dummy_dtor parameter.
8138         * infcall.h: Include dummy-frame.h.
8139         (call_function_by_hand_dummy_dtor_ftype): Remove.
8140         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8141         parameter.
8142
8143 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8144
8145         PR gdb/17820
8146         * top.c (history_size_setshow_var): Change type to signed.
8147         Initialize to -2.  Update documentation.
8148         (set_readline_history_size): Define.
8149         (set_history_size_command): Use it.  Remove logic for handling
8150         out-of-range sizes.
8151         (init_history): Use set_readline_history_size().  Test for a
8152         value of -2 instead of 0 when determining whether to set a
8153         default history size.
8154         (init_main): Decode the argument of the "size" command as a
8155         zuinteger_unlimited.
8156
8157 2015-05-12  Doug Evans  <dje@google.com>
8158
8159         * dwarf2read.c (struct file_entry): Tweak comments.
8160         (get_debug_line_section): Tweak comments.
8161
8162 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8163
8164         * NEWS: Announce fork support in the RSP and support
8165         for fork debugging in extended mode.
8166
8167 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8168
8169         * remote.c (remote_insert_fork_catchpoint): New function.
8170         (remote_remove_fork_catchpoint): New function.
8171         (remote_insert_vfork_catchpoint): New function.
8172         (remote_remove_vfork_catchpoint): New function.
8173         (pending_fork_parent_callback): New function.
8174         (remove_new_fork_child): New function.
8175         (remote_update_thread_list): Call remote_notif_get_pending_events
8176         and remove_new_fork_child.
8177         (extended_remote_kill): Kill fork child when killing the
8178         parent before follow_fork completes.
8179         (init_extended_remote_ops): Initialize target vector with
8180         new fork catchpoint functions.
8181
8182 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8183
8184         * remote.c (remove_vfork_event_p): New function.
8185         (remote_follow_fork): Add vfork event type to event checking.
8186         (remote_parse_stop_reply): New stop reasons "vfork" and
8187         "vforkdone" for RSP 'T' Stop Reply Packet.
8188
8189 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8190
8191         * linux-nat.c (linux_nat_ptrace_options): New function.
8192         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8193         Call linux_nat_ptrace_options and use different argument to
8194         linux_enable_event_reporting.
8195         (_initialize_linux_nat): Delete call to
8196         linux_ptrace_set_additional_flags.
8197         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8198         supported_ptrace_options.
8199         (additional_flags): Delete variable.
8200         (linux_check_ptrace_features): Use supported_ptrace_options.
8201         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8202         Likewise, and remove additional_flags check.
8203         (linux_enable_event_reporting): Change 'attached' argument to
8204         'options'.  Use supported_ptrace_options.
8205         (ptrace_supports_feature): Change comment.  Use
8206         supported_ptrace_options.
8207         (linux_ptrace_set_additional_flags): Delete function.
8208         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8209         Delete function prototype.
8210         * remote.c (remote_fork_event_p): New function.
8211         (remote_detach_pid): New function.
8212         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8213         if doing detach-on-fork.
8214         (remote_follow_fork): New function.
8215         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8216         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8217         (init_extended_remote_ops): Initialize to_follow_fork.
8218
8219 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8220
8221         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8222         from static to extern.
8223         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8224         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8225         * PACKET_vfork_event_feature>: New enumeration constants.
8226         (remote_protocol_features): Add table entries for new packets.
8227         (remote_query_supported): Add new feature queries to qSupported
8228         packet.
8229
8230 2015-05-12  Gary Benson <gbenson@redhat.com>
8231
8232         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8233         for fake PIDs as well as real ones.
8234         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8235
8236 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8237
8238         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8239         * python/py-value.c (valpy_reference_value): New function.
8240         (valpy_const_value): Likewise.
8241         (value_object_methods): Add new methods.
8242         * value.c (make_cv_value): New function.
8243         * value.h (make_cv_value): Declare.
8244
8245 2015-05-08  Yao Qi  <yao@codesourcery.com>
8246             Sandra Loosemore  <sandra@codesourcery.com>
8247
8248         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8249         to 'lh->include_dirs' before accessing to it.
8250         (psymtab_include_file_name): Likewise.
8251         (dwarf_decode_lines_1): Likewise.
8252         (dwarf_decode_lines): Likewise.
8253         (file_file_name): Likewise.
8254
8255 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8256
8257         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8258         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8259         (nios2_linux_rt_sigreturn_init): Adjust base address of
8260         register save area.
8261
8262 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8263
8264         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8265         "trap 31" as the breakpoint instruction on all targets.
8266
8267 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8268
8269         * infcmd.c (print_return_value): Remove unused declaration.
8270
8271 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8272
8273         * dwarf2read.c (attr_to_dynamic_prop)
8274         <DW_AT_data_member_location>: Use read_type_die isntead of
8275         get_die_type.
8276
8277 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8278
8279         * ada-lang.c (ada_convert_actual): Add handling of formals
8280         passed inside an aligner type.
8281
8282 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8283
8284         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8285
8286 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8287
8288         PR python/18291
8289         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8290         Print xmethod matcher status.
8291
8292 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8293
8294         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8295         register in the regcache when treating the PSWM register, and vice
8296         versa.
8297
8298 2015-05-07  Gary Benson <gbenson@redhat.com>
8299
8300         * linux-thread-db.c (struct thread_db_info)
8301         <td_ta_map_id2thr_p>: Remove field.
8302         (try_thread_db_load_1): Remove initialization for the above.
8303
8304 2015-05-07  Gary Benson <gbenson@redhat.com>
8305
8306         * linux-thread-db.c (struct thread_db_info)
8307         <td_thr_validate_p>: Remove field.
8308         (try_thread_db_load_1): Remove initialization for the above.
8309
8310 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8311
8312         * compile/compile-object-load.c (compile_object_load): Support
8313         mst_text_gnu_ifunc.
8314
8315 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8316
8317         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8318         const.  Use new variables for the const compatibility.
8319         (eval_compile_command): Make the cmd_string parameter const.
8320         * compile/compile.h (eval_compile_command): Make the cmd_string
8321         parameter const.
8322
8323 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8324
8325         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8326         comment.
8327         * top.c (deprecated_init_ui_hook): Delete.
8328         (gdb_init): Remove handling of deprecated_init_ui_hook.
8329         * interps.c (clear_interpreter_hooks): Remove handling of
8330         deprecated_init_ui_hook.
8331         * main.c (captured_main): Update comment.
8332
8333 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8334
8335         * solib.c (_initialize_solib): Add "info dll" alias creation.
8336         * windows-nat.c (set_windows_aliases): Delete.
8337         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8338         assignment.
8339         * NEWS: Add news entry about "info dll" now being available
8340         on all platforms.
8341
8342 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8343
8344         * ada-lang.c (value_assign_to_component): Reformat and improve
8345         documentation. Remove all trailing spaces.
8346
8347 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8348
8349         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8350         Stop counting inlined frames as soon as an out-of-line function
8351         is found.
8352
8353 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8354
8355         * dwarf2read.c (inherit_abstract_dies): Skip
8356         DW_TAG_GNU_call_site dies while inheriting children of an
8357         abstract DIE into a scope.
8358         (read_lexical_block_scope): Inherit abstract DIE's for
8359         lexical scopes.
8360
8361 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8362
8363         * ada-valprint.c (val_print_packed_array_elements): Delete
8364         variable "len".  Add a type-length check when comparing two
8365         consecutive elements of the array.  Use the element's actual
8366         length in call to value_contents_eq.
8367         * ada-lang.c (ada_value_primitive_packed_val): Always return
8368         a value whose type has been resolved.
8369
8370 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8371
8372         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8373         BIT_SIZE and LEN if the size of the resolved type is smaller
8374         than BIT_SIZE * HOST_CHAR_BIT.
8375
8376 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8377
8378         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8379         correct address in call to value_at.  Adjust call to
8380         value_address accordingly.
8381
8382 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8383
8384         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8385         to print it.
8386
8387 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8388
8389         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8390         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8391         pinfo->valaddr.
8392         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8393         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8394         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8395         Add handling of addr_stack->valaddr.
8396         (resolve_dynamic_type): Add "valaddr" parameter.
8397         Set pinfo.valaddr field.
8398         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8399         resolve_dynamic_type.
8400         (ada_discrete_type_low_bound): Likewise.
8401         * findvar.c (default_read_var_value): Likewise.
8402         * value.c (value_from_contents_and_address): Likewise.
8403
8404 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8405
8406         * gdbtypes.c (resolve_dynamic_array): Use
8407         create_array_type_with_stride instead of create_array_type.
8408
8409 2015-04-30  DJ Delorie  <dj@redhat.com>
8410
8411         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8412         rl78_decode_opcode
8413
8414 2015-04-29  Doug Evans  <dje@google.com>
8415
8416         PR python/18285
8417         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8418         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8419         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8420         * extension-priv.h (struct extension_language_ops)
8421         <get_xmethod_result_type>: New member.
8422         * extension.c (get_xmethod_result_type): New function.
8423         * extension.h (get_xmethod_result_type): Declare.
8424         * python/py-xmethods.c (get_result_type_method_name): New static
8425         global.
8426         (py_get_result_type_method_name): Ditto.
8427         (gdbpy_get_xmethod_result_type): New function.
8428         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8429         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8430         * python/python.c (python_extension_ops): Add
8431         gdbpy_get_xmethod_result_type.
8432         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8433         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8434         xmethods.
8435         (value_x_unop): Ditto.
8436         * value.c (result_type_of_xmethod): New function.
8437         * value.h (result_type_of_xmethod): Declare.
8438
8439 2015-04-29  Gary Benson <gbenson@redhat.com>
8440
8441         * solib.c (solib_find_1): Allow fd argument to be NULL.
8442         (exec_file_find): Update comment.
8443         (solib_find): Likewise.
8444         * exec.c (exec_file_locate_attach): Use NULL as fd
8445         argument to exec_file_find to avoid having to close
8446         the opened file.
8447         * infrun.c (follow_exec): Likewise.
8448
8449 2015-04-28  Doug Evans  <dje@google.com>
8450
8451         PR python/18299
8452         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8453         name or __name__ attributes.  Handle gdb module as first argument.
8454
8455 2015-04-28  Doug Evans  <dje@google.com>
8456
8457         PR python/18089
8458         * python/py-prettyprint.c (print_children): Verify result of children
8459         iterator.  Provide better error message.
8460         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8461         * python/python.c (gdbpy_print_python_errors_p): New function.
8462
8463 2015-04-28  Doug Evans  <dje@google.com>
8464
8465         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8466
8467 2015-04-28  Sasha Smundak  <asmundak@google.com>
8468
8469         * NEWS: Mention gdb.Type.optimized_out method.
8470         * python/py-type.c (typy_optimized_out):  New function.
8471
8472 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8473
8474         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8475
8476 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8477
8478         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8479         (initialize_utils): Move call of init_page_info() to ...
8480         * top.c (gdb_init): ... here.
8481
8482 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8483
8484         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8485         (tui_sigwinch_handler): Still update our idea of
8486         the terminal's width and height even when TUI is not active.
8487
8488 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8489
8490         * utils.h (set_screen_width_and_height): Declare.
8491         * utils.c (set_screen_width_and_height): Define.
8492         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8493
8494 2015-04-28  Gary Benson <gbenson@redhat.com>
8495
8496         * infrun.c (solist.h): New include.
8497         (follow_exec): Use exec_file_find to prefix execd_pathname
8498         with gdb_sysroot.
8499
8500 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8501
8502         * tui/tui-source.c (tui_set_source_content): Avoid calling
8503         strcpy() when offset is 0.
8504
8505 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8506
8507         PR gdb/18155
8508         * tui/tui-data.c (tui_free_window): Don't free the locator
8509         window when passed an SRC_WIN or a DISASSEM_WIN.
8510
8511 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8512
8513         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8514         (tui_win_content): Move declaration.
8515         (struct tui_gen_win_info): Give 'content' field the
8516         type tui_win_content.
8517         * tui/tui-data.c (init_content_element): Remove redundant and
8518         erroneous casts.
8519         (tui_add_content_elements): Remove erroneous cast.
8520         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8521         casts.
8522         (tui_get_begin_asm_address): Likewise.
8523         * tui/tui-regs.c (tui_show_registers): Likewise.
8524         (tui_show_register_group): Likewise.
8525         (tui_display_registers_from): Likewise.
8526         (tui_check_register_values): Likewise.
8527         * tui/tui-source.c (tui_set_source_content): Likewise.
8528         (tui_set_source_content_nil): Likewise.
8529         (tui_source_is_displayed): Likewise.
8530         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8531         (tui_set_locator_fullname): Likewise.
8532         (tui_set_locator_info): Likewise.
8533         (tui_show_frame_info): Likewise.
8534         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8535         (tui_show_source_line): Likewise.
8536         (tui_horizontal_source_scroll): Likewise.
8537         (tui_update_breakpoint_info): Likewise.
8538         (tui_set_exec_info_content): Likewise.
8539         (tui_show_exec_info_content): Likewise.
8540         (tui_alloc_source_buffer): Likewise.
8541         (tui_line_is_displayed): Likewise.
8542         (tui_addr_is_displayed): Likewise.
8543
8544 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8545
8546         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8547         event if PL_FLAG_EXEC is set.
8548         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8549         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8550         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8551         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8552         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8553
8554 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8555
8556         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8557         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8558         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8559         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8560         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8561         [PT_LWPINFO] (fbsd_wait): New function.
8562         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8563         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8564         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8565         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8566         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8567         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8568         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8569         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8570         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8571         "fbsd_wait".
8572         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8573         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8574         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8575         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8576         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8577         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8578         Set "to_post_attach" to "fbsd_post_attach".
8579
8580 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8581
8582         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8583         (fbsd_find_memory_regions): Mark static.
8584         (fbsd_nat_add_target): New function.
8585         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8586         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8587         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8588         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8589         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8590         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8591
8592 2015-04-27  Gary Benson <gbenson@redhat.com>
8593
8594         * objfiles.c (allocate_objfile): Do not attempt to expand name
8595         if name is a "target:" filename.
8596         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8597         to load auto-load scripts for objfiles with "target:" filenames.
8598
8599 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8600
8601         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8602         (enum s390_vector_abi_kind): New enum.
8603         (struct gdbarch_tdep)<vector_abi>: New field.
8604         (s390_effective_inner_type): Add parameter min_size.  Stop
8605         unwrapping if the inner type is smaller than min_size.
8606         (s390_function_arg_float): Adjust call to
8607         s390_effective_inner_type.
8608         (s390_function_arg_vector): New function.
8609         (s390_function_arg_integer): Adjust comment.
8610         (struct s390_arg_state)<vr>: New field.
8611         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8612         arguments according to vector ABI when appropriate.
8613         (s390_push_dummy_call): Initialize the argument state's field
8614         'vr'.  Adjust calls to s390_handle_arg.
8615         (s390_register_return_value): Handle vector return values.
8616         (s390_return_value): Apply the "register" return value convention
8617         to a vector when appropriate.
8618         (s390_gdbarch_init): Initialize tdep->vector_abi.
8619         * NEWS: Announce S390 vector ABI support.
8620
8621 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8622
8623         * s390-linux-tdep.c (s390_return_value_convention): Remove
8624         function.  Inline its logic...
8625         (s390_return_value): ...here.  Instead, move the handling of the
8626         "register" return value convention...
8627         (s390_register_return_value): ...here.  New function.
8628
8629 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8630
8631         * s390-linux-tdep.c
8632         (is_float_singleton): Remove function.  Move the "singleton" part
8633         of the logic...
8634         (s390_effective_inner_type): ...here.  New function.
8635         (is_float_like): Remove function.  Inline its logic...
8636         (s390_function_arg_float): ...here.
8637         (is_pointer_like, is_integer_like, is_struct_like): Remove
8638         functions.  Inline their logic...
8639         (s390_function_arg_integer): ...here.
8640         (s390_function_arg_pass_by_reference): Remove function.
8641         (extend_simple_arg): Remove function.
8642         (alignment_of): Remove function.
8643         (struct s390_arg_state): New structure.
8644         (s390_handle_arg): New function.
8645         (s390_push_dummy_call): Move parameter placement logic to the new
8646         function s390_handle_arg.  Call it for calculating the stack area
8647         sizes first, and again for actually writing the parameters.
8648
8649 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8650
8651         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8652           false if the argument is zero.
8653
8654 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8655
8656         * ada-lang.c (template_to_static_fixed_type): Return input type
8657         when it is already fixed.  Cache the input type itself when not
8658         creating a static fixed copy.  Make it explicit that we never
8659         molestate the input type.
8660         * gdbtypes.c (resolve_dynamic_struct): Reset the
8661         TYPE_TARGET_TYPE field for resolved copies.
8662
8663 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8664
8665         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8666         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8667         (template_to_static_fixed_type): Call ada_check_typedef only
8668         when necessary.
8669
8670 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8671
8672         * cli/cli-dump.c (srec_dump_command): Add internationalization
8673         mark ups.
8674         (ihex_dump_command): Likewise.
8675         (tekhex_dump_command): Likewise.
8676         (binary_dump_command): Likewise.
8677         (binary_append_command): Likewise.
8678
8679 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8680
8681         * cli/cli-dump.c (verilog_cmdlist): New variable.
8682         (dump_verilog_memory): New function.
8683         (dump_verilog_value): New function.
8684         (verilog_dump_command): New function.
8685         (_initialize_cli_dump): Add new commands to support verilog dump
8686         format.
8687         * NEWS: Add entry for "dump verilog".
8688
8689 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8690
8691         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8692         descriptive type when there is none.
8693
8694 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8695
8696         * tui/tui-win.c (tui_async_resize_screen): Call
8697         rl_resize_terminal().
8698
8699 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8700
8701         * windows-nat.c (handle_output_debug_string): Don't change
8702         current_event.dwThreadId.
8703         (get_windows_debug_event): Use thread_id, rather than relying on
8704         current_event.dwThreadId being changed.
8705
8706 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8707
8708         * windows-nat.c (windows_continue): Report an error if
8709         ContinueDebugEvent() fails.
8710
8711 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8712
8713         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8714
8715 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8716
8717         * windows-nat.c (get_windows_debug_event): Replace retval with
8718         thread_id throughout.  Update stale comment.
8719
8720 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8721
8722         * windows-nat.c (get_windows_debug_event): Don't use ternary
8723         conditional operator.
8724
8725 2015-04-21  Pierre Muller  <muller@sourceware.org>
8726
8727         PR pascal/17815
8728         p-exp.y (yylex): Reorganize code to return the matched pattern
8729         for a field of this.
8730
8731 2015-04-21  Gary Benson <gbenson@redhat.com>
8732
8733         * common/fileio.h (fileio_to_host_openflags): New declaration.
8734         * common/fileio.c (fcntl.h): New include.
8735         (fileio_to_host_openflags): New function, factored out from...
8736         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8737         Single use updated.
8738
8739 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8740
8741         * rl78-tdep.c (RL78_SP_ADDR): Define.
8742         (opc_reg_to_gdb_regnum): New static function.
8743         (rl78_analyze_prologue): Recognize instructions forming slightly
8744         more interesting prologues.
8745
8746 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8747
8748         Revert:
8749         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8750         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8751         TYPE_CODE_REF types so that they are not considered as dynamic
8752         depending on the referenced type.
8753         (resolve_dynamic_type_internal): Likewise.
8754
8755 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8756
8757         Revert:
8758         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8759         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8760         "top_level" parameter.
8761         (resolve_dynamic_type_internal): Remove the unused "top_level"
8762         parameter.  Update call to is_dynamic_type_internal.
8763         (is_dynamic_type): Update call to is_dynamic_type_internal.
8764         (resolve_dynamic_range): Update call to
8765         resolve_dynamic_type_internal.
8766         (resolve_dynamic_union): Likewise.
8767         (resolve_dynamic_struct): Likewise.
8768         (resolve_dynamic_type): Likewise.
8769
8770 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8771
8772         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8773         xmalloc.
8774
8775 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8776
8777         * reply_mig_hack.awk: Robustify parsing.
8778
8779         * reply_mig_hack.awk: Don't bother to declare an intermediate
8780         function pointer variable.
8781
8782 2015-04-17  Doug Evans  <dje@google.com>
8783
8784         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8785         to "exec_displacement" to avoid confusion with inner use of the name.
8786
8787 2015-04-17  Pedro Alves  <palves@redhat.com>
8788
8789         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8790         if HW point of TYPE isn't supported.
8791
8792 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8793             Pedro Alves  <palves@redhat.com>
8794
8795         * target.h (target_can_use_hardware_watchpoint): Update comments.
8796         Remove trailing ";".
8797
8798 2015-04-17  Gary Benson <gbenson@redhat.com>
8799
8800         * remote.c (remote_add_inferior): New argument try_open_exec.
8801         If nonzero, attempt to open the inferior's executable file as
8802         the main executable if no main executable is open already.
8803         All callers updated.
8804         * NEWS: Mention that GDB now supports automatic location and
8805         retrieval of executable + files from remote targets.
8806
8807 2015-04-17  Gary Benson <gbenson@redhat.com>
8808
8809         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8810         * remote.c (PACKET_qXfer_exec_file): Likewise.
8811         (remote_protocol_features): Register the
8812         "qXfer:exec-file:read" feature.
8813         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8814         (remote_pid_to_exec_file): New function.
8815         (init_remote_ops): Initialize to_pid_to_exec_file.
8816         (_initialize_remote): Register new "set/show remote
8817         pid-to-exec-file-packet" command.
8818         * NEWS: Announce new qXfer:exec-file:read packet.
8819
8820 2015-04-17  Gary Benson <gbenson@redhat.com>
8821
8822         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8823         New declaration.
8824         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8825         New function, factored out from...
8826         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8827
8828 2015-04-17  Gary Benson <gbenson@redhat.com>
8829
8830         * exec.c (solist.h): New include.
8831         (exec_file_locate_attach): Prefix absolute executable
8832         paths with gdb_sysroot if set.
8833         * NEWS: Mention that executable paths may be prepended
8834         with sysroot.
8835
8836 2015-04-17  Gary Benson <gbenson@redhat.com>
8837
8838         * solist.h (exec_file_find): New declaration.
8839         * solib.c (solib_find_1): New function, factored out from...
8840         (solib_find): ...here.
8841         (exec_file_find): New function.
8842
8843 2015-04-17  Gary Benson <gbenson@redhat.com>
8844
8845         * gdbcore.h (exec_file_locate_attach): New declaration.
8846         * exec.c (exec_file_locate_attach): New function, factored
8847         out from...
8848         * infcmd.c (attach_command_post_wait): ...here.
8849
8850 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8851
8852         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8853
8854 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8855
8856         * infrun.c (maybe_software_singlestep): Declare.
8857         (displaced_step_fixup): Call maybe_software_singlestep.
8858
8859 2015-04-15  Doug Evans  <dje@google.com>
8860
8861         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8862
8863 2015-04-15  Doug Evans  <dje@google.com>
8864
8865         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8866
8867 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8868
8869         * python/lib/gdb/command/unwinders.py: Add parentheses.
8870
8871 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8872
8873         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8874
8875 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8876
8877         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8878
8879 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8880
8881         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8882         dsc->insn_size instead of 4.
8883
8884 2015-04-14  Gary Benson <gbenson@redhat.com>
8885
8886         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8887         * minidebug.c (lzma_stat): Likewise.
8888         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8889         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8890
8891 2015-04-13  Stan Shebs  <stanshebs@google.com>
8892
8893         * MAINTAINERS: Update my email address.
8894
8895 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8896
8897         * amd64-tdep.c (amd64_target_description): New function.
8898         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8899         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8900         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8901         x86 extended save area.
8902         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8903         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8904         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8905         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8906         "amd64fbsd_read_description".
8907         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8908         (amd64fbsd_supply_xstateregset): New function.
8909         (amd64fbsd_collect_xstateregset): New function.
8910         Add "amd64fbsd_xstateregset".
8911         (amd64fbsd_iterate_over_regset_sections): New function.
8912         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8913         "I386_FBSD_XSAVE_XCR0_OFFSET".
8914         Add "iterate_over_regset_sections" gdbarch method.
8915         Add "core_read_description" gdbarch method.
8916         * i386-tdep.c (i386_target_description): New function.
8917         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8918         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8919         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8920         x86 extended save area.
8921         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8922         * i386bsd-nat.h: Export i386bsd_xsave_len.
8923         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8924         (_initialize_i386fbsd_nat): Set "to_read_description" to
8925         "i386fbsd_read_description".
8926         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8927         (i386fbsd_core_read_description): New function.
8928         (i386fbsd_supply_xstateregset): New function.
8929         (i386fbsd_collect_xstateregset): New function.
8930         Add "i386fbsd_xstateregset".
8931         (i386fbsd_iterate_over_regset_sections): New function.
8932         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8933         "I386_FBSD_XSAVE_XCR0_OFFSET".
8934         Add "iterate_over_regset_sections" gdbarch method.
8935         Add "core_read_description" gdbarch method.
8936         * i386fbsd-tdep.h: New file.
8937
8938 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8939
8940         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8941         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8942         conditional.
8943         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8944         and lb.
8945         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8946         va.
8947         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8948         conditional.
8949         * defs.h (xdb_commands): Remove declaration.
8950         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8951         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8952         * infcmd.c (run_no_args_command, go_command): Remove.
8953         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8954         * infrun.c (xdb_handle_command): Remove.
8955         (_initialize_infrun): Remove xdb_commands for lz and z.
8956         * main.c (xdb_commands): Remove variable.
8957         (captured_main): Remove "xdb" from long_options.
8958         (print_gdb_help): Remove --xdb from help.
8959         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8960         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8961         * stack.c (backtrace_full_command, args_plus_locals_info)
8962         (current_frame_command): Remove.
8963         (_initialize_stack): Remove xdb_commands for t, T and l.
8964         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8965         * thread.c (_initialize_thread): Remove xdb_commands condition.
8966         * tui/tui-layout.c (tui_toggle_layout_command)
8967         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8968         (_initialize_tui_layout): Remove xdb_commands for td and ts.
8969         * tui/tui-regs.c (tui_scroll_regs_forward_command)
8970         (tui_scroll_regs_backward_command): Remove.
8971         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8972         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8973         (_initialize_tui_win): Remove xdb_commands for U and w.
8974         * utils.c (pagination_on_command, pagination_off_command): Remove.
8975         (initialize_utils): Remove xdb_commands for am and sm.
8976
8977 2015-04-10  Pedro Alves  <palves@redhat.com>
8978
8979         * infrun.c (displaced_step_fixup): Switch to the event ptid
8980         earlier.  If the thread stopped for a watchpoint and the
8981         target/arch has non-continuable watchpoints, cancel the displaced
8982         step.
8983         (resume): Don't start a displaced step if in-line step-over info
8984         is valid.
8985
8986 2015-04-10  Pedro Alves  <palves@redhat.com>
8987
8988         * infrun.c (displaced_step_in_progress): New function.
8989         (do_target_resume): Advise target to report all signals if
8990         displaced stepping.
8991
8992 2015-04-10  Pedro Alves  <palves@redhat.com>
8993
8994         PR gdb/18216
8995         * infrun.c (process_event_stop_test): Don't assume a step-resume
8996         is set if tp->stepped_breakpoint is true.
8997
8998 2015-04-10  Yao Qi  <yao.qi@linaro.org>
8999
9000         * arm-tdep.c (install_alu_reg): Update comment.
9001         (thumb_copy_alu_reg): Remove local variable rn.  Update
9002         debugging message.  Use r2 instead of r1 in the modified
9003         instruction.
9004
9005 2015-04-10  Pedro Alves  <palves@redhat.com>
9006
9007         PR gdb/13858
9008         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9009         linux_displaced_step_location as gdbarch_displaced_step_location
9010         hook.
9011         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9012         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9013         * linux-tdep.c (linux_displaced_step_location): New function,
9014         based on ppc_linux_displaced_step_location.
9015         * linux-tdep.h (linux_displaced_step_location): New declaration.
9016         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9017         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9018         Delete.
9019         (ppc_linux_init_abi): Install linux_displaced_step_location as
9020         gdbarch_displaced_step_location hook, even without Cell/B.E..
9021         (_initialize_ppc_linux_tdep): Don't install
9022         ppc_linux_inferior_created as inferior_created observer.
9023         * s390-linux-tdep.c (s390_gdbarch_init): Install
9024         linux_displaced_step_location as gdbarch_displaced_step_location
9025         hook.
9026
9027 2015-04-09  Gary Benson <gbenson@redhat.com>
9028
9029         * common/common-remote-fileio.h: Rename to...
9030         * common/fileio.h: ...this.  Update all references.
9031         (remote_fileio_to_fio_error): Rename to...
9032         (host_to_fileio_error): ...this.
9033         (remote_fileio_to_be): Rename to...
9034         (host_to_bigendian): ...this.  Update all callers.
9035         (remote_fileio_to_fio_uint): Rename to...
9036         (host_to_fileio_uint): ...this.  Update all callers.
9037         (remote_fileio_to_fio_time): Rename to...
9038         (host_to_fileio_time): ...this.  Update all callers.
9039         (remote_fileio_to_fio_stat): Rename to...
9040         (host_to_fileio_stat): ...this.
9041         Update all references.
9042         * common/common-remote-fileio.c: Rename to...
9043         * common/fileio.c: ...this.  Update all references.
9044         (remote_fileio_to_fio_error): Rename to...
9045         (host_to_fileio_error): ...this.  Update all callers.
9046         (remote_fileio_mode_to_target): Rename to...
9047         (fileio_mode_pack): ...this.  Update all callers.
9048         (remote_fileio_to_fio_mode): Rename to...
9049         (host_to_fileio_mode): ...this.  Update all callers.
9050         (remote_fileio_to_fio_ulong): Rename to...
9051         (host_to_fileio_ulong): ...this.  Update all callers.
9052         (remote_fileio_to_fio_stat): Rename to...
9053         (host_to_fileio_stat): ...this.  Update all callers.
9054
9055 2015-04-09  Andy Wingo  <wingo@igalia.com>
9056
9057         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9058         (frame_functions): Bind gdbscm_frame_read_register to
9059         frame-read-register.
9060         * guile/lib/gdb.scm (frame-read-register): Export.
9061
9062 2015-04-09  Gary Benson <gbenson@redhat.com>
9063
9064         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9065         New declaration.
9066         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9067         New function, factored out the named functions below.
9068         * inf-child.c (gdb/fileio.h): Remove include.
9069         (common-remote-fileio.h): New include.
9070         (inf_child_errno_to_fileio_error): Remove function.  Update
9071         all callers to use remote_fileio_to_fio_error.
9072         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9073
9074 2015-04-09  Andy Wingo  <wingo@igalia.com>
9075
9076         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9077
9078 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9079
9080         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9081         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9082         * configure: Regenerated.
9083
9084 2015-04-09  Pedro Alves  <palves@redhat.com>
9085
9086         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9087         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9088         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9089         * gnulib/import/Makefile.am: Update.
9090         * gnulib/import/Makefile.in: Update.
9091         * gnulib/import/m4/gnulib-cache.m4: Update.
9092         * gnulib/import/m4/gnulib-comp.m4: Update.
9093         * gnulib/import/m4/strtok_r.m4: New file.
9094         * gnulib/import/strtok_r.c: New file.
9095
9096 2015-04-09  Pedro Alves  <palves@redhat.com>
9097
9098         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9099         "called too early to check prototype".
9100
9101 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9102
9103         PR python/16699
9104         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9105         use a caching mechanism.  Adjust comments and code to reflect
9106         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9107         (cmdpy_completer_handle_brkchars): Adjust call to
9108         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9109         (cmdpy_completer): Likewise.
9110
9111 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9112
9113         * spu-tdep.c (spu_gdbarch_init): Don't call
9114         set_gdbarch_cannot_step_breakpoint.
9115
9116 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9117
9118         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9119
9120 2015-04-07  Pedro Alves  <palves@redhat.com>
9121
9122         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9123         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9124         (delete_exited_threads): New declaration.
9125         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9126         * linux-nat.c (linux_nat_update_thread_list): New function.
9127         (linux_nat_add_target): Install it.
9128         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9129         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9130         (delete_exited_threads): New function.
9131
9132 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9133
9134         * infrun.c (resume) <displaced stepping debug output>: Get the
9135         leader thread's regcache, not resume_ptid's.
9136
9137 2015-04-06  Doug Evans  <xdje42@gmail.com>
9138
9139         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9140         VAR_DOMAIN.
9141         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9142         Include symbol domain in debugging output.
9143
9144 2015-04-06  Pedro Alves  <palves@redhat.com>
9145             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9146
9147         * configure.ac: Remove the mingw32-specific stub-termcap.o
9148         fallback, and instead fallback to the stub termcap on all hosts.
9149         * configure: Regenerate.
9150         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9151         symbols.
9152
9153 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9154
9155         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9156         "top_level" parameter.
9157         (resolve_dynamic_type_internal): Remove the unused "top_level"
9158         parameter.  Update call to is_dynamic_type_internal.
9159         (is_dynamic_type): Update call to is_dynamic_type_internal.
9160         (resolve_dynamic_range): Update call to
9161         resolve_dynamic_type_internal.
9162         (resolve_dynamic_union): Likewise.
9163         (resolve_dynamic_struct): Likewise.
9164         (resolve_dynamic_type): Likewise.
9165
9166 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9167
9168         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9169         TYPE_CODE_REF types so that they are not considered as dynamic
9170         depending on the referenced type.
9171         (resolve_dynamic_type_internal): Likewise.
9172
9173 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9174
9175         * Makefile.in (top_srcdir): New.
9176         * configure: Regenerated.
9177
9178 2015-04-02  Gary Benson <gbenson@redhat.com>
9179
9180         * NEWS: Announce the new default sysroot of "target:".
9181
9182 2015-04-02  Gary Benson <gbenson@redhat.com>
9183
9184         * main.c (captured_main): Set gdb_sysroot to "target:"
9185         if not otherwise set.
9186
9187 2015-04-02  Gary Benson <gbenson@redhat.com>
9188
9189         * exec.c (exec_file_attach): Support "target:" filenames.
9190
9191 2015-04-02  Gary Benson <gbenson@redhat.com>
9192
9193         * solib.c (solib_find): Strip "target:" prefix from sysroot
9194         if accessing local files.
9195
9196 2015-04-02  Gary Benson <gbenson@redhat.com>
9197
9198         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9199         checks and error messages.
9200
9201 2015-04-02  Gary Benson <gbenson@redhat.com>
9202
9203         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9204         (remote_filename_p): Remove declaration.
9205         (remote_bfd_open): Likewise.
9206         * remote.c (remote_bfd_iovec_open): Remove function.
9207         (remote_bfd_iovec_close): Likewise.
9208         (remote_bfd_iovec_pread): Likewise.
9209         (remote_bfd_iovec_stat): Likewise.
9210         (remote_filename_p): Likewise.
9211         (remote_bfd_open): Likewise.
9212         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9213         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9214         (gdb_bfd_open_maybe_remote): Remove function.
9215         (symfile_bfd_open):  Replace remote filename check with
9216         target filename check.
9217         (reread_symbols): Use gdb_bfd_open.
9218         * build-id.c (gdbcore.h): New include.
9219         (build_id_to_debug_bfd): Use gdb_bfd_open.
9220         * infcmd.c (attach_command_post_wait): Remove remote filename
9221         check.
9222         * solib.c (solib_find): Replace remote-specific handling with
9223         target-specific handling.  Update comments where necessary.
9224         (solib_bfd_open): Replace remote-specific handling with
9225         target-specific handling.
9226         (gdb_sysroot_changed): New function.
9227         (_initialize_solib): Call the above when gdb_sysroot changes.
9228         * windows-tdep.c (gdbcore.h): New include.
9229         (windows_xfer_shared_library): Use gdb_bfd_open.
9230
9231 2015-04-02  Gary Benson <gbenson@redhat.com>
9232
9233         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9234         (is_target_filename): New declaration.
9235         (gdb_bfd_has_target_filename): Likewise.
9236         (gdb_bfd_open): Update documentation comment.
9237         * gdb_bfd.c (target.h): New include.
9238         (gdb/fileio.h): Likewise.
9239         (is_target_filename): New function.
9240         (gdb_bfd_has_target_filename): Likewise.
9241         (fileio_errno_to_host): Likewise.
9242         (gdb_bfd_iovec_fileio_open): Likewise.
9243         (gdb_bfd_iovec_fileio_pread): Likewise.
9244         (gdb_bfd_iovec_fileio_close): Likewise.
9245         (gdb_bfd_iovec_fileio_fstat): Likewise.
9246         (gdb_bfd_open): Use target fileio to access paths prefixed
9247         with "target:" where necessary.
9248
9249 2015-04-02  Gary Benson <gbenson@redhat.com>
9250
9251         * target.h (struct target_ops) <to_filesystem_is_local>:
9252         New field.
9253         (target_filesystem_is_local): New macro.
9254         * target-delegates.c: Regenerate.
9255         * remote.c (remote_filesystem_is_local): New function.
9256         (init_remote_ops): Initialize to_filesystem_is_local.
9257
9258 2015-04-02  Gary Benson <gbenson@redhat.com>
9259
9260         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9261         (target_fileio_fstat): New declaration.
9262         * target.c (target_fileio_fstat): New function.
9263         * inf-child.c (inf_child_fileio_fstat): Likewise.
9264         (inf_child_target): Initialize to_fileio_fstat.
9265         * remote.c (init_remote_ops): Likewise.
9266
9267 2015-04-01  Sasha Smundak  <asmundak@google.com>
9268
9269         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9270         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9271         (py-unwind.o): New recipe.
9272         * NEWS: mention Python frame unwinding.
9273         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9274         gdb/unwinder.py and gdb/command/unwinder.py
9275         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9276         list.
9277         (execute_unwinders): New function.
9278         * python/lib/gdb/command/unwinders.py: New file.
9279         * python/lib/gdb/unwinder.py: New file.
9280         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9281         (objfpy_dealloc): Decrement frame_unwinders reference count.
9282         (objfpy_initialize): Create frame_unwinders list.
9283         (objfpy_get_frame_unwinders): New function.
9284         (objfpy_set_frame_unwinders): Ditto.
9285         (objfile_getset): Add frame_unwinders attribute to Objfile.
9286         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9287         (pspy_dealloc): Decrement frame_unwinders reference count.
9288         (pspy_initialize): Create frame_unwinders list.
9289         (pspy_get_frame_unwinders): New function.
9290         (pspy_set_frame_unwinders): Ditto.
9291         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9292         * python/py-unwind.c: New file.
9293         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9294         (objpy_get_frame_unwinders): New prototype.
9295         (gdbpy_initialize_unwind): New prototype.
9296         * python/python.c (gdbpy_apply_type_printers): Call
9297         gdbpy_initialize_unwind.
9298
9299 2015-04-01  Pedro Alves  <palves@redhat.com>
9300
9301         * infrun.c (resume): Check currently_stepping after clearing
9302         stepped_breakpoint, not before.
9303
9304 2015-04-01  Pedro Alves  <palves@redhat.com>
9305
9306         * infrun.c (print_target_wait_results): Print all the ptid
9307         elements.
9308
9309 2015-04-01  Pedro Alves  <palves@redhat.com>
9310
9311         * infrun.c (keep_going): Also discard cleanups if inserting
9312         breakpoints fails.
9313
9314 2015-04-01  Pedro Alves  <palves@redhat.com>
9315
9316         * infrun.c (wait_for_inferior): Install the
9317         finish_thread_state_cleanup cleanup across the whole function, not
9318         just around handle_inferior_event.
9319
9320 2015-04-01  Pedro Alves  <palves@redhat.com>
9321
9322         * infrun.c (resume) <step past permanent breakpoint>: Use
9323         do_target_resume.
9324
9325 2015-04-01  Pedro Alves  <palves@redhat.com>
9326
9327         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9328
9329 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9330
9331         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9332
9333 2015-04-01  Pedro Alves  <palves@redhat.com>
9334
9335         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9336         list if it was marked exited.
9337
9338 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9339
9340         * configure: Regenerated.
9341
9342 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9343             Jan Kratochvil  <jan.kratochvil@redhat.com>
9344             Oleg Nesterov  <oleg@redhat.com>
9345
9346         PR corefiles/16092
9347         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9348         New enum identifying the various options of the coredump_filter
9349         file.
9350         (struct smaps_vmflags): New struct.
9351         (use_coredump_filter): New variable.
9352         (decode_vmflags): New function.
9353         (mapping_is_anonymous_p): Likewise.
9354         (dump_mapping_p): Likewise.
9355         (linux_find_memory_regions_full): New variables
9356         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9357         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9358         parsing of its information.  Implement memory mapping filtering
9359         based on its contents.
9360         (show_use_coredump_filter): New function.
9361         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9362         * NEWS: Mention the possibility of using the
9363         '/proc/PID/coredump_filter' file when generating a corefile.
9364         Mention new command 'set use-coredump-filter'.
9365
9366 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9367
9368         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9369         read_memory_unsigned_integer.
9370
9371 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9372
9373         * Makefile.in (ZLIB): New.
9374         (ZLIBINC): Likewise.
9375         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9376         (CLIBS): Add $(ZLIB).
9377         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9378         Add -lz to LIBS.
9379         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9380         * top.c (print_gdb_configuration): Remove --with-zlib and
9381         --without-zlib.
9382         * config.in: Regenerated.
9383         * configure: Likewise.
9384
9385 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9386
9387         * NEWS: Mention info os cpus support.
9388         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9389         (struct osdata_type): Add cpus entry, reorder the entries in
9390         alphabetical order.
9391
9392 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9393
9394         * compile/compile.c (compile_to_object): Allow triplets with or
9395         without vendor set.
9396
9397 2015-03-30  Doug Evans  <dje@google.com>
9398
9399         PR c++/18141
9400         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9401         klass in VAR_DOMAIN.
9402
9403 2015-03-30  Gary Benson <gbenson@redhat.com>
9404
9405         * remote.c (remote_mourn_1): Remove function.  Update all callers
9406         to use remote_mourn.
9407         (extended_remote_mourn_1): Remove function.  Update all callers
9408         to use extended_remote_mourn.
9409         (extended_remote_attach_1): Remove function.  Update all callers
9410         to use extended_remote_attach.
9411
9412 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9413
9414         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9415         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9416         (ALLDEPFILES): Add ft32-tdep.c.
9417         * configure.tgt: Add FT32 entry.
9418         * ft32-tdep.c: New file, FT32 target-dependent code.
9419         * ft32-tdep.h: New file, FT32 target-dependent code.
9420
9421 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9422
9423         Revert:
9424         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9425         Code cleanup.
9426         * printcmd.c (print_command_1): Move expr variable scope.
9427
9428 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9429
9430         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9431
9432 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9433
9434         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9435         sections.
9436
9437 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9438
9439         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9440         exception raised while parsing the probe arguments.
9441         Force parsing to be done using the C language parser.
9442         * expression.h (parse_expression_with_language): Declare.
9443         * parse.c (parse_expression_with_language): New function.
9444
9445 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9446
9447         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9448
9449 2015-03-26  Andy Wingo  <wingo@igalia.com>
9450
9451         PR symtab/18148
9452         * dwarf2read.c (struct partial_die_info): Add has_const_value
9453         member.
9454         (add_partial_symbol): Don't punt on symbols that have const_value
9455         attributes.
9456         (read_partial_die): Detect DW_AT_const_value.
9457
9458 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9459
9460         Code cleanup.
9461         * printcmd.c (print_command_1): Move expr variable scope.
9462
9463 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9464
9465         Code cleanup.
9466         * printcmd.c (validate_format): Make the parameter cmdname const.
9467
9468 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9469
9470         * remote.c (_initialize_remote): Update comment.
9471
9472 2015-03-26  Pedro Alves  <palves@redhat.com>
9473             Jon TURNEY  <jon.turney@dronecode.org.uk>
9474
9475         * coffread.c (coff_symfile_read): When constructing the name of an
9476         import stub symbol from import symbol for amd64, only skip the
9477         char after _imp_ if the target is underscored (like i386) and the
9478         char is indeed the target's leading char.
9479
9480 2015-03-25  Pedro Alves  <palves@redhat.com>
9481
9482         * target.h <to_async>: Replace 'callback' and 'context' parameters
9483         with boolean 'enable' parameter.
9484         (target_async): Replace CALLBACK and CONTEXT parameters with
9485         boolean ENABLE parameter.
9486         * inf-loop.c (inferior_event_handler): Adjust.
9487         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9488         (linux_nat_resume): Adjust.
9489         (async_client_callback, async_client_context): Delete.
9490         (handle_target_event): Call inferior_event_handler directly.
9491         (linux_nat_async): Replace 'callback' and 'context' parameters
9492         with boolean 'enable' parameter.  Adjust.  Remove references to
9493         async_client_callback and async_client_context.
9494         (linux_nat_close): Adjust.
9495         * record-btrace.c (record_btrace_async): Replace 'callback' and
9496         'context' parameters with boolean 'enable' parameter.  Adjust.
9497         (record_btrace_resume): Adjust.
9498         * record-full.c (record_full_async): Replace 'callback' and
9499         'context' parameters with boolean 'enable' parameter.  Adjust.
9500         (record_full_resume, record_full_core_resume): Adjust.
9501         * remote.c (struct remote_state) <async_client_callback,
9502         async_client_context>: Delete fields.
9503         (remote_start_remote, extended_remote_attach_1, remote_resume)
9504         (extended_remote_create_inferior): Adjust.
9505         (remote_async_serial_handler): Call inferior_event_handler
9506         directly.
9507         (remote_async): Replace 'callback' and 'context' parameters with
9508         boolean 'enable' parameter.  Adjust.
9509         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9510         Adjust.
9511         * target-delegates.c: Regenerate.
9512
9513 2015-03-25  Gary Benson <gbenson@redhat.com>
9514             Pedro Alves  <palves@redhat.com>
9515
9516         * target.c (fileio_ft_t): New typedef, define object vector.
9517         (fileio_fhandles): New static variable.
9518         (is_closed_fileio_fh): New macro.
9519         (lowest_closed_fd): New static variable.
9520         (acquire_fileio_fd): New function.
9521         (release_fileio_fd): Likewise.
9522         (fileio_fd_to_fh): New macro.
9523         (target_fileio_open): Wrap the file descriptor on success.
9524         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9525         (target_fileio_pread): Likewise.
9526         (target_fileio_close): Likewise.
9527
9528 2015-03-24  Pedro Alves  <palves@redhat.com>
9529
9530         * thread.c (thread_apply_all_command): Take exited threads into
9531         account.
9532
9533 2015-03-24  Pedro Alves  <palves@redhat.com>
9534
9535         * infrun.c (resume, proceed): Mention
9536         switch_back_to_stepped_thread, not switch_back_to_stepping.
9537
9538 2015-03-24  Pedro Alves  <palves@redhat.com>
9539
9540         * infrun.c (user_visible_resume_ptid): Rewrite going from
9541         most-locked to unlocked instead of the opposite.  Move comment ...
9542         * infrun.h (user_visible_resume_ptid): ... here.
9543
9544 2015-03-24  Pedro Alves  <palves@redhat.com>
9545
9546         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9547         to resume the event lwp.  Use the lwp's ptid instead of the passed
9548         in (maybe wildcard) ptid.
9549         (stop_wait_callback): Tweak debug log output.
9550         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9551         TRAP_TRACE.
9552         (linux_nat_filter_event): In debug output, distinguish a
9553         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9554         before trying to resume the lwp.
9555
9556 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9557
9558         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9559         pointer indirection.
9560         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9561         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9562
9563 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9564
9565         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9566         Renames DYN_ATTR_DATA_LOCATION.
9567         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9568         DYN_ATTR_DATA_LOCATION.
9569         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9570         instead of DYN_ATTR_DATA_LOCATION.
9571
9572 2015-03-24  Pedro Alves  <palves@redhat.com>
9573
9574         * breakpoint.c (until_break_command): Adjust call to proceed.
9575         * gdbthread.h (struct thread_control_state) <stepping_command>:
9576         New field.
9577         * infcall.c (run_inferior_call): Adjust call to proceed.
9578         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9579         Adjust calls to proceed.
9580         (set_step_frame): Set the current thread's step_start_function
9581         here.
9582         (step_once): Adjust calls to proceed.
9583         (jump_command, signal_command, until_next_command)
9584         (finish_backward, finish_forward, proceed_after_attach_callback)
9585         (attach_command_post_wait): Adjust calls to proceed.
9586         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9587         (do_target_resume): New function, factored out from ...
9588         (resume): ... here.  Remove 'step' parameter.  Instead, check
9589         currently_stepping to determine whether the thread should be
9590         single-stepped.
9591         (proceed): Remove 'step' parameter and don't set the thread's
9592         step_start_function here.  Adjust call to 'resume'.
9593         (handle_inferior_event): Adjust calls to 'resume'.
9594         (switch_back_to_stepped_thread): Use do_target_resume instead of
9595         'resume'.
9596         (keep_going): Adjust calls to 'resume'.
9597         * infrun.h (proceed): Remove 'step' parameter.
9598         (resume): Likewise.
9599         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9600         'resume'.
9601         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9602
9603 2015-03-24  Pedro Alves  <palves@redhat.com>
9604
9605         * gdbthread.h (struct thread_control_state) <stepping_command>:
9606         New field.
9607         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9608         the thread's stepping_command field.
9609         * infrun.c (resume): Check the thread's stepping_command flag to
9610         determine which threads should be resumed.  Rename 'entry_step'
9611         local to user_step.
9612         (clear_proceed_status_thread): Clear 'stepping_command'.
9613         (schedlock_applies): Change parameter type to struct thread_info
9614         pointer.  Adjust.
9615         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9616         (switch_back_to_stepped_thread): Adjust calls to
9617         'schedlock_applies'.
9618         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9619
9620 2015-03-24  Pedro Alves  <palves@redhat.com>
9621
9622         * infrun.c (step_start_function): Delete and ...
9623         * gdbthread.h (struct thread_control_state) <step_start_function>:
9624         ... now a field here.
9625         * infrun.c (clear_proceed_status_thread): Clear the thread's
9626         step_start_function.
9627         (proceed, process_event_stop_test, print_stop_event): Adjust.
9628
9629 2015-03-24  Pedro Alves  <palves@redhat.com>
9630
9631         * infrun.c (proceed): No longer handle negative step.
9632
9633 2015-03-24  Gary Benson  <gbenson@redhat.com>
9634
9635         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9636         (x86_linux_prepare_to_resume): Likewise.
9637         * x86-linux-nat.c (x86_linux_new_thread):
9638         Moved to nat/x86-linux.c.
9639         (x86_linux_prepare_to_resume): Likewise.
9640         * nat/x86-linux.c (x86_linux_new_thread): New function.
9641         (x86_linux_prepare_to_resume): Likewise.
9642
9643 2015-03-24  Gary Benson  <gbenson@redhat.com>
9644
9645         * nat/x86-linux-dregs.h: New file.
9646         * nat/x86-linux-dregs.c: Likewise.
9647         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9648         (x86-linux-dregs.o): New rule.
9649         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9650         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9651         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9652         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9653         (x86_linux_dr_get): Likewise.
9654         (x86_linux_dr_set): Likewise.
9655         (x86_linux_dr_get_addr): Likewise.
9656         (x86_linux_dr_get_control): Likewise.
9657         (x86_linux_dr_get_status): Likewise.
9658         (update_debug_registers_callback): Likewise.
9659         (x86_linux_dr_set_control): Likewise.
9660         (x86_linux_dr_set_addr): Likewise.
9661         (x86_linux_update_debug_registers): Likewise.
9662
9663 2015-03-24  Gary Benson  <gbenson@redhat.com>
9664
9665         * x86-linux-nat.c (x86_linux_update_debug_registers):
9666         New function, factored out from...
9667         (x86_linux_prepare_to_resume): ...this.
9668
9669 2015-03-24  Gary Benson  <gbenson@redhat.com>
9670
9671         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9672         (x86_linux_dr_set): Likewise.
9673         (x86_linux_dr_get_addr): Likewise.
9674         (x86_linux_dr_get_control): Likewise.
9675         (x86_linux_dr_get_status): Likewise.
9676         (update_debug_registers_callback): Likewise.
9677         (x86_linux_dr_set_control): Likewise.
9678         (x86_linux_dr_set_addr): Likewise.
9679         (x86_linux_prepare_to_resume): Likewise.
9680         (x86_linux_new_thread): Likewise.
9681
9682 2015-03-24  Gary Benson  <gbenson@redhat.com>
9683
9684         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9685         (x86_linux_new_thread): Rename argument.
9686
9687 2015-03-24  Gary Benson  <gbenson@redhat.com>
9688
9689         * nat/x86-linux.h: New file.
9690         * nat/x86-linux.c: Likewise.
9691         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9692         (x86-linux.o): New rule.
9693         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9694         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9695         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9696         (lwp_set_arch_private_info): New declaration.
9697         (lwp_arch_private_info): Likewise.
9698         * linux-nat.c (lwp_set_arch_private_info): New function.
9699         (lwp_arch_private_info): Likewise.
9700         * x86-linux-nat.c: Include nat/x86-linux.h.
9701         (arch_lwp_info): Removed structure.
9702         (update_debug_registers_callback):
9703         Use lwp_set_debug_registers_changed.
9704         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9705         and lwp_set_debug_registers_changed.
9706         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9707
9708 2015-03-24  Gary Benson  <gbenson@redhat.com>
9709
9710         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9711         (lwp_is_stopped): Likewise.
9712         (lwp_stop_reason): Likewise.
9713         * linux-nat.c (ptid_of_lwp): New function.
9714         (lwp_is_stopped): Likewise.
9715         (lwp_is_stopped_by_watchpoint): Likewise.
9716         * x86-linux-nat.c (update_debug_registers_callback):
9717         Use lwp_is_stopped.
9718         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9719         lwp_stop_reason.
9720
9721 2015-03-24  Gary Benson  <gbenson@redhat.com>
9722
9723         * linux-nat.h (linux_stop_lwp): Move declaration to...
9724         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9725
9726 2015-03-24  Gary Benson  <gbenson@redhat.com>
9727
9728         * linux-nat.h: Include nat/linux-nat.h.
9729         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9730         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9731         (iterate_over_lwps_ftype): New typedef.
9732         (iterate_over_lwps): New declaration.
9733         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9734         iterate_over_lwps_ftype.  Update callback return value check.
9735
9736 2015-03-24  Gary Benson  <gbenson@redhat.com>
9737
9738         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9739         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9740
9741 2015-03-24  Gary Benson  <gbenson@redhat.com>
9742
9743         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9744         * linux-nat.c (current_lwp_ptid): New function.
9745         * x86-linux-nat.c: Include nat/linux-nat.h.
9746         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9747         (x86_linux_dr_get_control): Likewise.
9748         (x86_linux_dr_get_status): Likewise.
9749         (x86_linux_dr_set_control): Likewise.
9750         (x86_linux_dr_set_addr): Likewise.
9751
9752 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9753
9754         PR breakpoints/16466
9755         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9756
9757 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9758
9759         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9760         * ser-unix.c (hardwire_setparity): Likewise.
9761
9762 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9763
9764         * NEWS: Mention set/show serial parity command.
9765         * monitor.c (monitor_open): Call serial_setparity.
9766         * remote.c (remote_open_1): Likewise.
9767         * ser-base.c (ser_base_serparity): New function.
9768         * ser-base.h (ser_base_setparity): Add  declaration.
9769         * ser-go32.c (dos_ops): Set "setparity" field.
9770         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9771         state.Parity.
9772         (ser_windows_setparity): New function.
9773         (hardwire_ops): Add ser_windows_setparity.
9774         (tty_ops): Add NULL for setparity field.
9775         (pipe_ops): Add ser_base_setparity.
9776         (tcp_ops): Likewise.
9777         * ser-pipe.c (pipe_ops): Likewise.
9778         * ser-tcp.c (tcp_ops): Likewise.
9779         * ser-unix.c (hardwire_setparity): Add declaration.
9780         (hardwire_raw): Don't reset PARENB flag.
9781         (hardwire_setparity): New function.
9782         (hardwire_ops): Add hardwire_setparity.
9783         * serial.c (serial_setparity): New function.
9784         (serial_parity): New global.
9785         (parity_none, parity_odd, parity_even, parity_enums, parity):
9786         New static globals.
9787         (set_parity): New function.
9788         (_initialize_serial): Add set/show serial parity commands.
9789         * serial.h (GDBPARITY_NONE): Define.
9790         (GDBPARITY_ODD): Define.
9791         (GDBPARITY_EVEN): Define.
9792         (serial_setparity) Add declaration.
9793         (struct serial_ops): Add setparity field.
9794         * target.h (serial_parity): Add declaration.
9795
9796 2015-03-23  Keith Seitz  <keiths@redhat.com>
9797
9798         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9799
9800 2015-03-23  Keith Seitz  <keiths@redhat.com>
9801
9802         * breakpoint.c (parse_breakpoint_sals): Use
9803         linespec_lexer_lex_keyword to ascertain if the user specified
9804         a NULL location.
9805         * linespec.c [IF_KEYWORD_INDEX]: Define.
9806         (linespec_lexer_lex_keyword): Export.
9807         (struct ls_parser) <keyword_ok>: Remove.
9808         A keyword is only a keyword if not followed by another keyword.
9809         (linespec_lexer_lex_one): Remove keyword_ok handling.
9810         Add comment explaining why the parsing stream is not advanced
9811         when a keyword is seen.
9812         (parse_linespec): Remove parser->keyword_ok.
9813         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9814
9815 2015-03-23  Keith Seitz  <keiths@redhat.com>
9816
9817         PR gdb/18021
9818         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9819         if we find a static method with DW_AT_vtable_elem_location.
9820
9821 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9822
9823         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9824         before the second loop, to avoid undefined behavior.  Reported by
9825         Anton Blanchard <anton@samba.org>.
9826
9827 2015-03-20  Keven Boell  <keven.boell@intel.com>
9828
9829         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9830         data_location usage to linked list.
9831         (resolve_dynamic_type_internal): Adapt data_location to
9832         linked list.
9833         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9834         (copy_type_recursive, copy_type): Add copy of linked list.
9835         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9836         (struct dynamic_prop_list): New struct.
9837         * dwarf2read.c (set_die_type): Set data_location data.
9838
9839 2015-03-20  Pedro Alves  <palves@redhat.com>
9840
9841         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9842         inner block and make it const.
9843         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9844
9845 2015-03-20  Pedro Alves  <palves@redhat.com>
9846
9847         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9848         * breakpoint.h (set_breakpoint_condition): Update declaration.
9849
9850 2015-03-20  Pedro Alves  <palves@redhat.com>
9851
9852         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9853
9854 2015-03-20  Pedro Alves  <palves@redhat.com>
9855
9856         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9857
9858 2015-03-20  Pedro Alves  <palves@redhat.com>
9859
9860         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9861
9862 2015-03-20  Pedro Alves  <palves@redhat.com>
9863
9864         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9865         (nto_init_solib_absolute_prefix): Likewise.
9866
9867 2015-03-20  Pedro Alves  <palves@redhat.com>
9868
9869         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9870         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9871
9872 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9873
9874         * config/djgpp/README: Remove gdb.hp.
9875
9876 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9877
9878         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9879         set_gdbarch_cannot_step_breakpoint.
9880
9881 2015-03-19  Pedro Alves  <palves@redhat.com>
9882
9883         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9884         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9885         instead call perror_with_name.
9886         (check_ptrace_stopped_lwp_gone): New function.
9887         (linux_resume_one_lwp): Reimplement as wrapper around
9888         linux_resume_one_lwp_throw that swallows errors if the LWP is
9889         gone.
9890         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9891         swallows errors if the LWP is gone.  Use
9892         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9893
9894 2015-03-19  Pedro Alves  <palves@redhat.com>
9895
9896         * linux-nat.c (status_callback): Return early if the LWP has no
9897         status pending.
9898
9899 2015-03-19  Pedro Alves  <palves@redhat.com>
9900
9901         * linux-nat.c (select_event_lwp_callback): Update comment to no
9902         longer mention SIGTRAP.
9903
9904 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9905
9906         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9907         redirection code to ...
9908         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9909         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9910
9911 2015-03-18  Gary Benson <gbenson@redhat.com>
9912
9913         (remote_protocol_features): Remove the "vFile:fstat" feature.
9914         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9915
9916 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9917
9918         PR tdep/18107
9919         * aarch64-linux-tdep.c: Include xml-syscall.h
9920         (aarch64_linux_get_syscall_number): New function.
9921         (aarch64_linux_init_abi): Call
9922         set_gdbarch_get_syscall_number.
9923         * syscalls/aarch64-linux.xml: New file.
9924
9925 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9926
9927         * ser-base.h (ser_base_setstopbits): Change second argument name
9928         from "rate" to "num".
9929
9930 2015-03-17  Gary Benson <gbenson@redhat.com>
9931             Luke Allardyce <lukeallardyce@gmail.com>
9932
9933         PR gdb/18131
9934         * common/common-remote-fileio.h (sys/stat.h): New include.
9935         (stuct stat): Remove forward declaration.
9936
9937 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9938
9939         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9940         before writing core register notes.
9941
9942 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9943             Pedro Alves  <palves@redhat.com>
9944
9945         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9946         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9947         (tgoto): Wrap with extern "C".
9948
9949 2015-03-16  Pedro Alves  <palves@redhat.com>
9950             Yuanhui Zhang  <asmwarrior@gmail.com>
9951
9952         * stub-termcap.c (tputs): Change prototype.
9953
9954 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9955             Pedro Alves  <palves@redhat.com>
9956
9957         * windows-nat.c (struct thread_info_struct): Rename to ...
9958         (struct windows_thread_info_struct): ... this.
9959         (thread_info): Rename to ...
9960         (windows_thread_info): ... this.
9961         All users updated.
9962
9963 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9964             Pedro Alves  <palves@redhat.com>
9965
9966         * NEWS: New Removed targets and native configurations.
9967
9968 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9969
9970         Remove HPUX.
9971         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9972         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9973         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9974         ia64-hpux-tdep.h, solib-ia64-hpux.h.
9975         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9976         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9977         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9978         hppa-hpux-tdep.c.
9979         * config/ia64/hpux.mh: Remove file.
9980         * config/pa/hpux.mh: Remove file.
9981         * configure: Rebuilt.
9982         * configure.ac (dlgetmodinfo, somread.o): Remove.
9983         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9984         (ia64-*-hpux*): Remove its float format exception.
9985         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9986         * hppa-hpux-nat.c: Remove file.
9987         * hppa-hpux-tdep.c: Remove file.
9988         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9989         Move them here from hppa-tdep.h
9990         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9991         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9992         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9993         Move them to hppa-tdep.c.
9994         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9995         declarations.
9996         * ia64-hpux-nat.c: Remove file.
9997         * ia64-hpux-tdep.c: Remove file.
9998         * ia64-hpux-tdep.h: Remove file.
9999         * inf-ttrace.c: Remove file.
10000         * inf-ttrace.h: Remove file.
10001         * solib-ia64-hpux.c: Remove file.
10002         * solib-ia64-hpux.h: Remove file.
10003         * solib-pa64.c: Remove file.
10004         * solib-pa64.h: Remove file.
10005         * solib-som.c: Remove file.
10006         * solib-som.h: Remove file.
10007         * somread.c: Remove file.
10008
10009 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10010
10011         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10012         * config.in: Regenerate.
10013         * configure: Regenerate.
10014         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10015         define.
10016         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10017         enumerate memory regions if present.
10018
10019 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10020
10021         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10022         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10023         expressions.
10024         (i386fbsd_sigtramp_p): Likewise.
10025
10026 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10027
10028         * MAINTAINERS (Write After Approval): Add John Baldwin.
10029
10030 2015-03-12  Gary Benson <gbenson@redhat.com>
10031
10032         * solib.c (_initialize_solib): Make "set/show sysroot" use
10033         add_setshow_optional_filename_cmd so it can be restored to
10034         empty after being set.
10035
10036 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10037
10038         * Makefile.in (SFILES): New source break-catch-syscall.c.
10039         (COMMON_OBS): New object break-catch-syscall.o.
10040         * break-catch-syscall.c: New file.
10041         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10042         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10043         (struct syscall_catchpoint): Likewise.
10044         (dtor_catch_syscall): Likewise.
10045         (catch_syscall_inferior_data): Likewise.
10046         (struct catch_syscall_inferior_data): Likewise.
10047         (get_catch_syscall_inferior_data): Likewise.
10048         (catch_syscall_inferior_data_cleanup): Likewise.
10049         (insert_catch_syscall): Likewise.
10050         (remove_catch_syscall): Likewise.
10051         (breakpoint_hit_catch_syscall): Likewise.
10052         (print_it_catch_syscall): Likewise.
10053         (print_one_catch_syscall): Likewise.
10054         (print_mention_catch_syscall): Likewise.
10055         (print_recreate_catch_syscall): Likewise.
10056         (catch_syscall_breakpoint_ops): Likewise.
10057         (syscall_catchpoint_p): Likewise.
10058         (create_syscall_event_catchpoint): Likewise.
10059         (catch_syscall_split_args): Likewise.
10060         (catch_syscall_command_1): Likewise.
10061         (is_syscall_catchpoint_enabled): Likewise.
10062         (catch_syscall_enabled): Likewise.
10063         (catching_syscall_number): Likewise.
10064         (catch_syscall_completer): Likewise.
10065         (clear_syscall_counts): Likewise.
10066         (initialize_breakpoint_ops): Move initialization of syscall
10067         catchpoints to break-catch-syscall.c.
10068         (_initialize_breakpoint): Move code related to syscall catchpoints
10069         to break-catch-syscall.c.
10070
10071 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10072
10073         * breakpoint.c (breakpoint_find_if): New function.
10074         * breakpoint.h (breakpoint_find_if): New prototype.
10075
10076 2015-03-11  Gary Benson <gbenson@redhat.com>
10077
10078         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10079         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10080         (remote_fileio_to_host_ulong): Likewise.
10081         (remote_fileio_to_host_mode): Likewise.
10082         (remote_fileio_to_host_time): Likewise.
10083         (remote_fileio_to_host_stat): Likewise.
10084         * remote.c (PACKET_vFile_fstat): New enum value.
10085         (remote_protocol_features): Register the "vFile:fstat" feature.
10086         (remote_hostio_fstat): New function.
10087         (remote_bfd_iovec_stat): Use the above.
10088         (_initialize_remote): Register new "set/show remote
10089         hostio-fstat-packet" command.
10090         * symfile.c (separate_debug_file_exists): Update comment.
10091         * NEWS: Announce new vFile:fstat packet.
10092
10093 2015-03-11  Gary Benson <gbenson@redhat.com>
10094
10095         * common/common-remote-fileio.h: New file.
10096         * common/common-remote-fileio.c: Likewise.
10097         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10098         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10099         (COMMON_OBS): Add common-remote-fileio.o.
10100         (common-remote-fileio.o): New rule.
10101         * remote-fileio.h (common-remote-fileio.h): New include.
10102         * remote-fileio.c (gdb/fileio.h): Do not include.
10103         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10104         (remote_fileio_to_fio_uint): Likewise.
10105         (remote_fileio_to_fio_time): Likewise.
10106         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10107         (remote_fileio_to_fio_mode): Likewise.
10108         (remote_fileio_to_fio_ulong): Likewise.
10109         (remote_fileio_to_fio_stat): Likewise.
10110
10111 2015-03-11  Andy Wingo  <wingo@igalia.com>
10112
10113         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10114         we were checking the cached type, not the cached dynamic type.
10115
10116 2015-03-11  Andy Wingo  <wingo@igalia.com>
10117
10118         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10119         other strings, as these are on the GC'd heap, and will be
10120         collected along with the smob.
10121
10122 2015-03-11  Andy Wingo  <wingo@igalia.com>
10123
10124         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10125         (objfile_functions): Bind gdbscm_objfile_progspace to
10126         objfile-progspace.
10127         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10128
10129 2015-03-11  Andy Wingo  <wingo@igalia.com>
10130
10131         * guile/guile.c (_initialize_guile): Disable automatic
10132         finalization, if Guile offers us that possibility.
10133         * guile/guile.c (call_initialize_gdb_module):
10134         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10135         finalizers in appropriate places.
10136         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10137         scm_set_automatic_finalization_enabled.
10138         * configure: Regenerated.
10139
10140 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10141
10142         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10143         SAL, if possible.
10144
10145 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10146
10147         * s390-linux-nat.c (struct arch_lwp_info): New.
10148         (s390_fix_watch_points): Rename to...
10149         (s390_prepare_to_resume): ...this.  Skip the PER info update
10150         unless the watch points have changed.
10151         (s390_refresh_per_info, s390_new_thread): New functions.
10152         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10153         s390_fix_watch_points.
10154         (s390_remove_watchpoint): Likewise.
10155         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10156         Register s390_prepare_to_resume.
10157
10158 2015-03-09  Pedro Alves  <palves@redhat.com>
10159
10160         Revert:
10161         2015-03-07  Pedro Alves  <palves@redhat.com>
10162         * common/gdb_socket.h: New file.
10163         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10164         sys/socket.h.
10165         (net_open): Use union gdb_sockaddr_u.
10166
10167 2015-03-07  Pedro Alves  <palves@redhat.com>
10168
10169         * configure.ac (build_warnings): Move -Wmissing-prototypes
10170         -Wdeclaration-after-statement -Wmissing-parameter-type
10171         -Wold-style-declaration -Wold-style-definition to the C-specific
10172         set.
10173         * configure: Regenerate.
10174
10175 2015-03-07  Pedro Alves  <palves@redhat.com>
10176
10177         * common/gdb_socket.h: New file.
10178         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10179         sys/socket.h.
10180         (net_open): Use union gdb_sockaddr_u.
10181
10182 2015-03-07  Pedro Alves  <palves@redhat.com>
10183
10184         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10185         (exceptions_state_mc_action_iter)
10186         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10187         Don't define.
10188         [__cplusplus] (try_scope_depth): New global.
10189         [__cplusplus] (exception_try_scope_entry)
10190         (exception_try_scope_exit, gdb_exception_sliced_copy)
10191         (exception_rethrow): New functions.
10192         (throw_exception): In C++ mode, throw
10193         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10194         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10195         (throw_it): In C++ mode, use try_scope_depth.
10196         * common/common-exceptions.h [!__cplusplus]
10197         (exceptions_state_mc_action_iter)
10198         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10199         Don't declare.
10200         [__cplusplus] (exception_try_scope_entry)
10201         (exception_try_scope_exit, exception_rethrow): Declare.
10202         [__cplusplus] (struct exception_try_scope): New struct.
10203         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10204         C++ exceptions.
10205         (struct gdb_exception_RETURN_MASK_ALL)
10206         (struct gdb_exception_RETURN_MASK_ERROR)
10207         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10208
10209 2015-03-07  Pedro Alves  <palves@redhat.com>
10210
10211         * main.c (handle_command_errors): Remove volatile qualifier from
10212         parameter.
10213
10214 2015-03-07  Pedro Alves  <palves@redhat.com>
10215
10216         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10217         TRY and CATCH.
10218         * gdbtypes.c (safe_parse_type): Remove empty line.
10219         (types_deeply_equal):
10220         * guile/scm-frame.c (gdbscm_frame_name):
10221         * linux-thread-db.c (find_new_threads_once):
10222         * python/py-breakpoint.c (bppy_get_commands):
10223         * record-btrace.c (record_btrace_insert_breakpoint)
10224         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10225         (record_btrace_start_replaying): Adjust to avoid code between TRY
10226         and CATCH.
10227
10228 2015-03-07  Pedro Alves  <palves@redhat.com>
10229
10230         * common/common-exceptions.c (struct catcher) <exception>: No
10231         longer a pointer to volatile exception.  Now an exception value.
10232         <mask>: Delete field.
10233         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10234         (exceptions_state_mc): No longer pop the catcher here.
10235         (exceptions_state_mc_catch): New function.
10236         (throw_exception): Adjust.
10237         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10238         all parameters.
10239         (exceptions_state_mc_catch): Declare.
10240         (TRY_CATCH): Rename to ...
10241         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10242         (CATCH, END_CATCH): New.
10243         All callers adjusted.
10244
10245 2015-03-07  Tom Tromey  <tromey@redhat.com>
10246
10247         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10248
10249 2015-03-07  Pedro Alves  <palves@redhat.com>
10250
10251         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10252         (amd64_epilogue_frame_cache): Normal exception handling code.
10253         * break-catch-throw.c (check_status_exception_catchpoint)
10254         (re_set_exception_catchpoint): Ditto.
10255         * cli/cli-interp.c (safe_execute_command):
10256         * cli/cli-script.c (script_from_file): Ditto.
10257         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10258         Ditto.
10259         * compile/compile-object-run.c (compile_object_run): Ditto.
10260         * cp-abi.c (baseclass_offset): Ditto.
10261         * cp-valprint.c (cp_print_value): Ditto.
10262         * exceptions.c (catch_exceptions_with_msg):
10263         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10264         * frame.c (get_frame_address_in_block_if_available): Ditto.
10265         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10266         (i386_sigtramp_frame_cache): Ditto.
10267         * infcmd.c (post_create_inferior): Ditto.
10268         * linespec.c (parse_linespec, find_linespec_symbols):
10269         * p-valprint.c (pascal_object_print_value): Ditto.
10270         * parse.c (parse_expression_for_completion): Ditto.
10271         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10272         * remote.c (remote_get_noisy_reply): Ditto.
10273         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10274         * solib-svr4.c (solib_svr4_r_map): Ditto.
10275
10276 2015-03-06  Gary Benson  <gbenson@redhat.com>
10277
10278         * common/common-utils.h (startswith): New inline function.
10279         All places where this logic was used updated to use the above.
10280
10281 2015-03-05  Pedro Alves  <palves@redhat.com>
10282
10283         PR gdb/18002
10284         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10285         after reading the breakpoint's shadow memory.
10286
10287 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10288
10289         * hppabsd-nat.c: Remove file.
10290         * hppaobsd-nat.c: New file.
10291         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10292         hppaobsd-nat.c.
10293         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10294         hppaobsd-nat.o.
10295
10296 2015-03-04  Pedro Alves  <palves@redhat.com>
10297
10298         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10299         (target_decr_pc_after_break): Delete declaration.
10300         * target.c (default_target_decr_pc_after_break)
10301         (target_decr_pc_after_break): Delete.
10302         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10303         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10304         * linux-thread-db.c (check_event): Likewise.
10305         * infrun.c (adjust_pc_after_break): Likewise.
10306         * darwin-nat.c (cancel_breakpoint): Likewise.
10307         * aix-thread.c (aix_thread_wait): Likewise.
10308         * target-delegates.c: Regenerate.
10309
10310 2015-03-04  Pedro Alves  <palves@redhat.com>
10311
10312         * linux-nat.c (save_sigtrap): Check for breakpoints before
10313         checking watchpoints.
10314         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10315         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10316         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10317         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10318         (linux_nat_stopped_by_sw_breakpoint)
10319         (linux_nat_supports_stopped_by_sw_breakpoint)
10320         (linux_nat_stopped_by_hw_breakpoint)
10321         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10322         (linux_nat_wait_1): Don't re-increment the PC if relying on
10323         SIGTRAP's siginfo->si_code.
10324         (linux_nat_add_target): Install new target methods.
10325         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10326         offset if the target already adjusted the PC.
10327         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10328         (GDB_ARCH_TRAP_BRKPT): New.
10329         (TRAP_HWBKPT): Define if not already defined.
10330
10331 2015-03-04  Pedro Alves  <palves@redhat.com>
10332
10333         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10334         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10335         Delete field.
10336         <stop_reason>: New field.
10337         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10338         (packet_set_cmd_state): New function.
10339         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10340         features.
10341         (remote_query_supported): If not disabled with the corresponding
10342         "set remote foo-packet" command, report support for the swbreak
10343         and hwbreak features.
10344         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10345         field.
10346         <stop_reason>: New field.
10347         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10348         (remote_wait_as): Adjust.
10349         (remote_stopped_by_sw_breakpoint)
10350         (remote_supports_stopped_by_sw_breakpoint)
10351         (remote_stopped_by_hw_breakpoint)
10352         (remote_supports_stopped_by_hw_breakpoint): New functions.
10353         (remote_stopped_by_watchpoint): New function.
10354         (init_remote_ops): Install them.
10355         (_initialize_remote): Register new "set/show remote
10356         swbreak-feature-packet" and "set/show remote
10357         swbreak-feature-packet" commands.
10358
10359 2015-03-04  Pedro Alves  <palves@redhat.com>
10360
10361         * btrace.h: Include target/waitstatus.h.
10362         (struct btrace_thread_info) <stop_reason>: New field.
10363         * record-btrace.c (record_btrace_step_thread): Use
10364         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10365         (record_btrace_decr_pc_after_break): Delete.
10366         (record_btrace_stopped_by_sw_breakpoint)
10367         (record_btrace_supports_stopped_by_sw_breakpoint)
10368         (record_btrace_stopped_by_hw_breakpoint)
10369         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10370         (init_record_btrace_ops): Install them.
10371         * record-full.c (record_full_hw_watchpoint): Delete and replace
10372         with ...
10373         (record_full_stop_reason): ... this throughout.
10374         (record_full_exec_insn): Adjust.
10375         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10376         (record_full_wait_1): Adjust.  Use
10377         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10378         (record_full_stopped_by_watchpoint): Adjust.
10379         (record_full_stopped_by_sw_breakpoint)
10380         (record_full_supports_stopped_by_sw_breakpoint)
10381         (record_full_supports_stopped_by_sw_breakpoint)
10382         (record_full_stopped_by_hw_breakpoint)
10383         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10384         (init_record_full_ops, init_record_full_core_ops): Install them.
10385         * record.c (record_check_stopped_by_breakpoint): New function.
10386         * record.h: Include target/waitstatus.h.
10387         (record_check_stopped_by_breakpoint): New declaration.
10388
10389 2015-03-04  Pedro Alves  <palves@redhat.com>
10390
10391         enum lwp_stop_reason -> enum target_stop_reason
10392         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10393         (linux_nat_stopped_by_watchpoint, status_callback)
10394         (linux_nat_wait_1): Adjust.
10395         * linux-nat.h (enum lwp_stop_reason): Delete.
10396         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10397         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10398         * target/waitstatus.h (enum target_stop_reason): New.
10399
10400 2015-03-04  Pedro Alves  <palves@redhat.com>
10401
10402         * breakpoint.c (need_moribund_for_location_type): New function.
10403         (bpstat_stop_status): Don't skipping checking moribund locations
10404         of breakpoint types which the target tell caused a stop.
10405         (program_breakpoint_here_p): New function, factored out from ...
10406         (bp_loc_is_permanent): ... this.
10407         (update_global_location_list): Don't create a moribund location if
10408         the target supports reporting stops of the type of the removed
10409         breakpoint.
10410         * breakpoint.h (program_breakpoint_here_p): New declaration.
10411         * infrun.c (adjust_pc_after_break): Return early if the target has
10412         already adjusted the PC.  Add comments.
10413         (handle_signal_stop): If nothing explains a signal, and the target
10414         tells us the stop was caused by a software breakpoint, check if
10415         there's a breakpoint instruction in the memory.  If so, adjust the
10416         PC before presenting the stop to the user.  Otherwise, ignore the
10417         trap.  If nothing explains a signal, and the target tells us the
10418         stop was caused by a hardware breakpoint, ignore the trap.
10419         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10420         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10421         to_supports_stopped_by_hw_breakpoint>: New fields.
10422         (target_stopped_by_sw_breakpoint)
10423         (target_supports_stopped_by_sw_breakpoint)
10424         (target_stopped_by_hw_breakpoint)
10425         (target_supports_stopped_by_hw_breakpoint): Define.
10426         * target-delegates.c: Regenerate.
10427
10428 2015-03-04  Pedro Alves  <palves@redhat.com>
10429
10430         * infrun.c (follow_fork_inferior): Use the whole of the
10431         inferior_ptid and pending_follow.related_pid ptids instead of
10432         building ptids from the process components.  Adjust verbose output
10433         to use target_pid_to_str.
10434         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10435         inferior_ptid and pending_follow.related_pid ptids instead of
10436         building ptids from the process components.
10437
10438 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10439
10440         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10441         (inf_ptrace_insert_fork_catchpoint): New function.
10442         (inf_ptrace_remove_fork_catchpoint): New function.
10443         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10444
10445 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10446
10447         * s390-linux-tdep.c (s390_register_name): Return empty string
10448         instead of NULL for registers that shouldn't be visible.
10449
10450 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10451
10452         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10453         XML file for 64-bit targets.
10454
10455 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10456
10457         * target.h (find_default_create_inferior): Remove declaration.
10458         (find_default_attach): Likewise.
10459
10460 2015-03-03  Pedro Alves  <palves@redhat.com>
10461
10462         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10463         Use ptid_get_pid to get the overall process id when resuming all
10464         threads.
10465
10466 2015-03-03  Pedro Alves  <palves@redhat.com>
10467
10468         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10469         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10470         * inf-ptrace.c (get_ptrace_pid): New function.
10471         (inf_ptrace_resume): Use it.
10472         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10473         to the lower layer.
10474
10475 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10476
10477         * nat/linux-btrace.c: Include sys/utsname.h.
10478         (linux_determine_kernel_ptr_bits): New.
10479         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10480         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10481         ptr_bits.
10482
10483 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10484
10485         * btrace.c (ftrace_update_function): Treat return as tailcall for
10486         "_dl_runtime_resolve".
10487
10488 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10489
10490         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10491         * btrace.c (ftrace_debug): Do not print the line range.
10492         (ftrace_skip_file, ftrace_update_lines): Remove.
10493         (ftrace_new_function): Remove lbegin and lend initialization.
10494         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10495         * record-btrace.c (btrace_compute_src_line_range): New.
10496         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10497
10498 2015-03-02  Pedro Alves  <palves@redhat.com>
10499
10500         * infrun.c (follow_exec): Delete all threads of the process except
10501         the event thread.  Extended comments.
10502
10503 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10504
10505         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10506
10507 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10508
10509         * utils.h: Remove <stdbool.h> #include.
10510         (producer_is_gcc): Change return type to "int".
10511         * utils.c (producer_is_gcc): Change return type to int.
10512         Return 1 instead of true, and 0 instead of false.
10513         Adjust function documentation accordingly.
10514
10515 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10516
10517         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10518         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10519         present.
10520         (s390_linux_store_inferior_registers): Likewise.
10521         (s390_get_hwcap): Remove function.  Embed its logic...
10522         (s390_read_description): ...here.  Yield a target description with
10523         vector registers if applicable.
10524         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10525         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10526         "features/s390x-tevx-linux64.c".
10527         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10528         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10529         for "GNU/Linux-specific registers".
10530         (s390_dwarf_reg_r0l): New enum value.
10531         (s390_dwarf_reg_to_regnum): Support vector registers.
10532         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10533         of GPR lower halves.
10534         (regnum_is_vxr_full): New function.
10535         (s390_register_name): New function.
10536         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10537         f0-f15 and v0l-v15l.
10538         (s390_pseudo_register_type): Likewise.
10539         (s390_pseudo_register_read): Likewise.
10540         (s390_pseudo_register_write): Likewise.
10541         (s390_value_from_register): Account for the fact that values are
10542         placed left-justified in vector registers.
10543         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10544         the vector reggroup and omit them from the general reggroup.
10545         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10546         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10547         (s390_iterate_over_regset_sections): Add iterations for the two
10548         new vector regsets.
10549         (s390_core_read_description): Yield a target description with
10550         vector registers if applicable.
10551         (s390_gdbarch_init): Handle target descriptions with vector
10552         registers.  Add "register_name" gdbarch method.
10553         (_initialize_s390_tdep): Call new tdesc initialization functions.
10554         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10555         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10556         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10557         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10558         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10559         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10560         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10561         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10562         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10563         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10564         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10565         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10566         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10567         (S390_NUM_REGS): Adjust value.
10568         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10569         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10570         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10571         * NEWS: Announce S/390 vector register support.
10572
10573 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10574
10575         * features/s390-tevx-linux64.xml: New file.
10576         * features/s390-vx-linux64.xml: New file.
10577         * features/s390-vx.xml: New file.
10578         * features/s390x-tevx-linux64.xml: New file.
10579         * features/s390x-vx-linux64.xml: New file.
10580         * features/Makefile (WHICH): Add s390-vx-linux64,
10581         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10582         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10583         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10584         macros.
10585         * features/s390-tevx-linux64.c: New generated file.
10586         * features/s390-vx-linux64.c: Likewise.
10587         * features/s390x-tevx-linux64.c: Likewise.
10588         * features/s390x-vx-linux64.c: Likewise.
10589         * regformats/s390-tevx-linux64.dat: Likewise.
10590         * regformats/s390-vx-linux64.dat: Likewise.
10591         * regformats/s390x-tevx-linux64.dat: Likewise.
10592         * regformats/s390x-vx-linux64.dat: Likewise.
10593
10594 2015-02-28  Doug Evans  <xdje42@gmail.com>
10595
10596         * symtab.h (struct symtab) <next>: Fix comment.
10597
10598 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10599
10600         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10601         python_GdbMethods.
10602
10603 2015-02-27  Pedro Alves  <palves@redhat.com>
10604
10605         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10606
10607 2015-02-27  Pedro Alves  <palves@redhat.com>
10608
10609         * common/common-exceptions.h (exception_none): Declare.
10610         * common/common-exceptions.c (exception_none): Moved from
10611         exceptions.c.
10612         (exceptions_state_mc_init): Use exception_none.
10613         * exceptions.c (exception_none): Move to
10614         common/common-exceptions.c.
10615         * exceptions.h (exception_none): Move to
10616         common/common-exceptions.h.
10617
10618 2015-02-27  Pedro Alves  <palves@redhat.com>
10619
10620         * main.c (catch_command_errors, catch_command_errors_const):
10621         Remove 'mask' argument.  Adjust.
10622         (captured_main): Adjust callers.
10623
10624 2015-02-27  Pedro Alves  <palves@redhat.com>
10625
10626         * python/python-internal.h: Include "extension-priv.h".
10627
10628 2015-02-27  Pedro Alves  <palves@redhat.com>
10629
10630         * breakpoint.h (enum print_stop_action): Move further up in the
10631         file.
10632
10633 2015-02-27  Pedro Alves  <palves@redhat.com>
10634
10635         * gdbarch.sh: Include regcache.h.
10636         * gdbarch.h: Regenerate.
10637
10638 2015-02-27  Pedro Alves  <palves@redhat.com>
10639
10640         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10641         Remove duplicate const.
10642         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10643         duplicate const.
10644
10645 2015-02-27  Pedro Alves  <palves@redhat.com>
10646
10647         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10648         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10649         * features/feature_to_c.sh: Tag the generated xml_builtin array
10650         with extern const in C++ mode.
10651
10652 2015-02-27  Tom Tromey  <tromey@redhat.com>
10653
10654         * minidebug.c (struct lzma_stream): Rename to ...
10655         (struct gdb_lzma_stream): ... this.
10656         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10657
10658 2015-02-27  Pedro Alves  <palves@redhat.com>
10659
10660         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10661         function.
10662         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10663         (mi_cmd_stack_list_variables): Use it.
10664
10665 2015-02-27  Pedro Alves  <palves@redhat.com>
10666
10667         * x86-linux-nat.c (u_debugreg_offset): New function.
10668         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10669
10670 2015-02-27  Pedro Alves  <palves@redhat.com>
10671
10672         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10673         declaration.
10674         Include break-common.h.
10675
10676 2015-02-27  Tom Tromey  <tromey@redhat.com>
10677             Pedro Alves <palves@redhat.com>
10678
10679         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10680         local used to iterate over enums.
10681         * completer.c (signal_completer): Likewise.
10682         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10683         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10684         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10685         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10686         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10687         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10688         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10689
10690 2015-02-27  Pedro Alves  <palves@redhat.com>
10691
10692         * target.h: Include "infrun.h".
10693
10694 2015-02-27  Pedro Alves  <palves@redhat.com>
10695
10696         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10697
10698 2015-02-27  Pedro Alves  <palves@redhat.com>
10699
10700         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10701         (IPA_SYM): Use it.
10702         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10703
10704 2015-02-27  Pedro Alves  <palves@redhat.com>
10705
10706         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10707         cli_mld_erase_entire_line, and make it extern "C".
10708         * common/common-defs.h (EXTERN_C): New.
10709         * completer.c (_rl_completion_prefix_display_length)
10710         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10711         out of gdb_display_match_list_1.
10712         (_rl_qsort_string_compare): Move declaration out of
10713         gdb_display_match_list_1, and make it extern "C".
10714         * defs.h (re_comp): Use EXTERN_C.
10715         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10716         and make it extern "C".
10717         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10718         and make it extern "C".
10719         (main): Move declaration out of maintenance_set_profile_cmd.
10720         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10721         EXTERN_C.
10722
10723 2015-02-27  Pedro Alves  <palves@redhat.com>
10724
10725         * python/python.c (GdbMethods): Rename to ...
10726         (python_GdbMethods): ... this and make extern.
10727         (GdbModuleDef): Rename to ...
10728         (python_GdbModuleDef): ... this and make extern.
10729
10730 2015-02-27  Pedro Alves  <palves@redhat.com>
10731
10732         * record-btrace.c (set_record_btrace_cmdlist)
10733         (show_record_btrace_cmdlist): Remove redefinitions.
10734
10735 2015-02-27  Tom Tromey  <tromey@redhat.com>
10736             Pedro Alves  <palves@redhat.com>
10737
10738         * dwarf2-frame.c (enum cfa_how_kind, struct
10739         dwarf2_frame_state_reg_info): Move out of struct
10740         dwarf2_frame_state.
10741         * dwarf2read.c (struct tu_stats): Move out of struct
10742         dwarf2_per_objfile.
10743         (struct file_entry): Move out of struct line_header.
10744         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10745         typedef_field_list): Move out of struct field_info.
10746         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10747         Move out of struct dynamic_prop.
10748         (union type_owner, union field_location, struct field, struct
10749         range_bounds, union type_specific): Move out of struct main_type.
10750         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10751         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10752         (struct call_site_target, union call_site_parameter_u, struct
10753         call_site_parameter): Move out of struct call_site.
10754         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10755         m32c_prologue.
10756         (enum srcdest_kind): Move out of struct srcdest.
10757         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10758         * prologue-value.h (enum prologue_value_kind): Move out of struct
10759         prologue_value.
10760         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10761         gdbarch_tdep.
10762         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10763         out of struct field_info.
10764         * symfile.h (struct other_sections): Move out of struct
10765         section_addr_info.
10766         * symtab.c (struct symbol_cache_slot): Move out struct
10767         block_symbol_cache.
10768         * target-descriptions.c (enum tdesc_type_kind): Move out of
10769         typedef struct tdesc_type.
10770         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10771         struct tui_line_or_address.
10772         * value.c (enum internalvar_kind, union internalvar_data): Move
10773         out of struct internalvar.
10774         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10775         gdbarch_tdep.
10776
10777 2015-02-27  Tom Tromey  <tromey@redhat.com>
10778             Pedro Alves  <palves@redhat.com>
10779
10780         Rename symbols whose names are reserved C++ keywords throughout.
10781
10782 2015-02-27  Pedro Alves  <palves@redhat.com>
10783
10784         * Makefile.in (COMPILER): New, get it from autoconf.
10785         (COMPILE.pre, CC_LD): Use COMPILER.
10786         (CXX): Get from autoconf instead.
10787         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10788         * acinclude.m4: Include build-with-cxx.m4.
10789         * build-with-cxx.m4: New file.
10790         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10791         Disable -Werror by default if building in C++ mode.
10792         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10793         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10794         Run supported-warning-flags tests with the C++ compiler.
10795         Save/restore CXXFLAGS too.
10796         * configure: Regenerate.
10797
10798 2015-02-27  Pedro Alves  <palves@redhat.com>
10799
10800         * libiberty.m4: New file.
10801         * acinclude.m4: Include libiberty.m4.
10802         * configure.ac: Call libiberty_INIT.
10803         * config.in, configure: Regenerate.
10804
10805 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10806
10807         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10808         31-bit targets, but 64-bit targets as well.
10809         (s390_gnu_triplet_regexp): New function.
10810         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10811         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10812         method.
10813
10814 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10815
10816         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10817         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10818         from CONTEXT_DEBUGGER.
10819
10820 2015-02-26  Doug Evans  <dje@google.com>
10821
10822         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10823         CHECK_TYPEDEF.
10824         (set_type_vptr_fieldno): Ditto.
10825         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10826         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10827
10828 2015-02-26  Pedro Alves  <palves@redhat.com>
10829
10830         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10831         * complaints.c (vcomplaint): Pass argument FMT directly to
10832         printf-like functions instead of complaint->fmt.
10833         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10834         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10835         * compile/compile-loc2c.c (pushf, unary, binary): Add
10836         ATTRIBUTE_PRINTF.
10837         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10838         to pushf.
10839         (BINARY): Pass string literal as format string to 'binary'.
10840         * compile/compile-object-load.c (link_callbacks_einfo): Add
10841         ATTRIBUTE_PRINTF.
10842         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10843
10844 2015-02-26  Pedro Alves  <palves@redhat.com>
10845
10846         * windows-termcap.c: Rename to ...
10847         * stub-termcap.c: ... this.  Adjust header line.
10848         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10849         windows-termcap.c.
10850         * configure: Regenerate.
10851         * configure.ac: Refer to stub-termcap.o instead of
10852         windows-termcap.o.
10853         * gdb_curses.h: Mention stub-termcap.c instead of
10854         windows-termcap.c.
10855
10856 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10857
10858         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10859         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10860
10861 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10862
10863         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10864
10865 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10866
10867         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10868         bfd_canonicalize_symtab.
10869
10870 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10871
10872         * amd64fbsd-nat.c: Include sys/user.h.
10873         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10874         instead of KERN_PS_STRINGS to locate the signal trampoline.
10875         * i386fbsd-nat.c: Include sys/user.h.
10876         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10877         instead of KERN_PS_STRINGS to locate the signal trampoline.
10878         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10879         (amd64fbsd_sigtramp_p): New.
10880         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10881         longer set default values.
10882         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10883         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10884         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10885         (i386fbsd_freebsd4_sigtramp_start)
10886         (i386fbsd_freebsd4_sigtramp_middle)
10887         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10888         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10889         (i386fbsd_sigtramp_p): New.
10890         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10891         longer set default values.
10892         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10893
10894 2015-02-25  John Baldwin  <jhb@freebsd.org>
10895
10896         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10897         get_frame_register instead of frame_unwind_register_unsigned.
10898
10899 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10900
10901         PR build/18033
10902         * compile/compile-c-support.c (c_compute_program): Change // comment.
10903         * compile/compile-object-load.c (setup_sections): Change // comment.
10904
10905 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10906
10907         PR build/18033:
10908         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10909
10910 2015-02-23  Pedro Alves  <palves@redhat.com>
10911
10912         * remote.c (skip_to_semicolon): New function.
10913         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10914         special case the stop reasons that look like hex numbers
10915         upfront.  Instead handle real register numbers after matching
10916         all the known stop reasons.
10917
10918 2015-02-21  Doug Evans  <dje@google.com>
10919
10920         PR c++/17976, symtab/17821
10921         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10922         is_in_anonymous.  All callers updated.
10923         (find_symbol_in_baseclass): Ditto.
10924         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10925         for symbols in an anonymous namespace.
10926         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10927         DW_AT_name directly.
10928         (dwarf2_name): Convert missing namespace name to
10929         CP_ANONYMOUS_NAMESPACE_STR.
10930
10931 2015-02-20  Pedro Alves  <palves@redhat.com>
10932
10933         * linux-nat.c (linux_handle_extended_wait): Call
10934         thread_db_notice_clone whenever a new clone LWP is detected.
10935         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10936         functions.
10937         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10938         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10939         (linux_unstop_all_lwps): Declare.
10940         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10941         (thread_get_info_callback): Delete.
10942         (thread_from_lwp): Use td_thr_get_info and record_thread.
10943         (thread_db_attach_lwp): Delete.
10944         (thread_db_notice_clone): New function.
10945         (try_thread_db_load_1): If /proc is mounted and shows the
10946         process'es task list, walk over all LWPs and call thread_from_lwp
10947         instead of relying on td_ta_thr_iter.
10948         (attach_thread): Don't call check_thread_signals here.  Split the
10949         tail part of the function (which adds the thread to the core GDB
10950         thread list) to ...
10951         (record_thread): ... this function.  Call check_thread_signals
10952         here.
10953         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10954         call thread_from_lwp.
10955         (thread_db_update_thread_list): Rename to ...
10956         (thread_db_update_thread_list_org): ... this.
10957         (thread_db_update_thread_list): New function.
10958         (thread_db_find_thread_from_tid): Delete.
10959         (thread_db_get_ada_task_ptid): Simplify.
10960         * nat/linux-procfs.c: Include <sys/stat.h>.
10961         (linux_proc_task_list_dir_exists): New function.
10962         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10963
10964 2015-02-20  Pedro Alves  <palves@redhat.com>
10965
10966         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10967         main LWP.  Handle the case of waitpid returning 0 if we're already
10968         attached to the LWP.  Don't set the LWP's last_resume_kind to
10969         resume_stop if we already knew about the LWP.
10970         (linux_nat_filter_event): Add debug logs.
10971
10972 2015-02-20  Pedro Alves  <palves@redhat.com>
10973
10974         * target.h (forward_target_decr_pc_after_break): Delete
10975         declaration.
10976
10977 2015-02-20  Pedro Alves  <palves@redhat.com>
10978
10979         PR threads/18006
10980         * linux-thread-db.c (thread_get_info_callback): Return early if
10981         the thread's lwp id is -1.
10982
10983 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
10984
10985         GDB 7.9 released.
10986
10987 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
10988
10989         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10990         (dtrace_get_probes) Change type of variable 'dof'.
10991
10992 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10993
10994         PR breakpoints/16812
10995         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10996         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10997         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10998
10999 2015-02-19  David Taylor  <dtaylor@emc.com>
11000
11001         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11002
11003 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11004
11005         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11006         function.
11007         (tui_putc): Don't call tui_handle_resize_during_io.
11008         (tui_getc): Likewise.
11009         (tui_mld_getc): Likewise.
11010         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11011         (tui_sigwinch_token): New static variable.
11012         (tui_initialize_win): Adjust documentation.  Set
11013         tui_sigwinch_token.
11014         (tui_async_resize_screen): New asynchronous callback.
11015         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11016         invoke tui_async_resize_screen.
11017
11018 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11019
11020         * configure: Regenerated.
11021         * configure.ac: Use GDB_AC_TRANSFORM.
11022         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11023         * acinclude.m4: sinclude transform.m4.
11024         * transform.m4: New file.
11025         (GDB_AC_TRANSFORM): New macro.
11026
11027 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11028
11029         * NEWS: Announce the support for DTrace SDT probes.
11030
11031 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11032
11033         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11034         (amd64_dtrace_parse_probe_argument): New function.
11035         (amd64_dtrace_probe_is_enabled): Likewise.
11036         (amd64_dtrace_enable_probe): Likewise.
11037         (amd64_dtrace_disable_probe): Likewise.
11038         (amd64_linux_init_abi): Register the
11039         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11040         `gdbarch_dtrace_disable_probe' and
11041         `gdbarch_dtrace_probe_is_enabled' hooks.
11042         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11043         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11044         (amd64_dtrace_enable_probe_sequence): Likewise.
11045         (amd64_dtrace_disable_probe_sequence): Likewise.
11046
11047 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11048
11049         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11050         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11051         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11052         handle ELF files.
11053         * Makefile.in (SFILES): dtrace-probe.c added.
11054         * configure: Regenerate.
11055         * dtrace-probe.c: New file.
11056         (SHT_SUNW_dof): New constant.
11057         (dtrace_probe_type): New enum.
11058         (dtrace_probe_arg): New struct.
11059         (dtrace_probe_arg_s): New typedef.
11060         (struct dtrace_probe_enabler): New struct.
11061         (dtrace_probe_enabler_s): New typedef.
11062         (dtrace_probe): New struct.
11063         (dtrace_probe_is_linespec): New function.
11064         (dtrace_dof_sect_type): New enum.
11065         (dtrace_dof_dofh_ident): Likewise.
11066         (dtrace_dof_encoding): Likewise.
11067         (DTRACE_DOF_ENCODE_LSB): Likewise.
11068         (DTRACE_DOF_ENCODE_MSB): Likewise.
11069         (dtrace_dof_hdr): New struct.
11070         (dtrace_dof_sect): Likewise.
11071         (dtrace_dof_provider): Likewise.
11072         (dtrace_dof_probe): Likewise.
11073         (DOF_UINT): New macro.
11074         (DTRACE_DOF_PTR): Likewise.
11075         (DTRACE_DOF_SECT): Likewise.
11076         (dtrace_process_dof_probe): New function.
11077         (dtrace_process_dof): Likewise.
11078         (dtrace_build_arg_exprs): Likewise.
11079         (dtrace_get_arg): Likewise.
11080         (dtrace_get_probes): Likewise.
11081         (dtrace_get_probe_argument_count): Likewise.
11082         (dtrace_can_evaluate_probe_arguments): Likewise.
11083         (dtrace_evaluate_probe_argument): Likewise.
11084         (dtrace_compile_to_ax): Likewise.
11085         (dtrace_probe_destroy): Likewise.
11086         (dtrace_gen_info_probes_table_header): Likewise.
11087         (dtrace_gen_info_probes_table_values): Likewise.
11088         (dtrace_probe_is_enabled): Likewise.
11089         (dtrace_probe_ops): New variable.
11090         (info_probes_dtrace_command): New function.
11091         (_initialize_dtrace_probe): Likewise.
11092         (dtrace_type_name): Likewise.
11093
11094 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11095
11096         * gdbarch.sh (dtrace_parse_probe_argument): New.
11097         (dtrace_probe_is_enabled): Likewise.
11098         (dtrace_enable_probe): Likewise.
11099         (dtrace_disable_probe): Likewise.
11100         * gdbarch.c: Regenerate.
11101         * gdbarch.h: Regenerate.
11102
11103 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11104
11105         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11106         stap_probe_ops for `enable_probe' and `disable_probe'.
11107         * probe.c (enable_probes_command): New function.
11108         (disable_probes_command): Likewise.
11109         (_initialize_probe): Define the cli commands `enable probe' and
11110         `disable probe'.
11111         (parse_probe_linespec): New function.
11112         (info_probes_for_ops): Use parse_probe_linespec.
11113         * probe.h (probe_ops): New hooks `enable_probe' and
11114         `disable_probe'.
11115
11116 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11117
11118         * probe.c (compute_probe_arg): Moved from stap-probe.c
11119         (compile_probe_arg): Likewise.
11120         (probe_funcs): Likewise.
11121         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11122         (compile_probe_arg): Likewise.
11123         (probe_funcs): Likewise.
11124
11125 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11126
11127         * probe.c (print_ui_out_not_applicables): New function.
11128         (exists_probe_with_pops): Likewise.
11129         (info_probes_for_ops): Do not include column headers for probe
11130         types for which no probe has been actually found on any object.
11131         Also invoke `print_ui_out_not_applicables' in order to match the
11132         column rows with the header when probes of several types are
11133         listed.
11134         Print the "Type" column.
11135         * probe.h (probe_ops): Added a new probe operation `type_name'.
11136         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11137         (stap_type_name): New function.
11138
11139 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11140
11141         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11142         (key_is_command_char): Delete.
11143
11144 2015-02-17  Pedro Alves  <palves@redhat.com>
11145
11146         * tui/tui.c (tui_enable): Resize windows before anything
11147         might show a window.
11148
11149 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11150
11151         PR gdb/17984
11152         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11153         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11154         call.
11155         * aarch64-tdep.h (tdesc_aarch64): Declare.
11156
11157 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11158
11159         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11160
11161 2015-02-13  Doug Evans  <dje@google.com>
11162
11163         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11164         anonymous_namespace to is_in_anonymous for consistency with the rest
11165         of the file.
11166         (cp_lookup_bare_symbol): Fix typo in comment.
11167         (cp_search_static_and_baseclasses): Ditto.
11168         (search_symbol_list): Use vertical space in comment better.
11169         (reset_directive_searched): Ditto. Fix typo.
11170         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11171
11172 2015-02-13  Yao Qi  <yao.qi@arm.com>
11173
11174         * MAINTAINERS: Update my email address.
11175
11176 2015-02-12  Doug Evans  <dje@google.com>
11177
11178         * symtab.c (completion_list_add_name): Fix memory leak.
11179
11180 2015-02-12  Doug Evans  <dje@google.com>
11181
11182         * completer.c (complete_line): Remove incorrect comment.
11183
11184 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11185
11186         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11187         (py_print_frame): Use RETURN_MASK_ERROR.
11188
11189 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11190
11191         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11192         function comment.  Wrap all function that can throw in cleanups.
11193         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11194         cleanups.
11195
11196 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11197
11198         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11199         Remove the error label.
11200
11201 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11202
11203         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11204         with goto first, indent the former else codepath left.  Put variable
11205         'elided' to a new inner block.
11206
11207 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11208
11209         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11210
11211 2015-02-11  Pedro Alves  <palves@redhat.com>
11212
11213         * xcoffread.c (within_function): Delete.
11214
11215 2015-02-11  Tom Tromey  <tromey@redhat.com>
11216             Pedro Alves <palves@redhat.com>
11217
11218         * breakpoint.c (base_breakpoint_ops): Delete.
11219         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11220         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11221         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11222         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11223         * python/py-arch.c (arch_object_type): Make extern.
11224         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11225         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11226         * python/py-cmd.c (cmdpy_object_type): Make extern.
11227         * python/py-continueevent.c (continue_event_object_type)
11228         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11229         parameter.  Update all callers.
11230         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11231         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11232         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11233         * python/py-function.c (fnpy_object_type): Make extern.
11234         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11235         * python/py-infevents.c (call_pre_event_object_type)
11236         (inferior_call_post_event_object_type).
11237         (memory_changed_event_object_type): Make extern.
11238         * python/py-infthread.c (thread_object_type): Make extern.
11239         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11240         * python/py-linetable.c (linetable_entry_object_type)
11241         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11242         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11243         (clear_objfiles_event_object_type): Make extern.
11244         * python/py-objfile.c (objfile_object_type): Make extern.
11245         * python/py-param.c (parmpy_object_type): Make extern.
11246         * python/py-progspace.c (pspace_object_type): Make extern.
11247         * python/py-signalevent.c (signal_event_object_type): Make extern.
11248         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11249         * python/py-type.c (type_object_type, field_object_type)
11250         (type_iterator_object_type): Make extern.
11251         * python/python.c (python_extension_script_ops)
11252         (python_extension_ops): Make extern.
11253         * stap-probe.c (stap_probe_ops): Make extern.
11254
11255 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11256
11257         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11258         because the event thread is not the current thread.
11259
11260 2015-02-11  Doug Evans  <xdje42@gmail.com>
11261
11262         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11263         been initialized yet, return NULL.
11264
11265 2015-02-11  Doug Evans  <dje@google.com>
11266
11267         * symfile.h (new_symfile_objfile): Delete.
11268         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11269         All callers updated.
11270
11271 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11272
11273         * tui/tui-io.c (tui_handle_resize_during_io): Call
11274         tui_update_gdb_sizes() after resizing the screen.
11275         * tui/tui.c (tui_enable): Resize the terminal before
11276         calling tui_update_gdb_sizes().
11277
11278 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11279
11280         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11281         line before printing a newline.
11282
11283 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11284
11285         * utils.c (producer_is_gcc): Return true or false.
11286
11287 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11288
11289         * utils.h (producer_is_gcc): Change return type to bool. Add major
11290         argument.
11291         * utils.c (producer_is_gcc): Likewise.
11292         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11293         * dwarf2read.c (check_producer): Likewise.
11294
11295 2015-02-10  Pedro Alves  <palves@redhat.com>
11296
11297         * infrun.c (displaced_step_fixup): Switch to the event thread
11298         before calling gdbarch_displaced_step_fixup.
11299
11300 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11301
11302         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11303
11304 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11305
11306         * ada-varobj.c (ada_name_of_child): Constify parent.
11307         (ada_path_expr_of_child): Same.
11308         (ada_value_of_child): Same.
11309         (ada_type_of_child): Same.
11310         * c-varobj.c (c_is_path_expr_parent): Same.
11311         (c_describe_child): Same.
11312         (c_name_of_child): Same.
11313         (c_value_of_child): Same.
11314         (c_type_of_child): Same.
11315         (cplus_number_of_children): Same.
11316         (cplus_describe_child): Constify var.
11317         (cplus_name_of_child): Constify parent.
11318         (cplus_value_of_child): Same.
11319         (cplus_type_of_child): Same.
11320         * jv-varobj.c (java_name_of_child): Same.
11321         (java_value_of_child): Same.
11322         (java_type_of_child): Same.
11323         * varobj.c (value_of_child): Same.
11324         (varobj_default_is_path_expr_parent): Constify var, parent and return
11325         value.
11326         (varobj_get_path_expr): Constify var, modify path_expr through
11327         mutable_var.
11328         (install_new_value): Constify parent.
11329         (value_of_child): Constify parent.
11330         * varobj.h (struct varobj): Constify parent.
11331         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11332         type_of_child.
11333         (varobj_get_path_expr): Constify var.
11334         (varobj_get_path_expr_parent): Constify var and return value.
11335
11336 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11337
11338         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11339         (arm_prologue_this_id): Move PC and SP limit checks to
11340         arm_prologue_unwind_stop_reason.
11341         (arm_prologue_unwind) <stop_reason> : Set to
11342         arm_prologue_unwind_stop_reason.
11343
11344 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11345
11346         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11347         DW_LANG_Fortran08 as language_fortran.
11348
11349 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11350
11351         PR remote/17946
11352         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11353         of pointer against char.
11354
11355 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11356
11357         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11358         (c_type_print_modifier): Likewise.
11359         * dwarf2read.c (read_tag_atomic_type): New function.
11360         (read_type_die_1): Handle DW_TAG_atomic_type.
11361         * gdbtypes.c (make_atomic_type): New function.
11362         (recursive_dump_type): Handle TYPE_ATOMIC.
11363         * gdbtypes.h (enum type_flag_values): Renumber.
11364         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11365         (TYPE_ATOMIC): New macro.
11366         (make_atomic_type): Declare.
11367
11368 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11369
11370         * btrace.c (ftrace_find_call): Skip gaps.
11371         (ftrace_new_function): Initialize level.
11372         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11373         (ftrace_new_switch): Update
11374         level computation.
11375         (ftrace_new_gap): New.
11376         (ftrace_update_function): Create new function after gap.
11377         (btrace_compute_ftrace_bts): Create gap on error.
11378         (btrace_stitch_bts): Update parameters.  Clear trace if it
11379         becomes empty.
11380         (btrace_stitch_trace): Update parameters.  Update callers.
11381         (btrace_clear): Reset the number of gaps.
11382         (btrace_insn_get): Return NULL if the iterator points to a gap.
11383         (btrace_insn_number): Return zero if the iterator points to a gap.
11384         (btrace_insn_end): Allow gaps at the end.
11385         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11386         (btrace_find_insn_by_number): Assert that the found iterator does
11387         not point to a gap.
11388         (btrace_call_next, btrace_call_prev): Assert that the last function
11389         is not a gap.
11390         * btrace.h (btrace_bts_error): New.
11391         (btrace_function): Update comment.
11392         (btrace_function) <insn, insn_offset, number>: Update comment.
11393         (btrace_function) <errcode>: New.
11394         (btrace_thread_info) <ngaps>: New.
11395         (btrace_thread_info) <replay>: Update comment.
11396         (btrace_insn_get): Update comment.
11397         * record-btrace.c (btrace_ui_out_decode_error): New.
11398         (record_btrace_info): Print number of gaps.
11399         (btrace_insn_history, btrace_call_history): Call
11400         btrace_ui_out_decode_error for gaps.
11401         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11402
11403 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11404
11405         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11406         * nat/linux-btrace.c: (btrace_this_cpu): New.
11407         (cpu_supports_bts): Call btrace_this_cpu.
11408         (intel_supports_bts): Add cpu parameter.
11409
11410 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11411
11412         * btrace.h (btrace_insn_class): New.
11413         (btrace_insn) <size, iclass>: New.
11414         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11415         Use instruction classification.
11416         (ftrace_new_return): Update parameters.  Update users.
11417         (ftrace_update_function): Update parameters.  Update users.  Use
11418         instruction classification.
11419         (ftrace_update_insns): Update parameters.  Update users.
11420         (ftrace_classify_insn): New.
11421         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11422         TRY_CATCH around call to gdb_insn_length.
11423
11424 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11425
11426         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11427         Update parameters.  Update users.
11428
11429 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11430
11431         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11432         (btrace_conf_bts_attributes): New.
11433         (btrace_conf_children): Add attributes.
11434         * common/btrace-common.h (btrace_config_bts): New.
11435         (btrace_config)<bts>: New.
11436         (btrace_config): Update comment.
11437         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11438         Use config.
11439         * features/btrace-conf.dtd: Increment version.  Add size
11440         attribute to bts element.
11441         * record-btrace.c (set_record_btrace_bts_cmdlist,
11442         show_record_btrace_bts_cmdlist): New.
11443         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11444         record_btrace_print_conf, cmd_set_record_btrace_bts,
11445         cmd_show_record_btrace_bts): New.
11446         (record_btrace_info): Call record_btrace_print_conf.
11447         (_initialize_record_btrace): Add commands.
11448         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11449         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11450         (btrace_sync_conf): Synchronize bts size.
11451         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11452         * NEWS: Announce new commands and new packets.
11453
11454 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11455
11456         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11457         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11458         (x86_linux_btrace_conf): New.
11459         (x86_linux_create_target): Initialize to_btrace_conf.
11460         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11461         Check format.  Split into this and ...
11462         (linux_enable_bts): ... this.
11463         (linux_btrace_conf): New.
11464         (perf_event_skip_record): Renamed into ...
11465         (perf_event_skip_bts_record): ... this.  Updated users.
11466         (linux_disable_btrace): Split into this and ...
11467         (linux_disable_bts): ... this.
11468         (linux_read_btrace): Check format.
11469         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11470         (linux_btrace_conf): New.
11471         (btrace_target_info)<ptid>: Moved.
11472         (btrace_target_info)<conf>: New.
11473         (btrace_target_info): Split into this and ...
11474         (btrace_tinfo_bts): ... this.  Updated users.
11475         * btrace.c (btrace_enable): Update parameters.
11476         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11477         (btrace_conf_children, btrace_conf_attributes)
11478         (btrace_conf_elements): New.
11479         * btrace.h (btrace_enable): Update parameters.
11480         (btrace_conf, parse_xml_btrace_conf): New.
11481         * common/btrace-common.h (btrace_config): New.
11482         * feature/btrace-conf.dtd: New.
11483         * record-btrace.c (record_btrace_conf): New.
11484         (record_btrace_cmdlist): New.
11485         (record_btrace_enable_warn, record_btrace_open): Pass
11486         &record_btrace_conf.
11487         (record_btrace_info): Print recording format.
11488         (cmd_record_btrace_bts_start): New.
11489         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11490         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11491         Add "record bts" alias command.
11492         * remote.c (remote_state)<btrace_config>: New.
11493         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11494         (remote_protocol_features): Add qXfer:btrace-conf:read.
11495         (remote_open_1): Call remote_btrace_reset.
11496         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11497         (btrace_target_info)<conf>: New.
11498         (btrace_sync_conf, btrace_read_config): New.
11499         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11500         btrace_read_conf.
11501         (remote_btrace_conf): New.
11502         (init_remote_ops): Initialize to_btrace_conf.
11503         (_initialize_remote): Add qXfer:btrace-conf packet.
11504         * target.c (target_enable_btrace): Update parameters.
11505         (target_btrace_conf): New.
11506         * target.h (target_enable_btrace): Update parameters.
11507         (target_btrace_conf): New.
11508         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11509         (target_ops)<to_enable_btrace>: Update parameters and comment.
11510         (target_ops)<to_btrace_conf>: New.
11511         * target-delegates: Regenerate.
11512         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11513         (target_debug_print_const_struct_btrace_target_info_p): New.
11514         * NEWS: Announce new command and new packet.
11515
11516 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11517
11518         * nat/linux-btrace.h (perf_event_buffer): New.
11519         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11520         <bts>: ... this.
11521         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11522         (perf_event_buffer_size, perf_event_buffer_begin)
11523         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11524         Updated users.
11525         (perf_event_new_data): New.
11526
11527 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11528
11529         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11530         * record-btrace.c (record_btrace_open): Remove call to
11531         target_supports_btrace.
11532         * remote.c (remote_supports_btrace): Update parameters.
11533         * target.c (target_supports_btrace): Update parameters.
11534         * target.h (to_supports_btrace, target_supports_btrace): Update
11535         parameters.
11536         * target-delegates.c: Regenerate.
11537         * target-debug.h (target_debug_print_enum_btrace_format): New.
11538         * nat/linux-btrace.c
11539         (kernel_supports_btrace): Rename into ...
11540         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11541         (intel_supports_btrace): Rename into ...
11542         (intel_supports_bts): ... this.  Update users.
11543         (cpu_supports_btrace): Rename into ...
11544         (cpu_supports_bts): ... this.  Update users.
11545         (linux_supports_btrace): Update parameters.  Split into this and ...
11546         (linux_supports_bts): ... this.
11547         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11548
11549 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11550
11551         * Makefile.in (SFILES): Add common/btrace-common.c.
11552         (COMMON_OBS): Add common/btrace-common.o.
11553         (btrace-common.o): Add build rules.
11554         * btrace.c (parse_xml_btrace): Update parameters.
11555         (parse_xml_btrace_block): Set format field.
11556         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11557         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11558         (btrace_compute_ftrace): Split into this and...
11559         (btrace_compute_ftrace_bts): ...this.
11560         (btrace_stitch_trace): Split into this and...
11561         (btrace_stitch_bts): ...this.
11562         * btrace.h (parse_xml_btrace): Update parameters.
11563         (make_cleanup_btrace_data): New.
11564         * common/btrace-common.c: New.
11565         * common/btrace-common.h: Include common-defs.h.
11566         (btrace_block_s): Update comment.
11567         (btrace_format): New.
11568         (btrace_format_string): New.
11569         (btrace_data_bts): New.
11570         (btrace_data): New.
11571         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11572         * remote.c (remote_read_btrace): Update parameters.
11573         * target.c (target_read_btrace): Update parameters.
11574         * target.h (target_read_btrace): Update parameters.
11575         (target_ops)<to_read_btrace>: Update parameters.
11576         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11577         * target-delegates.c: Regenerate.
11578         * target-debug (target_debug_print_struct_btrace_data_p): New.
11579         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11580         (linux_read_bts): ...this.
11581         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11582
11583 2015-02-06  Doug Evans  <dje@google.com>
11584
11585         * remote-m32r-sdi.c: Include symfile.h.
11586
11587 2015-02-06  Doug Evans  <dje@google.com>
11588
11589         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11590         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11591         to here.
11592
11593 2015-02-06  Pedro Alves  <palves@redhat.com>
11594
11595         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11596
11597 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11598
11599         PR gdb/15678
11600         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11601         (enable_count_command): Check args for NULL value.
11602
11603 2015-02-05  Doug Evans  <xdje42@gmail.com>
11604
11605         * guile/scm-frame.c: Fix spelling errors in a comment.
11606
11607 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11608
11609         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11610         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11611         return type.
11612
11613 2015-02-04  Pedro Alves  <palves@redhat.com>
11614
11615         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11616         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11617         returns true.
11618         (resume_stopped_resumed_lwps): Don't check whether the thread is
11619         marked as executing.
11620         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11621
11622 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11623
11624         * regset.h (struct regset): Add flags field.
11625         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11626         * corelow.c (get_core_register_section): Add warning if the size
11627         exceeds the requested size and the regset does not have the
11628         REGSET_VARIABLE_SIZE flag set.
11629         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11630         flag.
11631         * armbsd-tdep.c (armbsd_gregset): Likewise.
11632         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11633         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11634         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11635         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11636
11637 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11638
11639         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11640         For ".reg-xstate", explicitly specify the requested section size
11641         via X86_XSTATE_SIZE instead of just 0 on input and
11642         X86_XSTATE_MAX_SIZE on output.
11643         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11644         Likewise.
11645
11646 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11647
11648         PR corefiles/17808:
11649         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11650         function type, particularly its SIZE parameter.
11651         * gdbarch.h: Regenerate.
11652         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11653         actual against required size using ">=" instead of "==".
11654         (amd64_collect_fpregset): Likewise.
11655         * i386-tdep.c (i386_supply_gregset): Likewise.
11656         (i386_collect_gregset): Likewise.
11657         (i386_supply_fpregset): Likewise.
11658         (i386_collect_fpregset): Likewise.
11659         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11660         (mips_fill_gregset_wrapper): Likewise.
11661         (mips_supply_fpregset_wrapper): Likewise.
11662         (mips_fill_fpregset_wrapper): Likewise.
11663         (mips64_supply_gregset_wrapper): Likewise.
11664         (mips64_fill_gregset_wrapper): Likewise.
11665         (mips64_supply_fpregset_wrapper): Likewise.
11666         (mips64_fill_fpregset_wrapper): Likewise.
11667         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11668         (am33_supply_fpregset_method): Likewise.
11669         (am33_collect_gregset_method): Likewise.
11670         (am33_collect_fpregset_method): Likewise.
11671
11672 2015-02-04  Doug Evans  <dje@google.com>
11673             Pedro Alves  <palves@redhat.com>
11674             Eli Zaretskii  <eliz@gnu.org>
11675
11676         PR tui/17810
11677         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11678         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11679         * tui/tui-file.c: #include tui/tui-command.h.
11680         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11681         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11682         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11683
11684 2015-02-04  Pedro Alves  <palves@redhat.com>
11685
11686         Fix build breakage.
11687         * event-loop.c (gdb_do_one_event): Add default switch case.
11688
11689 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11690
11691         Filter out inferior gcc option -fpreprocessed.
11692         * compile/compile.c (filter_args): New function.
11693         (get_args): Use it.
11694
11695 2015-02-03  Pedro Alves  <palves@redhat.com>
11696
11697         * event-loop.c: Don't declare nor define a queue type for
11698         gdb_event_p.
11699         (event_queue): Delete.
11700         (create_event, create_file_event, gdb_event_xfree)
11701         (initialize_event_loop, process_event): Delete.
11702         (gdb_do_one_event): Return as soon as one event is handled.
11703         (handle_file_event): Change prototype.  Used the passed in
11704         file_handler pointer and ready_mask instead of looping over all
11705         file handlers.
11706         (gdb_wait_for_event): Update the poll/select timeouts before
11707         blocking.  Run event handlers directly instead of queueing events.
11708         Return as soon as one event is handled.
11709         (struct async_event_handler_data): Delete.
11710         (invoke_async_event_handler): Delete.
11711         (check_async_event_handlers): Change return type to int.  Run
11712         event handlers directly instead of queueing events.  Return as
11713         soon as one event is handled.
11714         (handle_timer_event): Delete.
11715         (update_wait_timeout): New function, factored out from
11716         poll_timers.
11717         (poll_timers): Reimplement.
11718         * event-loop.h (initialize_event_loop): Delete declaration.
11719         * top.c (gdb_init): Don't call initialize_event_loop.
11720
11721 2015-02-03  Pedro Alves  <palves@redhat.com>
11722
11723         * event-loop.c (clear_async_event_handler): New function.
11724         * event-loop.h (clear_async_event_handler): New declaration.
11725         * record-btrace.c (record_btrace_async): New function.
11726         (init_record_btrace_ops): Install record_btrace_async.
11727         * record-full.c (record_full_async): New function.
11728         (record_full_resume): Don't mark the async event source here.
11729         (init_record_full_ops): Install record_full_async.
11730         (record_full_core_resume): Don't mark the async event source here.
11731         (init_record_full_core_ops): Install record_full_async.
11732         * remote.c (remote_async): Mark and clear the async stop reply
11733         queue event-loop token as appropriate.
11734
11735 2015-02-03  Pedro Alves  <palves@redhat.com>
11736
11737         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11738         target_is_async_p instead of target_can_async.
11739         (linux_nat_wait): Use target_is_async_p instead of
11740         target_can_async.  Don't enable async here.
11741         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11742         target_is_async_p instead of target_can_async.
11743
11744 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11745
11746         * varobj.h (lang_varobj_ops): Mention which return values need
11747         to be freed.
11748
11749 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11750
11751         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11752
11753 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11754
11755         PR gdb/17856:
11756         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11757         results found in the cache.
11758
11759 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11760
11761         PR gdb/17854:
11762         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11763         when allocating a new one.
11764
11765 2015-02-01  Tom Tromey  <tom@tromey.com>
11766
11767         * MAINTAINERS: Remove myself.
11768
11769 2015-01-31  Doug Evans  <xdje42@gmail.com>
11770
11771         * dwarf2read.c (process_structure_scope): Update setting of
11772         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11773         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11774         (set_type_vptr_fieldno): New function.
11775         (internal_type_vptr_basetype): New function.
11776         (set_type_vptr_basetype): New function.
11777         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11778         TYPE_VPTR_BASETYPE.
11779         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11780         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11781         (print_cplus_stuff): ... moved here.
11782         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11783         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11784         moved to ...
11785         (struct cplus_struct_type): ... here.  All uses updated.
11786         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11787         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11788         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11789         * stabsread.c (read_tilde_fields): Update setting of
11790         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11791
11792 2015-01-31  Doug Evans  <xdje42@gmail.com>
11793
11794         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11795         to self_p.
11796         (cp_print_class_member): Rename local domain to self_type.
11797         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11798         domain_type to self_type.
11799         (set_die_type) <need_gnat_info>: Handle
11800         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11801         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11802         TYPE_SPECIFIC_SELF_TYPE.
11803         * gdbtypes.c (internal_type_self_type): New function.
11804         (set_type_self_type): New function.
11805         (smash_to_memberptr_type): Rename parameter domain to self_type.
11806         Update setting of TYPE_SELF_TYPE.
11807         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11808         (smash_to_method_type): Rename parameter domain to self_type.
11809         Update setting of TYPE_SELF_TYPE.
11810         (check_stub_method): Call smash_to_method_type.
11811         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11812         (copy_type_recursive): Ditto.
11813         * gdbtypes.h (enum type_specific_kind): New value
11814         TYPE_SPECIFIC_SELF_TYPE.
11815         (struct main_type) <type_specific>: New member self_type.
11816         (struct cplus_struct_type) <fn_field.type>: Update comment.
11817         (TYPE_SELF_TYPE): Rewrite.
11818         (internal_type_self_type, set_type_self_type): Declare.
11819         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11820         self_type.
11821         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11822         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11823         TYPE_TARGET_TYPE.
11824         * stabsread.c (read_member_functions): Mark methods with
11825         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11826         TYPE_SELF_TYPE.
11827
11828 2015-01-31  Doug Evans  <xdje42@gmail.com>
11829
11830         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11831         All uses updated.
11832
11833 2015-01-31  Doug Evans  <xdje42@gmail.com>
11834
11835         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11836         or unions.  Return zero if union.
11837         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11838         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11839         gnuv3_get_vtable.
11840         (compute_vtable_size): Assert only passed structs.
11841         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11842
11843 2015-01-31  Doug Evans  <xdje42@gmail.com>
11844
11845         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11846         kinds.
11847
11848 2015-01-31  Gary Benson <gbenson@redhat.com>
11849             Doug Evans  <dje@google.com>
11850
11851         PR cli/9007
11852         PR cli/11920
11853         PR cli/15548
11854         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11855         reached.
11856         * common/common-exceptions.h (enum errors)
11857         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11858         * completer.h (get_max_completions_reached_message): New declaration.
11859         (max_completions): Likewise.
11860         (completion_tracker_t): New typedef.
11861         (new_completion_tracker): New declaration.
11862         (make_cleanup_free_completion_tracker): Likewise.
11863         (maybe_add_completion_enum): New enum.
11864         (maybe_add_completion): New declaration.
11865         (throw_max_completions_reached_error): Likewise.
11866         * completer.c (max_completions): New global variable.
11867         (new_completion_tracker): New function.
11868         (free_completion_tracker): Likewise.
11869         (make_cleanup_free_completion_tracker): Likewise.
11870         (maybe_add_completions): Likewise.
11871         (throw_max_completions_reached_error): Likewise.
11872         (complete_line): Remove duplicates and limit result to max_completions
11873         entries.
11874         (get_max_completions_reached_message): New function.
11875         (gdb_display_match_list): Handle max_completions.
11876         (_initialize_completer): New declaration and function.
11877         * symtab.c: Include completer.h.
11878         (completion_tracker): New static variable.
11879         (completion_list_add_name): Call maybe_add_completion.
11880         (default_make_symbol_completion_list_break_on_1): Renamed from
11881         default_make_symbol_completion_list_break_on.  Maintain
11882         completion_tracker across calls to completion_list_add_name.
11883         (default_make_symbol_completion_list_break_on): New function.
11884         * top.c (init_main): Set rl_completion_display_matches_hook.
11885         * tui/tui-io.c: Include completer.h.
11886         (tui_old_rl_display_matches_hook): New static global.
11887         (tui_rl_display_match_list): Notify user if max-completions reached.
11888         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11889         * NEWS (New Options): Mention set/show max-completions.
11890
11891 2015-01-31  Gary Benson  <gbenson@redhat.com>
11892
11893         * symtab.c (struct add_name_data) <code>: New field.
11894         Updated comments.
11895         (add_symtab_completions): New function.
11896         (symtab_expansion_callback): Likewise.
11897         (default_make_symbol_completion_list_break_on): Set datum.code.
11898         Move minimal symbol scan before calling expand_symtabs_matching.
11899         Scan known primary symtabs for externs and statics before calling
11900         expand_symtabs_matching.  Pass symtab_expansion_callback as
11901         expansion_notify argument to expand_symtabs_matching.  Do not scan
11902         primary symtabs for externs and statics after calling
11903         expand_symtabs_matching.
11904
11905 2015-01-31  Gary Benson  <gbenson@redhat.com>
11906
11907         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11908         (struct quick_symbol_functions) <expand_symtabs_matching>:
11909         New argument expansion_notify.  All uses updated.
11910         (expand_symtabs_matching): New argument expansion_notify.
11911         All uses updated.
11912         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11913         Also print expansion notify.
11914         * symtab.c (expand_symtabs_matching_via_partial): Call
11915         expansion_notify whenever a partial symbol table is expanded.
11916         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11917         expansion_notify whenever a symbol table is instantiated.
11918
11919 2015-01-31  Doug Evans  <xdje42@gmail.com>
11920
11921         * cli-out.c: #include completer.h, readline/readline.h.
11922         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11923         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11924         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11925         * cli-out.h (cli_display_match_list): Declare.
11926         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11927         (ELLIPSIS_LEN): Ditto.
11928         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11929         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11930         (gdb_fnprint, gdb_print_filename): Ditto.
11931         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11932         (gdb_display_match_list): Ditto.
11933         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11934         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11935         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11936         (match_list_displayer): New struct.
11937         (gdb_display_match_list): Declare.
11938         * top.c (init_main): Set rl_completion_display_matches_hook.
11939         * tui/tui-io.c: #include completer.h.
11940         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11941         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11942         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11943         (tui_mld_getc, tui_mld_read_key): Ditto.
11944         (tui_rl_display_match_list): Rewrite.
11945         (tui_handle_resize_during_io): New arg for_completion.  All callers
11946         updated.
11947
11948 2015-01-31  Doug Evans  <xdje42@gmail.com>
11949
11950         Add symbol lookup cache.
11951         * NEWS: Document new options and commands.
11952         * symtab.c (symbol_cache_key): New static global.
11953         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11954         (SYMBOL_LOOKUP_FAILED): New macro.
11955         (symbol_cache_slot_state): New enum.
11956         (block_symbol_cache): New struct.
11957         (symbol_cache): New struct.
11958         (new_symbol_cache_size, symbol_cache_size): New static globals.
11959         (hash_symbol_entry, eq_symbol_entry): New functions.
11960         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11961         (make_symbol_cache, free_symbol_cache): New functions.
11962         (get_symbol_cache, symbol_cache_cleanup): New function.
11963         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11964         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11965         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11966         (symbol_cache_flush, symbol_cache_dump): New functions.
11967         (maintenance_print_symbol_cache): New function.
11968         (maintenance_flush_symbol_cache): New function.
11969         (symbol_cache_stats): New function.
11970         (maintenance_print_symbol_cache_statistics): New function.
11971         (symtab_new_objfile_observer): New function.
11972         (symtab_free_objfile_observer): New function.
11973         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11974         (_initialize_symtab): Init symbol_cache_key.  New parameter
11975         maint symbol-cache-size.  New maint commands print symbol-cache,
11976         print symbol-cache-statistics, flush-symbol-cache.
11977         Install new_objfile, free_objfile observers.
11978
11979 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
11980
11981         PR symtab/17855
11982         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11983         to end.
11984
11985 2015-01-31  Doug Evans  <xdje42@gmail.com>
11986
11987         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11988         * auto-load.c: #include ctype.h.
11989         (struct auto_load_pspace_info): Replace member loaded_scripts with
11990         new members loaded_script_files, loaded_script_texts.
11991         (auto_load_pspace_data_cleanup): Update.
11992         (init_loaded_scripts_info): Update.
11993         (get_auto_load_pspace_data_for_loading): Update.
11994         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
11995         updated.
11996         (maybe_add_script_text): New function.
11997         (clear_section_scripts): Update.
11998         (source_script_file, execute_script_contents): New functions.
11999         (source_section_scripts): Add support for
12000         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12001         (print_scripts): New function.
12002         (auto_load_info_scripts): Also print inlined scripts.
12003         (maybe_print_unsupported_script_warning): Renamed from
12004         unsupported_script_warning_print.  All callers updated.
12005         (maybe_print_script_not_found_warning): Renamed from
12006         script_not_found_warning_print.  All callers updated.
12007         * extension-priv.h (struct extension_language_script_ops): New member
12008         objfile_script_executor.
12009         * extension.c (ext_lang_objfile_script_executor): New function.
12010         * extension.h (objfile_script_executor_func): New typedef.
12011         (ext_lang_objfile_script_executor): Declare.
12012         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12013         * guile/guile.c (guile_extension_script_ops): Update.
12014         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12015         * python/python.c (python_extension_script_ops): Update.
12016         (gdbpy_execute_objfile_script): New function.
12017
12018 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12019
12020         * tui/tui-io.c (tui_expand_tabs): New function.
12021         (tui_puts, tui_redisplay_readline): Expand TABs into the
12022         appropriate number of spaces.
12023         * tui/tui-regs.c: Include tui-io.h.
12024         (tui_register_format): Call tui_expand_tabs to expand TABs into
12025         the appropriate number of spaces.
12026         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12027
12028 2015-01-30  Doug Evans  <dje@google.com>
12029
12030         * NEWS: "info source" command now display producer string if present.
12031         * source.c (source_info): Print producer string if present.
12032
12033 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12034
12035         * varobj.c (varobj_delete): Fix comment.
12036
12037 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12038
12039         * varobj.c (create_child): Modify comment.
12040
12041 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12042
12043         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12044         parameter.
12045         (ada_name_of_variable): Same.
12046         (ada_path_expr_of_child): Same.
12047         (ada_value_of_variable): Same.
12048         (ada_value_is_changeable_p): Same.
12049         (ada_value_has_mutated): Same.
12050         * c-varobj.c (varobj_is_anonymous_child): Same.
12051         (c_is_path_expr_parent): Same.
12052         (c_number_of_children): Same.
12053         (c_name_of_variable): Same.
12054         (c_path_expr_of_child): Same.
12055         (get_type): Same.
12056         (c_value_of_variable): Same.
12057         (cplus_number_of_children): Same.
12058         (cplus_name_of_variable): Same.
12059         (cplus_path_expr_of_child): Same.
12060         (cplus_value_of_variable): Same.
12061         * jv-varobj.c (java_number_of_children): Same.
12062         (java_name_of_variable): Same.
12063         (java_path_expr_of_child): Same.
12064         (java_value_of_variable): Same.
12065         * varobj.c (number_of_children): Same.
12066         (name_of_variable): Same.
12067         (is_root_p): Same.
12068         (varobj_ensure_python_env): Same.
12069         (varobj_get_objname): Same.
12070         (varobj_get_expression): Same.
12071         (varobj_get_display_format): Same.
12072         (varobj_get_display_hint): Same.
12073         (varobj_has_more): Same.
12074         (varobj_get_thread_id): Same.
12075         (varobj_get_frozen): Same.
12076         (dynamic_varobj_has_child_method): Same.
12077         (varobj_get_gdb_type): Same.
12078         (is_path_expr_parent): Same.
12079         (varobj_default_is_path_expr_parent): Same.
12080         (varobj_get_language): Same.
12081         (varobj_get_attributes): Same.
12082         (varobj_is_dynamic_p): Same.
12083         (varobj_get_child_range): Same.
12084         (varobj_value_has_mutated): Same.
12085         (varobj_get_value_type): Same.
12086         (number_of_children): Same.
12087         (name_of_variable): Same.
12088         (check_scope): Same.
12089         (varobj_editable_p): Same.
12090         (varobj_value_is_changeable_p): Same.
12091         (varobj_floating_p): Same.
12092         (varobj_default_value_is_changeable_p): Same.
12093
12094 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12095
12096         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12097         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12098         child->path_expr.
12099         (cplus_path_expr_of_child): Same.
12100
12101 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12102
12103         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12104         result.
12105         (mi_cmd_var_info_expression): Same.
12106         * varobj.c (varobj_get_expression): Mention in the comment that
12107         the result must by freed by the caller.
12108
12109 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12110
12111         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12112         varobj_get_type.
12113         (varobj_update_one): Same.
12114         * varobj.c (update_type_if_necessary): Free curr_type_str and
12115         new_type_str.
12116         (varobj_get_type): Specify in comment that the result needs to be
12117         freed by the caller.
12118
12119 2015-01-29  Doug Evans  <dje@google.com>
12120
12121         PR symtab/17890
12122         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12123
12124 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12125
12126         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12127         * utils.c (producer_is_gcc_ge_4): Likewise.
12128         (producer_is_gcc): New function.
12129         * utils.h (producer_is_gcc): New declaration.
12130
12131 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12132
12133         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12134         kind.
12135         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12136         parameter by "addr_stack" parameter.
12137         (resolve_dynamic_range): Replace "addr" parameter by
12138         "stack_addr" parameter.  Update function documentation.
12139         Update code accordingly.
12140         (resolve_dynamic_array, resolve_dynamic_union)
12141         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12142         (resolve_dynamic_type): Update code, following the changes made
12143         to resolve_dynamic_type_internal's interface.
12144         * dwarf2loc.h (struct property_addr_info): New.
12145         (dwarf2_evaluate_property): Replace "address" parameter
12146         by "addr_stack" parameter.  Adjust function documentation.
12147         (struct dwarf2_offset_baton): New.
12148         (struct dwarf2_property_baton): Update documentation of
12149         field "referenced_type" to be more general. New field
12150         "offset_info" in union data field.
12151         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12152         parameter by "addr_stack" parameter.  Adjust code accordingly.
12153         Add support for PROP_ADDR_OFFSET properties.
12154         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12155         DW_AT_data_member_location attributes as well.  Use case
12156         statements instead of if/else condition.
12157
12158 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12159
12160         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12161         Return zero if PARENT_VALUE is NULL and parent_type's
12162         range type is dynamic.
12163
12164 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12165
12166         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12167         nonzero if the type's subtype is dynamic.
12168         (resolve_dynamic_range): Also resolve the range's subtype.
12169
12170 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12171
12172         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12173         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12174
12175 2015-01-27  Doug Evans  <dje@google.com>
12176
12177         * NEWS: Mention gdb.Objfile.username.
12178         * python/py-objfile.c (objfpy_get_username): New function.
12179         (objfile_getset): Add "username".
12180
12181 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12182
12183         * stack.c (return_command): Markup warning message with _.
12184
12185 2015-01-24  Doug Evans  <xdje42@gmail.com>
12186
12187         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12188
12189 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12190
12191         Fix 100x slowdown regression on DWZ files.
12192         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12193         (struct line_header): Add offset and offset_in_dwz.
12194         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12195         (free_line_header_voidp): New declaration.
12196         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12197         functions.
12198         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12199         (handle_DW_AT_stmt_list): Use line_header_hash.
12200         (free_line_header_voidp): New function.
12201         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12202         (dwarf_decode_lines): New parameter decode_mapping, use it.
12203         (dwarf2_free_objfile): Free line_header_hash.
12204
12205 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12206
12207         PR gdb/17416
12208         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12209         value_ind.
12210
12211 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12212
12213         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12214         DW_AT_noreturn.
12215         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12216         calling_convention an 8 bit bit field.
12217         (TYPE_NO_RETURN): New macro.
12218         * infcmd.c (finish_command): Query if function does not return
12219         normally.
12220         * stack.c (return_command): Likewise.
12221
12222 2015-01-23  Pedro Alves  <palves@redhat.com>
12223
12224         * linux-nat.c (linux_is_async_p): New macro.
12225         (linux_nat_is_async_p):
12226         (linux_nat_terminal_inferior): Check whether the target can async
12227         instead of whether it is already async.
12228         (linux_nat_terminal_ours): Don't check whether the target is
12229         async.
12230         (linux_async_pipe): Use linux_is_async_p.
12231
12232 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12233
12234         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12235         '-ascending'.
12236         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12237         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12238         Sort tp_array using tp_array_compar.
12239         (_initialize_thread): Extend thread_apply_all_command help.
12240
12241 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12242
12243         * corelow.c (core_open): Call also thread_command.
12244         * gdbthread.h (thread_command): New prototype moved from ...
12245         * thread.c (thread_command): ... here.
12246         (thread_command): Make it global.
12247
12248 2015-01-22  Pedro Alves  <palves@redhat.com>
12249
12250         * configure.ac [*mingw32*]: Check $curses_found instead of
12251         $prefer_curses.
12252         * configure: Regenerate.
12253         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12254         HAVE_NCURSES_NCURSES_H checks.
12255
12256 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12257
12258         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12259         fails with the 1st arg NULL, try again with "unknown".  Don't test
12260         the "cup" capability: it isn't supported by the Windows port of
12261         ncurses, but the Windows console driver is still capable of
12262         supporting TUI.
12263
12264 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12265
12266         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12267
12268 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12269
12270         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12271         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12272         reason that "make TAGS" is broken.
12273
12274 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12275
12276         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12277         and check additional store instructions.
12278
12279 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12280
12281         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12282
12283 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12284
12285         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12286         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12287         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12288         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12289         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12290         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12291         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12292         ppc_process_record_op19, ppc_process_record_op31,
12293         ppc_process_record_op59, ppc_process_record_op60,
12294         ppc_process_record_op63): Likewise.
12295
12296 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12297
12298         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12299         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12300         strerror.
12301
12302 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12303
12304         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12305         ppc_process_record_op31, ppc_process_record_op59,
12306         ppc_process_record_op60, ppc_process_record_op63,
12307         ppc_process_record): Fix -Wformat warning.
12308         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12309         Remove unused variables.
12310
12311 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12312
12313         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12314
12315 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12316
12317         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12318         CONFIG_OBS if not building with a curses library.
12319         * configure: Regenerate.
12320
12321         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12322         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12323         HAVE_NCURSES_NCURSES_H is defined.
12324
12325 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12326
12327         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12328         from end of line to start of next line.
12329
12330 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12331
12332         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12333         Scan PLT stub backward for reverse debugging.
12334         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12335
12336 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12337             Ulrich Weigand  <uweigand@de.ibm.com>
12338
12339         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12340         gdb_target_obs.
12341         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12342         record.
12343         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12344         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12345         (ppc_linux_init_abi): Set process_record, process_record_signal.
12346         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12347         ppc_linux_record_tdep to gdbarch_tdep.
12348         (ppc_process_record): New declaration.
12349         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12350         ppc_process_record_op19, ppc_process_record_op31,
12351         ppc_process_record_op59, ppc_process_record_op60,
12352         ppc_process_record_op63, ppc_process_record): New functions.
12353
12354 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12355
12356         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12357         rs6000_in_function_epilogue_frame_p and add an argument
12358         for frame_info.
12359         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12360         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12361         New functions.
12362         (rs6000_epilogue_frame_unwind): New.
12363         (rs6000_gdbarch_init): Append epilogue unwinder.
12364
12365 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12366
12367         * nat/linux-personality.c: Replace "#ifndef
12368         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12369         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12370         systems.
12371
12372 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12373
12374         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12375         functions.
12376         (_initialize_tui_win) <border-kind, border-mode>:
12377         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12378         (tui_set_tab_width_command): Fix the commentary.
12379
12380         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12381
12382         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12383         Doc fix.
12384         (tui_set_tab_width_command): Delete and recreate the source and
12385         the disassembly windows, to show the effect of the changed tab
12386         size immediately.
12387
12388         * tui/tui-data.h (LINE_PREFIX): Make shorter
12389         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12390         "Thread NNNNN.XXXX" thread ID notation on Windows.
12391
12392 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12393
12394         Fix gcc-5 compilation.
12395         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12396
12397 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12398
12399         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12400         (linux-personality.o): New rule.
12401         * common/common-defs.h: Include <stdint.h>.
12402         * config/aarch64/linux.mh (NATDEPFILES): Include
12403         linux-personality.o.
12404         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12405         * config/arm/linux.mh (NATDEPFILES): Likewise.
12406         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12407         * config/i386/linux.mh (NATDEPFILES): Likewise.
12408         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12409         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12410         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12411         * config/mips/linux.mh (NATDEPFILES): Likewise.
12412         * config/pa/linux.mh (NATDEPFILES): Likewise.
12413         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12414         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12415         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12416         * config/s390/linux.mh (NATDEPFILES): Likewise.
12417         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12418         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12419         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12420         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12421         * defs.h: Remove #include <stdint.h> (moved to
12422         common/common-defs.h).
12423         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12424         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12425         nat/linux-personality.c).
12426         (linux_nat_create_inferior): Remove code to disable address space
12427         randomization (moved to nat/linux-personality.c).  Create cleanup
12428         to disable address space randomization.
12429         * nat/linux-personality.c: New file.
12430         * nat/linux-personality.h: Likewise.
12431
12432 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12433
12434         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12435         common/posix-strerror.c.
12436         (posix-strerror.o): New rule.
12437         (mingw-strerror.o): Likewise.
12438         * common/common-utils.h (safe_strerror): Move prototype to here,
12439         from utils.h.
12440         * common/common.host: New file.
12441         * common/mingw-strerror.c: Likewise.
12442         * common/posix-strerror.c: Likewise.
12443         * configure: Regenerated.
12444         * configure.ac: Source common/common.host.  Add variable
12445         common_host_obs to gdb_host_obs.
12446         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12447         gdb/common/posix-strerror.c when warning about the use of
12448         strerror.
12449         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12450         common/mingw-strerror.c.
12451         * posix-hdep.c (safe_strerror): Remove definition; move it to
12452         common/posix-hdep.c.
12453         * utils.h (safe_strerror): Remove prototype; move to
12454         common/common-utils.h.
12455
12456 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12457
12458         GDB 7.8.2 released.
12459
12460 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12461
12462         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12463         ___XA type if the array has already been fixed.
12464
12465 2015-01-14  Yao Qi  <yao@codesourcery.com>
12466
12467         * Makefile.in (ppc-linux.o): New rule.
12468         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12469         * configure.ac: AC_CHECK_FUNCS(getauxval).
12470         * config.in: Re-generated.
12471         * configure: Re-generated.
12472         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12473         Declare.
12474         * nat/ppc-linux.c: New file.
12475         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12476         Call ppc64_64bit_inferior_p.
12477
12478 2015-01-14  Yao Qi  <yao@codesourcery.com>
12479
12480         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12481         nat/ppc-linux.h.
12482         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12483         (PPC_FEATURE_HAS_DFP): Likewise.
12484         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12485         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12486         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12487         Include "nat/ppc-linux.h".
12488         * nat/ppc-linux.h: New file.
12489         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12490
12491 2015-01-14  Pedro Alves  <palves@redhat.com>
12492
12493         PR gdb/17525
12494         * breakpoint.c: Include "interps.h".
12495         (bpstat_do_actions_1): Also check whether the interpreter is
12496         async.
12497
12498 2015-01-14  Pedro Alves  <palves@redhat.com>
12499
12500         PR cli/17828
12501         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12502         reinstall if the interpreter is sync.
12503
12504 2015-01-13  Doug Evans  <dje@google.com>
12505
12506         * objfiles.c (objfile_filename): New function.
12507         * objfiles.h (objfile_filename): Declare it.
12508         (objfile_name): Add function comment.
12509         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12510         bfd file name (which may be realpath'd), and the original name.
12511
12512 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12513
12514         * NEWS: Create a new section for the next release branch.
12515         Rename the section of the current branch, now that it has
12516         been cut.
12517
12518 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12519
12520         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12521         * version.in: Bump version to 7.9.50.DATE-cvs.
12522
12523 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12524
12525         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12526         Remove trailing new-line in argument of call to warning.
12527
12528 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12529
12530         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12531         new-line in argument of call to "warning".
12532
12533 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12534
12535         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12536         in static block, then try searching for primitive types.
12537
12538 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12539
12540         * top.h (gdb_add_history): Declare.
12541         * top.c (command_count): New variable.
12542         (gdb_add_history): New function.
12543         (gdb_safe_append_history): New static function.
12544         (quit_force): Call it.
12545         (command_line_input): Use gdb_add_history instead of
12546         add_history.
12547         * event-top.c (command_line_handler): Likewise.
12548
12549 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12550
12551         PR gdb/17046
12552         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12553         <setjmp.h> #include.
12554
12555 2015-01-11  Doug Evans  <xdje42@gmail.com>
12556
12557         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12558
12559 2015-01-11  Doug Evans  <xdje42@gmail.com>
12560
12561         PR gdb/15830
12562         * NEWS: The "maint demangle" command is renamed as "demangle".
12563         * demangle.c: #include cli/cli-utils.h, language.h.
12564         (demangle_command): New function.
12565         (_initialize_demangle): Add new command "demangle".
12566         * maint.c (maintenance_demangle): Stub out.
12567         (_initialize_maint_cmds): Update help text for "maint demangle",
12568         and mark as deprecated.
12569
12570 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12571
12572         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12573         inferior_thread is a function.
12574
12575 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12576
12577         * Makefile.in (.y.c): Don't munge yacc's #line
12578         directives.
12579
12580 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12581
12582         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12583         to prompt for input.
12584         * tui/tui-hooks.c (tui_query_hook): Remove.
12585         (tui_install_hooks): Don't set deprecated_query_hook.
12586         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12587         height calculation.  Always update the command window's cur_line.
12588
12589 2015-01-09  Pedro Alves  <palves@redhat.com>
12590
12591         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12592         function.
12593         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12594         declaration.
12595         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12596         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12597         stop_reason.
12598         (check_stopped_by_watchpoint): New function.
12599         (save_sigtrap): Reimplement.
12600         (linux_nat_stopped_by_watchpoint): Adjust.
12601         (linux_nat_lp_status_is_event): Delete.
12602         (stop_wait_callback): Only call save_sigtrap after storing the
12603         pending status.
12604         (status_callback): If the thread had been stopped for a breakpoint
12605         that has since been removed, discard the event and resume the LWP.
12606         (count_events_callback, select_event_lwp_callback): Use
12607         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12608         (cancel_breakpoint): Rename to ...
12609         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12610         stopped for a software breakpoint or hardware breakpoint.
12611         (select_event_lwp): Only give preference to the stepping LWP in
12612         all-stop mode.  Adjust comments.
12613         (stop_and_resume_callback): Remove references to new_pending_p.
12614         (linux_nat_filter_event): Likewise.  Leave exit events of the
12615         leader thread pending here.  Handle signal short circuiting here.
12616         Only call save_sigtrap after storing the pending waitstatus.
12617         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12618         new_pending.  Don't handle leaving events the caller is not
12619         interested in pending here, nor handle signal short-circuiting
12620         here.  Also give equal priority to all LWPs that have had events
12621         in non-stop mode.  If reporting a software breakpoint event,
12622         unadjust the LWP's PC.
12623         * linux-nat.h (enum lwp_stop_reason): New.
12624         (struct lwp_info) <stop_pc>: New field.
12625         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12626         (struct lwp_info) <stop_reason>: New field.
12627         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12628
12629 2015-01-09  Pedro Alves  <palves@redhat.com>
12630
12631         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12632         Set the LWP's 'resumed' flag.
12633
12634 2015-01-09  Pedro Alves  <palves@redhat.com>
12635
12636         * linux-nat.c (linux_resume_one_lwp): New function.
12637         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12638         (linux_nat_resume): Use lwp_status_pending_p and
12639         linux_resume_one_lwp.
12640         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12641         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12642         (status_callback, running_callback): Use lwp_status_pending_p.
12643         (lwp_status_pending_p): New function.
12644         (stop_and_resume_callback): Use lwp_status_pending_p.
12645         (linux_nat_filter_event): Use linux_resume_one_lwp.
12646         (linux_nat_wait_1): Always use status_callback to look for an LWP
12647         with a pending status.  Use linux_resume_one_lwp.
12648         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12649         linux_resume_one_lwp.
12650
12651 2015-01-09  Pedro Alves  <palves@redhat.com>
12652
12653         * breakpoint.c (bp_location_inserted_here_p): New function,
12654         factored out from ...
12655         (breakpoint_inserted_here_p): ... here.  Use
12656         ALL_BP_LOCATIONS_AT_ADDR.
12657         (software_breakpoint_inserted_here_p): Use
12658         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12659
12660 2014-01-09  Pedro Alves  <palves@redhat.com>
12661
12662         Skip enabling event reporting if the kernel supports
12663         PTRACE_EVENT_CLONE.
12664         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12665         (thread_db_use_events): New function.
12666         (try_thread_db_load_1): Check thread_db_use_events before enabling
12667         event reporting.
12668         (update_thread_state): New function.
12669         (attach_thread): Use it.  Check thread_db_use_events before
12670         enabling event reporting.
12671         (thread_db_detach): Check thread_db_use_events before disabling
12672         event reporting.
12673         (find_new_threads_callback): Check thread_db_use_events before
12674         enabling event reporting.  Update the thread's state if not using
12675         libthread_db events.
12676
12677 2015-01-09  Pedro Alves  <palves@redhat.com>
12678
12679         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12680         about to wait for is > 0.
12681         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12682         the kernel thread ID is -1.
12683
12684 2015-01-09  Pedro Alves  <palves@redhat.com>
12685
12686         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12687         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12688         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12689         ptrace option flags.
12690         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12691         field.
12692         * nat/linux-procfs.c: Include <dirent.h>.
12693         (linux_proc_get_int): New parameter "warn".  Handle it.
12694         (linux_proc_get_tgid): Adjust.
12695         (linux_proc_get_tracerpid): Rename to ...
12696         (linux_proc_get_tracerpid_nowarn): ... this.
12697         (linux_proc_pid_get_state): New function, factored out from
12698         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12699         and handle it.
12700         (linux_proc_pid_is_gone): New function.
12701         (linux_proc_pid_is_stopped): Adjust.
12702         (linux_proc_pid_is_zombie_maybe_warn)
12703         (linux_proc_pid_is_zombie_nowarn): New functions.
12704         (linux_proc_pid_is_zombie): Use
12705         linux_proc_pid_is_zombie_maybe_warn.
12706         (linux_proc_attach_tgid_threads): New function.
12707         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12708         (linux_proc_get_tracerpid): Rename to ...
12709         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12710         (linux_proc_pid_is_gone): New declaration.
12711         (linux_proc_pid_is_zombie): Update comment.
12712         (linux_proc_pid_is_zombie_nowarn): New declaration.
12713         (linux_proc_attach_lwp_func): New typedef.
12714         (linux_proc_attach_tgid_threads): New declaration.
12715         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12716         use nowarn functions.
12717         (linux_ptrace_attach_fail_reason_string): Move here from
12718         gdbserver/linux-low.c and rename.
12719         (ptrace_supports_feature): If the current ptrace options are not
12720         known yet, check them now, instead of asserting.
12721         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12722         Declare.
12723
12724 2015-01-09  Pedro Alves  <palves@redhat.com>
12725
12726         * linux-thread-db.c (thread_db_find_new_threads_silently)
12727         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12728         (find_new_threads_once): Print debug output on gdb_stdlog.
12729
12730 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12731             Pedro Alves  <palves@redhat.com>
12732
12733         * compile/compile.c: Include "gdb_wait.h".
12734         (do_rmdir): Check return value, and free 'zap'.
12735
12736 2015-01-08  Pedro Alves  <palves@redhat.com>
12737             Yao Qi  <yao@codesourcery.com>
12738
12739         * dwarf2loc.c (indirect_pieced_value): Don't call
12740         gdb_sign_extend.  Call extract_signed_integer instead.
12741         * utils.c (gdb_sign_extend): Remove.
12742         * utils.h (gdb_sign_extend): Remove declaration.
12743
12744 2015-01-07  Pierre Muller  <muller@sourceware.org>
12745
12746         PR symtab/17811
12747         * stabsread.c (define_symbol): Set language for C++ special symbols.
12748
12749 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12750
12751         * inflow.c (initial_gdb_ttystate): Tweak comment.
12752
12753 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12754
12755         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12756         comment documenting function.
12757
12758 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12759
12760         * terminal.h (set_initial_gdb_ttystate): Declare.
12761         * inflow.c (initial_gdb_ttystate): New static variable.
12762         (set_initial_gdb_ttystate): New setter.
12763         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12764         instead of our current terminal state.
12765         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12766
12767 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12768
12769         * guile/scm-type.c (tyscm_array_1): Add comment.
12770         * python/py-type.c (typy_array_1): Add comment.
12771
12772 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12773
12774         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12775         error if N2 is equal to N1 - 1.
12776
12777 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12778
12779         * python/py-type.c (typy_array_1): Do not raise negative-length
12780         exception if N2 is equal to N1 - 1.
12781
12782 2015-01-03  Doug Evans  <xdje42@gmail.com>
12783
12784         * c-exp.y: Whitespace cleanup.
12785         (classify_inner_name): Remove extra ;.
12786
12787 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12788
12789         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12790         offset signed.
12791
12792 2015-01-02  Doug Evans  <dje@google.com>
12793
12794         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12795
12796 2015-01-02  Doug Evans  <dje@google.com>
12797
12798         * symtab.h (struct symbol): Fix typo in comment.
12799
12800 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12801
12802         Update year range in copyright notice of all files.
12803
12804 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12805
12806         * top.c (print_gdb_version): Update copyright year to 2015.
12807
12808 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12809
12810         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12811
12812 For older changes see ChangeLog-2014.
12813 \f
12814 Local Variables:
12815 mode: change-log
12816 left-margin: 8
12817 fill-column: 74
12818 version-control: never
12819 coding: utf-8
12820 End: