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