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