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