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