infcmd, btrace: fix crash in 'finish' for tailcall-only frames
[external/binutils.git] / gdb / ChangeLog
1 2016-06-01  Markus Metzger  <markus.t.metzger@intel.com>
2
3         * infcmd.c (skip_finish_frames): New.
4         (finish_command): Call skip_finish_frames.
5
6 2016-06-01  Yao Qi  <yao.qi@linaro.org>
7
8         PR remote/19998
9         * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
10         quit_serial_event_set.
11
12 2016-06-01  Joel Brobecker  <brobecker@adacore.com>
13
14         GDB 7.11.1 released.
15
16 2016-05-31  Martin Galvan  <martin.galvan@tallertechnologies.com>
17
18         PR c++/19893
19         * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
20         fetch_const_value_from_synthetic_pointer): New functions.
21         (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
22         (pieced_value_funcs): Implement coerce_ref.
23         * valops.c (value_addr): Call coerce_ref for synthetic references.
24         * valprint.c (valprint_check_validity): Return true for synthetic
25         references.  Also, don't show "<synthetic pointer>" if they reference
26         addressable values.
27         (generic_val_print_ref): Handle synthetic references.  Also move some
28         code to print_ref_address.
29         (print_ref_address, get_value_addr_contents): New functions.
30
31 2016-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
32
33         PR c++/15231
34         * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
35         (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
36         (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
37         (read_call_site_scope): Adjust callers.
38         (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
39         (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
40
41 2016-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
42
43         Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
44         * dwarf2read.c (enum pc_bounds_kind) New.
45         (dwarf2_get_pc_bounds): Use it in the declaration.
46         (process_psymtab_comp_unit_reader): Adjust caller.  Rename has_pc_info
47         to cu_bounds_kind.
48         (read_func_scope, read_lexical_block_scope, read_call_site_scope):
49         Adjust callers.
50         (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
51         (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
52
53 2016-05-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
54
55         * NEWS (QCatchSyscalls): Remove the parameter.  Include ...
56         (QCatchSyscalls:1 in qSupported) ... this separate entry which got
57         deleted.
58
59 2016-05-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
60
61         * NEWS (N stop reply): Remove empty line.
62
63 2016-05-28  Alan Modra  <amodra@gmail.com>
64
65         * compile/compile-object-load.c (link_callbacks_multiple_definition,
66         link_callbacks_warning, link_callbacks_undefined_symbol,
67         link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
68         link_callbacks_reloc_dangerous,
69         link_callbacks_unattached_reloc): Return void.
70
71 2016-05-27  Andrew Burgess  <andrew.burgess@embecosm.com>
72
73         * opencl-lang.c (evaluate_subexp_opencl): If
74         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
75         the returned value in the STRUCTOP_STRUCT case.
76
77 2016-05-27  Andrew Burgess  <andrew.burgess@embecosm.com>
78
79         * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
80         mode, forward the VALUE_LVAL attribute to the returned value in
81         the STRUCTOP_PTR case.
82
83 2016-05-25  Tom Tromey  <tom@tromey.com>
84
85         * python/py-value.c (value_object_as_number): Use correct spelling
86         of HAVE_LIBPYTHON2_4.
87
88 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
89
90         * f-typeprint.c (f_type_print_base): Replace 0 by show.
91
92 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
93
94         * f-typeprint.c (f_type_print_base): Decrease show by one.
95
96 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
97
98         * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
99
100 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
101
102         * f-typeprint.c (f_type_print_base): Take print level into account.
103
104 2016-05-24  Tom Tromey  <tom@tromey.com>
105
106         PR python/17386:
107         * python/py-value.c (value_object_as_number): Add
108         nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
109
110 2016-05-24  Tom Tromey  <tom@tromey.com>
111
112         * python/py-value.c (value_object_as_number): Add
113         nb_inplace_divide for Python 2.
114
115 2016-05-23  Tom Tromey  <tom@tromey.com>
116
117         PR python/17981:
118         * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
119         when there are no breakpoints.
120
121 2016-05-24  Pedro Alves  <palves@redhat.com>
122
123         PR gdb/19828
124         * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
125         resumed, and add the thread to GDB's thread list.
126
127 2016-05-24  Pedro Alves  <palves@redhat.com>
128
129         PR gdb/19828
130         * linux-nat.c (get_pending_status): If the thread reported the
131         event to the core and it's pending, use the pending status signal
132         number.
133
134 2016-05-24  Pedro Alves  <palves@redhat.com>
135
136         PR gdb/19828
137         * linux-nat.c (lwp_lwpid_htab): New htab.
138         (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
139         (lwp_lwpid_htab_add_lwp): New functions.
140         (lwp_list): Tweak comment.
141         (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
142         functions.
143         (purge_lwp_list): Rewrite, using htab_traverse_noresize.
144         (add_initial_lwp): Add lwp to htab too.  Use lwp_list_add.
145         (delete_lwp): Use lwp_list_remove.  Remove htab too.
146         (find_lwp_pid): Search in htab.
147         (_initialize_linux_nat): Call lwp_lwpid_htab_create.
148         * linux-nat.h (struct lwp_info) <prev>: New field.
149
150 2016-05-24  Pedro Alves  <palves@redhat.com>
151
152         PR gdb/19828
153         * linux-nat.c (lwp_lwpid_htab): New htab.
154         (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
155         (lwp_lwpid_htab_add_lwp): New functions.
156         (lwp_list): Tweak comment.
157         (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
158         functions.
159         (purge_lwp_list): Rewrite, using htab_traverse_noresize.
160         (add_initial_lwp): Add lwp to htab too.  Use lwp_list_add.
161         (delete_lwp): Use lwp_list_remove.  Remove htab too.
162         (find_lwp_pid): Search in htab.
163         (_initialize_linux_nat): Call lwp_lwpid_htab_create.
164         * linux-nat.h (struct lwp_info) <prev>: New field.
165
166 2016-05-24  Pedro Alves  <palves@redhat.com>
167
168         PR gdb/19828
169         * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
170         field.
171         (linux_nat_update_thread_list): Don't fetch the core if already
172         known.
173
174 2016-05-24  Pedro Alves  <palves@redhat.com>
175
176         PR gdb/19828
177         * linux-tdep.c (find_mapping_size): Delete.
178         (linux_vsyscall_range_raw): Rewrite reading from
179         /proc/PID/task/PID/maps directly instead of using
180         gdbarch_find_memory_regions.
181
182 2016-05-24  Pedro Alves  <palves@redhat.com>
183
184         PR gdb/19828
185         * linux-nat.c (report_thread_events): New global.
186         (linux_handle_extended_wait): Report
187         TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
188         enabled.
189         (wait_lwp, linux_nat_filter_event): Report all thread exits if
190         thread event reporting is enabled.  Remove comment.
191         (filter_exit_event): New function.
192         (linux_nat_wait_1): Use it.
193         (linux_nat_thread_events): New function.
194         (linux_nat_add_target): Install it as target_thread_events method.
195
196 2016-05-24  Yan-Ting Lin  <currygt52@gmail.com>
197
198         * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
199
200 2016-05-23  Yao Qi  <yao.qi@arm.com>
201
202         * arch-utils.c (default_code_of_frame_writable): New function.
203         * arch-utils.h (default_code_of_frame_writable): Declare.
204         * arm-tdep.c (arm_code_of_frame_writable): New function.
205         (arm_gdbarch_init): Install gdbarch method
206         code_of_frame_writable if the target is M-profile.
207         * frame.c (skip_unwritable_frames): New function.
208         * frame.h (skip_unwritable_frames): Declare.
209         * gdbarch.sh (code_of_frame_writable): New.
210         * gdbarch.c, gdbarch.h: Re-generated.
211         * infcmd.c (finish_command): Call skip_unwritable_frames.
212
213 2016-05-23  Tom Tromey  <tom@tromey.com>
214
215         PR python/19438, PR python/18393:
216         * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
217         * python/py-progspace.c (pspy_initialize): Initialize self->dict.
218
219 2016-05-23  Gary Benson  <gbenson@redhat.com>
220
221         * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
222         * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
223         Remove field.
224         (try_thread_db_load_1): Remove td_thr_validate initialization.
225
226 2016-05-23  Jon Boden  <jon@ubuntubsd.org>  (tiny change)
227
228         * configure.ac: Search for libutil-freebsd as alternative to libutil.
229         * configure: Re-generated.
230
231 2016-05-19  Andreas Schwab  <schwab@suse.de>
232
233         * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
234         (libunwind_frame_set_descr): Likewise.
235         (libunwind_frame_cache): Likewise.
236         (libunwind_frame_dealloc_cache): Likewise.
237         (libunwind_frame_sniffer): Likewise.
238         (libunwind_search_unwind_table): Likewise.
239         (libunwind_sigtramp_frame_sniffer): Likewise.
240         (libunwind_get_reg_special): Likewise.
241         (libunwind_load): Likewise.
242         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
243         (ia64_linux_store_register): Likewise.
244         (ia64_linux_xfer_partial): Likewise.
245         * ia64-tdep.c (ia64_access_reg): Likewise.
246         (ia64_access_fpreg): Likewise.
247         (ia64_access_rse_reg): Likewise.
248         (ia64_access_rse_fpreg): Likewise.
249
250 2016-05-18  Tom Tromey  <tom@tromey.com>
251
252         * rust-lang.c (rust_subscript): Initialize "high".
253
254 2016-05-17  Simon Marchi  <simon.marchi@ericsson.com>
255
256         PR gdb/20045
257         * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
258         of target_is_async_p.
259
260 2016-05-17  Simon Marchi  <simon.marchi@ericsson.com>
261
262         PR gdb/18077
263         * mi/mi-main.c (run_one_inferior): Use run target to determine
264         whether to run async or not.
265         (mi_cmd_exec_run): Likewise.
266
267 2016-05-17  Tom Tromey  <tom@tromey.com>
268
269         * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
270         * rust-lang.c: Don't include f-lang.h.
271         (rust_range, rust_compute_range, rust_subscript)
272         (rust_evaluate_subexp): Update.
273         * rust-exp.y: Don't include f-lang.h.
274         (ast_range, convert_ast_to_expression): Update.
275         * parse.c (operator_length_standard): Update.
276         * f-lang.h (enum f90_range_type): Move to expression.h.
277         * f-exp.y: Use OP_RANGE.
278         * expression.h (enum range_type): New enum; renamed from
279         f90_range_type.
280         * expprint.c: Don't include f-lang.h.
281         (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
282         * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
283
284 2016-05-17  Tom Tromey  <tom@tromey.com>
285
286         * NEWS: Add Rust item.
287
288 2016-05-17  Tom Tromey  <tom@tromey.com>
289             Manish Goregaokar <manishsmail@gmail.com>
290
291         * symtab.c (symbol_find_demangled_name): Handle Rust.
292         * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
293         * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
294         constants.
295         * rust-lang.h: New file.
296         * rust-lang.c: New file.
297         * rust-exp.y: New file.
298         * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
299         (dwarf2_compute_name, read_func_scope, read_structure_type)
300         (read_base_type, read_subrange_type, set_cu_language)
301         (new_symbol_full, determine_prefix): Handle Rust.
302         * defs.h (enum language) <language_rust>: New constant.
303         * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
304         (COMMON_OBS): Add rust-exp.o, rust-lang.o.
305
306 2016-05-17  Tom Tromey  <tom@tromey.com>
307
308         * valprint.h (struct generic_val_print_array) <array_start,
309         array_end>: New fields.
310         * valprint.c (generic_val_print_array): Add "decorations"
311         parameter.  Use "array_start", "array_end".
312         (generic_val_print) <TYPE_CODE_ARRAY>: Update.
313         * p-valprint.c (p_decorations): Update.
314         * m2-valprint.c (m2_decorations): Update.
315         * f-valprint.c (f_decorations): Update.
316         * c-valprint.c (c_decorations): Update.
317
318 2016-05-17  Tom Tromey  <tom@tromey.com>
319
320         * NEWS: Add "maint selftest" entry.
321         * selftest.h: New file.
322         * selftest.c: New file.
323         * maint.c: Include selftest.h.
324         (maintenance_selftest): New function.
325         (_initialize_maint_cmds): Add "maint selftest" command.
326         * configure.ac (GDB_SELF_TEST): Maybe define.
327         * config.in, configure: Rebuild.
328         * Makefile.in (SFILES): Add selftest.c.
329         (COMMON_OBS): Add selftest.o.
330
331 2016-05-17  Tom Tromey  <tom@tromey.com>
332
333         * expprint.c: Include f-lang.h.
334         (print_subexp_standard, dump_subexp_body_standard): Handle
335         OP_F90_RANGE.
336
337 2016-05-17  Tom Tromey  <tom@tromey.com>
338
339         * Makefile.in (init.c): Search .y files for initialization
340         functions.
341
342 2016-05-12  Doug Evans  <dje@google.com>
343
344         PR symtab/19999
345         * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
346         add base_offset.
347
348 2016-05-10  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
349
350         * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
351         anything.
352         * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
353
354 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
355
356         * arm-tdep.c (arm_elf_make_msymbol_special): Use
357         ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
358
359 2016-05-07  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
360
361         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
362         variables.
363         * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
364         (aarch64_scan_prologue): Likewise.
365         (aarch64_prologue_prev_register): Likewise.
366         (aarch64_dwarf2_prev_register): Likewise.
367         (pass_in_v): Likewise.
368         (aarch64_push_dummy_call): Likewise.
369         (aarch64_breakpoint_from_pc): Likewise.
370         (aarch64_return_in_memory): Likewise.
371         (aarch64_return_value): Likewise.
372         (aarch64_displaced_step_b_cond): Likewise.
373         (aarch64_displaced_step_cb): Likewise.
374         (aarch64_displaced_step_tb): Likewise.
375         (aarch64_gdbarch_init): Likewise.
376         (aarch64_process_record): Likewise.
377         * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
378         * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
379         * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
380         * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
381         * amd64-tdep.c (fixup_riprel): Likewise.
382         * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
383         (amd64_windows_frame_decode_insns): Likewise.
384         (amd64_windows_frame_cache): Likewise.
385         (amd64_windows_frame_prev_register): Likewise.
386         (amd64_windows_frame_this_id): Likewise.
387         (amd64_windows_init_abi): Likewise.
388         * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
389         (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
390         * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
391         * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
392         (arm_epilogue_frame_prev_register): Likewise.
393         (arm_record_vdata_transfer_insn): Likewise.
394         (arm_record_exreg_ld_st_insn): Likewise.
395         * auto-load.c (execute_script_contents): Likewise.
396         (print_scripts): Likewise.
397         * avr-tdep.c (avr_frame_prev_register): Likewise.
398         (avr_push_dummy_call): Likewise.
399         * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
400         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
401         * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
402         * break-catch-throw.c (fetch_probe_arguments): Likewise.
403         * breakpoint.c (breakpoint_xfer_memory): Likewise.
404         (breakpoint_init_inferior): Likewise.
405         (breakpoint_inserted_here_p): Likewise.
406         (software_breakpoint_inserted_here_p): Likewise.
407         (hardware_breakpoint_inserted_here_p): Likewise.
408         (bpstat_what): Likewise.
409         (break_range_command): Likewise.
410         (save_breakpoints): Likewise.
411         * coffread.c (coff_symfile_read): Likewise.
412         * cris-tdep.c (cris_push_dummy_call): Likewise.
413         (cris_scan_prologue): Likewise.
414         (cris_register_size): Likewise.
415         (_initialize_cris_tdep): Likewise.
416         * d-exp.y: Likewise.
417         * dbxread.c (dbx_read_symtab): Likewise.
418         (process_one_symbol): Likewise.
419         (coffstab_build_psymtabs): Likewise.
420         (elfstab_build_psymtabs): Likewise.
421         * dicos-tdep.c (dicos_init_abi): Likewise.
422         * disasm.c (do_mixed_source_and_assembly): Likewise.
423         (gdb_disassembly): Likewise.
424         * dtrace-probe.c (dtrace_process_dof): Likewise.
425         * dwarf2read.c (error_check_comp_unit_head): Likewise.
426         (build_type_psymtabs_1): Likewise.
427         (skip_one_die): Likewise.
428         (process_imported_unit_die): Likewise.
429         (dwarf2_physname): Likewise.
430         (read_file_scope): Likewise.
431         (setup_type_unit_groups): Likewise.
432         (create_dwo_cu_reader): Likewise.
433         (create_dwo_cu): Likewise.
434         (create_dwo_unit_in_dwp_v1): Likewise.
435         (create_dwo_unit_in_dwp_v2): Likewise.
436         (lookup_dwo_unit_in_dwp): Likewise.
437         (free_dwo_file): Likewise.
438         (check_producer): Likewise.
439         (dwarf2_add_typedef): Likewise.
440         (dwarf2_add_member_fn): Likewise.
441         (read_unsigned_leb128): Likewise.
442         (read_signed_leb128): Likewise.
443         (dwarf2_const_value): Likewise.
444         (follow_die_sig_1): Likewise.
445         (dwarf_decode_macro_bytes): Likewise.
446         * extension.c (restore_active_ext_lang): Likewise.
447         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
448         * ft32-tdep.c (ft32_analyze_prologue): Likewise.
449         * gdbtypes.c (lookup_typename): Likewise.
450         (resolve_dynamic_range): Likewise.
451         (check_typedef): Likewise.
452         * h8300-tdep.c (h8300_is_argument_spill): Likewise.
453         (h8300_gdbarch_init): Likewise.
454         * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
455         (hppa_frame_this_id): Likewise.
456         (_initialize_hppa_tdep): Likewise.
457         * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
458         * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
459         * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
460         * i386-tdep.c (i386_bnd_type): Likewise.
461         (i386_gdbarch_init): Likewise.
462         (i386_mpx_bd_base): Likewise.
463         * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
464         * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
465         * ia64-tdep.c (examine_prologue): Likewise.
466         (ia64_frame_cache): Likewise.
467         (ia64_push_dummy_call): Likewise.
468         * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
469         (default_print_one_register_info): Likewise.
470         * infrun.c (infrun_thread_ptid_changed): Likewise.
471         (thread_still_needs_step_over): Likewise.
472         (stop_all_threads): Likewise.
473         (restart_threads): Likewise.
474         (keep_going_stepped_thread): Likewise.
475         * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
476         * language.c (language_init_primitive_type_symbols): Likewise.
477         * linespec.c (add_sal_to_sals): Likewise.
478         * linux-nat.c (status_callback): Likewise.
479         (kill_unfollowed_fork_children): Likewise.
480         (linux_nat_kill): Likewise.
481         * linux-tdep.c (linux_fill_prpsinfo): Likewise.
482         * linux-thread-db.c (thread_db_notice_clone): Likewise.
483         (record_thread): Likewise.
484         * location.c (string_to_event_location_basic): Likewise.
485         * m32c-tdep.c (m32c_prev_register): Likewise.
486         * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
487         * m32r-tdep.c (decode_prologue): Likewise.
488         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
489         * machoread.c (macho_symtab_read): Likewise.
490         (macho_symfile_read): Likewise.
491         (macho_symfile_offsets): Likewise.
492         * maint.c (set_per_command_cmd): Likewise.
493         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
494         (mi_cmd_stack_list_variables): Likewise.
495         * mi/mi-main.c (mi_cmd_exec_run): Likewise.
496         (output_register): Likewise.
497         (mi_cmd_execute): Likewise.
498         (mi_cmd_trace_define_variable): Likewise.
499         (print_variable_or_computed): Likewise.
500         * minsyms.c (prim_record_minimal_symbol_full): Likewise.
501         * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
502         * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
503         * mt-tdep.c (mt_registers_info): Likewise.
504         * nios2-tdep.c (nios2_analyze_prologue): Likewise.
505         (nios2_push_dummy_call): Likewise.
506         (nios2_frame_unwind_cache): Likewise.
507         (nios2_stub_frame_cache): Likewise.
508         (nios2_stub_frame_sniffer): Likewise.
509         (nios2_gdbarch_init): Likewise.
510         * ppc-ravenscar-thread.c: Likewise.
511         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
512         * python/py-evts.c (add_new_registry): Likewise.
513         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
514         (bpfinishpy_detect_out_scope_cb): Likewise.
515         * python/py-framefilter.c (py_print_value): Likewise.
516         * python/py-inferior.c (infpy_write_memory): Likewise.
517         * python/py-infevents.c (create_inferior_call_event_object): Likewise.
518         * python/py-infthread.c (thpy_get_ptid): Likewise.
519         * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
520         (ltpy_get_all_source_lines): Likewise.
521         (ltpy_is_valid): Likewise.
522         (ltpy_iternext): Likewise.
523         * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
524         * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
525         (unwind_infopy_str): Likewise.
526         * python/py-varobj.c (py_varobj_get_iterator): Likewise.
527         * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
528         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
529         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
530         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
531         * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
532         (s390_frame_prev_register): Likewise.
533         (s390_dwarf2_frame_init_reg): Likewise.
534         (s390_record_vr): Likewise.
535         (s390_process_record): Likewise.
536         * score-tdep.c (score_push_dummy_call): Likewise.
537         (score3_analyze_prologue): Likewise.
538         * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
539         * sh64-tdep.c (sh64_analyze_prologue): Likewise.
540         (sh64_push_dummy_call): Likewise.
541         (sh64_extract_return_value): Likewise.
542         (sh64_do_fp_register): Likewise.
543         * solib-aix.c (solib_aix_get_section_offsets): Likewise.
544         * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
545         (darwin_solib_read_all_image_info_addr): Likewise.
546         * solib-dsbt.c (enable_break): Likewise.
547         * solib-frv.c (enable_break2): Likewise.
548         (frv_fdpic_find_canonical_descriptor): Likewise.
549         * solib-svr4.c (svr4_handle_solib_event): Likewise.
550         * sparc-tdep.c (sparc_skip_stack_check): Likewise.
551         * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
552         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
553         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
554         * stack.c (read_frame_local): Likewise.
555         * symfile.c (symbol_file_add_separate): Likewise.
556         (remove_symbol_file_command): Likewise.
557         * symmisc.c (maintenance_print_one_line_table): Likewise.
558         * symtab.c (symbol_cache_flush): Likewise.
559         (basic_lookup_transparent_type): Likewise.
560         (sort_search_symbols_remove_dups): Likewise.
561         * target.c (target_memory_map): Likewise.
562         (target_detach): Likewise.
563         (target_resume): Likewise.
564         (acquire_fileio_fd): Likewise.
565         (target_store_registers): Likewise.
566         * thread.c (print_thread_info_1): Likewise.
567         * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
568         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
569         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
570         (tilegx_analyze_prologue): Likewise.
571         (tilegx_stack_frame_destroyed_p): Likewise.
572         (tilegx_frame_cache): Likewise.
573         * tracefile.c (trace_save): Likewise.
574         * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
575         (start_tracing): Likewise.
576         (print_one_static_tracepoint_marker): Likewise.
577         * tui/tui.c (tui_enable): Likewise.
578         * valops.c (value_struct_elt_bitpos): Likewise.
579         (find_overload_match): Likewise.
580         (find_oload_champ): Likewise.
581         * value.c (value_contents_copy_raw): Likewise.
582         * windows-tdep.c (windows_get_tlb_type): Likewise.
583         * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
584         * xcoffread.c (record_minimal_symbol): Likewise.
585         (scan_xcoff_symtab): Likewise.
586         * xtensa-tdep.c (execute_code): Likewise.
587         (xtensa_gdbarch_init): Likewise.
588         (_initialize_xtensa_tdep): Likewise.
589
590 2016-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
591
592         * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
593         (spu_bfd_open): Likewise.
594
595 2016-05-04  Yao Qi  <yao.qi@linaro.org>
596
597         PR gdb/19947
598         * corefile.c (read_memory): Rename it to ...
599         (read_memory_object): ... it.  Add parameter object.
600         (read_memory): Call read_memory_object.
601         (read_stack): Likewise.
602         (read_code): Likewise.
603
604 2016-05-03  Yunlian Jiang <yunlian@google.com>
605             Doug Evans  <dje@google.com>
606
607         PR symtab/19914
608         * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
609         is separate debug file.
610
611 2016-05-03  Don Breazeal <donb@codesourcery.com>
612
613         * serial.h (gdb_pipe): Fix argument names in comment.
614
615 2016-05-03  Pedro Alves <palves@redhat.com>
616
617         PR python/20037
618         * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
619         oldloc.
620
621 2016-05-03  Pedro Alves <palves@redhat.com>
622
623         * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
624         code.
625
626 2016-05-03  Pedro Alves  <palves@redhat.com>
627
628         * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
629         * configure: Regenerate.
630
631 2016-05-03  Pedro Alves  <palves@redhat.com>
632
633         * configure.ac (checking for the dynamic export flag): Add
634         $PYTHON_CPPFLAGS to CPPFLAGS.
635         * configure: Regenerate.
636
637 2016-05-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
638
639         * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
640         warning.
641         (find_pc_mapped_section): Likewise.
642         (list_overlays_command): Likewise.
643
644 2016-05-02  Eli Zaretskii  <eliz@gnu.org>
645
646         * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
647         error in allocation of space for "$HOME/.gdbinit" string.  This
648         caused GDB to abort on startup whenever a '~/gdb.ini' file was
649         actually found, because xsnprintf would hit an assertion
650         violation.
651
652 2016-04-28  Simon Marchi  <simon.marchi@ericsson.com>
653
654         * cli/cli-decode.c (help_cmd_list): Do not list commands that
655         are deprecated.
656
657 2016-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
658
659         * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
660
661 2016-04-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
662
663         * c-valprint.c (c_value_print): Always convert val back to reference
664         type if we converted it to a pointer type.
665
666 2016-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
667
668         * configure.ac: Enhance configure check for babeltrace to reject
669         non-C++-enabled versions.
670         * configure: Regenerate.
671
672 2016-04-26  Sanimir Agovic  <sanimir.agovic@intel.com>
673             Keven Boell  <keven.boell@intel.com>
674             Bernhard Heckel  <bernhard.heckel@intel.com>
675
676         * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
677         function.
678         (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
679         (f77_print_array_1): Use value_subscript to subscript a
680         value array.
681         (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
682         (f_val_print): Use value_field to construct a field value.
683
684 2016-04-26  Bernhard Heckel  <bernhard.heckel@intel.com>
685
686         * valarith.c (value_address): Resolve dynamic types.
687
688 2016-04-26  Bernhard Heckel  <bernhard.heckel@intel.com>
689             Keven Boell  <kevel.boell@intel.com>
690
691         * NEWS: Add new supported features for fortran.
692         * gdbtypes.c (remove_dyn_prop): New.
693         (resolve_dynamic_struct): Keep type length for fortran structs.
694         * gdbtypes.h: Forward declaration of new function.
695         * value.c (value_address): Return dynamic resolved location of a value.
696         (set_value_component_location): Adjust the value address
697         for single value prints.
698         (value_primitive_field): Support value types with a dynamic location.
699         (set_internalvar): Remove dynamic location property of
700         internal variables.
701
702 2016-04-25  Pedro Alves  <palves@redhat.com>
703             Yao Qi  <yao.qi@linaro.org>
704
705         * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
706         object.  Insert it if it is not inserted yet.  Increase the
707         refcount and link it into the proc's raw breakpoint list.
708
709 2016-04-25  Yao Qi  <yao.qi@linaro.org>
710
711         * breakpoint.c (should_be_inserted): Return 0 if the location's
712         owner is not single step breakpoint or single step breakpoint's
713         thread isn't the thread which is stepping past a breakpoint.
714         * gdbarch.sh (software_single_step): Update comments.
715         * gdbarch.h: Regenerated.
716         * infrun.c (struct step_over_info) <thread>: New field.
717         (set_step_over_info): New argument 'thread'.  Callers updated.
718         (clear_step_over_info): Set field thread to -1.
719         (thread_is_stepping_over_breakpoint): New function.
720         * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
721
722 2016-04-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
723
724         * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
725         and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
726
727 2016-04-22  Yao Qi  <yao.qi@linaro.org>
728
729         * valops.c (read_value_memory): New local variable 'stack'.
730         Set it to either TARGET_OBJECT_STACK_MEMORY or
731         TARGET_OBJECT_MEMORY.
732
733 2016-04-22  Pedro Alves  <palves@redhat.com>
734
735         * ada-exp.y: Remove all yy symbol remappings.
736         (GDB_YY_REMAP_PREFIX): Define.
737         Include "yy-remap.h".
738         * ada-lang.c (ada_language_defn): Adjust.
739         * ada-lang.h (ada_error): Rename to ...
740         (ada_yyerror): ... this.
741         * c-exp.y: Remove all yy symbol remappings.
742         (GDB_YY_REMAP_PREFIX): Define.
743         Include "yy-remap.h".
744         * c-lang.c (c_language_defn, cplus_language_defn)
745         (asm_language_defn, minimal_language_defn): Adjust.
746         * c-lang.h (c_error): Rename to ...
747         (c_yyerror): ... this.
748         * d-exp.y: Remove all yy symbol remappings.
749         (GDB_YY_REMAP_PREFIX): Define.
750         Include "yy-remap.h".
751         * d-lang.c (d_language_defn): Adjust.
752         * d-lang.h (d_error): Rename to ...
753         (d_yyerror): ... this.
754         * f-exp.y: Remove all yy symbol remappings.
755         (GDB_YY_REMAP_PREFIX): Define.
756         Include "yy-remap.h".
757         * f-lang.c (f_language_defn): Adjust.
758         * f-lang.h (f_error): Rename to ...
759         (f_yyerror): ... this.
760         * go-exp.y: Remove all yy symbol remappings.
761         (GDB_YY_REMAP_PREFIX): Define.
762         Include "yy-remap.h".
763         * go-lang.c (go_language_defn): Adjust.
764         * go-lang.h (go_error): Rename to ...
765         (go_yyerror): ... this.
766         * jv-exp.y: Remove all yy symbol remappings.
767         (GDB_YY_REMAP_PREFIX): Define.
768         Include "yy-remap.h".
769         * jv-lang.c (java_language_defn): Adjust.
770         * jv-lang.h (java_error): Rename to ...
771         (java_yyerror): ... this.
772         * m2-exp.y: Remove all yy symbol remappings.
773         (GDB_YY_REMAP_PREFIX): Define.
774         Include "yy-remap.h".
775         * m2-lang.c (m2_language_defn): Adjust.
776         * m2-lang.h (m2_error): Rename to ...
777         (m2_yyerror): ... this.
778         * objc-exp.y: Remove all yy symbol remappings.
779         (GDB_YY_REMAP_PREFIX): Define.
780         Include "yy-remap.h".
781         * objc-lang.c (objc_language_defn): Adjust.
782         * opencl-lang.c (opencl_language_defn): Adjust.
783         * p-exp.y: Remove all yy symbol remappings.
784         (GDB_YY_REMAP_PREFIX): Define.
785         Include "yy-remap.h".
786         * p-lang.c (pascal_language_defn): Adjust.
787         * p-lang.h (pascal_error): Rename to ...
788         (pascal_yyerror): ... this.
789         * yy-remap.h: New file.
790
791 2016-04-22  Pedro Alves  <palves@redhat.com>
792
793         * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
794         the foreign frames issue.
795         [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
796
797 2016-04-22  Pedro Alves  <palves@redhat.com>
798
799         * common/common-exceptions.c (enum catcher_state, struct catcher)
800         (current_catcher): Define in C++ mode too.
801         (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
802         throw_exception.
803         (throw_exception_sjlj, throw_exception_cxx): New functions,
804         factored out from throw_exception.
805         (throw_exception): Reimplement.
806         * common/common-exceptions.h (exceptions_state_mc_init)
807         (exceptions_state_mc_action_iter)
808         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
809         Declare in C++ mode too.
810         (TRY): Rename to ...
811         (TRY_SJLJ): ... this.
812         (CATCH): Rename to ...
813         (CATCH_SJLJ): ... this.
814         (END_CATCH): Rename to ...
815         (END_CATCH_SJLJ): ... this.
816         [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
817         equivalents.
818         (throw_exception): Update comments.
819         (throw_exception_sjlj): Declare.
820         * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
821         comment.  Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
822         intercepted exception.
823         (gdb_rl_callback_handler): New function.
824         (gdb_rl_callback_handler_install): Always install
825         gdb_rl_callback_handler as readline callback.
826
827 2016-04-22  Pedro Alves  <palves@redhat.com>
828
829         * event-top.c (rl_callback_read_char_wrapper): Rename to ...
830         (gdb_rl_callback_read_char_wrapper): ... this.
831         (change_line_handler, gdb_setup_readline): Adjust.
832
833 2016-04-22  Yao Qi  <yao.qi@linaro.org>
834
835         * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
836         bits 20 to 23.
837
838 2016-04-22  Joel Brobecker  <brobecker@adacore.com>
839
840         * MAINTAINER: Remove myself as AIX Maintainer.
841
842 2016-04-22  Maciej W. Rozycki  <macro@imgtec.com>
843
844         * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
845         `num_regs' to 90 rather than 79.  Where a target description is
846         present adjust the setting appropriately.
847
848 2016-04-21  Pedro Alves  <palves@redhat.com>
849
850         * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
851         (GDB_XCPT): Always define as GDB_XCPT_SJMP.
852
853 2016-04-21  Pedro Alves  <palves@redhat.com>
854
855         * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
856         (aix_thread_resume): Use PTRACE_TYPE_ARG5.
857         * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
858         (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
859         pointer, and cast return to gdb_byte pointer.
860
861 2016-04-21  Pedro Alves  <palves@redhat.com>
862
863         * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
864         void * instead of gdb_byte *.
865
866 2016-04-21  Pedro Alves  <palves@redhat.com>
867
868         * dwarf2read.c (try_open_dwop_file, open_dwo_file)
869         (file_file_name, file_full_name): Add char * cast to sentinel in
870         concat/reconcat calls.
871         * event-top.c (top_level_prompt): Likewise.
872         * guile/guile.c (initialize_scheme_side): Likewise.
873         * linux-tdep.c (linux_fill_prpsinfo): Likewise.
874         * macrotab.c (macro_source_fullname): Likewise.
875         * main.c (get_init_files, captured_main): Likewise.
876         * psymtab.c (psymtab_to_fullname): Likewise.
877         * python/python.c (_initialize_python)
878         (gdbpy_finish_initialization): Likewise.
879         * source.c (symtab_to_fullname): Likewise.
880
881 2016-04-20  Pedro Alves  <palves@redhat.com>
882
883         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
884         * configure: Renegerate.
885
886 2016-04-20  Pedro Alves  <palves@redhat.com>
887
888         * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
889
890 2016-04-20  Pedro Alves  <palves@redhat.com>
891
892         * aarch64-tdep.c (aarch64_record_load_store): Change type of
893         'reg_rm_val' local to ULONGEST.
894
895 2016-04-20  Pedro Alves  <palves@redhat.com>
896
897         * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
898
899 2016-04-20  Doug Evans  <xdje42@gmail.com>
900
901         * symmisc.c (dump_symtab_1): Print owning compunit for identical
902         blockvectors.
903
904 2016-04-20  Yao Qi  <yao.qi@linaro.org>
905
906         * aarch32-linux-nat.c: Include "arch/arm-linux.h".
907
908 2016-04-20  Yao Qi  <yao.qi@linaro.org>
909
910         * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
911         * arch/arm-linux.h: ... here.
912
913 2016-04-19  John Baldwin  <jhb@FreeBSD.org>
914
915         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
916         to void *.
917         (amd64bsd_store_inferior_registers): Likewise.
918         * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
919         (resume_all_threads_cb): Likewise.
920         * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
921         (i386bsd_collect_gregset): Likewise.
922         (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
923         (i386bsd_store_inferior_registers): Likewise.
924
925 2016-04-19  John Baldwin  <jhb@FreeBSD.org>
926
927         * main.c (setup_alternate_signal_stack): Cast to char *.
928
929 2016-04-19  Doug Evans  <xdje42@gmail.com>
930
931         * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
932         All callers updated.
933
934 2016-04-19  Doug Evans  <xdje42@gmail.com>
935
936         PR gdb/17911
937         * source.c (is_regular_file): New arg errno_ptr.
938         All callers updated.
939
940 2016-04-19  Andreas Arnez  <arnez@linux.vnet.ibm.com>
941
942         * linux-record.c (record_linux_system_call): Merge handling for
943         readlink/recv/read and pipe/pipe2.
944
945 2016-04-14  Walfred Tedeschi  <walfred.tedeschi@intel.com>
946
947         * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
948         * features/i386/amd64-mpx.xml: Remove AVX feature.
949         * features/i386/i386-mpx-linux.xml: Remove AVX feature.
950         * features/i386/i386-mpx.xml: Remove AVX feature.
951         * features/i386/amd64-mpx-linux.c: Regenerate.
952         * features/i386/amd64-mpx.c: Regenerate.
953         * features/i386/i386-mpx-linux.c: Regenerate.
954         * features/i386/i386-mpx.c: Regenerate.
955         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
956         * regformats/i386/amd64-mpx.dat: Regenerate.
957         * regformats/i386/i386-mpx-linux.dat: Regenerate.
958         * regformats/i386/i386-mpx.dat: Regenerate.
959
960 2016-04-16  Walfred Tedeschi  <walfred.tedeschi@intel.com>
961
962         * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
963         New include.
964         (amd64_linux_core_read_description): Add case for
965          X86_XSTATE_AVX_MPX_MASK.
966         (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
967         * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
968         * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
969         (amd64_target_description): Add case for  X86_XSTATE_AVX_MPX_MASK.
970         (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
971         * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
972         (X86_XSTATE_AVX_MPX_MASK): New case.
973         * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
974         (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
975         (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
976         (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
977         New expedites.
978         * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
979         include.
980         (i386_linux_core_read_description): Add case
981         X86_XSTATE_AVX_MPX_MASK.
982         (_initialize_i386_linux_tdep): Call
983         initialize_tdesc_i386_avx_mpx_linux.
984         * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
985         * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
986         (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
987         * x86-linux-nat.c (x86_linux_read_description): Add case for
988         X86_XSTATE_AVX_MPX_MASK.
989         * features/i386/amd64-avx-mpx-linux.xml: New file.
990         * features/i386/i386-avx-mpx-linux.xml: New file.
991         * features/i386/i386-avx-mpx.xml: New file.
992         * features/i386/amd64-avx-mpx.xml: New file.
993         * features/i386/amd64-avx-mpx-linux.c: Generated.
994         * features/i386/amd64-avx-mpx.c: Generated.
995         * features/i386/i386-avx-mpx-linux.c: Generated.
996         * features/i386/i386-avx-mpx.c: Generated.
997         * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
998         * regformats/i386/amd64-avx-mpx.dat: Generated.
999         * regformats/i386/i386-avx-mpx-linux.dat: Generated.
1000         * regformats/i386/i386-avx-mpx.dat: Generated.
1001
1002 2016-04-18  Pedro Alves  <palves@redhat.com>
1003
1004         * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
1005         * configure: Regenerate.
1006
1007 2016-04-18  Martin Galvan  <martin.galvan@tallertechnologies.com>
1008
1009         * valops.c (value_addr): For C++ references, set the copied value's
1010         enclosing_type as well.
1011
1012 2016-04-18  Yao Qi  <yao.qi@linaro.org>
1013
1014         Revert:
1015         2016-04-15  Yao Qi  <yao.qi@linaro.org>
1016
1017         * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
1018         PC is far from the end of function.
1019
1020 2016-04-16  Pedro Alves  <palves@redhat.com>
1021
1022         * ada-exp.y (yydefred): Define as ada_yydefred.
1023
1024 2016-04-15  Pedro Alves  <palves@redhat.com>
1025
1026         * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
1027         'name_str' locals.
1028
1029 2016-04-15  Pedro Alves  <palves@redhat.com>
1030
1031         * btrace.c (pt_btrace_insn_flags): Change return type to
1032         btrace_insn_flags.  Use btrace_insn_flags for local.
1033
1034 2016-04-15  Pedro Alves  <palves@redhat.com>
1035
1036         * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
1037         accept TRAP_BRKPT.
1038          [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
1039
1040 2016-04-15  Yao Qi  <yao.qi@linaro.org>
1041
1042         * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
1043         PC is far from the end of function.
1044
1045 2016-04-14  Pedro Alves  <palves@redhat.com>
1046
1047         * cli/cli-cmds.c (alias_usage_error): New function.
1048         (alias_command): Use it.
1049         * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
1050         ctf_save_write_metadata call.
1051
1052 2016-04-14  Pedro Alves  <palves@redhat.com>
1053
1054         * ada-typeprint.c (print_fixed_point_type): Don't pass float as
1055         argument to function expecting LONGEST.
1056         * value.c (unpack_long): Add casts to LONGEST.
1057
1058 2016-04-13  Luis Machado  <lgustavo@codesourcery.com>
1059
1060         * exec.c (exec_file_locate_attach): Guard a couple functions
1061         that can throw errors.
1062         (exception_print_same): New helper function.
1063
1064 2016-04-13  Pedro Alves  <palves@redhat.com>
1065
1066         PR remote/19840
1067         * remote.c (struct remote_state) <last_resume_exec_dir>: New
1068         field.
1069         (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
1070         (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
1071         (remote_resume): Store the last execution direction.
1072         (remote_execution_direction): New function.
1073         (init_remote_ops): Install it as to_execution_direction target_ops
1074         method.
1075
1076 2016-04-12  Pedro Alves  <palves@redhat.com>
1077
1078         * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
1079         [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
1080
1081 2016-04-12  Pedro Alves  <palves@redhat.com>
1082
1083         * common/common-exceptions.c (struct catcher) <buf>: Now a
1084         'jmp_buf' instead of SIGJMP_BUF.
1085         (exceptions_state_mc_init): Change return type to 'jmp_buf'.
1086         (throw_exception): Use longjmp instead of SIGLONGJMP.
1087         * common/common-exceptions.h: Include <setjmp.h> instead of
1088         "gdb_setjmp.h".
1089         (exceptions_state_mc_init): Change return type to 'jmp_buf'.
1090         [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
1091         SIGSETJMP.
1092         * cp-support.c: Include "gdb_setjmp.h".
1093
1094 2016-04-12  Pedro Alves  <palves@redhat.com>
1095
1096         * common/common-exceptions.c (exception_rethrow): Remove
1097         prepare_to_throw_exception call.
1098         * common/common-exceptions.h (prepare_to_throw_exception): Delete
1099         declaration.
1100         * exceptions.c (prepare_to_throw_exception): Delete.
1101
1102 2016-04-12  Pedro Alves  <palves@redhat.com>
1103
1104         * target.c (target_check_pending_interrupt): Delete.
1105         * target.h (struct target_ops) <to_check_pending_interrupt>:
1106         Remove method.
1107         (target_check_pending_interrupt): Remove declaration.
1108         * target-delegates.c: Regenerate.
1109
1110 2016-04-12  Pedro Alves  <palves@redhat.com>
1111
1112         * defs.h: Update comments on SIGINT handling.
1113         (immediate_quit): Delete declaration.
1114         * event-loop.c (call_async_signal_handler): Delete.
1115         * event-loop.h (call_async_signal_handler): Delete declaration.
1116         (mark_async_signal_handler): Update comments.
1117         (gdb_call_async_signal_handler): Delete declaration.
1118         * event-top.c (handle_sigint): Call mark_async_signal_handler
1119         instead of gdb_call_async_signal_handler.
1120         * exceptions.c (prepare_to_throw_exception): Remove reference to
1121         immediate_quit.
1122         (exception_fprintf): Remove comments about immediate_quit.
1123         * mingw-hdep.c (sigint_event, sigint_handler): Delete.
1124         (gdb_select): Don't wait on sigint_event.
1125         (gdb_call_async_signal_handler): Delete.
1126         (_initialize_mingw_hdep): Delete.
1127         * posix-hdep.c (gdb_call_async_signal_handler): Delete.
1128         * utils.c (immediate_quit): Delete.
1129
1130 2016-04-12  Pedro Alves  <palves@redhat.com>
1131
1132         * defs.h (quit_handler_ftype, quit_handler)
1133         (make_cleanup_override_quit_handler, default_quit_handler): New.
1134         (QUIT): Adjust comments.
1135         * event-top.c (default_quit_handler): New function.
1136         (quit_handler): New global.
1137         (struct quit_handler_cleanup_data): New.
1138         (restore_quit_handler, restore_quit_handler_dtor)
1139         (make_cleanup_override_quit_handler): New.
1140         (async_request_quit): Call QUIT.
1141         * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
1142         (async_sigint_remote_twice_token, async_sigint_remote_token):
1143         Delete.
1144         (remote_close): Update comments.
1145         (remote_start_remote): Don't set immediate_quit.  Set starting_up
1146         earlier.
1147         (remote_serial_quit_handler, remote_unpush_and_throw): New
1148         functions.
1149         (remote_open_1): Clear got_ctrlc_during_io.  Set
1150         remote_async_terminal_ours_p unconditionally.
1151         (async_initialize_sigint_signal_handler)
1152         (async_handle_remote_sigint, async_handle_remote_sigint_twice)
1153         (remote_check_pending_interrupt, async_remote_interrupt)
1154         (async_remote_interrupt_twice)
1155         (async_cleanup_sigint_signal_handler, ofunc)
1156         (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
1157         (remote_terminal_inferior, remote_terminal_ours): Remove async
1158         checks.
1159         (remote_wait_as): Don't install a SIGINT handler in sync mode.
1160         (readchar, remote_serial_write): Override the quit handler with
1161         remote_serial_quit_handler.
1162         (getpkt_or_notif_sane_1): Don't call QUIT.
1163         (initialize_remote_ops): Don't install
1164         remote_check_pending_interrupt.
1165         (_initialize_remote): Don't create async_sigint_remote_token and
1166         async_sigint_remote_twice_token.
1167         * ser-base.c (ser_base_wait_for): Call QUIT and use
1168         interruptible_select.
1169         (ser_base_write): Call QUIT.
1170         * ser-go32.c (dos_readchar, dos_write): Call QUIT.
1171         * ser-unix.c (wait_for): Don't use VTIME.  Always take the
1172         gdb_select path, but call QUIT and interruptible_select.
1173         * utils.c (maybe_quit): Call the current quit handler.  Don't call
1174         target_check_pending_interrupt.
1175         (defaulted_query, prompt_for_continue): Override the quit handler
1176         with the default quit handler.
1177
1178 2016-04-12  Pedro Alves  <palves@redhat.com>
1179
1180         * tui/tui-hooks.c (tui_target_has_run): Delete.
1181         (tui_about_to_proceed): Delete.
1182         (tui_about_to_proceed_observer): Delete.
1183         (tui_install_hooks, tui_remove_hooks): Don't install/remove an
1184         about_to_proceed observer.
1185
1186 2016-04-12  Pedro Alves  <palves@redhat.com>
1187
1188         * mi/mi-interp.c (mi_new_thread): Put
1189         target_terminal_ours_for_output in effect while outputting.
1190         (mi_thread_exit): Use target_terminal_ours_for_output instead of
1191         target_terminal_ours.
1192         (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1193         (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1194         (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1195         (mi_breakpoint_created, mi_breakpoint_deleted)
1196         (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
1197         (mi_command_param_changed, mi_memory_changed)
1198         (report_initial_inferior): Use target_terminal_ours_for_output
1199         instead of target_terminal_ours.  Restore terminal settings.
1200         * mi/mi-main.c (mi_execute_command): Use
1201         target_terminal_ours_for_output instead of target_terminal_ours.
1202         Restore terminal settings.
1203
1204 2016-04-12  Pedro Alves  <palves@redhat.com>
1205
1206         PR gdb/19828
1207         * gnu-nat.c (inf_validate_task_sc): Don't call
1208         target_terminal_ours / target_terminal_inferior around query.
1209         * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
1210         call target_terminal_ours / target_terminal_inferior around
1211         yquery.
1212         * linux-record.c (record_linux_system_call): Don't call
1213         target_terminal_ours / target_terminal_inferior around yquery.
1214         * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
1215         / target_terminal_inferior around query.
1216         * record-full.c (record_full_check_insn_num): Remove
1217         'set_terminal' parameter.  Don't call target_terminal_ours /
1218         target_terminal_inferior around query.
1219         (record_full_message, record_full_registers_change)
1220         (record_full_xfer_partial): Adjust.
1221         * remote.c (interrupt_query): Don't call target_terminal_ours /
1222         target_terminal_inferior around query.
1223         * utils.c (defaulted_query): Install cleanup to restore target
1224         terminal.  Put target_terminal_ours_for_output in effect while
1225         defaulted producing, and target_terminal_ours in in effect while
1226         handling input.
1227         (prompt_for_continue): Install cleanup to restore target terminal.
1228         Put target_terminal_ours in in effect while handling input.
1229
1230 2016-04-12  Pedro Alves  <palves@redhat.com>
1231
1232         * utils.c (defaulted_query, prompt_for_continue): Free temporary
1233         strings with cleanups, instead of xfree.
1234
1235 2016-04-12  Pedro Alves  <palves@redhat.com>
1236
1237         * utils.c (vwarning, internal_vproblem): Use
1238         make_cleanup_restore_target_terminal and
1239         target_terminal_ours_for_output.
1240
1241 2016-04-12  Pedro Alves  <palves@redhat.com>
1242
1243         * infcmd.c (post_create_inferior, prepare_one_step): Use
1244         target_terminal_ours_for_output instead of target_terminal_ours.
1245
1246 2016-04-12  Pedro Alves  <palves@redhat.com>
1247
1248         * exceptions.c (print_flush): Use target_terminal_ours_for_output
1249         instead of target_terminal_ours, and restore target terminal with
1250         a cleanup.
1251
1252 2016-04-12  Pedro Alves  <palves@redhat.com>
1253
1254         * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
1255         instead of target_terminal_ours, and restore target terminal with
1256         a cleanup.
1257
1258 2016-04-12  Pedro Alves  <palves@redhat.com>
1259
1260         * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
1261         functions.
1262         (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
1263
1264 2016-04-12  Pedro Alves  <palves@redhat.com>
1265
1266         * ser-base.c (fd_event): Retry read_prim on EINTR.
1267         (do_ser_base_readchar): Retry read_prim on EINTR.
1268         (ser_base_write): Retry write_prim on EINTR.
1269         * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
1270         (ser_unix_write_prim): Remove comment.
1271
1272 2016-04-12  Pedro Alves  <palves@redhat.com>
1273
1274         * remote.c (remote_pass_ctrlc): New function.
1275         (init_remote_ops): Install it.
1276         * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
1277         target.
1278         (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
1279         * target.h (struct target_ops) <to_pass_ctrlc>: New method.
1280         (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
1281         * target-delegates.c: Regenerate.
1282
1283 2016-04-12  Pedro Alves  <palves@redhat.com>
1284
1285         * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
1286         mode.
1287         * linux-nat.c (linux_nat_interrupt): Delete.
1288         (linux_nat_add_target): Don't install linux_nat_interrupt.
1289         * remote.c (remote_interrupt_ns): Change return type to void.
1290         Throw error if interrupting the target is not supported.
1291         (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
1292
1293 2016-04-12  Pedro Alves  <palves@redhat.com>
1294
1295         * defs.h (clear_quit_flag): Remove declaration.
1296         * extension-priv.h (struct extension_language_ops)
1297         <clear_quit_flag>: Remove field and update comments.
1298         * extension.c (clear_quit_flag): Delete.
1299         * guile/guile.c (guile_extension_ops): Adjust.
1300         * python/python.c (python_extension_ops): Adjust.
1301         (gdbpy_clear_quit_flag): Delete.
1302
1303 2016-04-12  Pedro Alves  <palves@redhat.com>
1304
1305         * main.c (captured_main): Don't clear the quit flag.
1306
1307 2016-04-12  Pedro Alves  <palves@redhat.com>
1308
1309         * exceptions.c (prepare_to_throw_exception): Don't clear the quit
1310         flag.
1311
1312 2016-04-12  Pedro Alves  <palves@redhat.com>
1313
1314         * event-top.c (command_handler): Don't call clear_quit_flag.
1315
1316 2016-04-12  Pedro Alves  <palves@redhat.com>
1317
1318         * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
1319         * remote.c (remote_wait_as): Don't call clear_quit_flag.
1320
1321 2016-04-12  Pedro Alves  <palves@redhat.com>
1322
1323         * python/python.c: Include "ser-event.h".
1324         (gdbpy_event_fds): Delete.
1325         (gdbpy_serial_event): New.
1326         (gdbpy_run_events): Change prototype.  Use serial_event_clear
1327         instead of serial_readchar.
1328         (gdbpy_post_event): Use serial_event_set instead of serial_write.
1329         (gdbpy_initialize_events): Use make_serial_event instead of
1330         serial_pipe.
1331
1332 2016-04-12  Pedro Alves  <palves@redhat.com>
1333
1334         * defs.h: Extend QUIT-related comments to mention
1335         interruptible_select.
1336         (quit_serial_event_set, quit_serial_event_clear): Declare.
1337         * event-top.c: Include "ser-event.h" and "gdb_select.h".
1338         (quit_serial_event): New global.
1339         (async_init_signals): Make quit_serial_event.
1340         (quit_serial_event_set, quit_serial_event_clear)
1341         (quit_serial_event_fd, interruptible_select): New functions.
1342         * extension.c (set_quit_flag): Set the quit serial event.
1343         (check_quit_flag): Clear the quit serial event.
1344         * gdb_select.h (interruptible_select): New declaration.
1345         * guile/scm-ports.c (ioscm_input_waiting): Use
1346         interruptible_select instead of gdb_select.
1347         * top.c (gdb_readline_no_editing): Likewise.
1348         * ui-file.c (stdio_file_read): Likewise.
1349
1350 2016-04-12  Pedro Alves  <palves@redhat.com>
1351
1352         * event-loop.c: Include "ser-event.h".
1353         (async_signal_handlers_serial_event): New global.
1354         (async_signals_handler, initialize_async_signal_handlers): New
1355         functions.
1356         (mark_async_signal_handler): Set
1357         async_signal_handlers_serial_event.
1358         (invoke_async_signal_handlers): Clear
1359         async_signal_handlers_serial_event.
1360         * event-top.c (async_init_signals): Call
1361         initialize_async_signal_handlers.
1362
1363 2016-04-12  Pedro Alves  <palves@redhat.com>
1364
1365         * Makefile.in (SFILES): Add ser-event.c.
1366         (HFILES_NO_SRCDIR): Add ser-event.h.
1367         (COMMON_OBS): Add ser-event.o.
1368         * ser-event.c, ser-event.h: New files.
1369         * serial.c (new_serial): New function, factored out from
1370         (serial_fdopen_ops): ... this.
1371         (serial_open_ops_1): New function, factored out from
1372         (serial_open): ... this.
1373         (serial_open_ops): New function.
1374         * serial.h (struct serial): Forware declare.
1375         (serial_open_ops): New declaration.
1376
1377 2016-04-12  Pedro Alves  <palves@redhat.com>
1378
1379         * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
1380         Remove references to name.
1381         * serial.h (struct serial) <name>: Delete.
1382
1383 2016-04-12  Pedro Alves  <palves@redhat.com>
1384
1385         * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
1386         Delete.
1387         (async_remote_fileio_interrupt): Delete.
1388         (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
1389         handler.  Instead just always set the ctrl_c flag.
1390         (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
1391         re-enabling the SIGINT handler.
1392         (remote_fileio_func_open, remote_fileio_func_close)
1393         (remote_fileio_func_read, remote_fileio_func_write)
1394         (remote_fileio_func_lseek, remote_fileio_func_rename)
1395         (remote_fileio_func_unlink, remote_fileio_func_stat)
1396         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
1397         (remote_fileio_func_isatty, remote_fileio_func_system)
1398         (remote_fileio_request): Remove references to
1399         remote_fio_no_longjmp.
1400         (initialize_remote_fileio): Don't create an async signal handler.
1401
1402 2016-04-12  Pedro Alves  <palves@redhat.com>
1403
1404         * event-top.c (stdin_event_handler): Call QUIT;
1405         (prompt_for_continue): Don't run with immediate_quit set.
1406
1407 2016-04-12  Pedro Alves  <palves@redhat.com>
1408
1409         * tui/tui-io.c (tui_redisplay_readline): Check
1410         gdb_in_secondary_prompt_p instead of immediate_quit.
1411         * tui/tui.c: Include top.h.
1412         (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
1413         immediate_quit.
1414
1415 2016-04-12  Pedro Alves  <palves@redhat.com>
1416
1417         * top.c (read_command_file): Inline command_loop here.
1418         (command_loop): Delete.
1419
1420 2016-04-12  Pedro Alves  <palves@redhat.com>
1421
1422         * top.c: Include "gdb_select.h".
1423         (gdb_readline_no_editing): Wait for input with gdb_select instead
1424         of blocking in fgetc.
1425         (command_line_input): Don't set immediate_quit.
1426
1427 2016-04-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
1428
1429         * value.c (value_next): Make pass-by-reference parameters const-correct.
1430         (value_parent): Likewise.
1431         (value_enclosing_type): Likewise.
1432         (value_lazy): Likewise.
1433         (value_stack): Likewise.
1434         (value_embedded_offset): Likewise.
1435         (value_pointed_to_offset): Likewise.
1436         (value_raw_address): Likewise.
1437         (deprecated_value_modifiable): Likewise.
1438         (value_free_to_mark): Likewise.
1439         (value_release_to_mark): Likewise.
1440         (internalvar_name): Likewise.
1441         (readjust_indirect_value_type): Likewise.
1442         (value_initialized): Likewise.
1443         * value.h (value_next): Likewise.
1444         (value_parent): Likewise.
1445         (value_enclosing_type): Likewise.
1446         (value_lazy): Likewise.
1447         (value_stack): Likewise.
1448         (value_embedded_offset): Likewise.
1449         (value_pointed_to_offset): Likewise.
1450         (value_raw_address): Likewise.
1451         (deprecated_value_modifiable): Likewise.
1452         (value_free_to_mark): Likewise.
1453         (value_release_to_mark): Likewise.
1454         (internalvar_name): Likewise.
1455         (readjust_indirect_value_type): Likewise.
1456         (value_initialized): Likewise.
1457
1458 2016-04-07  Yao Qi  <yao.qi@linaro.org>
1459
1460         * record-full.c (record_full_insert_breakpoint): Return
1461         early if entry on the address is found in
1462         record_full_breakpoints.
1463
1464 2016-04-07  Yao Qi  <yao.qi@linaro.org>
1465
1466         * record-full.c (record_full_insert_breakpoint): Set
1467         bp_tgt->reqstd_address and bp_tgt->placed_size.
1468
1469 2016-04-06  Don Breazeal  <donb@codesourcery.com>
1470
1471         * value.c (value_actual_type): Don't try to get rtti type
1472         of the value if it has been optimized out.
1473         (value_optimized_out): If a memory access error occurs,
1474         just check vaue->optimized_out.
1475
1476 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1477
1478         Revert the previous commit adding unknown_v_replies_ok.
1479
1480 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1481
1482         * remote.c (struct remote_state): New field unknown_v_replies_ok.
1483         (packet_config_support): Read it.
1484         (remote_start_remote): Set it.
1485
1486 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1487
1488         * remote.c: Revert check-in by a mistake in the previous commit.
1489
1490 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1491             Pedro Alves  <palves@redhat.com>
1492
1493         * exec.c (exec_file_locate_attach): Print warning for unsupported
1494         target_pid_to_exec_file.
1495         * symfile-mem.c (add_vsyscall_page): Remove the "file" command
1496         message part.
1497
1498 2016-04-04  Simon Marchi  <simon.marchi@ericsson.com>
1499
1500         * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
1501         trailing spaces.
1502
1503 2016-04-01  Artemiy Volkov  <artemiyv@acm.org>
1504
1505         PR gdb/19820
1506         * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
1507         the type of BINOP_REPEAT's second operand.
1508
1509 2016-03-31  Yichao Yu  <yyc1992@gmail.com>
1510
1511         PR gdb/19858
1512         * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
1513         got the breakpoint at the right address.
1514         (jit_inferior_created): New function.
1515         (_initialize_jit): Install jit_inferior_created as
1516         inferior_created observer.
1517
1518 2016-03-31  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1519
1520         * NEWS: Mention support for tracepoints on powerpc*-linux.
1521
1522 2016-03-31  Catalin Udma  <catalin.udma@freescale.com>
1523
1524         PR python/19743
1525         * python/python.c (execute_gdb_command): Use console uiout
1526         when executing gdb command.
1527         * utils.c (restore_ui_out_closure): New structure.
1528         (do_restore_ui_out): New function.
1529         (make_cleanup_restore_ui_out): Likewise.
1530         * utils.h (make_cleanup_restore_ui_out): Declare.
1531
1532 2016-03-31  Pedro Alves  <palves@redhat.com>
1533
1534         * NEWS: Mention that support for "target m32rsdi", "target mips",
1535         "target pmon", "target ddb", "target rockhopper", and "target lsi"
1536         was removed.
1537         * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
1538         remote-mips.o.
1539         (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
1540         * configure.tgt: Remove all references to remote-m32r-sdi.o and
1541         remote-mips.o.
1542         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
1543         function.
1544         * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
1545         declaration.
1546         * remote-m32r-sdi.c, remote-mips.c: Delete files.
1547         * symfile.c (generic_load, generic_load): Remove comments.
1548
1549 2016-03-30  Yao Qi  <yao.qi@linaro.org>
1550
1551         * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
1552         0 rather than NULL.
1553
1554 2016-03-30  Yao Qi  <yao.qi@linaro.org>
1555
1556         * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
1557         (arm_epilogue_frame_this_id): New function.
1558         (arm_epilogue_frame_prev_register): New function.
1559         (arm_epilogue_frame_sniffer): New function.
1560         (arm_epilogue_frame_unwind): New.
1561         (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
1562
1563 2016-03-30  Yao Qi  <yao.qi@linaro.org>
1564
1565         * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
1566         (arm_stack_frame_destroyed_p_1): ... here.  Don't call
1567         arm_pc_is_thumb.
1568         (arm_stack_frame_destroyed_p): Call
1569         thumb_stack_frame_destroyed_p and
1570         arm_stack_frame_destroyed_p_1.
1571
1572 2016-03-30  Doug Evans  <dje@google.com>
1573
1574         * python/py-utils.c (host_string_to_python_string): New function.
1575         * python/python-internal.h (host_string_to_python_string): Declare it.
1576         * python/py-*.c (*): Update all calls to
1577         PyString_Decode (str, strlen (str), host_charset (), NULL);
1578         to use host_string_to_python_string instead.
1579
1580 2016-03-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1581
1582         * remote.c (remote_check_symbols): Allocate own buffer for reply.
1583
1584 2016-03-29  Max Filippov  <jcmvbkbc@gmail.com>
1585
1586         * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
1587         Use safe_read_memory_integer instead of read_memory_integer.
1588
1589 2016-03-29  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1590
1591         * NEWS: Mention support for tracepoints on s390*-linux.
1592
1593 2016-03-29  Don Breazeal  <donb@codesourcery.com>
1594
1595         * gdb/value.c (value_actual_type): Fix formatting issue.
1596
1597 2016-03-23  Yao Qi  <yao.qi@linaro.org>
1598
1599         * gdbarch.sh (software_single_step): Remove comments.
1600         * gdbarch.h: Regenerated.
1601
1602 2016-03-21  Yao Qi  <yao.qi@linaro.org>
1603
1604         * arm-tdep.c (arm_record_media): New.
1605         (arm_record_ld_st_reg_offset): Call arm_record_media.
1606
1607 2016-03-21  Yao Qi  <yao.qi@linaro.org>
1608
1609         * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
1610         more syscalls.
1611
1612 2016-03-18  Yao Qi  <yao.qi@linaro.org>
1613
1614         * sparc-tdep.c (sparc_software_single_step): Make it static.
1615         * sparc-tdep.h (sparc_software_single_step): Remove declaration.
1616
1617 2016-03-18  Yao Qi  <yao.qi@linaro.org>
1618
1619         * spu-tdep.c (spu_software_single_step): Throw error when
1620         target_read_memory fails.
1621
1622 2016-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1623
1624         * linux-thread-db.c (check_pid_namespace_match): Extend the message.
1625
1626 2016-03-17  Pedro Alves  <palves@redhat.com>
1627             Don Breazeal  <donb@codesourcery.com>
1628
1629         PR remote/19496
1630         * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
1631         instead of checking the 'non_stop' global.
1632         * remote.c (remote_add_thread): New parameter 'executing'.  Use it
1633         to set the new thread's executing state.
1634         (remote_notice_new_inferior): Rename parameter 'running' to
1635         'executing'.  Always set the thread state to THREAD_RUNNING in
1636         non-stop mode, and to THREAD_STOPPED in all-stop mode.  Pass
1637         EXECUTING to remote_add_thread and notice_new_inferior.
1638         (remote_update_thread_list): Update to pass executing state, not
1639         running state.
1640
1641 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1642
1643         * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
1644         to 374.
1645         * syscalls/s390x-linux.xml: Likewise.
1646
1647 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1648
1649         * linux-record.c (record_mem_at_reg): New helper function.
1650         (record_linux_system_call): Exploit new helper function where
1651         applicable.
1652
1653 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1654
1655         * linux-record.c: Fix whitespace issues; tabify, remove trailing
1656         spaces.
1657
1658 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1659
1660         * linux-record.c (record_linux_system_call): Add missing return
1661         statements to handling of pipe and pipe2 syscalls.
1662
1663 2016-03-16  Doug Evans  <dje@google.com>
1664
1665         * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
1666
1667 2016-03-16  Yao Qi  <yao.qi@linaro.org>
1668
1669         * arm-linux-tdep.c (arm_linux_init_abi): Fix
1670         arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
1671         arm_linux_record_tdep.arg3.  Set arm_linux_record_tdep.arg4,
1672         arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
1673         arm_linux_record_tdep.arg7.
1674
1675 2016-03-15  Keith Seitz  <keiths@redhat.com>
1676
1677         PR breakpoints/18303
1678         * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
1679         look for "::" instead of simply ":".
1680         (cp_search_static_and_baseclasses): Return null_block_symbol for
1681         malformed input.
1682         Remove assertions.
1683         * cp-support.c (cp_find_first_component_aux): Do not return
1684         a prefix length for ':' unless the next character is also ':'.
1685
1686 2016-03-15  Doug Evans  <dje@google.com>
1687
1688         * features/aarch64-core.xml (cpsr_flags): New flags type.
1689         (cpsr): Use it.
1690         * features/aarch64.c: Regenerate.
1691
1692 2016-03-15  Doug Evans  <dje@google.com>
1693
1694         * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
1695         * features/i386/32bit-sse.xml (i386_eflags): Ditto.
1696         * features/i386/64bit-core.xml (i386_eflags): Ditto.
1697         * features/i386/64bit-sse.xml (i386_eflags): Ditto.
1698         * features/i386/x32-core.xml (i386_eflags): Ditto.
1699
1700 2016-03-15  Doug Evans  <dje@google.com>
1701             Wei-cheng Wang  <cole945@gmail.com>
1702
1703         Extend flags to support multibit and enum bitfields.
1704         * NEWS: Document new features.
1705         * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
1706         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1707         * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
1708         (append_flags_type_field): New function.
1709         (append_flags_type_flag): Call it.
1710         * gdbtypes.h (append_flags_type_field): Declare.
1711         * target-descriptions.c (struct tdesc_type_flag): Delete.
1712         (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
1713         (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
1714         (struct tdesc_type) <u.f>: Delete.
1715         (tdesc_predefined_types): Add "bool".
1716         (tdesc_predefined_type): New function.
1717         (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
1718         Update TDESC_TYPE_FLAGS support.
1719         (tdesc_free_type): Handle TDESC_TYPE_ENUM.  Update TDESC_TYPE_FLAGS.
1720         (tdesc_create_flags): Update.
1721         (tdesc_create_enum): New function.
1722         (tdesc_add_field): Initialize start,end to -1.
1723         (tdesc_add_typed_bitfield): New function.
1724         (tdesc_add_bitfield): Call it.
1725         (tdesc_add_flag): Allow TDESC_TYPE_STRUCT.  Update.
1726         (tdesc_add_enum_value): New function.
1727         (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
1728         TDESC_TYPE_STRUCT.  Handle TDESC_TYPE_ENUM.
1729         * target-descriptions.h (tdesc_create_enum): Declare.
1730         (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
1731         * valprint.c (generic_val_print_enum_1): New function.
1732         (generic_val_print_enum): Call it.
1733         (val_print_type_code_flags): Make static.  Handle multibit bitfields
1734         and enum bitfields.
1735         * valprint.h (val_print_type_code_flags): Delete.
1736         * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
1737         Delete.  All uses removed.
1738         (tdesc_start_enum): New function.
1739         (tdesc_start_field): Handle multibit and enum bitfields.
1740         (tdesc_start_enum_value): New function.
1741         (enum_value_attributes, enum_children, enum_attributes): New static
1742         globals.
1743         (feature_children): Add "enum".
1744         * features/gdb-target.dtd (enum, evalue): New elements.
1745
1746 2016-03-15  Doug Evans  <dje@google.com>
1747
1748         * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
1749         from LONGEST to int.
1750         (struct tdesc_type) <u.f.size>: Ditto.
1751         (tdesc_set_struct_size): Change type of "size" arg from LONGEST
1752         to int.  Add assertion size > 0.
1753         (tdesc_create_flags): Ditto.
1754         * target-descriptions.h (tdesc_set_struct_size): Update.
1755         (tdesc_create_flags): Update.
1756         * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
1757         (MAX_VECTOR_SIZE): New macro.
1758         (tdesc_start_struct): Catch conversion errors from LONGEST to int.
1759         (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
1760
1761 2016-03-15  Doug Evans  <dje@google.com>
1762
1763         * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
1764         TYPE_CODE_FLAGS instead of "field_type", for consistency.
1765         * features/i386/amd64-avx-linux.c: Regenerate.
1766         * features/i386/amd64-avx.c: Regenerate.
1767         * features/i386/amd64-avx512-linux.c: Regenerate.
1768         * features/i386/amd64-avx512.c: Regenerate.
1769         * features/i386/amd64-linux.c: Regenerate.
1770         * features/i386/amd64-mpx-linux.c: Regenerate.
1771         * features/i386/amd64-mpx.c: Regenerate.
1772         * features/i386/amd64.c: Regenerate.
1773         * features/i386/i386-avx-linux.c: Regenerate.
1774         * features/i386/i386-avx.c: Regenerate.
1775         * features/i386/i386-avx512-linux.c: Regenerate.
1776         * features/i386/i386-avx512.c: Regenerate.
1777         * features/i386/i386-linux.c: Regenerate.
1778         * features/i386/i386-mmx-linux.c: Regenerate.
1779         * features/i386/i386-mmx.c: Regenerate.
1780         * features/i386/i386-mpx-linux.c: Regenerate.
1781         * features/i386/i386-mpx.c: Regenerate.
1782         * features/i386/i386.c: Regenerate.
1783         * features/i386/x32-avx-linux.c: Regenerate.
1784         * features/i386/x32-avx.c: Regenerate.
1785         * features/i386/x32-avx512-linux.c: Regenerate.
1786         * features/i386/x32-avx512.c: Regenerate.
1787         * features/i386/x32-linux.c: Regenerate.
1788         * features/i386/x32.c: Regenerate.
1789
1790 2016-03-15  Pedro Alves  <palves@redhat.com>
1791
1792         PR gdb/19676
1793         * linux-thread-db.c (try_thread_db_load_1): Leave
1794         info->td_ta_thr_iter_p NULL iff debugging a live process and we
1795         have /proc access.
1796         (find_new_threads_once): Assert that we have a non-NULL
1797         info->td_ta_thr_iter_p instead of checking whether the target has
1798         execution.
1799
1800 2016-03-15  Pedro Alves  <palves@redhat.com>
1801
1802         PR gdb/19676
1803         * infrun.c (displaced_step_prepare): Also disable displaced
1804         stepping on NOT_SUPPORTED_ERROR.
1805         * linux-tdep.c (linux_displaced_step_location): If reading auxv
1806         fails, throw NOT_SUPPORTED_ERROR instead of generic error.
1807
1808 2016-03-13  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1809
1810         * s390-linux-tdep.c (s390_gen_return_address): New function.
1811         (s390_gdbarch_init): Fill gen_return_address hook.
1812
1813 2016-03-11  Andrew Burgess  <andrew.burgess@embecosm.com>
1814
1815         * symmisc.c (maintenance_info_line_tables): New function.
1816         (maintenance_print_one_line_table): New function.
1817         (_initialize_symmisc): Register 'maint info line-table' command.
1818         * NEWS: Mention new command.
1819
1820 2016-03-11  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1821
1822         * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
1823         (s390_ax_pseudo_register_push_stack): New function.
1824         (s390_gdbarch_init): Fill ax_pseudo_register_collect and
1825         ax_pseudo_register_push_stack hooks.
1826
1827 2016-03-10  Simon Marchi  <simon.marchi@polymtl.ca>
1828
1829         * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
1830         gdb/function/as_string.py.
1831         * python/lib/gdb/function/as_string.py: New file.
1832         * NEWS: Mention the new $_as_string function.
1833
1834 2016-03-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
1835
1836         * target.h: Fix doc string of target_can_use_hardware_watchpoint.
1837
1838 2016-03-09  Pedro Alves  <palves@redhat.com>
1839
1840         * event-top.c (more_to_come): Delete.
1841         (struct readline_input_state): Delete.
1842         (readline_input_state): Delete.
1843         (get_command_line_buffer): New function.
1844         (command_handler): Update comments.  Don't handle NULL commands
1845         here.  Do not execute commented lines.
1846         (command_line_append_input_line): New function.
1847         (handle_line_of_input): New function, partly based on
1848         command_line_handler and command_line_input.
1849         (command_line_handler): Rewrite.
1850         * event-top.h (command_handler): New declaration.
1851         (command_loop): Defer command execution to command_handler.
1852         (command_line_input): Update comments.  Simplify, using struct
1853         buffer and handle_line_of_input.
1854         * top.h (struct buffer): New forward declaration.
1855         (handle_line_of_input): New declaration.
1856
1857 2016-03-09  Pedro Alves  <palves@redhat.com>
1858
1859         * event-top.c (command_line_handler): Use xfree + xstrdup instead
1860         of xrealloc + strcpy.
1861         * main.c (captured_main): Use xstrdup instead of xmalloc plus
1862         manual clear.
1863         * top.c (saved_command_line): Rewrite comment.
1864         (saved_command_line_size): Delete.
1865         (command_line_input): Use xfree + xstrdup instead of xrealloc +
1866         strcpy.
1867         * top.h (saved_command_line_size): Delete declaration.
1868
1869 2016-03-09  Pedro Alves  <palves@redhat.com>
1870
1871         * event-top.c: Include buffer.h.
1872         (gdb_readline_no_editing_callback): Use struct buffer instead
1873         of xrealloc.
1874
1875 2016-03-09  Pedro Alves  <palves@redhat.com>
1876
1877         * common/buffer.h (buffer_grow_char): New function.
1878         * top.c: Include buffer.h.
1879         (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
1880         'prompt'.  Use struct buffer instead of xrealloc.
1881
1882 2016-03-09  Pedro Alves  <palves@redhat.com>
1883
1884         * defs.h (gdb_readline): Delete declaration.
1885         * top.c (gdb_readline): Rename to ...
1886         (gdb_readline_no_editing): ... this, and make static.
1887
1888 2016-03-09  Pedro Alves  <palves@redhat.com>
1889
1890         * utils.c (prompt_for_continue): Update comments.
1891
1892 2016-03-09  Pedro Alves  <palves@redhat.com>
1893
1894         * event-top.c (async_annotation_suffix): Delete.
1895         (top_level_prompt, command_line_handler): Don't use
1896         'async_annotation_suffix' and simplify.
1897         * event-top.h (async_annotation_suffix): Delete declaration.
1898         (init_main): Remove reference to 'async_annotation_suffix'.
1899
1900 2016-03-09  Pedro Alves  <palves@redhat.com>
1901
1902         * event-top.c (gdb_readline2): Rename to ...
1903         (gdb_readline_no_editing_callback): ... this.
1904         (change_line_handler, stdin_event_handler)
1905         (gdb_setup_readline): Adjust.
1906         * event-top.h (gdb_readline2): Rename to ...
1907         (gdb_readline_no_editing_callback): ... this, and move closer to
1908         other readline-related declarations.
1909         * mi/mi-interp.c (mi_interpreter_resume): Adjust.
1910
1911 2016-03-09  Pedro Alves  <palves@redhat.com>
1912
1913         * top.c (window_hook): Delete.
1914         (command_loop): Remove references to window_hook.
1915
1916 2016-03-09  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1917
1918         * corefile.c (safe_read_memory_unsigned_integer): New function.
1919         * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
1920         * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
1921
1922 2016-03-09  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1923
1924         * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
1925         (rs6000_gen_return_address): New function.
1926         (rs6000_gdbarch_init): Wire in the above.
1927
1928 2016-03-09  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1929
1930         * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
1931         (rs6000_gdbarch_init): Wire in the above.
1932
1933 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1934
1935         * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
1936         instructions that do nothing or are conditional traps.
1937
1938 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1939
1940         * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
1941         frame func's PC in info->func before any other failure can occur.
1942         (s390_frame_this_id): Use frame_id_build_unavailable_stack if
1943         info->func has been filled out.
1944
1945 2016-03-09  Pedro Alves  <palves@redhat.com>
1946
1947         * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
1948
1949 2016-03-09  Pedro Alves  <palves@redhat.com>
1950
1951         * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
1952
1953 2016-03-09  Pedro Alves  <palves@redhat.com>
1954
1955         * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
1956         order is BFD_ENDIAN_BIG or if the cris version is unsupported.
1957
1958 2016-03-09  Pedro Alves  <palves@redhat.com>
1959
1960         * doublest.c: Extend comments.
1961         (floatformat_to_doublest, floatformat_from_doublest): Copy the
1962         floatformat's total size, not the host type's size.
1963
1964 2016-03-09  Pedro Alves  <palves@redhat.com>
1965
1966         * doublest.c (floatformat_totalsize_bytes): New function.
1967         (floatformat_from_type): Assert that the type's length is at least
1968         as long as the floatformat's totalsize.
1969         * doublest.h (floatformat_totalsize_bytes): New declaration.
1970         * gdbtypes.c (arch_float_type): Assert that the type's length is
1971         at least as long as the floatformat's totalsize.
1972
1973 2016-03-09  Pedro Alves  <palves@redhat.com>
1974
1975         * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
1976         format to floatformats_ieee_double.
1977
1978 2016-03-07  Pedro Alves  <palves@redhat.com>
1979
1980         * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
1981         before calling bfd_get_flavour.
1982
1983 2016-03-05  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1984
1985         * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
1986         (avr_push_dummy_call): Correct last needed argument register.
1987         Write MSB of argument into register and subsequent bytes into
1988         other registers in decreasing order.
1989
1990 2016-03-04  Yao Qi  <yao.qi@linaro.org>
1991
1992         * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
1993         condition check.  Record the right D register number.
1994
1995 2016-03-04  Yao Qi  <yao.qi@linaro.org>
1996
1997         * arm-tdep.c (arm_record_extension_space): Remove code
1998         printing "Process record does not support".
1999         (arm_record_data_proc_misc_ld_str): Likewise.
2000         (decode_insn): Call arm_record_extension_space if condition
2001         is 0xf.  Call arm_record_unsupported_insn if ret isn't
2002         ARM_RECORD_SUCCESS.  Use 'ret' instead of 'insn_id' to hold
2003         the value of thumb2_record_decode_insn_handler.
2004
2005 2016-03-04  Simon Marchi  <simon.marchi@ericsson.com>
2006
2007         * features/feature_to_c.sh: Print the help when passing no
2008         argument.
2009
2010 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
2011
2012         * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
2013
2014 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
2015
2016         * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
2017
2018 2016-03-01  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2019
2020         * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
2021         exception when attempting to access the inferior's backchain.
2022
2023 2016-02-29  Yao Qi  <yao.qi@linaro.org>
2024
2025         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
2026         eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
2027         Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
2028         for aarch64_sys_epoll_create1.
2029
2030 2016-02-29  Yao Qi  <yao.qi@linaro.org>
2031
2032         * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
2033         <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
2034         <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
2035         * linux-record.c (record_linux_system_call): Handle them.
2036
2037 2016-02-28  Iain Buclaw  <ibuclaw@gdcproject.org>
2038
2039         * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
2040         cyclic imports.
2041
2042 2016-02-26  Keith Seitz  <keiths@redhat.com>
2043
2044         * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
2045         to avoid invalid conversion from void *.
2046
2047 2016-02-26  Yao Qi  <yao.qi@linaro.org>
2048
2049         * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
2050         per bit 8.  Check bit 20 instead of bit 4 for VMOV
2051         instruction.  Record D registers for instructions changing
2052         S registers.  Change of the order of length and address
2053         in record_buf_mem array.
2054
2055 2016-02-26  Yao Qi  <yao.qi@linaro.org>
2056
2057         * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
2058         number of Rd.
2059
2060 2016-02-25  Doug Evans  <dje@google.com>
2061
2062         * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
2063         compiler warning.
2064         (recv_long_data): Ditto.
2065
2066 2016-02-25  Simon Marchi  <simon.marchi@ericsson.com>
2067
2068         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
2069         Initialize variables.
2070
2071 2016-02-25  Antoine Tremblay  <antoine.tremblay@ericsson.com>
2072
2073         * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
2074         (ax_reg_mask): Likewise.
2075
2076 2016-02-24  Pedro Alves  <palves@redhat.com>
2077
2078         * linux-nat.c (save_sigtrap) Delete.
2079         (stop_wait_callback): Call save_stop_reason instead of
2080         save_sigtrap.
2081         (check_stopped_by_breakpoint): Rename to ...
2082         (save_stop_reason): ... this.  Bits of save_sigtrap folded here.
2083         Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
2084         GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.  Factor out
2085         common code between the USE_SIGTRAP_SIGINFO and
2086         !USE_SIGTRAP_SIGINFO blocks.
2087         (linux_nat_filter_event): Call save_stop_reason instead of
2088         save_sigtrap.
2089         * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
2090         si_code for MIPS.
2091         * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table.  Add
2092         comments on MIPS behavior.
2093         (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
2094
2095 2016-02-24  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
2096
2097         * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
2098         to avoid spurious warnings.
2099
2100 2016-02-24  Gary Benson  <gbenson@redhat.com>
2101
2102         * exec.c (exec_file_locate_attach): Do not attempt to
2103         locate main executable locally if not found in sysroot.
2104
2105 2016-02-24  Joel Brobecker  <brobecker@adacore.com>
2106
2107         GDB 7.11 released.
2108
2109 2016-02-24  Wei-cheng Wang  <cole945@gmail.com>
2110
2111         * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
2112         unavailable PC/SP to build unavailable frame.
2113
2114 2016-02-23  Doug Evans  <dje@google.com>
2115
2116         Extend "skip" command to support -file, -gfile, -function, -rfunction.
2117         * NEWS: Document new features.
2118         * skip.c: #include "fnmatch.h", "gdb_regex.h".
2119         (skiplist_entry) <file>: Renamed from filename.
2120         <function>: Renamed from function_name.
2121         <file_is_glob, function_is_regexp>: New members.
2122         <compiled_function_regexp, compiled_function_regexp_is_valid>:
2123         New members.
2124         (make_skip_entry): New function.
2125         (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
2126         (make_free_skiplist_entry_cleanup): New function.
2127         (skip_file_command): Update.
2128         (skip_function, skip_function_command): Update.
2129         (compile_skip_regexp): New functions.
2130         (skip_command): Add support for new options.
2131         (skip_info): Update.
2132         (skip_file_p, skip_gfile_p): New functions.
2133         (skip_function_p, skip_rfunction_p): New functions.
2134         (function_name_is_marked_for_skip): Update and simplify.
2135         (_initialize_step_skip): Update.
2136         * symtab.c: #include "fnmatch.h".
2137         (compare_glob_filenames_for_search): New function.
2138         * symtab.h (compare_glob_filenames_for_search): Declare.
2139         * utils.c (count_path_elements): New function.
2140         (strip_leading_path_elements): New function.
2141         * utils.h (count_path_elements): Declare.
2142         (strip_leading_path_elements): Declare.
2143
2144 2016-02-23  Simon Marchi  <simon.marchi@ericsson.com>
2145
2146         * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
2147         (thumb_process_displaced_insn): Likewise.
2148         (arm_process_displaced_insn): Adjust calls.
2149
2150 2016-02-23  Yao Qi  <yao.qi@linaro.org>
2151
2152         * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
2153         Remove.
2154         <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
2155         <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
2156         <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
2157         <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
2158         <aarch64_sys_linkat, aarch64_sys_renameat>: New.
2159         <aarch64_sys_faccessat>: New.
2160         <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
2161         <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
2162         <aarch64_sys_newfstatat>: New.
2163         (UNSUPPORTED_SYSCALL_MAP): New macro.
2164         (aarch64_canonicalize_syscall): Add missing syscalls.
2165
2166 2016-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2167
2168         * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
2169
2170 2016-02-22  Yao Qi  <yao.qi@linaro.org>
2171
2172         * arm-tdep.c: Fix code format issues.
2173
2174 2016-02-21  Iain Buclaw  <ibuclaw@gdcproject.org>
2175
2176         * d-namespace.c (d_lookup_symbol_imports): Remove argument
2177         'search_parents'.  All callers updated.
2178
2179 2016-02-18  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
2180
2181         * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
2182         (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
2183
2184 2016-02-18  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2185
2186         * NEWS: Add entry for bound violation.
2187         * amd64-linux-tdep.c (amd64_linux_init_abi_common):
2188         Add handler for segmentation fault.
2189         * gdbarch.sh (handle_segmentation_fault): New.
2190         * gdbarch.c: Regenerate.
2191         * gdbarch.h: Regenerate.
2192         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
2193         (SIG_CODE_BONDARY_FAULT): New define.
2194         (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
2195         * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
2196         * i386-tdep.c (i386_mpx_enabled): Add as external.
2197         * i386-tdep.c (i386_mpx_enabled): Add as external.
2198         * infrun.c (handle_segmentation_fault): New function.
2199         (print_signal_received_reason): Use handle_segmentation_fault.
2200
2201 2016-02-18  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
2202
2203         * arch-utils.c (default_guess_tracepoint_registers): New function.
2204         * arch-utils.h (default_guess_tracepoint_registers): New prototype.
2205         * gdbarch.c: Regenerate.
2206         * gdbarch.h: Regenerate.
2207         * gdbarch.sh: Add guess_tracepoint_registers hook.
2208         * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
2209
2210 2016-02-17  Gary Benson  <gbenson@redhat.com>
2211
2212         * exec.c (exec_file_locate_attach): Add missing cleanup.
2213
2214 2016-02-16  Don Breazeal  <donb@codesourcery.com>
2215
2216         PR remote/19496
2217         * remote.c (remove_new_fork_children): Check for pending
2218         fork status in thread_info.suspend.
2219
2220 2016-02-16  Yao Qi  <yao.qi@linaro.org>
2221
2222         * arm-linux-tdep.c (arm_linux_software_single_step): Assign
2223         'old_chain' later.
2224
2225 2016-02-16  Yao Qi  <yao.qi@linaro.org>
2226
2227         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
2228         <syscall_next_pc>: Remove argument PC.  Callers updated.
2229         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
2230         Remove argument PC.  Get pc from regcache_read_pc.
2231         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
2232         argument PC.
2233
2234 2016-02-15  Yao Qi  <yao.qi@linaro.org>
2235
2236         * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
2237
2238 2016-02-12  Yao Qi  <yao.qi@linaro.org>
2239
2240         * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
2241         nextpc according to instruction.
2242
2243 2016-02-12  Yao Qi  <yao.qi@linaro.org>
2244
2245         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
2246         self->ops->fixup if it isn't NULL.
2247         * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
2248         (struct arm_get_next_pcs_ops) <fixup>: New field.
2249         * arch/arm-linux.c: Include common-regcache.h and
2250         arch/arm-get-next-pcs.h.
2251         (arm_linux_get_next_pcs_fixup): New function.
2252         * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
2253         * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
2254         it with arm_linux_get_next_pcs_fixup.
2255         (arm_linux_software_single_step): Move code to
2256         arm_linux_get_next_pcs_fixup.
2257         * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
2258
2259 2016-02-12  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
2260
2261         * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
2262         and return NULL.
2263
2264 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
2265
2266         * frame.h (skip_tailcall_frames): Update comment.
2267         * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
2268         if only artificial frames are found.  Update comment.
2269         (frame_unwind_caller_id): Handle NULL return.
2270         (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
2271         skip_artificial_frames does not return NULL.
2272         (frame_pop): Add an error if only tailcall frames are found.
2273         * infcmd.c (finish_command): Move skip_tailcall_frames call into
2274         forward-execution case.  Add an error if only tailcall frames are
2275         found.
2276
2277 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
2278
2279         * stack.c (frame_info): Check frame_unwind_caller_id.
2280
2281 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
2282
2283         * frame.h (skip_tailcall_frames): New.
2284         * frame.c (skip_tailcall_frames): New.
2285         (frame_pop): Call skip_tailcall_frames.
2286         * infcmd.c (finish_command): Call skip_tailcall_frames.
2287
2288 2016-02-11  Pedro Alves  <palves@redhat.com>
2289
2290         * Makefile.in (check-parallel): New rule.
2291
2292 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
2293
2294         * arm-tdep.c (arm_skip_prologue): Remove unused variables.
2295         (arm_analyze_prologue): Likewise.
2296         (arm_scan_prologue): Likewise.
2297         (arm_m_exception_prev_register): Likewise.
2298         (arm_copy_block_xfer): Likewise.
2299         (thumb2_copy_block_xfer): Likewise.
2300         (arm_decode_miscellaneous): Likewise.
2301         (arm_decode_ld_st_word_ubyte): Likewise.
2302         (arm_decode_svc_copro): Likewise.
2303         (thumb2_decode_svc_copro): Likewise.
2304         (thumb_copy_16bit_ldr_literal): Likewise.
2305         (thumb_copy_pop_pc_16bit): Likewise.
2306         (decode_thumb_32bit_ld_mem_hints): Likewise.
2307         (arm_show_force_mode): Likewise.
2308         (_initialize_arm_tdep): Likewise.
2309         (arm_record_strx): Likewise.
2310         (arm_record_extension_space): Likewise.
2311         (arm_record_data_proc_misc_ld_str): Likewise.
2312         (arm_record_exreg_ld_st_insn): Likewise.
2313         (arm_record_vfp_data_proc_insn): Likewise.
2314         (arm_record_coproc_data_proc): Likewise.
2315         (thumb_record_misc): Likewise.
2316         (thumb_record_ldm_stm_swi): Likewise.
2317         (thumb2_record_ld_st_dual_ex_tbb): Likewise.
2318         (thumb2_record_ld_mem_hints): Likewise.
2319         (thumb2_record_lmul_lmla_div): Likewise.
2320         (thumb2_record_asimd_struct_ld_st): Likewise.
2321         (arm_process_record): Likewise.
2322
2323 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
2324
2325         * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
2326         (ARM displaced stepping support): Remove reference to
2327         arm_displaced_step_copy_insn in comment.
2328         * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
2329         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
2330         reference to arm_displaced_step_copy_insn in comment.
2331
2332 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
2333
2334         * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
2335         (thumb_copy_b): Likewise.
2336         (arm_decode_b_bl_ldmstm): Likewise.
2337         (thumb_copy_16bit_ldr_literal): Likewise.
2338         (thumb_copy_pop_pc_16bit): Likewise.
2339
2340 2016-02-11  Antoine Tremblay  <antoine.tremblay@ericsson.com>
2341
2342         * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
2343         than loc->gdbarch.
2344
2345 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
2346
2347         * tracefile-tfile.c (trace_tdesc): New static variable.
2348         (tfile_open): Clear trace_tdesc, call target_find_description.
2349         (tfile_interp_line): Recognize tdesc lines.
2350         (tfile_close): Clear trace_tdesc.
2351         (tfile_xfer_partial_features): New function.
2352         (tfile_xfer_partial): Call tfile_xfer_partial_features.
2353         (tfile_append_tdesc_line): New function.
2354
2355 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
2356
2357         * ctf.c (ctf_write_tdesc): New function.
2358         (ctf_write_ops): Wire in ctf_write_tdesc.
2359         * tracefile-tfile.c (tfile_write_tdesc): New function.
2360         (tfile_write_ops): Wire in tfile_write_tdesc.
2361         * tracefile.c (trace_save): Call write_tdesc method.
2362         * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
2363         * xml-tdesc.c (target_fetch_description_xml): New function.
2364         * xml-tdesc.h: Add target_fetch_description_xml prototype.
2365
2366 2016-02-10  Simon Marchi  <simon.marchi@ericsson.com>
2367
2368         * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
2369         (arm_decode_dp_misc): Likewise.
2370
2371 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
2372
2373         * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
2374         (amd64_init_abi): Fill ax_pseudo_register_collect hook.
2375         * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
2376         misleading comment.
2377         (i386_pseudo_register_write): Ditto.
2378         (i386_ax_pseudo_register_collect): New function.
2379         (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
2380         * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
2381
2382 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
2383
2384         * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
2385         instead of gdb order.
2386
2387 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
2388
2389         * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
2390         check.
2391
2392 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
2393
2394         * NEWS: Create a new section for the next release branch.
2395         Rename the section of the current branch, now that it has
2396         been cut.
2397
2398 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
2399
2400         GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
2401         * version.in: Bump version to 7.11.50.DATE-git.
2402
2403 2016-02-09  Keith Seitz  <keiths@redhat.com>
2404
2405         PR breakpoints/19546
2406         * breakpoint.c (breakpoint_event_location_empty_p): New function.
2407         (update_breakpoints_after_exec, bkpt_re_set): Use this new function
2408         instead of event_location_empty_p.
2409
2410 2016-02-09  Keith Seitz  <keiths@redhat.com>
2411
2412         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
2413         string_to_event_location_basic instead of string_to_event_location.
2414
2415 2016-02-09  Keith Seitz  <keiths@redhat.com>
2416
2417         * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
2418         leading whitespace and use string_to_event_location_basic instead
2419         of new_linespec_location.
2420
2421 2016-02-09  Keith Seitz  <keiths@redhat.com>
2422
2423         PR python/19506
2424         * python/py-breakpoint.c (bppy_init): Use
2425         string_to_event_location_basic instead of new_linespec_location.
2426
2427 2016-02-09  Keith Seitz  <keiths@redhat.com>
2428
2429         * location.c (string_to_explicit_location): Note that "-p" is
2430         reserved for probe locations and return NULL for any input
2431         that starts with that.
2432         (string_to_event_location): Move "legacy" linespec code to ...
2433         (string_to_event_location_basic): ... here.
2434         * location.h (string_to_event_location): Update comment.
2435         (string_to_event_location_basic): New function.
2436
2437 2016-02-09  Simon Marchi  <simon.marchi@ericsson.com>
2438
2439         * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
2440         to AC_OUTPUT.  Remove "exit 0" at the end.
2441         * configure: Regenerate.
2442
2443 2016-02-09  Pedro Alves  <palves@redhat.com>
2444
2445         PR breakpoints/19548
2446         * breakpoint.c (create_overlay_event_breakpoint): Don't update
2447         global location list here.
2448         (create_longjmp_master_breakpoint)
2449         (create_std_terminate_master_breakpoint)
2450         (create_exception_master_breakpoint, create_jit_event_breakpoint)
2451         (update_breakpoint_locations):
2452         (breakpoint_re_set): Update global location list after all
2453         breakpoints are re-set.
2454
2455 2016-02-08  Simon Marchi  <simon.marchi@ericsson.com>
2456
2457         * remote.c (remote_register_number_and_offset): Remove unused
2458         variable(s).
2459         (remote_thread_always_alive): Likewise.
2460         (remote_update_thread_list): Likewise.
2461         (process_initial_stop_replies): Likewise.
2462         (remote_start_remote): Likewise.
2463         (remote_check_symbols): Likewise.
2464         (discard_pending_stop_replies): Likewise.
2465         (process_stop_reply): Likewise.
2466         (putpkt_binary): Likewise.
2467         (getpkt): Likewise.
2468         (remote_add_target_side_condition): Likewise.
2469         (remote_insert_breakpoint): Likewise.
2470         (remote_supports_stopped_by_sw_breakpoint): Likewise.
2471         (remote_supports_stopped_by_hw_breakpoint): Likewise.
2472         (remote_xfer_partial): Likewise.
2473         (remote_read_btrace): Likewise.
2474         (remote_async_serial_handler): Likewise.
2475         (remote_thread_events): Likewise.
2476         (_initialize_remote): Likewise.
2477
2478 2016-02-07  Simon Marchi  <simon.marchi@polymtl.ca>
2479
2480         * varobj.h (varobj_delete): Remove dellist parameter, update and
2481         move documentation here.
2482         * varobj.c (struct cpstack, cppush, cppop): Remove.
2483         (delete_variable): Remove resultp (first) parameter.
2484         (delete_variable_1): Likewise.
2485         (varobj_delete): Remove dellist parameter and unused code.
2486         (update_dynamic_varobj_children): Adjust varobj_delete call.
2487         (update_type_if_necessary): Likewise.
2488         (varobj_set_visualizer): Likewise.
2489         (varobj_update): Likewise.
2490         (value_of_root): Likewise.
2491         (varobj_invalidate_iter): Likewise.
2492         * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
2493
2494 2016-02-04  Yao Qi  <yao.qi@linaro.org>
2495
2496         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
2497         0 before handling 'F' and set it back afterwards.
2498
2499 2016-02-02  Simon Marchi  <simon.marchi@ericsson.com>
2500
2501         * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
2502
2503 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2504
2505         * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
2506         New types.
2507         (compat_siginfo): New bound fields added.
2508         (compat_x32_siginfo): New field added.
2509         (cpt_si_addr_lsb): New define.
2510         (compat_siginfo_from_siginfo): Use nat_siginfo.
2511         (siginfo_from_compat_siginfo): Use nat_siginfo.
2512         (compat_x32_siginfo_from_siginfo): Likewise.
2513         (siginfo_from_compat_x32_siginfo): Likewise.
2514
2515 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2516
2517         * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
2518         structure to the siginfo if extra_fields contains
2519         LINUX_SIGINFO_FIELD_ADDR_BND.
2520
2521 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2522
2523         * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
2524         * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
2525         * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
2526         function.
2527         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
2528         x86_linux_get_siginfo_type for the amd64 abi.
2529         * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
2530         function.
2531         (i386_linux_init_abi): Add new function at the i386 ABI
2532         initialization.
2533
2534 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2535
2536         * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
2537         (linux_siginfo_extra_fields): New enum type.
2538         * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
2539         (linux_get_siginfo_type): Use new function.
2540
2541 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2542
2543         * nat/amd64-linux-siginfo.c: New file.
2544         * nat/amd64-linux-siginfo.h: New file.
2545         * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
2546         (amd64-linux-siginfo.o): New rule.
2547         * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
2548         * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
2549         (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
2550         (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
2551         (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
2552         (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
2553         (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
2554         (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
2555
2556 2016-02-01  Andrew Burgess  <andrew.burgess@embecosm.com>
2557
2558         * value.c (max_value_size): New variable.
2559         (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
2560         (set_max_value_size): New function.
2561         (show_max_value_size): New function.
2562         (check_type_length_before_alloc): New function.
2563         (allocate_value_contents): Call check_type_length_before_alloc.
2564         (set_value_enclosing_type): Likewise.
2565         (_initialize_values): Add set/show handler for max-value-size.
2566         * NEWS: Mention new set/show command.
2567
2568 2016-01-31  Simon Marchi  <simon.marchi@polymtl.ca>
2569
2570         * varobj.h (struct varobj): Fix typos in comments.
2571         (struct lang_varobj_ops): Likewise.
2572         * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
2573         (varobj_create): Move misplaced comment.
2574
2575 2016-01-29  Simon Marchi  <simon.marchi@ericsson.com>
2576
2577         * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
2578         to for include additional lines.
2579         * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
2580
2581 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
2582
2583         * gnulib/import/Makefile.am: Regenerate.
2584         * gnulib/import/Makefile.in: Regenerate.
2585         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2586         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
2587
2588 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
2589
2590         * remote.c (skip_to_semicolon): Remove.
2591         (remote_parse_stop_reply): Use strchrnul instead of
2592         skip_to_semicolon.
2593         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
2594         strchrnul.
2595         * gnulib/aclocal.m4: Regenerate.
2596         * gnulib/config.in: Regenerate.
2597         * gnulib/configure: Regenerate.
2598         * gnulib/import/Makefile.am: Regenerate.
2599         * gnulib/import/Makefile.in: Regenerate.
2600         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2601         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2602         * gnulib/import/m4/rawmemchr.m4: New file.
2603         * gnulib/import/m4/strchrnul.m4: New file.
2604         * gnulib/import/rawmemchr.c: New file.
2605         * gnulib/import/rawmemchr.valgrind: New file.
2606         * gnulib/import/strchrnul.c: New file.
2607         * gnulib/import/strchrnul.valgrind: New file.
2608
2609 2016-01-28  Yao Qi  <yao.qi@linaro.org>
2610
2611         * breakpoint.c (build_target_command_list): Don't call continue
2612         if aexpr is NULL.
2613         (build_target_condition_list): Likewise.
2614
2615 2016-01-27  Kevin Buettner  <kevinb@redhat.com>
2616
2617         * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
2618         bytes as aggregates.
2619
2620 2016-01-27  Joel Brobecker  <brobecker@adacore.com>
2621
2622         * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
2623         Linespec Maintainers.
2624
2625 2016-01-26  Simon Marchi  <simon.marchi@ericsson.com>
2626
2627         * common/common-utils.c (skip_spaces): Fix comment.
2628         (skip_to_space_const): Likewise.
2629
2630 2016-01-25  Yao Qi  <yao.qi@linaro.org>
2631
2632         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
2633         Remove argument pc.  Get pc by regcache_read_pc.  Callers updated.
2634         (arm_deal_with_atomic_sequence_raw): Likewise.
2635         (thumb_get_next_pcs_raw): Likewise.
2636         (arm_get_next_pcs_raw): Likewise.
2637         (arm_get_next_pcs): Remove argument pc.  Callers updated.
2638         * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
2639
2640 2016-01-25  Mark Wielaard  <mjw@redhat.com>
2641
2642         * ada-lang.c (ada_evaluate_subexp): Add proper else block.
2643         * c-typeprint.c (c_type_print_base): Fix misleading indentation of
2644         if statement.
2645         * inflow.c (child_terminal_ours_1): Fix misleading indentation of
2646         statement block by introducing an else.
2647         * linux-record.c (record_linux_sockaddr): Fix misleading indentation
2648         of return statements.
2649         (record_linux_msghdr): Likewise.
2650
2651 2016-01-25  Pedro Alves  <palves@redhat.com>
2652
2653         PR threads/19461
2654         * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
2655         parent/child running states.
2656
2657 2016-01-25  Pedro Alves  <palves@redhat.com>
2658
2659         PR gdb/19494
2660         * linux-nat.c (kill_one_lwp): New, factored out from ...
2661         (kill_callback): ... this.
2662         (kill_wait_callback): New, factored out from ...
2663         (kill_wait_one_lwp): ... this.
2664         (kill_unfollowed_fork_children): New function.
2665         (linux_nat_kill): Use it.
2666
2667 2016-01-22  John Baldwin  <jhb@FreeBSD.org>
2668
2669         * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
2670
2671 2016-01-22  Yao Qi  <yao.qi@linaro.org>
2672
2673         * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
2674         instead of warning.
2675         (store_fpregs, fetch_regs, store_regs): Likewise.
2676         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
2677         (fetch_vfp_regs, store_vfp_regs): Likewise.
2678
2679 2016-01-21  Doug Evans  <dje@google.com>
2680
2681         * breakpoint.c (init_breakpoint_sal): Add comment.
2682
2683 2016-01-21  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
2684
2685         * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
2686
2687 2016-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2688
2689         * disasm.c (maybe_add_dis_line_entry): Rename to...
2690         (add_dis_line_entry): ...this, and update header comment.
2691         (do_mixed_source_and_assembly): Now use add_dis_line_entry.
2692
2693 2016-01-21  Pedro Alves  <palves@redhat.com>
2694
2695         * Makefile.in (COMPILER_CFLAGS): New.
2696         (CXXFLAGS): Get it from configure.
2697         (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
2698         instead of CFLAGS.
2699         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
2700         COMPILER_CFLAGS.
2701         * configure: Regenerate.
2702
2703 2016-01-21  Joel Brobecker  <brobecker@adacore.com>
2704
2705         * location.h (new_address_location): Add new parameters
2706         "addr_string" and "addr_string_len".
2707         (get_address_string_location): Add declaration.
2708         * location.c (new_address_location): Add new parameters
2709         "addr_string" and "addr_string_len".  If not NULL, store
2710         a copy of the addr_string in the new location as well.
2711         (get_address_string_location): New function.
2712         (string_to_event_location): Update call to new_address_location.
2713         * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
2714         Save the event location in the parser's state before
2715         passing it to convert_address_location_to_sals.
2716         * breakpoint.c (create_thread_event_breakpoint): Update call
2717         to new_address_location.
2718         (init_breakpoint_sal): Get the event location's string, if any,
2719         and use it to update call to new_address_location.
2720         * python/py-finishbreakpoint.c (bpfinishpy_init):
2721         Update call to new_address_location.
2722         * spu-tdep.c (spu_catch_start): Likewise.
2723
2724         * config/djgpp/fnchange.lst: Add entries for
2725         gdb/testsuite/gdb.base/break-fun-addr1.c and
2726         gdb/testsuite/gdb.base/break-fun-addr2.c.
2727
2728 2016-01-21  Yao Qi  <yao.qi@linaro.org>
2729
2730         * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
2731         is_thumb and set it according to CPSR saved on the stack.
2732         (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
2733         arm_linux_sigreturn_next_pc.
2734
2735 2016-01-20  Simon Marchi  <simon.marchi@polymtl.ca>
2736
2737         * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
2738         Fix enumerators sort key function.
2739
2740 2016-01-20  Joel Brobecker  <brobecker@adacore.com>
2741
2742         * printcmd.c (print_scalar_formatted): Move binary operator from
2743         end of line to beginning of next line.  Adjust formatting
2744         accordingly.
2745
2746 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2747
2748         * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
2749         "len" with sysctl.
2750
2751 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2752
2753         * fbsd-tdep.c (find_stop_signal): Remove.
2754         (struct fbsd_collect_regset_section_cb) <lwp>: New field.
2755         <stop_signal>: New field.
2756         <abort_iteration>: New field.
2757         (fbsd_collect_regset_section_cb): Use new fields.
2758         (fbsd_collect_thread_registers): New function.
2759         (struct fbsd_corefile_thread_data): New structure.
2760         (fbsd_corefile_thread): New function.
2761         (fbsd_make_corefile_notes): Use new function to dump notes for each
2762         non-exited thread in a process.
2763
2764 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2765
2766         * configure.ac: Check for support for LWP names on FreeBSD.
2767         * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
2768         [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
2769         (fbsd_fetch_kinfo_proc): Move function earlier.
2770         [PT_LWPINFO] (fbsd_thread_alive): New function.
2771         [PT_LWPINFO] (fbsd_pid_to_str): New function.
2772         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
2773         [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
2774         [PT_LWPINFO] (fbsd_add_threads): New function.
2775         [PT_LWPINFO] (fbsd_update_thread_list): New function.
2776         [PT_LWPINFO] New variable super_resume.
2777         [PT_LWPINFO] (resume_one_thread_cb): New function.
2778         [PT_LWPINFO] (resume_all_threads_cb): New function.
2779         [PT_LWPINFO] (fbsd_resume): New function.
2780         (fbsd_remember_child): Save full ptid instead of plain pid.
2781         (fbsd_is_child_pending): Return ptid of saved child process.
2782         (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
2783         first stop.
2784         [PT_LWP_EVENTS] Handle LWP events.
2785         [TDP_RFPPWAIT] Include LWP in child ptid.
2786         (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
2787         (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
2788         Add threads for existing processes.
2789         (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
2790         "fbsd_thread_alive".
2791         Set "to_pid_to_str" to "fbsd_pid_to_str".
2792         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
2793         "fbsd_thread_name".
2794         [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
2795         Set "to_has_thread_control" to "tc_schedlock".
2796         Set "to_resume" to "fbsd_resume".
2797         (_initialize_fbsd_nat): New function.
2798         * configure: Regenerate.
2799         * config.in: Regenerate.
2800
2801 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2802
2803         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2804         get_ptrace_pid.
2805         (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
2806         (amd64bsd_dr_get): Use get_ptrace_pid.
2807         (amd64bsd_dr_set): Use get_ptrace_pid.
2808         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
2809         (i386bsd_store_inferior_registers): Use get_ptrace_pid.
2810         (i386bsd_dr_get): Use get_ptrace_pid.
2811         (i386bsd_dr_set): Use get_ptrace_pid.
2812         * inf-ptrace.c (get_ptrace_pid): Export.
2813         * inf-ptrace.h (get_ptrace_pid): Declare.
2814         * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
2815         (ppcfbsd_store_inferior_registers): Use lwp id.
2816
2817 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2818
2819         * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
2820         (fbsd_core_thread_name): New function.
2821         (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
2822         Add "core_thread_name" gdbarch method.
2823
2824 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2825
2826         * corelow.c (core_thread_name): New function.
2827         (init_core_ops): Use "core_thread_name" for the "to_thread_name"
2828         target op.
2829         * gdbarch.sh (core_thread_name): New gdbarch callback.
2830         * gdbarch.h: Re-generate.
2831         * gdbarch.c: Re-generate.
2832
2833 2016-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
2834
2835         * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
2836         convert gdb.Value to integer type using int().
2837
2838 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2839
2840         * configure.ac: Include <sys/types.h when checking for "r_fs" in
2841         "struct reg".
2842         * configure: Regenerate.
2843
2844 2016-01-19  Pedro Alves  <palves@redhat.com>
2845
2846         * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
2847         * break-catch-throw.c (re_set_exception_catchpoint): Pass the
2848         current program space down to linespec decoding and breakpoint
2849         location updating.
2850         * breakpoint.c (parse_breakpoint_sals): Adjust calls to
2851         decode_line_full.
2852         (until_break_command): Adjust calls to decode_line_1.
2853         (base_breakpoint_decode_location, bkpt_decode_location): Add
2854         'search_pspace' parameter.  Pass it along.
2855         (bkpt_probe_create_sals_from_location): Adjust calls to
2856         parse_probes.
2857         (tracepoint_decode_location, tracepoint_probe_decode_location)
2858         (strace_marker_decode_location): Add 'search_pspace' parameter.
2859         Pass it along.
2860         (all_locations_are_pending): Rewrite to take a breakpoint and
2861         program space as arguments instead.
2862         (hoist_existing_locations): New function.
2863         (update_breakpoint_locations): Add 'filter_pspace' parameter.  Use
2864         hoist_existing_locations instead of always removing all locations,
2865         and adjust to all_locations_are_pending change.
2866         (location_to_sals): Add 'search_pspace' parameter.  Pass it along.
2867         Don't disable the breakpoint if there are other locations in
2868         another program space.
2869         (breakpoint_re_set_default): Adjust to pass down the current
2870         program space as filter program space.
2871         (decode_location_default): Add 'search_pspace' parameter and pass
2872         it along.
2873         (prepare_re_set_context): Don't switch program space here.
2874         (breakpoint_re_set): Use save_current_space_and_thread instead of
2875         save_current_program_space.
2876         * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
2877         'search_pspace' parameter.
2878         (update_breakpoint_locations): Add 'filter_pspace' parameter.
2879         * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
2880         decode_line_1.
2881         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
2882         program space as filter program space.
2883         * linespec.c (struct linespec_state) <search_pspace>: New field.
2884         (create_sals_line_offset, convert_explicit_location_to_sals)
2885         (parse_linespec): Pass the search program space down.
2886         (linespec_state_constructor): Add 'search_pspace' parameter.
2887         Store it.
2888         (linespec_parser_new): Add 'search_pspace' parameter and pass it
2889         along.
2890         (linespec_lex_to_end): Adjust.
2891         (decode_line_full, decode_line_1): Add 'search_pspace' parameter
2892         and pass it along.
2893         (decode_line_with_last_displayed): Adjust.
2894         (collect_symtabs_from_filename, symtabs_from_filename): New
2895         'search_pspace' parameter.  Use it.
2896         (find_function_symbols): Pass the search program space down.
2897         * linespec.h (decode_line_1, decode_line_full): Add
2898         'search_pspace' parameter.
2899         * probe.c (parse_probes_in_pspace): New function, factored out
2900         from ...
2901         (parse_probes): ... this.  Add 'search_pspace' parameter and use
2902         it.
2903         * probe.h (parse_probes): Add pspace' parameter.
2904         * python/python.c (gdbpy_decode_line): Adjust.
2905         * tracepoint.c (scope_info): Adjust.
2906
2907 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
2908
2909         * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
2910         instruction support.
2911         (micromips_next_pc): Likewise.
2912         (micromips_scan_prologue): Likewise.
2913         (micromips_deal_with_atomic_sequence): Likewise.
2914         (micromips_stack_frame_destroyed_p): Likewise.
2915         (mips_breakpoint_from_pc): Likewise.
2916
2917 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
2918
2919         * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
2920         unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
2921
2922 2016-01-18  Pedro Alves  <palves@redhat.com>
2923
2924         * NEWS: Mention that GDB now displays the ID and name of the
2925         thread that hit a breakpoint or received a signal.
2926         * break-catch-sig.c (signal_catchpoint_print_it): Use
2927         maybe_print_thread_hit_breakpoint.
2928         * break-catch-syscall.c (print_it_catch_syscall): Likewise.
2929         * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
2930         * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
2931         (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
2932         (print_it_catch_exec, print_it_ranged_breakpoint)
2933         (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
2934         Use maybe_print_thread_hit_breakpoint.
2935         * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
2936         * gdbthread.h (show_thread_that_caused_stop): Declare.
2937         * infrun.c (print_signal_received_reason): Print which thread
2938         received signal.
2939         * thread.c (show_thread_that_caused_stop): New function.
2940
2941 2016-01-18  Gary Benson  <gbenson@redhat.com>
2942
2943         * nat/linux-namespaces.c (do_fork): New function.
2944         (linux_mntns_get_helper): Use the above.
2945
2946 2016-01-17  Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>  (tiny change)
2947
2948         Pushed by Joel Brobecker  <brobecker@adacore.com>.
2949         PR gdb/19208
2950         * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
2951         if the function has no name.
2952
2953 2016-01-15  Sandra Loosemore  <sandra@codesourcery.com>
2954
2955         * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
2956         Conditionalize for Windows host.
2957         (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
2958         (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
2959         (phony_iconv_open): Handle both UTF-32 endiannesses.
2960         (phony_iconv): Likewise.  Check for output overflow and clean up
2961         out-of-input cases.  Correct adjustment to input buffer pointer.
2962         (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
2963         phony_iconv_open.
2964
2965 2016-01-15  Pedro Alves  <palves@redhat.com>
2966
2967         * NEWS: Mention star wildcard ranges.
2968         * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
2969         (number_range_setup_range): New function.
2970         * cli/cli-utils.h (number_range_setup_range): New declaration.
2971         * thread.c (thread_apply_command): Support star TID ranges.
2972         * tid-parse.c (tid_range_parser_finished)
2973         (tid_range_parser_string, tid_range_parser_skip)
2974         (get_tid_or_range, get_tid_or_range): Handle
2975         TID_RANGE_STATE_STAR_RANGE.
2976         (tid_range_parser_star_range): New function.
2977         * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
2978         New value.
2979         (tid_range_parser_star_range): New declaration.
2980
2981 2016-01-15  Pedro Alves  <palves@redhat.com>
2982
2983         * thread.c (thread_apply_command): Use the tid range parser to
2984         advance past the thread ID list.
2985         * tid-parse.c (get_positive_number_trailer): New function.
2986         (parse_thread_id): Use it.
2987         (get_tid_or_range): Use it.  Return 0 instead of throwing invalid
2988         thread ID error.
2989         (get_tid_or_range): Detect negative values.  Return 0 instead of
2990         throwing invalid thread ID error.
2991
2992 2016-01-14  Yao Qi  <yao.qi@linaro.org>
2993
2994         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
2995         Declare.
2996         (arm_linux_get_next_pcs_ops): Install
2997         arm_linux_get_next_pcs_syscall_next_pc.
2998         (arm_linux_syscall_next_pc): Change to ...
2999         (arm_linux_get_next_pcs_syscall_next_pc): ... it.
3000         (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
3001         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
3002         (arm_get_next_pcs_syscall_next_pc): Make it static.  Don't
3003         call tdep->syscall_next_pc.
3004         * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
3005         (arm_get_next_pcs_syscall_next_pc): Remove.
3006
3007 2016-01-14  Yao Qi  <yao.qi@linaro.org>
3008
3009         * remote.c (remote_set_syscall_catchpoint): Cast to char *.
3010         * thread.c (do_captured_thread_select): Cast to const char *.
3011
3012 2016-01-14  Yao Qi  <yao.qi@linaro.org>
3013
3014         * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
3015         argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
3016         (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
3017         instead.
3018         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
3019         <arm_thumb2_breakpoint>: Remove.
3020         <has_thumb2_breakpoint>: New field.
3021         (arm_get_next_pcs_ctor): Update declaration.
3022         * arm-linux-tdep.c (arm_linux_software_single_step): Pass
3023         1 to arm_get_next_pcs_ctor.
3024         * arm-tdep.c (arm_software_single_step): Pass 0 to
3025         arm_get_next_pcs_ctor.
3026
3027 2016-01-13  Ulrich Weigand  <uweigand@de.ibm.com>
3028
3029         * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
3030
3031 2016-01-13  Yao Qi  <yao.qi@linaro.org>
3032
3033         * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
3034         byte_order_for_code to read instruction.
3035
3036 2016-01-13  Pedro Alves  <palves@redhat.com>
3037
3038         * NEWS: Mention $_gthread.
3039         * gdbthread.h (struct thread_info) <global_num>: Mention
3040         $_gthread.
3041         * thread.c (thread_num_make_value_helper): New function.
3042         (thread_id_make_value): Delete.
3043         (thread_id_per_inf_num_make_value, global_thread_id_make_value):
3044         New.
3045         (thread_funcs): Adjust.
3046         (gthread_funcs): New.
3047         (_initialize_thread): Register $_gthread variable.
3048
3049 2016-01-13  Pedro Alves  <palves@redhat.com>
3050
3051         * NEWS: Mention "info threads -gid".
3052         * gdbthread.h (struct thread_info) <global_num>: Mention "info
3053         threads -gid".
3054         * thread.c (info_threads_command): Handle "-gid".
3055         (_initialize_thread): Adjust "info threads" help string to mention
3056         -gid.
3057
3058 2016-01-13  Pedro Alves  <palves@redhat.com>
3059
3060         * NEWS: Mention InferiorThread.global_num.
3061         * python/py-infthread.c (thpy_get_global_num): New function.
3062         (thread_object_getset): Register "global_num".
3063
3064 2016-01-13  Pedro Alves  <palves@redhat.com>
3065
3066         * NEWS: Mention that thread IDs are now per inferior and global
3067         thread IDs.
3068         * Makefile.in (SFILES): Add tid-parse.c.
3069         (COMMON_OBS): Add tid-parse.o.
3070         (HFILES_NO_SRCDIR): Add tid-parse.h.
3071         * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
3072         * breakpoint.c (insert_breakpoint_locations)
3073         (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
3074         (print_one_breakpoint_location, set_longjmp_breakpoint)
3075         (check_longjmp_breakpoint_for_call_dummy)
3076         (set_momentary_breakpoint): Adjust to use global IDs.
3077         (find_condition_and_thread, watch_command_1): Use parse_thread_id.
3078         (until_break_command, longjmp_bkpt_dtor)
3079         (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
3080         to use global IDs.
3081         * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
3082         ptid_to_global_thread_id.
3083         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3084         * gdbthread.h (struct thread_info): Rename field 'num' to
3085         'global_num.  Add new fields 'per_inf_num' and 'inf'.
3086         (thread_id_to_pid): Rename thread_id_to_pid to
3087         global_thread_id_to_ptid.
3088         (pid_to_thread_id): Rename to ...
3089         (ptid_to_global_thread_id): ... this.
3090         (valid_thread_id): Rename to ...
3091         (valid_global_thread_id): ... this.
3092         (find_thread_id): Rename to ...
3093         (find_thread_global_id): ... this.
3094         (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
3095         (print_thread_info): Add comment.
3096         * tid-parse.h: New file.
3097         * tid-parse.c: New file.
3098         * infcmd.c (step_command_fsm_prepare)
3099         (step_command_fsm_should_stop): Adjust to use the global thread
3100         ID.
3101         (until_next_command, until_next_command)
3102         (finish_command_fsm_should_stop): Adjust to use the global thread
3103         ID.
3104         (attach_post_wait): Adjust to check the inferior number too.
3105         * inferior.h (struct inferior) <highest_thread_num>: New field.
3106         * infrun.c (handle_signal_stop)
3107         (insert_exception_resume_breakpoint)
3108         (insert_exception_resume_from_probe): Adjust to use the global
3109         thread ID.
3110         * record-btrace.c (record_btrace_open): Use global thread IDs.
3111         * remote.c (process_initial_stop_replies): Also consider the
3112         inferior number.
3113         * target.c (target_pre_inferior): Clear the inferior's highest
3114         thread num.
3115         * thread.c (clear_thread_inferior_resources): Adjust to use the
3116         global thread ID.
3117         (new_thread): New inferior parameter.  Adjust to use it.  Set both
3118         the thread's global ID and the thread's per-inferior ID.
3119         (add_thread_silent): Adjust.
3120         (find_thread_global_id): New.
3121         (find_thread_id): Make static.  Adjust to rename.
3122         (valid_thread_id): Rename to ...
3123         (valid_global_thread_id): ... this.
3124         (pid_to_thread_id): Rename to ...
3125         (ptid_to_global_thread_id): ... this.
3126         (thread_id_to_pid): Rename to ...
3127         (global_thread_id_to_ptid): ... this.  Adjust.
3128         (first_thread_of_process): Adjust.
3129         (do_captured_list_thread_ids): Adjust to use global thread IDs.
3130         (should_print_thread): New function.
3131         (print_thread_info): Rename to ...
3132         (print_thread_info_1): ... this, and add new show_global_ids
3133         parameter.  Handle it.  Iterate over inferiors.
3134         (print_thread_info): Reimplement as wrapper around
3135         print_thread_info_1.
3136         (show_inferior_qualified_tids): New function.
3137         (print_thread_id): Use it.
3138         (tp_array_compar): Compare inferior numbers too.
3139         (thread_apply_command): Use tid_range_parser.
3140         (do_captured_thread_select): Use parse_thread_id.
3141         (thread_id_make_value): Adjust.
3142         (_initialize_thread): Adjust "info threads" help string.
3143         * varobj.c (struct varobj_root): Update comment.
3144         (varobj_create): Adjust to use global thread IDs.
3145         (value_of_root_1): Adjust to use global_thread_id_to_ptid.
3146         * windows-tdep.c (display_tib): No longer accept an argument.
3147         * cli/cli-utils.c (get_number_trailer): Make extern.
3148         * cli/cli-utils.h (get_number_trailer): Declare.
3149         (get_number_const): Adjust documentation.
3150         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
3151         thread IDs.
3152         * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3153         (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
3154         * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
3155         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
3156         Likewise.
3157         * python/py-breakpoint.c (bppy_set_thread): Likewise.
3158         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3159         * python/py-infthread.c (thpy_get_num): Add comment and return the
3160         per-inferior thread ID.
3161         (thread_object_getset): Update comment of "num".
3162
3163 2016-01-13  Pedro Alves  <palves@redhat.com>
3164
3165         * breakpoint.c (remove_threaded_breakpoints)
3166         (print_one_breakpoint_location): Use print_thread_id.
3167         * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3168         (btrace_fetch, btrace_clear): Use print_thread_id.
3169         * common/print-utils.c (CELLSIZE): Delete.
3170         (get_cell): Rename to ...
3171         (get_print_cell): ... this and made extern.  Adjust call callers.
3172         Adjust to use PRINT_CELL_SIZE.
3173         * common/print-utils.h (get_print_cell): Declare.
3174         (PRINT_CELL_SIZE): New.
3175         * gdbthread.h (print_thread_id): Declare.
3176         * infcmd.c (signal_command): Use print_thread_id.
3177         * inferior.c (print_inferior): Use print_thread_id.
3178         * infrun.c (handle_signal_stop)
3179         (insert_exception_resume_breakpoint)
3180         (insert_exception_resume_from_probe)
3181         (print_signal_received_reason): Use print_thread_id.
3182         * record-btrace.c (record_btrace_info)
3183         (record_btrace_resume_thread, record_btrace_cancel_resume)
3184         (record_btrace_step_thread, record_btrace_wait): Use
3185         print_thread_id.
3186         * thread.c (thread_apply_all_command): Use print_thread_id.
3187         (print_thread_id): New function.
3188         (thread_apply_command): Use print_thread_id.
3189         (thread_command, thread_find_command, do_captured_thread_select):
3190         Use print_thread_id.
3191
3192 2016-01-13  Pedro Alves  <palves@redhat.com>
3193
3194         * NEWS: Mention InferiorThread.inferior.
3195         * python/py-infthread.c (thpy_get_inferior): New.
3196         (thread_object_getset): Register "inferior".
3197
3198 2016-01-13  Pedro Alves  <palves@redhat.com>
3199
3200         * NEWS: Mention $_inferior.
3201         * inferior.c (inferior_id_make_value): New.
3202         (inferior_funcs): New.
3203         (_initialize_inferior): Create $_inferior variable.
3204
3205 2016-01-13  Pedro Alves  <palves@redhat.com>
3206
3207         PR breakpoints/19388
3208         * frame.c (get_current_frame): Use validate_registers_access.
3209         * gdbthread.h (validate_registers_access): Declare.
3210         * infrun.c (validate_siginfo_access): Delete.
3211         (siginfo_value_read, siginfo_value_write): Use
3212         validate_registers_access.
3213         * thread.c (validate_registers_access): New function.
3214
3215 2016-01-12  Josh Stone  <jistone@redhat.com>
3216             Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3217
3218         * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
3219         syscall_entry and syscall_return stop reasons.  Mention GDB
3220         support for remote catch syscall.
3221         * remote.c (PACKET_QCatchSyscalls): New enum.
3222         (remote_set_syscall_catchpoint): New function.
3223         (remote_protocol_features): New element for QCatchSyscalls.
3224         (remote_parse_stop_reply): Parse syscall_entry/return stops.
3225         (init_remote_ops): Install remote_set_syscall_catchpoint.
3226         (_initialize_remote): Config QCatchSyscalls.
3227         * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
3228
3229 2016-01-12  Yao Qi  <yao.qi@linaro.org>
3230
3231         * nat/linux-ptrace.c (linux_child_function): Cast child_stack
3232         to gdb_byte * and pass to linux_fork_to_function.
3233
3234 2016-01-12  Yao Qi  <yao.qi@linaro.org>
3235
3236         * nat/linux-ptrace.c (linux_fork_to_function): Change type
3237         of argument 'function'.
3238         (linux_grandchild_function): Change return type to 'int'.
3239         Change child_stack's type to 'void *'.
3240         (linux_child_function): Likewise.
3241
3242 2016-01-12  Pedro Alves  <palves@redhat.com>
3243
3244         Remove use of the registered trademark symbol throughout.
3245
3246 2016-01-12  Thomas Schwinge  <thomas@codesourcery.com>
3247
3248         * reply_mig_hack.awk: Rewrite one regular expression.
3249
3250 2016-01-11  Mike Frysinger  <vapier@gentoo.org>
3251
3252         * acinclude.m4: Include new warning.m4 file.
3253         * configure: Regenerated.
3254         * configure.ac: Move all warning logic ...
3255         * warning.m4: ... here.
3256
3257 2016-01-08  Yao Qi  <yao.qi@linaro.org>
3258
3259         * extension.c: Include target.h.
3260         (set_active_ext_lang): Only call install_gdb_sigint_handler,
3261         check_quit_flag, and set_quit_flag if target_terminal_is_ours
3262         returns false.
3263         (restore_active_ext_lang): Likewise.
3264         * target.c (target_terminal_is_ours): New function.
3265         * target.h (target_terminal_is_ours): Declare.
3266
3267 2016-01-07  Maciej W. Rozycki  <macro@imgtec.com>
3268
3269         * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
3270         to `err' in the little-endian leg.
3271
3272 2016-01-06  Yao Qi  <yao.qi@linaro.org>
3273
3274         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
3275         lines below.
3276         (thumb_get_next_pcs_raw): Make it static.
3277         (arm_get_next_pcs_raw): Likewise.
3278         * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
3279         declaration.
3280         (arm_get_next_pcs_raw): Likewise.
3281
3282 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
3283
3284         * version.in: Change cvs to git.
3285
3286 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
3287
3288         * configure.tgt (score-*-*): Delete gdb_sim assignment.
3289
3290 2016-01-05  Pedro Alves  <palves@redhat.com>
3291
3292         PR sim/13418
3293         * configure.ac: Define WITH_PPC_SIM when linking in the sim and
3294         the target is powerpc*.
3295         * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
3296         of WITH_SIM.
3297         * configure: Regenerate.
3298         * config.in: Regenerate.
3299
3300 2016-01-04  Markus Metzger  <markus.t.metzger@intel.com>
3301
3302         * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
3303
3304 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
3305
3306         * configure.tgt (powerpc*-*-*): Delete test call and
3307         always assign gdb_sim.
3308
3309 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
3310
3311         Update year range in copyright notice of all files.
3312
3313 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
3314
3315         * top.c (print_gdb_version): Change copyright year in version
3316         message.
3317
3318 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
3319
3320         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
3321
3322 For older changes see ChangeLog-2015.
3323 \f
3324 Local Variables:
3325 mode: change-log
3326 left-margin: 8
3327 fill-column: 74
3328 version-control: never
3329 coding: utf-8
3330 End: