gdb/configure --help: suggest --disable-build-with-cxx instead of --enable...
[external/binutils.git] / gdb / ChangeLog
1 2016-08-05  Pedro Alves  <palves@redhat.com>
2
3         * build-with-cxx.m4: Change help string to be in terms of
4         --disable-build-with-cxx.
5         * configure: Regenerate.
6
7 2016-08-04  Yao Qi  <yao.qi@linaro.org>
8
9         * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
10         declaration.
11         (aarch64_linux_read_description): Remove code on getting
12         auxv and select target description on it.  Select target
13         description by the result of NT_ARM_VFP ptrace request.
14
15 2016-08-03  Tom Tromey  <tom@tromey.com>
16
17         PR python/18565:
18         * python/py-frame.c (frapy_function): Use find_frame_funname.
19
20 2016-08-03  Tom Tromey  <tom@tromey.com>
21
22         * stack.c (find_frame_funname): Avoid any possible leak in case
23         cp_remove_params can throw.
24
25 2016-08-03  Tom Tromey  <tom@tromey.com>
26
27         * NEWS: Mention new Python breakpoint events.
28
29 2016-08-02  Tom Tromey  <tom@tromey.com>
30
31         * MAINTAINERS (Core): Add self as Rust maintainer.
32
33 2016-08-01  Joel Brobecker  <brobecker@adacore.com>
34
35         * NEWS: Create a new section for the next release branch.
36         Rename the section of the current branch, now that it has
37         been cut.
38
39 2016-08-01  Joel Brobecker  <brobecker@adacore.com>
40
41         GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
42         * version.in: Bump version to 7.12.50.DATE-git.
43
44 2016-07-27  Alan Modra  <amodra@gmail.com>
45
46         * amd64-darwin-tdep.c: Don't include libbfd.h.
47         * i386-darwin-tdep.c: Likewise.
48         * rs6000-nat.c: Likewise.
49         * rs6000-tdep.c: Likewise.
50
51 2016-07-26  Tom Tromey  <tom@tromey.com>
52
53         * symtab.c (register_symbol_computed_impl): Update.
54         PR python/20190:
55         * value.h (symbol_read_needs): Declare.
56         (symbol_read_needs_frame): Add comment.
57         * symtab.h (struct symbol_computed_ops) <read_variable>: Update
58         comment.
59         <get_symbol_read_needs>: Rename.  Change return type.
60         * findvar.c (symbol_read_needs): New function.
61         (symbol_read_needs_frame): Rewrite.
62         (default_read_var_value): Use symbol_read_needs.
63         * dwarf2loc.c (struct symbol_needs_baton): Rename.
64         <needs>: Renamed from needs_frame.  Changed type.
65         (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
66         (symbol_needs_read_mem, symbol_needs_frame_base)
67         (symbol_needs_frame_cfa, symbol_needs_tls_address)
68         (symbol_needs_dwarf_call): Rename.
69         (needs_dwarf_reg_entry_value): Update.
70         (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
71         Rename and update.
72         (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
73         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
74         * defs.h (enum symbol_needs_kind): New.
75
76 2016-07-26  Pedro Alves  <palves@redhat.com>
77
78         * nat/linux-ptrace.c: Include "gregset.h".
79         (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
80         PTRACE_PEEKUSER.
81
82 2016-07-26  Pedro Alves  <palves@redhat.com>
83
84         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
85         parameter to 'ptrace'.
86         * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
87         (nat_uptr_t): New an unsigned long.
88         (nat_clock_t): Remove attribute __aligned__.
89         (struct nat_timeval): Delete.
90         (nat_siginfo_t): Remove attribute __aligned__.
91         (ptrace_siginfo_t): Define.
92         (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
93         (compat_x32_siginfo_from_siginfo)
94         (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
95         Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
96         Remove casts.
97         (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
98         'ptrace'.  Remove static assertions.
99         (top level): New static assertions.
100
101 2016-07-25  Simon Marchi  <simon.marchi@ericsson.com>
102
103         * top.h (make_delete_ui_cleanup): New declaration.
104         * top.c (delete_ui_cleanup): New function.
105         (make_delete_ui_cleanup): New function.
106         (new_ui_command): Create restore_ui cleanup earlier, create a
107         delete_ui cleanup and discard it on success.
108
109 2016-07-25  Pedro Alves  <palves@redhat.com>
110             Jan Kratochvil  <jan.kratochvil@redhat.com>
111
112         * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
113         't'.
114
115 2016-07-25  Pedro Alves  <palves@redhat.com>
116
117         * nat/linux-procfs.c (enum proc_state): New enum.
118         (parse_proc_status_state): New function.
119         (linux_proc_pid_get_state): Replace output string buffer parameter
120         with an output proc_state parameter.  Use parse_proc_status_state.
121         (linux_proc_pid_is_gone): Adjust to use proc_state values.
122         (linux_proc_pid_has_state): Change type of 'state' parameter; now
123         an enum proc_state.  Adjust to linux_proc_pid_get_state interface
124         change.
125         (linux_proc_pid_is_stopped)
126         (linux_proc_pid_is_trace_stopped_nowarn)
127         (linux_proc_pid_is_zombie_maybe_warn): Adjust to
128         linux_proc_pid_get_state interface change.
129
130 2016-07-25  Tim Wiederhake  <tim.wiederhake@intel.com>
131
132         * MAINTAINERS (Write After Approval): Add Tim Wiederhake
133
134 2016-07-25  Tim Wiederhake  <tim.wiederhake@intel.com>
135
136         * NEWS: Resume btrace on reconnect.
137         * record-btrace.c: Added record-btrace.h include.
138         (record_btrace_open): Split into this and ...
139         (record_btrace_push_target): ... this.
140         (record_btrace_disconnect): New function.
141         (init_record_btrace_ops): Use record_btrace_disconnect.
142         * record-btrace.h: New file.
143         * remote.c: Added record-btrace.h include.
144         (remote_start_remote): Check recording status.
145         (remote_btrace_maybe_reopen): New function.
146
147 2016-07-23  Gabriel Krisman Bertazi  <gabriel@krisman.be>
148
149         * xml-syscall.c (get_syscalls_by_group): New.
150         (get_syscall_group_names): New.
151         (struct syscall_group_desc): New structure to store group data.
152         (struct syscalls_info): Include field to store the group list.
153         (sysinfo_free_syscall_group_desc): New.
154         (free_syscalls_info): Free group list.
155         (syscall_group_create_syscall_group_desc): New.
156         (syscall_group_add_syscall): New.
157         (syscall_create_syscall_desc): Add syscall to its groups.
158         (syscall_start_syscall): Load group attribute.
159         (syscall_group_get_group_by_name): New.
160         (xml_list_syscalls_by_group): New.
161         (xml_list_of_groups): New.
162         * xml-syscall.h (get_syscalls_by_group): Export function
163         to retrieve a list of syscalls filtered by the group name.
164         (get_syscall_group_names): Export function to retrieve the list
165         of syscall groups.
166         * break-catch-syscall.c (catch_syscall_split_args): Verify if
167         argument is a syscall group and expand it to a list of syscalls
168         when creating catchpoints.
169         (catch_syscall_completer): Add word completion for system call
170         groups.
171         * configure.ac: Include dependency for xsltproc when building
172         in maintainer-mode.
173         * break-catch-syscall.c (_initialize_breakpoint): Update catch
174         syscall command documentation.
175         * NEWS: Include section about catching groups of syscalls.
176         * configure: Regenerate.
177         * data-directory/Makefile.in: Generate syscall xml when building
178         in maintainer mode.
179         * syscalls/gdb-syscalls.dtd: Include group attribute to the
180         syscall element.
181         * syscalls/apply-defaults.xsl: New.
182         * syscalls/linux-defaults.xml.in: New.
183         * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
184         * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
185         * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
186         * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
187         * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
188         * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
189         * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
190         * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
191         * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
192         * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
193         * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
194         * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
195         * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
196         * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
197         * syscalls/aarch64-linux.xml: Regenerate.
198         * syscalls/amd64-linux.xml: Regenerate.
199         * syscalls/arm-linux.xml: Regenerate.
200         * syscalls/i386-linux.xml: Regenerate.
201         * syscalls/mips-n32-linux.xml: Regenerate.
202         * syscalls/mips-n64-linux.xml: Regenerate.
203         * syscalls/mips-o32-linux.xml: Regenerate.
204         * syscalls/ppc-linux.xml: Regenerate.
205         * syscalls/ppc64-linux.xml: Regenerate.
206         * syscalls/s390-linux.xml: Regenerate.
207         * syscalls/s390x-linux.xml: Regenerate.
208         * syscalls/sparc-linux.xml: Regenerate.
209         * syscalls/sparc64-linux.xml: Regenerate.
210
211 2016-07-23  Andrew Pinski  <apinski@cavium.com>
212
213         * nat/aarch64-linux-hw-point.c
214         (aarch64_linux_get_debug_reg_capacity): Handle
215         ARMv8.1 and ARMv8.2 debug versions.
216         * nat/aarch64-linux-hw-point.h
217         (AARCH64_DEBUG_ARCH_V8_1): New define.
218         (AARCH64_DEBUG_ARCH_V8_2): New define.
219
220 2016-06-30  Руслан Ижбулатов  <lrn1986@gmail.com>
221
222         PR gdb/14529
223         * windows-nat.c (signal_event_command): New command 'signal-event'
224         for W32 JIT debug support.
225         * NEWS: Add an entry about the new 'signal-event' command.
226
227 2016-07-22  Tom Tromey  <tom@tromey.com>
228
229         PR rust/20162:
230         * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
231         Call scan_partial_symbols for children when reading a Rust CU.
232         (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
233         rustc.
234         (process_structure_scope) <DW_TAG_subprogram>: Call
235         read_func_scope for Rust.
236
237 2016-07-22  Yao Qi  <yao.qi@linaro.org>
238
239         * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
240         bt_ctf_get_int64.
241
242 2016-07-21  Tom Tromey  <tom@tromey.com>
243
244         * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
245         structs.
246         * rust-exp.y (struct_expr_list): Allow empty elements.
247
248 2016-07-21  Tom Tromey  <tom@tromey.com>
249
250         * configure: Rebuild.
251         * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
252         -Wunused-but-set-parameter, -Wunused-but-set-variable.
253
254 2016-07-21  Pedro Alves  <palves@redhat.com>
255
256         * go32-nat.c (go32_create_inferior): Add cast.
257         * ser-go32.c (dos_noop): Delete.
258         (dos_flush_output, dos_setparity, dos_drain_output): New
259         functions.
260         (dos_write): Add cast.
261         (dos_ops): Use dos_flush_output, dos_setparity and
262         dos_drain_output.
263         * top.c (do_chdir_cleanup): Add cast.
264
265 2016-07-21  Pedro Alves  <palves@redhat.com>
266
267         * windows-nat.c (handle_exception): Remove "th".
268
269 2016-07-21  Pedro Alves  <palves@redhat.com>
270
271         * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
272         scope that uses it.
273
274 2016-07-20  John Baldwin  <jhb@FreeBSD.org>
275
276         * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
277         events.
278         (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
279         defined.
280         (fbsd_add_vfork_done): Likewise.
281         (fbsd_is_vfork_done_pending): Likewise.
282         (fbsd_next_vfork_done): Likewise.
283         (fbsd_resume): Only ignore pending vfork done events if
284         "PTRACE_VFORK" is not defined.
285         (fbsd_wait): Only look for pending vfork done events if
286         "PTRACE_VFORK" is not defined.
287         [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
288         events.
289         (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
290         is not defined.
291
292 2016-07-20  John Baldwin  <jhb@FreeBSD.org>
293
294         * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
295         new child processes.
296
297 2016-07-20  John Baldwin  <jhb@FreeBSD.org>
298
299         * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
300         (fbsd_enable_proc_events): New function.
301         (fbsd_enable_follow_fork): Remove function.
302         (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
303         (fbsd_post_attach): Likewise.
304
305 2016-07-15  John Baldwin  <jhb@FreeBSD.org>
306
307         * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
308         (do_gdb_signal_to_host): Likewise.
309         * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
310         programs.
311         * proc-events.c (signal_table): Add entry for SIGLIBRT.
312
313 2016-07-14  Tom Tromey  <tom@tromey.com>
314
315         * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
316         newline.
317
318 2016-07-14  Tom Tromey  <tom@tromey.com>
319
320         * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
321         (mips_o32_push_dummy_call): Remove "stack_used_p".
322         * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
323         "insn_bit28".
324         * rust-lang.c (rust_print_type): Remove "len".
325         * rust-exp.y (super_name): Remove "current_len".
326         * python/py-framefilter.c (py_print_type): Remove "type".
327         * mdebugread.c (parse_partial_symbols): Remove
328         "past_first_source_file".
329         <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
330         * m2-valprint.c (m2_print_unbounded_array): Remove
331         "content_type".
332         (m2_val_print): Remove "i".
333         * linespec.c (unexpected_linespec_error): Remove "cleanup".
334         * f-valprint.c (f_val_print): Remove "i".
335         * elfread.c (elf_symtab_read): Remove "offset".
336         * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
337         * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
338
339 2016-07-14  Tom Tromey  <tom@tromey.com>
340
341         * arch-utils.c (default_skip_permanent_breakpoint): Remove
342         "bp_insn".
343         * disasm.c (do_assembly_only): Remove "num_displayed".
344         * dwarf2read.c (read_abbrev_offset): Remove "length".
345         (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
346         "constant".
347         * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
348         * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
349         * tracefile.c (trace_save): Remove "status".
350
351 2016-07-14  Tom Tromey  <tom@tromey.com>
352
353         * symfile.c (simple_overlay_update_1): Remove initialization
354         of "size", and commented-out code.
355         (simple_overlay_update): Likewise.
356
357 2016-07-14  Tom Tromey  <tom@tromey.com>
358
359         * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
360         * tui/tui-io.c (tui_puts): Use getcurx.
361         (tui_redisplay_readline): Likewise.
362
363 2016-07-14  Tom Tromey  <tom@tromey.com>
364
365         * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
366
367 2016-07-14  Tom Tromey  <tom@tromey.com>
368
369         * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
370         succeeded.
371
372 2016-07-13  Tom Tromey  <tom@tromey.com>
373
374         PR python/15620, PR python/18620:
375         * python/py-evts.c (gdbpy_initialize_py_events): Call
376         add_new_registry for new events.
377         * python/py-events.h (events_object) <breakpoint_created,
378         breakpoint_deleted, breakpoint_modified>: New fields.
379         * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
380         breakpoint changed event.
381         (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
382         (gdbpy_breakpoint_modified): New function.
383         (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
384         observer.
385
386 2016-07-13  Tom Tromey  <tom@tromey.com>
387
388         PR python/17698:
389         * NEWS: Update.
390         * python/py-breakpoint.c (bppy_get_pending): New function.
391         (breakpoint_object_getset): Add entry for "pending".
392         * breakpoint.h (pending_breakpoint_p): Declare.
393         * breakpoint.c (pending_breakpoint_p): New function.
394
395 2016-07-13  Tom Tromey  <tom@tromey.com>
396
397         * python/py-breakpoint.c (bppy_get_visibility)
398         (gdbpy_breakpoint_created): Use user_breakpoint_p.
399
400 2016-07-13  Tom Tromey  <tom@tromey.com>
401
402         PR cli/18053:
403         * jit.c (jit_reader_load_command): Use tilde_expand.
404         (_initialize_jit): Fix help for jit-reader-unload.  Set completer
405         for new commands.
406
407 2016-07-12  Tom Tromey  <tom@tromey.com>
408
409         PR python/19293:
410         * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
411         gdb.invalidate_cached_frames.
412         * python/lib/gdb/unwinder.py (register_unwinder): Call
413         gdb.invalidate_cached_frames.
414         * python/python.c (gdbpy_invalidate_cached_frames): New function.
415         (python_GdbMethods): Add entry for invalidate_cached_frames.
416
417 2016-07-07  Walfred Tedeschi  <walfred.tedeschi@intel.com>
418
419         * cp-namespace.c (cp_lookup_bare_symbol): Initialize 
420         lang_this.symbol.
421
422 2016-07-07  Walfred Tedeschi  <walfred.tedeschi@intel.com>
423
424         * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
425         parameter to look for the symbol "this".
426
427
428 2016-07-06  John Baldwin  <jhb@FreeBSD.org>
429
430         * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
431
432 2016-07-06  John Baldwin  <jhb@FreeBSD.org>
433
434         * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
435         left shifts.
436
437 2016-07-06  John Baldwin  <jhb@FreeBSD.org>
438
439         * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
440         the MEDIA_FP_REGNUM register.
441
442 2016-07-06  John Baldwin  <jhb@FreeBSD.org>
443
444         * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
445         negative size.
446
447 2016-07-06  John Baldwin  <jhb@FreeBSD.org>
448
449         * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
450
451 2016-07-06  Yao Qi  <yao.qi@linaro.org>
452
453         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
454         arm_vfp_cprc_sub_candidate for static field.
455
456 2016-07-06  Manish Goregaokar  <manish@mozilla.com>
457
458         * rust-lang.c (rust_subscript): Allow subscripting pointers
459
460 2016-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
461
462         * configure: Regenerate.
463         * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
464
465 2016-07-01  Don Breazeal  <donb@codesourcery.com>
466
467         * remote.c (remote_get_memory_xfer_limit): New function.
468         * target-delegates.c: Regenerate.
469         * target.c (memory_xfer_partial): Call
470         target_ops.to_get_memory_xfer_limit.
471         * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
472         member.
473
474 2016-07-01  John Baldwin  <jhb@FreeBSD.org>
475
476         * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
477         (struct fbsd_fork_info): ... this.
478         (struct fbsd_fork_info) <child>: Rename to ...
479         (struct fbsd_fork_info) <ptid>: ... this.
480         (fbsd_pending_children): Update type.
481         (fbsd_remember_child): Update type and field name.
482         (fbsd_is_child_pending): Likewise.
483         (fbsd_pending_vfork_done): New variable.
484         (fbsd_is_vfork_done_pending): New function.
485         (fbsd_next_vfork_done): New function.
486         (fbsd_resume): Don't resume processes with a pending vfork done
487         event.
488         (fbsd_wait): Report pending vfork done events.
489         (fbsd_follow_fork): Delay and record a pending vfork done event
490         for a vfork parent when detaching the child.
491
492 2016-07-01  John Baldwin  <jhb@FreeBSD.org>
493
494         * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
495         (resume_one_thread_cb): Move below fork following helper code.
496         (resume_all_threads_cb): Likewise.
497         (fbsd_resume): Likewise.
498
499 2016-07-01  John Baldwin  <jhb@FreeBSD.org>
500
501         * fbsd-nat.c (fbsd_follow_fork): Only detach child if
502         "detach_fork" is true.
503
504 2016-07-01  John Baldwin  <jhb@FreeBSD.org>
505
506         * x86bsd-nat.c: Include 'gdbthread.h'.
507         (x86bsd_dr_set): Set debug registers on all threads belonging to
508         the current inferior.
509
510 2016-07-01  John Baldwin  <jhb@FreeBSD.org>
511
512         * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
513         'x86bsd-nat.h'.
514         * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
515         'amd64bsd-nat.h'.
516         (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
517         (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
518         with 'x86bsd_xsave_len'.
519         (amd64bsd_store_inferior_registers): Likewise.
520         (amd64bsd_target): Inherit from x86bsd_target.
521         (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
522         (amd64bsd_dr_set): Likewise.
523         (amd64bsd_dr_set_control): Likewise.
524         (amd64bsd_dr_set_addr): Likewise.
525         (amd64bsd_dr_get_addr): Likewise.
526         (amd64bsd_dr_get_status): Likewise.
527         (amd64bsd_dr_get_control): Likewise.
528         * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
529         'amd64bsd-nat.h'.
530         (super_mourn_inferior): Move to x86bsd-nat.c.
531         (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
532         (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
533         'x86bsd_xsave_len'.
534         (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
535         mourn_inferior' target op.
536         * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
537         * config/i386/fbsd64.mh: Likewise.
538         * config/i386/nbsd64.mh: Likewise.
539         * config/i386/nbsdelf.mh: Likewise.
540         * config/i386/obsd.mh: Likewise.
541         * config/i386/obsd64.mh: Likewise.
542         * i386bsd-nat.c: Include 'x86bsd-nat.h'.
543         (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
544         (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
545         with 'x86bsd_xsave_len'.
546         (i386bsd_store_inferior_registers): Likewise.
547         (i386bsd_target): Inherit from x86bsd_target.
548         (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
549         (i386bsd_dr_set): Likewise.
550         (i386bsd_dr_set_control): Likewise.
551         (i386bsd_dr_set_addr): Likewise.
552         (i386bsd_dr_get_addr): Likewise.
553         (i386bsd_dr_get_status): Likewise.
554         (i386bsd_dr_get_control): Likewise.
555         * i386bsd-nat.h (i386bsd_xsave_len): Remove.
556         (i386bsd_dr_set_control): Remove.
557         (i386bsd_dr_set_addr): Remove.
558         (i386bsd_dr_get_addr): Remove.
559         (i386bsd_dr_get_status): Remove.
560         (i386bsd_dr_get_control): Remove.
561         * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
562         (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
563         'x86bsd_xsave_len'.
564         (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
565         mourn_inferior' target op.
566         * x86bsd-nat.c: New file.
567         * x86bsd-nat.h: New file.
568
569 2016-07-01  Pedro Alves  <palves@redhat.com>
570             Tom Tromey  <tom@tromey.com>
571
572         * jit.c (jit_reader_load_command): Call reinit_frame_cache and
573         jit_inferior_created_hook.
574         (jit_reader_unload_command): Call reinit_frame_cache and
575         jit_inferior_exit_hook.
576         * jit.c (struct jit_unwind_private) <registers>: Delete field.
577         <regcache>: New field.
578         (jit_unwind_reg_set_impl): Set the register's value in the
579         regcache.  Free the passed-in gdb_reg_value.
580         (jit_dealloc_cache): Adjust to free the regcache.
581         (jit_frame_sniffer): Allocate a regcache instead of an array of
582         gdb_reg_value pointers.
583         (jit_frame_this_id): Adjust.
584         (jit_frame_prev_register): Read raw registers off of the regcache
585         instead of from the gdb_reg_value pointer array.  Use
586         gdbarch_pseudo_register_read_value to read pseudo registers.
587         * regcache.c (regcache_raw_set_cached_value): New function,
588         factored out from ...
589         (regcache_raw_write): ... here.
590         * regcache.h (regcache_raw_set_cached_value): Declare.
591
592 2016-07-01  Pedro Alves  <palves@redhat.com>
593             Antoine Tremblay  <antoine.tremblay@ericsson.com>
594
595         * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
596         out from ...
597         (inf_ptrace_detach): ... here.
598         * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
599         * linux-nat.c (get_pending_status): Rename to ...
600         (get_detach_signal): ... this, and return a host signal instead of
601         filling in a wait status.
602         (detach_one_lwp): New function, factored out from detach_callback
603         and adjusted to handle detaching from a zombie thread.
604         (detach_callback): Skip the leader thread.
605         (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
606         the leader thread, nor build a signal string to pass down.
607         Instead, use target_announce_detach, detach_one_lwp and
608         inf_ptrace_detach_success.
609
610 2016-07-01  Pedro Alves  <palves@redhat.com>
611
612         * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
613         locations.
614         * infcmd.c (detach_command): Call breakpoint_init_inferior.
615
616 2016-07-01  Pedro Alves  <palves@redhat.com>
617
618         * darwin-nat.c (darwin_detach): Use target_announce_detach.
619         * inf-ptrace.c (inf_ptrace_detach): Likewise.
620         * nto-procfs.c (procfs_detach): Likewise.
621         * remote.c (remote_detach_1): Likewise.
622         * target.c (target_announce_detach): New function.
623         * target.h (target_announce_detach): New declaration.
624
625 2016-06-29  Tom Tromey  <tom@tromey.com>
626
627         PR python/20129:
628         * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
629         (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
630         not "name".
631
632 2016-06-29  Tom Tromey  <tom@tromey.com>
633
634         PR gdb/17210:
635         * target.c (free_memory_read_result_vector): Take a pointer to the
636         VEC as an argument.
637         (read_memory_robust): Install a cleanup for "result".
638         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
639
640 2016-06-29  Manish Goregaokar  <manish@mozilla.com>
641
642         * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
643
644 2016-06-29  Manish Goregaokar  <manish@mozilla.com>
645
646         * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
647
648 2016-06-28  Yao Qi  <yao.qi@linaro.org>
649
650         * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
651         variable new_offset.
652
653 2016-06-27  Manish Goregaokar  <manish@mozilla.com>
654
655         * rust-lang.c (rust_print_type, rust_decorations): Print unit
656         types as "()".
657         (rust_print_type): Omit return type for functions returning unit.
658
659 2016-06-25  Pierre-Marie de Rodat  <derodat@adacore.com>
660
661         * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
662         when there is an error during the breakpoint creation.
663
664 2016-06-25  Tom Tromey  <tom@tromey.com>
665
666         * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
667         formatting.
668
669 2016-06-25  Manish Goregaokar  <manish@mozilla.com>
670
671         PR gdb/20239
672         * rust-lang.c (rust_get_disr_info): Correctly interpret
673         NonZero-optimized enums of arbitrary depth.
674         (rust_print_type): Correctly print NonZero-optimized
675         enums.
676
677 2016-06-24  David Taylor  <dtaylor@emc.com>
678
679         PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
680         * c-lang.h: Change all parameters, variables, and struct or union
681         members used as struct or union fie3ld offsets from int to
682         LONGEST.
683         * c-valprint.c: Likewise.
684         * cp-abi.c: Likewise.
685         * cp-abi.h: Likewise.
686         * cp-valprint.c: Likewise.
687         * d-valprint.c: Likewise.
688         * dwarf2loc.c: Likewise.
689         * eval.c: Likewise.
690         * extension-priv.h: Likewise.
691         * extension.c: Likewise.
692         * extension.h: Likewise.
693         * findvar.c: Likewise.
694         * gdbtypes.h: Likewise.
695         * gnu-v2-abi.c: Likewise.
696         * gnu-v3-abi.c: Likewise.
697         * go-valprint.c: Likewise.
698         * guile/guile-internal.h: Likewise.
699         * guile/scm-pretty-print.c: Likewise.
700         * jv-valprint.c Likewise.
701         * opencl-lang.c: Likewise.
702         * p-lang.h: Likewise.
703         * python/py-prettyprint.c: Likewise.
704         * python/python-internal.h: Likewise.
705         * spu-tdep.c: Likewise.
706         * typeprint.c: Likewise.
707         * valarith.c: Likewise.
708         * valops.c: Likewise.
709         * valprint.c: Likewise.
710         * valprint.h: Likewise.
711         * value.c: Likewise.
712         * value.h: Likewise.
713         * p-valprint.c: Likewise.
714         * c-typeprint.c (c_type_print_base): When printing offset, use
715         plongest, not %d.
716         * gdbtypes.c (recursive_dump_type): Ditto.
717
718 2016-06-24  David Taylor  <david.taylor@emc.com>
719
720         * MAINTAINERS (Write After Approval): Add David Taylor.
721
722 2016-06-24  John Baldwin  <jhb@FreeBSD.org>
723
724         * configure.ac: Check for support for system call LWP fields on
725         FreeBSD.
726         * config.in, configure: Rebuild.
727         * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
728         * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
729         Report system call events.
730         [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
731         (fbsd_set_syscall_catchpoint): New function.
732         (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
733         Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
734         * fbsd-tdep.c: Include xml-syscall.h
735         (fbsd_get_syscall_number): New function.
736         (fbsd_init_abi): Set XML system call file name.
737         Add "get_syscall_number" gdbarch method.
738         * syscalls/freebsd.xml: New file.
739
740 2016-06-24  John Baldwin  <jhb@FreeBSD.org>
741
742         * fbsd-tdep.c: Include "auxv.h".
743         (fbsd_print_auxv_entry): New function.
744         (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
745
746 2016-06-24  John Baldwin  <jhb@FreeBSD.org>
747
748         * auxv.c (fprint_auxv_entry): New function.
749         (default_print_auxv_entry): New function.
750         (fprint_target_auxv): Use gdbarch_print_auxv_entry.
751         * auxv.h (enum auxv_format): New enum.
752         (fprint_auxv_entry): Declare.
753         (default_print_auxv_entry): Declare.
754         * gdbarch.sh (print_auxv_entry): New.
755         * gdbarch.c, gdbarch.h: Re-generated.
756
757 2016-06-24  John Baldwin  <jhb@FreeBSD.org>
758
759         * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
760         (fbsd_xfer_partial): New function.
761         (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
762         "fbsd_xfer_partial".
763
764 2016-06-23  Tom Tromey  <tom@tromey.com>
765
766         * symtab.c (symbol_find_demangled_name): Loop over languages and
767         use language_sniff_from_mangled_name.
768         * rust-lang.c (rust_sniff_from_mangled_name): New function.
769         (rust_language_defn): Update.
770         * p-lang.c (pascal_language_defn): Update.
771         * opencl-lang.c (opencl_language_defn): Update.
772         * objc-lang.c (objc_sniff_from_mangled_name): New function.
773         (objc_language_defn): Update.
774         * m2-lang.c (m2_language_defn): Update.
775         * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
776         field.
777         (language_sniff_from_mangled_name): Declare.
778         * language.c (language_sniff_from_mangled_name): New function.
779         (unknown_language_defn, auto_language_defn, local_language_defn):
780         Update.
781         * jv-lang.c (java_sniff_from_mangled_name): New function.
782         (java_language_defn): Use it.
783         * go-lang.c (go_sniff_from_mangled_name): New function.
784         (go_language_defn): Use it.
785         * f-lang.c (f_language_defn): Update.
786         * defs.h (enum language): Reorder.
787         * d-lang.c (d_sniff_from_mangled_name): New function.
788         (d_language_defn): Use it.
789         * cp-support.h (gdb_sniff_from_mangled_name): Declare.
790         * cp-support.c (gdb_sniff_from_mangled_name): New function.
791         * c-lang.c (c_language_defn, cplus_language_defn)
792         (asm_language_defn, minimal_language_defn): Update.
793         * ada-lang.c (ada_sniff_from_mangled_name): New function.
794         (ada_language_defn): Use it.
795
796 2016-06-23  Tom Tromey  <tom@tromey.com>
797
798         * ada-lang.c (ada_extensions): New array.
799         (ada_language_defn): Use it.
800         * c-lang.c (c_extensions): New array.
801         (c_language_defn): Use it.
802         (cplus_extensions): New array.
803         (cplus_language_defn): Use it.
804         (asm_extensions): New array.
805         (asm_language_defn): Use it.
806         (minimal_language_defn): Update.
807         * d-lang.c (d_extensions): New array.
808         (d_language_defn): Use it.
809         * f-lang.c (f_extensions): New array.
810         (f_language_defn): Use it.
811         * go-lang.c (go_language_defn): Update.
812         * jv-lang.c (java_extensions): New array.
813         (java_language_defn): Use it.
814         * language.c (add_language): Call add_filename_language.
815         (unknown_language_defn, auto_language_defn, local_language_defn):
816         Update.
817         * language.h (struct language_defn) <la_filename_extensions>: New
818         field.
819         * m2-lang.c (m2_language_defn): Update.
820         * objc-lang.c (objc_extensions): New array.
821         (objc_language_defn): Use it.
822         * opencl-lang.c (opencl_language_defn): Update.
823         * p-lang.c (p_extensions): New array.
824         (pascal_language_defn): Use it.
825         * rust-lang.c (rust_extensions): New array.
826         (rust_language_defn): Use it.
827         * symfile.c (add_filename_language): No longer static.  Make "ext"
828         const.
829         (init_filename_language_table): Remove.
830         (_initialize_symfile): Update.
831         * symfile.h (add_filename_language): Declare.
832
833 2016-06-23  Tom Tromey  <tom@tromey.com>
834
835         * symfile.c (filename_language_table): Now a VEC.
836         (fl_table_size, fl_table_next): Remove.
837         (add_filename_language): Use VEC_safe_push.
838         (set_ext_lang_command, info_ext_lang_command)
839         (deduce_language_from_filename): Use VEC_iterate.
840         (init_filename_language_table): Use VEC_empty.
841
842 2016-06-23  Tom Tromey  <tom@tromey.com>
843
844         * python/python.c (gdbpy_parameter): Now static.
845         * python/python-internal.h (gdbpy_parameter): Don't declare.
846
847 2016-06-23  Tom Tromey  <tom@tromey.com>
848
849         PR gdb/16483:
850         * python/lib/gdb/command/frame_filters.py
851         (InfoFrameFilter.list_frame_filters): Rename to print_list.  Print
852         nothing if no filters found.  Return value indicating whether
853         filters were printed.
854         (InfoFrameFilter.print_list): Remove.
855         (InfoFrameFilter.invoke): Print message if no frame filters
856         found.
857
858 2016-06-21  Walfred Tedeschi  <walfred.tedeschi@intel.com>
859
860         * f-valprint.c (f_val_print): Add field names for printing
861         derived types fields.
862
863 2016-06-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
864
865         * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
866         in name of last-break regset.
867
868 2016-06-21  Pedro Alves  <palves@redhat.com>
869
870         * fork-child.c (fork_inferior): Switch the child to the main UI
871         right after vfork.  Save/restore the current UI in the parent.
872         Flush outputs of the main UI instead of the current UI.
873
874 2016-06-21  Pedro Alves  <palves@redhat.com>
875
876         * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
877         to all UIs.
878
879 2016-06-21  Pedro Alves  <palves@redhat.com>
880
881         * NEWS: Mention support for running interpreters on separate
882         UIs and the new new-ui command.
883
884 2016-06-21  Pedro Alves  <palves@redhat.com>
885
886         * interps.c (set_top_level_interpreter): New function, factored
887         out from captured_main.
888         (interpreter_completer): Make extern.
889         * interps.h (set_top_level_interpreter, interpreter_completer):
890         New declarations.
891         (captured_main): Use set_top_level_interpreter.
892         * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
893         (open_terminal_stream, new_ui_command): New functions.
894         (init_main): Install the "new-ui" command.
895
896 2016-06-21  Pedro Alves  <palves@redhat.com>
897
898         * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
899         (read_command_lines): Use input_interactive_p instead of
900         input_from_terminal_p.
901         * defs.h (struct ui): Forward declare.
902         (input_from_terminal_p): Rename to ...
903         (input_interactive_p): ... this.
904         * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
905         to quit_command.
906         (command_handler): Adjust to per-UI stdin.
907         (handle_line_of_input): Adjust to per-UI stdin and use
908         input_interactive_p instead of ISATTY and input_from_terminal_p.
909         (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
910         (command_line_handler): Always pass true as "from_tty" parameter
911         of handle_line_of_input and execute_command.
912         (async_sigterm_handler): Pass 0 as from_tty argument to
913         quit_command.
914         * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
915         (gdb_has_a_terminal): Don't check interactive_mode here.
916         (_initialize_inflow): Don't install "set interactive-mode" here.
917         * main.c (captured_command_loop): Adjust to per-UI stdin.
918         * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
919         stdin.
920         * top.c (new_ui): Save the stdin stream and whether it's a tty.
921         (dont_repeat): Adjust to per-UI stdin.
922         (command_line_input): Adjust to per-UI stdin and to use
923         input_interactive_p.
924         (quit_force): Write history if any UI supports interactive input.
925         (interactive_mode, show_interactive_mode): Move here, from
926         inflow.c.
927         (input_from_terminal_p): Rename to ...
928         (input_interactive_p): ... this, and check the "interactive_mode"
929         global instead of calling gdb_has_a_terminal.
930         (_initialize_top): Install "set interactive-mode" here.
931         * top.h (struct ui) <stdin_stream, input_interactive_p>: New
932         fields.
933         * utils.c (quit): Pass 0 as from_tty argument to quit_force.
934         (defaulted_query): Adjust to per-UI stdin and to use
935         input_interactive_p.
936
937 2016-06-21  Pedro Alves  <palves@redhat.com>
938
939         * event-top.c (stdin_event_handler): Don't quit gdb if it was a
940         secondary UI's input stream that closed.  Instead, just delete the
941         UI.
942
943 2016-06-21  Pedro Alves  <palves@redhat.com>
944
945         * event-top.c (main_ui_): Delete.
946         (main_ui, current_ui, ui_list): No longer initialize here.
947         * main.c (captured_main): UI initialization code factored out to
948         new new_ui function.
949         (gdb_main): Wrap captured_main with TRY/CATCH instead of
950         catch_errors.
951         * top.c (highest_ui_num): New global.
952         (new_ui): New function.
953         * top.h (struct ui) <num>: New field.
954         (new_ui): New declaration.
955
956 2016-06-21  Pedro Alves  <palves@redhat.com>
957
958         * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
959         nothing to print.  Use should_print_stop_to_console.
960         * tui/tui-interp.c (tui_on_normal_stop): Likewise.
961
962 2016-06-21  Pedro Alves  <palves@redhat.com>
963
964         * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
965         (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
966         thread parameter.
967         (until_break_command): Pass command interpreter to thread fsm
968         ctor.
969         * cli/cli-interp.c (should_print_stop_to_console): Adjust.
970         * gdbthread.h (struct thread_control_state) <command_interp>:
971         Delete field.
972         * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
973         Pass it down.
974         (call_thread_fsm_should_stop): Add thread parameter.
975         (call_function_by_hand_dummy): Pass command interpreter to thread
976         fsm ctor.  Pass thread pointer to fsm clean up method.
977         * infcmd.c: Include interps.h.
978         (struct step_command_fsm) <thread>: Delete field.
979         (new_step_command_fsm): Add 'cmd_interp' parameter.  Pass it down.
980         (step_command_fsm_prepare): Remove references to fsm's thread
981         field.
982         (step_1): Pass command interpreter to thread
983         fsm ctor.  Pass thread pointer to fsm clean up method.
984         (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
985         thread parameter and use it.
986         (new_until_next_fsm): Add 'cmd_interp' parameter.  Pass it down.
987         (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
988         parameter and use it.
989         (until_next_command): Pass command interpreter to thread fsm ctor.
990         (struct finish_command_fsm) <thread>: Delete field.
991         (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
992         (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
993         down.  Remove thread parameter and adjust.
994         (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
995         thread parameter and use it.
996         (finish_command): Pass command interpreter to thread fsm ctor.
997         Don't pass thread.
998         * infrun.c (follow_fork): Move thread fsm to child fork instead of
999         command interpreter, only.
1000         (clear_proceed_status_thread): Remove reference to command_interp.
1001         (proceed): Don't record the thread's command interpreter.
1002         (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
1003         method.
1004         (fetch_inferior_event): Pass thread to fsm should_stop method.
1005         * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
1006         Store it.
1007         (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
1008         parameter and pass it down.
1009         * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
1010         (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
1011         parameter.
1012         (thread_fsm_ctor): Add 'cmd_interp' parameter.
1013         (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
1014         parameter.
1015         * thread.c (thread_cancel_execution_command): Pass thread to
1016         thread fsm clean_up method.
1017
1018 2016-06-21  Pedro Alves  <palves@redhat.com>
1019
1020         * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
1021         (should_print_stop_to_console): New function, factored out from
1022         mi_on_normal_stop_1.
1023         * cli/cli-interp.h (should_print_stop_to_console): Declare.
1024         * mi/mi-interp.c (mi_on_normal_stop_1): Use
1025         should_print_stop_to_console.  Pass it the current UI's console
1026         interpreter.
1027         * mi/mi-main.c (captured_mi_execute_command): Use the
1028         INTERP_CONSOLE symbol rather than explicit "console".
1029
1030 2016-06-21  Pedro Alves  <palves@redhat.com>
1031
1032         * infcmd.c (prepare_execution_command): Use
1033         all_uis_on_sync_execution_starting.
1034         * infrun.c (all_uis_on_sync_execution_starting): New function.
1035         * infrun.h (all_uis_on_sync_execution_starting): Declare.
1036
1037 2016-06-21  Pedro Alves  <palves@redhat.com>
1038
1039         * annotate.c: Include top.h.
1040         (async_background_execution_p): Delete.
1041         (print_value_flags): Check the UI's prompt state rather then
1042         async_background_execution_p.
1043         * event-loop.c (start_event_loop): Set the prompt state to
1044         PROMPT_NEEDED.
1045         * event-top.c (display_gdb_prompt, async_enable_stdin)
1046         (async_disable_stdin): Check the current UI's prompt state instead
1047         of the sync_execution global.
1048         (command_line_handler): Set the prompt state to PROMPT_NEEDED
1049         before running a command, and display the prompt if still needed
1050         afterwards.
1051         * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
1052         (new_call_thread_fsm): New parameter 'waiting_ui'.  Store it.
1053         (call_thread_fsm_should_stop): Set the prompt state to
1054         PROMPT_NEEDED.
1055         (run_inferior_call): Adjust to temporarily set the prompt state to
1056         PROMPT_BLOCKED instead of using the sync_execution global.
1057         (call_function_by_hand_dummy): Pass the current UI to
1058         new_call_thread_fsm.
1059         * infcmd.c: Include top.h.
1060         (continue_1): Check the current UI's prompt state instead of the
1061         sync_execution global.
1062         (continue_command): Validate global execution state before calling
1063         prepare_execution_command.
1064         (step_1): Call all_uis_check_sync_execution_done.
1065         (attach_post_wait): Don't call async_enable_stdin here.  Remove
1066         reference to sync_execution.
1067         * infrun.c (sync_execution): Delete global.
1068         (follow_fork_inferior)
1069         (reinstall_readline_callback_handler_cleanup): Check the current
1070         UI's prompt state instead of the sync_execution global.
1071         (check_curr_ui_sync_execution_done)
1072         (all_uis_check_sync_execution_done): New functions.
1073         (fetch_inferior_event): Call all_uis_check_sync_execution_done
1074         instead of trying to determine whether the global sync execution
1075         changed.
1076         (handle_no_resumed): Check the prompt state of all UIs.
1077         (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
1078         UIs.  Emit the "Switching to" notification to all UIs.  Enable
1079         stdin in all UIs.
1080         * infrun.h (sync_execution): Delete.
1081         (all_uis_check_sync_execution_done): Declare.
1082         * main.c (captured_command_loop): Don't call
1083         interp_pre_command_loop if the prompt is blocked.
1084         (catch_command_errors, catch_command_errors_const): Adjust.
1085         (captured_main): Set the initial prompt state to PROMPT_NEEDED.
1086         * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
1087         PROMPTED.
1088         (mi_interpreter_resume): Don't clear sync_execution.  Remove hack
1089         comment.
1090         (mi_execute_command_input_handler): Set the prompt state to
1091         PROMPT_NEEDED before executing the command, and only display the
1092         prompt if the prompt state is PROMPT_NEEDED afterwards.
1093         (mi_on_resume_1): Adjust to check the prompt state.
1094         * target.c (target_terminal_inferior): Adjust to check the prompt
1095         state.
1096         * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
1097         (execute_command): Check the current UI's prompt state instead of
1098         sync_execution.
1099         * top.h (enum prompt_state): New.
1100         (struct ui) <prompt_state>: New field.
1101         (ALL_UIS): New macro.
1102
1103 2016-06-21  Pedro Alves  <palves@redhat.com>
1104
1105         * top.c (gdb_secondary_prompt_depth): Delete.
1106         (gdb_in_secondary_prompt_p): Add ui parameter.  Use it.
1107         (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
1108         per-UI gdb_secondary_prompt_depth.
1109         * top.h (struct ui) <secondary_prompt_depth>: New field.
1110
1111 2016-06-21  Pedro Alves  <palves@redhat.com>
1112
1113         * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
1114         function.
1115         (cli_interp_procs): Install it instead of cli_command_loop.
1116         * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
1117         * event-top.c (cli_command_loop): Delete.
1118         * interps.c (interp_new): Remove reference to command_loop_proc.
1119         (current_interp_command_loop): Delete.
1120         (interp_pre_command_loop): New function.
1121         (interp_command_loop_ftype): Delete.
1122         * interps.h (interp_pre_command_loop_ftype): New typedef.
1123         (struct interp_procs) <command_loop_proc>: Delele field.
1124         <pre_command_loop_proc>: New field.
1125         (current_interp_command_loop): Delete declaration.
1126         (interp_pre_command_loop): New declaration.
1127         * main.c (captured_command_loop): Call interp_pre_command_loop
1128         instead of current_interp_command_loop and start an event loop.
1129         * mi/mi-interp.c (mi_command_loop): Delete.
1130         (mi_interpreter_pre_command_loop): New.
1131         (mi_interp_procs): Update.
1132         * tui/tui-interp.c (tui_interp_procs): Install
1133         cli_interpreter_pre_command_loop instead of cli_command_loop.
1134
1135 2016-06-21  Pedro Alves  <palves@redhat.com>
1136
1137         * interps.c (current_interpreter): New function.
1138         * interps.h (current_interpreter): New declaration.
1139         * mi/mi-cmds.h (raw_stdout): Delete declaration.
1140         * mi/mi-common.h (struct mi_interp) <raw_stdout,
1141         saved_raw_stdout>: New field.
1142         * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'.  Adjust
1143         to per-UI raw_stdout.
1144         (mi_interpreter_init): Adjust to per-UI raw_stdout.
1145         (mi_on_sync_execution_done, mi_execute_command_input_handler)
1146         (mi_command_loop): Pass MI instance to display_mi_prompt.
1147         (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
1148         (mi_on_resume): Adjust to per-UI raw_stdout.
1149         (saved_raw_stdout): Delete.
1150         (mi_set_logging): Adjust to per-UI raw_stdout and
1151         saved_raw_stdout.
1152         * mi/mi-main.c (raw_stdout): Delete.
1153         (mi_cmd_gdb_exit, captured_mi_execute_command)
1154         (mi_print_exception, mi_load_progress): Adjust to per-UI
1155         raw_stdout.
1156         (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
1157         Pass it along.
1158         (print_diff): New ui_file parameter.  Send output there instead of
1159         raw_stdout.
1160         * mi/mi-main.h (struct ui_file): Forward declare.
1161         (mi_print_timing_maybe): Add ui_file parameter.
1162
1163 2016-06-21  Pedro Alves  <palves@redhat.com>
1164
1165         * mi/mi-interp.c (display_mi_prompt): New function.
1166
1167 2016-06-21  Pedro Alves  <palves@redhat.com>
1168
1169         * target.c (target_terminal_inferior): Bail out after
1170         unregistering input_fd if not on the main UI.
1171         (target_terminal_ours): Bail out after registering input_fd if not
1172         on the main UI.
1173         (target_terminal_ours_for_output): Bail out if not on the main UI.
1174
1175 2016-06-21  Pedro Alves  <palves@redhat.com>
1176
1177         * event-top.c (restore_ui_cleanup): Make extern.
1178         * infrun.c (fetch_inferior_event): Always switch to the main UI.
1179         * top.h (restore_ui_cleanup): Declare.
1180
1181 2016-06-21  Pedro Alves  <palves@redhat.com>
1182
1183         PR mi/20034
1184         * cli/cli-interp.c: Include cli-interp.h and event-top.h.
1185         (cli_interpreter_resume): Pass 1 to gdb_setup_readline.  Set the
1186         UI's input_handler here.
1187         (cli_interpreter_supports_command_editing): New function.
1188         (cli_interp_procs): Install it.
1189         * cli/cli-interp.h: New file.
1190         * event-top.c (async_command_editing_p): Rename to ...
1191         (set_editing_cmd_var): ... this.
1192         (change_line_handler): Add parameter 'editing', and use it.  Bail
1193         early if the interpreter doesn't support editing.  Don't touch
1194         readline state if editing is off.
1195         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1196         (gdb_rl_callback_handler_reinstall): Assert the current UI is the
1197         main UI.
1198         (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
1199         not using readline.  Check whether the current UI is using command
1200         editing instead of checking the async_command_editing_p global.
1201         (set_async_editing_command): Delete.
1202         (gdb_setup_readline): Add 'editing' parameter.  Only allow editing
1203         on the main UI.  Don't touch readline state if editing is off.
1204         (gdb_disable_readline): Don't touch readline state if editing is
1205         off.
1206         * event-top.h (gdb_setup_readline): Add 'int' parameter.
1207         (set_async_editing_command): Delete declaration.
1208         (change_line_handler, command_line_handler): Declare.
1209         (async_command_editing_p): Rename to ...
1210         (set_editing_cmd_var): ... this.
1211         * infrun.c (reinstall_readline_callback_handler_cleanup): Check
1212         whether the current UI has editing enabled rather than checking
1213         the async_command_editing_p global.
1214         * interps.c (interp_supports_command_editing): New function.
1215         * interps.h (interp_supports_command_editing_ftype): New typedef.
1216         (struct interp_procs) <supports_command_editing_proc>: New field.
1217         (interp_supports_command_editing): Declare.
1218         * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
1219         gdb_setup_readline.  Don't clear the async_command_editing_p
1220         global.  Update comments.
1221         * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
1222         whether the current UI has editing enabled rather than checking
1223         the async_command_editing_p global.  Don't touch readline state if
1224         editing is off.
1225         (undo_terminal_modifications_before_exit): Switch to the main UI.
1226         Unconditionally call gdb_disable_readline.
1227         (set_editing): New function.
1228         (show_async_command_editing_p): Rename to ...
1229         (show_editing): ... this.  Show the state of the current UI.
1230         (_initialize_top): Adjust.
1231         * top.h (struct ui) <command_editing>: New field.
1232         * tui/tui-interp.c: Include cli/cli-interp.h.
1233         (tui_resume): Pass 1 to gdb_setup_readline.  Set the UI's
1234         input_handler.
1235         (tui_interp_procs): Install
1236         cli_interpreter_supports_command_editing.
1237         * tui/tui-io.c (tui_getc): Check whether the current UI has
1238         editing enabled rather than checking the async_command_editing_p
1239         global.
1240
1241 2016-06-21  Pedro Alves  <palves@redhat.com>
1242
1243         * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
1244         * top.h (struct ui) <m_current_uiout>: New field.
1245         * ui-out.c (current_uiout): Delete.
1246         * ui-out.h (current_uiout): Delete.
1247         (current_ui_current_uiout_ptr): New declaration.
1248         (current_uiout): Reimplement as wrapper around
1249         current_ui_current_uiout_ptr.
1250
1251 2016-06-21  Pedro Alves  <palves@redhat.com>
1252
1253         * ui-out.c (default_ui_out_impl): Delete.
1254         (def_uiout): Delete.
1255         (current_uiout): Set to NULL.
1256         (default_table_begin, default_table_body, default_table_end)
1257         (default_table_header, default_begin, default_end)
1258         (default_field_int, default_field_skip, default_field_string)
1259         (default_field_fmt, default_spaces, default_text, default_message)
1260         (default_wrap_hint, default_flush, default_data_destroy): Delete.
1261
1262 2016-06-21  Pedro Alves  <palves@redhat.com>
1263
1264         * event-top.c (gdb_setup_readline): Pass the UI's outstream and
1265         errstream to stdout_fileopen and stderr_fileopen.
1266         * exceptions.c: Include top.h.
1267         (print_flush): Open the current UI's outstream file descriptor,
1268         instead of hardcoding file descriptor 1.
1269         * main.c (captured_main): Save the main UI's out and error
1270         streams.  Adjust stderr_fileopen call.
1271         * top.h (struct ui) <outstream, errstream>: New fields.
1272         * ui-file.c (stderr_fileopen): Add stream parameter.  Use it
1273         instead of stderr.
1274         * ui-file.h (stderr_fileopen): Add stream parameter and update
1275         comment.
1276
1277 2016-06-21  Pedro Alves  <palves@redhat.com>
1278
1279         * event-top.c (input_fd): Delete.
1280         (stdin_event_handler): Switch to the UI whose input descriptor got
1281         the event.  Adjust to per-UI input_fd.
1282         (gdb_setup_readline): Don't set the input_fd global.  Adjust to
1283         per-UI input_fd.
1284         (gdb_disable_readline): Adjust to per-UI input_fd.
1285         * event-top.h (input_fd): Delete declaration.
1286         * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
1287         from the event-loop here.
1288         (linux_nat_terminal_ours): Don't register input_fd in the
1289         event-loop here.
1290         * main.c (captured_main): Adjust to per-UI input_fd.
1291         * remote.c (remote_terminal_inferior): Don't remove input_fd from
1292         the event-loop here.
1293         (remote_terminal_ours): Don't register input_fd in the event-loop
1294         here.
1295         * target.c: Include top.h and event-top.h.
1296         (target_terminal_inferior): Remove input_fd from the event-loop
1297         here.
1298         (target_terminal_ours): Register input_fd in the event-loop.
1299         * top.h (struct ui) <input_fd>: New field.
1300
1301 2016-06-21  Pedro Alves  <palves@redhat.com>
1302
1303         * cli/cli-script.c (execute_user_command, read_next_line)
1304         (read_next_line): Adjust to per-UI instream.
1305         * event-top.c (stdin_event_handler, command_handler)
1306         (handle_line_of_input, command_line_handler)
1307         (gdb_readline_no_editing_callback, async_sigterm_handler)
1308         (gdb_setup_readline): Likewise.
1309         * inflow.c: Include top.h.
1310         (gdb_has_a_terminal, child_terminal_init_with_pgrp)
1311         (gdb_save_tty_state, child_terminal_inferior)
1312         (child_terminal_ours_1, copy_terminal_info): Use the main UI.
1313         (initialize_stdin_serial): Adjust to per-UI instream.
1314         * main.c (captured_command_loop, captured_main): Adjust to per-UI
1315         instream.
1316         * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
1317         * python/python.c (python_interactive_command): Likewise.
1318         * terminal.h (struct ui): Forward declare.
1319         (initialize_stdin_serial): Add struct ui parameter.
1320         * top.c (instream): Delete.
1321         (do_restore_instream_cleanup, read_command_file, dont_repeat)
1322         (gdb_readline_no_editing, command_line_input)
1323         (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
1324         * top.h (struct ui) <instream>: New field.
1325         (instream): Delete declaration.
1326         (quit): Adjust to per-UI instream.
1327
1328 2016-06-21  Pedro Alves  <palves@redhat.com>
1329
1330         * event-loop.c: Include top.h.
1331         (invoke_async_signal_handlers): Switch to the main UI.
1332         * event-top.c (main_ui_): Update comment.
1333         (main_ui): New global.
1334         * top.h (main_ui): Declare.
1335
1336 2016-06-21  Pedro Alves  <palves@redhat.com>
1337
1338         * cli/cli-interp.c (cli_interp): Delete.
1339         (as_cli_interp): New function.
1340         (cli_on_normal_stop, cli_on_signal_received)
1341         (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
1342         (cli_on_no_history): Send output to all CLI UIs.
1343         (cli_on_sync_execution_done, cli_on_command_error): Skip output if
1344         the top level interpreter is not a CLI.
1345         (cli_interpreter_init): Don't set cli_interp or install observers
1346         here.
1347         (_initialize_cli_interp): Install observers here.
1348         * event-top.c (main_ui_, ui_list): New globals.
1349         (current_ui): Point to main_ui_.
1350         (restore_ui_cleanup, switch_thru_all_uis_init)
1351         (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
1352         functions.
1353         * mi/mi-interp.c (as_mi_interp): New function.
1354         (mi_interpreter_init): Don't install observers here.
1355         (mi_on_sync_execution_done): Skip output if the top level
1356         interpreter is not a MI.
1357         (mi_new_thread, mi_thread_exit, mi_record_changed)
1358         (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
1359         (mi_inferior_removed): Send output to all MI UIs.
1360         (find_mi_interpreter, mi_interp_data): Delete.
1361         (find_mi_interp): New function.
1362         (mi_on_signal_received, mi_on_end_stepping_range)
1363         (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
1364         to all MI UIs.
1365         (mi_on_normal_stop): Rename to ...
1366         (mi_on_normal_stop_1): ... this.
1367         (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
1368         (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
1369         (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
1370         (mi_breakpoint_modified, mi_output_running_pid): Send output to
1371         all MI UIs.
1372         (mi_on_resume): Rename to ...
1373         (mi_on_resume_1): ... this.  Don't handle infcalls here.
1374         (mi_on_resume): Reimplement, sending output to all MI UIs.
1375         (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
1376         (mi_memory_changed): Send output to all MI UIs.
1377         (report_initial_inferior): Install observers here.
1378         * top.h (struct ui) <next>: New field.
1379         (ui_list): Declare.
1380         (struct switch_thru_all_uis): New.
1381         (switch_thru_all_uis_init, switch_thru_all_uis_cond)
1382         (switch_thru_all_uis_next): Declare.
1383         (SWITCH_THRU_ALL_UIS): New macro.
1384         * tui/tui-interp.c (tui_interp): Delete global.
1385         (as_tui_interp): New function.
1386         (tui_on_normal_stop, tui_on_signal_received)
1387         (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
1388         (tui_on_no_history): Send output to all TUI UIs.
1389         (tui_on_sync_execution_done, tui_on_command_error): Skip output if
1390         the top level interpreter is not a TUI.
1391         (tui_init): Don't set tui_interp or install observers here.
1392         (_initialize_tui_interp): Install observers here.
1393
1394 2016-06-21  Pedro Alves  <palves@redhat.com>
1395
1396         * cli/cli-interp.c (cli_uiout): Delete, moved into ...
1397         (struct cli_interp): ... this new structure.
1398         (cli_on_normal_stop, cli_on_signal_received)
1399         (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
1400         (cli_on_no_history): Use interp_ui_out.
1401         (cli_interpreter_init): If top level, set the cli_interp global.
1402         (cli_interpreter_init): Return the interp's data instead of NULL.
1403         (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
1404         to cli_uiout being in the interpreter's data.
1405         (cli_interp_procs): New, factored out from _initialize_cli_interp.
1406         (cli_interp_factory): New function.
1407         (_initialize_cli_interp): Call interp_factory_register.
1408         * interps.c (get_interp_info): New, factored out from ...
1409         (get_current_interp_info): ... this.
1410         (interp_new): Add parameter 'data'.  Store it.
1411         (struct interp_factory): New function.
1412         (interp_factory_p): New typedef.  Define a VEC_P.
1413         (interpreter_factories): New global.
1414         (interp_factory_register): New function.
1415         (interp_add): Add 'ui' parameter.  Use get_interp_info and
1416         interp_lookup_existing.
1417         (interp_lookup): Rename to ...
1418         (interp_lookup_existing): ... this.  Add 'ui' parameter.  Don't
1419         check for NULL or empty name here.
1420         (interp_lookup): Add 'ui' parameter and reimplement.
1421         (interp_set_temp, interpreter_exec_cmd): Adjust.
1422         (interpreter_completer): Complete on registered interpreter
1423         factories instead of interpreters.
1424         * interps.h (interp_factory_func): New typedef.
1425         (interp_factory_register): Declare.
1426         (interp_new, interp_add): Adjust.
1427         (interp_lookup): Declare.
1428         * main.c (captured_main): Adjust.
1429         * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
1430         (mi_interp_procs): New, factored out from
1431         _initialize_mi_interp.
1432         (mi_interp_factory): New function.
1433         * python/python.c (execute_gdb_command): Adjust.
1434         * tui/tui-interp.c (tui_init): If top level, set the tui_interp
1435         global.
1436         (tui_interp_procs): New.
1437         (tui_interp_factory): New function.
1438         (_initialize_tui_interp): Call interp_factory_register.
1439
1440 2016-06-21  Pedro Alves  <palves@redhat.com>
1441
1442         * breakpoint.c (bpstat_do_actions_1): Access the current UI's
1443         async field instead of the interpreter_async global.
1444         * cli/cli-script.c (execute_user_command, while_command)
1445         (if_command, script_from_file): Likewise.
1446         * compile/compile.c: Include top.h instead of interps.h.
1447         (compile_file_command, compile_code_command)
1448         (compile_print_command): Access the current UI's async field
1449         instead of the interpreter_async global.
1450         * guile/guile.c: Include top.h instead of interps.h.
1451         (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
1452         Access the current UI's async field instead of the
1453         interpreter_async global.
1454         * guile/scm-ports.c: Include top.h instead of interps.h.
1455         (ioscm_with_output_to_port_worker): Access the current UI's async
1456         field instead of the interpreter_async global.
1457         * inf-loop.c (inferior_event_handler): Likewise.
1458         * infcall.c (run_inferior_call): Likewise.
1459         * infrun.c (reinstall_readline_callback_handler_cleanup)
1460         (fetch_inferior_event): Likewise.
1461         * interps.c (interpreter_async): Delete.
1462         (struct ui_interp_info): New.
1463         (get_current_interp_info): New function.
1464         (interp_list, current_interpreter, top_level_interpreter_ptr):
1465         Delete.
1466         (interp_add, interp_set, interp_lookup, interp_ui_out)
1467         (current_interp_set_logging, interp_set_temp)
1468         (current_interp_named_p): Adjust to per-UI interpreters.
1469         (command_interpreter): Delete.
1470         (command_interp, current_interp_command_loop, interp_quiet_p)
1471         (interp_exec, interpreter_exec_cmd, interpreter_completer)
1472         (top_level_interpreter, top_level_interpreter_data): Adjust to
1473         per-UI interpreters.
1474         * interps.h (interpreter_async): Delete.
1475         * main.c (captured_command_loop): Access the current UI's async
1476         field instead of the interpreter_async global.
1477         * python/python.c (python_interactive_command, python_command)
1478         (execute_gdb_command): Likewise.
1479         * top.c (maybe_wait_sync_command_done, execute_command_to_string):
1480         Access the current UI's async field instead of the
1481         interpreter_async global.
1482         * top.h (struct tl_interp_info): Forward declare.
1483         (struct ui) <interp_info, async>: New fields.
1484
1485 2016-06-21  Pedro Alves  <palves@redhat.com>
1486
1487         * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
1488         globals.
1489         (gen_ret_current_ui_field_ptr): New macro.  Use it to generate
1490         wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
1491         * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
1492         m_gdb_stdlog>: New fields.
1493         (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
1494         (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
1495         (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
1496         macros.
1497
1498 2016-06-21  Pedro Alves  <palves@redhat.com>
1499
1500         * event-top.c: Update readline-related comments.
1501         (input_handler, call_readline): Delete globals.
1502         (gdb_rl_callback_handler): Call the current UI's input_handler
1503         method.
1504         (change_line_handler): Adjust to set current UI's properties
1505         instead of globals.
1506         (current_ui_, current_ui): New globals.
1507         (get_command_line_buffer): Rewrite to refer to the current UI.
1508         (stdin_event_handler): Adjust to call the call_readline method of
1509         the current UI.
1510         (gdb_readline_no_editing_callback): Adjust to call the current UI's
1511         input_handler method.
1512         (gdb_setup_readline): Adjust to set current UI's properties
1513         instead of globals.
1514         * event-top.h (call_readline, input_handler): Delete declarations.
1515         * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
1516         UI's properties instead of globals.
1517         * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
1518         properties instead of globals.
1519         (gdb_readline_wrapper): Adjust to call and set current UI's
1520         methods instead of globals.
1521         * top.h: Include buffer.h and event-loop.h.
1522         (struct ui): New struct.
1523         (current_ui): New declaration.
1524
1525 2016-06-21  Pedro Alves  <palves@redhat.com>
1526
1527         * ada-lang.c (ada_exception_name_addr_1): Add comment.
1528         (print_it_exception): Select the current frame.
1529
1530 2016-06-17  Yan-Ting Lin  <currygt52@gmail.com>
1531
1532         * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
1533         (HFILES_NO_SRCDIR): Add nds32-tdep.h.
1534         (ALLDEPFILES): Add nds32-tdep.c.
1535         * NEWS: Mention new NDS32 port.
1536         * configure.tgt: Add NDS32.
1537         * nds32-tdep.c: New file.
1538         * nds32-tdep.h: New file.
1539         * features/Makefile (XMLTOC): Add nds32.xml.
1540         * features/nds32-core.xml: New file.
1541         * features/nds32-fpu.xml: New file.
1542         * features/nds32-system.xml: New file.
1543         * features/nds32.c: New file (generated).
1544         * features/nds32.xml: New file.
1545
1546 2016-06-14  John Baldwin  <jhb@FreeBSD.org>
1547
1548         * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
1549
1550 2016-06-14  John Baldwin  <jhb@FreeBSD.org>
1551
1552         * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
1553
1554 2016-06-14  John Baldwin  <jhb@FreeBSD.org>
1555
1556         * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
1557
1558 2016-06-13  Nick Clifton  <nickc@redhat.com>
1559
1560         * gdbtypes.c (replace_type): Fix assertion.
1561
1562 2016-06-10  Tom Tromey  <tom@tromey.com>
1563
1564         * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
1565         (arch_boolean_type, arch_float_type, arch_complex_type)
1566         (arch_flags_type, append_flags_type_field)
1567         (append_flags_type_flag, arch_composite_type)
1568         (append_composite_type_field_raw)
1569         (append_composite_type_field_aligned)
1570         (append_composite_type_field): Make "name" parameter const.
1571         * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
1572         (arch_boolean_type, arch_float_type, arch_complex_type)
1573         (append_composite_type_field, append_composite_type_field_aligned)
1574         (append_composite_type_field_raw, arch_flags_type)
1575         (append_flags_type_field, append_flags_type_flag): Constify.
1576
1577 2016-06-10  Tom Tromey  <tom@tromey.com>
1578
1579         PR rust/20110:
1580         * rust-exp.y (lex_number): Don't truncate large numbers to i32.
1581
1582 2016-06-10  Tom Tromey  <tom@tromey.com>
1583
1584         * Makefile.in (COMMON_OBS): Remove rust-exp.o.
1585         (YYFILES): Add rust-exp.c.
1586         (YYOBJ): Add rust-exp.o.
1587         (local-maintainer-clean): Remove rust-exp.c.
1588
1589 2016-06-09  Toshihito Kikuchi  <k.toshihito@yahoo.de>
1590
1591         * NEWS: Mention that GDB now supports a negative repeat count in
1592         the 'x' command.
1593         * printcmd.c (decode_format): Allow '-' in the parameter
1594         "string_ptr" to accept a negative repeat count.
1595         (find_instruction_backward): New function.
1596         (read_memory_backward): New function.
1597         (integer_is_zero): New function.
1598         (find_string_backward): New function.
1599         (do_examine): Use new functions to examine memory backward.
1600         (_initialize_printcmd): Mention that 'x' command supports a negative
1601         repeat count.
1602
1603 2016-06-09  Toshihito Kikuchi  <k.toshihito@yahoo.de>
1604
1605         * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
1606
1607 2016-06-09  Tom Tromey  <tom@tromey.com>
1608
1609         PR python/19819:
1610         * python/py-xmethods.c (invoke_method_name)
1611         (py_get_result_type_method_name, py_invoke_method_name): Remove.
1612         (gdbpy_initialize_xmethods): Don't initialize
1613         py_invoke_method_name, py_get_result_type_method_name.
1614
1615 2016-06-07  Simon Marchi  <simon.marchi@ericsson.com>
1616
1617         * mi/mi-interp.c (mi_record_changed): Add missing braces.
1618
1619 2016-06-07  Bernhard Heckel  <bernhard.heckel@intel.com>
1620
1621         * findvar.c (follow_static_link): Check for valid pointer.
1622
1623 2016-06-06  Simon Marchi  <simon.marchi@ericsson.com>
1624
1625         * NEWS: Mention the new fields in =record-started.
1626         * common/btrace-common.h (btrace_format_short_string): New function
1627         declaration.
1628         * common/btrace-common.c (btrace_format_short_string): New
1629         function.
1630         * mi/mi-interp.c (mi_record_changed): Output method and format
1631         fields in the =record-started record.
1632         * record-btrace.c (record_btrace_open): Adapt record_changed
1633         notification.
1634         * record-full.c (record_full_open): Likewise.
1635         * record.c (cmd_record_stop): Likewise.
1636
1637 2016-06-02  Jon Turney  <jon.turney@dronecode.org.uk>
1638
1639         * windows-nat.c (handle_output_debug_string): Return type of
1640         gdb_signal_from_host() is gdb_signal, not an int.
1641         (windows_get_exec_module_filename): Add pointer casts for C++.
1642
1643 2016-06-02  Tom Tromey  <tom@tromey.com>
1644
1645         PR python/18984:
1646         * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
1647
1648 2016-06-01  Pedro Alves  <palves@redhat.com>
1649
1650         * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
1651         (remote_fio_osa)
1652         (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
1653         (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
1654         Delete.
1655         (remote_fileio_o_quit_handler): New global.
1656         (remote_fileio_quit_handler): New function.
1657         (remote_fileio_reply): Check the quit flag instead of the custom
1658         'remote_fio_ctrl_c_flag' flag.  Restore the quit handler instead
1659         of changing the SIGINT handler.
1660         (do_remote_fileio_request): Override the quit handler instead of
1661         changing the SIGINT handler.
1662
1663 2016-06-01  Nick Clifton  <nickc@redhat.com>
1664
1665         * common/common-utils.c (xmalloc_failed): New function.  Provided
1666         so that the version in libiberty is not linked in.
1667
1668 2016-06-01  Markus Metzger  <markus.t.metzger@intel.com>
1669
1670         * infcmd.c (skip_finish_frames): New.
1671         (finish_command): Call skip_finish_frames.
1672
1673 2016-06-01  Yao Qi  <yao.qi@linaro.org>
1674
1675         PR remote/19998
1676         * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
1677         quit_serial_event_set.
1678
1679 2016-06-01  Joel Brobecker  <brobecker@adacore.com>
1680
1681         GDB 7.11.1 released.
1682
1683 2016-05-31  Martin Galvan  <martin.galvan@tallertechnologies.com>
1684
1685         PR c++/19893
1686         * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
1687         fetch_const_value_from_synthetic_pointer): New functions.
1688         (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
1689         (pieced_value_funcs): Implement coerce_ref.
1690         * valops.c (value_addr): Call coerce_ref for synthetic references.
1691         * valprint.c (valprint_check_validity): Return true for synthetic
1692         references.  Also, don't show "<synthetic pointer>" if they reference
1693         addressable values.
1694         (generic_val_print_ref): Handle synthetic references.  Also move some
1695         code to print_ref_address.
1696         (print_ref_address, get_value_addr_contents): New functions.
1697
1698 2016-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1699
1700         PR c++/15231
1701         * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
1702         (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
1703         (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
1704         (read_call_site_scope): Adjust callers.
1705         (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
1706         (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
1707
1708 2016-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1709
1710         Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
1711         * dwarf2read.c (enum pc_bounds_kind) New.
1712         (dwarf2_get_pc_bounds): Use it in the declaration.
1713         (process_psymtab_comp_unit_reader): Adjust caller.  Rename has_pc_info
1714         to cu_bounds_kind.
1715         (read_func_scope, read_lexical_block_scope, read_call_site_scope):
1716         Adjust callers.
1717         (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
1718         (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
1719
1720 2016-05-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1721
1722         * NEWS (QCatchSyscalls): Remove the parameter.  Include ...
1723         (QCatchSyscalls:1 in qSupported) ... this separate entry which got
1724         deleted.
1725
1726 2016-05-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1727
1728         * NEWS (N stop reply): Remove empty line.
1729
1730 2016-05-28  Alan Modra  <amodra@gmail.com>
1731
1732         * compile/compile-object-load.c (link_callbacks_multiple_definition,
1733         link_callbacks_warning, link_callbacks_undefined_symbol,
1734         link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
1735         link_callbacks_reloc_dangerous,
1736         link_callbacks_unattached_reloc): Return void.
1737
1738 2016-05-27  Andrew Burgess  <andrew.burgess@embecosm.com>
1739
1740         * opencl-lang.c (evaluate_subexp_opencl): If
1741         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
1742         the returned value in the STRUCTOP_STRUCT case.
1743
1744 2016-05-27  Andrew Burgess  <andrew.burgess@embecosm.com>
1745
1746         * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
1747         mode, forward the VALUE_LVAL attribute to the returned value in
1748         the STRUCTOP_PTR case.
1749
1750 2016-05-25  Tom Tromey  <tom@tromey.com>
1751
1752         * python/py-value.c (value_object_as_number): Use correct spelling
1753         of HAVE_LIBPYTHON2_4.
1754
1755 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
1756
1757         * f-typeprint.c (f_type_print_base): Replace 0 by show.
1758
1759 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
1760
1761         * f-typeprint.c (f_type_print_base): Decrease show by one.
1762
1763 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
1764
1765         * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
1766
1767 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
1768
1769         * f-typeprint.c (f_type_print_base): Take print level into account.
1770
1771 2016-05-24  Tom Tromey  <tom@tromey.com>
1772
1773         PR python/17386:
1774         * python/py-value.c (value_object_as_number): Add
1775         nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
1776
1777 2016-05-24  Tom Tromey  <tom@tromey.com>
1778
1779         * python/py-value.c (value_object_as_number): Add
1780         nb_inplace_divide for Python 2.
1781
1782 2016-05-23  Tom Tromey  <tom@tromey.com>
1783
1784         PR python/17981:
1785         * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
1786         when there are no breakpoints.
1787
1788 2016-05-24  Pedro Alves  <palves@redhat.com>
1789
1790         PR gdb/19828
1791         * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
1792         resumed, and add the thread to GDB's thread list.
1793
1794 2016-05-24  Pedro Alves  <palves@redhat.com>
1795
1796         PR gdb/19828
1797         * linux-nat.c (get_pending_status): If the thread reported the
1798         event to the core and it's pending, use the pending status signal
1799         number.
1800
1801 2016-05-24  Pedro Alves  <palves@redhat.com>
1802
1803         PR gdb/19828
1804         * linux-nat.c (lwp_lwpid_htab): New htab.
1805         (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
1806         (lwp_lwpid_htab_add_lwp): New functions.
1807         (lwp_list): Tweak comment.
1808         (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
1809         functions.
1810         (purge_lwp_list): Rewrite, using htab_traverse_noresize.
1811         (add_initial_lwp): Add lwp to htab too.  Use lwp_list_add.
1812         (delete_lwp): Use lwp_list_remove.  Remove htab too.
1813         (find_lwp_pid): Search in htab.
1814         (_initialize_linux_nat): Call lwp_lwpid_htab_create.
1815         * linux-nat.h (struct lwp_info) <prev>: New field.
1816
1817 2016-05-24  Pedro Alves  <palves@redhat.com>
1818
1819         PR gdb/19828
1820         * linux-nat.c (lwp_lwpid_htab): New htab.
1821         (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
1822         (lwp_lwpid_htab_add_lwp): New functions.
1823         (lwp_list): Tweak comment.
1824         (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
1825         functions.
1826         (purge_lwp_list): Rewrite, using htab_traverse_noresize.
1827         (add_initial_lwp): Add lwp to htab too.  Use lwp_list_add.
1828         (delete_lwp): Use lwp_list_remove.  Remove htab too.
1829         (find_lwp_pid): Search in htab.
1830         (_initialize_linux_nat): Call lwp_lwpid_htab_create.
1831         * linux-nat.h (struct lwp_info) <prev>: New field.
1832
1833 2016-05-24  Pedro Alves  <palves@redhat.com>
1834
1835         PR gdb/19828
1836         * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
1837         field.
1838         (linux_nat_update_thread_list): Don't fetch the core if already
1839         known.
1840
1841 2016-05-24  Pedro Alves  <palves@redhat.com>
1842
1843         PR gdb/19828
1844         * linux-tdep.c (find_mapping_size): Delete.
1845         (linux_vsyscall_range_raw): Rewrite reading from
1846         /proc/PID/task/PID/maps directly instead of using
1847         gdbarch_find_memory_regions.
1848
1849 2016-05-24  Pedro Alves  <palves@redhat.com>
1850
1851         PR gdb/19828
1852         * linux-nat.c (report_thread_events): New global.
1853         (linux_handle_extended_wait): Report
1854         TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
1855         enabled.
1856         (wait_lwp, linux_nat_filter_event): Report all thread exits if
1857         thread event reporting is enabled.  Remove comment.
1858         (filter_exit_event): New function.
1859         (linux_nat_wait_1): Use it.
1860         (linux_nat_thread_events): New function.
1861         (linux_nat_add_target): Install it as target_thread_events method.
1862
1863 2016-05-24  Yan-Ting Lin  <currygt52@gmail.com>
1864
1865         * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
1866
1867 2016-05-23  Yao Qi  <yao.qi@arm.com>
1868
1869         * arch-utils.c (default_code_of_frame_writable): New function.
1870         * arch-utils.h (default_code_of_frame_writable): Declare.
1871         * arm-tdep.c (arm_code_of_frame_writable): New function.
1872         (arm_gdbarch_init): Install gdbarch method
1873         code_of_frame_writable if the target is M-profile.
1874         * frame.c (skip_unwritable_frames): New function.
1875         * frame.h (skip_unwritable_frames): Declare.
1876         * gdbarch.sh (code_of_frame_writable): New.
1877         * gdbarch.c, gdbarch.h: Re-generated.
1878         * infcmd.c (finish_command): Call skip_unwritable_frames.
1879
1880 2016-05-23  Tom Tromey  <tom@tromey.com>
1881
1882         PR python/19438, PR python/18393:
1883         * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
1884         * python/py-progspace.c (pspy_initialize): Initialize self->dict.
1885
1886 2016-05-23  Gary Benson  <gbenson@redhat.com>
1887
1888         * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
1889         * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
1890         Remove field.
1891         (try_thread_db_load_1): Remove td_thr_validate initialization.
1892
1893 2016-05-23  Jon Boden  <jon@ubuntubsd.org>  (tiny change)
1894
1895         * configure.ac: Search for libutil-freebsd as alternative to libutil.
1896         * configure: Re-generated.
1897
1898 2016-05-19  Andreas Schwab  <schwab@suse.de>
1899
1900         * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
1901         (libunwind_frame_set_descr): Likewise.
1902         (libunwind_frame_cache): Likewise.
1903         (libunwind_frame_dealloc_cache): Likewise.
1904         (libunwind_frame_sniffer): Likewise.
1905         (libunwind_search_unwind_table): Likewise.
1906         (libunwind_sigtramp_frame_sniffer): Likewise.
1907         (libunwind_get_reg_special): Likewise.
1908         (libunwind_load): Likewise.
1909         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
1910         (ia64_linux_store_register): Likewise.
1911         (ia64_linux_xfer_partial): Likewise.
1912         * ia64-tdep.c (ia64_access_reg): Likewise.
1913         (ia64_access_fpreg): Likewise.
1914         (ia64_access_rse_reg): Likewise.
1915         (ia64_access_rse_fpreg): Likewise.
1916
1917 2016-05-18  Tom Tromey  <tom@tromey.com>
1918
1919         * rust-lang.c (rust_subscript): Initialize "high".
1920
1921 2016-05-17  Simon Marchi  <simon.marchi@ericsson.com>
1922
1923         PR gdb/20045
1924         * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
1925         of target_is_async_p.
1926
1927 2016-05-17  Simon Marchi  <simon.marchi@ericsson.com>
1928
1929         PR gdb/18077
1930         * mi/mi-main.c (run_one_inferior): Use run target to determine
1931         whether to run async or not.
1932         (mi_cmd_exec_run): Likewise.
1933
1934 2016-05-17  Tom Tromey  <tom@tromey.com>
1935
1936         * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
1937         * rust-lang.c: Don't include f-lang.h.
1938         (rust_range, rust_compute_range, rust_subscript)
1939         (rust_evaluate_subexp): Update.
1940         * rust-exp.y: Don't include f-lang.h.
1941         (ast_range, convert_ast_to_expression): Update.
1942         * parse.c (operator_length_standard): Update.
1943         * f-lang.h (enum f90_range_type): Move to expression.h.
1944         * f-exp.y: Use OP_RANGE.
1945         * expression.h (enum range_type): New enum; renamed from
1946         f90_range_type.
1947         * expprint.c: Don't include f-lang.h.
1948         (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
1949         * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
1950
1951 2016-05-17  Tom Tromey  <tom@tromey.com>
1952
1953         * NEWS: Add Rust item.
1954
1955 2016-05-17  Tom Tromey  <tom@tromey.com>
1956             Manish Goregaokar <manishsmail@gmail.com>
1957
1958         * symtab.c (symbol_find_demangled_name): Handle Rust.
1959         * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
1960         * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
1961         constants.
1962         * rust-lang.h: New file.
1963         * rust-lang.c: New file.
1964         * rust-exp.y: New file.
1965         * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
1966         (dwarf2_compute_name, read_func_scope, read_structure_type)
1967         (read_base_type, read_subrange_type, set_cu_language)
1968         (new_symbol_full, determine_prefix): Handle Rust.
1969         * defs.h (enum language) <language_rust>: New constant.
1970         * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
1971         (COMMON_OBS): Add rust-exp.o, rust-lang.o.
1972
1973 2016-05-17  Tom Tromey  <tom@tromey.com>
1974
1975         * valprint.h (struct generic_val_print_array) <array_start,
1976         array_end>: New fields.
1977         * valprint.c (generic_val_print_array): Add "decorations"
1978         parameter.  Use "array_start", "array_end".
1979         (generic_val_print) <TYPE_CODE_ARRAY>: Update.
1980         * p-valprint.c (p_decorations): Update.
1981         * m2-valprint.c (m2_decorations): Update.
1982         * f-valprint.c (f_decorations): Update.
1983         * c-valprint.c (c_decorations): Update.
1984
1985 2016-05-17  Tom Tromey  <tom@tromey.com>
1986
1987         * NEWS: Add "maint selftest" entry.
1988         * selftest.h: New file.
1989         * selftest.c: New file.
1990         * maint.c: Include selftest.h.
1991         (maintenance_selftest): New function.
1992         (_initialize_maint_cmds): Add "maint selftest" command.
1993         * configure.ac (GDB_SELF_TEST): Maybe define.
1994         * config.in, configure: Rebuild.
1995         * Makefile.in (SFILES): Add selftest.c.
1996         (COMMON_OBS): Add selftest.o.
1997
1998 2016-05-17  Tom Tromey  <tom@tromey.com>
1999
2000         * expprint.c: Include f-lang.h.
2001         (print_subexp_standard, dump_subexp_body_standard): Handle
2002         OP_F90_RANGE.
2003
2004 2016-05-17  Tom Tromey  <tom@tromey.com>
2005
2006         * Makefile.in (init.c): Search .y files for initialization
2007         functions.
2008
2009 2016-05-12  Doug Evans  <dje@google.com>
2010
2011         PR symtab/19999
2012         * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
2013         add base_offset.
2014
2015 2016-05-10  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2016
2017         * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
2018         anything.
2019         * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
2020
2021 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2022
2023         * arm-tdep.c (arm_elf_make_msymbol_special): Use
2024         ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
2025
2026 2016-05-07  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2027
2028         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
2029         variables.
2030         * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
2031         (aarch64_scan_prologue): Likewise.
2032         (aarch64_prologue_prev_register): Likewise.
2033         (aarch64_dwarf2_prev_register): Likewise.
2034         (pass_in_v): Likewise.
2035         (aarch64_push_dummy_call): Likewise.
2036         (aarch64_breakpoint_from_pc): Likewise.
2037         (aarch64_return_in_memory): Likewise.
2038         (aarch64_return_value): Likewise.
2039         (aarch64_displaced_step_b_cond): Likewise.
2040         (aarch64_displaced_step_cb): Likewise.
2041         (aarch64_displaced_step_tb): Likewise.
2042         (aarch64_gdbarch_init): Likewise.
2043         (aarch64_process_record): Likewise.
2044         * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
2045         * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
2046         * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
2047         * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
2048         * amd64-tdep.c (fixup_riprel): Likewise.
2049         * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
2050         (amd64_windows_frame_decode_insns): Likewise.
2051         (amd64_windows_frame_cache): Likewise.
2052         (amd64_windows_frame_prev_register): Likewise.
2053         (amd64_windows_frame_this_id): Likewise.
2054         (amd64_windows_init_abi): Likewise.
2055         * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
2056         (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
2057         * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
2058         * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
2059         (arm_epilogue_frame_prev_register): Likewise.
2060         (arm_record_vdata_transfer_insn): Likewise.
2061         (arm_record_exreg_ld_st_insn): Likewise.
2062         * auto-load.c (execute_script_contents): Likewise.
2063         (print_scripts): Likewise.
2064         * avr-tdep.c (avr_frame_prev_register): Likewise.
2065         (avr_push_dummy_call): Likewise.
2066         * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
2067         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2068         * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
2069         * break-catch-throw.c (fetch_probe_arguments): Likewise.
2070         * breakpoint.c (breakpoint_xfer_memory): Likewise.
2071         (breakpoint_init_inferior): Likewise.
2072         (breakpoint_inserted_here_p): Likewise.
2073         (software_breakpoint_inserted_here_p): Likewise.
2074         (hardware_breakpoint_inserted_here_p): Likewise.
2075         (bpstat_what): Likewise.
2076         (break_range_command): Likewise.
2077         (save_breakpoints): Likewise.
2078         * coffread.c (coff_symfile_read): Likewise.
2079         * cris-tdep.c (cris_push_dummy_call): Likewise.
2080         (cris_scan_prologue): Likewise.
2081         (cris_register_size): Likewise.
2082         (_initialize_cris_tdep): Likewise.
2083         * d-exp.y: Likewise.
2084         * dbxread.c (dbx_read_symtab): Likewise.
2085         (process_one_symbol): Likewise.
2086         (coffstab_build_psymtabs): Likewise.
2087         (elfstab_build_psymtabs): Likewise.
2088         * dicos-tdep.c (dicos_init_abi): Likewise.
2089         * disasm.c (do_mixed_source_and_assembly): Likewise.
2090         (gdb_disassembly): Likewise.
2091         * dtrace-probe.c (dtrace_process_dof): Likewise.
2092         * dwarf2read.c (error_check_comp_unit_head): Likewise.
2093         (build_type_psymtabs_1): Likewise.
2094         (skip_one_die): Likewise.
2095         (process_imported_unit_die): Likewise.
2096         (dwarf2_physname): Likewise.
2097         (read_file_scope): Likewise.
2098         (setup_type_unit_groups): Likewise.
2099         (create_dwo_cu_reader): Likewise.
2100         (create_dwo_cu): Likewise.
2101         (create_dwo_unit_in_dwp_v1): Likewise.
2102         (create_dwo_unit_in_dwp_v2): Likewise.
2103         (lookup_dwo_unit_in_dwp): Likewise.
2104         (free_dwo_file): Likewise.
2105         (check_producer): Likewise.
2106         (dwarf2_add_typedef): Likewise.
2107         (dwarf2_add_member_fn): Likewise.
2108         (read_unsigned_leb128): Likewise.
2109         (read_signed_leb128): Likewise.
2110         (dwarf2_const_value): Likewise.
2111         (follow_die_sig_1): Likewise.
2112         (dwarf_decode_macro_bytes): Likewise.
2113         * extension.c (restore_active_ext_lang): Likewise.
2114         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
2115         * ft32-tdep.c (ft32_analyze_prologue): Likewise.
2116         * gdbtypes.c (lookup_typename): Likewise.
2117         (resolve_dynamic_range): Likewise.
2118         (check_typedef): Likewise.
2119         * h8300-tdep.c (h8300_is_argument_spill): Likewise.
2120         (h8300_gdbarch_init): Likewise.
2121         * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
2122         (hppa_frame_this_id): Likewise.
2123         (_initialize_hppa_tdep): Likewise.
2124         * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
2125         * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
2126         * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
2127         * i386-tdep.c (i386_bnd_type): Likewise.
2128         (i386_gdbarch_init): Likewise.
2129         (i386_mpx_bd_base): Likewise.
2130         * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
2131         * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
2132         * ia64-tdep.c (examine_prologue): Likewise.
2133         (ia64_frame_cache): Likewise.
2134         (ia64_push_dummy_call): Likewise.
2135         * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
2136         (default_print_one_register_info): Likewise.
2137         * infrun.c (infrun_thread_ptid_changed): Likewise.
2138         (thread_still_needs_step_over): Likewise.
2139         (stop_all_threads): Likewise.
2140         (restart_threads): Likewise.
2141         (keep_going_stepped_thread): Likewise.
2142         * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
2143         * language.c (language_init_primitive_type_symbols): Likewise.
2144         * linespec.c (add_sal_to_sals): Likewise.
2145         * linux-nat.c (status_callback): Likewise.
2146         (kill_unfollowed_fork_children): Likewise.
2147         (linux_nat_kill): Likewise.
2148         * linux-tdep.c (linux_fill_prpsinfo): Likewise.
2149         * linux-thread-db.c (thread_db_notice_clone): Likewise.
2150         (record_thread): Likewise.
2151         * location.c (string_to_event_location_basic): Likewise.
2152         * m32c-tdep.c (m32c_prev_register): Likewise.
2153         * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
2154         * m32r-tdep.c (decode_prologue): Likewise.
2155         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2156         * machoread.c (macho_symtab_read): Likewise.
2157         (macho_symfile_read): Likewise.
2158         (macho_symfile_offsets): Likewise.
2159         * maint.c (set_per_command_cmd): Likewise.
2160         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
2161         (mi_cmd_stack_list_variables): Likewise.
2162         * mi/mi-main.c (mi_cmd_exec_run): Likewise.
2163         (output_register): Likewise.
2164         (mi_cmd_execute): Likewise.
2165         (mi_cmd_trace_define_variable): Likewise.
2166         (print_variable_or_computed): Likewise.
2167         * minsyms.c (prim_record_minimal_symbol_full): Likewise.
2168         * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
2169         * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
2170         * mt-tdep.c (mt_registers_info): Likewise.
2171         * nios2-tdep.c (nios2_analyze_prologue): Likewise.
2172         (nios2_push_dummy_call): Likewise.
2173         (nios2_frame_unwind_cache): Likewise.
2174         (nios2_stub_frame_cache): Likewise.
2175         (nios2_stub_frame_sniffer): Likewise.
2176         (nios2_gdbarch_init): Likewise.
2177         * ppc-ravenscar-thread.c: Likewise.
2178         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
2179         * python/py-evts.c (add_new_registry): Likewise.
2180         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
2181         (bpfinishpy_detect_out_scope_cb): Likewise.
2182         * python/py-framefilter.c (py_print_value): Likewise.
2183         * python/py-inferior.c (infpy_write_memory): Likewise.
2184         * python/py-infevents.c (create_inferior_call_event_object): Likewise.
2185         * python/py-infthread.c (thpy_get_ptid): Likewise.
2186         * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
2187         (ltpy_get_all_source_lines): Likewise.
2188         (ltpy_is_valid): Likewise.
2189         (ltpy_iternext): Likewise.
2190         * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
2191         * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
2192         (unwind_infopy_str): Likewise.
2193         * python/py-varobj.c (py_varobj_get_iterator): Likewise.
2194         * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2195         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
2196         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
2197         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
2198         * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
2199         (s390_frame_prev_register): Likewise.
2200         (s390_dwarf2_frame_init_reg): Likewise.
2201         (s390_record_vr): Likewise.
2202         (s390_process_record): Likewise.
2203         * score-tdep.c (score_push_dummy_call): Likewise.
2204         (score3_analyze_prologue): Likewise.
2205         * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
2206         * sh64-tdep.c (sh64_analyze_prologue): Likewise.
2207         (sh64_push_dummy_call): Likewise.
2208         (sh64_extract_return_value): Likewise.
2209         (sh64_do_fp_register): Likewise.
2210         * solib-aix.c (solib_aix_get_section_offsets): Likewise.
2211         * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
2212         (darwin_solib_read_all_image_info_addr): Likewise.
2213         * solib-dsbt.c (enable_break): Likewise.
2214         * solib-frv.c (enable_break2): Likewise.
2215         (frv_fdpic_find_canonical_descriptor): Likewise.
2216         * solib-svr4.c (svr4_handle_solib_event): Likewise.
2217         * sparc-tdep.c (sparc_skip_stack_check): Likewise.
2218         * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
2219         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
2220         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2221         * stack.c (read_frame_local): Likewise.
2222         * symfile.c (symbol_file_add_separate): Likewise.
2223         (remove_symbol_file_command): Likewise.
2224         * symmisc.c (maintenance_print_one_line_table): Likewise.
2225         * symtab.c (symbol_cache_flush): Likewise.
2226         (basic_lookup_transparent_type): Likewise.
2227         (sort_search_symbols_remove_dups): Likewise.
2228         * target.c (target_memory_map): Likewise.
2229         (target_detach): Likewise.
2230         (target_resume): Likewise.
2231         (acquire_fileio_fd): Likewise.
2232         (target_store_registers): Likewise.
2233         * thread.c (print_thread_info_1): Likewise.
2234         * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
2235         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
2236         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2237         (tilegx_analyze_prologue): Likewise.
2238         (tilegx_stack_frame_destroyed_p): Likewise.
2239         (tilegx_frame_cache): Likewise.
2240         * tracefile.c (trace_save): Likewise.
2241         * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
2242         (start_tracing): Likewise.
2243         (print_one_static_tracepoint_marker): Likewise.
2244         * tui/tui.c (tui_enable): Likewise.
2245         * valops.c (value_struct_elt_bitpos): Likewise.
2246         (find_overload_match): Likewise.
2247         (find_oload_champ): Likewise.
2248         * value.c (value_contents_copy_raw): Likewise.
2249         * windows-tdep.c (windows_get_tlb_type): Likewise.
2250         * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
2251         * xcoffread.c (record_minimal_symbol): Likewise.
2252         (scan_xcoff_symtab): Likewise.
2253         * xtensa-tdep.c (execute_code): Likewise.
2254         (xtensa_gdbarch_init): Likewise.
2255         (_initialize_xtensa_tdep): Likewise.
2256
2257 2016-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
2258
2259         * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
2260         (spu_bfd_open): Likewise.
2261
2262 2016-05-04  Yao Qi  <yao.qi@linaro.org>
2263
2264         PR gdb/19947
2265         * corefile.c (read_memory): Rename it to ...
2266         (read_memory_object): ... it.  Add parameter object.
2267         (read_memory): Call read_memory_object.
2268         (read_stack): Likewise.
2269         (read_code): Likewise.
2270
2271 2016-05-03  Yunlian Jiang <yunlian@google.com>
2272             Doug Evans  <dje@google.com>
2273
2274         PR symtab/19914
2275         * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
2276         is separate debug file.
2277
2278 2016-05-03  Don Breazeal <donb@codesourcery.com>
2279
2280         * serial.h (gdb_pipe): Fix argument names in comment.
2281
2282 2016-05-03  Pedro Alves <palves@redhat.com>
2283
2284         PR python/20037
2285         * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
2286         oldloc.
2287
2288 2016-05-03  Pedro Alves <palves@redhat.com>
2289
2290         * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
2291         code.
2292
2293 2016-05-03  Pedro Alves  <palves@redhat.com>
2294
2295         * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
2296         * configure: Regenerate.
2297
2298 2016-05-03  Pedro Alves  <palves@redhat.com>
2299
2300         * configure.ac (checking for the dynamic export flag): Add
2301         $PYTHON_CPPFLAGS to CPPFLAGS.
2302         * configure: Regenerate.
2303
2304 2016-05-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2305
2306         * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
2307         warning.
2308         (find_pc_mapped_section): Likewise.
2309         (list_overlays_command): Likewise.
2310
2311 2016-05-02  Eli Zaretskii  <eliz@gnu.org>
2312
2313         * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
2314         error in allocation of space for "$HOME/.gdbinit" string.  This
2315         caused GDB to abort on startup whenever a '~/gdb.ini' file was
2316         actually found, because xsnprintf would hit an assertion
2317         violation.
2318
2319 2016-04-28  Simon Marchi  <simon.marchi@ericsson.com>
2320
2321         * cli/cli-decode.c (help_cmd_list): Do not list commands that
2322         are deprecated.
2323
2324 2016-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2325
2326         * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
2327
2328 2016-04-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
2329
2330         * c-valprint.c (c_value_print): Always convert val back to reference
2331         type if we converted it to a pointer type.
2332
2333 2016-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2334
2335         * configure.ac: Enhance configure check for babeltrace to reject
2336         non-C++-enabled versions.
2337         * configure: Regenerate.
2338
2339 2016-04-26  Sanimir Agovic  <sanimir.agovic@intel.com>
2340             Keven Boell  <keven.boell@intel.com>
2341             Bernhard Heckel  <bernhard.heckel@intel.com>
2342
2343         * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
2344         function.
2345         (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
2346         (f77_print_array_1): Use value_subscript to subscript a
2347         value array.
2348         (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
2349         (f_val_print): Use value_field to construct a field value.
2350
2351 2016-04-26  Bernhard Heckel  <bernhard.heckel@intel.com>
2352
2353         * valarith.c (value_address): Resolve dynamic types.
2354
2355 2016-04-26  Bernhard Heckel  <bernhard.heckel@intel.com>
2356             Keven Boell  <kevel.boell@intel.com>
2357
2358         * NEWS: Add new supported features for fortran.
2359         * gdbtypes.c (remove_dyn_prop): New.
2360         (resolve_dynamic_struct): Keep type length for fortran structs.
2361         * gdbtypes.h: Forward declaration of new function.
2362         * value.c (value_address): Return dynamic resolved location of a value.
2363         (set_value_component_location): Adjust the value address
2364         for single value prints.
2365         (value_primitive_field): Support value types with a dynamic location.
2366         (set_internalvar): Remove dynamic location property of
2367         internal variables.
2368
2369 2016-04-25  Pedro Alves  <palves@redhat.com>
2370             Yao Qi  <yao.qi@linaro.org>
2371
2372         * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
2373         object.  Insert it if it is not inserted yet.  Increase the
2374         refcount and link it into the proc's raw breakpoint list.
2375
2376 2016-04-25  Yao Qi  <yao.qi@linaro.org>
2377
2378         * breakpoint.c (should_be_inserted): Return 0 if the location's
2379         owner is not single step breakpoint or single step breakpoint's
2380         thread isn't the thread which is stepping past a breakpoint.
2381         * gdbarch.sh (software_single_step): Update comments.
2382         * gdbarch.h: Regenerated.
2383         * infrun.c (struct step_over_info) <thread>: New field.
2384         (set_step_over_info): New argument 'thread'.  Callers updated.
2385         (clear_step_over_info): Set field thread to -1.
2386         (thread_is_stepping_over_breakpoint): New function.
2387         * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
2388
2389 2016-04-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2390
2391         * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
2392         and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
2393
2394 2016-04-22  Yao Qi  <yao.qi@linaro.org>
2395
2396         * valops.c (read_value_memory): New local variable 'stack'.
2397         Set it to either TARGET_OBJECT_STACK_MEMORY or
2398         TARGET_OBJECT_MEMORY.
2399
2400 2016-04-22  Pedro Alves  <palves@redhat.com>
2401
2402         * ada-exp.y: Remove all yy symbol remappings.
2403         (GDB_YY_REMAP_PREFIX): Define.
2404         Include "yy-remap.h".
2405         * ada-lang.c (ada_language_defn): Adjust.
2406         * ada-lang.h (ada_error): Rename to ...
2407         (ada_yyerror): ... this.
2408         * c-exp.y: Remove all yy symbol remappings.
2409         (GDB_YY_REMAP_PREFIX): Define.
2410         Include "yy-remap.h".
2411         * c-lang.c (c_language_defn, cplus_language_defn)
2412         (asm_language_defn, minimal_language_defn): Adjust.
2413         * c-lang.h (c_error): Rename to ...
2414         (c_yyerror): ... this.
2415         * d-exp.y: Remove all yy symbol remappings.
2416         (GDB_YY_REMAP_PREFIX): Define.
2417         Include "yy-remap.h".
2418         * d-lang.c (d_language_defn): Adjust.
2419         * d-lang.h (d_error): Rename to ...
2420         (d_yyerror): ... this.
2421         * f-exp.y: Remove all yy symbol remappings.
2422         (GDB_YY_REMAP_PREFIX): Define.
2423         Include "yy-remap.h".
2424         * f-lang.c (f_language_defn): Adjust.
2425         * f-lang.h (f_error): Rename to ...
2426         (f_yyerror): ... this.
2427         * go-exp.y: Remove all yy symbol remappings.
2428         (GDB_YY_REMAP_PREFIX): Define.
2429         Include "yy-remap.h".
2430         * go-lang.c (go_language_defn): Adjust.
2431         * go-lang.h (go_error): Rename to ...
2432         (go_yyerror): ... this.
2433         * jv-exp.y: Remove all yy symbol remappings.
2434         (GDB_YY_REMAP_PREFIX): Define.
2435         Include "yy-remap.h".
2436         * jv-lang.c (java_language_defn): Adjust.
2437         * jv-lang.h (java_error): Rename to ...
2438         (java_yyerror): ... this.
2439         * m2-exp.y: Remove all yy symbol remappings.
2440         (GDB_YY_REMAP_PREFIX): Define.
2441         Include "yy-remap.h".
2442         * m2-lang.c (m2_language_defn): Adjust.
2443         * m2-lang.h (m2_error): Rename to ...
2444         (m2_yyerror): ... this.
2445         * objc-exp.y: Remove all yy symbol remappings.
2446         (GDB_YY_REMAP_PREFIX): Define.
2447         Include "yy-remap.h".
2448         * objc-lang.c (objc_language_defn): Adjust.
2449         * opencl-lang.c (opencl_language_defn): Adjust.
2450         * p-exp.y: Remove all yy symbol remappings.
2451         (GDB_YY_REMAP_PREFIX): Define.
2452         Include "yy-remap.h".
2453         * p-lang.c (pascal_language_defn): Adjust.
2454         * p-lang.h (pascal_error): Rename to ...
2455         (pascal_yyerror): ... this.
2456         * yy-remap.h: New file.
2457
2458 2016-04-22  Pedro Alves  <palves@redhat.com>
2459
2460         * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
2461         the foreign frames issue.
2462         [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
2463
2464 2016-04-22  Pedro Alves  <palves@redhat.com>
2465
2466         * common/common-exceptions.c (enum catcher_state, struct catcher)
2467         (current_catcher): Define in C++ mode too.
2468         (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
2469         throw_exception.
2470         (throw_exception_sjlj, throw_exception_cxx): New functions,
2471         factored out from throw_exception.
2472         (throw_exception): Reimplement.
2473         * common/common-exceptions.h (exceptions_state_mc_init)
2474         (exceptions_state_mc_action_iter)
2475         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2476         Declare in C++ mode too.
2477         (TRY): Rename to ...
2478         (TRY_SJLJ): ... this.
2479         (CATCH): Rename to ...
2480         (CATCH_SJLJ): ... this.
2481         (END_CATCH): Rename to ...
2482         (END_CATCH_SJLJ): ... this.
2483         [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
2484         equivalents.
2485         (throw_exception): Update comments.
2486         (throw_exception_sjlj): Declare.
2487         * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
2488         comment.  Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
2489         intercepted exception.
2490         (gdb_rl_callback_handler): New function.
2491         (gdb_rl_callback_handler_install): Always install
2492         gdb_rl_callback_handler as readline callback.
2493
2494 2016-04-22  Pedro Alves  <palves@redhat.com>
2495
2496         * event-top.c (rl_callback_read_char_wrapper): Rename to ...
2497         (gdb_rl_callback_read_char_wrapper): ... this.
2498         (change_line_handler, gdb_setup_readline): Adjust.
2499
2500 2016-04-22  Yao Qi  <yao.qi@linaro.org>
2501
2502         * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
2503         bits 20 to 23.
2504
2505 2016-04-22  Joel Brobecker  <brobecker@adacore.com>
2506
2507         * MAINTAINER: Remove myself as AIX Maintainer.
2508
2509 2016-04-22  Maciej W. Rozycki  <macro@imgtec.com>
2510
2511         * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
2512         `num_regs' to 90 rather than 79.  Where a target description is
2513         present adjust the setting appropriately.
2514
2515 2016-04-21  Pedro Alves  <palves@redhat.com>
2516
2517         * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
2518         (GDB_XCPT): Always define as GDB_XCPT_SJMP.
2519
2520 2016-04-21  Pedro Alves  <palves@redhat.com>
2521
2522         * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
2523         (aix_thread_resume): Use PTRACE_TYPE_ARG5.
2524         * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
2525         (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
2526         pointer, and cast return to gdb_byte pointer.
2527
2528 2016-04-21  Pedro Alves  <palves@redhat.com>
2529
2530         * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
2531         void * instead of gdb_byte *.
2532
2533 2016-04-21  Pedro Alves  <palves@redhat.com>
2534
2535         * dwarf2read.c (try_open_dwop_file, open_dwo_file)
2536         (file_file_name, file_full_name): Add char * cast to sentinel in
2537         concat/reconcat calls.
2538         * event-top.c (top_level_prompt): Likewise.
2539         * guile/guile.c (initialize_scheme_side): Likewise.
2540         * linux-tdep.c (linux_fill_prpsinfo): Likewise.
2541         * macrotab.c (macro_source_fullname): Likewise.
2542         * main.c (get_init_files, captured_main): Likewise.
2543         * psymtab.c (psymtab_to_fullname): Likewise.
2544         * python/python.c (_initialize_python)
2545         (gdbpy_finish_initialization): Likewise.
2546         * source.c (symtab_to_fullname): Likewise.
2547
2548 2016-04-20  Pedro Alves  <palves@redhat.com>
2549
2550         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
2551         * configure: Renegerate.
2552
2553 2016-04-20  Pedro Alves  <palves@redhat.com>
2554
2555         * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
2556
2557 2016-04-20  Pedro Alves  <palves@redhat.com>
2558
2559         * aarch64-tdep.c (aarch64_record_load_store): Change type of
2560         'reg_rm_val' local to ULONGEST.
2561
2562 2016-04-20  Pedro Alves  <palves@redhat.com>
2563
2564         * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
2565
2566 2016-04-20  Doug Evans  <xdje42@gmail.com>
2567
2568         * symmisc.c (dump_symtab_1): Print owning compunit for identical
2569         blockvectors.
2570
2571 2016-04-20  Yao Qi  <yao.qi@linaro.org>
2572
2573         * aarch32-linux-nat.c: Include "arch/arm-linux.h".
2574
2575 2016-04-20  Yao Qi  <yao.qi@linaro.org>
2576
2577         * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
2578         * arch/arm-linux.h: ... here.
2579
2580 2016-04-19  John Baldwin  <jhb@FreeBSD.org>
2581
2582         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
2583         to void *.
2584         (amd64bsd_store_inferior_registers): Likewise.
2585         * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
2586         (resume_all_threads_cb): Likewise.
2587         * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
2588         (i386bsd_collect_gregset): Likewise.
2589         (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
2590         (i386bsd_store_inferior_registers): Likewise.
2591
2592 2016-04-19  John Baldwin  <jhb@FreeBSD.org>
2593
2594         * main.c (setup_alternate_signal_stack): Cast to char *.
2595
2596 2016-04-19  Doug Evans  <xdje42@gmail.com>
2597
2598         * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
2599         All callers updated.
2600
2601 2016-04-19  Doug Evans  <xdje42@gmail.com>
2602
2603         PR gdb/17911
2604         * source.c (is_regular_file): New arg errno_ptr.
2605         All callers updated.
2606
2607 2016-04-19  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2608
2609         * linux-record.c (record_linux_system_call): Merge handling for
2610         readlink/recv/read and pipe/pipe2.
2611
2612 2016-04-14  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2613
2614         * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
2615         * features/i386/amd64-mpx.xml: Remove AVX feature.
2616         * features/i386/i386-mpx-linux.xml: Remove AVX feature.
2617         * features/i386/i386-mpx.xml: Remove AVX feature.
2618         * features/i386/amd64-mpx-linux.c: Regenerate.
2619         * features/i386/amd64-mpx.c: Regenerate.
2620         * features/i386/i386-mpx-linux.c: Regenerate.
2621         * features/i386/i386-mpx.c: Regenerate.
2622         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2623         * regformats/i386/amd64-mpx.dat: Regenerate.
2624         * regformats/i386/i386-mpx-linux.dat: Regenerate.
2625         * regformats/i386/i386-mpx.dat: Regenerate.
2626
2627 2016-04-16  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2628
2629         * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
2630         New include.
2631         (amd64_linux_core_read_description): Add case for
2632          X86_XSTATE_AVX_MPX_MASK.
2633         (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
2634         * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
2635         * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
2636         (amd64_target_description): Add case for  X86_XSTATE_AVX_MPX_MASK.
2637         (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
2638         * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
2639         (X86_XSTATE_AVX_MPX_MASK): New case.
2640         * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
2641         (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
2642         (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
2643         (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
2644         New expedites.
2645         * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
2646         include.
2647         (i386_linux_core_read_description): Add case
2648         X86_XSTATE_AVX_MPX_MASK.
2649         (_initialize_i386_linux_tdep): Call
2650         initialize_tdesc_i386_avx_mpx_linux.
2651         * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
2652         * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
2653         (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
2654         * x86-linux-nat.c (x86_linux_read_description): Add case for
2655         X86_XSTATE_AVX_MPX_MASK.
2656         * features/i386/amd64-avx-mpx-linux.xml: New file.
2657         * features/i386/i386-avx-mpx-linux.xml: New file.
2658         * features/i386/i386-avx-mpx.xml: New file.
2659         * features/i386/amd64-avx-mpx.xml: New file.
2660         * features/i386/amd64-avx-mpx-linux.c: Generated.
2661         * features/i386/amd64-avx-mpx.c: Generated.
2662         * features/i386/i386-avx-mpx-linux.c: Generated.
2663         * features/i386/i386-avx-mpx.c: Generated.
2664         * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
2665         * regformats/i386/amd64-avx-mpx.dat: Generated.
2666         * regformats/i386/i386-avx-mpx-linux.dat: Generated.
2667         * regformats/i386/i386-avx-mpx.dat: Generated.
2668
2669 2016-04-18  Pedro Alves  <palves@redhat.com>
2670
2671         * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
2672         * configure: Regenerate.
2673
2674 2016-04-18  Martin Galvan  <martin.galvan@tallertechnologies.com>
2675
2676         * valops.c (value_addr): For C++ references, set the copied value's
2677         enclosing_type as well.
2678
2679 2016-04-18  Yao Qi  <yao.qi@linaro.org>
2680
2681         Revert:
2682         2016-04-15  Yao Qi  <yao.qi@linaro.org>
2683
2684         * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
2685         PC is far from the end of function.
2686
2687 2016-04-16  Pedro Alves  <palves@redhat.com>
2688
2689         * ada-exp.y (yydefred): Define as ada_yydefred.
2690
2691 2016-04-15  Pedro Alves  <palves@redhat.com>
2692
2693         * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
2694         'name_str' locals.
2695
2696 2016-04-15  Pedro Alves  <palves@redhat.com>
2697
2698         * btrace.c (pt_btrace_insn_flags): Change return type to
2699         btrace_insn_flags.  Use btrace_insn_flags for local.
2700
2701 2016-04-15  Pedro Alves  <palves@redhat.com>
2702
2703         * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
2704         accept TRAP_BRKPT.
2705          [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
2706
2707 2016-04-15  Yao Qi  <yao.qi@linaro.org>
2708
2709         * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
2710         PC is far from the end of function.
2711
2712 2016-04-14  Pedro Alves  <palves@redhat.com>
2713
2714         * cli/cli-cmds.c (alias_usage_error): New function.
2715         (alias_command): Use it.
2716         * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
2717         ctf_save_write_metadata call.
2718
2719 2016-04-14  Pedro Alves  <palves@redhat.com>
2720
2721         * ada-typeprint.c (print_fixed_point_type): Don't pass float as
2722         argument to function expecting LONGEST.
2723         * value.c (unpack_long): Add casts to LONGEST.
2724
2725 2016-04-13  Luis Machado  <lgustavo@codesourcery.com>
2726
2727         * exec.c (exec_file_locate_attach): Guard a couple functions
2728         that can throw errors.
2729         (exception_print_same): New helper function.
2730
2731 2016-04-13  Pedro Alves  <palves@redhat.com>
2732
2733         PR remote/19840
2734         * remote.c (struct remote_state) <last_resume_exec_dir>: New
2735         field.
2736         (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
2737         (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
2738         (remote_resume): Store the last execution direction.
2739         (remote_execution_direction): New function.
2740         (init_remote_ops): Install it as to_execution_direction target_ops
2741         method.
2742
2743 2016-04-12  Pedro Alves  <palves@redhat.com>
2744
2745         * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
2746         [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
2747
2748 2016-04-12  Pedro Alves  <palves@redhat.com>
2749
2750         * common/common-exceptions.c (struct catcher) <buf>: Now a
2751         'jmp_buf' instead of SIGJMP_BUF.
2752         (exceptions_state_mc_init): Change return type to 'jmp_buf'.
2753         (throw_exception): Use longjmp instead of SIGLONGJMP.
2754         * common/common-exceptions.h: Include <setjmp.h> instead of
2755         "gdb_setjmp.h".
2756         (exceptions_state_mc_init): Change return type to 'jmp_buf'.
2757         [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
2758         SIGSETJMP.
2759         * cp-support.c: Include "gdb_setjmp.h".
2760
2761 2016-04-12  Pedro Alves  <palves@redhat.com>
2762
2763         * common/common-exceptions.c (exception_rethrow): Remove
2764         prepare_to_throw_exception call.
2765         * common/common-exceptions.h (prepare_to_throw_exception): Delete
2766         declaration.
2767         * exceptions.c (prepare_to_throw_exception): Delete.
2768
2769 2016-04-12  Pedro Alves  <palves@redhat.com>
2770
2771         * target.c (target_check_pending_interrupt): Delete.
2772         * target.h (struct target_ops) <to_check_pending_interrupt>:
2773         Remove method.
2774         (target_check_pending_interrupt): Remove declaration.
2775         * target-delegates.c: Regenerate.
2776
2777 2016-04-12  Pedro Alves  <palves@redhat.com>
2778
2779         * defs.h: Update comments on SIGINT handling.
2780         (immediate_quit): Delete declaration.
2781         * event-loop.c (call_async_signal_handler): Delete.
2782         * event-loop.h (call_async_signal_handler): Delete declaration.
2783         (mark_async_signal_handler): Update comments.
2784         (gdb_call_async_signal_handler): Delete declaration.
2785         * event-top.c (handle_sigint): Call mark_async_signal_handler
2786         instead of gdb_call_async_signal_handler.
2787         * exceptions.c (prepare_to_throw_exception): Remove reference to
2788         immediate_quit.
2789         (exception_fprintf): Remove comments about immediate_quit.
2790         * mingw-hdep.c (sigint_event, sigint_handler): Delete.
2791         (gdb_select): Don't wait on sigint_event.
2792         (gdb_call_async_signal_handler): Delete.
2793         (_initialize_mingw_hdep): Delete.
2794         * posix-hdep.c (gdb_call_async_signal_handler): Delete.
2795         * utils.c (immediate_quit): Delete.
2796
2797 2016-04-12  Pedro Alves  <palves@redhat.com>
2798
2799         * defs.h (quit_handler_ftype, quit_handler)
2800         (make_cleanup_override_quit_handler, default_quit_handler): New.
2801         (QUIT): Adjust comments.
2802         * event-top.c (default_quit_handler): New function.
2803         (quit_handler): New global.
2804         (struct quit_handler_cleanup_data): New.
2805         (restore_quit_handler, restore_quit_handler_dtor)
2806         (make_cleanup_override_quit_handler): New.
2807         (async_request_quit): Call QUIT.
2808         * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
2809         (async_sigint_remote_twice_token, async_sigint_remote_token):
2810         Delete.
2811         (remote_close): Update comments.
2812         (remote_start_remote): Don't set immediate_quit.  Set starting_up
2813         earlier.
2814         (remote_serial_quit_handler, remote_unpush_and_throw): New
2815         functions.
2816         (remote_open_1): Clear got_ctrlc_during_io.  Set
2817         remote_async_terminal_ours_p unconditionally.
2818         (async_initialize_sigint_signal_handler)
2819         (async_handle_remote_sigint, async_handle_remote_sigint_twice)
2820         (remote_check_pending_interrupt, async_remote_interrupt)
2821         (async_remote_interrupt_twice)
2822         (async_cleanup_sigint_signal_handler, ofunc)
2823         (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
2824         (remote_terminal_inferior, remote_terminal_ours): Remove async
2825         checks.
2826         (remote_wait_as): Don't install a SIGINT handler in sync mode.
2827         (readchar, remote_serial_write): Override the quit handler with
2828         remote_serial_quit_handler.
2829         (getpkt_or_notif_sane_1): Don't call QUIT.
2830         (initialize_remote_ops): Don't install
2831         remote_check_pending_interrupt.
2832         (_initialize_remote): Don't create async_sigint_remote_token and
2833         async_sigint_remote_twice_token.
2834         * ser-base.c (ser_base_wait_for): Call QUIT and use
2835         interruptible_select.
2836         (ser_base_write): Call QUIT.
2837         * ser-go32.c (dos_readchar, dos_write): Call QUIT.
2838         * ser-unix.c (wait_for): Don't use VTIME.  Always take the
2839         gdb_select path, but call QUIT and interruptible_select.
2840         * utils.c (maybe_quit): Call the current quit handler.  Don't call
2841         target_check_pending_interrupt.
2842         (defaulted_query, prompt_for_continue): Override the quit handler
2843         with the default quit handler.
2844
2845 2016-04-12  Pedro Alves  <palves@redhat.com>
2846
2847         * tui/tui-hooks.c (tui_target_has_run): Delete.
2848         (tui_about_to_proceed): Delete.
2849         (tui_about_to_proceed_observer): Delete.
2850         (tui_install_hooks, tui_remove_hooks): Don't install/remove an
2851         about_to_proceed observer.
2852
2853 2016-04-12  Pedro Alves  <palves@redhat.com>
2854
2855         * mi/mi-interp.c (mi_new_thread): Put
2856         target_terminal_ours_for_output in effect while outputting.
2857         (mi_thread_exit): Use target_terminal_ours_for_output instead of
2858         target_terminal_ours.
2859         (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
2860         (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
2861         (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
2862         (mi_breakpoint_created, mi_breakpoint_deleted)
2863         (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
2864         (mi_command_param_changed, mi_memory_changed)
2865         (report_initial_inferior): Use target_terminal_ours_for_output
2866         instead of target_terminal_ours.  Restore terminal settings.
2867         * mi/mi-main.c (mi_execute_command): Use
2868         target_terminal_ours_for_output instead of target_terminal_ours.
2869         Restore terminal settings.
2870
2871 2016-04-12  Pedro Alves  <palves@redhat.com>
2872
2873         PR gdb/19828
2874         * gnu-nat.c (inf_validate_task_sc): Don't call
2875         target_terminal_ours / target_terminal_inferior around query.
2876         * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
2877         call target_terminal_ours / target_terminal_inferior around
2878         yquery.
2879         * linux-record.c (record_linux_system_call): Don't call
2880         target_terminal_ours / target_terminal_inferior around yquery.
2881         * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
2882         / target_terminal_inferior around query.
2883         * record-full.c (record_full_check_insn_num): Remove
2884         'set_terminal' parameter.  Don't call target_terminal_ours /
2885         target_terminal_inferior around query.
2886         (record_full_message, record_full_registers_change)
2887         (record_full_xfer_partial): Adjust.
2888         * remote.c (interrupt_query): Don't call target_terminal_ours /
2889         target_terminal_inferior around query.
2890         * utils.c (defaulted_query): Install cleanup to restore target
2891         terminal.  Put target_terminal_ours_for_output in effect while
2892         defaulted producing, and target_terminal_ours in in effect while
2893         handling input.
2894         (prompt_for_continue): Install cleanup to restore target terminal.
2895         Put target_terminal_ours in in effect while handling input.
2896
2897 2016-04-12  Pedro Alves  <palves@redhat.com>
2898
2899         * utils.c (defaulted_query, prompt_for_continue): Free temporary
2900         strings with cleanups, instead of xfree.
2901
2902 2016-04-12  Pedro Alves  <palves@redhat.com>
2903
2904         * utils.c (vwarning, internal_vproblem): Use
2905         make_cleanup_restore_target_terminal and
2906         target_terminal_ours_for_output.
2907
2908 2016-04-12  Pedro Alves  <palves@redhat.com>
2909
2910         * infcmd.c (post_create_inferior, prepare_one_step): Use
2911         target_terminal_ours_for_output instead of target_terminal_ours.
2912
2913 2016-04-12  Pedro Alves  <palves@redhat.com>
2914
2915         * exceptions.c (print_flush): Use target_terminal_ours_for_output
2916         instead of target_terminal_ours, and restore target terminal with
2917         a cleanup.
2918
2919 2016-04-12  Pedro Alves  <palves@redhat.com>
2920
2921         * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
2922         instead of target_terminal_ours, and restore target terminal with
2923         a cleanup.
2924
2925 2016-04-12  Pedro Alves  <palves@redhat.com>
2926
2927         * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
2928         functions.
2929         (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
2930
2931 2016-04-12  Pedro Alves  <palves@redhat.com>
2932
2933         * ser-base.c (fd_event): Retry read_prim on EINTR.
2934         (do_ser_base_readchar): Retry read_prim on EINTR.
2935         (ser_base_write): Retry write_prim on EINTR.
2936         * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
2937         (ser_unix_write_prim): Remove comment.
2938
2939 2016-04-12  Pedro Alves  <palves@redhat.com>
2940
2941         * remote.c (remote_pass_ctrlc): New function.
2942         (init_remote_ops): Install it.
2943         * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
2944         target.
2945         (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
2946         * target.h (struct target_ops) <to_pass_ctrlc>: New method.
2947         (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
2948         * target-delegates.c: Regenerate.
2949
2950 2016-04-12  Pedro Alves  <palves@redhat.com>
2951
2952         * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
2953         mode.
2954         * linux-nat.c (linux_nat_interrupt): Delete.
2955         (linux_nat_add_target): Don't install linux_nat_interrupt.
2956         * remote.c (remote_interrupt_ns): Change return type to void.
2957         Throw error if interrupting the target is not supported.
2958         (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
2959
2960 2016-04-12  Pedro Alves  <palves@redhat.com>
2961
2962         * defs.h (clear_quit_flag): Remove declaration.
2963         * extension-priv.h (struct extension_language_ops)
2964         <clear_quit_flag>: Remove field and update comments.
2965         * extension.c (clear_quit_flag): Delete.
2966         * guile/guile.c (guile_extension_ops): Adjust.
2967         * python/python.c (python_extension_ops): Adjust.
2968         (gdbpy_clear_quit_flag): Delete.
2969
2970 2016-04-12  Pedro Alves  <palves@redhat.com>
2971
2972         * main.c (captured_main): Don't clear the quit flag.
2973
2974 2016-04-12  Pedro Alves  <palves@redhat.com>
2975
2976         * exceptions.c (prepare_to_throw_exception): Don't clear the quit
2977         flag.
2978
2979 2016-04-12  Pedro Alves  <palves@redhat.com>
2980
2981         * event-top.c (command_handler): Don't call clear_quit_flag.
2982
2983 2016-04-12  Pedro Alves  <palves@redhat.com>
2984
2985         * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
2986         * remote.c (remote_wait_as): Don't call clear_quit_flag.
2987
2988 2016-04-12  Pedro Alves  <palves@redhat.com>
2989
2990         * python/python.c: Include "ser-event.h".
2991         (gdbpy_event_fds): Delete.
2992         (gdbpy_serial_event): New.
2993         (gdbpy_run_events): Change prototype.  Use serial_event_clear
2994         instead of serial_readchar.
2995         (gdbpy_post_event): Use serial_event_set instead of serial_write.
2996         (gdbpy_initialize_events): Use make_serial_event instead of
2997         serial_pipe.
2998
2999 2016-04-12  Pedro Alves  <palves@redhat.com>
3000
3001         * defs.h: Extend QUIT-related comments to mention
3002         interruptible_select.
3003         (quit_serial_event_set, quit_serial_event_clear): Declare.
3004         * event-top.c: Include "ser-event.h" and "gdb_select.h".
3005         (quit_serial_event): New global.
3006         (async_init_signals): Make quit_serial_event.
3007         (quit_serial_event_set, quit_serial_event_clear)
3008         (quit_serial_event_fd, interruptible_select): New functions.
3009         * extension.c (set_quit_flag): Set the quit serial event.
3010         (check_quit_flag): Clear the quit serial event.
3011         * gdb_select.h (interruptible_select): New declaration.
3012         * guile/scm-ports.c (ioscm_input_waiting): Use
3013         interruptible_select instead of gdb_select.
3014         * top.c (gdb_readline_no_editing): Likewise.
3015         * ui-file.c (stdio_file_read): Likewise.
3016
3017 2016-04-12  Pedro Alves  <palves@redhat.com>
3018
3019         * event-loop.c: Include "ser-event.h".
3020         (async_signal_handlers_serial_event): New global.
3021         (async_signals_handler, initialize_async_signal_handlers): New
3022         functions.
3023         (mark_async_signal_handler): Set
3024         async_signal_handlers_serial_event.
3025         (invoke_async_signal_handlers): Clear
3026         async_signal_handlers_serial_event.
3027         * event-top.c (async_init_signals): Call
3028         initialize_async_signal_handlers.
3029
3030 2016-04-12  Pedro Alves  <palves@redhat.com>
3031
3032         * Makefile.in (SFILES): Add ser-event.c.
3033         (HFILES_NO_SRCDIR): Add ser-event.h.
3034         (COMMON_OBS): Add ser-event.o.
3035         * ser-event.c, ser-event.h: New files.
3036         * serial.c (new_serial): New function, factored out from
3037         (serial_fdopen_ops): ... this.
3038         (serial_open_ops_1): New function, factored out from
3039         (serial_open): ... this.
3040         (serial_open_ops): New function.
3041         * serial.h (struct serial): Forware declare.
3042         (serial_open_ops): New declaration.
3043
3044 2016-04-12  Pedro Alves  <palves@redhat.com>
3045
3046         * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
3047         Remove references to name.
3048         * serial.h (struct serial) <name>: Delete.
3049
3050 2016-04-12  Pedro Alves  <palves@redhat.com>
3051
3052         * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
3053         Delete.
3054         (async_remote_fileio_interrupt): Delete.
3055         (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
3056         handler.  Instead just always set the ctrl_c flag.
3057         (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
3058         re-enabling the SIGINT handler.
3059         (remote_fileio_func_open, remote_fileio_func_close)
3060         (remote_fileio_func_read, remote_fileio_func_write)
3061         (remote_fileio_func_lseek, remote_fileio_func_rename)
3062         (remote_fileio_func_unlink, remote_fileio_func_stat)
3063         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
3064         (remote_fileio_func_isatty, remote_fileio_func_system)
3065         (remote_fileio_request): Remove references to
3066         remote_fio_no_longjmp.
3067         (initialize_remote_fileio): Don't create an async signal handler.
3068
3069 2016-04-12  Pedro Alves  <palves@redhat.com>
3070
3071         * event-top.c (stdin_event_handler): Call QUIT;
3072         (prompt_for_continue): Don't run with immediate_quit set.
3073
3074 2016-04-12  Pedro Alves  <palves@redhat.com>
3075
3076         * tui/tui-io.c (tui_redisplay_readline): Check
3077         gdb_in_secondary_prompt_p instead of immediate_quit.
3078         * tui/tui.c: Include top.h.
3079         (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
3080         immediate_quit.
3081
3082 2016-04-12  Pedro Alves  <palves@redhat.com>
3083
3084         * top.c (read_command_file): Inline command_loop here.
3085         (command_loop): Delete.
3086
3087 2016-04-12  Pedro Alves  <palves@redhat.com>
3088
3089         * top.c: Include "gdb_select.h".
3090         (gdb_readline_no_editing): Wait for input with gdb_select instead
3091         of blocking in fgetc.
3092         (command_line_input): Don't set immediate_quit.
3093
3094 2016-04-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
3095
3096         * value.c (value_next): Make pass-by-reference parameters const-correct.
3097         (value_parent): Likewise.
3098         (value_enclosing_type): Likewise.
3099         (value_lazy): Likewise.
3100         (value_stack): Likewise.
3101         (value_embedded_offset): Likewise.
3102         (value_pointed_to_offset): Likewise.
3103         (value_raw_address): Likewise.
3104         (deprecated_value_modifiable): Likewise.
3105         (value_free_to_mark): Likewise.
3106         (value_release_to_mark): Likewise.
3107         (internalvar_name): Likewise.
3108         (readjust_indirect_value_type): Likewise.
3109         (value_initialized): Likewise.
3110         * value.h (value_next): Likewise.
3111         (value_parent): Likewise.
3112         (value_enclosing_type): Likewise.
3113         (value_lazy): Likewise.
3114         (value_stack): Likewise.
3115         (value_embedded_offset): Likewise.
3116         (value_pointed_to_offset): Likewise.
3117         (value_raw_address): Likewise.
3118         (deprecated_value_modifiable): Likewise.
3119         (value_free_to_mark): Likewise.
3120         (value_release_to_mark): Likewise.
3121         (internalvar_name): Likewise.
3122         (readjust_indirect_value_type): Likewise.
3123         (value_initialized): Likewise.
3124
3125 2016-04-07  Yao Qi  <yao.qi@linaro.org>
3126
3127         * record-full.c (record_full_insert_breakpoint): Return
3128         early if entry on the address is found in
3129         record_full_breakpoints.
3130
3131 2016-04-07  Yao Qi  <yao.qi@linaro.org>
3132
3133         * record-full.c (record_full_insert_breakpoint): Set
3134         bp_tgt->reqstd_address and bp_tgt->placed_size.
3135
3136 2016-04-06  Don Breazeal  <donb@codesourcery.com>
3137
3138         * value.c (value_actual_type): Don't try to get rtti type
3139         of the value if it has been optimized out.
3140         (value_optimized_out): If a memory access error occurs,
3141         just check vaue->optimized_out.
3142
3143 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3144
3145         Revert the previous commit adding unknown_v_replies_ok.
3146
3147 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3148
3149         * remote.c (struct remote_state): New field unknown_v_replies_ok.
3150         (packet_config_support): Read it.
3151         (remote_start_remote): Set it.
3152
3153 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3154
3155         * remote.c: Revert check-in by a mistake in the previous commit.
3156
3157 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3158             Pedro Alves  <palves@redhat.com>
3159
3160         * exec.c (exec_file_locate_attach): Print warning for unsupported
3161         target_pid_to_exec_file.
3162         * symfile-mem.c (add_vsyscall_page): Remove the "file" command
3163         message part.
3164
3165 2016-04-04  Simon Marchi  <simon.marchi@ericsson.com>
3166
3167         * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
3168         trailing spaces.
3169
3170 2016-04-01  Artemiy Volkov  <artemiyv@acm.org>
3171
3172         PR gdb/19820
3173         * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
3174         the type of BINOP_REPEAT's second operand.
3175
3176 2016-03-31  Yichao Yu  <yyc1992@gmail.com>
3177
3178         PR gdb/19858
3179         * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
3180         got the breakpoint at the right address.
3181         (jit_inferior_created): New function.
3182         (_initialize_jit): Install jit_inferior_created as
3183         inferior_created observer.
3184
3185 2016-03-31  Marcin Kościelnicki  <koriakin@0x04.net>
3186
3187         * NEWS: Mention support for tracepoints on powerpc*-linux.
3188
3189 2016-03-31  Catalin Udma  <catalin.udma@freescale.com>
3190
3191         PR python/19743
3192         * python/python.c (execute_gdb_command): Use console uiout
3193         when executing gdb command.
3194         * utils.c (restore_ui_out_closure): New structure.
3195         (do_restore_ui_out): New function.
3196         (make_cleanup_restore_ui_out): Likewise.
3197         * utils.h (make_cleanup_restore_ui_out): Declare.
3198
3199 2016-03-31  Pedro Alves  <palves@redhat.com>
3200
3201         * NEWS: Mention that support for "target m32rsdi", "target mips",
3202         "target pmon", "target ddb", "target rockhopper", and "target lsi"
3203         was removed.
3204         * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
3205         remote-mips.o.
3206         (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
3207         * configure.tgt: Remove all references to remote-m32r-sdi.o and
3208         remote-mips.o.
3209         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
3210         function.
3211         * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
3212         declaration.
3213         * remote-m32r-sdi.c, remote-mips.c: Delete files.
3214         * symfile.c (generic_load, generic_load): Remove comments.
3215
3216 2016-03-30  Yao Qi  <yao.qi@linaro.org>
3217
3218         * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
3219         0 rather than NULL.
3220
3221 2016-03-30  Yao Qi  <yao.qi@linaro.org>
3222
3223         * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
3224         (arm_epilogue_frame_this_id): New function.
3225         (arm_epilogue_frame_prev_register): New function.
3226         (arm_epilogue_frame_sniffer): New function.
3227         (arm_epilogue_frame_unwind): New.
3228         (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
3229
3230 2016-03-30  Yao Qi  <yao.qi@linaro.org>
3231
3232         * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
3233         (arm_stack_frame_destroyed_p_1): ... here.  Don't call
3234         arm_pc_is_thumb.
3235         (arm_stack_frame_destroyed_p): Call
3236         thumb_stack_frame_destroyed_p and
3237         arm_stack_frame_destroyed_p_1.
3238
3239 2016-03-30  Doug Evans  <dje@google.com>
3240
3241         * python/py-utils.c (host_string_to_python_string): New function.
3242         * python/python-internal.h (host_string_to_python_string): Declare it.
3243         * python/py-*.c (*): Update all calls to
3244         PyString_Decode (str, strlen (str), host_charset (), NULL);
3245         to use host_string_to_python_string instead.
3246
3247 2016-03-30  Marcin Kościelnicki  <koriakin@0x04.net>
3248
3249         * remote.c (remote_check_symbols): Allocate own buffer for reply.
3250
3251 2016-03-29  Max Filippov  <jcmvbkbc@gmail.com>
3252
3253         * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
3254         Use safe_read_memory_integer instead of read_memory_integer.
3255
3256 2016-03-29  Marcin Kościelnicki  <koriakin@0x04.net>
3257
3258         * NEWS: Mention support for tracepoints on s390*-linux.
3259
3260 2016-03-29  Don Breazeal  <donb@codesourcery.com>
3261
3262         * gdb/value.c (value_actual_type): Fix formatting issue.
3263
3264 2016-03-23  Yao Qi  <yao.qi@linaro.org>
3265
3266         * gdbarch.sh (software_single_step): Remove comments.
3267         * gdbarch.h: Regenerated.
3268
3269 2016-03-21  Yao Qi  <yao.qi@linaro.org>
3270
3271         * arm-tdep.c (arm_record_media): New.
3272         (arm_record_ld_st_reg_offset): Call arm_record_media.
3273
3274 2016-03-21  Yao Qi  <yao.qi@linaro.org>
3275
3276         * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
3277         more syscalls.
3278
3279 2016-03-18  Yao Qi  <yao.qi@linaro.org>
3280
3281         * sparc-tdep.c (sparc_software_single_step): Make it static.
3282         * sparc-tdep.h (sparc_software_single_step): Remove declaration.
3283
3284 2016-03-18  Yao Qi  <yao.qi@linaro.org>
3285
3286         * spu-tdep.c (spu_software_single_step): Throw error when
3287         target_read_memory fails.
3288
3289 2016-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3290
3291         * linux-thread-db.c (check_pid_namespace_match): Extend the message.
3292
3293 2016-03-17  Pedro Alves  <palves@redhat.com>
3294             Don Breazeal  <donb@codesourcery.com>
3295
3296         PR remote/19496
3297         * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
3298         instead of checking the 'non_stop' global.
3299         * remote.c (remote_add_thread): New parameter 'executing'.  Use it
3300         to set the new thread's executing state.
3301         (remote_notice_new_inferior): Rename parameter 'running' to
3302         'executing'.  Always set the thread state to THREAD_RUNNING in
3303         non-stop mode, and to THREAD_STOPPED in all-stop mode.  Pass
3304         EXECUTING to remote_add_thread and notice_new_inferior.
3305         (remote_update_thread_list): Update to pass executing state, not
3306         running state.
3307
3308 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3309
3310         * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
3311         to 374.
3312         * syscalls/s390x-linux.xml: Likewise.
3313
3314 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3315
3316         * linux-record.c (record_mem_at_reg): New helper function.
3317         (record_linux_system_call): Exploit new helper function where
3318         applicable.
3319
3320 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3321
3322         * linux-record.c: Fix whitespace issues; tabify, remove trailing
3323         spaces.
3324
3325 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3326
3327         * linux-record.c (record_linux_system_call): Add missing return
3328         statements to handling of pipe and pipe2 syscalls.
3329
3330 2016-03-16  Doug Evans  <dje@google.com>
3331
3332         * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
3333
3334 2016-03-16  Yao Qi  <yao.qi@linaro.org>
3335
3336         * arm-linux-tdep.c (arm_linux_init_abi): Fix
3337         arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
3338         arm_linux_record_tdep.arg3.  Set arm_linux_record_tdep.arg4,
3339         arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
3340         arm_linux_record_tdep.arg7.
3341
3342 2016-03-15  Keith Seitz  <keiths@redhat.com>
3343
3344         PR breakpoints/18303
3345         * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
3346         look for "::" instead of simply ":".
3347         (cp_search_static_and_baseclasses): Return null_block_symbol for
3348         malformed input.
3349         Remove assertions.
3350         * cp-support.c (cp_find_first_component_aux): Do not return
3351         a prefix length for ':' unless the next character is also ':'.
3352
3353 2016-03-15  Doug Evans  <dje@google.com>
3354
3355         * features/aarch64-core.xml (cpsr_flags): New flags type.
3356         (cpsr): Use it.
3357         * features/aarch64.c: Regenerate.
3358
3359 2016-03-15  Doug Evans  <dje@google.com>
3360
3361         * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
3362         * features/i386/32bit-sse.xml (i386_eflags): Ditto.
3363         * features/i386/64bit-core.xml (i386_eflags): Ditto.
3364         * features/i386/64bit-sse.xml (i386_eflags): Ditto.
3365         * features/i386/x32-core.xml (i386_eflags): Ditto.
3366
3367 2016-03-15  Doug Evans  <dje@google.com>
3368             Wei-cheng Wang  <cole945@gmail.com>
3369
3370         Extend flags to support multibit and enum bitfields.
3371         * NEWS: Document new features.
3372         * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
3373         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3374         * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
3375         (append_flags_type_field): New function.
3376         (append_flags_type_flag): Call it.
3377         * gdbtypes.h (append_flags_type_field): Declare.
3378         * target-descriptions.c (struct tdesc_type_flag): Delete.
3379         (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
3380         (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
3381         (struct tdesc_type) <u.f>: Delete.
3382         (tdesc_predefined_types): Add "bool".
3383         (tdesc_predefined_type): New function.
3384         (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
3385         Update TDESC_TYPE_FLAGS support.
3386         (tdesc_free_type): Handle TDESC_TYPE_ENUM.  Update TDESC_TYPE_FLAGS.
3387         (tdesc_create_flags): Update.
3388         (tdesc_create_enum): New function.
3389         (tdesc_add_field): Initialize start,end to -1.
3390         (tdesc_add_typed_bitfield): New function.
3391         (tdesc_add_bitfield): Call it.
3392         (tdesc_add_flag): Allow TDESC_TYPE_STRUCT.  Update.
3393         (tdesc_add_enum_value): New function.
3394         (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
3395         TDESC_TYPE_STRUCT.  Handle TDESC_TYPE_ENUM.
3396         * target-descriptions.h (tdesc_create_enum): Declare.
3397         (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
3398         * valprint.c (generic_val_print_enum_1): New function.
3399         (generic_val_print_enum): Call it.
3400         (val_print_type_code_flags): Make static.  Handle multibit bitfields
3401         and enum bitfields.
3402         * valprint.h (val_print_type_code_flags): Delete.
3403         * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
3404         Delete.  All uses removed.
3405         (tdesc_start_enum): New function.
3406         (tdesc_start_field): Handle multibit and enum bitfields.
3407         (tdesc_start_enum_value): New function.
3408         (enum_value_attributes, enum_children, enum_attributes): New static
3409         globals.
3410         (feature_children): Add "enum".
3411         * features/gdb-target.dtd (enum, evalue): New elements.
3412
3413 2016-03-15  Doug Evans  <dje@google.com>
3414
3415         * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
3416         from LONGEST to int.
3417         (struct tdesc_type) <u.f.size>: Ditto.
3418         (tdesc_set_struct_size): Change type of "size" arg from LONGEST
3419         to int.  Add assertion size > 0.
3420         (tdesc_create_flags): Ditto.
3421         * target-descriptions.h (tdesc_set_struct_size): Update.
3422         (tdesc_create_flags): Update.
3423         * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
3424         (MAX_VECTOR_SIZE): New macro.
3425         (tdesc_start_struct): Catch conversion errors from LONGEST to int.
3426         (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
3427
3428 2016-03-15  Doug Evans  <dje@google.com>
3429
3430         * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
3431         TYPE_CODE_FLAGS instead of "field_type", for consistency.
3432         * features/i386/amd64-avx-linux.c: Regenerate.
3433         * features/i386/amd64-avx.c: Regenerate.
3434         * features/i386/amd64-avx512-linux.c: Regenerate.
3435         * features/i386/amd64-avx512.c: Regenerate.
3436         * features/i386/amd64-linux.c: Regenerate.
3437         * features/i386/amd64-mpx-linux.c: Regenerate.
3438         * features/i386/amd64-mpx.c: Regenerate.
3439         * features/i386/amd64.c: Regenerate.
3440         * features/i386/i386-avx-linux.c: Regenerate.
3441         * features/i386/i386-avx.c: Regenerate.
3442         * features/i386/i386-avx512-linux.c: Regenerate.
3443         * features/i386/i386-avx512.c: Regenerate.
3444         * features/i386/i386-linux.c: Regenerate.
3445         * features/i386/i386-mmx-linux.c: Regenerate.
3446         * features/i386/i386-mmx.c: Regenerate.
3447         * features/i386/i386-mpx-linux.c: Regenerate.
3448         * features/i386/i386-mpx.c: Regenerate.
3449         * features/i386/i386.c: Regenerate.
3450         * features/i386/x32-avx-linux.c: Regenerate.
3451         * features/i386/x32-avx.c: Regenerate.
3452         * features/i386/x32-avx512-linux.c: Regenerate.
3453         * features/i386/x32-avx512.c: Regenerate.
3454         * features/i386/x32-linux.c: Regenerate.
3455         * features/i386/x32.c: Regenerate.
3456
3457 2016-03-15  Pedro Alves  <palves@redhat.com>
3458
3459         PR gdb/19676
3460         * linux-thread-db.c (try_thread_db_load_1): Leave
3461         info->td_ta_thr_iter_p NULL iff debugging a live process and we
3462         have /proc access.
3463         (find_new_threads_once): Assert that we have a non-NULL
3464         info->td_ta_thr_iter_p instead of checking whether the target has
3465         execution.
3466
3467 2016-03-15  Pedro Alves  <palves@redhat.com>
3468
3469         PR gdb/19676
3470         * infrun.c (displaced_step_prepare): Also disable displaced
3471         stepping on NOT_SUPPORTED_ERROR.
3472         * linux-tdep.c (linux_displaced_step_location): If reading auxv
3473         fails, throw NOT_SUPPORTED_ERROR instead of generic error.
3474
3475 2016-03-13  Marcin Kościelnicki  <koriakin@0x04.net>
3476
3477         * s390-linux-tdep.c (s390_gen_return_address): New function.
3478         (s390_gdbarch_init): Fill gen_return_address hook.
3479
3480 2016-03-11  Andrew Burgess  <andrew.burgess@embecosm.com>
3481
3482         * symmisc.c (maintenance_info_line_tables): New function.
3483         (maintenance_print_one_line_table): New function.
3484         (_initialize_symmisc): Register 'maint info line-table' command.
3485         * NEWS: Mention new command.
3486
3487 2016-03-11  Marcin Kościelnicki  <koriakin@0x04.net>
3488
3489         * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
3490         (s390_ax_pseudo_register_push_stack): New function.
3491         (s390_gdbarch_init): Fill ax_pseudo_register_collect and
3492         ax_pseudo_register_push_stack hooks.
3493
3494 2016-03-10  Simon Marchi  <simon.marchi@polymtl.ca>
3495
3496         * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
3497         gdb/function/as_string.py.
3498         * python/lib/gdb/function/as_string.py: New file.
3499         * NEWS: Mention the new $_as_string function.
3500
3501 2016-03-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
3502
3503         * target.h: Fix doc string of target_can_use_hardware_watchpoint.
3504
3505 2016-03-09  Pedro Alves  <palves@redhat.com>
3506
3507         * event-top.c (more_to_come): Delete.
3508         (struct readline_input_state): Delete.
3509         (readline_input_state): Delete.
3510         (get_command_line_buffer): New function.
3511         (command_handler): Update comments.  Don't handle NULL commands
3512         here.  Do not execute commented lines.
3513         (command_line_append_input_line): New function.
3514         (handle_line_of_input): New function, partly based on
3515         command_line_handler and command_line_input.
3516         (command_line_handler): Rewrite.
3517         * event-top.h (command_handler): New declaration.
3518         (command_loop): Defer command execution to command_handler.
3519         (command_line_input): Update comments.  Simplify, using struct
3520         buffer and handle_line_of_input.
3521         * top.h (struct buffer): New forward declaration.
3522         (handle_line_of_input): New declaration.
3523
3524 2016-03-09  Pedro Alves  <palves@redhat.com>
3525
3526         * event-top.c (command_line_handler): Use xfree + xstrdup instead
3527         of xrealloc + strcpy.
3528         * main.c (captured_main): Use xstrdup instead of xmalloc plus
3529         manual clear.
3530         * top.c (saved_command_line): Rewrite comment.
3531         (saved_command_line_size): Delete.
3532         (command_line_input): Use xfree + xstrdup instead of xrealloc +
3533         strcpy.
3534         * top.h (saved_command_line_size): Delete declaration.
3535
3536 2016-03-09  Pedro Alves  <palves@redhat.com>
3537
3538         * event-top.c: Include buffer.h.
3539         (gdb_readline_no_editing_callback): Use struct buffer instead
3540         of xrealloc.
3541
3542 2016-03-09  Pedro Alves  <palves@redhat.com>
3543
3544         * common/buffer.h (buffer_grow_char): New function.
3545         * top.c: Include buffer.h.
3546         (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
3547         'prompt'.  Use struct buffer instead of xrealloc.
3548
3549 2016-03-09  Pedro Alves  <palves@redhat.com>
3550
3551         * defs.h (gdb_readline): Delete declaration.
3552         * top.c (gdb_readline): Rename to ...
3553         (gdb_readline_no_editing): ... this, and make static.
3554
3555 2016-03-09  Pedro Alves  <palves@redhat.com>
3556
3557         * utils.c (prompt_for_continue): Update comments.
3558
3559 2016-03-09  Pedro Alves  <palves@redhat.com>
3560
3561         * event-top.c (async_annotation_suffix): Delete.
3562         (top_level_prompt, command_line_handler): Don't use
3563         'async_annotation_suffix' and simplify.
3564         * event-top.h (async_annotation_suffix): Delete declaration.
3565         (init_main): Remove reference to 'async_annotation_suffix'.
3566
3567 2016-03-09  Pedro Alves  <palves@redhat.com>
3568
3569         * event-top.c (gdb_readline2): Rename to ...
3570         (gdb_readline_no_editing_callback): ... this.
3571         (change_line_handler, stdin_event_handler)
3572         (gdb_setup_readline): Adjust.
3573         * event-top.h (gdb_readline2): Rename to ...
3574         (gdb_readline_no_editing_callback): ... this, and move closer to
3575         other readline-related declarations.
3576         * mi/mi-interp.c (mi_interpreter_resume): Adjust.
3577
3578 2016-03-09  Pedro Alves  <palves@redhat.com>
3579
3580         * top.c (window_hook): Delete.
3581         (command_loop): Remove references to window_hook.
3582
3583 2016-03-09  Marcin Kościelnicki  <koriakin@0x04.net>
3584
3585         * corefile.c (safe_read_memory_unsigned_integer): New function.
3586         * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
3587         * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
3588
3589 2016-03-09  Marcin Kościelnicki  <koriakin@0x04.net>
3590
3591         * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
3592         (rs6000_gen_return_address): New function.
3593         (rs6000_gdbarch_init): Wire in the above.
3594
3595 2016-03-09  Marcin Kościelnicki  <koriakin@0x04.net>
3596
3597         * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
3598         (rs6000_gdbarch_init): Wire in the above.
3599
3600 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3601
3602         * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
3603         instructions that do nothing or are conditional traps.
3604
3605 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3606
3607         * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
3608         frame func's PC in info->func before any other failure can occur.
3609         (s390_frame_this_id): Use frame_id_build_unavailable_stack if
3610         info->func has been filled out.
3611
3612 2016-03-09  Pedro Alves  <palves@redhat.com>
3613
3614         * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
3615
3616 2016-03-09  Pedro Alves  <palves@redhat.com>
3617
3618         * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
3619
3620 2016-03-09  Pedro Alves  <palves@redhat.com>
3621
3622         * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
3623         order is BFD_ENDIAN_BIG or if the cris version is unsupported.
3624
3625 2016-03-09  Pedro Alves  <palves@redhat.com>
3626
3627         * doublest.c: Extend comments.
3628         (floatformat_to_doublest, floatformat_from_doublest): Copy the
3629         floatformat's total size, not the host type's size.
3630
3631 2016-03-09  Pedro Alves  <palves@redhat.com>
3632
3633         * doublest.c (floatformat_totalsize_bytes): New function.
3634         (floatformat_from_type): Assert that the type's length is at least
3635         as long as the floatformat's totalsize.
3636         * doublest.h (floatformat_totalsize_bytes): New declaration.
3637         * gdbtypes.c (arch_float_type): Assert that the type's length is
3638         at least as long as the floatformat's totalsize.
3639
3640 2016-03-09  Pedro Alves  <palves@redhat.com>
3641
3642         * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
3643         format to floatformats_ieee_double.
3644
3645 2016-03-07  Pedro Alves  <palves@redhat.com>
3646
3647         * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
3648         before calling bfd_get_flavour.
3649
3650 2016-03-05  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3651
3652         * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
3653         (avr_push_dummy_call): Correct last needed argument register.
3654         Write MSB of argument into register and subsequent bytes into
3655         other registers in decreasing order.
3656
3657 2016-03-04  Yao Qi  <yao.qi@linaro.org>
3658
3659         * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
3660         condition check.  Record the right D register number.
3661
3662 2016-03-04  Yao Qi  <yao.qi@linaro.org>
3663
3664         * arm-tdep.c (arm_record_extension_space): Remove code
3665         printing "Process record does not support".
3666         (arm_record_data_proc_misc_ld_str): Likewise.
3667         (decode_insn): Call arm_record_extension_space if condition
3668         is 0xf.  Call arm_record_unsupported_insn if ret isn't
3669         ARM_RECORD_SUCCESS.  Use 'ret' instead of 'insn_id' to hold
3670         the value of thumb2_record_decode_insn_handler.
3671
3672 2016-03-04  Simon Marchi  <simon.marchi@ericsson.com>
3673
3674         * features/feature_to_c.sh: Print the help when passing no
3675         argument.
3676
3677 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
3678
3679         * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
3680
3681 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
3682
3683         * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
3684
3685 2016-03-01  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3686
3687         * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
3688         exception when attempting to access the inferior's backchain.
3689
3690 2016-02-29  Yao Qi  <yao.qi@linaro.org>
3691
3692         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
3693         eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
3694         Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
3695         for aarch64_sys_epoll_create1.
3696
3697 2016-02-29  Yao Qi  <yao.qi@linaro.org>
3698
3699         * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
3700         <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
3701         <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
3702         * linux-record.c (record_linux_system_call): Handle them.
3703
3704 2016-02-28  Iain Buclaw  <ibuclaw@gdcproject.org>
3705
3706         * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
3707         cyclic imports.
3708
3709 2016-02-26  Keith Seitz  <keiths@redhat.com>
3710
3711         * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
3712         to avoid invalid conversion from void *.
3713
3714 2016-02-26  Yao Qi  <yao.qi@linaro.org>
3715
3716         * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
3717         per bit 8.  Check bit 20 instead of bit 4 for VMOV
3718         instruction.  Record D registers for instructions changing
3719         S registers.  Change of the order of length and address
3720         in record_buf_mem array.
3721
3722 2016-02-26  Yao Qi  <yao.qi@linaro.org>
3723
3724         * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
3725         number of Rd.
3726
3727 2016-02-25  Doug Evans  <dje@google.com>
3728
3729         * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
3730         compiler warning.
3731         (recv_long_data): Ditto.
3732
3733 2016-02-25  Simon Marchi  <simon.marchi@ericsson.com>
3734
3735         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
3736         Initialize variables.
3737
3738 2016-02-25  Antoine Tremblay  <antoine.tremblay@ericsson.com>
3739
3740         * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
3741         (ax_reg_mask): Likewise.
3742
3743 2016-02-24  Pedro Alves  <palves@redhat.com>
3744
3745         * linux-nat.c (save_sigtrap) Delete.
3746         (stop_wait_callback): Call save_stop_reason instead of
3747         save_sigtrap.
3748         (check_stopped_by_breakpoint): Rename to ...
3749         (save_stop_reason): ... this.  Bits of save_sigtrap folded here.
3750         Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
3751         GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.  Factor out
3752         common code between the USE_SIGTRAP_SIGINFO and
3753         !USE_SIGTRAP_SIGINFO blocks.
3754         (linux_nat_filter_event): Call save_stop_reason instead of
3755         save_sigtrap.
3756         * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
3757         si_code for MIPS.
3758         * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table.  Add
3759         comments on MIPS behavior.
3760         (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
3761
3762 2016-02-24  Marcin Kościelnicki  <koriakin@0x04.net>
3763
3764         * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
3765         to avoid spurious warnings.
3766
3767 2016-02-24  Gary Benson  <gbenson@redhat.com>
3768
3769         * exec.c (exec_file_locate_attach): Do not attempt to
3770         locate main executable locally if not found in sysroot.
3771
3772 2016-02-24  Joel Brobecker  <brobecker@adacore.com>
3773
3774         GDB 7.11 released.
3775
3776 2016-02-24  Wei-cheng Wang  <cole945@gmail.com>
3777
3778         * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
3779         unavailable PC/SP to build unavailable frame.
3780
3781 2016-02-23  Doug Evans  <dje@google.com>
3782
3783         Extend "skip" command to support -file, -gfile, -function, -rfunction.
3784         * NEWS: Document new features.
3785         * skip.c: #include "fnmatch.h", "gdb_regex.h".
3786         (skiplist_entry) <file>: Renamed from filename.
3787         <function>: Renamed from function_name.
3788         <file_is_glob, function_is_regexp>: New members.
3789         <compiled_function_regexp, compiled_function_regexp_is_valid>:
3790         New members.
3791         (make_skip_entry): New function.
3792         (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
3793         (make_free_skiplist_entry_cleanup): New function.
3794         (skip_file_command): Update.
3795         (skip_function, skip_function_command): Update.
3796         (compile_skip_regexp): New functions.
3797         (skip_command): Add support for new options.
3798         (skip_info): Update.
3799         (skip_file_p, skip_gfile_p): New functions.
3800         (skip_function_p, skip_rfunction_p): New functions.
3801         (function_name_is_marked_for_skip): Update and simplify.
3802         (_initialize_step_skip): Update.
3803         * symtab.c: #include "fnmatch.h".
3804         (compare_glob_filenames_for_search): New function.
3805         * symtab.h (compare_glob_filenames_for_search): Declare.
3806         * utils.c (count_path_elements): New function.
3807         (strip_leading_path_elements): New function.
3808         * utils.h (count_path_elements): Declare.
3809         (strip_leading_path_elements): Declare.
3810
3811 2016-02-23  Simon Marchi  <simon.marchi@ericsson.com>
3812
3813         * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
3814         (thumb_process_displaced_insn): Likewise.
3815         (arm_process_displaced_insn): Adjust calls.
3816
3817 2016-02-23  Yao Qi  <yao.qi@linaro.org>
3818
3819         * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
3820         Remove.
3821         <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
3822         <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
3823         <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
3824         <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
3825         <aarch64_sys_linkat, aarch64_sys_renameat>: New.
3826         <aarch64_sys_faccessat>: New.
3827         <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
3828         <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
3829         <aarch64_sys_newfstatat>: New.
3830         (UNSUPPORTED_SYSCALL_MAP): New macro.
3831         (aarch64_canonicalize_syscall): Add missing syscalls.
3832
3833 2016-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3834
3835         * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
3836
3837 2016-02-22  Yao Qi  <yao.qi@linaro.org>
3838
3839         * arm-tdep.c: Fix code format issues.
3840
3841 2016-02-21  Iain Buclaw  <ibuclaw@gdcproject.org>
3842
3843         * d-namespace.c (d_lookup_symbol_imports): Remove argument
3844         'search_parents'.  All callers updated.
3845
3846 2016-02-18  Marcin Kościelnicki  <koriakin@0x04.net>
3847
3848         * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
3849         (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
3850
3851 2016-02-18  Walfred Tedeschi  <walfred.tedeschi@intel.com>
3852
3853         * NEWS: Add entry for bound violation.
3854         * amd64-linux-tdep.c (amd64_linux_init_abi_common):
3855         Add handler for segmentation fault.
3856         * gdbarch.sh (handle_segmentation_fault): New.
3857         * gdbarch.c: Regenerate.
3858         * gdbarch.h: Regenerate.
3859         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
3860         (SIG_CODE_BONDARY_FAULT): New define.
3861         (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
3862         * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
3863         * i386-tdep.c (i386_mpx_enabled): Add as external.
3864         * i386-tdep.c (i386_mpx_enabled): Add as external.
3865         * infrun.c (handle_segmentation_fault): New function.
3866         (print_signal_received_reason): Use handle_segmentation_fault.
3867
3868 2016-02-18  Marcin Kościelnicki  <koriakin@0x04.net>
3869
3870         * arch-utils.c (default_guess_tracepoint_registers): New function.
3871         * arch-utils.h (default_guess_tracepoint_registers): New prototype.
3872         * gdbarch.c: Regenerate.
3873         * gdbarch.h: Regenerate.
3874         * gdbarch.sh: Add guess_tracepoint_registers hook.
3875         * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
3876
3877 2016-02-17  Gary Benson  <gbenson@redhat.com>
3878
3879         * exec.c (exec_file_locate_attach): Add missing cleanup.
3880
3881 2016-02-16  Don Breazeal  <donb@codesourcery.com>
3882
3883         PR remote/19496
3884         * remote.c (remove_new_fork_children): Check for pending
3885         fork status in thread_info.suspend.
3886
3887 2016-02-16  Yao Qi  <yao.qi@linaro.org>
3888
3889         * arm-linux-tdep.c (arm_linux_software_single_step): Assign
3890         'old_chain' later.
3891
3892 2016-02-16  Yao Qi  <yao.qi@linaro.org>
3893
3894         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
3895         <syscall_next_pc>: Remove argument PC.  Callers updated.
3896         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
3897         Remove argument PC.  Get pc from regcache_read_pc.
3898         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
3899         argument PC.
3900
3901 2016-02-15  Yao Qi  <yao.qi@linaro.org>
3902
3903         * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
3904
3905 2016-02-12  Yao Qi  <yao.qi@linaro.org>
3906
3907         * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
3908         nextpc according to instruction.
3909
3910 2016-02-12  Yao Qi  <yao.qi@linaro.org>
3911
3912         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
3913         self->ops->fixup if it isn't NULL.
3914         * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
3915         (struct arm_get_next_pcs_ops) <fixup>: New field.
3916         * arch/arm-linux.c: Include common-regcache.h and
3917         arch/arm-get-next-pcs.h.
3918         (arm_linux_get_next_pcs_fixup): New function.
3919         * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
3920         * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
3921         it with arm_linux_get_next_pcs_fixup.
3922         (arm_linux_software_single_step): Move code to
3923         arm_linux_get_next_pcs_fixup.
3924         * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
3925
3926 2016-02-12  Marcin Kościelnicki  <koriakin@0x04.net>
3927
3928         * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
3929         and return NULL.
3930
3931 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
3932
3933         * frame.h (skip_tailcall_frames): Update comment.
3934         * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
3935         if only artificial frames are found.  Update comment.
3936         (frame_unwind_caller_id): Handle NULL return.
3937         (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
3938         skip_artificial_frames does not return NULL.
3939         (frame_pop): Add an error if only tailcall frames are found.
3940         * infcmd.c (finish_command): Move skip_tailcall_frames call into
3941         forward-execution case.  Add an error if only tailcall frames are
3942         found.
3943
3944 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
3945
3946         * stack.c (frame_info): Check frame_unwind_caller_id.
3947
3948 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
3949
3950         * frame.h (skip_tailcall_frames): New.
3951         * frame.c (skip_tailcall_frames): New.
3952         (frame_pop): Call skip_tailcall_frames.
3953         * infcmd.c (finish_command): Call skip_tailcall_frames.
3954
3955 2016-02-11  Pedro Alves  <palves@redhat.com>
3956
3957         * Makefile.in (check-parallel): New rule.
3958
3959 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
3960
3961         * arm-tdep.c (arm_skip_prologue): Remove unused variables.
3962         (arm_analyze_prologue): Likewise.
3963         (arm_scan_prologue): Likewise.
3964         (arm_m_exception_prev_register): Likewise.
3965         (arm_copy_block_xfer): Likewise.
3966         (thumb2_copy_block_xfer): Likewise.
3967         (arm_decode_miscellaneous): Likewise.
3968         (arm_decode_ld_st_word_ubyte): Likewise.
3969         (arm_decode_svc_copro): Likewise.
3970         (thumb2_decode_svc_copro): Likewise.
3971         (thumb_copy_16bit_ldr_literal): Likewise.
3972         (thumb_copy_pop_pc_16bit): Likewise.
3973         (decode_thumb_32bit_ld_mem_hints): Likewise.
3974         (arm_show_force_mode): Likewise.
3975         (_initialize_arm_tdep): Likewise.
3976         (arm_record_strx): Likewise.
3977         (arm_record_extension_space): Likewise.
3978         (arm_record_data_proc_misc_ld_str): Likewise.
3979         (arm_record_exreg_ld_st_insn): Likewise.
3980         (arm_record_vfp_data_proc_insn): Likewise.
3981         (arm_record_coproc_data_proc): Likewise.
3982         (thumb_record_misc): Likewise.
3983         (thumb_record_ldm_stm_swi): Likewise.
3984         (thumb2_record_ld_st_dual_ex_tbb): Likewise.
3985         (thumb2_record_ld_mem_hints): Likewise.
3986         (thumb2_record_lmul_lmla_div): Likewise.
3987         (thumb2_record_asimd_struct_ld_st): Likewise.
3988         (arm_process_record): Likewise.
3989
3990 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
3991
3992         * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
3993         (ARM displaced stepping support): Remove reference to
3994         arm_displaced_step_copy_insn in comment.
3995         * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
3996         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
3997         reference to arm_displaced_step_copy_insn in comment.
3998
3999 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
4000
4001         * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
4002         (thumb_copy_b): Likewise.
4003         (arm_decode_b_bl_ldmstm): Likewise.
4004         (thumb_copy_16bit_ldr_literal): Likewise.
4005         (thumb_copy_pop_pc_16bit): Likewise.
4006
4007 2016-02-11  Antoine Tremblay  <antoine.tremblay@ericsson.com>
4008
4009         * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
4010         than loc->gdbarch.
4011
4012 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
4013
4014         * tracefile-tfile.c (trace_tdesc): New static variable.
4015         (tfile_open): Clear trace_tdesc, call target_find_description.
4016         (tfile_interp_line): Recognize tdesc lines.
4017         (tfile_close): Clear trace_tdesc.
4018         (tfile_xfer_partial_features): New function.
4019         (tfile_xfer_partial): Call tfile_xfer_partial_features.
4020         (tfile_append_tdesc_line): New function.
4021
4022 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
4023
4024         * ctf.c (ctf_write_tdesc): New function.
4025         (ctf_write_ops): Wire in ctf_write_tdesc.
4026         * tracefile-tfile.c (tfile_write_tdesc): New function.
4027         (tfile_write_ops): Wire in tfile_write_tdesc.
4028         * tracefile.c (trace_save): Call write_tdesc method.
4029         * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
4030         * xml-tdesc.c (target_fetch_description_xml): New function.
4031         * xml-tdesc.h: Add target_fetch_description_xml prototype.
4032
4033 2016-02-10  Simon Marchi  <simon.marchi@ericsson.com>
4034
4035         * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
4036         (arm_decode_dp_misc): Likewise.
4037
4038 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
4039
4040         * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
4041         (amd64_init_abi): Fill ax_pseudo_register_collect hook.
4042         * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
4043         misleading comment.
4044         (i386_pseudo_register_write): Ditto.
4045         (i386_ax_pseudo_register_collect): New function.
4046         (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
4047         * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
4048
4049 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
4050
4051         * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
4052         instead of gdb order.
4053
4054 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
4055
4056         * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
4057         check.
4058
4059 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
4060
4061         * NEWS: Create a new section for the next release branch.
4062         Rename the section of the current branch, now that it has
4063         been cut.
4064
4065 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
4066
4067         GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
4068         * version.in: Bump version to 7.11.50.DATE-git.
4069
4070 2016-02-09  Keith Seitz  <keiths@redhat.com>
4071
4072         PR breakpoints/19546
4073         * breakpoint.c (breakpoint_event_location_empty_p): New function.
4074         (update_breakpoints_after_exec, bkpt_re_set): Use this new function
4075         instead of event_location_empty_p.
4076
4077 2016-02-09  Keith Seitz  <keiths@redhat.com>
4078
4079         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
4080         string_to_event_location_basic instead of string_to_event_location.
4081
4082 2016-02-09  Keith Seitz  <keiths@redhat.com>
4083
4084         * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
4085         leading whitespace and use string_to_event_location_basic instead
4086         of new_linespec_location.
4087
4088 2016-02-09  Keith Seitz  <keiths@redhat.com>
4089
4090         PR python/19506
4091         * python/py-breakpoint.c (bppy_init): Use
4092         string_to_event_location_basic instead of new_linespec_location.
4093
4094 2016-02-09  Keith Seitz  <keiths@redhat.com>
4095
4096         * location.c (string_to_explicit_location): Note that "-p" is
4097         reserved for probe locations and return NULL for any input
4098         that starts with that.
4099         (string_to_event_location): Move "legacy" linespec code to ...
4100         (string_to_event_location_basic): ... here.
4101         * location.h (string_to_event_location): Update comment.
4102         (string_to_event_location_basic): New function.
4103
4104 2016-02-09  Simon Marchi  <simon.marchi@ericsson.com>
4105
4106         * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
4107         to AC_OUTPUT.  Remove "exit 0" at the end.
4108         * configure: Regenerate.
4109
4110 2016-02-09  Pedro Alves  <palves@redhat.com>
4111
4112         PR breakpoints/19548
4113         * breakpoint.c (create_overlay_event_breakpoint): Don't update
4114         global location list here.
4115         (create_longjmp_master_breakpoint)
4116         (create_std_terminate_master_breakpoint)
4117         (create_exception_master_breakpoint, create_jit_event_breakpoint)
4118         (update_breakpoint_locations):
4119         (breakpoint_re_set): Update global location list after all
4120         breakpoints are re-set.
4121
4122 2016-02-08  Simon Marchi  <simon.marchi@ericsson.com>
4123
4124         * remote.c (remote_register_number_and_offset): Remove unused
4125         variable(s).
4126         (remote_thread_always_alive): Likewise.
4127         (remote_update_thread_list): Likewise.
4128         (process_initial_stop_replies): Likewise.
4129         (remote_start_remote): Likewise.
4130         (remote_check_symbols): Likewise.
4131         (discard_pending_stop_replies): Likewise.
4132         (process_stop_reply): Likewise.
4133         (putpkt_binary): Likewise.
4134         (getpkt): Likewise.
4135         (remote_add_target_side_condition): Likewise.
4136         (remote_insert_breakpoint): Likewise.
4137         (remote_supports_stopped_by_sw_breakpoint): Likewise.
4138         (remote_supports_stopped_by_hw_breakpoint): Likewise.
4139         (remote_xfer_partial): Likewise.
4140         (remote_read_btrace): Likewise.
4141         (remote_async_serial_handler): Likewise.
4142         (remote_thread_events): Likewise.
4143         (_initialize_remote): Likewise.
4144
4145 2016-02-07  Simon Marchi  <simon.marchi@polymtl.ca>
4146
4147         * varobj.h (varobj_delete): Remove dellist parameter, update and
4148         move documentation here.
4149         * varobj.c (struct cpstack, cppush, cppop): Remove.
4150         (delete_variable): Remove resultp (first) parameter.
4151         (delete_variable_1): Likewise.
4152         (varobj_delete): Remove dellist parameter and unused code.
4153         (update_dynamic_varobj_children): Adjust varobj_delete call.
4154         (update_type_if_necessary): Likewise.
4155         (varobj_set_visualizer): Likewise.
4156         (varobj_update): Likewise.
4157         (value_of_root): Likewise.
4158         (varobj_invalidate_iter): Likewise.
4159         * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
4160
4161 2016-02-04  Yao Qi  <yao.qi@linaro.org>
4162
4163         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
4164         0 before handling 'F' and set it back afterwards.
4165
4166 2016-02-02  Simon Marchi  <simon.marchi@ericsson.com>
4167
4168         * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
4169
4170 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4171
4172         * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
4173         New types.
4174         (compat_siginfo): New bound fields added.
4175         (compat_x32_siginfo): New field added.
4176         (cpt_si_addr_lsb): New define.
4177         (compat_siginfo_from_siginfo): Use nat_siginfo.
4178         (siginfo_from_compat_siginfo): Use nat_siginfo.
4179         (compat_x32_siginfo_from_siginfo): Likewise.
4180         (siginfo_from_compat_x32_siginfo): Likewise.
4181
4182 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4183
4184         * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
4185         structure to the siginfo if extra_fields contains
4186         LINUX_SIGINFO_FIELD_ADDR_BND.
4187
4188 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4189
4190         * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
4191         * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
4192         * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
4193         function.
4194         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
4195         x86_linux_get_siginfo_type for the amd64 abi.
4196         * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
4197         function.
4198         (i386_linux_init_abi): Add new function at the i386 ABI
4199         initialization.
4200
4201 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4202
4203         * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
4204         (linux_siginfo_extra_fields): New enum type.
4205         * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
4206         (linux_get_siginfo_type): Use new function.
4207
4208 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4209
4210         * nat/amd64-linux-siginfo.c: New file.
4211         * nat/amd64-linux-siginfo.h: New file.
4212         * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
4213         (amd64-linux-siginfo.o): New rule.
4214         * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
4215         * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
4216         (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
4217         (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
4218         (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
4219         (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
4220         (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
4221         (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
4222
4223 2016-02-01  Andrew Burgess  <andrew.burgess@embecosm.com>
4224
4225         * value.c (max_value_size): New variable.
4226         (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
4227         (set_max_value_size): New function.
4228         (show_max_value_size): New function.
4229         (check_type_length_before_alloc): New function.
4230         (allocate_value_contents): Call check_type_length_before_alloc.
4231         (set_value_enclosing_type): Likewise.
4232         (_initialize_values): Add set/show handler for max-value-size.
4233         * NEWS: Mention new set/show command.
4234
4235 2016-01-31  Simon Marchi  <simon.marchi@polymtl.ca>
4236
4237         * varobj.h (struct varobj): Fix typos in comments.
4238         (struct lang_varobj_ops): Likewise.
4239         * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
4240         (varobj_create): Move misplaced comment.
4241
4242 2016-01-29  Simon Marchi  <simon.marchi@ericsson.com>
4243
4244         * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
4245         to for include additional lines.
4246         * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
4247
4248 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
4249
4250         * gnulib/import/Makefile.am: Regenerate.
4251         * gnulib/import/Makefile.in: Regenerate.
4252         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4253         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
4254
4255 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
4256
4257         * remote.c (skip_to_semicolon): Remove.
4258         (remote_parse_stop_reply): Use strchrnul instead of
4259         skip_to_semicolon.
4260         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
4261         strchrnul.
4262         * gnulib/aclocal.m4: Regenerate.
4263         * gnulib/config.in: Regenerate.
4264         * gnulib/configure: Regenerate.
4265         * gnulib/import/Makefile.am: Regenerate.
4266         * gnulib/import/Makefile.in: Regenerate.
4267         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4268         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4269         * gnulib/import/m4/rawmemchr.m4: New file.
4270         * gnulib/import/m4/strchrnul.m4: New file.
4271         * gnulib/import/rawmemchr.c: New file.
4272         * gnulib/import/rawmemchr.valgrind: New file.
4273         * gnulib/import/strchrnul.c: New file.
4274         * gnulib/import/strchrnul.valgrind: New file.
4275
4276 2016-01-28  Yao Qi  <yao.qi@linaro.org>
4277
4278         * breakpoint.c (build_target_command_list): Don't call continue
4279         if aexpr is NULL.
4280         (build_target_condition_list): Likewise.
4281
4282 2016-01-27  Kevin Buettner  <kevinb@redhat.com>
4283
4284         * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
4285         bytes as aggregates.
4286
4287 2016-01-27  Joel Brobecker  <brobecker@adacore.com>
4288
4289         * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
4290         Linespec Maintainers.
4291
4292 2016-01-26  Simon Marchi  <simon.marchi@ericsson.com>
4293
4294         * common/common-utils.c (skip_spaces): Fix comment.
4295         (skip_to_space_const): Likewise.
4296
4297 2016-01-25  Yao Qi  <yao.qi@linaro.org>
4298
4299         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
4300         Remove argument pc.  Get pc by regcache_read_pc.  Callers updated.
4301         (arm_deal_with_atomic_sequence_raw): Likewise.
4302         (thumb_get_next_pcs_raw): Likewise.
4303         (arm_get_next_pcs_raw): Likewise.
4304         (arm_get_next_pcs): Remove argument pc.  Callers updated.
4305         * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
4306
4307 2016-01-25  Mark Wielaard  <mjw@redhat.com>
4308
4309         * ada-lang.c (ada_evaluate_subexp): Add proper else block.
4310         * c-typeprint.c (c_type_print_base): Fix misleading indentation of
4311         if statement.
4312         * inflow.c (child_terminal_ours_1): Fix misleading indentation of
4313         statement block by introducing an else.
4314         * linux-record.c (record_linux_sockaddr): Fix misleading indentation
4315         of return statements.
4316         (record_linux_msghdr): Likewise.
4317
4318 2016-01-25  Pedro Alves  <palves@redhat.com>
4319
4320         PR threads/19461
4321         * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
4322         parent/child running states.
4323
4324 2016-01-25  Pedro Alves  <palves@redhat.com>
4325
4326         PR gdb/19494
4327         * linux-nat.c (kill_one_lwp): New, factored out from ...
4328         (kill_callback): ... this.
4329         (kill_wait_callback): New, factored out from ...
4330         (kill_wait_one_lwp): ... this.
4331         (kill_unfollowed_fork_children): New function.
4332         (linux_nat_kill): Use it.
4333
4334 2016-01-22  John Baldwin  <jhb@FreeBSD.org>
4335
4336         * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
4337
4338 2016-01-22  Yao Qi  <yao.qi@linaro.org>
4339
4340         * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
4341         instead of warning.
4342         (store_fpregs, fetch_regs, store_regs): Likewise.
4343         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4344         (fetch_vfp_regs, store_vfp_regs): Likewise.
4345
4346 2016-01-21  Doug Evans  <dje@google.com>
4347
4348         * breakpoint.c (init_breakpoint_sal): Add comment.
4349
4350 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
4351
4352         * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
4353
4354 2016-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4355
4356         * disasm.c (maybe_add_dis_line_entry): Rename to...
4357         (add_dis_line_entry): ...this, and update header comment.
4358         (do_mixed_source_and_assembly): Now use add_dis_line_entry.
4359
4360 2016-01-21  Pedro Alves  <palves@redhat.com>
4361
4362         * Makefile.in (COMPILER_CFLAGS): New.
4363         (CXXFLAGS): Get it from configure.
4364         (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
4365         instead of CFLAGS.
4366         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
4367         COMPILER_CFLAGS.
4368         * configure: Regenerate.
4369
4370 2016-01-21  Joel Brobecker  <brobecker@adacore.com>
4371
4372         * location.h (new_address_location): Add new parameters
4373         "addr_string" and "addr_string_len".
4374         (get_address_string_location): Add declaration.
4375         * location.c (new_address_location): Add new parameters
4376         "addr_string" and "addr_string_len".  If not NULL, store
4377         a copy of the addr_string in the new location as well.
4378         (get_address_string_location): New function.
4379         (string_to_event_location): Update call to new_address_location.
4380         * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
4381         Save the event location in the parser's state before
4382         passing it to convert_address_location_to_sals.
4383         * breakpoint.c (create_thread_event_breakpoint): Update call
4384         to new_address_location.
4385         (init_breakpoint_sal): Get the event location's string, if any,
4386         and use it to update call to new_address_location.
4387         * python/py-finishbreakpoint.c (bpfinishpy_init):
4388         Update call to new_address_location.
4389         * spu-tdep.c (spu_catch_start): Likewise.
4390
4391         * config/djgpp/fnchange.lst: Add entries for
4392         gdb/testsuite/gdb.base/break-fun-addr1.c and
4393         gdb/testsuite/gdb.base/break-fun-addr2.c.
4394
4395 2016-01-21  Yao Qi  <yao.qi@linaro.org>
4396
4397         * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
4398         is_thumb and set it according to CPSR saved on the stack.
4399         (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
4400         arm_linux_sigreturn_next_pc.
4401
4402 2016-01-20  Simon Marchi  <simon.marchi@polymtl.ca>
4403
4404         * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
4405         Fix enumerators sort key function.
4406
4407 2016-01-20  Joel Brobecker  <brobecker@adacore.com>
4408
4409         * printcmd.c (print_scalar_formatted): Move binary operator from
4410         end of line to beginning of next line.  Adjust formatting
4411         accordingly.
4412
4413 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
4414
4415         * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
4416         "len" with sysctl.
4417
4418 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
4419
4420         * fbsd-tdep.c (find_stop_signal): Remove.
4421         (struct fbsd_collect_regset_section_cb) <lwp>: New field.
4422         <stop_signal>: New field.
4423         <abort_iteration>: New field.
4424         (fbsd_collect_regset_section_cb): Use new fields.
4425         (fbsd_collect_thread_registers): New function.
4426         (struct fbsd_corefile_thread_data): New structure.
4427         (fbsd_corefile_thread): New function.
4428         (fbsd_make_corefile_notes): Use new function to dump notes for each
4429         non-exited thread in a process.
4430
4431 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
4432
4433         * configure.ac: Check for support for LWP names on FreeBSD.
4434         * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
4435         [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
4436         (fbsd_fetch_kinfo_proc): Move function earlier.
4437         [PT_LWPINFO] (fbsd_thread_alive): New function.
4438         [PT_LWPINFO] (fbsd_pid_to_str): New function.
4439         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
4440         [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
4441         [PT_LWPINFO] (fbsd_add_threads): New function.
4442         [PT_LWPINFO] (fbsd_update_thread_list): New function.
4443         [PT_LWPINFO] New variable super_resume.
4444         [PT_LWPINFO] (resume_one_thread_cb): New function.
4445         [PT_LWPINFO] (resume_all_threads_cb): New function.
4446         [PT_LWPINFO] (fbsd_resume): New function.
4447         (fbsd_remember_child): Save full ptid instead of plain pid.
4448         (fbsd_is_child_pending): Return ptid of saved child process.
4449         (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
4450         first stop.
4451         [PT_LWP_EVENTS] Handle LWP events.
4452         [TDP_RFPPWAIT] Include LWP in child ptid.
4453         (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
4454         (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
4455         Add threads for existing processes.
4456         (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
4457         "fbsd_thread_alive".
4458         Set "to_pid_to_str" to "fbsd_pid_to_str".
4459         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
4460         "fbsd_thread_name".
4461         [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
4462         Set "to_has_thread_control" to "tc_schedlock".
4463         Set "to_resume" to "fbsd_resume".
4464         (_initialize_fbsd_nat): New function.
4465         * configure: Regenerate.
4466         * config.in: Regenerate.
4467
4468 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
4469
4470         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4471         get_ptrace_pid.
4472         (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
4473         (amd64bsd_dr_get): Use get_ptrace_pid.
4474         (amd64bsd_dr_set): Use get_ptrace_pid.
4475         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
4476         (i386bsd_store_inferior_registers): Use get_ptrace_pid.
4477         (i386bsd_dr_get): Use get_ptrace_pid.
4478         (i386bsd_dr_set): Use get_ptrace_pid.
4479         * inf-ptrace.c (get_ptrace_pid): Export.
4480         * inf-ptrace.h (get_ptrace_pid): Declare.
4481         * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
4482         (ppcfbsd_store_inferior_registers): Use lwp id.
4483
4484 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
4485
4486         * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
4487         (fbsd_core_thread_name): New function.
4488         (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
4489         Add "core_thread_name" gdbarch method.
4490
4491 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
4492
4493         * corelow.c (core_thread_name): New function.
4494         (init_core_ops): Use "core_thread_name" for the "to_thread_name"
4495         target op.
4496         * gdbarch.sh (core_thread_name): New gdbarch callback.
4497         * gdbarch.h: Re-generate.
4498         * gdbarch.c: Re-generate.
4499
4500 2016-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
4501
4502         * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
4503         convert gdb.Value to integer type using int().
4504
4505 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
4506
4507         * configure.ac: Include <sys/types.h when checking for "r_fs" in
4508         "struct reg".
4509         * configure: Regenerate.
4510
4511 2016-01-19  Pedro Alves  <palves@redhat.com>
4512
4513         * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
4514         * break-catch-throw.c (re_set_exception_catchpoint): Pass the
4515         current program space down to linespec decoding and breakpoint
4516         location updating.
4517         * breakpoint.c (parse_breakpoint_sals): Adjust calls to
4518         decode_line_full.
4519         (until_break_command): Adjust calls to decode_line_1.
4520         (base_breakpoint_decode_location, bkpt_decode_location): Add
4521         'search_pspace' parameter.  Pass it along.
4522         (bkpt_probe_create_sals_from_location): Adjust calls to
4523         parse_probes.
4524         (tracepoint_decode_location, tracepoint_probe_decode_location)
4525         (strace_marker_decode_location): Add 'search_pspace' parameter.
4526         Pass it along.
4527         (all_locations_are_pending): Rewrite to take a breakpoint and
4528         program space as arguments instead.
4529         (hoist_existing_locations): New function.
4530         (update_breakpoint_locations): Add 'filter_pspace' parameter.  Use
4531         hoist_existing_locations instead of always removing all locations,
4532         and adjust to all_locations_are_pending change.
4533         (location_to_sals): Add 'search_pspace' parameter.  Pass it along.
4534         Don't disable the breakpoint if there are other locations in
4535         another program space.
4536         (breakpoint_re_set_default): Adjust to pass down the current
4537         program space as filter program space.
4538         (decode_location_default): Add 'search_pspace' parameter and pass
4539         it along.
4540         (prepare_re_set_context): Don't switch program space here.
4541         (breakpoint_re_set): Use save_current_space_and_thread instead of
4542         save_current_program_space.
4543         * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
4544         'search_pspace' parameter.
4545         (update_breakpoint_locations): Add 'filter_pspace' parameter.
4546         * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
4547         decode_line_1.
4548         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
4549         program space as filter program space.
4550         * linespec.c (struct linespec_state) <search_pspace>: New field.
4551         (create_sals_line_offset, convert_explicit_location_to_sals)
4552         (parse_linespec): Pass the search program space down.
4553         (linespec_state_constructor): Add 'search_pspace' parameter.
4554         Store it.
4555         (linespec_parser_new): Add 'search_pspace' parameter and pass it
4556         along.
4557         (linespec_lex_to_end): Adjust.
4558         (decode_line_full, decode_line_1): Add 'search_pspace' parameter
4559         and pass it along.
4560         (decode_line_with_last_displayed): Adjust.
4561         (collect_symtabs_from_filename, symtabs_from_filename): New
4562         'search_pspace' parameter.  Use it.
4563         (find_function_symbols): Pass the search program space down.
4564         * linespec.h (decode_line_1, decode_line_full): Add
4565         'search_pspace' parameter.
4566         * probe.c (parse_probes_in_pspace): New function, factored out
4567         from ...
4568         (parse_probes): ... this.  Add 'search_pspace' parameter and use
4569         it.
4570         * probe.h (parse_probes): Add pspace' parameter.
4571         * python/python.c (gdbpy_decode_line): Adjust.
4572         * tracepoint.c (scope_info): Adjust.
4573
4574 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
4575
4576         * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
4577         instruction support.
4578         (micromips_next_pc): Likewise.
4579         (micromips_scan_prologue): Likewise.
4580         (micromips_deal_with_atomic_sequence): Likewise.
4581         (micromips_stack_frame_destroyed_p): Likewise.
4582         (mips_breakpoint_from_pc): Likewise.
4583
4584 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
4585
4586         * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
4587         unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
4588
4589 2016-01-18  Pedro Alves  <palves@redhat.com>
4590
4591         * NEWS: Mention that GDB now displays the ID and name of the
4592         thread that hit a breakpoint or received a signal.
4593         * break-catch-sig.c (signal_catchpoint_print_it): Use
4594         maybe_print_thread_hit_breakpoint.
4595         * break-catch-syscall.c (print_it_catch_syscall): Likewise.
4596         * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
4597         * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
4598         (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
4599         (print_it_catch_exec, print_it_ranged_breakpoint)
4600         (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
4601         Use maybe_print_thread_hit_breakpoint.
4602         * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
4603         * gdbthread.h (show_thread_that_caused_stop): Declare.
4604         * infrun.c (print_signal_received_reason): Print which thread
4605         received signal.
4606         * thread.c (show_thread_that_caused_stop): New function.
4607
4608 2016-01-18  Gary Benson  <gbenson@redhat.com>
4609
4610         * nat/linux-namespaces.c (do_fork): New function.
4611         (linux_mntns_get_helper): Use the above.
4612
4613 2016-01-17  Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>  (tiny change)
4614
4615         Pushed by Joel Brobecker  <brobecker@adacore.com>.
4616         PR gdb/19208
4617         * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
4618         if the function has no name.
4619
4620 2016-01-15  Sandra Loosemore  <sandra@codesourcery.com>
4621
4622         * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
4623         Conditionalize for Windows host.
4624         (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
4625         (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
4626         (phony_iconv_open): Handle both UTF-32 endiannesses.
4627         (phony_iconv): Likewise.  Check for output overflow and clean up
4628         out-of-input cases.  Correct adjustment to input buffer pointer.
4629         (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
4630         phony_iconv_open.
4631
4632 2016-01-15  Pedro Alves  <palves@redhat.com>
4633
4634         * NEWS: Mention star wildcard ranges.
4635         * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
4636         (number_range_setup_range): New function.
4637         * cli/cli-utils.h (number_range_setup_range): New declaration.
4638         * thread.c (thread_apply_command): Support star TID ranges.
4639         * tid-parse.c (tid_range_parser_finished)
4640         (tid_range_parser_string, tid_range_parser_skip)
4641         (get_tid_or_range, get_tid_or_range): Handle
4642         TID_RANGE_STATE_STAR_RANGE.
4643         (tid_range_parser_star_range): New function.
4644         * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
4645         New value.
4646         (tid_range_parser_star_range): New declaration.
4647
4648 2016-01-15  Pedro Alves  <palves@redhat.com>
4649
4650         * thread.c (thread_apply_command): Use the tid range parser to
4651         advance past the thread ID list.
4652         * tid-parse.c (get_positive_number_trailer): New function.
4653         (parse_thread_id): Use it.
4654         (get_tid_or_range): Use it.  Return 0 instead of throwing invalid
4655         thread ID error.
4656         (get_tid_or_range): Detect negative values.  Return 0 instead of
4657         throwing invalid thread ID error.
4658
4659 2016-01-14  Yao Qi  <yao.qi@linaro.org>
4660
4661         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
4662         Declare.
4663         (arm_linux_get_next_pcs_ops): Install
4664         arm_linux_get_next_pcs_syscall_next_pc.
4665         (arm_linux_syscall_next_pc): Change to ...
4666         (arm_linux_get_next_pcs_syscall_next_pc): ... it.
4667         (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
4668         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
4669         (arm_get_next_pcs_syscall_next_pc): Make it static.  Don't
4670         call tdep->syscall_next_pc.
4671         * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
4672         (arm_get_next_pcs_syscall_next_pc): Remove.
4673
4674 2016-01-14  Yao Qi  <yao.qi@linaro.org>
4675
4676         * remote.c (remote_set_syscall_catchpoint): Cast to char *.
4677         * thread.c (do_captured_thread_select): Cast to const char *.
4678
4679 2016-01-14  Yao Qi  <yao.qi@linaro.org>
4680
4681         * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
4682         argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
4683         (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
4684         instead.
4685         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
4686         <arm_thumb2_breakpoint>: Remove.
4687         <has_thumb2_breakpoint>: New field.
4688         (arm_get_next_pcs_ctor): Update declaration.
4689         * arm-linux-tdep.c (arm_linux_software_single_step): Pass
4690         1 to arm_get_next_pcs_ctor.
4691         * arm-tdep.c (arm_software_single_step): Pass 0 to
4692         arm_get_next_pcs_ctor.
4693
4694 2016-01-13  Ulrich Weigand  <uweigand@de.ibm.com>
4695
4696         * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
4697
4698 2016-01-13  Yao Qi  <yao.qi@linaro.org>
4699
4700         * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
4701         byte_order_for_code to read instruction.
4702
4703 2016-01-13  Pedro Alves  <palves@redhat.com>
4704
4705         * NEWS: Mention $_gthread.
4706         * gdbthread.h (struct thread_info) <global_num>: Mention
4707         $_gthread.
4708         * thread.c (thread_num_make_value_helper): New function.
4709         (thread_id_make_value): Delete.
4710         (thread_id_per_inf_num_make_value, global_thread_id_make_value):
4711         New.
4712         (thread_funcs): Adjust.
4713         (gthread_funcs): New.
4714         (_initialize_thread): Register $_gthread variable.
4715
4716 2016-01-13  Pedro Alves  <palves@redhat.com>
4717
4718         * NEWS: Mention "info threads -gid".
4719         * gdbthread.h (struct thread_info) <global_num>: Mention "info
4720         threads -gid".
4721         * thread.c (info_threads_command): Handle "-gid".
4722         (_initialize_thread): Adjust "info threads" help string to mention
4723         -gid.
4724
4725 2016-01-13  Pedro Alves  <palves@redhat.com>
4726
4727         * NEWS: Mention InferiorThread.global_num.
4728         * python/py-infthread.c (thpy_get_global_num): New function.
4729         (thread_object_getset): Register "global_num".
4730
4731 2016-01-13  Pedro Alves  <palves@redhat.com>
4732
4733         * NEWS: Mention that thread IDs are now per inferior and global
4734         thread IDs.
4735         * Makefile.in (SFILES): Add tid-parse.c.
4736         (COMMON_OBS): Add tid-parse.o.
4737         (HFILES_NO_SRCDIR): Add tid-parse.h.
4738         * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
4739         * breakpoint.c (insert_breakpoint_locations)
4740         (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
4741         (print_one_breakpoint_location, set_longjmp_breakpoint)
4742         (check_longjmp_breakpoint_for_call_dummy)
4743         (set_momentary_breakpoint): Adjust to use global IDs.
4744         (find_condition_and_thread, watch_command_1): Use parse_thread_id.
4745         (until_break_command, longjmp_bkpt_dtor)
4746         (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
4747         to use global IDs.
4748         * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
4749         ptid_to_global_thread_id.
4750         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
4751         * gdbthread.h (struct thread_info): Rename field 'num' to
4752         'global_num.  Add new fields 'per_inf_num' and 'inf'.
4753         (thread_id_to_pid): Rename thread_id_to_pid to
4754         global_thread_id_to_ptid.
4755         (pid_to_thread_id): Rename to ...
4756         (ptid_to_global_thread_id): ... this.
4757         (valid_thread_id): Rename to ...
4758         (valid_global_thread_id): ... this.
4759         (find_thread_id): Rename to ...
4760         (find_thread_global_id): ... this.
4761         (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
4762         (print_thread_info): Add comment.
4763         * tid-parse.h: New file.
4764         * tid-parse.c: New file.
4765         * infcmd.c (step_command_fsm_prepare)
4766         (step_command_fsm_should_stop): Adjust to use the global thread
4767         ID.
4768         (until_next_command, until_next_command)
4769         (finish_command_fsm_should_stop): Adjust to use the global thread
4770         ID.
4771         (attach_post_wait): Adjust to check the inferior number too.
4772         * inferior.h (struct inferior) <highest_thread_num>: New field.
4773         * infrun.c (handle_signal_stop)
4774         (insert_exception_resume_breakpoint)
4775         (insert_exception_resume_from_probe): Adjust to use the global
4776         thread ID.
4777         * record-btrace.c (record_btrace_open): Use global thread IDs.
4778         * remote.c (process_initial_stop_replies): Also consider the
4779         inferior number.
4780         * target.c (target_pre_inferior): Clear the inferior's highest
4781         thread num.
4782         * thread.c (clear_thread_inferior_resources): Adjust to use the
4783         global thread ID.
4784         (new_thread): New inferior parameter.  Adjust to use it.  Set both
4785         the thread's global ID and the thread's per-inferior ID.
4786         (add_thread_silent): Adjust.
4787         (find_thread_global_id): New.
4788         (find_thread_id): Make static.  Adjust to rename.
4789         (valid_thread_id): Rename to ...
4790         (valid_global_thread_id): ... this.
4791         (pid_to_thread_id): Rename to ...
4792         (ptid_to_global_thread_id): ... this.
4793         (thread_id_to_pid): Rename to ...
4794         (global_thread_id_to_ptid): ... this.  Adjust.
4795         (first_thread_of_process): Adjust.
4796         (do_captured_list_thread_ids): Adjust to use global thread IDs.
4797         (should_print_thread): New function.
4798         (print_thread_info): Rename to ...
4799         (print_thread_info_1): ... this, and add new show_global_ids
4800         parameter.  Handle it.  Iterate over inferiors.
4801         (print_thread_info): Reimplement as wrapper around
4802         print_thread_info_1.
4803         (show_inferior_qualified_tids): New function.
4804         (print_thread_id): Use it.
4805         (tp_array_compar): Compare inferior numbers too.
4806         (thread_apply_command): Use tid_range_parser.
4807         (do_captured_thread_select): Use parse_thread_id.
4808         (thread_id_make_value): Adjust.
4809         (_initialize_thread): Adjust "info threads" help string.
4810         * varobj.c (struct varobj_root): Update comment.
4811         (varobj_create): Adjust to use global thread IDs.
4812         (value_of_root_1): Adjust to use global_thread_id_to_ptid.
4813         * windows-tdep.c (display_tib): No longer accept an argument.
4814         * cli/cli-utils.c (get_number_trailer): Make extern.
4815         * cli/cli-utils.h (get_number_trailer): Declare.
4816         (get_number_const): Adjust documentation.
4817         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
4818         thread IDs.
4819         * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
4820         (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
4821         * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
4822         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
4823         Likewise.
4824         * python/py-breakpoint.c (bppy_set_thread): Likewise.
4825         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4826         * python/py-infthread.c (thpy_get_num): Add comment and return the
4827         per-inferior thread ID.
4828         (thread_object_getset): Update comment of "num".
4829
4830 2016-01-13  Pedro Alves  <palves@redhat.com>
4831
4832         * breakpoint.c (remove_threaded_breakpoints)
4833         (print_one_breakpoint_location): Use print_thread_id.
4834         * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
4835         (btrace_fetch, btrace_clear): Use print_thread_id.
4836         * common/print-utils.c (CELLSIZE): Delete.
4837         (get_cell): Rename to ...
4838         (get_print_cell): ... this and made extern.  Adjust call callers.
4839         Adjust to use PRINT_CELL_SIZE.
4840         * common/print-utils.h (get_print_cell): Declare.
4841         (PRINT_CELL_SIZE): New.
4842         * gdbthread.h (print_thread_id): Declare.
4843         * infcmd.c (signal_command): Use print_thread_id.
4844         * inferior.c (print_inferior): Use print_thread_id.
4845         * infrun.c (handle_signal_stop)
4846         (insert_exception_resume_breakpoint)
4847         (insert_exception_resume_from_probe)
4848         (print_signal_received_reason): Use print_thread_id.
4849         * record-btrace.c (record_btrace_info)
4850         (record_btrace_resume_thread, record_btrace_cancel_resume)
4851         (record_btrace_step_thread, record_btrace_wait): Use
4852         print_thread_id.
4853         * thread.c (thread_apply_all_command): Use print_thread_id.
4854         (print_thread_id): New function.
4855         (thread_apply_command): Use print_thread_id.
4856         (thread_command, thread_find_command, do_captured_thread_select):
4857         Use print_thread_id.
4858
4859 2016-01-13  Pedro Alves  <palves@redhat.com>
4860
4861         * NEWS: Mention InferiorThread.inferior.
4862         * python/py-infthread.c (thpy_get_inferior): New.
4863         (thread_object_getset): Register "inferior".
4864
4865 2016-01-13  Pedro Alves  <palves@redhat.com>
4866
4867         * NEWS: Mention $_inferior.
4868         * inferior.c (inferior_id_make_value): New.
4869         (inferior_funcs): New.
4870         (_initialize_inferior): Create $_inferior variable.
4871
4872 2016-01-13  Pedro Alves  <palves@redhat.com>
4873
4874         PR breakpoints/19388
4875         * frame.c (get_current_frame): Use validate_registers_access.
4876         * gdbthread.h (validate_registers_access): Declare.
4877         * infrun.c (validate_siginfo_access): Delete.
4878         (siginfo_value_read, siginfo_value_write): Use
4879         validate_registers_access.
4880         * thread.c (validate_registers_access): New function.
4881
4882 2016-01-12  Josh Stone  <jistone@redhat.com>
4883             Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4884
4885         * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
4886         syscall_entry and syscall_return stop reasons.  Mention GDB
4887         support for remote catch syscall.
4888         * remote.c (PACKET_QCatchSyscalls): New enum.
4889         (remote_set_syscall_catchpoint): New function.
4890         (remote_protocol_features): New element for QCatchSyscalls.
4891         (remote_parse_stop_reply): Parse syscall_entry/return stops.
4892         (init_remote_ops): Install remote_set_syscall_catchpoint.
4893         (_initialize_remote): Config QCatchSyscalls.
4894         * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
4895
4896 2016-01-12  Yao Qi  <yao.qi@linaro.org>
4897
4898         * nat/linux-ptrace.c (linux_child_function): Cast child_stack
4899         to gdb_byte * and pass to linux_fork_to_function.
4900
4901 2016-01-12  Yao Qi  <yao.qi@linaro.org>
4902
4903         * nat/linux-ptrace.c (linux_fork_to_function): Change type
4904         of argument 'function'.
4905         (linux_grandchild_function): Change return type to 'int'.
4906         Change child_stack's type to 'void *'.
4907         (linux_child_function): Likewise.
4908
4909 2016-01-12  Pedro Alves  <palves@redhat.com>
4910
4911         Remove use of the registered trademark symbol throughout.
4912
4913 2016-01-12  Thomas Schwinge  <thomas@codesourcery.com>
4914
4915         * reply_mig_hack.awk: Rewrite one regular expression.
4916
4917 2016-01-11  Mike Frysinger  <vapier@gentoo.org>
4918
4919         * acinclude.m4: Include new warning.m4 file.
4920         * configure: Regenerated.
4921         * configure.ac: Move all warning logic ...
4922         * warning.m4: ... here.
4923
4924 2016-01-08  Yao Qi  <yao.qi@linaro.org>
4925
4926         * extension.c: Include target.h.
4927         (set_active_ext_lang): Only call install_gdb_sigint_handler,
4928         check_quit_flag, and set_quit_flag if target_terminal_is_ours
4929         returns false.
4930         (restore_active_ext_lang): Likewise.
4931         * target.c (target_terminal_is_ours): New function.
4932         * target.h (target_terminal_is_ours): Declare.
4933
4934 2016-01-07  Maciej W. Rozycki  <macro@imgtec.com>
4935
4936         * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
4937         to `err' in the little-endian leg.
4938
4939 2016-01-06  Yao Qi  <yao.qi@linaro.org>
4940
4941         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
4942         lines below.
4943         (thumb_get_next_pcs_raw): Make it static.
4944         (arm_get_next_pcs_raw): Likewise.
4945         * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
4946         declaration.
4947         (arm_get_next_pcs_raw): Likewise.
4948
4949 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
4950
4951         * version.in: Change cvs to git.
4952
4953 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
4954
4955         * configure.tgt (score-*-*): Delete gdb_sim assignment.
4956
4957 2016-01-05  Pedro Alves  <palves@redhat.com>
4958
4959         PR sim/13418
4960         * configure.ac: Define WITH_PPC_SIM when linking in the sim and
4961         the target is powerpc*.
4962         * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
4963         of WITH_SIM.
4964         * configure: Regenerate.
4965         * config.in: Regenerate.
4966
4967 2016-01-04  Markus Metzger  <markus.t.metzger@intel.com>
4968
4969         * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
4970
4971 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
4972
4973         * configure.tgt (powerpc*-*-*): Delete test call and
4974         always assign gdb_sim.
4975
4976 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
4977
4978         Update year range in copyright notice of all files.
4979
4980 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
4981
4982         * top.c (print_gdb_version): Change copyright year in version
4983         message.
4984
4985 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
4986
4987         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
4988
4989 For older changes see ChangeLog-2015.
4990 \f
4991 Local Variables:
4992 mode: change-log
4993 left-margin: 8
4994 fill-column: 74
4995 version-control: never
4996 coding: utf-8
4997 End: