Determine the kind of single step breakpoint
[external/binutils.git] / gdb / ChangeLog
1 2016-11-03  Yao Qi  <yao.qi@linaro.org>
2
3         * arch-utils.c (default_breakpoint_kind_from_current_state):
4         New function.
5         * arch-utils.h (default_breakpoint_kind_from_current_state):
6         Declare.
7         * arm-tdep.c (arm_breakpoint_kind_from_current_state): New
8         function.
9         (arm_gdbarch_init): Call
10         set_gdbarch_breakpoint_kind_from_current_state.
11         * breakpoint.c (breakpoint_kind): Call
12         gdbarch_breakpoint_kind_from_current_state for single step
13         breakpoint.  Update comments.
14         * gdbarch.sh (breakpoint_kind_from_current_state): New.
15         * gdbarch.c, gdbarch.h: Regenerate.
16
17 2016-11-03  Yao Qi  <yao.qi@linaro.org>
18
19         * arch-utils.c (default_breakpoint_from_pc): New function.
20         * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): Remove.
21         (GDBARCH_BREAKPOINT_MANIPULATION): Don't use
22         GDBARCH_BREAKPOINT_FROM_PC.
23         (SET_GDBARCH_BREAKPOINT_MANIPULATION): Don't call
24         set_gdbarch_breakpoint_from_pc.
25         (default_breakpoint_from_pc): Remove declaration.
26         * gdbarch.sh (breakpoint_from_pc): Add its default implementation.
27         * gdbarch.c, gdbarch.h: Regenerate.
28         * arm-tdep.c: Don't use GDBARCH_BREAKPOINT_FROM_PC.
29         * arc-tdep.c, bfin-tdep.c, cris-tdep.c, iq2000-tdep.c: Likewise.
30         * m32r-tdep.c, mips-tdep.c, mt-tdep.c: Likewise.
31         * nios2-tdep.c, score-tdep.c, sh-tdep.c: Likewise.
32         * sh64-tdep.c, tic6x-tdep.c, v850-tdep.c, xtensa-tdep.c: Likewise.
33
34 2016-11-03  Yao Qi  <yao.qi@linaro.org>
35
36         * arch-utils.c (default_remote_breakpoint_from_pc): Remove.
37         * arch-utils.h (default_remote_breakpoint_from_pc): Remove.
38         * arm-tdep.c (arm_remote_breakpoint_from_pc): Remove.
39         (arm_gdbarch_init): Don't call
40         set_gdbarch_remote_breakpoint_from_pc.
41         * gdbarch.sh (remote_breakpoint_from_pc): Remove.
42         * gdbarch.c, gdbarch.h: Regenerate.
43         * mips-tdep.c (mips_remote_breakpoint_from_pc): Remove.
44         (mips_gdbarch_init): Don't call
45         set_gdbarch_remote_breakpoint_from_pc.
46
47 2016-11-03  Yao Qi  <yao.qi@linaro.org>
48
49         * breakpoint.h (struct bp_target_info) <placed_size>: Remove.
50         <kind>: New field.
51         Update all users.
52
53 2016-11-03  Yao Qi  <yao.qi@linaro.org>
54
55         * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Define
56         breakpoint_kind_from_pc and sw_breakpoint_from_kind.
57         (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): Likewise.
58         (SET_GDBARCH_BREAKPOINT_MANIPULATION): Call
59         set_gdbarch_breakpoint_kind_from_pc and
60         set_gdbarch_sw_breakpoint_from_kind.
61         * arm-tdep.c: Add comments.
62         * bfin-tdep.c: Likewise.
63         * breakpoint.c (breakpoint_kind): New function.
64         (insert_bp_location): Set target_info.placed_size and
65         target_info.placed_address.
66         (bkpt_insert_location): Likewise.
67         * cris-tdep.c: Add comments.
68         * gdbarch.sh (breakpoint_kind_from_pc): New.
69         (sw_breakpoint_from_kind): New.
70         * gdbarch.c, gdbarch.h: Regenerated.
71         * ia64-tdep.c (ia64_memory_insert_breakpoint): Don't set
72         bp_tgt->placed_size.
73         (ia64_memory_remove_breakpoint): Don't assert
74         bp_tgt->placed_size.
75         (ia64_breakpoint_kind_from_pc): New function.
76         (ia64_gdbarch_init): Install ia64_breakpoint_kind_from_pc.
77         * m32r-tdep.c (m32r_memory_insert_breakpoint): Don't set
78         bp_tgt->placed_size.
79         * mem-break.c (default_memory_insert_breakpoint): Don't set
80         bp_tgt->placed_size.  Call gdbarch_sw_breakpoint_from_kind.
81         (default_memory_remove_breakpoint): Call
82         gdbarch_sw_breakpoint_from_kind.
83         (memory_validate_breakpoint): Don't check bp_tgt->placed_size.
84         * mips-tdep.c: Add comments.
85         * mt-tdep.c: Likewise.
86         * nios2-tdep.c: Likewise.
87         * record-full.c (record_full_insert_breakpoint): Don't call
88         gdbarch_breakpoint_from_pc.  Don't set bp_tgt->placed_address
89         and bp_tgt->placed_size.
90         * remote.c (remote_insert_breakpoint): Don't call
91         gdbarch_remote_breakpoint_from_pc.  Use bp_tgt->placed_size.
92         Don't set bp_tgt->placed_address and bp_tgt->placed_size.
93         (remote_insert_hw_breakpoint): Likewise.
94         * score-tdep.c: Likewise.
95         * sh-tdep.c: Likewise.
96         * tic6x-tdep.c: Likewise.
97         * v850-tdep.c: Likewise.
98         * xtensa-tdep.c: Likewise.
99
100 2016-11-03  Yao Qi  <yao.qi@linaro.org>
101
102         * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): New macro.
103         (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): New macro.
104         * arm-tdep.c (arm_breakpoint_from_pc): Remove.
105         (arm_breakpoint_kind_from_pc): New function.
106         (arm_sw_breakpoint_from_kind): New function.
107         (arm_breakpoint_from_pc): Call arm_breakpoint_kind_from_pc
108         and arm_sw_breakpoint_from_kind.
109         Use GDBARCH_BREAKPOINT_FROM_PC.
110         (arm_remote_breakpoint_from_pc): Call
111         arm_breakpoint_kind_from_pc.
112         (arm_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
113         with SET_GDBARCH_BREAKPOINT_MANIPULATION.
114         * arc-tdep.c: Likewise.
115         * bfin-tdep.c: Likewise.
116         * cris-tdep.c: Likewise.
117         * iq2000-tdep.c: Likewise.
118         * m32r-tdep.c: Likewise.
119         * mips-tdep.c: Likewise.
120         * mt-tdep.c: Likewise.
121         * nios2-tdep.c: Likewise.
122         * rs6000-tdep.c: Likewise.
123         * score-tdep.c: Likewise.
124         * sh-tdep.c: Likewise.
125         * sh64-tdep.c: Likewise.
126         * tic6x-tdep.c: Likewise.
127         * v850-tdep.c: Likewise.
128         * xtensa-tdep.c: Likewise.
129
130 2016-11-03  Yao Qi  <yao.qi@linaro.org>
131
132         * mips-tdep.c (mips_breakpoint_kind): New enum.
133         (mips_breakpoint_from_pc): Use it.
134         (mips_remote_breakpoint_from_pc): Likewise.
135
136 2016-11-03  Yao Qi  <yao.qi@linaro.org>
137
138         * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): New macro.
139         (SET_GDBARCH_BREAKPOINT_MANIPULATION): New macro.
140         aarch64-tdep.c (aarch64_breakpoint_from_pc): Remove.  Use
141         GDBARCH_BREAKPOINT_MANIPULATION.
142         (aarch64_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
143         with SET_GDBARCH_BREAKPOINT_MANIPULATION.
144         * alpha-tdep.c: Likewise.
145         * avr-tdep.c: Likewise.
146         * frv-tdep.c: Likewise.
147         * ft32-tdep.c: Likewise.
148         * h8300-tdep.c: Likewise.
149         * hppa-tdep.c: Likewise.
150         * i386-tdep.c: Likewise.
151         * lm32-tdep.c: Likewise.
152         * m32c-tdep.c: Likewise.
153         * m68hc11-tdep.c: Likewise.
154         * m68k-tdep.c: Likewise.
155         * m88k-tdep.c: Likewise.
156         * mep-tdep.c: Likewise.
157         * microblaze-tdep.c: Likewise.
158         * mn10300-tdep.c: Likewise.
159         * moxie-tdep.c: Likewise.
160         * msp430-tdep.c: Likewise.
161         * rl78-tdep.c: Likewise.
162         * rx-tdep.c: Likewise.
163         * s390-linux-tdep.c: Likewise.
164         * sparc-tdep.c: Likewise.
165         * spu-tdep.c: Likewise.
166         * tilegx-tdep.c: Likewise.
167         * vax-tdep.c: Likewise.
168         * xstormy16-tdep.c: Likewise.
169
170 2016-11-03  Yao Qi  <yao.qi@linaro.org>
171
172         * mem-break.c (default_memory_insert_breakpoint): Don't check
173         'bp' against NULL.
174         * microblaze-linux-tdep.c (microblaze_linux_memory_remove_breakpoint):
175         Likewise.
176         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
177
178 2016-11-02  Tom Tromey  <tom@tromey.com>
179
180         * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type): Rename
181         from impl_get_base_type.  Rewrite.
182         (struct dwarf_expr_baton): Remove.
183         (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value): Save and
184         restore more fields.
185         (symbol_needs_eval_context::get_frame_pc): New method.
186         * dwarf2expr.h (dwarf_expr_context::get_base_type): Now public,
187         virtual.
188         (dwarf_expr_context::impl_get_base_type): Remove.
189         * dwarf2expr.c (dwarf_expr_context::get_base_type): Remove.
190
191 2016-10-31  Maciej W. Rozycki  <macro@imgtec.com>
192
193         * configure.ac <mips-sgi-irix5*>: Remove <sys/proc.h> _KMEMUSER
194         workaround.
195         * configure: Regenerate.
196         * config.in: Regenerate.
197
198 2016-10-31  Maciej W. Rozycki  <macro@imgtec.com>
199
200         * mips-tdep.c (mips_r3041_reg_names): Remove.
201         (mips_breakpoint_from_pc): Remove IDT and PMON breakpoint
202         encodings.
203
204 2016-10-31  Maciej W. Rozycki  <macro@imgtec.com>
205
206         * defs.h (gdb_osabi): Remove GDB_OSABI_IRIX enum value.
207         * osabi.c (gdb_osabi_names): Remove "Irix" entry.
208         * mips-tdep.c (mips_irix_reg_names): Remove.
209         (mips_register_type): Remove GDB_OSABI_IRIX code.
210         (mips_pseudo_register_type): Likewise.
211         (mips_breakpoint_from_pc): Likewise.
212         (mips_gdbarch_init): Likewise.
213
214 2016-10-29  Pedro Alves  <palves@redhat.com>
215
216         * NEWS: Clarify C++ requirement.
217
218 2016-10-29  Pedro Alves  <palves@redhat.com>
219
220         * NEWS: Adjust to mention C++11 requirement.
221
222 2016-10-29  Eli Zaretskii  <eliz@gnu.org>
223
224         * NEWS: Mention support for redirection on MS-Windows.
225
226         * windows-nat.c (redir_open, redir_set_redirection)
227         (redirect_inferior_handles) [!__CYGWIN__]: New functions.
228         (windows_create_inferior) [!__CYGWIN__]: Use
229         'redirect_inferior_handles' to redirect standard handles of the
230         debuggee if the command line requests that.
231
232 2016-10-28  Pedro Alves  <palves@redhat.com>
233
234         * Makefile.in (CXX_DIALECT): Get from configure.
235         (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
236         (FLAGS_TO_PASS): Pass CXX_DIALECT.
237         * acinclude.m4: Include ax_cxx_compile_stdcxx.m4.
238         * ax_cxx_compile_stdcxx.m4: Add FSF copyright header.  Set and
239         AC_SUBST CXX_DIALECT instead of changing CXX/CXXCPP.
240         * configure.ac: Call AX_CXX_COMPILE_STDCXX.
241         * config.in: Regenerate.
242         * configure: Regenerate.
243
244 2016-10-28  Pedro Alves  <palves@redhat.com>
245
246         * ax_cxx_compile_stdcxx.m4: New file.
247
248 2016-10-28  Pedro Alves  <palves@redhat.com>
249
250         * maint.c (scoped_command_stats::scoped_command_stats): Clear
251         m_space_enabled, m_time_enabled and m_symtab_enabled.
252
253 2016-10-28  Markus Metzger  <markus.t.metzger@intel.com>
254
255         * btrace.c (bfun_s): New typedef.
256         (ftrace_update_caller): Print caller in debug dump.
257         (ftrace_get_caller, ftrace_match_backtrace, ftrace_fixup_level)
258         (ftrace_compute_global_level_offset, ftrace_connect_bfun)
259         (ftrace_connect_backtrace, ftrace_bridge_gap, btrace_bridge_gaps): New.
260         (btrace_compute_ftrace_bts): Pass vector of gaps.  Collect gaps.
261         (btrace_compute_ftrace_pt): Likewise.
262         (btrace_compute_ftrace): Split into this, ...
263         (btrace_compute_ftrace_1): ... this, and ...
264         (btrace_finalize_ftrace): ... this.  Call btrace_bridge_gaps.
265
266 2016-10-28  Markus Metzger  <markus.t.metzger@intel.com>
267
268         * btrace.c (ftrace_new_return): Start from the previous function's
269         level if we can't find a matching call for a return.
270
271 2016-10-28  Markus Metzger  <markus.t.metzger@intel.com>
272
273         * btrace.c (ftrace_update_function): Update tail call heuristic.
274
275 2016-10-28  Markus Metzger  <markus.t.metzger@intel.com>
276
277         * btrace.c (btrace_compute_ftrace_bts, ftrace_add_pt): Allow
278         leading gaps.
279         * record-btrace.c (record_btrace_single_step_forward)
280         (record_btrace_single_step_backward): Jump back to last
281         instruction if step ends at a gap.
282         (record_btrace_goto_begin): Skip gaps.
283
284 2016-10-28  Markus Metzger  <markus.t.metzger@intel.com>
285
286         * btrace.c (ftrace_add_pt): Fix gap indication.  Add warning for non-
287         contiguous trace and overflow.  Rephrase trace decode warning and print
288         instruction number.  Remove dead gaps warning.
289         (btrace_compute_ftrace_bts): Rephrase warnings and print instruction
290         number.
291
292 2016-10-25  Sandra Loosemore  <sandra@codesourcery.com>
293             Luis Machado  <lgustavo@codesourcery.com>
294             Pedro Alves  <palves@redhat.com>
295
296         PR gdb/20569
297         * exceptions.c (exception_print_same): Moved here from exec.c.
298         * exceptions.h (exception_print_same): Declare.
299         * exec.h: Include "symfile-add-flags.h".
300         (try_open_exec_file): New declaration.
301         * exec.c (exception_print_same): Moved to exceptions.c.
302         (try_open_exec_file): New function.
303         (exec_file_locate_attach): Rename exec_file and full_exec_path
304         variables to avoid confusion between target and host pathnames.
305         Move pathname processing logic to exec_file_find.  Do not return
306         early if pathname lookup fails; Call try_open_exec_file.
307         * infrun.c (follow_exec): Split and rename execd_pathname variable
308         to avoid confusion between target and host pathnames.  Warn if
309         pathname lookup fails.  Pass target pathname to
310         target_follow_exec, not hostpathname.  Call try_open_exec_file.
311         * main.c (symbol_file_add_main_adapter): New function.
312         (captured_main_1): Use it.
313         * solib-svr4.c (open_symbol_file_object): Adjust to pass
314         symfile_add_flags to symbol_file_add_main.
315         * solib.c (exec_file_find): Incorporate fallback logic for relative
316         pathnames formerly in exec_file_locate_attach.
317         * symfile.c (symbol_file_add_main, symbol_file_add_main_1):
318         Replace 'from_tty' parameter with a symfile_add_file.
319         (symbol_file_command): Adjust to pass symfile_add_flags to
320         symbol_file_add_main.
321         * symfile.h (symbol_file_add_main): Replace 'from_tty' parameter
322         with a symfile_add_file.
323
324 2016-10-26  Pedro Alves  <palves@redhat.com>
325
326         * coffread.c (coff_symfile_read): Use symfile_add_flags.
327         * dbxread.c (dbx_symfile_read): Ditto.
328         * elfread.c (elf_symfile_read): Ditto.
329         * inferior.h: Include symfile-add-flags.h.
330         (struct inferior) <symfile_flags>: Now symfile_add_flags.
331         * machoread.c (macho_add_oso_symfile, macho_symfile_read_all_oso)
332         (macho_symfile_read, mipscoff_symfile_read): Use
333         symfile_add_flags.
334         * objfile-flags.h: New file.
335         * objfiles.c (allocate_objfile): Use objfile_flags.
336         * objfiles.h: Include objfile-flags.h.
337         (struct objfile) <flags>: Now an objfile_flags.
338         (OBJF_REORDERED, OBJF_SHARED, OBJF_READNOW, OBJF_USERLOADED)
339         (OBJF_PSYMTABS_READ, OBJF_MAINLINE, OBJF_NOT_FILENAME): Delete.
340         Converted to an enum-flags in objfile-flags.h.
341         (allocate_objfile): Use objfile_flags.
342         * python/py-objfile.c (objfpy_add_separate_debug_file): Remove
343         unnecessary local.
344         * solib.c (solib_read_symbols, solib_add)
345         (reload_shared_libraries_1): Use symfile_add_flags.
346         * solib.h: Include "symfile-add-flags.h".
347         (solib_read_symbols): Use symfile_add_flags.
348         * symfile-add-flags.h: New file.
349         * symfile-debug.c (debug_sym_read): Use symfile_add_flags.
350         * symfile-mem.c (symbol_file_add_from_memory): Use
351         symfile_add_flags.
352         * symfile.c (read_symbols, syms_from_objfile_1)
353         (syms_from_objfile, finish_new_objfile): Use symfile_add_flags.
354         (symbol_file_add_with_addrs): Use symfile_add_flags and
355         objfile_flags.
356         (symbol_file_add_separate): Use symfile_add_flags.
357         (symbol_file_add_from_bfd, symbol_file_add): Use symfile_add_flags
358         and objfile_flags.
359         (symbol_file_add_main_1): : Use objfile_flags.  Fix add_flags vs
360         flags confusion.
361         (symbol_file_command): Use objfile_flags.
362         (add_symbol_file_command): Use symfile_add_flags and
363         objfile_flags.
364         (clear_symtab_users): Use symfile_add_flags.
365         * symfile.h: Include "symfile-add-flags.h" and "objfile-flags.h".
366         (struct sym_fns) <sym_read>: Use symfile_add_flags.
367         (clear_symtab_users): Use symfile_add_flags.
368         (enum symfile_add_flags): Delete, moved to symfile-add-flags.h and
369         converted to enum-flags.
370         (symbol_file_add, symbol_file_add_from_bfd)
371         (symbol_file_add_separate): Use symfile_add_flags.
372         * xcoffread.c (xcoff_initial_scan): Use symfile_add_flags.
373
374 2016-10-26  Pedro Alves  <palves@redhat.com>
375
376         * inferior.h (ALL_NON_EXITED_INFERIORS): New macro.
377         * infrun.c (do_target_resume): Call target_commit_resume.
378         (proceed): Defer target_commit_resume while looping over threads,
379         resuming them.  Call target_commit_resume at the end.
380         * record-btrace.c (record_btrace_commit_resume): New function.
381         (init_record_btrace_ops): Install it as to_commit_resume method.
382         * record-full.c (record_full_commit_resume): New function.
383         (record_full_wait_1): Call the beneath target's to_commit_resume
384         method.
385         (init_record_full_ops): Install record_full_commit_resume as
386         to_commit_resume method.
387         * remote.c (struct private_thread_info) <last_resume_step,
388         last_resume_sig, vcont_resumed>: New fields.
389         (remote_add_thread): Set the new thread's vcont_resumed flag.
390         (demand_private_info): Delete.
391         (get_private_info_thread, get_private_info_ptid): New functions.
392         (remote_update_thread_list): Adjust.
393         (process_initial_stop_replies): Clear the thread's vcont_resumed
394         flag.
395         (remote_resume): If connected in non-stop mode, record the resume
396         request and return early.
397         (struct private_inferior): New.
398         (struct vcont_builder): New.
399         (vcont_builder_restart, vcont_builder_flush)
400         (vcont_builder_push_action): New functions.
401         (MAX_ACTION_SIZE): New macro.
402         (remote_commit_resume): New function.
403         (thread_pending_fork_status, is_pending_fork_parent_thread): New
404         functions.
405         (check_pending_event_prevents_wildcard_vcont_callback)
406         (check_pending_events_prevent_wildcard_vcont): New functions.
407         (process_stop_reply): Adjust.  Clear the thread's vcont_resumed
408         flag.
409         (init_remote_ops): Install remote_commit_resume.
410         * target-delegates.c: Regenerate.
411         * target.c (defer_target_commit_resume): New global.
412         (target_commit_resume, make_cleanup_defer_target_commit_resume):
413         New functions.
414         * target.h (struct target_ops) <to_commit_resume>: New field.
415         (target_resume): Update comments.
416         (target_commit_resume): New declaration.
417
418 2016-10-26  Pedro Alves  <palves@redhat.com>
419
420         * inferior.c (exit_inferior_1): Free 'priv'.
421
422 2016-10-26  Pedro Alves  <palves@redhat.com>
423
424         * remote.c (remote_resume_with_hc): New function, factored out
425         from ...
426         (remote_resume): ... this.  Always try vCont first.
427         (remote_vcont_resume): Rename to ...
428         (remote_resume_with_vcont): ... this.  Bail out if execution
429         direction is reverse.
430
431 2016-10-25  Pedro Alves  <palves@redhat.com>
432
433         * dwarf2expr.h (struct dwarf_expr_context) <~dwarf_expr_context>:
434         Make virtual.
435
436 2016-10-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
437
438         PR build/20712
439         * defs.h: Remove obsolete comment
440         (atof): Remove.
441         * procfs.c (do_destroy_procinfo_cleanup): Add cast.
442         (sysset_t_alloc): Likewise.
443         (proc_set_traced_sysentry): Likewise.
444         (proc_set_traced_sysexit): Likewise.
445         [!PIOCLSTATUS && NEW_PROC_API] (do_closedir_cleanup): Likewise.
446         (proc_get_LDT_entry): Initiate cleanups before returns.
447         (procfs_wait): Use GDB_SIGNAL_0.
448         (procfs_corefile_thread_callback): Add cast.
449         * sol-thread.c (td_log_ftype, td_ta_new_ftype, td_ta_delete_ftype)
450         (td_init_ftype, td_ta_get_ph_ftype, td_ta_get_nthreads_ftype)
451         (td_ta_tsd_iter_ftype, td_ta_thr_iter_ftype)
452         (td_thr_validate_ftype, td_thr_tsd_ftype, td_thr_get_info_ftype)
453         (td_thr_getfpregs_ftype, td_thr_getxregsize_ftype)
454         (td_thr_getxregs_ftype, td_thr_sigsetmask_ftype)
455         (td_thr_setprio_ftype, td_thr_setsigpending_ftype)
456         (td_thr_setfpregs_ftype, td_thr_setxregs_ftype)
457         (td_ta_map_id2thr_ftype, td_ta_map_lwp2thr_ftype)
458         (td_thr_getgregs_ftype, td_thr_setgregs_ftype): New typedefs.
459         (p_td_log, p_td_ta_new, p_td_ta_delete, p_td_init, p_td_ta_get_ph)
460         (p_td_ta_get_nthreads, p_td_ta_tsd_iter, p_td_ta_thr_iter)
461         (p_td_thr_validate, p_td_thr_tsd, p_td_thr_get_info)
462         (p_td_thr_getfpregs, p_td_thr_getxregsize, p_td_thr_getxregs)
463         (p_td_thr_sigsetmask, p_td_thr_setprio, p_td_thr_setsigpending)
464         (p_td_thr_setfpregs, p_td_thr_setxregs, p_td_ta_map_id2thr)
465         (p_td_ta_map_lwp2thr, p_td_thr_getgregs, p_td_thr_setgregs): Use them.
466         (ps_pdread): Add cast.
467         (ps_ptread): Likewise.
468         (resolve): Likewise.
469         * top.c (gdb_safe_append_history): Print pid_t as long.
470
471 2016-10-25  Pedro Alves  <palves@redhat.com>
472
473         * common/common-defs.h (__STDC_FORMAT_MACROS): Define.
474
475 2016-10-25  Pedro Alves  <palves@redhat.com>
476
477         * common/new-op.c: Add comment about -fsanitize=address.
478
479 2016-10-25  Pedro Alves  <palves@redhat.com>
480
481        * common/common-defs.h (__STDC_CONSTANT_MACROS)
482        (__STDC_LIMIT_MACROS): Define.
483
484 2016-10-25  Yao Qi  <yao.qi@linaro.org>
485
486         PR gdb/20716
487         * common/new-op.c (__has_feature): New macro.
488         Don't override operator new if asan is used.
489
490 2016-10-24  Luis Machado  <lgustavo@codesourcery.com>
491
492         * exec.c (exec_file_locate_attach): Prevent NULL pointer dereference
493         when duplicating a string.
494
495 2016-10-24  Luis Machado  <lgustavo@codesourcery.com>
496
497         * exec.c (exception_print_same): Fix string comparison to use
498         statically-allocated ones.
499
500 2016-10-21  Tom Tromey  <tom@tromey.com>
501
502         * dwarf2expr.h (class dwarf_expr_context)
503         <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
504         push_dwarf_block_entry_value, get_addr_index, get_object_address>:
505         Now pure virtual.
506         * dwarf2-frame.c (class dwarf_expr_executor)
507         <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
508         push_dwarf_block_entry_value, get_addr_index, get_object_address>:
509         New methods.
510         <invalid>: New method.
511
512 2016-10-21  Tom Tromey  <tom@tromey.com>
513
514         * minsyms.h (minimal_symbol_reader::record_full): "copy_name" now
515         a bool.
516         (record, record_with_info): Update.
517         * minsyms.c (record): Fix indentation.
518         (record_full): Fix indentation.  Update for type change.
519         * elfread.c (record_minimal_symbol): "copy_name" now a bool.
520         (elf_symtab_read): "copy_names" now a bool.
521         (elf_rel_plt_read, elf_read_minimal_symbols): Update.
522
523 2016-10-21  Tom Tromey  <tom@tromey.com>
524
525         * main.c: Include <vector>.
526         (cmdarg_s): Remove typedef.  Don't define VEC.
527         (captured_main_1): Use vector, not VEC.  Remove cleanups.
528
529 2016-10-21  Tom Tromey  <tom@tromey.com>
530
531         * dwarf2loc.c (struct dwarf_expr_context_funcs): Don't declare.
532         (dwarf_expr_read_addr_from_reg, dwarf_expr_get_reg_value)
533         (dwarf_expr_read_mem, dwarf_expr_frame_base): Rename; turn into
534         methods.
535         (get_frame_pc_for_per_cu_dwarf_call): New function.
536         (dwarf_expr_frame_cfa, dwarf_expr_frame_pc)
537         (dwarf_expr_tls_address): Rename; turn into methods.
538         (per_cu_dwarf_call): Remove arguments.  Use
539         get_frame_pc_for_per_cu_dwarf_call.
540         (dwarf_evaluate_loc_desc): New class.
541         (dwarf_expr_dwarf_call, dwarf_expr_context)
542         (dwarf_expr_push_dwarf_reg_entry_value)
543         (dwarf_expr_get_addr_index, dwarf_expr_get_obj_addr): Rename; turn
544         into methods.
545         (dwarf_expr_ctx_funcs): Remove.
546         (dwarf2_evaluate_loc_desc_full): Update.
547         (dwarf2_locexpr_baton_eval): Update.
548         (symbol_needs_eval_context): New class.
549         (symbol_needs_read_addr_from_reg, symbol_needs_get_reg_value)
550         (symbol_needs_read_mem, symbol_needs_frame_base)
551         (symbol_needs_frame_cfa, symbol_needs_tls_address)
552         (symbol_needs_dwarf_call, needs_dwarf_reg_entry_value): Rename;
553         turn into methods.
554         (needs_get_addr_index, needs_get_obj_addr): Remove; turn into
555         methods.
556         (symbol_needs_ctx_funcs): Remove.
557         (dwarf2_loc_desc_get_symbol_read_needs): Update.
558         * dwarf2expr.h (struct dwarf_expr_context_funcs): Remove; turn
559         contents into methods.
560         (struct dwarf_expr_context) <baton, funcs>: Remove.
561         <read_addr_from_reg, get_reg_value, read_mem, get_frame_base,
562         get_frame_cfa, get_frame_pc, get_tls_address, dwarf_call,
563         impl_get_base_type, push_dwarf_block_entry_value, get_addr_index,
564         get_object_address>: Declare new methods.
565         (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
566         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
567         (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
568         (ctx_no_get_addr_index): Don't declare.
569         * dwarf2expr.c (get_base_type): Use impl_get_base_type.
570         (execute_stack_op): Update.
571         (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
572         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
573         (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
574         (ctx_no_get_addr_index): Remove; now methods on
575         dwarf_expr_context.
576         * dwarf2-frame.c (read_addr_from_reg): Take a frame_info, not a
577         baton.
578         (class dwarf_expr_executor): New class.
579         (get_reg_value, read_mem): Rename, turn into methods.
580         (execute_stack_op): Use dwarf_expr_executor.
581
582 2016-10-21  Tom Tromey  <tom@tromey.com>
583
584         * dwarf2loc.c (per_cu_dwarf_call)
585         (dwarf_expr_push_dwarf_reg_entry_value)
586         (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
587         (needs_dwarf_reg_entry_value)
588         (dwarf2_loc_desc_get_symbol_read_needs): Update.
589         * dwarf2expr.h (dwarf_expr_context) <push_address, eval, fetch,
590         fetch_address, fetch_in_stack_memory, address_type, grow_stack,
591         push, stack_empty_p, add_piece, get_base_type, execute_stack_op,
592         pop>: New method declarations.
593         (dwarf_expr_push_address, dwarf_expr_eval, dwarf_expr_fetch)
594         (dwarf_expr_fetch_address, dwarf_expr_fetch_in_stack_memory):
595         Don't declare.
596         * dwarf2expr.c (address_type, grow_stack, push, push_address)
597         (pop, fetch, fetch_address, fetch_in_stack_memory)
598         (stack_empty_p, add_piece, eval, get_base_type)
599         (execute_stack_op): Rename.  Turn into methods.
600         * dwarf2-frame.c (execute_stack_op): Update.
601
602 2016-10-21  Tom Tromey  <tom@tromey.com>
603
604         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Stack-allocate
605         dwarf_expr_context.  Remove cleanups.
606         (dwarf2_locexpr_baton_eval)
607         (dwarf2_loc_desc_get_symbol_read_needs):  Likewise.
608         * dwarf2expr.h (dwarf_expr_context, ~dwarf_expr_context): Add
609         constructors and destructors.
610         (new_dwarf_expr_context, free_dwarf_expr_context)
611         (make_cleanup_free_dwarf_expr_context): Don't declare.
612         * dwarf2-frame.c (execute_stack_op): Stack-allocate
613         dwarf_expr_context.  Remove cleanups.
614         (dwarf_expr_context): Rename from new_dwarf_expr_context.  Turn
615         into constructor.
616         (free_dwarf_expr_context, free_dwarf_expr_context_cleanup):
617         Remove.
618         (~dwarf_expr_context): Rename from
619         make_cleanup_free_dwarf_expr_context.  Turn into destructor.
620
621 2016-10-21  Tom Tromey  <tom@tromey.com>
622
623         * dwarf2loc.c: Include <vector>.
624         (read_pieced_value, write_pieced_value)
625         (dwarf2_compile_expr_to_ax): Use std::vector.
626
627 2016-10-21  Tom Tromey  <tom@tromey.com>
628
629         * stack.c (print_stack_frame_to_uiout): Use scoped_restore.
630         * ui-out.c (make_cleanup_restore_current_uiout)
631         (restore_current_uiout_cleanup): Remove.
632         * infrun.c (print_stop_event): Use scoped_restore.
633         * ui-out.h (make_cleanup_restore_current_uiout): Don't declare.
634
635 2016-10-21  Tom Tromey  <tom@tromey.com>
636
637         * elfread.c (elf_read_minimal_symbols): Use gdb::unique_ptr.
638
639 2016-10-21  Tom Tromey  <tom@tromey.com>
640
641         * cli/cli-dump.c (dump_memory_to_file): Use gdb::unique_ptr.
642         (restore_binary_file): Likewise.
643
644 2016-10-21  Tom Tromey  <tom@tromey.com>
645
646         * maint.h (scoped_command_stats): New class.
647         (make_command_stats_cleanup): Don't declare.
648         * maint.c (struct cmd_stats): Remove.
649         (~scoped_command_stats): Rename from report_command_stats.  Now a
650         destructor.
651         (scoped_command_stats): Rename from make_command_stats_cleanup.
652         Now a constructor.
653         * main.c (captured_main_1): New function.  Use
654         scoped_command_stats.
655         (captured_main): Call captured_main_1.
656         * event-top.c (command_handler): Use scoped_command_stats.
657
658 2016-10-21  Tom Tromey  <tom@tromey.com>
659
660         * mi/mi-main.c (mi_cmd_data_read_memory): Use gdb::unique_ptr.
661         Remove some cleanups.
662
663 2016-10-21  Tom Tromey  <tom@tromey.com>
664
665         * tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received)
666         (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
667         (tui_on_no_history, tui_on_user_selected_context_changed):
668         Update.
669         * top.h (switch_thru_all_uis): New class.
670         (SWITCH_THRU_ALL_UIS): Rewrite.
671         (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
672         (switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't
673         declare.
674         * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
675         (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
676         (mi_inferior_exit, mi_inferior_removed, mi_on_signal_received)
677         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
678         (mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed)
679         (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
680         (mi_breakpoint_created, mi_breakpoint_deleted)
681         (mi_breakpoint_modified, mi_output_running_pid, mi_on_resume)
682         (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
683         (mi_memory_changed, mi_user_selected_context_changed): Update.
684         * infrun.c (all_uis_check_sync_execution_done)
685         (all_uis_on_sync_execution_starting, normal_stop): Update.
686         * event-top.c (restore_ui_cleanup)
687         (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
688         (switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove.
689         * cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received)
690         (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
691         (cli_on_no_history, cli_on_user_selected_context_changed):
692         Update.
693         * breakpoint.c (watchpoint_check): Update.
694
695 2016-10-21  Tom Tromey  <tom@tromey.com>
696
697         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab): Add
698         "reader" argument.  Update.
699         (xcoff_initial_scan): Update.
700         * symfile.h (mdebug_build_psymtabs): Add "reader" argument.
701         * mipsread.c (mipscoff_symfile_read): Update.
702         (read_alphacoff_dynamic_symtab): Add "reader" argument.  Update.
703         * minsyms.h (minimal_symbol_reader) <record, record_full>:
704         Declare.
705         <m_msym_bunch, m_msym_bunch_index, m_msym_count>: New members.
706         <record_with_info>: New function, renamed from
707         prim_record_minimal_symbol_and_info.
708         * minsyms.c (msym_bunch, msym_bunch_index, msym_count): Remove
709         globals.
710         (minimal_symbol_reader): Initialize new members.
711         (minimal_symbol_reader::record): Renamed from
712         prim_record_minimal_symbol.
713         (minimal_symbol_reader::record_full): Renamed from
714         prim_record_minimal_symbol_full.
715         (prim_record_minimal_symbol_and_info): Move to minsyms.h; rename.
716         * mdebugread.c (mdebug_build_psymtabs, parse_partial_symbols)
717         (record_minimal_symbol): Add "reader" argument.  Update.
718         (elfmdebug_build_psymtabs): Update.
719         * machoread.c (macho_symtab_add_minsym, macho_symtab_read): Add
720         "reader" argument.  Update.
721         (macho_symfile_read): Update.
722         * elfread.c (record_minimal_symbol, elf_symtab_read)
723         (elf_rel_plt_read): Add "reader" argument.  Update.
724         (elf_read_minimal_symbols): Update.
725         * dbxread.c (record_minimal_symbol, read_dbx_dynamic_symtab)
726         (read_dbx_symtab): Add "reader" argument.  Update.
727         (dbx_symfile_read): Update.
728         * coffread.c (record_minimal_symbol, coff_symtab_read): Add
729         "reader" argument.  Update.
730         (coff_symfile_read): Update.
731         * coff-pe-read.h (read_pe_exported_syms): Add "reader" argument.
732         * coff-pe-read.c (add_pe_exported_sym, add_pe_forwarded_sym)
733         (read_pe_exported_syms): Add "reader" argument.  Update.
734
735 2016-10-21  Tom Tromey  <tom@tromey.com>
736
737         * xcoffread.c (xcoff_initial_scan): Update.
738         * mipsread.c (mipscoff_symfile_read): Update.
739         * minsyms.c (minimal_symbol_reader): Add obj argument.
740         Initialize member.
741         (install): Remove objfile argument.  Update.
742         * mdebugread.c (elfmdebug_build_psymtabs): Update.
743         * machoread.c (macho_symfile_read): Update.
744         * elfread.c (elf_read_minimal_symbols): Update.
745         * dbxread.c (dbx_symfile_read): Update.
746         * coffread.c (coff_symfile_read): Update.
747         * minsyms.h (minimal_symbol_reader): Add m_objfile member.
748         (constructor): Add objfile argument.
749         (minimal_symbol_reader::install): Remove objfile argument.
750
751 2016-10-21  Tom Tromey  <tom@tromey.com>
752
753         * xcoffread.c (xcoff_initial_scan): Use
754         minimal_symbol_reader.
755         * mipsread.c (mipscoff_symfile_read): Use
756         minimal_symbol_reader.
757         * minsyms.h (minimal_symbol_reader): New class.
758         (init_minimal_symbol_collection)
759         (make_cleanup_discard_minimal_symbols, install_minimal_symbols):
760         Don't declare.
761         * minsyms.c (minimal_symbol_reader): Renamed from
762         init_minimal_symbol_collection, turned into constructor.
763         (~minimal_symbol_reader): Renamed from
764         do_discard_minimal_symbols_cleanup, turned into destructor.
765         (make_cleanup_discard_minimal_symbols): Remove.
766         (minimal_symbol_reader::install): Rename form
767         install_minimal_symbols.
768         * mdebugread.c (elfmdebug_build_psymtabs): Use
769         minimal_symbol_reader.
770         * machoread.c (macho_symfile_read): Use
771         minimal_symbol_reader.
772         * elfread.c (elf_read_minimal_symbols): Use
773         minimal_symbol_reader.
774         * dbxread.c (dbx_symfile_read): Use minimal_symbol_reader.
775         * coffread.c (coff_symfile_read): Use
776         minimal_symbol_reader.
777
778 2016-10-21  Tom Tromey  <tom@tromey.com>
779
780         * top.c (new_ui_command, wait_sync_command_done)
781         (gdb_readline_wrapper): Use scoped_restore.
782         * infrun.c (fetch_inferior_event): Use scoped_restore.
783         * infcall.c (call_thread_fsm_should_stop): Use scoped_restore.
784
785 2016-10-21  Tom Tromey  <tom@tromey.com>
786
787         * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
788         (struct restore_ui_file_closure): Remove.
789         * utils.h (make_cleanup_restore_ui_file): Don't declare.
790         * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
791         scoped_restore.
792         * top.c (execute_command_to_string): Use scoped_restore.
793
794 2016-10-21  Tom Tromey  <tom@tromey.com>
795
796         * common/scoped_restore.h: New file.
797         * utils.h: Include scoped_restore.h.
798         * top.c (execute_command_to_string): Use scoped_restore.
799         * python/python.c (python_interactive_command): Use
800         scoped_restore.
801         (python_command, execute_gdb_command): Likewise.
802         * printcmd.c (do_one_display): Use scoped_restore.
803         * mi/mi-main.c (exec_continue): Use scoped_restore.
804         * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore.
805         * linux-fork.c (checkpoint_command): Use scoped_restore.
806         * infrun.c (restore_execution_direction): Remove.
807         (fetch_inferior_event): Use scoped_restore.
808         * compile/compile.c (compile_file_command): Use
809         scoped_restore.
810         (compile_code_command, compile_print_command): Likewise.
811         * cli/cli-script.c (execute_user_command): Use
812         scoped_restore.
813         (while_command, if_command, script_from_file): Likewise.
814         * arm-tdep.c (arm_insert_single_step_breakpoint): Use
815         scoped_restore.
816
817 2016-10-21  Tom Tromey  <tom@tromey.com>
818
819         * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
820
821 2016-10-21  Sangamesh Mallayya  <sangamesh.swamy@in.ibm.com>
822             Ulrich Weigand  <uweigand@de.ibm.com>
823
824         * xcoffread.c (read_xcoff_symtab): Make name of current file as
825         pst->filename instead of _start_ in AIX.
826
827 2016-10-21  Philipp Rudo  <prudo@linux.vnet.ibm.com>
828
829         * solist.h (struct target_so_ops): Delete special_symbol_handling
830         hook.
831         * solib.c (solib_add, reload_shared_libraries): Adjust.
832         * solib-aix.c (solib_aix_special_symbol_handling): Delete
833         (_initialize_solib_aix): Adjust
834         * solib-darwin.c (darwin_special_symbol_handling): Delete
835         (_initialize_darwin_solib): Adjust
836         * solib-dsbt.c (dsbt_special_symbol_handling): Delete
837         (_initialize_dsbt_solib): Adjust
838         * solib-frv.c (frv_special_symbol_handling): Delete
839         (_initialize_frv_solib): Adjust
840         * solib-svr4.c (svr4_special_symbol_handling): Delete
841         (_initialize_svr4_solib): Adjust
842         * solib-target.c (solib_target_special_symbol_handling): Delete
843         (_initialize_solib_target): Adjust
844
845 2016-10-20  Yao Qi  <yao.qi@linaro.org>
846
847         * configure.tgt: Don't configure if target is *-*-vxworks*.
848
849 2016-10-19  Pedro Alves  <palves@redhat.com>
850
851         * config.in: Regenerate.
852
853 2016-10-18  Pedro Alves  <palves@redhat.com>
854
855         * common/common-defs.h (__STDC_CONSTANT_MACROS)
856         (__STDC_LIMIT_MACROS): Delete.
857
858 2016-10-18  Pedro Alves  <palves@redhat.com>
859
860         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
861         2692e23a48e21f6daa029e8af9f1a143b7532f47.
862         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
863         Regenerate.
864         * gnulib/import/Makefile: Update.
865         * gnulib/import/alloca: Update.
866         * gnulib/import/basename-lgpl: Update.
867         * gnulib/import/canonicalize-lgpl: Update.
868         * gnulib/import/config: Update.
869         * gnulib/import/dirent: Update.
870         * gnulib/import/dirfd: Update.
871         * gnulib/import/dirname-lgpl: Update.
872         * gnulib/import/dirname.h: Update.
873         * gnulib/import/dosname.h: Update.
874         * gnulib/import/errno: Update.
875         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
876         * gnulib/import/extra/snippet/c++defs.h: Update.
877         * gnulib/import/extra/snippet/warn-on-use.h: Update.
878         * gnulib/import/extra/update-copyright: Update.
879         * gnulib/import/flexmember.h: Update.
880         * gnulib/import/float+.h: Update.
881         * gnulib/import/float: Update.
882         * gnulib/import/float: Update.
883         * gnulib/import/fnmatch: Update.
884         * gnulib/import/fnmatch: Update.
885         * gnulib/import/fnmatch_loop: Update.
886         * gnulib/import/fpucw.h: Update.
887         * gnulib/import/frexp: Update.
888         * gnulib/import/frexpl: Update.
889         * gnulib/import/gettimeofday: Update.
890         * gnulib/import/hard-locale: Update.
891         * gnulib/import/hard-locale.h: Update.
892         * gnulib/import/inttypes: Update.
893         * gnulib/import/isnan: Update.
894         * gnulib/import/isnand-nolibm.h: Update.
895         * gnulib/import/isnand: Update.
896         * gnulib/import/isnanl-nolibm.h: Update.
897         * gnulib/import/isnanl: Update.
898         * gnulib/import/itold: Update.
899         * gnulib/import/limits: Update.
900         * gnulib/import/localcharset: Update.
901         * gnulib/import/localcharset.h: Update.
902         * gnulib/import/lstat: Update.
903         * gnulib/import/m4/00gnulib: Update.
904         * gnulib/import/m4/absolute-header: Update.
905         * gnulib/import/m4/alloca: Update.
906         * gnulib/import/m4/canonicalize: Update.
907         * gnulib/import/m4/codeset: Update.
908         * gnulib/import/m4/configmake: Update.
909         * gnulib/import/m4/dirent_h: Update.
910         * gnulib/import/m4/dirfd: Update.
911         * gnulib/import/m4/dirname: Update.
912         * gnulib/import/m4/double-slash-root: Update.
913         * gnulib/import/m4/eealloc: Update.
914         * gnulib/import/m4/errno_h: Update.
915         * gnulib/import/m4/exponentd: Update.
916         * gnulib/import/m4/exponentl: Update.
917         * gnulib/import/m4/extensions: Update.
918         * gnulib/import/m4/extern-inline: Update.
919         * gnulib/import/m4/fcntl-o: Update.
920         * gnulib/import/m4/flexmember: Update.
921         * gnulib/import/m4/float_h: Update.
922         * gnulib/import/m4/fnmatch: Update.
923         * gnulib/import/m4/fpieee: Update.
924         * gnulib/import/m4/frexp: Update.
925         * gnulib/import/m4/frexpl: Update.
926         * gnulib/import/m4/gettimeofday: Update.
927         * gnulib/import/m4/glibc21: Update.
928         * gnulib/import/m4/gnulib-cache: Update.
929         * gnulib/import/m4/gnulib-common: Update.
930         * gnulib/import/m4/gnulib-comp: Update.
931         * gnulib/import/m4/gnulib-tool: Update.
932         * gnulib/import/m4/hard-locale: Update.
933         * gnulib/import/m4/include_next: Update.
934         * gnulib/import/m4/inttypes-pri: Update.
935         * gnulib/import/m4/inttypes: Update.
936         * gnulib/import/m4/isnand: Update.
937         * gnulib/import/m4/isnanl: Update.
938         * gnulib/import/m4/largefile: Update.
939         * gnulib/import/m4/limits-h: Update.
940         * gnulib/import/m4/localcharset: Update.
941         * gnulib/import/m4/locale-fr: Update.
942         * gnulib/import/m4/locale-ja: Update.
943         * gnulib/import/m4/locale-zh: Update.
944         * gnulib/import/m4/longlong: Update.
945         * gnulib/import/m4/lstat: Update.
946         * gnulib/import/m4/malloc: Update.
947         * gnulib/import/m4/malloca: Update.
948         * gnulib/import/m4/math_h: Update.
949         * gnulib/import/m4/mbrtowc: Update.
950         * gnulib/import/m4/mbsinit: Update.
951         * gnulib/import/m4/mbsrtowcs: Update.
952         * gnulib/import/m4/mbstate_t: Update.
953         * gnulib/import/m4/memchr: Update.
954         * gnulib/import/m4/memmem: Update.
955         * gnulib/import/m4/mmap-anon: Update.
956         * gnulib/import/m4/multiarch: Update.
957         * gnulib/import/m4/nocrash: Update.
958         * gnulib/import/m4/off_t: Update.
959         * gnulib/import/m4/pathmax: Update.
960         * gnulib/import/m4/rawmemchr: Update.
961         * gnulib/import/m4/readlink: Update.
962         * gnulib/import/m4/rename: Update.
963         * gnulib/import/m4/rmdir: Update.
964         * gnulib/import/m4/signal_h: Update.
965         * gnulib/import/m4/ssize_t: Update.
966         * gnulib/import/m4/stat: Update.
967         * gnulib/import/m4/stdbool: Update.
968         * gnulib/import/m4/stddef_h: Update.
969         * gnulib/import/m4/stdint: Update.
970         * gnulib/import/m4/stdio_h: Update.
971         * gnulib/import/m4/stdlib_h: Update.
972         * gnulib/import/m4/strchrnul: Update.
973         * gnulib/import/m4/string_h: Update.
974         * gnulib/import/m4/strstr: Update.
975         * gnulib/import/m4/strtok_r: Update.
976         * gnulib/import/m4/sys_socket_h: Update.
977         * gnulib/import/m4/sys_stat_h: Update.
978         * gnulib/import/m4/sys_time_h: Update.
979         * gnulib/import/m4/sys_types_h: Update.
980         * gnulib/import/m4/time_h: Update.
981         * gnulib/import/m4/unistd_h: Update.
982         * gnulib/import/m4/warn-on-use: Update.
983         * gnulib/import/m4/wchar_h: Update.
984         * gnulib/import/m4/wchar_t: Update.
985         * gnulib/import/m4/wctype_h: Update.
986         * gnulib/import/m4/wint_t: Update.
987         * gnulib/import/malloc: Update.
988         * gnulib/import/malloca: Update.
989         * gnulib/import/malloca.h: Update.
990         * gnulib/import/math: Update.
991         * gnulib/import/math: Update.
992         * gnulib/import/mbrtowc: Update.
993         * gnulib/import/mbsinit: Update.
994         * gnulib/import/mbsrtowcs-impl.h: Update.
995         * gnulib/import/mbsrtowcs-state: Update.
996         * gnulib/import/mbsrtowcs: Update.
997         * gnulib/import/memchr: Update.
998         * gnulib/import/memmem: Update.
999         * gnulib/import/pathmax.h: Update.
1000         * gnulib/import/rawmemchr: Update.
1001         * gnulib/import/readlink: Update.
1002         * gnulib/import/ref-add.sin: Update.
1003         * gnulib/import/ref-del.sin: Update.
1004         * gnulib/import/rename: Update.
1005         * gnulib/import/rmdir: Update.
1006         * gnulib/import/same-inode.h: Update.
1007         * gnulib/import/signal: Update.
1008         * gnulib/import/stat: Update.
1009         * gnulib/import/stdbool: Update.
1010         * gnulib/import/stddef: Update.
1011         * gnulib/import/stdint: Update.
1012         * gnulib/import/stdio: Update.
1013         * gnulib/import/stdlib: Update.
1014         * gnulib/import/str-two-way.h: Update.
1015         * gnulib/import/strchrnul: Update.
1016         * gnulib/import/streq.h: Update.
1017         * gnulib/import/string: Update.
1018         * gnulib/import/stripslash: Update.
1019         * gnulib/import/strnlen1: Update.
1020         * gnulib/import/strnlen1.h: Update.
1021         * gnulib/import/strstr: Update.
1022         * gnulib/import/strtok_r: Update.
1023         * gnulib/import/sys_stat: Update.
1024         * gnulib/import/sys_time: Update.
1025         * gnulib/import/sys_types: Update.
1026         * gnulib/import/time: Update.
1027         * gnulib/import/unistd: Update.
1028         * gnulib/import/unistd: Update.
1029         * gnulib/import/verify.h: Update.
1030         * gnulib/import/wchar: Update.
1031         * gnulib/import/wctype: Update.
1032         * gnulib/import/flexmember.h: New file.
1033         * gnulib/import/hard-locale.c: New file.
1034         * gnulib/import/hard-locale.h: New file.
1035         * gnulib/import/limits.in.h: New file.
1036         * gnulib/import/m4/flexmember.m4: New file.
1037         * gnulib/import/m4/hard-locale.m4: New file.
1038         * gnulib/import/m4/limits-h.m4: New file.
1039
1040 2016-10-18  Pedro Alves  <palves@redhat.com>
1041
1042         * common/common-defs.h: Include "gdb_unique_ptr.h".
1043         * common/gdb_unique_ptr.h: New.
1044
1045 2016-10-18  Maciej W. Rozycki  <macro@imgtec.com>
1046
1047         * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
1048         is `bfd_arch_i386' before proceeding.
1049         (i386_mpx_set_bounds): Likewise.
1050
1051 2016-10-18  Maciej W. Rozycki  <macro@imgtec.com>
1052
1053         * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
1054         type for `operands'.
1055
1056 2016-10-17  Simon Marchi  <simon.marchi@ericsson.com>
1057
1058         * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
1059         before using it.
1060
1061 2016-10-17  Pedro Alves  <palves@redhat.com>
1062
1063         * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
1064         'int' as type.
1065
1066 2016-10-14  Sangamesh Mallayya  <sangamesh.swamy@in.ibm.com>
1067             Ulrich Weigand  <uweigand@de.ibm.com>
1068
1069         * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
1070         path is set properly if program has a dependency on .a archive and
1071         sysroot is set via set sysroot command.
1072
1073 2016-10-14  Markus Metzger  <markus.t.metzger@intel.com>
1074
1075         * nat/linux-btrace.c: Remove leftover comment.
1076
1077 2016-10-14  Eli Zaretskii  <eliz@gnu.org>
1078
1079         * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
1080         available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
1081
1082 2016-10-13  Pedro Alves  <palves@redhat.com>
1083
1084         * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
1085         (false, true): Remove checks.
1086
1087 2016-10-12  Tom Tromey  <tom@tromey.com>
1088
1089         * machoread.c (macho_symfile_read_all_oso): Use std::string.
1090
1091 2016-10-12  Tom Tromey  <tom@tromey.com>
1092
1093         * tracepoint.c (trace_dump_command): Remove unnecessary
1094         null_cleanup.
1095
1096 2016-10-12  Tom Tromey  <tom@tromey.com>
1097
1098         * valprint.c (generic_emit_char, count_next_character)
1099         (generic_printstr): Update.
1100         * charset.c (struct wchar_iterator): Move to charset.h.
1101         (wchar_iterator::wchar_iterator): Rename from
1102         make_wchar_iterator, turn into a constructor.
1103         (wchar_iterator::~wchar_iterator): Rename from
1104         do_cleanup_iterator, turn into a destructor.
1105         (make_cleanup_wchar_iterator): Remove.
1106         (wchar_iterator::iterate): Rename from wchar_iterate.  Remove
1107         "iter" argument.  Update.
1108         * charset.h: Include <vector>.
1109         (class wchar_iterator): New class, from old struct
1110         wchar_iterator.
1111         (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
1112         declare.
1113
1114 2016-10-12  Tom Tromey  <tom@tromey.com>
1115
1116         * selftest.c: Include <vector>, not "vec.h".
1117         (self_test_function_ptr): Remove.
1118         (tests): Now a std::vector.
1119         (register_self_test, run_self_tests): Update.
1120
1121 2016-10-13  Pedro Alves  <palves@redhat.com>
1122             Tom Tromey  <tom@tromey.com>
1123
1124         * tid-parse.h (tid_range_parser): New class.
1125         (enum tid_range_state): Move into tid_range_parser's scope.
1126         Remove TID_RANGE_ prefix from all values.
1127         (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
1128         (tid_range_parser_star_range, tid_range_parser_finished)
1129         (tid_range_parser_skip, tid_range_parser_qualified): Don't
1130         declare.
1131         (tid_is_in_list): Update comment.
1132         * tid-parse.c (tid_range_parser::tid_range_parser): New.
1133         (init, finished, get_string, skip, tid_is_qualified)
1134         (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
1135         turn into methods.
1136         (tid_is_in_list): Adjust.
1137         * cli/cli-utils.h (number_or_range_parser): New class.
1138         (init_number_or_range, get_number_or_range)
1139         (number_range_setup_range): Don't declare.
1140         * cli/cli-utils.c
1141         (number_or_range_parser::number_or_range_parser): New.
1142         (init_number_or_range, get_number_or_range)
1143         (number_range_setup_range): Rename; turn into methods.
1144         (number_is_in_list): Adjust.
1145         * breakpoint.c (map_breakpoint_numbers): Adjust.  Use bool.
1146         (trace_pass_command, get_tracepoint_by_number): Adjust.
1147         * breakpoint.h (get_tracepoint_by_number): Adjust.
1148         * inferior.c (detach_inferior_command, kill_inferior_command)
1149         (remove_inferior_command): Adjust.
1150         * linespec.c (decode_line_2): Adjust.
1151         * memattr.c (mem_enable_command, mem_disable_command)
1152         (mem_delete_command): Adjust.
1153         * printcmd.c (map_display_numbers): Adjust.
1154         * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
1155         * thread.c (thread_apply_command): Adjust.
1156
1157 2016-10-12  Anton Kolesov  <anton.kolesov@synopsys.com>
1158
1159         * arc-newlib-tdep.c: New file.
1160         * configure.tgt: Add newlib support for ARC.
1161
1162 2016-10-12  Anton Kolesov  <anton.kolesov@synopsys.com>
1163
1164         * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
1165         * arc-tdep.c (arc_get_longjmp_target): New function.
1166         (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
1167         (arc_dump_tdep): Print jb_pc.
1168
1169 2016-10-12  Anton Kolesov  <anton.kolesov@synopsys.com>
1170
1171         * arc-tdep.h (struct gdbarch_tdep): New.
1172         * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
1173
1174 2016-10-12  Yao Qi  <yao.qi@linaro.org>
1175
1176         PR tdep/20682
1177         * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
1178         (aarch64_analyze_prologue): Extend array 'regs' for D registers.
1179         Assert that operand 0 and 1 can be X or D registers.  Update
1180         register number for D registers.  Update registers in frame
1181         cache.
1182         * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
1183
1184 2016-10-10  Yao Qi  <yao.qi@linaro.org>
1185
1186         * arch/arm.h (enum arm_breakpoint_kinds): New.
1187         * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
1188         ARM_BP_KIND_THUMB2.
1189
1190 2016-10-10  Yao Qi  <yao.qi@linaro.org>
1191
1192         * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
1193         'gdbarch'.
1194
1195 2016-10-10  Yao Qi  <yao.qi@linaro.org>
1196
1197         * v850-tdep.c (v850_breakpoint_from_pc): Use the right
1198         breakpoint instruction.
1199         (v850_dbtrap_breakpoint_from_pc): Remove.
1200         (v850_gdbarch_init): Update.
1201
1202 2016-10-08  Simon Marchi  <simon.marchi@polymtl.ca>
1203
1204         * ui-out.c (push_level): Remove "id" parameter.
1205         (ui_out_begin): Update call.
1206
1207 2016-10-07  Joel Brobecker  <brobecker@adacore.com>
1208
1209         GDB 7.12 released.
1210
1211 2016-10-07  Markus Metzger  <markus.t.metzger@intel.com>
1212
1213         * python/python.c (gdbpy_decode_line): Call
1214         string_to_event_location_basic instead of new_linespec_location.
1215
1216 2016-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
1217
1218         * target.c (target_supports_multi_process): New function, moved
1219         from...
1220         * target.h (target_supports_multi_process): ... here.  Remove
1221         macro.
1222         * target/target.h (target_supports_multi_process): New prototype.
1223
1224 2016-10-06  Pedro Alves  <palves@redhat.com>
1225
1226         * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
1227         EXPORTED_CONST.
1228         * stub-termcap.c: Remove __cplusplus checks.
1229         * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
1230         EXTERN_C_POP): Delete.
1231         * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
1232         (GDB_XCPT) [!__cplusplus]: Delete.
1233         (throw_exception, throw_exception_sjlj): Update comments.
1234         * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
1235         * guile/guile.c (extension_language_guile): Write "extern const"
1236         instead of EXPORTED_CONST.
1237         * features/feature_to_c.sh: Don't emit !__cplusplus code.  Write
1238         "extern const" instead of EXPORTED_CONST.
1239
1240 2016-10-06  Doug Evans  <dje@google.com>
1241
1242         * python/py-value.c (valpy_long): Handle unsigned values.
1243
1244 2016-10-06  Simon Marchi  <simon.marchi@ericsson.com>
1245
1246         * frame.h: Forward-declare struct ui_out.
1247
1248 2016-10-06  Tom Tromey  <tom@tromey.com>
1249
1250         * MAINTAINERS: Remove Java test maintainer.
1251         * varobj.h (java_varobj_ops): Don't declare.
1252         * valprint.h (struct value_print_options)
1253         <pascal_static_field_print>: Update comment.
1254         * utils.c (producer_is_gcc): Remove java reference.
1255         * symtab.h (struct general_symbol_info): Remove java references.
1256         (SYMBOL_SEARCH_NAME): Likewise.
1257         * objfiles.c (allocate_objfile): Update comment.
1258         * linespec.c (find_linespec_symbols): Remove java references.
1259         * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
1260         java references.
1261         * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
1262         (TYPE_CPLUS_REALLY_JAVA): Remove.
1263         * c-varobj.c (enum vsections): Update comment.
1264         * symtab.c (symbol_set_language, symbol_set_names)
1265         (symbol_natural_name, symbol_demangled_name)
1266         (demangle_for_lookup, symbol_matches_domain)
1267         (default_make_symbol_completion_list_break_on_1): Remove java
1268         references.
1269         (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
1270         * psymtab.c (match_partial_symbol, psymtab_search_name)
1271         (lookup_partial_symbol): Remove java references.
1272         * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
1273         (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
1274         (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
1275         (process_structure_scope, read_subroutine_type)
1276         (read_subrange_type, load_partial_dies)
1277         (new_symbol_full, determine_prefix, typename_concat)
1278         (dwarf2_name): Remove java references.
1279         (set_cu_language): Treat Java as C++.
1280         * c-typeprint.c (c_type_print_args): Remove java reference.
1281         * defs.h (enum language) <language_java>: Remove.
1282         * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
1283         (YYOBJ, local-maintainer-clean): Don't mention java files.
1284         * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
1285         jv-varobj.c: Remove.
1286
1287 2016-10-06  Maciej W. Rozycki  <macro@imgtec.com>
1288
1289         * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
1290         32-bit.
1291
1292 2016-10-06  Maciej W. Rozycki  <macro@imgtec.com>
1293
1294         * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
1295         throughout.
1296
1297 2016-10-06  Markus Metzger  <markus.t.metzger@intel.com>
1298
1299         * stack.c (frame_info): Call val_print_not_saved instead of
1300         val_print_unavailable if frame_id check fails.
1301
1302 2016-10-06  Pedro Alves  <palves@redhat.com>
1303
1304         * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
1305         the cached code address.
1306
1307 2016-10-06  Doug Evans  <dje@google.com>
1308
1309         * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
1310         "end" in all fields.
1311         * features/aarch64.c: Regenerate.
1312         * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
1313         and "enabled" fields. Correct size of "enabled" field.
1314         * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
1315         and "enabled" fields.
1316         * features/i386/i386-avx-mpx-linux.c: Regenerate.
1317         * features/i386/i386-avx-mpx.c: Regenerate.
1318         * features/i386/i386-avx512-linux.c: Regenerate.
1319         * features/i386/i386-avx512.c: Regenerate.
1320         * features/i386/i386-mpx-linux.c: Regenerate.
1321         * features/i386/i386-mpx.c: Regenerate.
1322         * features/arc-arcompact.c: Regenerate.
1323         * features/arc-v2.c: Regenerate.
1324         * xml-tdesc.c (tdesc_start_field): Require "end" spec.  Single bit
1325         fields default to "bool" type.
1326
1327         Revert 2016-03-15  Doug Evans  <dje@google.com>
1328         * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
1329         * features/i386/32bit-sse.xml (i386_eflags): Ditto.
1330         * features/i386/64bit-core.xml (i386_eflags): Ditto.
1331         * features/i386/64bit-sse.xml (i386_eflags): Ditto.
1332         * features/i386/x32-core.xml (i386_eflags): Ditto.
1333
1334 2016-10-05  Tom Tromey  <tom@tromey.com>
1335
1336         PR breakpoints/20653:
1337         * location.c (string_to_explicit_location): Use NULL, not '\0'.
1338
1339 2016-10-05  Tom Tromey  <tom@tromey.com>
1340
1341         PR symtab/20652:
1342         * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
1343         fields.
1344
1345 2016-10-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1346
1347         * dwarf2expr.c (dwarf_expr_require_composition): Allow
1348         DW_OP_GNU_uninit.
1349         (execute_stack_op): Use dwarf_expr_require_composition instead of
1350         copying its logic.
1351
1352 2016-10-05  Anton Kolesov  <anton.kolesov@synopsys.com>
1353
1354         * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
1355
1356 2016-10-05  Yao Qi  <yao.qi@linaro.org>
1357
1358         * features/Makefile (WHICH): Add
1359         rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
1360         rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
1361         rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
1362         * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
1363         * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
1364         * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
1365         * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
1366         * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
1367         * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
1368
1369 2016-10-05  Yao Qi  <yao.qi@linaro.org>
1370
1371         * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
1372         s390-vx-linux64.xml, s390x-tevx-linux64.xml and
1373         s390x-vx-linux64.xml.
1374
1375 2016-10-05  Yao Qi  <yao.qi@linaro.org>
1376
1377         * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
1378         amd64-expedite, and x32-expedite.
1379
1380 2016-10-05  Terry Guo  <terry.guo@arm.com>
1381             Yao Qi  <yao.qi@linaro.org>
1382
1383         * arm-tdep.c: Adjust includes.
1384         * features/Makefile (WHICH): Add "arm/" directory to arm
1385         target descriptions.
1386         (XMLTOC): Likewise.
1387         (arm/arm-with-iwmmxt.dat): Adjust the path for
1388         dependencies.
1389         * features/arm-core.xml: Moved to ...
1390         * features/arm/arm-core.xml: ... it.
1391         * features/arm-fpa.xml: Moved to ...
1392         * features/arm/arm-fpa.xml: ... it.
1393         * features/arm-m-profile.xml: Moved to ...
1394         * features/arm/arm-m-profile.xm: ... it.
1395         * features/arm-vfpv2.xml: Moved to ...
1396         * features/arm/arm-vfpv2.xm: ... it.
1397         * features/arm-vfpv3.xml: Moved to ...
1398         * features/arm/arm-vfpv3.xml: ... it.
1399         * features/arm-with-iwmmxt.c: Moved to ...
1400         * features/arm/arm-with-iwmmxt.c: ... it.
1401         * features/arm-with-iwmmxt.xml: Moved to ...
1402         * features/arm/arm-with-iwmmxt.xml: ... it.
1403         * features/arm-with-m-fpa-layout.c: Moved to ...
1404         * features/arm/arm-with-m-fpa-layout.c: ... it.
1405         * features/arm-with-m-fpa-layout.xml: Moved to ...
1406         * features/arm/arm-with-m-fpa-layout.xml: ... it.
1407         * features/arm-with-m-vfp-d16.c: Moved to ...
1408         * features/arm/arm-with-m-vfp-d16.c: ... it.
1409         * features/arm-with-m-vfp-d16.xml: Moved to ...
1410         * features/arm/arm-with-m-vfp-d16.xml: ... it.
1411         * features/arm-with-m.c: Moved to ...
1412         * features/arm/arm-with-m.c: ... it.
1413         * features/arm-with-m.xml: Moved to ...
1414         * features/arm/arm-with-m.xm: ... it.
1415         * features/arm-with-neon.c: Moved to ...
1416         * features/arm/arm-with-neon.c: ... it.
1417         * features/arm-with-neon.xml: Moved to ...
1418         * features/arm/arm-with-neon.xml: ... it.
1419         * features/arm-with-vfpv2.c: Moved to ...
1420         * features/arm/arm-with-vfpv2.c: ... it.
1421         * features/arm-with-vfpv2.xml: Moved to ...
1422         * features/arm/arm-with-vfpv2.xml: ... it.
1423         * features/arm-with-vfpv3.c: Moved to ...
1424         * features/arm/arm-with-vfpv3.c: ... it.
1425         * features/arm-with-vfpv3.xml: Moved to ...
1426         * features/arm/arm-with-vfpv3.xml: ... it.
1427         * features/xscale-iwmmxt.xml: Moved to ...
1428         * features/arm/xscale-iwmmxt.xml: ... it.
1429
1430 2016-10-03  Antoine Tremblay  <antoine.tremblay@ericsson.com>
1431 2016-10-03  Simon Marchi  <simon.marchi@ericsson.com>
1432
1433         PR gdb/20487
1434         * NEWS: Mention new frame field of =thread-selected event.
1435         * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
1436         (add_com_suppress_notification): New function definition.
1437         (cmd_func): Set and restore the suppress_notification flag.
1438         * cli/cli-deicode.h (struct cmd_list_element)
1439         <suppress_notification>: New field.
1440         * cli/cli-interp.c (cli_suppress_notification): New global variable.
1441         (cli_on_user_selected_context_changed): New function.
1442         (_initialize_cli_interp): Attach to user_selected_context_changed
1443         observer.
1444         * command.h (struct cli_suppress_notification): New structure.
1445         (cli_suppress_notification): New global variable declaration.
1446         (add_com_suppress_notification): New function declaration.
1447         * defs.h (enum user_selected_what_flag): New enum.
1448         (user_selected_what): New enum flag type.
1449         * frame.h (print_stack_frame_to_uiout): New function declaration.
1450         * gdbthread.h (print_selected_thread_frame): New function declaration.
1451         * inferior.c (print_selected_inferior): New function definition.
1452         (inferior_command): Remove printing of inferior/thread/frame switch
1453         notifications, notify user_selected_context_changed observer.
1454         * inferior.h (print_selected_inferior): New function declaration.
1455         * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
1456         suppression to stack-select-frame and thread-select commands.
1457         * mi/mi-interp.c (struct mi_suppress_notification)
1458         <user_selected_context>: Initialize.
1459         (mi_user_selected_context_changed): New function definition.
1460         (_initialize_mi_interp): Attach to user_selected_context_changed.
1461         * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
1462         (mi_execute_command): Handle notification suppression.  Notify
1463         user_selected_context_changed observer on thread change instead of printing
1464         event directly.  Don't send it if command already sends the notification.
1465         (command_notifies_uscc_observer): New function.
1466         (mi_cmd_execute): Don't handle notification suppression.
1467         * mi/mi-main.h (struct mi_suppress_notification)
1468         <user_selected_context>: New field.
1469         * stack.c (print_stack_frame_to_uiout): New function definition.
1470         (select_frame_command): Notify user_selected_context_changed
1471         observer.
1472         (frame_command): Call print_selected_thread_frame if there's no frame
1473         change or notify user_selected_context_changed observer if there is.
1474         (up_command): Notify user_selected_context_changed observer.
1475         (down_command): Likewise.
1476         (_initialize_stack): Suppress user_selected_context notification for
1477         command select-frame.
1478         * thread.c (thread_command): Notify
1479         user_selected_context_changed if the thread has changed, print
1480         thread info directly if it hasn't.
1481         (do_captured_thread_select): Do not print thread switch event.
1482         (print_selected_thread_frame): New function definition.
1483         * tui/tui-interp.c (tui_on_user_selected_context_changed):
1484         New function definition.
1485         (_initialize_tui_interp): Attach to user_selected_context_changed
1486         observer.
1487
1488 2016-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1489
1490         PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
1491         * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
1492         Use it.
1493         * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
1494         * infcmd.c (setup_inferior): Update caller.
1495         * remote.c (remote_add_inferior): Likewise.
1496
1497 2016-09-28  Pedro Alves  <palves@redhat.com>
1498
1499         * infcall.c (run_inferior_call): Remove input from the event
1500         loop while running the infcall.
1501
1502 2016-09-27  Fredrik Hederstierna  <fredrik.hederstierna@verisure.com>
1503
1504         * arm-tdep.c (arm_m_addr_is_magic): New function.
1505         (arm_addr_bits_remove): Call arm_m_addr_is_magic.
1506         (arm_m_exception_unwind_sniffer): Likewise.
1507
1508 2016-09-23  Jon Turney  <jon.turney@dronecode.org.uk>
1509
1510         * windows-nat.c (windows_delete_thread): Adjusting call to
1511         target_mourn_inferior to include ptid_t argument.
1512
1513 2016-09-23  Tom Tromey  <tom@tromey.com>
1514
1515         * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
1516         * utils.c: Don't include dyn-string.h.
1517         (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
1518         * cli/cli-cmds.c: Include <string>.  Don't include dyn-string.h.
1519         (argv_to_string): Rename.  Change return type to std::string.
1520         (alias_command): Use std::string.
1521
1522 2016-09-23  Tom Tromey  <tom@tromey.com>
1523
1524         * objfiles.c: Include <vector>.
1525         (objfile_relocate): Use std::vector.
1526
1527 2016-09-23  Tom Tromey  <tom@tromey.com>
1528
1529         * rust-lang.c: Include <string> and <vector>.
1530         (rust_evaluate_funcall): Use std::vector, std::string.
1531         (rust_evaluate_subexp): Use std::string.
1532         (rust_lookup_symbol_nonlocal): Use std::string.
1533
1534 2016-09-23  Tom Tromey  <tom@tromey.com>
1535
1536         * cp-namespace.c: Include <string>.
1537         (cp_search_static_and_baseclasses)
1538         (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
1539         Use std::string.
1540
1541 2016-09-23  Tom Tromey  <tom@tromey.com>
1542
1543         * break-catch-sig.c: Include <string>.
1544         (signal_catchpoint_print_one): Use std::string.
1545
1546 2016-09-23  Tom Tromey  <tom@tromey.com>
1547
1548         * utils.c (struct restore_ui_out_closure): Remove.
1549         * objfiles.h (terminate_minimal_symbol_table): Don't declare.
1550
1551 2016-09-23  Yao Qi  <yao.qi@linaro.org>
1552
1553         * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
1554         sprintf with xsnprintf.
1555         (linux_xfer_osdata_fds): Likewise.
1556
1557 2016-09-23  Pedro Alves  <palves@redhat.com>
1558
1559         * Makefile.in (SFILES): Add common/new-op.c.
1560         (COMMON_OBS): Add common/new-op.o.
1561         (new-op.o): New rule.
1562         * common/common-exceptions.h: Include <new>.
1563         (struct gdb_quit_bad_alloc): New type.
1564         * common/new-op.c: New file.
1565
1566 2016-09-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1567
1568         * rs6000-tdep.c (ppc_process_record_op31): Fix
1569         regcache_raw_read_unsigned call using the correct parameter type.
1570
1571 2016-09-22  Anton Kolesov  <anton.kolesov@synopsys.com>
1572
1573         * arc-tdep.c: Fix ARI warning for printf(%p).
1574
1575 2016-09-21  Anton Kolesov  <anton.kolesov@synopsys.com>
1576
1577         * MAINTAINERS (Write After Approval): Add Anton Kolesov.
1578
1579 2016-09-21  Anton Kolesov  <anton.kolesov@synopsys.com>
1580
1581         * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
1582         (HFILES_NO_SRCDIR): Add arc-tdep.h.
1583         (ALLDEPFILES): Add arc-tdep.c.
1584         * NEWS: Mention new ARC port.
1585         * configure.tgt: Add ARC.
1586         * arc-tdep.c: New file.
1587         * arc-tdep.h: New file.
1588         * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
1589         * features/arc-v2.xml: New file.
1590         * features/arc-v2.c: New file (generated).
1591         * features/arc-arcompact.xml: New file.
1592         * features/arc-arcompact.c: New file (generated).
1593
1594 2016-09-21  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1595
1596         * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
1597         handlers.
1598
1599 2016-09-21  Tom Tromey  <tom@tromey.com>
1600
1601         PR gdb/20604:
1602         * top.h (quit_force): Update.
1603         * top.c (quit_force): Changed type of first argument.  Don't
1604         evaluate expression.  Pass NULL to kill_or_detach.
1605         * cli/cli-cmds.c (quit_command): Evaluate "args".
1606
1607 2016-09-21  Simon Marchi  <simon.marchi@ericsson.com>
1608
1609         * .gitignore: Ignore more files.
1610         * data-directory/.gitignore: Likewise.
1611
1612 2016-09-21  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1613
1614         * rs6000-tdep.c (PPC_DQ): New macro.
1615         (ppc_process_record_op4): Add Power ISA 3.0 instructions.
1616         (ppc_process_record_op19): Likewise.
1617         (ppc_process_record_op31): Likewise.
1618         (ppc_process_record_op59): Likewise.
1619         (ppc_process_record_op60): Likewise.
1620         (ppc_process_record_op63): Likewise.
1621         (ppc_process_record): Likewise.
1622         (ppc_process_record_op61): New function.
1623
1624 2016-09-21  Yao Qi  <yao.qi@linaro.org>
1625
1626         * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
1627         bits 20 to 23.
1628
1629 2016-09-20  Tom Tromey  <tom@tromey.com>
1630
1631         * python/py-value.c (convert_value_from_python): Make PyInt_Check
1632         conditional on Python 2.
1633         * python/py-arch.c (archpy_disassemble): Make PyInt_Check
1634         conditional on Python 2.
1635
1636 2016-09-20  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1637
1638         * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
1639         Word instructions.
1640
1641 2016-09-20  Sergio Durigan Junior  <sergiodj@redhat.com>
1642
1643         * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
1644         'resume_ptid' to 'target_mourn_inferior'.  Fix regression
1645         introduced by my last commit.
1646
1647 2016-09-19  Pedro Alves  <palves@redhat.com>
1648
1649         * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
1650         textdomain, bindtextdomain): Delete macros.
1651         * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
1652         textdomain calls.
1653
1654 2016-09-19  Sergio Durigan Junior  <sergiodj@redhat.com>
1655
1656         * darwin-nat.c (darwin_kill_inferior): Adjusting call to
1657         target_mourn_inferior to include ptid_t argument.
1658         * fork-child.c (startup_inferior): Likewise.
1659         * gnu-nat.c (gnu_kill_inferior): Likewise.
1660         * inf-ptrace.c (inf_ptrace_kill): Likewise.
1661         * infrun.c (handle_inferior_event_1): Likewise.
1662         * linux-nat.c (linux_nat_attach): Likewise.
1663         (linux_nat_kill): Likewise.
1664         * nto-procfs.c (interrupt_query): Likewise.
1665         (procfs_interrupt): Likewise.
1666         (procfs_kill_inferior): Likewise.
1667         * procfs.c (procfs_kill_inferior): Likewise.
1668         * record.c (record_mourn_inferior): Likewise.
1669         * remote-sim.c (gdbsim_kill): Likewise.
1670         * remote.c (remote_detach_1): Likewise.
1671         (remote_kill): Likewise.
1672         * target.c (target_mourn_inferior): Change declaration to accept
1673         new ptid_t argument; use gdb_assert on it.
1674         * target.h (target_mourn_inferior): Move function prototype from
1675         here...
1676         * target/target.h (target_mourn_inferior): ... to here.  Adjust it
1677         to accept new ptid_t argument.
1678         * windows-nat.c (get_windows_debug_event): Adjusting call to
1679         target_mourn_inferior to include ptid_t argument.
1680
1681 2016-09-18  Pedro Alves  <palves@redhat.com>
1682
1683         * s390-linux-nat.c: Include <algorithm>.
1684
1685 2016-09-18  Pedro Alves  <palves@redhat.com>
1686
1687         * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
1688         specify the std:min/std::max specialization.
1689         * exec.c (section_table_read_available_memory): Likewise.
1690         * remote.c (remote_read_qxfer): Likewise.
1691         * target.c (simple_verify_memory): Likewise.
1692
1693 2016-09-16  Simon Marchi  <simark@simark.ca>
1694
1695         * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
1696         (print_stop_event): Use make_cleanup_restore_current_uiout.
1697         * python/python.c (execute_gdb_command): Likewise.
1698         * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
1699         (make_cleanup_restore_current_uiout): New function definition.
1700         * ui-out.h (make_cleanup_restore_current_uiout): New function
1701         declaration.
1702         * utils.c (do_restore_ui_out): Remove.
1703         (make_cleanup_restore_ui_out): Remove.
1704         * utils.h (make_cleanup_restore_ui_out): Remove.
1705
1706 2016-09-16  Pedro Alves  <palves@redhat.com>
1707
1708         * defs.h (min, max): Delete.
1709         * aarch64-tdep.c: Include <algorithm> and use std::min and
1710         std::max throughout.
1711         * aarch64-tdep.c: Likewise.
1712         * alpha-tdep.c: Likewise.
1713         * amd64-tdep.c: Likewise.
1714         * amd64-windows-tdep.c: Likewise.
1715         * arm-tdep.c: Likewise.
1716         * avr-tdep.c: Likewise.
1717         * breakpoint.c: Likewise.
1718         * btrace.c: Likewise.
1719         * ctf.c: Likewise.
1720         * disasm.c: Likewise.
1721         * doublest.c: Likewise.
1722         * dwarf2loc.c: Likewise.
1723         * dwarf2read.c: Likewise.
1724         * environ.c: Likewise.
1725         * exec.c: Likewise.
1726         * f-exp.y: Likewise.
1727         * findcmd.c: Likewise.
1728         * ft32-tdep.c: Likewise.
1729         * gcore.c: Likewise.
1730         * hppa-tdep.c: Likewise.
1731         * i386-darwin-tdep.c: Likewise.
1732         * i386-tdep.c: Likewise.
1733         * linux-thread-db.c: Likewise.
1734         * lm32-tdep.c: Likewise.
1735         * m32r-tdep.c: Likewise.
1736         * m88k-tdep.c: Likewise.
1737         * memrange.c: Likewise.
1738         * minidebug.c: Likewise.
1739         * mips-tdep.c: Likewise.
1740         * moxie-tdep.c: Likewise.
1741         * nds32-tdep.c: Likewise.
1742         * nios2-tdep.c: Likewise.
1743         * nto-procfs.c: Likewise.
1744         * parse.c: Likewise.
1745         * ppc-sysv-tdep.c: Likewise.
1746         * probe.c: Likewise.
1747         * record-btrace.c: Likewise.
1748         * remote.c: Likewise.
1749         * rs6000-tdep.c: Likewise.
1750         * rx-tdep.c: Likewise.
1751         * s390-linux-nat.c: Likewise.
1752         * s390-linux-tdep.c: Likewise.
1753         * ser-tcp.c: Likewise.
1754         * sh-tdep.c: Likewise.
1755         * sh64-tdep.c: Likewise.
1756         * source.c: Likewise.
1757         * sparc-tdep.c: Likewise.
1758         * symfile.c: Likewise.
1759         * target-memory.c: Likewise.
1760         * target.c: Likewise.
1761         * tic6x-tdep.c: Likewise.
1762         * tilegx-tdep.c: Likewise.
1763         * tracefile-tfile.c: Likewise.
1764         * tracepoint.c: Likewise.
1765         * valprint.c: Likewise.
1766         * value.c: Likewise.
1767         * xtensa-tdep.c: Likewise.
1768         * cli/cli-cmds.c: Likewise.
1769         * compile/compile-object-load.c: Likewise.
1770
1771 2016-09-16  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1772
1773         * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
1774         (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
1775         (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
1776         (PER_CONTROL_ALTERATION): New macros.
1777         (struct s390_debug_reg_state) <break_areas>: New member.
1778         (s390_forget_process): Free break_areas as well.
1779         (s390_linux_new_fork): Copy break_areas as well.
1780         (s390_prepare_to_resume): Install hardware breakpoints.
1781         (s390_can_use_hw_breakpoint): Indicate support for hardware
1782         breakpoints.
1783         (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
1784         linux_nat target methods.
1785         (_initialize_s390_nat): Register them.
1786
1787 2016-09-16  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1788
1789         * nat/linux-nat.h (lwp_is_stepping): New declaration.
1790         * linux-nat.c (lwp_is_stepping): New function.
1791
1792 2016-09-16  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1793
1794         * s390-linux-nat.c (gdbcmd.h): New include.
1795         (s390_show_debug_regs): New function.
1796         (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
1797         (s390_prepare_to_resume): Likewise.
1798         (_initialize_s390_nat): Register the command "maint set
1799         show-debug-regs".
1800
1801 2016-09-16  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1802
1803         * s390-linux-nat.c (watch_areas): Remove variable.  Replace by a
1804         member of...
1805         (struct s390_debug_reg_state): ...this.  New struct.
1806         (struct s390_process_info): New struct.
1807         (s390_process_list): New variable.
1808         (s390_find_process_pid, s390_add_process, s390_process_info_get)
1809         (s390_get_debug_reg_state): New functions.
1810         (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
1811         s390_get_debug_reg_state.
1812         (s390_prepare_to_resume): Likewise.
1813         (s390_insert_watchpoint): Likewise.
1814         (s390_remove_watchpoint): Likewise.
1815         (s390_forget_process, s390_linux_new_fork): New linux_nat target
1816         methods.
1817         (_initialize_s390_nat): Register them.
1818
1819 2016-09-16  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1820
1821         * s390-linux-nat.c (s390_watch_area): New typedef.  Define a VEC.
1822         (watch_base): Remove variable.
1823         (watch_areas): New variable.
1824         (s390_stopped_by_watchpoint): Transform operations on the
1825         watch_base list to equivalent operations on the watch_areas VEC.
1826         (s390_prepare_to_resume): Likewise.
1827         (s390_insert_watchpoint): Likewise.
1828         (s390_remove_watchpoint): Likewise.
1829
1830 2016-09-16  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1831
1832         * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
1833         functions instead of accessing lwp_info structure members.
1834         (s390_mark_per_info_changed): New function.
1835         (s390_new_thread): Use it.
1836         (s390_refresh_per_info_cb): New function.
1837         (s390_refresh_per_info): Remove parameter.  Refresh all lwps of
1838         the current process.
1839         (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
1840         (s390_remove_watchpoint): Likewise.
1841
1842 2016-09-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1843
1844         * elfread.c (auxv.h): New include.
1845         (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
1846
1847 2016-09-08  Tom Tromey  <tom@tromey.com>
1848
1849         * remote.c (remote_notif_stop_ack, remote_wait_as)
1850         (show_remote_cmd): Remove unneeded casts.
1851
1852 2016-09-06  Pedro Alves  <palves@redhat.com>
1853
1854         * top.c (wait_sync_command_done): Don't assume current_ui doesn't
1855         change across events.  Restore the current UI before returning.
1856         (gdb_readline_wrapper): Restore the current UI before returning.
1857
1858 2016-09-06  Pedro Alves  <palves@redhat.com>
1859
1860         * event-top.c (restore_ui_cleanup): Now static.
1861         (make_cleanup_restore_current_ui): New function.
1862         (switch_thru_all_uis_init): Use it.
1863         * infcall.c (call_thread_fsm_should_stop): Use it.
1864         * infrun.c (fetch_inferior_event): Use it.
1865         * top.c (new_ui_command): Use it.
1866         * top.h (restore_ui_cleanup): Delete declaration.
1867         (make_cleanup_restore_current_ui): New declaration.
1868
1869 2016-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1870
1871         * i386-tdep.c (i386_floatformat_for_type): New function.
1872         (i386_gdbarch_init): Install it.
1873         * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
1874         (ppc_linux_init_abi): Install it.
1875
1876 2016-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1877
1878         * gdbarch.sh (floatformat_for_type): New gdbarch callback.
1879         * gdbarch.h, gdbarch.c: Re-generate.
1880         * arch-utils.h (default_floatformat_for_type): New prototype.
1881         * arch-utils.c (default_floatformat_for_type): New function.
1882
1883         * doublest.c (floatformat_from_length): Remove.
1884         (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
1885         * gdbtypes.c (verify_floatformat): Require non-NULL format.
1886
1887         * dwarf2read.c (dwarf2_init_float_type): New function.
1888         (read_base_type): Use it.
1889         * stabsread.c (dbx_init_float_type): New function.
1890         (read_sun_floating_type): Use it.
1891         (read_range_type): Likewise.
1892
1893 2016-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1894
1895         * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
1896         platform ABI floating-point formats for built-in types.
1897         * d-lang.c (build_d_types): Likewise.
1898         * f-lang.c (build_fortran_types): Likewise.
1899         * m2-lang.c (build_m2_types): Likewise.
1900         * mdebugread.c (basic_type): Likewise.
1901
1902         * go-lang.c (build_go_types): Use IEEE floating-point formats
1903         for language built-in types as mandanted by the language.
1904         * jv-lang.c (build_java_types): Likewise.
1905         * rust-lang.c (rust_language_arch_info): Likewise.
1906         * stabsread.c (rs6000_builtin_type): Likewise.
1907
1908 2016-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1909
1910         * gdbtypes.c (init_type): Remove "char" special case.
1911         (arch_integer_type): Likewise.
1912         (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
1913         (objfile_type): Likewise.
1914         * mdebugread.c (basic_type): Likewise.
1915         * stabsread.c (rs6000_builtin_type): Likewise.
1916
1917 2016-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1918
1919         * gdbtypes.h (enum type_flag_value): Remove.
1920         Remove references to TYPE_FLAG_... in comments throughout.
1921         * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_... 
1922         flags, print the corresponding TYPE_... access macro names.
1923         Remove references to TYPE_FLAG_... in comments throughout.
1924         * infcall.c: Remove references to TYPE_FLAG_... in comments.
1925         * valprint.c: Likewise.
1926         * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
1927         values, only TYPE_INSTANCE_FLAG_... values.
1928         (class TypeFlagsPrinter): Likewise.
1929
1930 2016-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1931
1932         * gdbtypes.h (init_type): Remove FLAGS argument.  Move OBJFILE
1933         argument to first position.
1934         (init_integer_type): New prototype.
1935         (init_character_type): Likewise.
1936         (init_boolean_type): Likewise.
1937         (init_float_type): Likewise.
1938         (init_decfloat_type): Likewise.
1939         (init_complex_type): Likewise.
1940         (init_pointer_type): Likewise.
1941         * gdbtypes.c (verify_floatflormat): New function.
1942         (init_type): Remove FLAGS argument and processing.  Move OBJFILE
1943         argument to first position.
1944         (init_integer_type): New function.
1945         (init_character_type): Likewise.
1946         (init_boolean_type): Likewise.
1947         (init_float_type): Likewise.
1948         (init_decfloat_type): Likewise.
1949         (init_complex_type): Likewise.
1950         (init_pointer_type): Likewise.
1951         (arch_float_type): Use verify_floatflormat.
1952         (objfile_type): Use init_..._type helpers instead of calling
1953         init_type directly.
1954         * dwarf2read.c (fixup_go_packaging): Update to changed init_type
1955         prototype.
1956         (read_namespace_type): Likewise.
1957         (read_module_type): Likewise.
1958         (read_typedef): Likewise.
1959         (read_unspecified_type): Likewise.
1960         (build_error_marker_type): Likewise.
1961         (read_base_type): Use init_..._type helpers.
1962         * mdebugread.c (basic_type): Use init_..._type helpers.
1963         (parse_type): Update to changed init_type prototype.
1964         (cross_ref): Likewise.
1965         * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
1966         (read_sun_builtin_type): Likewise.
1967         (read_sun_floating_type): Likewise.
1968         (read_range_type): Likewise.  Also update to changed init_type
1969         prototype.
1970
1971 2016-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1972
1973         * gdbtypes.h (arch_decfloat_type): New prototype.
1974         (arch_pointer_type): Likewise.
1975         * gdbtypes.c (arch_decfloat_type): New function.
1976         (arch_pointer_type): Likewise.
1977         (gdbtypes_post_init): Use arch_decfloat_type.
1978         * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
1979         * ft32-tdep.c (ft32_gdbarch_init): Likewise.
1980         * m32c-tdep.c (make_types): Likewise.
1981         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1982
1983 2016-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1984
1985         * gdbtypes.c (set_type_code): New function.
1986         (init_type, arch_type): Use it.
1987
1988 2016-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1989
1990         * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
1991         instead of gdbarch_double_bit for "long_long_float".
1992
1993 2016-09-05  Pedro Alves  <palves@redhat.com>
1994
1995         * NEWS: Mention that a C++ compiler is now required.
1996         * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
1997         (COMPILE.pre, CC_LD): Use CXX directly.
1998         (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
1999         * acinclude.m4: Don't include build-with-cxx.m4.
2000         * build-with-cxx.m4: Delete file.
2001         * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
2002         * warning.m4: Assume $enable_build_with_cxx is yes.
2003         * configure: Regenerate.
2004
2005 2016-09-05  Pedro Alves  <palves@redhat.com>
2006
2007         PR backtrace/19927
2008         * frame.c (get_frame_id): Compute the frame id if not computed
2009         yet.
2010         (unwind_to_current_frame): Delete.
2011         (get_current_frame): Use get_prev_frame_always_1 to get the
2012         current frame and assert that that always succeeds.
2013         (get_prev_frame_if_no_cycle): Skip cycle detection if returning
2014         the current frame.
2015
2016 2016-09-02  Tom Tromey  <tom@tromey.com>
2017
2018         PR gdb/11616:
2019         * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
2020         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
2021         DW_OP_form_tls_address.
2022         (locexpr_describe_location_piece): Likewise.
2023         * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
2024         * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
2025         (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
2026         * compile/compile-loc2c.c (struct insn_info): Update comment.
2027         (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
2028
2029 2016-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2030
2031         * target.c (target_wait): Mention that the function's prototype
2032         can be found at target/target.h.
2033         * target.h (target_wait): Move prototype from here...
2034         * target/target.h (target_wait): ... to here.
2035
2036 2016-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2037
2038         * fork-child.c (startup_inferior): Replace calls to target_resume
2039         by target_continue{,_no_signal}, depending on the case.
2040         * linux-nat.c (cleanup_target_stop): Call
2041         target_continue_no_signal instead of target_resume.
2042         * procfs.c (procfs_wait): Likewise.
2043         * target.c (target_continue): New function.
2044         * target/target.h (target_continue): New prototype.
2045
2046 2016-08-31  Yao Qi  <yao.qi@linaro.org>
2047
2048         * record-full.c (record_full_insert_breakpoint): Fix typo.
2049
2050 2016-08-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2051
2052         * thread.c (tp_array_compar): Insert missing parentheses.
2053
2054 2016-08-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2055
2056         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
2057         designated initializer list by plain initializer list, for C++
2058         compliance.
2059
2060 2016-08-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2061
2062         * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
2063         struct ps_prochandle.
2064         * amd64-linux-nat.c (ps_get_thread_area): Likewise.
2065         * arm-linux-nat.c (ps_get_thread_area): Likewise.
2066         * gdb_proc_service.h (ps_get_thread_area): Likewise.
2067         * i386-linux-nat.c (ps_get_thread_area): Likewise.
2068         * m68klinux-nat.c (ps_get_thread_area): Likewise.
2069         * mips-linux-nat.c (ps_get_thread_area): Likewise.
2070         * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
2071         * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
2072         * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
2073
2074 2016-08-24  Simon Marchi  <simon.marchi@ericsson.com>
2075
2076         * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
2077         NULL if terminal_name is an empty string.
2078         (_initialize_infcmd): Make the argument of "set inferior-tty"
2079         optional, mention it in the help doc.
2080
2081 2016-08-24  Carl Love  <cel@us.ibm.com>
2082
2083         * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
2084         set_gdbarch_deprecated_fp_regnum() architecture
2085         initialization function.
2086
2087 2016-08-23  Simon Marchi  <simon.marchi@ericsson.com>
2088
2089         * stack.c (parse_frame_specification): Fix typo in comment.
2090
2091 2016-08-23  Pedro Alves  <palves@redhat.com>
2092
2093         PR gdb/20494
2094         * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
2095         comments.
2096         (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
2097         Delete.
2098         (set_initial_gdb_ttystate): Record our_terminal_info here too,
2099         instead of ...
2100         (gdb_has_a_terminal): ... here.  Reimplement in terms of
2101         initial_gdb_ttystate.  Make static.
2102         * terminal.h (gdb_has_a_terminal): Delete declaration.
2103         (set_initial_gdb_ttystate): Add comment.
2104         * top.c (show_interactive_mode): Use input_interactive_p instead
2105         of gdb_has_a_terminal.
2106
2107 2016-08-22  Pedro Alves  <palves@redhat.com>
2108
2109         PR gdb/20505
2110         * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
2111         find the vDSO's start address with AT_SYSINFO_EHDR too, and
2112         determine the vDSO's size by finding the PT_LOAD segment that
2113         matches AT_SYSINFO_EHDR.
2114
2115 2016-08-19  Yao Qi  <yao.qi@linaro.org>
2116
2117         * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
2118         based STP instruction.
2119
2120 2016-08-19  Yao Qi  <yao.qi@linaro.org>
2121
2122         * completer.c (linespec_location_completer): Make file_to_match
2123         null-terminated.
2124
2125 2016-08-19  Pedro Alves  <palves@redhat.com>
2126
2127         * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
2128         addresses over 0x7fffffff.
2129
2130 2016-08-18  Carl Love  <cel@us.ibm.com>
2131
2132         * MAINTANERS Write After Approval): Add "Carl Love".
2133
2134 2016-08-18  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2135
2136         * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
2137
2138 2016-08-17  Simon Marchi  <simon.marchi@ericsson.com>
2139
2140         * inferior.c (remove_inferior_command): Fix error message.
2141
2142 2016-08-17  Simon Marchi  <simon.marchi@ericsson.com>
2143
2144         * inferior.c (exit_inferior_1): Remove comment.
2145
2146 2016-08-15  Matthew Wahab  <matthew.wahab@arm.com>
2147
2148         PR gdb/20457
2149         * gdb_proc_service.h: Add an include of gregset.h
2150         [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
2151
2152 2016-08-15  Yao Qi  <yao.qi@linaro.org>
2153
2154         * location.c (explicit_location_lex_one): Compare the return
2155         value of strncmp with zero.  Don't check (*inp)[9].  Increment
2156         *inp by 8.
2157
2158 2016-08-11  Pedro Alves  <palves@redhat.com>
2159
2160         PR gdb/20413
2161         * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
2162         "gregset.h".
2163
2164 2016-08-10  Pedro Alves  <palves@redhat.com>
2165
2166         PR gdb/19187
2167         * record-full.c (record_full_remove_breakpoint): Don't remove the
2168         breakpoint from the record_full_breakpoints VEC if we're detaching
2169         the breakpoint from a fork child.
2170
2171 2016-08-10  Pedro Alves  <palves@redhat.com>
2172
2173         PR gdb/19187
2174         * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
2175         interface.
2176         * break-catch-syscall.c (remove_catch_syscall):
2177         * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
2178         (remove_breakpoint_1): Pass 'reason' down.
2179         (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
2180         (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
2181         (base_breakpoint_remove_location, bkpt_remove_location)
2182         (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
2183         interface.
2184         * breakpoint.h (enum remove_bp_reason): Moved here from
2185         breakpoint.c.
2186         (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
2187         * corelow.c (core_remove_breakpoint): New function.
2188         (init_core_ops): Install it as to_remove_breakpoint method.
2189         * exec.c (exec_remove_breakpoint): New function.
2190         (init_exec_ops): Install it as to_remove_breakpoint method.
2191         * mem-break.c (memory_remove_breakpoint): Adjust interface.
2192         * record-btrace.c (record_btrace_remove_breakpoint): Adjust
2193         interface.
2194         * record-full.c (record_full_remove_breakpoint)
2195         (record_full_core_remove_breakpoint): Adjust interface.
2196         * remote.c (remote_remove_breakpoint): Adjust interface.
2197         * target-debug.h (target_debug_print_enum_remove_bp_reason): New
2198         macro.
2199         * target-delegates.c: Regenerate.
2200         * target.c (target_remove_breakpoint): Add 'reason' parameter.
2201         * target.h (struct target_ops) <to_remove_breakpoint>: Add
2202         'reason' parameter.
2203         (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
2204         parameter.
2205
2206 2016-08-10  Pedro Alves  <palves@redhat.com>
2207
2208         PR gdb/19187
2209         * breakpoint.c (insertion_state_t): Delete.
2210         (enum remove_bp_reason): New.
2211         (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
2212         Adjust to use enum remove_bp_reason instead of insertion_state_t.
2213
2214 2016-08-10  Pedro Alves  <palves@redhat.com>
2215
2216         PR gdb/19187
2217         * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
2218         always pass mark_uninserted to remove_breakpoint_1.
2219         (insert_breakpoint_locations, remove_breakpoints)
2220         (remove_breakpoints_pid, update_global_location_list): Update
2221         callers.
2222
2223 2016-08-10  Руслан Ижбулатов  <lrn1986@gmail.com>
2224             Pedro Alves  <palves@redhat.com>
2225
2226         * windows-nat.c (MS_VC_EXCEPTION): New define.
2227         (handle_exception_result): New enum.
2228         (windows_delete_thread): Free the thread's name.
2229         (handle_exception): Handle MS_VC_EXCEPTION.
2230         (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
2231         (windows_thread_name): New function.
2232         (windows_target): Install it as to_thread_name method.
2233         * NEWS: Mention the thread naming support on MS-Windows.
2234
2235 2016-08-10  Pedro Alves  <palves@redhat.com>
2236
2237         * common/signals-state-save-restore.c
2238         (save_original_signals_state, restore_original_signals_state):
2239         Wrap perror_with_name arguments with '()'.
2240
2241 2016-08-09  Pedro Alves  <palves@redhat.com>
2242
2243         PR gdb/20418
2244         * event-top.c (ui_register_input_event_handler)
2245         (ui_unregister_input_event_handler): New functions.
2246         (async_enable_stdin): Register input in the event loop.
2247         (async_disable_stdin): Unregister input from the event loop.
2248         (gdb_setup_readline): Register input in the event loop.
2249         * infrun.c (check_curr_ui_sync_execution_done): Register input in
2250         the event loop.
2251         * target.c (target_terminal_inferior): Don't unregister input from
2252         the event loop.
2253         (target_terminal_ours): Don't register input in the event loop.
2254         * target.h (target_terminal_inferior)
2255         (target_terminal_ours_for_output, target_terminal_ours): Update
2256         comments.
2257         * top.h (ui_register_input_event_handler)
2258         (ui_unregister_input_event_handler): New declarations.
2259         * utils.c (ui_unregister_input_event_handler_cleanup)
2260         (prepare_to_handle_input): New functions.
2261         (defaulted_query, prompt_for_continue): Use
2262         prepare_to_handle_input.
2263
2264 2016-08-09  Pedro Alves  <palves@redhat.com>
2265
2266         PR mi/20431
2267         * mi/mi-main.c (mi_execute_command): Enable input and set prompt
2268         state to PROMPT_NEEDED.
2269
2270 2016-08-09  Pedro Alves  <palves@redhat.com>
2271
2272         PR gdb/18653
2273         * Makefile.in (SFILES): Add
2274         common/signals-state-save-restore.c.
2275         (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
2276         (COMMON_OBS): Add signals-state-save-restore.o.
2277         (signals-state-save-restore.o): New rule.
2278         * configure: Regenerate.
2279         * fork-child.c: Include "signals-state-save-restore.h".
2280         (fork_inferior): Call restore_original_signals_state.
2281         * main.c: Include "signals-state-save-restore.h".
2282         (captured_main): Call save_original_signals_state.
2283         * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
2284         * common/signals-state-save-restore.c: New file.
2285         * common/signals-state-save-restore.h: New file.
2286
2287 2016-08-09  Pedro Alves  <palves@redhat.com>
2288
2289         * value.c (unpack_value_bitfield): Skip unpacking if the parent
2290         has no contents buffer to begin with.
2291
2292 2016-08-08  Pedro Alves  <palves@redhat.com>
2293
2294         * features/i386/amd64-avx-mpx-linux.c: Regenerate.
2295         * features/i386/amd64-avx-mpx.c: Regenerate.
2296         * features/i386/i386-avx-mpx-linux.c: Regenerate.
2297         * features/i386/i386-avx-mpx.c: Regenerate.
2298
2299 2016-08-05  Simon Marchi  <simon.marchi@ericsson.com>
2300
2301         * event-top.h (cli_command_loop): Remove.
2302
2303 2016-08-05  Pedro Alves  <palves@redhat.com>
2304
2305         PR remote/20398
2306         * remote-fileio.c (remote_fileio_quit_handler): Check the quit
2307         flag before calling quit.
2308
2309 2016-08-05  Pedro Alves  <palves@redhat.com>
2310
2311         * NEWS: Mention that GDB and GDBserver build with a C++ compiler
2312         by default.
2313
2314 2016-08-05  Pedro Alves  <palves@redhat.com>
2315
2316         * build-with-cxx.m4: Change help string to be in terms of
2317         --disable-build-with-cxx.
2318         * configure: Regenerate.
2319
2320 2016-08-04  Yao Qi  <yao.qi@linaro.org>
2321
2322         * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
2323         declaration.
2324         (aarch64_linux_read_description): Remove code on getting
2325         auxv and select target description on it.  Select target
2326         description by the result of NT_ARM_VFP ptrace request.
2327
2328 2016-08-03  Tom Tromey  <tom@tromey.com>
2329
2330         PR python/18565:
2331         * python/py-frame.c (frapy_function): Use find_frame_funname.
2332
2333 2016-08-03  Tom Tromey  <tom@tromey.com>
2334
2335         * stack.c (find_frame_funname): Avoid any possible leak in case
2336         cp_remove_params can throw.
2337
2338 2016-08-03  Tom Tromey  <tom@tromey.com>
2339
2340         * NEWS: Mention new Python breakpoint events.
2341
2342 2016-08-02  Tom Tromey  <tom@tromey.com>
2343
2344         * MAINTAINERS (Core): Add self as Rust maintainer.
2345
2346 2016-08-01  Joel Brobecker  <brobecker@adacore.com>
2347
2348         * NEWS: Create a new section for the next release branch.
2349         Rename the section of the current branch, now that it has
2350         been cut.
2351
2352 2016-08-01  Joel Brobecker  <brobecker@adacore.com>
2353
2354         GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
2355         * version.in: Bump version to 7.12.50.DATE-git.
2356
2357 2016-07-27  Alan Modra  <amodra@gmail.com>
2358
2359         * amd64-darwin-tdep.c: Don't include libbfd.h.
2360         * i386-darwin-tdep.c: Likewise.
2361         * rs6000-nat.c: Likewise.
2362         * rs6000-tdep.c: Likewise.
2363
2364 2016-07-26  Tom Tromey  <tom@tromey.com>
2365
2366         * symtab.c (register_symbol_computed_impl): Update.
2367         PR python/20190:
2368         * value.h (symbol_read_needs): Declare.
2369         (symbol_read_needs_frame): Add comment.
2370         * symtab.h (struct symbol_computed_ops) <read_variable>: Update
2371         comment.
2372         <get_symbol_read_needs>: Rename.  Change return type.
2373         * findvar.c (symbol_read_needs): New function.
2374         (symbol_read_needs_frame): Rewrite.
2375         (default_read_var_value): Use symbol_read_needs.
2376         * dwarf2loc.c (struct symbol_needs_baton): Rename.
2377         <needs>: Renamed from needs_frame.  Changed type.
2378         (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
2379         (symbol_needs_read_mem, symbol_needs_frame_base)
2380         (symbol_needs_frame_cfa, symbol_needs_tls_address)
2381         (symbol_needs_dwarf_call): Rename.
2382         (needs_dwarf_reg_entry_value): Update.
2383         (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
2384         Rename and update.
2385         (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
2386         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
2387         * defs.h (enum symbol_needs_kind): New.
2388
2389 2016-07-26  Pedro Alves  <palves@redhat.com>
2390
2391         * nat/linux-ptrace.c: Include "gregset.h".
2392         (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
2393         PTRACE_PEEKUSER.
2394
2395 2016-07-26  Pedro Alves  <palves@redhat.com>
2396
2397         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
2398         parameter to 'ptrace'.
2399         * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
2400         (nat_uptr_t): New an unsigned long.
2401         (nat_clock_t): Remove attribute __aligned__.
2402         (struct nat_timeval): Delete.
2403         (nat_siginfo_t): Remove attribute __aligned__.
2404         (ptrace_siginfo_t): Define.
2405         (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
2406         (compat_x32_siginfo_from_siginfo)
2407         (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
2408         Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
2409         Remove casts.
2410         (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
2411         'ptrace'.  Remove static assertions.
2412         (top level): New static assertions.
2413
2414 2016-07-25  Simon Marchi  <simon.marchi@ericsson.com>
2415
2416         * top.h (make_delete_ui_cleanup): New declaration.
2417         * top.c (delete_ui_cleanup): New function.
2418         (make_delete_ui_cleanup): New function.
2419         (new_ui_command): Create restore_ui cleanup earlier, create a
2420         delete_ui cleanup and discard it on success.
2421
2422 2016-07-25  Pedro Alves  <palves@redhat.com>
2423             Jan Kratochvil  <jan.kratochvil@redhat.com>
2424
2425         * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
2426         't'.
2427
2428 2016-07-25  Pedro Alves  <palves@redhat.com>
2429
2430         * nat/linux-procfs.c (enum proc_state): New enum.
2431         (parse_proc_status_state): New function.
2432         (linux_proc_pid_get_state): Replace output string buffer parameter
2433         with an output proc_state parameter.  Use parse_proc_status_state.
2434         (linux_proc_pid_is_gone): Adjust to use proc_state values.
2435         (linux_proc_pid_has_state): Change type of 'state' parameter; now
2436         an enum proc_state.  Adjust to linux_proc_pid_get_state interface
2437         change.
2438         (linux_proc_pid_is_stopped)
2439         (linux_proc_pid_is_trace_stopped_nowarn)
2440         (linux_proc_pid_is_zombie_maybe_warn): Adjust to
2441         linux_proc_pid_get_state interface change.
2442
2443 2016-07-25  Tim Wiederhake  <tim.wiederhake@intel.com>
2444
2445         * MAINTAINERS (Write After Approval): Add Tim Wiederhake
2446
2447 2016-07-25  Tim Wiederhake  <tim.wiederhake@intel.com>
2448
2449         * NEWS: Resume btrace on reconnect.
2450         * record-btrace.c: Added record-btrace.h include.
2451         (record_btrace_open): Split into this and ...
2452         (record_btrace_push_target): ... this.
2453         (record_btrace_disconnect): New function.
2454         (init_record_btrace_ops): Use record_btrace_disconnect.
2455         * record-btrace.h: New file.
2456         * remote.c: Added record-btrace.h include.
2457         (remote_start_remote): Check recording status.
2458         (remote_btrace_maybe_reopen): New function.
2459
2460 2016-07-23  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2461
2462         * xml-syscall.c (get_syscalls_by_group): New.
2463         (get_syscall_group_names): New.
2464         (struct syscall_group_desc): New structure to store group data.
2465         (struct syscalls_info): Include field to store the group list.
2466         (sysinfo_free_syscall_group_desc): New.
2467         (free_syscalls_info): Free group list.
2468         (syscall_group_create_syscall_group_desc): New.
2469         (syscall_group_add_syscall): New.
2470         (syscall_create_syscall_desc): Add syscall to its groups.
2471         (syscall_start_syscall): Load group attribute.
2472         (syscall_group_get_group_by_name): New.
2473         (xml_list_syscalls_by_group): New.
2474         (xml_list_of_groups): New.
2475         * xml-syscall.h (get_syscalls_by_group): Export function
2476         to retrieve a list of syscalls filtered by the group name.
2477         (get_syscall_group_names): Export function to retrieve the list
2478         of syscall groups.
2479         * break-catch-syscall.c (catch_syscall_split_args): Verify if
2480         argument is a syscall group and expand it to a list of syscalls
2481         when creating catchpoints.
2482         (catch_syscall_completer): Add word completion for system call
2483         groups.
2484         * configure.ac: Include dependency for xsltproc when building
2485         in maintainer-mode.
2486         * break-catch-syscall.c (_initialize_breakpoint): Update catch
2487         syscall command documentation.
2488         * NEWS: Include section about catching groups of syscalls.
2489         * configure: Regenerate.
2490         * data-directory/Makefile.in: Generate syscall xml when building
2491         in maintainer mode.
2492         * syscalls/gdb-syscalls.dtd: Include group attribute to the
2493         syscall element.
2494         * syscalls/apply-defaults.xsl: New.
2495         * syscalls/linux-defaults.xml.in: New.
2496         * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
2497         * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
2498         * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
2499         * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
2500         * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
2501         * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
2502         * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
2503         * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
2504         * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
2505         * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
2506         * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
2507         * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
2508         * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
2509         * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
2510         * syscalls/aarch64-linux.xml: Regenerate.
2511         * syscalls/amd64-linux.xml: Regenerate.
2512         * syscalls/arm-linux.xml: Regenerate.
2513         * syscalls/i386-linux.xml: Regenerate.
2514         * syscalls/mips-n32-linux.xml: Regenerate.
2515         * syscalls/mips-n64-linux.xml: Regenerate.
2516         * syscalls/mips-o32-linux.xml: Regenerate.
2517         * syscalls/ppc-linux.xml: Regenerate.
2518         * syscalls/ppc64-linux.xml: Regenerate.
2519         * syscalls/s390-linux.xml: Regenerate.
2520         * syscalls/s390x-linux.xml: Regenerate.
2521         * syscalls/sparc-linux.xml: Regenerate.
2522         * syscalls/sparc64-linux.xml: Regenerate.
2523
2524 2016-07-23  Andrew Pinski  <apinski@cavium.com>
2525
2526         * nat/aarch64-linux-hw-point.c
2527         (aarch64_linux_get_debug_reg_capacity): Handle
2528         ARMv8.1 and ARMv8.2 debug versions.
2529         * nat/aarch64-linux-hw-point.h
2530         (AARCH64_DEBUG_ARCH_V8_1): New define.
2531         (AARCH64_DEBUG_ARCH_V8_2): New define.
2532
2533 2016-06-30  Руслан Ижбулатов  <lrn1986@gmail.com>
2534
2535         PR gdb/14529
2536         * windows-nat.c (signal_event_command): New command 'signal-event'
2537         for W32 JIT debug support.
2538         * NEWS: Add an entry about the new 'signal-event' command.
2539
2540 2016-07-22  Tom Tromey  <tom@tromey.com>
2541
2542         PR rust/20162:
2543         * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
2544         Call scan_partial_symbols for children when reading a Rust CU.
2545         (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
2546         rustc.
2547         (process_structure_scope) <DW_TAG_subprogram>: Call
2548         read_func_scope for Rust.
2549
2550 2016-07-22  Yao Qi  <yao.qi@linaro.org>
2551
2552         * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
2553         bt_ctf_get_int64.
2554
2555 2016-07-21  Tom Tromey  <tom@tromey.com>
2556
2557         * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
2558         structs.
2559         * rust-exp.y (struct_expr_list): Allow empty elements.
2560
2561 2016-07-21  Tom Tromey  <tom@tromey.com>
2562
2563         * configure: Rebuild.
2564         * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
2565         -Wunused-but-set-parameter, -Wunused-but-set-variable.
2566
2567 2016-07-21  Pedro Alves  <palves@redhat.com>
2568
2569         * go32-nat.c (go32_create_inferior): Add cast.
2570         * ser-go32.c (dos_noop): Delete.
2571         (dos_flush_output, dos_setparity, dos_drain_output): New
2572         functions.
2573         (dos_write): Add cast.
2574         (dos_ops): Use dos_flush_output, dos_setparity and
2575         dos_drain_output.
2576         * top.c (do_chdir_cleanup): Add cast.
2577
2578 2016-07-21  Pedro Alves  <palves@redhat.com>
2579
2580         * windows-nat.c (handle_exception): Remove "th".
2581
2582 2016-07-21  Pedro Alves  <palves@redhat.com>
2583
2584         * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
2585         scope that uses it.
2586
2587 2016-07-20  John Baldwin  <jhb@FreeBSD.org>
2588
2589         * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
2590         events.
2591         (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
2592         defined.
2593         (fbsd_add_vfork_done): Likewise.
2594         (fbsd_is_vfork_done_pending): Likewise.
2595         (fbsd_next_vfork_done): Likewise.
2596         (fbsd_resume): Only ignore pending vfork done events if
2597         "PTRACE_VFORK" is not defined.
2598         (fbsd_wait): Only look for pending vfork done events if
2599         "PTRACE_VFORK" is not defined.
2600         [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
2601         events.
2602         (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
2603         is not defined.
2604
2605 2016-07-20  John Baldwin  <jhb@FreeBSD.org>
2606
2607         * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
2608         new child processes.
2609
2610 2016-07-20  John Baldwin  <jhb@FreeBSD.org>
2611
2612         * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
2613         (fbsd_enable_proc_events): New function.
2614         (fbsd_enable_follow_fork): Remove function.
2615         (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
2616         (fbsd_post_attach): Likewise.
2617
2618 2016-07-15  John Baldwin  <jhb@FreeBSD.org>
2619
2620         * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
2621         (do_gdb_signal_to_host): Likewise.
2622         * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
2623         programs.
2624         * proc-events.c (signal_table): Add entry for SIGLIBRT.
2625
2626 2016-07-14  Tom Tromey  <tom@tromey.com>
2627
2628         * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
2629         newline.
2630
2631 2016-07-14  Tom Tromey  <tom@tromey.com>
2632
2633         * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
2634         (mips_o32_push_dummy_call): Remove "stack_used_p".
2635         * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
2636         "insn_bit28".
2637         * rust-lang.c (rust_print_type): Remove "len".
2638         * rust-exp.y (super_name): Remove "current_len".
2639         * python/py-framefilter.c (py_print_type): Remove "type".
2640         * mdebugread.c (parse_partial_symbols): Remove
2641         "past_first_source_file".
2642         <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
2643         * m2-valprint.c (m2_print_unbounded_array): Remove
2644         "content_type".
2645         (m2_val_print): Remove "i".
2646         * linespec.c (unexpected_linespec_error): Remove "cleanup".
2647         * f-valprint.c (f_val_print): Remove "i".
2648         * elfread.c (elf_symtab_read): Remove "offset".
2649         * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
2650         * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
2651
2652 2016-07-14  Tom Tromey  <tom@tromey.com>
2653
2654         * arch-utils.c (default_skip_permanent_breakpoint): Remove
2655         "bp_insn".
2656         * disasm.c (do_assembly_only): Remove "num_displayed".
2657         * dwarf2read.c (read_abbrev_offset): Remove "length".
2658         (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
2659         "constant".
2660         * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
2661         * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
2662         * tracefile.c (trace_save): Remove "status".
2663
2664 2016-07-14  Tom Tromey  <tom@tromey.com>
2665
2666         * symfile.c (simple_overlay_update_1): Remove initialization
2667         of "size", and commented-out code.
2668         (simple_overlay_update): Likewise.
2669
2670 2016-07-14  Tom Tromey  <tom@tromey.com>
2671
2672         * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
2673         * tui/tui-io.c (tui_puts): Use getcurx.
2674         (tui_redisplay_readline): Likewise.
2675
2676 2016-07-14  Tom Tromey  <tom@tromey.com>
2677
2678         * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
2679
2680 2016-07-14  Tom Tromey  <tom@tromey.com>
2681
2682         * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
2683         succeeded.
2684
2685 2016-07-13  Tom Tromey  <tom@tromey.com>
2686
2687         PR python/15620, PR python/18620:
2688         * python/py-evts.c (gdbpy_initialize_py_events): Call
2689         add_new_registry for new events.
2690         * python/py-events.h (events_object) <breakpoint_created,
2691         breakpoint_deleted, breakpoint_modified>: New fields.
2692         * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
2693         breakpoint changed event.
2694         (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
2695         (gdbpy_breakpoint_modified): New function.
2696         (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
2697         observer.
2698
2699 2016-07-13  Tom Tromey  <tom@tromey.com>
2700
2701         PR python/17698:
2702         * NEWS: Update.
2703         * python/py-breakpoint.c (bppy_get_pending): New function.
2704         (breakpoint_object_getset): Add entry for "pending".
2705         * breakpoint.h (pending_breakpoint_p): Declare.
2706         * breakpoint.c (pending_breakpoint_p): New function.
2707
2708 2016-07-13  Tom Tromey  <tom@tromey.com>
2709
2710         * python/py-breakpoint.c (bppy_get_visibility)
2711         (gdbpy_breakpoint_created): Use user_breakpoint_p.
2712
2713 2016-07-13  Tom Tromey  <tom@tromey.com>
2714
2715         PR cli/18053:
2716         * jit.c (jit_reader_load_command): Use tilde_expand.
2717         (_initialize_jit): Fix help for jit-reader-unload.  Set completer
2718         for new commands.
2719
2720 2016-07-12  Tom Tromey  <tom@tromey.com>
2721
2722         PR python/19293:
2723         * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
2724         gdb.invalidate_cached_frames.
2725         * python/lib/gdb/unwinder.py (register_unwinder): Call
2726         gdb.invalidate_cached_frames.
2727         * python/python.c (gdbpy_invalidate_cached_frames): New function.
2728         (python_GdbMethods): Add entry for invalidate_cached_frames.
2729
2730 2016-07-07  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2731
2732         * cp-namespace.c (cp_lookup_bare_symbol): Initialize 
2733         lang_this.symbol.
2734
2735 2016-07-07  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2736
2737         * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
2738         parameter to look for the symbol "this".
2739
2740
2741 2016-07-06  John Baldwin  <jhb@FreeBSD.org>
2742
2743         * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
2744
2745 2016-07-06  John Baldwin  <jhb@FreeBSD.org>
2746
2747         * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
2748         left shifts.
2749
2750 2016-07-06  John Baldwin  <jhb@FreeBSD.org>
2751
2752         * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
2753         the MEDIA_FP_REGNUM register.
2754
2755 2016-07-06  John Baldwin  <jhb@FreeBSD.org>
2756
2757         * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
2758         negative size.
2759
2760 2016-07-06  John Baldwin  <jhb@FreeBSD.org>
2761
2762         * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
2763
2764 2016-07-06  Yao Qi  <yao.qi@linaro.org>
2765
2766         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
2767         arm_vfp_cprc_sub_candidate for static field.
2768
2769 2016-07-06  Manish Goregaokar  <manish@mozilla.com>
2770
2771         * rust-lang.c (rust_subscript): Allow subscripting pointers
2772
2773 2016-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2774
2775         * configure: Regenerate.
2776         * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
2777
2778 2016-07-01  Don Breazeal  <donb@codesourcery.com>
2779
2780         * remote.c (remote_get_memory_xfer_limit): New function.
2781         * target-delegates.c: Regenerate.
2782         * target.c (memory_xfer_partial): Call
2783         target_ops.to_get_memory_xfer_limit.
2784         * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
2785         member.
2786
2787 2016-07-01  John Baldwin  <jhb@FreeBSD.org>
2788
2789         * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
2790         (struct fbsd_fork_info): ... this.
2791         (struct fbsd_fork_info) <child>: Rename to ...
2792         (struct fbsd_fork_info) <ptid>: ... this.
2793         (fbsd_pending_children): Update type.
2794         (fbsd_remember_child): Update type and field name.
2795         (fbsd_is_child_pending): Likewise.
2796         (fbsd_pending_vfork_done): New variable.
2797         (fbsd_is_vfork_done_pending): New function.
2798         (fbsd_next_vfork_done): New function.
2799         (fbsd_resume): Don't resume processes with a pending vfork done
2800         event.
2801         (fbsd_wait): Report pending vfork done events.
2802         (fbsd_follow_fork): Delay and record a pending vfork done event
2803         for a vfork parent when detaching the child.
2804
2805 2016-07-01  John Baldwin  <jhb@FreeBSD.org>
2806
2807         * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
2808         (resume_one_thread_cb): Move below fork following helper code.
2809         (resume_all_threads_cb): Likewise.
2810         (fbsd_resume): Likewise.
2811
2812 2016-07-01  John Baldwin  <jhb@FreeBSD.org>
2813
2814         * fbsd-nat.c (fbsd_follow_fork): Only detach child if
2815         "detach_fork" is true.
2816
2817 2016-07-01  John Baldwin  <jhb@FreeBSD.org>
2818
2819         * x86bsd-nat.c: Include 'gdbthread.h'.
2820         (x86bsd_dr_set): Set debug registers on all threads belonging to
2821         the current inferior.
2822
2823 2016-07-01  John Baldwin  <jhb@FreeBSD.org>
2824
2825         * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
2826         'x86bsd-nat.h'.
2827         * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
2828         'amd64bsd-nat.h'.
2829         (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
2830         (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
2831         with 'x86bsd_xsave_len'.
2832         (amd64bsd_store_inferior_registers): Likewise.
2833         (amd64bsd_target): Inherit from x86bsd_target.
2834         (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
2835         (amd64bsd_dr_set): Likewise.
2836         (amd64bsd_dr_set_control): Likewise.
2837         (amd64bsd_dr_set_addr): Likewise.
2838         (amd64bsd_dr_get_addr): Likewise.
2839         (amd64bsd_dr_get_status): Likewise.
2840         (amd64bsd_dr_get_control): Likewise.
2841         * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
2842         'amd64bsd-nat.h'.
2843         (super_mourn_inferior): Move to x86bsd-nat.c.
2844         (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
2845         (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
2846         'x86bsd_xsave_len'.
2847         (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
2848         mourn_inferior' target op.
2849         * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
2850         * config/i386/fbsd64.mh: Likewise.
2851         * config/i386/nbsd64.mh: Likewise.
2852         * config/i386/nbsdelf.mh: Likewise.
2853         * config/i386/obsd.mh: Likewise.
2854         * config/i386/obsd64.mh: Likewise.
2855         * i386bsd-nat.c: Include 'x86bsd-nat.h'.
2856         (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
2857         (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
2858         with 'x86bsd_xsave_len'.
2859         (i386bsd_store_inferior_registers): Likewise.
2860         (i386bsd_target): Inherit from x86bsd_target.
2861         (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
2862         (i386bsd_dr_set): Likewise.
2863         (i386bsd_dr_set_control): Likewise.
2864         (i386bsd_dr_set_addr): Likewise.
2865         (i386bsd_dr_get_addr): Likewise.
2866         (i386bsd_dr_get_status): Likewise.
2867         (i386bsd_dr_get_control): Likewise.
2868         * i386bsd-nat.h (i386bsd_xsave_len): Remove.
2869         (i386bsd_dr_set_control): Remove.
2870         (i386bsd_dr_set_addr): Remove.
2871         (i386bsd_dr_get_addr): Remove.
2872         (i386bsd_dr_get_status): Remove.
2873         (i386bsd_dr_get_control): Remove.
2874         * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
2875         (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
2876         'x86bsd_xsave_len'.
2877         (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
2878         mourn_inferior' target op.
2879         * x86bsd-nat.c: New file.
2880         * x86bsd-nat.h: New file.
2881
2882 2016-07-01  Pedro Alves  <palves@redhat.com>
2883             Tom Tromey  <tom@tromey.com>
2884
2885         * jit.c (jit_reader_load_command): Call reinit_frame_cache and
2886         jit_inferior_created_hook.
2887         (jit_reader_unload_command): Call reinit_frame_cache and
2888         jit_inferior_exit_hook.
2889         * jit.c (struct jit_unwind_private) <registers>: Delete field.
2890         <regcache>: New field.
2891         (jit_unwind_reg_set_impl): Set the register's value in the
2892         regcache.  Free the passed-in gdb_reg_value.
2893         (jit_dealloc_cache): Adjust to free the regcache.
2894         (jit_frame_sniffer): Allocate a regcache instead of an array of
2895         gdb_reg_value pointers.
2896         (jit_frame_this_id): Adjust.
2897         (jit_frame_prev_register): Read raw registers off of the regcache
2898         instead of from the gdb_reg_value pointer array.  Use
2899         gdbarch_pseudo_register_read_value to read pseudo registers.
2900         * regcache.c (regcache_raw_set_cached_value): New function,
2901         factored out from ...
2902         (regcache_raw_write): ... here.
2903         * regcache.h (regcache_raw_set_cached_value): Declare.
2904
2905 2016-07-01  Pedro Alves  <palves@redhat.com>
2906             Antoine Tremblay  <antoine.tremblay@ericsson.com>
2907
2908         * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
2909         out from ...
2910         (inf_ptrace_detach): ... here.
2911         * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
2912         * linux-nat.c (get_pending_status): Rename to ...
2913         (get_detach_signal): ... this, and return a host signal instead of
2914         filling in a wait status.
2915         (detach_one_lwp): New function, factored out from detach_callback
2916         and adjusted to handle detaching from a zombie thread.
2917         (detach_callback): Skip the leader thread.
2918         (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
2919         the leader thread, nor build a signal string to pass down.
2920         Instead, use target_announce_detach, detach_one_lwp and
2921         inf_ptrace_detach_success.
2922
2923 2016-07-01  Pedro Alves  <palves@redhat.com>
2924
2925         * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
2926         locations.
2927         * infcmd.c (detach_command): Call breakpoint_init_inferior.
2928
2929 2016-07-01  Pedro Alves  <palves@redhat.com>
2930
2931         * darwin-nat.c (darwin_detach): Use target_announce_detach.
2932         * inf-ptrace.c (inf_ptrace_detach): Likewise.
2933         * nto-procfs.c (procfs_detach): Likewise.
2934         * remote.c (remote_detach_1): Likewise.
2935         * target.c (target_announce_detach): New function.
2936         * target.h (target_announce_detach): New declaration.
2937
2938 2016-06-29  Tom Tromey  <tom@tromey.com>
2939
2940         PR python/20129:
2941         * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
2942         (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
2943         not "name".
2944
2945 2016-06-29  Tom Tromey  <tom@tromey.com>
2946
2947         PR gdb/17210:
2948         * target.c (free_memory_read_result_vector): Take a pointer to the
2949         VEC as an argument.
2950         (read_memory_robust): Install a cleanup for "result".
2951         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
2952
2953 2016-06-29  Manish Goregaokar  <manish@mozilla.com>
2954
2955         * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
2956
2957 2016-06-29  Manish Goregaokar  <manish@mozilla.com>
2958
2959         * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
2960
2961 2016-06-28  Yao Qi  <yao.qi@linaro.org>
2962
2963         * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
2964         variable new_offset.
2965
2966 2016-06-27  Manish Goregaokar  <manish@mozilla.com>
2967
2968         * rust-lang.c (rust_print_type, rust_decorations): Print unit
2969         types as "()".
2970         (rust_print_type): Omit return type for functions returning unit.
2971
2972 2016-06-25  Pierre-Marie de Rodat  <derodat@adacore.com>
2973
2974         * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
2975         when there is an error during the breakpoint creation.
2976
2977 2016-06-25  Tom Tromey  <tom@tromey.com>
2978
2979         * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
2980         formatting.
2981
2982 2016-06-25  Manish Goregaokar  <manish@mozilla.com>
2983
2984         PR gdb/20239
2985         * rust-lang.c (rust_get_disr_info): Correctly interpret
2986         NonZero-optimized enums of arbitrary depth.
2987         (rust_print_type): Correctly print NonZero-optimized
2988         enums.
2989
2990 2016-06-24  David Taylor  <dtaylor@emc.com>
2991
2992         PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
2993         * c-lang.h: Change all parameters, variables, and struct or union
2994         members used as struct or union fie3ld offsets from int to
2995         LONGEST.
2996         * c-valprint.c: Likewise.
2997         * cp-abi.c: Likewise.
2998         * cp-abi.h: Likewise.
2999         * cp-valprint.c: Likewise.
3000         * d-valprint.c: Likewise.
3001         * dwarf2loc.c: Likewise.
3002         * eval.c: Likewise.
3003         * extension-priv.h: Likewise.
3004         * extension.c: Likewise.
3005         * extension.h: Likewise.
3006         * findvar.c: Likewise.
3007         * gdbtypes.h: Likewise.
3008         * gnu-v2-abi.c: Likewise.
3009         * gnu-v3-abi.c: Likewise.
3010         * go-valprint.c: Likewise.
3011         * guile/guile-internal.h: Likewise.
3012         * guile/scm-pretty-print.c: Likewise.
3013         * jv-valprint.c Likewise.
3014         * opencl-lang.c: Likewise.
3015         * p-lang.h: Likewise.
3016         * python/py-prettyprint.c: Likewise.
3017         * python/python-internal.h: Likewise.
3018         * spu-tdep.c: Likewise.
3019         * typeprint.c: Likewise.
3020         * valarith.c: Likewise.
3021         * valops.c: Likewise.
3022         * valprint.c: Likewise.
3023         * valprint.h: Likewise.
3024         * value.c: Likewise.
3025         * value.h: Likewise.
3026         * p-valprint.c: Likewise.
3027         * c-typeprint.c (c_type_print_base): When printing offset, use
3028         plongest, not %d.
3029         * gdbtypes.c (recursive_dump_type): Ditto.
3030
3031 2016-06-24  David Taylor  <david.taylor@emc.com>
3032
3033         * MAINTAINERS (Write After Approval): Add David Taylor.
3034
3035 2016-06-24  John Baldwin  <jhb@FreeBSD.org>
3036
3037         * configure.ac: Check for support for system call LWP fields on
3038         FreeBSD.
3039         * config.in, configure: Rebuild.
3040         * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
3041         * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
3042         Report system call events.
3043         [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
3044         (fbsd_set_syscall_catchpoint): New function.
3045         (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
3046         Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
3047         * fbsd-tdep.c: Include xml-syscall.h
3048         (fbsd_get_syscall_number): New function.
3049         (fbsd_init_abi): Set XML system call file name.
3050         Add "get_syscall_number" gdbarch method.
3051         * syscalls/freebsd.xml: New file.
3052
3053 2016-06-24  John Baldwin  <jhb@FreeBSD.org>
3054
3055         * fbsd-tdep.c: Include "auxv.h".
3056         (fbsd_print_auxv_entry): New function.
3057         (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
3058
3059 2016-06-24  John Baldwin  <jhb@FreeBSD.org>
3060
3061         * auxv.c (fprint_auxv_entry): New function.
3062         (default_print_auxv_entry): New function.
3063         (fprint_target_auxv): Use gdbarch_print_auxv_entry.
3064         * auxv.h (enum auxv_format): New enum.
3065         (fprint_auxv_entry): Declare.
3066         (default_print_auxv_entry): Declare.
3067         * gdbarch.sh (print_auxv_entry): New.
3068         * gdbarch.c, gdbarch.h: Re-generated.
3069
3070 2016-06-24  John Baldwin  <jhb@FreeBSD.org>
3071
3072         * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
3073         (fbsd_xfer_partial): New function.
3074         (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
3075         "fbsd_xfer_partial".
3076
3077 2016-06-23  Tom Tromey  <tom@tromey.com>
3078
3079         * symtab.c (symbol_find_demangled_name): Loop over languages and
3080         use language_sniff_from_mangled_name.
3081         * rust-lang.c (rust_sniff_from_mangled_name): New function.
3082         (rust_language_defn): Update.
3083         * p-lang.c (pascal_language_defn): Update.
3084         * opencl-lang.c (opencl_language_defn): Update.
3085         * objc-lang.c (objc_sniff_from_mangled_name): New function.
3086         (objc_language_defn): Update.
3087         * m2-lang.c (m2_language_defn): Update.
3088         * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
3089         field.
3090         (language_sniff_from_mangled_name): Declare.
3091         * language.c (language_sniff_from_mangled_name): New function.
3092         (unknown_language_defn, auto_language_defn, local_language_defn):
3093         Update.
3094         * jv-lang.c (java_sniff_from_mangled_name): New function.
3095         (java_language_defn): Use it.
3096         * go-lang.c (go_sniff_from_mangled_name): New function.
3097         (go_language_defn): Use it.
3098         * f-lang.c (f_language_defn): Update.
3099         * defs.h (enum language): Reorder.
3100         * d-lang.c (d_sniff_from_mangled_name): New function.
3101         (d_language_defn): Use it.
3102         * cp-support.h (gdb_sniff_from_mangled_name): Declare.
3103         * cp-support.c (gdb_sniff_from_mangled_name): New function.
3104         * c-lang.c (c_language_defn, cplus_language_defn)
3105         (asm_language_defn, minimal_language_defn): Update.
3106         * ada-lang.c (ada_sniff_from_mangled_name): New function.
3107         (ada_language_defn): Use it.
3108
3109 2016-06-23  Tom Tromey  <tom@tromey.com>
3110
3111         * ada-lang.c (ada_extensions): New array.
3112         (ada_language_defn): Use it.
3113         * c-lang.c (c_extensions): New array.
3114         (c_language_defn): Use it.
3115         (cplus_extensions): New array.
3116         (cplus_language_defn): Use it.
3117         (asm_extensions): New array.
3118         (asm_language_defn): Use it.
3119         (minimal_language_defn): Update.
3120         * d-lang.c (d_extensions): New array.
3121         (d_language_defn): Use it.
3122         * f-lang.c (f_extensions): New array.
3123         (f_language_defn): Use it.
3124         * go-lang.c (go_language_defn): Update.
3125         * jv-lang.c (java_extensions): New array.
3126         (java_language_defn): Use it.
3127         * language.c (add_language): Call add_filename_language.
3128         (unknown_language_defn, auto_language_defn, local_language_defn):
3129         Update.
3130         * language.h (struct language_defn) <la_filename_extensions>: New
3131         field.
3132         * m2-lang.c (m2_language_defn): Update.
3133         * objc-lang.c (objc_extensions): New array.
3134         (objc_language_defn): Use it.
3135         * opencl-lang.c (opencl_language_defn): Update.
3136         * p-lang.c (p_extensions): New array.
3137         (pascal_language_defn): Use it.
3138         * rust-lang.c (rust_extensions): New array.
3139         (rust_language_defn): Use it.
3140         * symfile.c (add_filename_language): No longer static.  Make "ext"
3141         const.
3142         (init_filename_language_table): Remove.
3143         (_initialize_symfile): Update.
3144         * symfile.h (add_filename_language): Declare.
3145
3146 2016-06-23  Tom Tromey  <tom@tromey.com>
3147
3148         * symfile.c (filename_language_table): Now a VEC.
3149         (fl_table_size, fl_table_next): Remove.
3150         (add_filename_language): Use VEC_safe_push.
3151         (set_ext_lang_command, info_ext_lang_command)
3152         (deduce_language_from_filename): Use VEC_iterate.
3153         (init_filename_language_table): Use VEC_empty.
3154
3155 2016-06-23  Tom Tromey  <tom@tromey.com>
3156
3157         * python/python.c (gdbpy_parameter): Now static.
3158         * python/python-internal.h (gdbpy_parameter): Don't declare.
3159
3160 2016-06-23  Tom Tromey  <tom@tromey.com>
3161
3162         PR gdb/16483:
3163         * python/lib/gdb/command/frame_filters.py
3164         (InfoFrameFilter.list_frame_filters): Rename to print_list.  Print
3165         nothing if no filters found.  Return value indicating whether
3166         filters were printed.
3167         (InfoFrameFilter.print_list): Remove.
3168         (InfoFrameFilter.invoke): Print message if no frame filters
3169         found.
3170
3171 2016-06-21  Walfred Tedeschi  <walfred.tedeschi@intel.com>
3172
3173         * f-valprint.c (f_val_print): Add field names for printing
3174         derived types fields.
3175
3176 2016-06-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3177
3178         * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
3179         in name of last-break regset.
3180
3181 2016-06-21  Pedro Alves  <palves@redhat.com>
3182
3183         * fork-child.c (fork_inferior): Switch the child to the main UI
3184         right after vfork.  Save/restore the current UI in the parent.
3185         Flush outputs of the main UI instead of the current UI.
3186
3187 2016-06-21  Pedro Alves  <palves@redhat.com>
3188
3189         * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
3190         to all UIs.
3191
3192 2016-06-21  Pedro Alves  <palves@redhat.com>
3193
3194         * NEWS: Mention support for running interpreters on separate
3195         UIs and the new new-ui command.
3196
3197 2016-06-21  Pedro Alves  <palves@redhat.com>
3198
3199         * interps.c (set_top_level_interpreter): New function, factored
3200         out from captured_main.
3201         (interpreter_completer): Make extern.
3202         * interps.h (set_top_level_interpreter, interpreter_completer):
3203         New declarations.
3204         (captured_main): Use set_top_level_interpreter.
3205         * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
3206         (open_terminal_stream, new_ui_command): New functions.
3207         (init_main): Install the "new-ui" command.
3208
3209 2016-06-21  Pedro Alves  <palves@redhat.com>
3210
3211         * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
3212         (read_command_lines): Use input_interactive_p instead of
3213         input_from_terminal_p.
3214         * defs.h (struct ui): Forward declare.
3215         (input_from_terminal_p): Rename to ...
3216         (input_interactive_p): ... this.
3217         * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
3218         to quit_command.
3219         (command_handler): Adjust to per-UI stdin.
3220         (handle_line_of_input): Adjust to per-UI stdin and use
3221         input_interactive_p instead of ISATTY and input_from_terminal_p.
3222         (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
3223         (command_line_handler): Always pass true as "from_tty" parameter
3224         of handle_line_of_input and execute_command.
3225         (async_sigterm_handler): Pass 0 as from_tty argument to
3226         quit_command.
3227         * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
3228         (gdb_has_a_terminal): Don't check interactive_mode here.
3229         (_initialize_inflow): Don't install "set interactive-mode" here.
3230         * main.c (captured_command_loop): Adjust to per-UI stdin.
3231         * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
3232         stdin.
3233         * top.c (new_ui): Save the stdin stream and whether it's a tty.
3234         (dont_repeat): Adjust to per-UI stdin.
3235         (command_line_input): Adjust to per-UI stdin and to use
3236         input_interactive_p.
3237         (quit_force): Write history if any UI supports interactive input.
3238         (interactive_mode, show_interactive_mode): Move here, from
3239         inflow.c.
3240         (input_from_terminal_p): Rename to ...
3241         (input_interactive_p): ... this, and check the "interactive_mode"
3242         global instead of calling gdb_has_a_terminal.
3243         (_initialize_top): Install "set interactive-mode" here.
3244         * top.h (struct ui) <stdin_stream, input_interactive_p>: New
3245         fields.
3246         * utils.c (quit): Pass 0 as from_tty argument to quit_force.
3247         (defaulted_query): Adjust to per-UI stdin and to use
3248         input_interactive_p.
3249
3250 2016-06-21  Pedro Alves  <palves@redhat.com>
3251
3252         * event-top.c (stdin_event_handler): Don't quit gdb if it was a
3253         secondary UI's input stream that closed.  Instead, just delete the
3254         UI.
3255
3256 2016-06-21  Pedro Alves  <palves@redhat.com>
3257
3258         * event-top.c (main_ui_): Delete.
3259         (main_ui, current_ui, ui_list): No longer initialize here.
3260         * main.c (captured_main): UI initialization code factored out to
3261         new new_ui function.
3262         (gdb_main): Wrap captured_main with TRY/CATCH instead of
3263         catch_errors.
3264         * top.c (highest_ui_num): New global.
3265         (new_ui): New function.
3266         * top.h (struct ui) <num>: New field.
3267         (new_ui): New declaration.
3268
3269 2016-06-21  Pedro Alves  <palves@redhat.com>
3270
3271         * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
3272         nothing to print.  Use should_print_stop_to_console.
3273         * tui/tui-interp.c (tui_on_normal_stop): Likewise.
3274
3275 2016-06-21  Pedro Alves  <palves@redhat.com>
3276
3277         * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
3278         (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
3279         thread parameter.
3280         (until_break_command): Pass command interpreter to thread fsm
3281         ctor.
3282         * cli/cli-interp.c (should_print_stop_to_console): Adjust.
3283         * gdbthread.h (struct thread_control_state) <command_interp>:
3284         Delete field.
3285         * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
3286         Pass it down.
3287         (call_thread_fsm_should_stop): Add thread parameter.
3288         (call_function_by_hand_dummy): Pass command interpreter to thread
3289         fsm ctor.  Pass thread pointer to fsm clean up method.
3290         * infcmd.c: Include interps.h.
3291         (struct step_command_fsm) <thread>: Delete field.
3292         (new_step_command_fsm): Add 'cmd_interp' parameter.  Pass it down.
3293         (step_command_fsm_prepare): Remove references to fsm's thread
3294         field.
3295         (step_1): Pass command interpreter to thread
3296         fsm ctor.  Pass thread pointer to fsm clean up method.
3297         (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
3298         thread parameter and use it.
3299         (new_until_next_fsm): Add 'cmd_interp' parameter.  Pass it down.
3300         (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
3301         parameter and use it.
3302         (until_next_command): Pass command interpreter to thread fsm ctor.
3303         (struct finish_command_fsm) <thread>: Delete field.
3304         (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
3305         (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
3306         down.  Remove thread parameter and adjust.
3307         (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
3308         thread parameter and use it.
3309         (finish_command): Pass command interpreter to thread fsm ctor.
3310         Don't pass thread.
3311         * infrun.c (follow_fork): Move thread fsm to child fork instead of
3312         command interpreter, only.
3313         (clear_proceed_status_thread): Remove reference to command_interp.
3314         (proceed): Don't record the thread's command interpreter.
3315         (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
3316         method.
3317         (fetch_inferior_event): Pass thread to fsm should_stop method.
3318         * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
3319         Store it.
3320         (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
3321         parameter and pass it down.
3322         * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
3323         (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
3324         parameter.
3325         (thread_fsm_ctor): Add 'cmd_interp' parameter.
3326         (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
3327         parameter.
3328         * thread.c (thread_cancel_execution_command): Pass thread to
3329         thread fsm clean_up method.
3330
3331 2016-06-21  Pedro Alves  <palves@redhat.com>
3332
3333         * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
3334         (should_print_stop_to_console): New function, factored out from
3335         mi_on_normal_stop_1.
3336         * cli/cli-interp.h (should_print_stop_to_console): Declare.
3337         * mi/mi-interp.c (mi_on_normal_stop_1): Use
3338         should_print_stop_to_console.  Pass it the current UI's console
3339         interpreter.
3340         * mi/mi-main.c (captured_mi_execute_command): Use the
3341         INTERP_CONSOLE symbol rather than explicit "console".
3342
3343 2016-06-21  Pedro Alves  <palves@redhat.com>
3344
3345         * infcmd.c (prepare_execution_command): Use
3346         all_uis_on_sync_execution_starting.
3347         * infrun.c (all_uis_on_sync_execution_starting): New function.
3348         * infrun.h (all_uis_on_sync_execution_starting): Declare.
3349
3350 2016-06-21  Pedro Alves  <palves@redhat.com>
3351
3352         * annotate.c: Include top.h.
3353         (async_background_execution_p): Delete.
3354         (print_value_flags): Check the UI's prompt state rather then
3355         async_background_execution_p.
3356         * event-loop.c (start_event_loop): Set the prompt state to
3357         PROMPT_NEEDED.
3358         * event-top.c (display_gdb_prompt, async_enable_stdin)
3359         (async_disable_stdin): Check the current UI's prompt state instead
3360         of the sync_execution global.
3361         (command_line_handler): Set the prompt state to PROMPT_NEEDED
3362         before running a command, and display the prompt if still needed
3363         afterwards.
3364         * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
3365         (new_call_thread_fsm): New parameter 'waiting_ui'.  Store it.
3366         (call_thread_fsm_should_stop): Set the prompt state to
3367         PROMPT_NEEDED.
3368         (run_inferior_call): Adjust to temporarily set the prompt state to
3369         PROMPT_BLOCKED instead of using the sync_execution global.
3370         (call_function_by_hand_dummy): Pass the current UI to
3371         new_call_thread_fsm.
3372         * infcmd.c: Include top.h.
3373         (continue_1): Check the current UI's prompt state instead of the
3374         sync_execution global.
3375         (continue_command): Validate global execution state before calling
3376         prepare_execution_command.
3377         (step_1): Call all_uis_check_sync_execution_done.
3378         (attach_post_wait): Don't call async_enable_stdin here.  Remove
3379         reference to sync_execution.
3380         * infrun.c (sync_execution): Delete global.
3381         (follow_fork_inferior)
3382         (reinstall_readline_callback_handler_cleanup): Check the current
3383         UI's prompt state instead of the sync_execution global.
3384         (check_curr_ui_sync_execution_done)
3385         (all_uis_check_sync_execution_done): New functions.
3386         (fetch_inferior_event): Call all_uis_check_sync_execution_done
3387         instead of trying to determine whether the global sync execution
3388         changed.
3389         (handle_no_resumed): Check the prompt state of all UIs.
3390         (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
3391         UIs.  Emit the "Switching to" notification to all UIs.  Enable
3392         stdin in all UIs.
3393         * infrun.h (sync_execution): Delete.
3394         (all_uis_check_sync_execution_done): Declare.
3395         * main.c (captured_command_loop): Don't call
3396         interp_pre_command_loop if the prompt is blocked.
3397         (catch_command_errors, catch_command_errors_const): Adjust.
3398         (captured_main): Set the initial prompt state to PROMPT_NEEDED.
3399         * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
3400         PROMPTED.
3401         (mi_interpreter_resume): Don't clear sync_execution.  Remove hack
3402         comment.
3403         (mi_execute_command_input_handler): Set the prompt state to
3404         PROMPT_NEEDED before executing the command, and only display the
3405         prompt if the prompt state is PROMPT_NEEDED afterwards.
3406         (mi_on_resume_1): Adjust to check the prompt state.
3407         * target.c (target_terminal_inferior): Adjust to check the prompt
3408         state.
3409         * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
3410         (execute_command): Check the current UI's prompt state instead of
3411         sync_execution.
3412         * top.h (enum prompt_state): New.
3413         (struct ui) <prompt_state>: New field.
3414         (ALL_UIS): New macro.
3415
3416 2016-06-21  Pedro Alves  <palves@redhat.com>
3417
3418         * top.c (gdb_secondary_prompt_depth): Delete.
3419         (gdb_in_secondary_prompt_p): Add ui parameter.  Use it.
3420         (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
3421         per-UI gdb_secondary_prompt_depth.
3422         * top.h (struct ui) <secondary_prompt_depth>: New field.
3423
3424 2016-06-21  Pedro Alves  <palves@redhat.com>
3425
3426         * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
3427         function.
3428         (cli_interp_procs): Install it instead of cli_command_loop.
3429         * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
3430         * event-top.c (cli_command_loop): Delete.
3431         * interps.c (interp_new): Remove reference to command_loop_proc.
3432         (current_interp_command_loop): Delete.
3433         (interp_pre_command_loop): New function.
3434         (interp_command_loop_ftype): Delete.
3435         * interps.h (interp_pre_command_loop_ftype): New typedef.
3436         (struct interp_procs) <command_loop_proc>: Delele field.
3437         <pre_command_loop_proc>: New field.
3438         (current_interp_command_loop): Delete declaration.
3439         (interp_pre_command_loop): New declaration.
3440         * main.c (captured_command_loop): Call interp_pre_command_loop
3441         instead of current_interp_command_loop and start an event loop.
3442         * mi/mi-interp.c (mi_command_loop): Delete.
3443         (mi_interpreter_pre_command_loop): New.
3444         (mi_interp_procs): Update.
3445         * tui/tui-interp.c (tui_interp_procs): Install
3446         cli_interpreter_pre_command_loop instead of cli_command_loop.
3447
3448 2016-06-21  Pedro Alves  <palves@redhat.com>
3449
3450         * interps.c (current_interpreter): New function.
3451         * interps.h (current_interpreter): New declaration.
3452         * mi/mi-cmds.h (raw_stdout): Delete declaration.
3453         * mi/mi-common.h (struct mi_interp) <raw_stdout,
3454         saved_raw_stdout>: New field.
3455         * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'.  Adjust
3456         to per-UI raw_stdout.
3457         (mi_interpreter_init): Adjust to per-UI raw_stdout.
3458         (mi_on_sync_execution_done, mi_execute_command_input_handler)
3459         (mi_command_loop): Pass MI instance to display_mi_prompt.
3460         (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
3461         (mi_on_resume): Adjust to per-UI raw_stdout.
3462         (saved_raw_stdout): Delete.
3463         (mi_set_logging): Adjust to per-UI raw_stdout and
3464         saved_raw_stdout.
3465         * mi/mi-main.c (raw_stdout): Delete.
3466         (mi_cmd_gdb_exit, captured_mi_execute_command)
3467         (mi_print_exception, mi_load_progress): Adjust to per-UI
3468         raw_stdout.
3469         (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
3470         Pass it along.
3471         (print_diff): New ui_file parameter.  Send output there instead of
3472         raw_stdout.
3473         * mi/mi-main.h (struct ui_file): Forward declare.
3474         (mi_print_timing_maybe): Add ui_file parameter.
3475
3476 2016-06-21  Pedro Alves  <palves@redhat.com>
3477
3478         * mi/mi-interp.c (display_mi_prompt): New function.
3479
3480 2016-06-21  Pedro Alves  <palves@redhat.com>
3481
3482         * target.c (target_terminal_inferior): Bail out after
3483         unregistering input_fd if not on the main UI.
3484         (target_terminal_ours): Bail out after registering input_fd if not
3485         on the main UI.
3486         (target_terminal_ours_for_output): Bail out if not on the main UI.
3487
3488 2016-06-21  Pedro Alves  <palves@redhat.com>
3489
3490         * event-top.c (restore_ui_cleanup): Make extern.
3491         * infrun.c (fetch_inferior_event): Always switch to the main UI.
3492         * top.h (restore_ui_cleanup): Declare.
3493
3494 2016-06-21  Pedro Alves  <palves@redhat.com>
3495
3496         PR mi/20034
3497         * cli/cli-interp.c: Include cli-interp.h and event-top.h.
3498         (cli_interpreter_resume): Pass 1 to gdb_setup_readline.  Set the
3499         UI's input_handler here.
3500         (cli_interpreter_supports_command_editing): New function.
3501         (cli_interp_procs): Install it.
3502         * cli/cli-interp.h: New file.
3503         * event-top.c (async_command_editing_p): Rename to ...
3504         (set_editing_cmd_var): ... this.
3505         (change_line_handler): Add parameter 'editing', and use it.  Bail
3506         early if the interpreter doesn't support editing.  Don't touch
3507         readline state if editing is off.
3508         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
3509         (gdb_rl_callback_handler_reinstall): Assert the current UI is the
3510         main UI.
3511         (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
3512         not using readline.  Check whether the current UI is using command
3513         editing instead of checking the async_command_editing_p global.
3514         (set_async_editing_command): Delete.
3515         (gdb_setup_readline): Add 'editing' parameter.  Only allow editing
3516         on the main UI.  Don't touch readline state if editing is off.
3517         (gdb_disable_readline): Don't touch readline state if editing is
3518         off.
3519         * event-top.h (gdb_setup_readline): Add 'int' parameter.
3520         (set_async_editing_command): Delete declaration.
3521         (change_line_handler, command_line_handler): Declare.
3522         (async_command_editing_p): Rename to ...
3523         (set_editing_cmd_var): ... this.
3524         * infrun.c (reinstall_readline_callback_handler_cleanup): Check
3525         whether the current UI has editing enabled rather than checking
3526         the async_command_editing_p global.
3527         * interps.c (interp_supports_command_editing): New function.
3528         * interps.h (interp_supports_command_editing_ftype): New typedef.
3529         (struct interp_procs) <supports_command_editing_proc>: New field.
3530         (interp_supports_command_editing): Declare.
3531         * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
3532         gdb_setup_readline.  Don't clear the async_command_editing_p
3533         global.  Update comments.
3534         * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
3535         whether the current UI has editing enabled rather than checking
3536         the async_command_editing_p global.  Don't touch readline state if
3537         editing is off.
3538         (undo_terminal_modifications_before_exit): Switch to the main UI.
3539         Unconditionally call gdb_disable_readline.
3540         (set_editing): New function.
3541         (show_async_command_editing_p): Rename to ...
3542         (show_editing): ... this.  Show the state of the current UI.
3543         (_initialize_top): Adjust.
3544         * top.h (struct ui) <command_editing>: New field.
3545         * tui/tui-interp.c: Include cli/cli-interp.h.
3546         (tui_resume): Pass 1 to gdb_setup_readline.  Set the UI's
3547         input_handler.
3548         (tui_interp_procs): Install
3549         cli_interpreter_supports_command_editing.
3550         * tui/tui-io.c (tui_getc): Check whether the current UI has
3551         editing enabled rather than checking the async_command_editing_p
3552         global.
3553
3554 2016-06-21  Pedro Alves  <palves@redhat.com>
3555
3556         * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
3557         * top.h (struct ui) <m_current_uiout>: New field.
3558         * ui-out.c (current_uiout): Delete.
3559         * ui-out.h (current_uiout): Delete.
3560         (current_ui_current_uiout_ptr): New declaration.
3561         (current_uiout): Reimplement as wrapper around
3562         current_ui_current_uiout_ptr.
3563
3564 2016-06-21  Pedro Alves  <palves@redhat.com>
3565
3566         * ui-out.c (default_ui_out_impl): Delete.
3567         (def_uiout): Delete.
3568         (current_uiout): Set to NULL.
3569         (default_table_begin, default_table_body, default_table_end)
3570         (default_table_header, default_begin, default_end)
3571         (default_field_int, default_field_skip, default_field_string)
3572         (default_field_fmt, default_spaces, default_text, default_message)
3573         (default_wrap_hint, default_flush, default_data_destroy): Delete.
3574
3575 2016-06-21  Pedro Alves  <palves@redhat.com>
3576
3577         * event-top.c (gdb_setup_readline): Pass the UI's outstream and
3578         errstream to stdout_fileopen and stderr_fileopen.
3579         * exceptions.c: Include top.h.
3580         (print_flush): Open the current UI's outstream file descriptor,
3581         instead of hardcoding file descriptor 1.
3582         * main.c (captured_main): Save the main UI's out and error
3583         streams.  Adjust stderr_fileopen call.
3584         * top.h (struct ui) <outstream, errstream>: New fields.
3585         * ui-file.c (stderr_fileopen): Add stream parameter.  Use it
3586         instead of stderr.
3587         * ui-file.h (stderr_fileopen): Add stream parameter and update
3588         comment.
3589
3590 2016-06-21  Pedro Alves  <palves@redhat.com>
3591
3592         * event-top.c (input_fd): Delete.
3593         (stdin_event_handler): Switch to the UI whose input descriptor got
3594         the event.  Adjust to per-UI input_fd.
3595         (gdb_setup_readline): Don't set the input_fd global.  Adjust to
3596         per-UI input_fd.
3597         (gdb_disable_readline): Adjust to per-UI input_fd.
3598         * event-top.h (input_fd): Delete declaration.
3599         * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
3600         from the event-loop here.
3601         (linux_nat_terminal_ours): Don't register input_fd in the
3602         event-loop here.
3603         * main.c (captured_main): Adjust to per-UI input_fd.
3604         * remote.c (remote_terminal_inferior): Don't remove input_fd from
3605         the event-loop here.
3606         (remote_terminal_ours): Don't register input_fd in the event-loop
3607         here.
3608         * target.c: Include top.h and event-top.h.
3609         (target_terminal_inferior): Remove input_fd from the event-loop
3610         here.
3611         (target_terminal_ours): Register input_fd in the event-loop.
3612         * top.h (struct ui) <input_fd>: New field.
3613
3614 2016-06-21  Pedro Alves  <palves@redhat.com>
3615
3616         * cli/cli-script.c (execute_user_command, read_next_line)
3617         (read_next_line): Adjust to per-UI instream.
3618         * event-top.c (stdin_event_handler, command_handler)
3619         (handle_line_of_input, command_line_handler)
3620         (gdb_readline_no_editing_callback, async_sigterm_handler)
3621         (gdb_setup_readline): Likewise.
3622         * inflow.c: Include top.h.
3623         (gdb_has_a_terminal, child_terminal_init_with_pgrp)
3624         (gdb_save_tty_state, child_terminal_inferior)
3625         (child_terminal_ours_1, copy_terminal_info): Use the main UI.
3626         (initialize_stdin_serial): Adjust to per-UI instream.
3627         * main.c (captured_command_loop, captured_main): Adjust to per-UI
3628         instream.
3629         * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
3630         * python/python.c (python_interactive_command): Likewise.
3631         * terminal.h (struct ui): Forward declare.
3632         (initialize_stdin_serial): Add struct ui parameter.
3633         * top.c (instream): Delete.
3634         (do_restore_instream_cleanup, read_command_file, dont_repeat)
3635         (gdb_readline_no_editing, command_line_input)
3636         (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
3637         * top.h (struct ui) <instream>: New field.
3638         (instream): Delete declaration.
3639         (quit): Adjust to per-UI instream.
3640
3641 2016-06-21  Pedro Alves  <palves@redhat.com>
3642
3643         * event-loop.c: Include top.h.
3644         (invoke_async_signal_handlers): Switch to the main UI.
3645         * event-top.c (main_ui_): Update comment.
3646         (main_ui): New global.
3647         * top.h (main_ui): Declare.
3648
3649 2016-06-21  Pedro Alves  <palves@redhat.com>
3650
3651         * cli/cli-interp.c (cli_interp): Delete.
3652         (as_cli_interp): New function.
3653         (cli_on_normal_stop, cli_on_signal_received)
3654         (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
3655         (cli_on_no_history): Send output to all CLI UIs.
3656         (cli_on_sync_execution_done, cli_on_command_error): Skip output if
3657         the top level interpreter is not a CLI.
3658         (cli_interpreter_init): Don't set cli_interp or install observers
3659         here.
3660         (_initialize_cli_interp): Install observers here.
3661         * event-top.c (main_ui_, ui_list): New globals.
3662         (current_ui): Point to main_ui_.
3663         (restore_ui_cleanup, switch_thru_all_uis_init)
3664         (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
3665         functions.
3666         * mi/mi-interp.c (as_mi_interp): New function.
3667         (mi_interpreter_init): Don't install observers here.
3668         (mi_on_sync_execution_done): Skip output if the top level
3669         interpreter is not a MI.
3670         (mi_new_thread, mi_thread_exit, mi_record_changed)
3671         (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
3672         (mi_inferior_removed): Send output to all MI UIs.
3673         (find_mi_interpreter, mi_interp_data): Delete.
3674         (find_mi_interp): New function.
3675         (mi_on_signal_received, mi_on_end_stepping_range)
3676         (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
3677         to all MI UIs.
3678         (mi_on_normal_stop): Rename to ...
3679         (mi_on_normal_stop_1): ... this.
3680         (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
3681         (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
3682         (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
3683         (mi_breakpoint_modified, mi_output_running_pid): Send output to
3684         all MI UIs.
3685         (mi_on_resume): Rename to ...
3686         (mi_on_resume_1): ... this.  Don't handle infcalls here.
3687         (mi_on_resume): Reimplement, sending output to all MI UIs.
3688         (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
3689         (mi_memory_changed): Send output to all MI UIs.
3690         (report_initial_inferior): Install observers here.
3691         * top.h (struct ui) <next>: New field.
3692         (ui_list): Declare.
3693         (struct switch_thru_all_uis): New.
3694         (switch_thru_all_uis_init, switch_thru_all_uis_cond)
3695         (switch_thru_all_uis_next): Declare.
3696         (SWITCH_THRU_ALL_UIS): New macro.
3697         * tui/tui-interp.c (tui_interp): Delete global.
3698         (as_tui_interp): New function.
3699         (tui_on_normal_stop, tui_on_signal_received)
3700         (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
3701         (tui_on_no_history): Send output to all TUI UIs.
3702         (tui_on_sync_execution_done, tui_on_command_error): Skip output if
3703         the top level interpreter is not a TUI.
3704         (tui_init): Don't set tui_interp or install observers here.
3705         (_initialize_tui_interp): Install observers here.
3706
3707 2016-06-21  Pedro Alves  <palves@redhat.com>
3708
3709         * cli/cli-interp.c (cli_uiout): Delete, moved into ...
3710         (struct cli_interp): ... this new structure.
3711         (cli_on_normal_stop, cli_on_signal_received)
3712         (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
3713         (cli_on_no_history): Use interp_ui_out.
3714         (cli_interpreter_init): If top level, set the cli_interp global.
3715         (cli_interpreter_init): Return the interp's data instead of NULL.
3716         (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
3717         to cli_uiout being in the interpreter's data.
3718         (cli_interp_procs): New, factored out from _initialize_cli_interp.
3719         (cli_interp_factory): New function.
3720         (_initialize_cli_interp): Call interp_factory_register.
3721         * interps.c (get_interp_info): New, factored out from ...
3722         (get_current_interp_info): ... this.
3723         (interp_new): Add parameter 'data'.  Store it.
3724         (struct interp_factory): New function.
3725         (interp_factory_p): New typedef.  Define a VEC_P.
3726         (interpreter_factories): New global.
3727         (interp_factory_register): New function.
3728         (interp_add): Add 'ui' parameter.  Use get_interp_info and
3729         interp_lookup_existing.
3730         (interp_lookup): Rename to ...
3731         (interp_lookup_existing): ... this.  Add 'ui' parameter.  Don't
3732         check for NULL or empty name here.
3733         (interp_lookup): Add 'ui' parameter and reimplement.
3734         (interp_set_temp, interpreter_exec_cmd): Adjust.
3735         (interpreter_completer): Complete on registered interpreter
3736         factories instead of interpreters.
3737         * interps.h (interp_factory_func): New typedef.
3738         (interp_factory_register): Declare.
3739         (interp_new, interp_add): Adjust.
3740         (interp_lookup): Declare.
3741         * main.c (captured_main): Adjust.
3742         * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
3743         (mi_interp_procs): New, factored out from
3744         _initialize_mi_interp.
3745         (mi_interp_factory): New function.
3746         * python/python.c (execute_gdb_command): Adjust.
3747         * tui/tui-interp.c (tui_init): If top level, set the tui_interp
3748         global.
3749         (tui_interp_procs): New.
3750         (tui_interp_factory): New function.
3751         (_initialize_tui_interp): Call interp_factory_register.
3752
3753 2016-06-21  Pedro Alves  <palves@redhat.com>
3754
3755         * breakpoint.c (bpstat_do_actions_1): Access the current UI's
3756         async field instead of the interpreter_async global.
3757         * cli/cli-script.c (execute_user_command, while_command)
3758         (if_command, script_from_file): Likewise.
3759         * compile/compile.c: Include top.h instead of interps.h.
3760         (compile_file_command, compile_code_command)
3761         (compile_print_command): Access the current UI's async field
3762         instead of the interpreter_async global.
3763         * guile/guile.c: Include top.h instead of interps.h.
3764         (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
3765         Access the current UI's async field instead of the
3766         interpreter_async global.
3767         * guile/scm-ports.c: Include top.h instead of interps.h.
3768         (ioscm_with_output_to_port_worker): Access the current UI's async
3769         field instead of the interpreter_async global.
3770         * inf-loop.c (inferior_event_handler): Likewise.
3771         * infcall.c (run_inferior_call): Likewise.
3772         * infrun.c (reinstall_readline_callback_handler_cleanup)
3773         (fetch_inferior_event): Likewise.
3774         * interps.c (interpreter_async): Delete.
3775         (struct ui_interp_info): New.
3776         (get_current_interp_info): New function.
3777         (interp_list, current_interpreter, top_level_interpreter_ptr):
3778         Delete.
3779         (interp_add, interp_set, interp_lookup, interp_ui_out)
3780         (current_interp_set_logging, interp_set_temp)
3781         (current_interp_named_p): Adjust to per-UI interpreters.
3782         (command_interpreter): Delete.
3783         (command_interp, current_interp_command_loop, interp_quiet_p)
3784         (interp_exec, interpreter_exec_cmd, interpreter_completer)
3785         (top_level_interpreter, top_level_interpreter_data): Adjust to
3786         per-UI interpreters.
3787         * interps.h (interpreter_async): Delete.
3788         * main.c (captured_command_loop): Access the current UI's async
3789         field instead of the interpreter_async global.
3790         * python/python.c (python_interactive_command, python_command)
3791         (execute_gdb_command): Likewise.
3792         * top.c (maybe_wait_sync_command_done, execute_command_to_string):
3793         Access the current UI's async field instead of the
3794         interpreter_async global.
3795         * top.h (struct tl_interp_info): Forward declare.
3796         (struct ui) <interp_info, async>: New fields.
3797
3798 2016-06-21  Pedro Alves  <palves@redhat.com>
3799
3800         * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
3801         globals.
3802         (gen_ret_current_ui_field_ptr): New macro.  Use it to generate
3803         wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
3804         * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
3805         m_gdb_stdlog>: New fields.
3806         (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
3807         (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
3808         (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
3809         macros.
3810
3811 2016-06-21  Pedro Alves  <palves@redhat.com>
3812
3813         * event-top.c: Update readline-related comments.
3814         (input_handler, call_readline): Delete globals.
3815         (gdb_rl_callback_handler): Call the current UI's input_handler
3816         method.
3817         (change_line_handler): Adjust to set current UI's properties
3818         instead of globals.
3819         (current_ui_, current_ui): New globals.
3820         (get_command_line_buffer): Rewrite to refer to the current UI.
3821         (stdin_event_handler): Adjust to call the call_readline method of
3822         the current UI.
3823         (gdb_readline_no_editing_callback): Adjust to call the current UI's
3824         input_handler method.
3825         (gdb_setup_readline): Adjust to set current UI's properties
3826         instead of globals.
3827         * event-top.h (call_readline, input_handler): Delete declarations.
3828         * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
3829         UI's properties instead of globals.
3830         * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
3831         properties instead of globals.
3832         (gdb_readline_wrapper): Adjust to call and set current UI's
3833         methods instead of globals.
3834         * top.h: Include buffer.h and event-loop.h.
3835         (struct ui): New struct.
3836         (current_ui): New declaration.
3837
3838 2016-06-21  Pedro Alves  <palves@redhat.com>
3839
3840         * ada-lang.c (ada_exception_name_addr_1): Add comment.
3841         (print_it_exception): Select the current frame.
3842
3843 2016-06-17  Yan-Ting Lin  <currygt52@gmail.com>
3844
3845         * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
3846         (HFILES_NO_SRCDIR): Add nds32-tdep.h.
3847         (ALLDEPFILES): Add nds32-tdep.c.
3848         * NEWS: Mention new NDS32 port.
3849         * configure.tgt: Add NDS32.
3850         * nds32-tdep.c: New file.
3851         * nds32-tdep.h: New file.
3852         * features/Makefile (XMLTOC): Add nds32.xml.
3853         * features/nds32-core.xml: New file.
3854         * features/nds32-fpu.xml: New file.
3855         * features/nds32-system.xml: New file.
3856         * features/nds32.c: New file (generated).
3857         * features/nds32.xml: New file.
3858
3859 2016-06-14  John Baldwin  <jhb@FreeBSD.org>
3860
3861         * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
3862
3863 2016-06-14  John Baldwin  <jhb@FreeBSD.org>
3864
3865         * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
3866
3867 2016-06-14  John Baldwin  <jhb@FreeBSD.org>
3868
3869         * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
3870
3871 2016-06-13  Nick Clifton  <nickc@redhat.com>
3872
3873         * gdbtypes.c (replace_type): Fix assertion.
3874
3875 2016-06-10  Tom Tromey  <tom@tromey.com>
3876
3877         * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
3878         (arch_boolean_type, arch_float_type, arch_complex_type)
3879         (arch_flags_type, append_flags_type_field)
3880         (append_flags_type_flag, arch_composite_type)
3881         (append_composite_type_field_raw)
3882         (append_composite_type_field_aligned)
3883         (append_composite_type_field): Make "name" parameter const.
3884         * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
3885         (arch_boolean_type, arch_float_type, arch_complex_type)
3886         (append_composite_type_field, append_composite_type_field_aligned)
3887         (append_composite_type_field_raw, arch_flags_type)
3888         (append_flags_type_field, append_flags_type_flag): Constify.
3889
3890 2016-06-10  Tom Tromey  <tom@tromey.com>
3891
3892         PR rust/20110:
3893         * rust-exp.y (lex_number): Don't truncate large numbers to i32.
3894
3895 2016-06-10  Tom Tromey  <tom@tromey.com>
3896
3897         * Makefile.in (COMMON_OBS): Remove rust-exp.o.
3898         (YYFILES): Add rust-exp.c.
3899         (YYOBJ): Add rust-exp.o.
3900         (local-maintainer-clean): Remove rust-exp.c.
3901
3902 2016-06-09  Toshihito Kikuchi  <k.toshihito@yahoo.de>
3903
3904         * NEWS: Mention that GDB now supports a negative repeat count in
3905         the 'x' command.
3906         * printcmd.c (decode_format): Allow '-' in the parameter
3907         "string_ptr" to accept a negative repeat count.
3908         (find_instruction_backward): New function.
3909         (read_memory_backward): New function.
3910         (integer_is_zero): New function.
3911         (find_string_backward): New function.
3912         (do_examine): Use new functions to examine memory backward.
3913         (_initialize_printcmd): Mention that 'x' command supports a negative
3914         repeat count.
3915
3916 2016-06-09  Toshihito Kikuchi  <k.toshihito@yahoo.de>
3917
3918         * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
3919
3920 2016-06-09  Tom Tromey  <tom@tromey.com>
3921
3922         PR python/19819:
3923         * python/py-xmethods.c (invoke_method_name)
3924         (py_get_result_type_method_name, py_invoke_method_name): Remove.
3925         (gdbpy_initialize_xmethods): Don't initialize
3926         py_invoke_method_name, py_get_result_type_method_name.
3927
3928 2016-06-07  Simon Marchi  <simon.marchi@ericsson.com>
3929
3930         * mi/mi-interp.c (mi_record_changed): Add missing braces.
3931
3932 2016-06-07  Bernhard Heckel  <bernhard.heckel@intel.com>
3933
3934         * findvar.c (follow_static_link): Check for valid pointer.
3935
3936 2016-06-06  Simon Marchi  <simon.marchi@ericsson.com>
3937
3938         * NEWS: Mention the new fields in =record-started.
3939         * common/btrace-common.h (btrace_format_short_string): New function
3940         declaration.
3941         * common/btrace-common.c (btrace_format_short_string): New
3942         function.
3943         * mi/mi-interp.c (mi_record_changed): Output method and format
3944         fields in the =record-started record.
3945         * record-btrace.c (record_btrace_open): Adapt record_changed
3946         notification.
3947         * record-full.c (record_full_open): Likewise.
3948         * record.c (cmd_record_stop): Likewise.
3949
3950 2016-06-02  Jon Turney  <jon.turney@dronecode.org.uk>
3951
3952         * windows-nat.c (handle_output_debug_string): Return type of
3953         gdb_signal_from_host() is gdb_signal, not an int.
3954         (windows_get_exec_module_filename): Add pointer casts for C++.
3955
3956 2016-06-02  Tom Tromey  <tom@tromey.com>
3957
3958         PR python/18984:
3959         * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
3960
3961 2016-06-01  Pedro Alves  <palves@redhat.com>
3962
3963         * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
3964         (remote_fio_osa)
3965         (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
3966         (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
3967         Delete.
3968         (remote_fileio_o_quit_handler): New global.
3969         (remote_fileio_quit_handler): New function.
3970         (remote_fileio_reply): Check the quit flag instead of the custom
3971         'remote_fio_ctrl_c_flag' flag.  Restore the quit handler instead
3972         of changing the SIGINT handler.
3973         (do_remote_fileio_request): Override the quit handler instead of
3974         changing the SIGINT handler.
3975
3976 2016-06-01  Nick Clifton  <nickc@redhat.com>
3977
3978         * common/common-utils.c (xmalloc_failed): New function.  Provided
3979         so that the version in libiberty is not linked in.
3980
3981 2016-06-01  Markus Metzger  <markus.t.metzger@intel.com>
3982
3983         * infcmd.c (skip_finish_frames): New.
3984         (finish_command): Call skip_finish_frames.
3985
3986 2016-06-01  Yao Qi  <yao.qi@linaro.org>
3987
3988         PR remote/19998
3989         * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
3990         quit_serial_event_set.
3991
3992 2016-06-01  Joel Brobecker  <brobecker@adacore.com>
3993
3994         GDB 7.11.1 released.
3995
3996 2016-05-31  Martin Galvan  <martin.galvan@tallertechnologies.com>
3997
3998         PR c++/19893
3999         * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
4000         fetch_const_value_from_synthetic_pointer): New functions.
4001         (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
4002         (pieced_value_funcs): Implement coerce_ref.
4003         * valops.c (value_addr): Call coerce_ref for synthetic references.
4004         * valprint.c (valprint_check_validity): Return true for synthetic
4005         references.  Also, don't show "<synthetic pointer>" if they reference
4006         addressable values.
4007         (generic_val_print_ref): Handle synthetic references.  Also move some
4008         code to print_ref_address.
4009         (print_ref_address, get_value_addr_contents): New functions.
4010
4011 2016-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4012
4013         PR c++/15231
4014         * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
4015         (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
4016         (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
4017         (read_call_site_scope): Adjust callers.
4018         (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
4019         (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
4020
4021 2016-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4022
4023         Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
4024         * dwarf2read.c (enum pc_bounds_kind) New.
4025         (dwarf2_get_pc_bounds): Use it in the declaration.
4026         (process_psymtab_comp_unit_reader): Adjust caller.  Rename has_pc_info
4027         to cu_bounds_kind.
4028         (read_func_scope, read_lexical_block_scope, read_call_site_scope):
4029         Adjust callers.
4030         (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
4031         (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
4032
4033 2016-05-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4034
4035         * NEWS (QCatchSyscalls): Remove the parameter.  Include ...
4036         (QCatchSyscalls:1 in qSupported) ... this separate entry which got
4037         deleted.
4038
4039 2016-05-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4040
4041         * NEWS (N stop reply): Remove empty line.
4042
4043 2016-05-28  Alan Modra  <amodra@gmail.com>
4044
4045         * compile/compile-object-load.c (link_callbacks_multiple_definition,
4046         link_callbacks_warning, link_callbacks_undefined_symbol,
4047         link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
4048         link_callbacks_reloc_dangerous,
4049         link_callbacks_unattached_reloc): Return void.
4050
4051 2016-05-27  Andrew Burgess  <andrew.burgess@embecosm.com>
4052
4053         * opencl-lang.c (evaluate_subexp_opencl): If
4054         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
4055         the returned value in the STRUCTOP_STRUCT case.
4056
4057 2016-05-27  Andrew Burgess  <andrew.burgess@embecosm.com>
4058
4059         * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
4060         mode, forward the VALUE_LVAL attribute to the returned value in
4061         the STRUCTOP_PTR case.
4062
4063 2016-05-25  Tom Tromey  <tom@tromey.com>
4064
4065         * python/py-value.c (value_object_as_number): Use correct spelling
4066         of HAVE_LIBPYTHON2_4.
4067
4068 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
4069
4070         * f-typeprint.c (f_type_print_base): Replace 0 by show.
4071
4072 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
4073
4074         * f-typeprint.c (f_type_print_base): Decrease show by one.
4075
4076 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
4077
4078         * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
4079
4080 2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
4081
4082         * f-typeprint.c (f_type_print_base): Take print level into account.
4083
4084 2016-05-24  Tom Tromey  <tom@tromey.com>
4085
4086         PR python/17386:
4087         * python/py-value.c (value_object_as_number): Add
4088         nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
4089
4090 2016-05-24  Tom Tromey  <tom@tromey.com>
4091
4092         * python/py-value.c (value_object_as_number): Add
4093         nb_inplace_divide for Python 2.
4094
4095 2016-05-23  Tom Tromey  <tom@tromey.com>
4096
4097         PR python/17981:
4098         * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
4099         when there are no breakpoints.
4100
4101 2016-05-24  Pedro Alves  <palves@redhat.com>
4102
4103         PR gdb/19828
4104         * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
4105         resumed, and add the thread to GDB's thread list.
4106
4107 2016-05-24  Pedro Alves  <palves@redhat.com>
4108
4109         PR gdb/19828
4110         * linux-nat.c (get_pending_status): If the thread reported the
4111         event to the core and it's pending, use the pending status signal
4112         number.
4113
4114 2016-05-24  Pedro Alves  <palves@redhat.com>
4115
4116         PR gdb/19828
4117         * linux-nat.c (lwp_lwpid_htab): New htab.
4118         (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
4119         (lwp_lwpid_htab_add_lwp): New functions.
4120         (lwp_list): Tweak comment.
4121         (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
4122         functions.
4123         (purge_lwp_list): Rewrite, using htab_traverse_noresize.
4124         (add_initial_lwp): Add lwp to htab too.  Use lwp_list_add.
4125         (delete_lwp): Use lwp_list_remove.  Remove htab too.
4126         (find_lwp_pid): Search in htab.
4127         (_initialize_linux_nat): Call lwp_lwpid_htab_create.
4128         * linux-nat.h (struct lwp_info) <prev>: New field.
4129
4130 2016-05-24  Pedro Alves  <palves@redhat.com>
4131
4132         PR gdb/19828
4133         * linux-nat.c (lwp_lwpid_htab): New htab.
4134         (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
4135         (lwp_lwpid_htab_add_lwp): New functions.
4136         (lwp_list): Tweak comment.
4137         (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
4138         functions.
4139         (purge_lwp_list): Rewrite, using htab_traverse_noresize.
4140         (add_initial_lwp): Add lwp to htab too.  Use lwp_list_add.
4141         (delete_lwp): Use lwp_list_remove.  Remove htab too.
4142         (find_lwp_pid): Search in htab.
4143         (_initialize_linux_nat): Call lwp_lwpid_htab_create.
4144         * linux-nat.h (struct lwp_info) <prev>: New field.
4145
4146 2016-05-24  Pedro Alves  <palves@redhat.com>
4147
4148         PR gdb/19828
4149         * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
4150         field.
4151         (linux_nat_update_thread_list): Don't fetch the core if already
4152         known.
4153
4154 2016-05-24  Pedro Alves  <palves@redhat.com>
4155
4156         PR gdb/19828
4157         * linux-tdep.c (find_mapping_size): Delete.
4158         (linux_vsyscall_range_raw): Rewrite reading from
4159         /proc/PID/task/PID/maps directly instead of using
4160         gdbarch_find_memory_regions.
4161
4162 2016-05-24  Pedro Alves  <palves@redhat.com>
4163
4164         PR gdb/19828
4165         * linux-nat.c (report_thread_events): New global.
4166         (linux_handle_extended_wait): Report
4167         TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
4168         enabled.
4169         (wait_lwp, linux_nat_filter_event): Report all thread exits if
4170         thread event reporting is enabled.  Remove comment.
4171         (filter_exit_event): New function.
4172         (linux_nat_wait_1): Use it.
4173         (linux_nat_thread_events): New function.
4174         (linux_nat_add_target): Install it as target_thread_events method.
4175
4176 2016-05-24  Yan-Ting Lin  <currygt52@gmail.com>
4177
4178         * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
4179
4180 2016-05-23  Yao Qi  <yao.qi@arm.com>
4181
4182         * arch-utils.c (default_code_of_frame_writable): New function.
4183         * arch-utils.h (default_code_of_frame_writable): Declare.
4184         * arm-tdep.c (arm_code_of_frame_writable): New function.
4185         (arm_gdbarch_init): Install gdbarch method
4186         code_of_frame_writable if the target is M-profile.
4187         * frame.c (skip_unwritable_frames): New function.
4188         * frame.h (skip_unwritable_frames): Declare.
4189         * gdbarch.sh (code_of_frame_writable): New.
4190         * gdbarch.c, gdbarch.h: Re-generated.
4191         * infcmd.c (finish_command): Call skip_unwritable_frames.
4192
4193 2016-05-23  Tom Tromey  <tom@tromey.com>
4194
4195         PR python/19438, PR python/18393:
4196         * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
4197         * python/py-progspace.c (pspy_initialize): Initialize self->dict.
4198
4199 2016-05-23  Gary Benson  <gbenson@redhat.com>
4200
4201         * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
4202         * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
4203         Remove field.
4204         (try_thread_db_load_1): Remove td_thr_validate initialization.
4205
4206 2016-05-23  Jon Boden  <jon@ubuntubsd.org>  (tiny change)
4207
4208         * configure.ac: Search for libutil-freebsd as alternative to libutil.
4209         * configure: Re-generated.
4210
4211 2016-05-19  Andreas Schwab  <schwab@suse.de>
4212
4213         * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
4214         (libunwind_frame_set_descr): Likewise.
4215         (libunwind_frame_cache): Likewise.
4216         (libunwind_frame_dealloc_cache): Likewise.
4217         (libunwind_frame_sniffer): Likewise.
4218         (libunwind_search_unwind_table): Likewise.
4219         (libunwind_sigtramp_frame_sniffer): Likewise.
4220         (libunwind_get_reg_special): Likewise.
4221         (libunwind_load): Likewise.
4222         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4223         (ia64_linux_store_register): Likewise.
4224         (ia64_linux_xfer_partial): Likewise.
4225         * ia64-tdep.c (ia64_access_reg): Likewise.
4226         (ia64_access_fpreg): Likewise.
4227         (ia64_access_rse_reg): Likewise.
4228         (ia64_access_rse_fpreg): Likewise.
4229
4230 2016-05-18  Tom Tromey  <tom@tromey.com>
4231
4232         * rust-lang.c (rust_subscript): Initialize "high".
4233
4234 2016-05-17  Simon Marchi  <simon.marchi@ericsson.com>
4235
4236         PR gdb/20045
4237         * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
4238         of target_is_async_p.
4239
4240 2016-05-17  Simon Marchi  <simon.marchi@ericsson.com>
4241
4242         PR gdb/18077
4243         * mi/mi-main.c (run_one_inferior): Use run target to determine
4244         whether to run async or not.
4245         (mi_cmd_exec_run): Likewise.
4246
4247 2016-05-17  Tom Tromey  <tom@tromey.com>
4248
4249         * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
4250         * rust-lang.c: Don't include f-lang.h.
4251         (rust_range, rust_compute_range, rust_subscript)
4252         (rust_evaluate_subexp): Update.
4253         * rust-exp.y: Don't include f-lang.h.
4254         (ast_range, convert_ast_to_expression): Update.
4255         * parse.c (operator_length_standard): Update.
4256         * f-lang.h (enum f90_range_type): Move to expression.h.
4257         * f-exp.y: Use OP_RANGE.
4258         * expression.h (enum range_type): New enum; renamed from
4259         f90_range_type.
4260         * expprint.c: Don't include f-lang.h.
4261         (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
4262         * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
4263
4264 2016-05-17  Tom Tromey  <tom@tromey.com>
4265
4266         * NEWS: Add Rust item.
4267
4268 2016-05-17  Tom Tromey  <tom@tromey.com>
4269             Manish Goregaokar <manishsmail@gmail.com>
4270
4271         * symtab.c (symbol_find_demangled_name): Handle Rust.
4272         * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
4273         * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
4274         constants.
4275         * rust-lang.h: New file.
4276         * rust-lang.c: New file.
4277         * rust-exp.y: New file.
4278         * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
4279         (dwarf2_compute_name, read_func_scope, read_structure_type)
4280         (read_base_type, read_subrange_type, set_cu_language)
4281         (new_symbol_full, determine_prefix): Handle Rust.
4282         * defs.h (enum language) <language_rust>: New constant.
4283         * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
4284         (COMMON_OBS): Add rust-exp.o, rust-lang.o.
4285
4286 2016-05-17  Tom Tromey  <tom@tromey.com>
4287
4288         * valprint.h (struct generic_val_print_array) <array_start,
4289         array_end>: New fields.
4290         * valprint.c (generic_val_print_array): Add "decorations"
4291         parameter.  Use "array_start", "array_end".
4292         (generic_val_print) <TYPE_CODE_ARRAY>: Update.
4293         * p-valprint.c (p_decorations): Update.
4294         * m2-valprint.c (m2_decorations): Update.
4295         * f-valprint.c (f_decorations): Update.
4296         * c-valprint.c (c_decorations): Update.
4297
4298 2016-05-17  Tom Tromey  <tom@tromey.com>
4299
4300         * NEWS: Add "maint selftest" entry.
4301         * selftest.h: New file.
4302         * selftest.c: New file.
4303         * maint.c: Include selftest.h.
4304         (maintenance_selftest): New function.
4305         (_initialize_maint_cmds): Add "maint selftest" command.
4306         * configure.ac (GDB_SELF_TEST): Maybe define.
4307         * config.in, configure: Rebuild.
4308         * Makefile.in (SFILES): Add selftest.c.
4309         (COMMON_OBS): Add selftest.o.
4310
4311 2016-05-17  Tom Tromey  <tom@tromey.com>
4312
4313         * expprint.c: Include f-lang.h.
4314         (print_subexp_standard, dump_subexp_body_standard): Handle
4315         OP_F90_RANGE.
4316
4317 2016-05-17  Tom Tromey  <tom@tromey.com>
4318
4319         * Makefile.in (init.c): Search .y files for initialization
4320         functions.
4321
4322 2016-05-12  Doug Evans  <dje@google.com>
4323
4324         PR symtab/19999
4325         * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
4326         add base_offset.
4327
4328 2016-05-10  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4329
4330         * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
4331         anything.
4332         * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
4333
4334 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4335
4336         * arm-tdep.c (arm_elf_make_msymbol_special): Use
4337         ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
4338
4339 2016-05-07  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4340
4341         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
4342         variables.
4343         * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
4344         (aarch64_scan_prologue): Likewise.
4345         (aarch64_prologue_prev_register): Likewise.
4346         (aarch64_dwarf2_prev_register): Likewise.
4347         (pass_in_v): Likewise.
4348         (aarch64_push_dummy_call): Likewise.
4349         (aarch64_breakpoint_from_pc): Likewise.
4350         (aarch64_return_in_memory): Likewise.
4351         (aarch64_return_value): Likewise.
4352         (aarch64_displaced_step_b_cond): Likewise.
4353         (aarch64_displaced_step_cb): Likewise.
4354         (aarch64_displaced_step_tb): Likewise.
4355         (aarch64_gdbarch_init): Likewise.
4356         (aarch64_process_record): Likewise.
4357         * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
4358         * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
4359         * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4360         * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
4361         * amd64-tdep.c (fixup_riprel): Likewise.
4362         * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
4363         (amd64_windows_frame_decode_insns): Likewise.
4364         (amd64_windows_frame_cache): Likewise.
4365         (amd64_windows_frame_prev_register): Likewise.
4366         (amd64_windows_frame_this_id): Likewise.
4367         (amd64_windows_init_abi): Likewise.
4368         * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
4369         (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4370         * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
4371         * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
4372         (arm_epilogue_frame_prev_register): Likewise.
4373         (arm_record_vdata_transfer_insn): Likewise.
4374         (arm_record_exreg_ld_st_insn): Likewise.
4375         * auto-load.c (execute_script_contents): Likewise.
4376         (print_scripts): Likewise.
4377         * avr-tdep.c (avr_frame_prev_register): Likewise.
4378         (avr_push_dummy_call): Likewise.
4379         * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
4380         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
4381         * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
4382         * break-catch-throw.c (fetch_probe_arguments): Likewise.
4383         * breakpoint.c (breakpoint_xfer_memory): Likewise.
4384         (breakpoint_init_inferior): Likewise.
4385         (breakpoint_inserted_here_p): Likewise.
4386         (software_breakpoint_inserted_here_p): Likewise.
4387         (hardware_breakpoint_inserted_here_p): Likewise.
4388         (bpstat_what): Likewise.
4389         (break_range_command): Likewise.
4390         (save_breakpoints): Likewise.
4391         * coffread.c (coff_symfile_read): Likewise.
4392         * cris-tdep.c (cris_push_dummy_call): Likewise.
4393         (cris_scan_prologue): Likewise.
4394         (cris_register_size): Likewise.
4395         (_initialize_cris_tdep): Likewise.
4396         * d-exp.y: Likewise.
4397         * dbxread.c (dbx_read_symtab): Likewise.
4398         (process_one_symbol): Likewise.
4399         (coffstab_build_psymtabs): Likewise.
4400         (elfstab_build_psymtabs): Likewise.
4401         * dicos-tdep.c (dicos_init_abi): Likewise.
4402         * disasm.c (do_mixed_source_and_assembly): Likewise.
4403         (gdb_disassembly): Likewise.
4404         * dtrace-probe.c (dtrace_process_dof): Likewise.
4405         * dwarf2read.c (error_check_comp_unit_head): Likewise.
4406         (build_type_psymtabs_1): Likewise.
4407         (skip_one_die): Likewise.
4408         (process_imported_unit_die): Likewise.
4409         (dwarf2_physname): Likewise.
4410         (read_file_scope): Likewise.
4411         (setup_type_unit_groups): Likewise.
4412         (create_dwo_cu_reader): Likewise.
4413         (create_dwo_cu): Likewise.
4414         (create_dwo_unit_in_dwp_v1): Likewise.
4415         (create_dwo_unit_in_dwp_v2): Likewise.
4416         (lookup_dwo_unit_in_dwp): Likewise.
4417         (free_dwo_file): Likewise.
4418         (check_producer): Likewise.
4419         (dwarf2_add_typedef): Likewise.
4420         (dwarf2_add_member_fn): Likewise.
4421         (read_unsigned_leb128): Likewise.
4422         (read_signed_leb128): Likewise.
4423         (dwarf2_const_value): Likewise.
4424         (follow_die_sig_1): Likewise.
4425         (dwarf_decode_macro_bytes): Likewise.
4426         * extension.c (restore_active_ext_lang): Likewise.
4427         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
4428         * ft32-tdep.c (ft32_analyze_prologue): Likewise.
4429         * gdbtypes.c (lookup_typename): Likewise.
4430         (resolve_dynamic_range): Likewise.
4431         (check_typedef): Likewise.
4432         * h8300-tdep.c (h8300_is_argument_spill): Likewise.
4433         (h8300_gdbarch_init): Likewise.
4434         * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
4435         (hppa_frame_this_id): Likewise.
4436         (_initialize_hppa_tdep): Likewise.
4437         * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
4438         * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
4439         * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
4440         * i386-tdep.c (i386_bnd_type): Likewise.
4441         (i386_gdbarch_init): Likewise.
4442         (i386_mpx_bd_base): Likewise.
4443         * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
4444         * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
4445         * ia64-tdep.c (examine_prologue): Likewise.
4446         (ia64_frame_cache): Likewise.
4447         (ia64_push_dummy_call): Likewise.
4448         * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
4449         (default_print_one_register_info): Likewise.
4450         * infrun.c (infrun_thread_ptid_changed): Likewise.
4451         (thread_still_needs_step_over): Likewise.
4452         (stop_all_threads): Likewise.
4453         (restart_threads): Likewise.
4454         (keep_going_stepped_thread): Likewise.
4455         * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
4456         * language.c (language_init_primitive_type_symbols): Likewise.
4457         * linespec.c (add_sal_to_sals): Likewise.
4458         * linux-nat.c (status_callback): Likewise.
4459         (kill_unfollowed_fork_children): Likewise.
4460         (linux_nat_kill): Likewise.
4461         * linux-tdep.c (linux_fill_prpsinfo): Likewise.
4462         * linux-thread-db.c (thread_db_notice_clone): Likewise.
4463         (record_thread): Likewise.
4464         * location.c (string_to_event_location_basic): Likewise.
4465         * m32c-tdep.c (m32c_prev_register): Likewise.
4466         * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
4467         * m32r-tdep.c (decode_prologue): Likewise.
4468         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
4469         * machoread.c (macho_symtab_read): Likewise.
4470         (macho_symfile_read): Likewise.
4471         (macho_symfile_offsets): Likewise.
4472         * maint.c (set_per_command_cmd): Likewise.
4473         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
4474         (mi_cmd_stack_list_variables): Likewise.
4475         * mi/mi-main.c (mi_cmd_exec_run): Likewise.
4476         (output_register): Likewise.
4477         (mi_cmd_execute): Likewise.
4478         (mi_cmd_trace_define_variable): Likewise.
4479         (print_variable_or_computed): Likewise.
4480         * minsyms.c (prim_record_minimal_symbol_full): Likewise.
4481         * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
4482         * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
4483         * mt-tdep.c (mt_registers_info): Likewise.
4484         * nios2-tdep.c (nios2_analyze_prologue): Likewise.
4485         (nios2_push_dummy_call): Likewise.
4486         (nios2_frame_unwind_cache): Likewise.
4487         (nios2_stub_frame_cache): Likewise.
4488         (nios2_stub_frame_sniffer): Likewise.
4489         (nios2_gdbarch_init): Likewise.
4490         * ppc-ravenscar-thread.c: Likewise.
4491         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
4492         * python/py-evts.c (add_new_registry): Likewise.
4493         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4494         (bpfinishpy_detect_out_scope_cb): Likewise.
4495         * python/py-framefilter.c (py_print_value): Likewise.
4496         * python/py-inferior.c (infpy_write_memory): Likewise.
4497         * python/py-infevents.c (create_inferior_call_event_object): Likewise.
4498         * python/py-infthread.c (thpy_get_ptid): Likewise.
4499         * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
4500         (ltpy_get_all_source_lines): Likewise.
4501         (ltpy_is_valid): Likewise.
4502         (ltpy_iternext): Likewise.
4503         * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
4504         * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
4505         (unwind_infopy_str): Likewise.
4506         * python/py-varobj.c (py_varobj_get_iterator): Likewise.
4507         * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
4508         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
4509         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
4510         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
4511         * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
4512         (s390_frame_prev_register): Likewise.
4513         (s390_dwarf2_frame_init_reg): Likewise.
4514         (s390_record_vr): Likewise.
4515         (s390_process_record): Likewise.
4516         * score-tdep.c (score_push_dummy_call): Likewise.
4517         (score3_analyze_prologue): Likewise.
4518         * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4519         * sh64-tdep.c (sh64_analyze_prologue): Likewise.
4520         (sh64_push_dummy_call): Likewise.
4521         (sh64_extract_return_value): Likewise.
4522         (sh64_do_fp_register): Likewise.
4523         * solib-aix.c (solib_aix_get_section_offsets): Likewise.
4524         * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
4525         (darwin_solib_read_all_image_info_addr): Likewise.
4526         * solib-dsbt.c (enable_break): Likewise.
4527         * solib-frv.c (enable_break2): Likewise.
4528         (frv_fdpic_find_canonical_descriptor): Likewise.
4529         * solib-svr4.c (svr4_handle_solib_event): Likewise.
4530         * sparc-tdep.c (sparc_skip_stack_check): Likewise.
4531         * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
4532         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
4533         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
4534         * stack.c (read_frame_local): Likewise.
4535         * symfile.c (symbol_file_add_separate): Likewise.
4536         (remove_symbol_file_command): Likewise.
4537         * symmisc.c (maintenance_print_one_line_table): Likewise.
4538         * symtab.c (symbol_cache_flush): Likewise.
4539         (basic_lookup_transparent_type): Likewise.
4540         (sort_search_symbols_remove_dups): Likewise.
4541         * target.c (target_memory_map): Likewise.
4542         (target_detach): Likewise.
4543         (target_resume): Likewise.
4544         (acquire_fileio_fd): Likewise.
4545         (target_store_registers): Likewise.
4546         * thread.c (print_thread_info_1): Likewise.
4547         * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
4548         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
4549         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
4550         (tilegx_analyze_prologue): Likewise.
4551         (tilegx_stack_frame_destroyed_p): Likewise.
4552         (tilegx_frame_cache): Likewise.
4553         * tracefile.c (trace_save): Likewise.
4554         * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
4555         (start_tracing): Likewise.
4556         (print_one_static_tracepoint_marker): Likewise.
4557         * tui/tui.c (tui_enable): Likewise.
4558         * valops.c (value_struct_elt_bitpos): Likewise.
4559         (find_overload_match): Likewise.
4560         (find_oload_champ): Likewise.
4561         * value.c (value_contents_copy_raw): Likewise.
4562         * windows-tdep.c (windows_get_tlb_type): Likewise.
4563         * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
4564         * xcoffread.c (record_minimal_symbol): Likewise.
4565         (scan_xcoff_symtab): Likewise.
4566         * xtensa-tdep.c (execute_code): Likewise.
4567         (xtensa_gdbarch_init): Likewise.
4568         (_initialize_xtensa_tdep): Likewise.
4569
4570 2016-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
4571
4572         * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
4573         (spu_bfd_open): Likewise.
4574
4575 2016-05-04  Yao Qi  <yao.qi@linaro.org>
4576
4577         PR gdb/19947
4578         * corefile.c (read_memory): Rename it to ...
4579         (read_memory_object): ... it.  Add parameter object.
4580         (read_memory): Call read_memory_object.
4581         (read_stack): Likewise.
4582         (read_code): Likewise.
4583
4584 2016-05-03  Yunlian Jiang <yunlian@google.com>
4585             Doug Evans  <dje@google.com>
4586
4587         PR symtab/19914
4588         * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
4589         is separate debug file.
4590
4591 2016-05-03  Don Breazeal <donb@codesourcery.com>
4592
4593         * serial.h (gdb_pipe): Fix argument names in comment.
4594
4595 2016-05-03  Pedro Alves <palves@redhat.com>
4596
4597         PR python/20037
4598         * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
4599         oldloc.
4600
4601 2016-05-03  Pedro Alves <palves@redhat.com>
4602
4603         * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
4604         code.
4605
4606 2016-05-03  Pedro Alves  <palves@redhat.com>
4607
4608         * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
4609         * configure: Regenerate.
4610
4611 2016-05-03  Pedro Alves  <palves@redhat.com>
4612
4613         * configure.ac (checking for the dynamic export flag): Add
4614         $PYTHON_CPPFLAGS to CPPFLAGS.
4615         * configure: Regenerate.
4616
4617 2016-05-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4618
4619         * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
4620         warning.
4621         (find_pc_mapped_section): Likewise.
4622         (list_overlays_command): Likewise.
4623
4624 2016-05-02  Eli Zaretskii  <eliz@gnu.org>
4625
4626         * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
4627         error in allocation of space for "$HOME/.gdbinit" string.  This
4628         caused GDB to abort on startup whenever a '~/gdb.ini' file was
4629         actually found, because xsnprintf would hit an assertion
4630         violation.
4631
4632 2016-04-28  Simon Marchi  <simon.marchi@ericsson.com>
4633
4634         * cli/cli-decode.c (help_cmd_list): Do not list commands that
4635         are deprecated.
4636
4637 2016-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4638
4639         * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
4640
4641 2016-04-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
4642
4643         * c-valprint.c (c_value_print): Always convert val back to reference
4644         type if we converted it to a pointer type.
4645
4646 2016-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4647
4648         * configure.ac: Enhance configure check for babeltrace to reject
4649         non-C++-enabled versions.
4650         * configure: Regenerate.
4651
4652 2016-04-26  Sanimir Agovic  <sanimir.agovic@intel.com>
4653             Keven Boell  <keven.boell@intel.com>
4654             Bernhard Heckel  <bernhard.heckel@intel.com>
4655
4656         * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
4657         function.
4658         (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
4659         (f77_print_array_1): Use value_subscript to subscript a
4660         value array.
4661         (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
4662         (f_val_print): Use value_field to construct a field value.
4663
4664 2016-04-26  Bernhard Heckel  <bernhard.heckel@intel.com>
4665
4666         * valarith.c (value_address): Resolve dynamic types.
4667
4668 2016-04-26  Bernhard Heckel  <bernhard.heckel@intel.com>
4669             Keven Boell  <kevel.boell@intel.com>
4670
4671         * NEWS: Add new supported features for fortran.
4672         * gdbtypes.c (remove_dyn_prop): New.
4673         (resolve_dynamic_struct): Keep type length for fortran structs.
4674         * gdbtypes.h: Forward declaration of new function.
4675         * value.c (value_address): Return dynamic resolved location of a value.
4676         (set_value_component_location): Adjust the value address
4677         for single value prints.
4678         (value_primitive_field): Support value types with a dynamic location.
4679         (set_internalvar): Remove dynamic location property of
4680         internal variables.
4681
4682 2016-04-25  Pedro Alves  <palves@redhat.com>
4683             Yao Qi  <yao.qi@linaro.org>
4684
4685         * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
4686         object.  Insert it if it is not inserted yet.  Increase the
4687         refcount and link it into the proc's raw breakpoint list.
4688
4689 2016-04-25  Yao Qi  <yao.qi@linaro.org>
4690
4691         * breakpoint.c (should_be_inserted): Return 0 if the location's
4692         owner is not single step breakpoint or single step breakpoint's
4693         thread isn't the thread which is stepping past a breakpoint.
4694         * gdbarch.sh (software_single_step): Update comments.
4695         * gdbarch.h: Regenerated.
4696         * infrun.c (struct step_over_info) <thread>: New field.
4697         (set_step_over_info): New argument 'thread'.  Callers updated.
4698         (clear_step_over_info): Set field thread to -1.
4699         (thread_is_stepping_over_breakpoint): New function.
4700         * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
4701
4702 2016-04-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4703
4704         * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
4705         and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
4706
4707 2016-04-22  Yao Qi  <yao.qi@linaro.org>
4708
4709         * valops.c (read_value_memory): New local variable 'stack'.
4710         Set it to either TARGET_OBJECT_STACK_MEMORY or
4711         TARGET_OBJECT_MEMORY.
4712
4713 2016-04-22  Pedro Alves  <palves@redhat.com>
4714
4715         * ada-exp.y: Remove all yy symbol remappings.
4716         (GDB_YY_REMAP_PREFIX): Define.
4717         Include "yy-remap.h".
4718         * ada-lang.c (ada_language_defn): Adjust.
4719         * ada-lang.h (ada_error): Rename to ...
4720         (ada_yyerror): ... this.
4721         * c-exp.y: Remove all yy symbol remappings.
4722         (GDB_YY_REMAP_PREFIX): Define.
4723         Include "yy-remap.h".
4724         * c-lang.c (c_language_defn, cplus_language_defn)
4725         (asm_language_defn, minimal_language_defn): Adjust.
4726         * c-lang.h (c_error): Rename to ...
4727         (c_yyerror): ... this.
4728         * d-exp.y: Remove all yy symbol remappings.
4729         (GDB_YY_REMAP_PREFIX): Define.
4730         Include "yy-remap.h".
4731         * d-lang.c (d_language_defn): Adjust.
4732         * d-lang.h (d_error): Rename to ...
4733         (d_yyerror): ... this.
4734         * f-exp.y: Remove all yy symbol remappings.
4735         (GDB_YY_REMAP_PREFIX): Define.
4736         Include "yy-remap.h".
4737         * f-lang.c (f_language_defn): Adjust.
4738         * f-lang.h (f_error): Rename to ...
4739         (f_yyerror): ... this.
4740         * go-exp.y: Remove all yy symbol remappings.
4741         (GDB_YY_REMAP_PREFIX): Define.
4742         Include "yy-remap.h".
4743         * go-lang.c (go_language_defn): Adjust.
4744         * go-lang.h (go_error): Rename to ...
4745         (go_yyerror): ... this.
4746         * jv-exp.y: Remove all yy symbol remappings.
4747         (GDB_YY_REMAP_PREFIX): Define.
4748         Include "yy-remap.h".
4749         * jv-lang.c (java_language_defn): Adjust.
4750         * jv-lang.h (java_error): Rename to ...
4751         (java_yyerror): ... this.
4752         * m2-exp.y: Remove all yy symbol remappings.
4753         (GDB_YY_REMAP_PREFIX): Define.
4754         Include "yy-remap.h".
4755         * m2-lang.c (m2_language_defn): Adjust.
4756         * m2-lang.h (m2_error): Rename to ...
4757         (m2_yyerror): ... this.
4758         * objc-exp.y: Remove all yy symbol remappings.
4759         (GDB_YY_REMAP_PREFIX): Define.
4760         Include "yy-remap.h".
4761         * objc-lang.c (objc_language_defn): Adjust.
4762         * opencl-lang.c (opencl_language_defn): Adjust.
4763         * p-exp.y: Remove all yy symbol remappings.
4764         (GDB_YY_REMAP_PREFIX): Define.
4765         Include "yy-remap.h".
4766         * p-lang.c (pascal_language_defn): Adjust.
4767         * p-lang.h (pascal_error): Rename to ...
4768         (pascal_yyerror): ... this.
4769         * yy-remap.h: New file.
4770
4771 2016-04-22  Pedro Alves  <palves@redhat.com>
4772
4773         * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
4774         the foreign frames issue.
4775         [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
4776
4777 2016-04-22  Pedro Alves  <palves@redhat.com>
4778
4779         * common/common-exceptions.c (enum catcher_state, struct catcher)
4780         (current_catcher): Define in C++ mode too.
4781         (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
4782         throw_exception.
4783         (throw_exception_sjlj, throw_exception_cxx): New functions,
4784         factored out from throw_exception.
4785         (throw_exception): Reimplement.
4786         * common/common-exceptions.h (exceptions_state_mc_init)
4787         (exceptions_state_mc_action_iter)
4788         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
4789         Declare in C++ mode too.
4790         (TRY): Rename to ...
4791         (TRY_SJLJ): ... this.
4792         (CATCH): Rename to ...
4793         (CATCH_SJLJ): ... this.
4794         (END_CATCH): Rename to ...
4795         (END_CATCH_SJLJ): ... this.
4796         [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
4797         equivalents.
4798         (throw_exception): Update comments.
4799         (throw_exception_sjlj): Declare.
4800         * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
4801         comment.  Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
4802         intercepted exception.
4803         (gdb_rl_callback_handler): New function.
4804         (gdb_rl_callback_handler_install): Always install
4805         gdb_rl_callback_handler as readline callback.
4806
4807 2016-04-22  Pedro Alves  <palves@redhat.com>
4808
4809         * event-top.c (rl_callback_read_char_wrapper): Rename to ...
4810         (gdb_rl_callback_read_char_wrapper): ... this.
4811         (change_line_handler, gdb_setup_readline): Adjust.
4812
4813 2016-04-22  Yao Qi  <yao.qi@linaro.org>
4814
4815         * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
4816         bits 20 to 23.
4817
4818 2016-04-22  Joel Brobecker  <brobecker@adacore.com>
4819
4820         * MAINTAINER: Remove myself as AIX Maintainer.
4821
4822 2016-04-22  Maciej W. Rozycki  <macro@imgtec.com>
4823
4824         * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
4825         `num_regs' to 90 rather than 79.  Where a target description is
4826         present adjust the setting appropriately.
4827
4828 2016-04-21  Pedro Alves  <palves@redhat.com>
4829
4830         * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
4831         (GDB_XCPT): Always define as GDB_XCPT_SJMP.
4832
4833 2016-04-21  Pedro Alves  <palves@redhat.com>
4834
4835         * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
4836         (aix_thread_resume): Use PTRACE_TYPE_ARG5.
4837         * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
4838         (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
4839         pointer, and cast return to gdb_byte pointer.
4840
4841 2016-04-21  Pedro Alves  <palves@redhat.com>
4842
4843         * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
4844         void * instead of gdb_byte *.
4845
4846 2016-04-21  Pedro Alves  <palves@redhat.com>
4847
4848         * dwarf2read.c (try_open_dwop_file, open_dwo_file)
4849         (file_file_name, file_full_name): Add char * cast to sentinel in
4850         concat/reconcat calls.
4851         * event-top.c (top_level_prompt): Likewise.
4852         * guile/guile.c (initialize_scheme_side): Likewise.
4853         * linux-tdep.c (linux_fill_prpsinfo): Likewise.
4854         * macrotab.c (macro_source_fullname): Likewise.
4855         * main.c (get_init_files, captured_main): Likewise.
4856         * psymtab.c (psymtab_to_fullname): Likewise.
4857         * python/python.c (_initialize_python)
4858         (gdbpy_finish_initialization): Likewise.
4859         * source.c (symtab_to_fullname): Likewise.
4860
4861 2016-04-20  Pedro Alves  <palves@redhat.com>
4862
4863         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
4864         * configure: Renegerate.
4865
4866 2016-04-20  Pedro Alves  <palves@redhat.com>
4867
4868         * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
4869
4870 2016-04-20  Pedro Alves  <palves@redhat.com>
4871
4872         * aarch64-tdep.c (aarch64_record_load_store): Change type of
4873         'reg_rm_val' local to ULONGEST.
4874
4875 2016-04-20  Pedro Alves  <palves@redhat.com>
4876
4877         * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
4878
4879 2016-04-20  Doug Evans  <xdje42@gmail.com>
4880
4881         * symmisc.c (dump_symtab_1): Print owning compunit for identical
4882         blockvectors.
4883
4884 2016-04-20  Yao Qi  <yao.qi@linaro.org>
4885
4886         * aarch32-linux-nat.c: Include "arch/arm-linux.h".
4887
4888 2016-04-20  Yao Qi  <yao.qi@linaro.org>
4889
4890         * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
4891         * arch/arm-linux.h: ... here.
4892
4893 2016-04-19  John Baldwin  <jhb@FreeBSD.org>
4894
4895         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
4896         to void *.
4897         (amd64bsd_store_inferior_registers): Likewise.
4898         * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
4899         (resume_all_threads_cb): Likewise.
4900         * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
4901         (i386bsd_collect_gregset): Likewise.
4902         (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
4903         (i386bsd_store_inferior_registers): Likewise.
4904
4905 2016-04-19  John Baldwin  <jhb@FreeBSD.org>
4906
4907         * main.c (setup_alternate_signal_stack): Cast to char *.
4908
4909 2016-04-19  Doug Evans  <xdje42@gmail.com>
4910
4911         * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
4912         All callers updated.
4913
4914 2016-04-19  Doug Evans  <xdje42@gmail.com>
4915
4916         PR gdb/17911
4917         * source.c (is_regular_file): New arg errno_ptr.
4918         All callers updated.
4919
4920 2016-04-19  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4921
4922         * linux-record.c (record_linux_system_call): Merge handling for
4923         readlink/recv/read and pipe/pipe2.
4924
4925 2016-04-14  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4926
4927         * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
4928         * features/i386/amd64-mpx.xml: Remove AVX feature.
4929         * features/i386/i386-mpx-linux.xml: Remove AVX feature.
4930         * features/i386/i386-mpx.xml: Remove AVX feature.
4931         * features/i386/amd64-mpx-linux.c: Regenerate.
4932         * features/i386/amd64-mpx.c: Regenerate.
4933         * features/i386/i386-mpx-linux.c: Regenerate.
4934         * features/i386/i386-mpx.c: Regenerate.
4935         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
4936         * regformats/i386/amd64-mpx.dat: Regenerate.
4937         * regformats/i386/i386-mpx-linux.dat: Regenerate.
4938         * regformats/i386/i386-mpx.dat: Regenerate.
4939
4940 2016-04-16  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4941
4942         * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
4943         New include.
4944         (amd64_linux_core_read_description): Add case for
4945          X86_XSTATE_AVX_MPX_MASK.
4946         (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
4947         * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
4948         * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
4949         (amd64_target_description): Add case for  X86_XSTATE_AVX_MPX_MASK.
4950         (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
4951         * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
4952         (X86_XSTATE_AVX_MPX_MASK): New case.
4953         * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
4954         (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
4955         (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
4956         (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
4957         New expedites.
4958         * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
4959         include.
4960         (i386_linux_core_read_description): Add case
4961         X86_XSTATE_AVX_MPX_MASK.
4962         (_initialize_i386_linux_tdep): Call
4963         initialize_tdesc_i386_avx_mpx_linux.
4964         * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
4965         * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
4966         (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
4967         * x86-linux-nat.c (x86_linux_read_description): Add case for
4968         X86_XSTATE_AVX_MPX_MASK.
4969         * features/i386/amd64-avx-mpx-linux.xml: New file.
4970         * features/i386/i386-avx-mpx-linux.xml: New file.
4971         * features/i386/i386-avx-mpx.xml: New file.
4972         * features/i386/amd64-avx-mpx.xml: New file.
4973         * features/i386/amd64-avx-mpx-linux.c: Generated.
4974         * features/i386/amd64-avx-mpx.c: Generated.
4975         * features/i386/i386-avx-mpx-linux.c: Generated.
4976         * features/i386/i386-avx-mpx.c: Generated.
4977         * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
4978         * regformats/i386/amd64-avx-mpx.dat: Generated.
4979         * regformats/i386/i386-avx-mpx-linux.dat: Generated.
4980         * regformats/i386/i386-avx-mpx.dat: Generated.
4981
4982 2016-04-18  Pedro Alves  <palves@redhat.com>
4983
4984         * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
4985         * configure: Regenerate.
4986
4987 2016-04-18  Martin Galvan  <martin.galvan@tallertechnologies.com>
4988
4989         * valops.c (value_addr): For C++ references, set the copied value's
4990         enclosing_type as well.
4991
4992 2016-04-18  Yao Qi  <yao.qi@linaro.org>
4993
4994         Revert:
4995         2016-04-15  Yao Qi  <yao.qi@linaro.org>
4996
4997         * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
4998         PC is far from the end of function.
4999
5000 2016-04-16  Pedro Alves  <palves@redhat.com>
5001
5002         * ada-exp.y (yydefred): Define as ada_yydefred.
5003
5004 2016-04-15  Pedro Alves  <palves@redhat.com>
5005
5006         * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
5007         'name_str' locals.
5008
5009 2016-04-15  Pedro Alves  <palves@redhat.com>
5010
5011         * btrace.c (pt_btrace_insn_flags): Change return type to
5012         btrace_insn_flags.  Use btrace_insn_flags for local.
5013
5014 2016-04-15  Pedro Alves  <palves@redhat.com>
5015
5016         * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
5017         accept TRAP_BRKPT.
5018          [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
5019
5020 2016-04-15  Yao Qi  <yao.qi@linaro.org>
5021
5022         * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
5023         PC is far from the end of function.
5024
5025 2016-04-14  Pedro Alves  <palves@redhat.com>
5026
5027         * cli/cli-cmds.c (alias_usage_error): New function.
5028         (alias_command): Use it.
5029         * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
5030         ctf_save_write_metadata call.
5031
5032 2016-04-14  Pedro Alves  <palves@redhat.com>
5033
5034         * ada-typeprint.c (print_fixed_point_type): Don't pass float as
5035         argument to function expecting LONGEST.
5036         * value.c (unpack_long): Add casts to LONGEST.
5037
5038 2016-04-13  Luis Machado  <lgustavo@codesourcery.com>
5039
5040         * exec.c (exec_file_locate_attach): Guard a couple functions
5041         that can throw errors.
5042         (exception_print_same): New helper function.
5043
5044 2016-04-13  Pedro Alves  <palves@redhat.com>
5045
5046         PR remote/19840
5047         * remote.c (struct remote_state) <last_resume_exec_dir>: New
5048         field.
5049         (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
5050         (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
5051         (remote_resume): Store the last execution direction.
5052         (remote_execution_direction): New function.
5053         (init_remote_ops): Install it as to_execution_direction target_ops
5054         method.
5055
5056 2016-04-12  Pedro Alves  <palves@redhat.com>
5057
5058         * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
5059         [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
5060
5061 2016-04-12  Pedro Alves  <palves@redhat.com>
5062
5063         * common/common-exceptions.c (struct catcher) <buf>: Now a
5064         'jmp_buf' instead of SIGJMP_BUF.
5065         (exceptions_state_mc_init): Change return type to 'jmp_buf'.
5066         (throw_exception): Use longjmp instead of SIGLONGJMP.
5067         * common/common-exceptions.h: Include <setjmp.h> instead of
5068         "gdb_setjmp.h".
5069         (exceptions_state_mc_init): Change return type to 'jmp_buf'.
5070         [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
5071         SIGSETJMP.
5072         * cp-support.c: Include "gdb_setjmp.h".
5073
5074 2016-04-12  Pedro Alves  <palves@redhat.com>
5075
5076         * common/common-exceptions.c (exception_rethrow): Remove
5077         prepare_to_throw_exception call.
5078         * common/common-exceptions.h (prepare_to_throw_exception): Delete
5079         declaration.
5080         * exceptions.c (prepare_to_throw_exception): Delete.
5081
5082 2016-04-12  Pedro Alves  <palves@redhat.com>
5083
5084         * target.c (target_check_pending_interrupt): Delete.
5085         * target.h (struct target_ops) <to_check_pending_interrupt>:
5086         Remove method.
5087         (target_check_pending_interrupt): Remove declaration.
5088         * target-delegates.c: Regenerate.
5089
5090 2016-04-12  Pedro Alves  <palves@redhat.com>
5091
5092         * defs.h: Update comments on SIGINT handling.
5093         (immediate_quit): Delete declaration.
5094         * event-loop.c (call_async_signal_handler): Delete.
5095         * event-loop.h (call_async_signal_handler): Delete declaration.
5096         (mark_async_signal_handler): Update comments.
5097         (gdb_call_async_signal_handler): Delete declaration.
5098         * event-top.c (handle_sigint): Call mark_async_signal_handler
5099         instead of gdb_call_async_signal_handler.
5100         * exceptions.c (prepare_to_throw_exception): Remove reference to
5101         immediate_quit.
5102         (exception_fprintf): Remove comments about immediate_quit.
5103         * mingw-hdep.c (sigint_event, sigint_handler): Delete.
5104         (gdb_select): Don't wait on sigint_event.
5105         (gdb_call_async_signal_handler): Delete.
5106         (_initialize_mingw_hdep): Delete.
5107         * posix-hdep.c (gdb_call_async_signal_handler): Delete.
5108         * utils.c (immediate_quit): Delete.
5109
5110 2016-04-12  Pedro Alves  <palves@redhat.com>
5111
5112         * defs.h (quit_handler_ftype, quit_handler)
5113         (make_cleanup_override_quit_handler, default_quit_handler): New.
5114         (QUIT): Adjust comments.
5115         * event-top.c (default_quit_handler): New function.
5116         (quit_handler): New global.
5117         (struct quit_handler_cleanup_data): New.
5118         (restore_quit_handler, restore_quit_handler_dtor)
5119         (make_cleanup_override_quit_handler): New.
5120         (async_request_quit): Call QUIT.
5121         * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
5122         (async_sigint_remote_twice_token, async_sigint_remote_token):
5123         Delete.
5124         (remote_close): Update comments.
5125         (remote_start_remote): Don't set immediate_quit.  Set starting_up
5126         earlier.
5127         (remote_serial_quit_handler, remote_unpush_and_throw): New
5128         functions.
5129         (remote_open_1): Clear got_ctrlc_during_io.  Set
5130         remote_async_terminal_ours_p unconditionally.
5131         (async_initialize_sigint_signal_handler)
5132         (async_handle_remote_sigint, async_handle_remote_sigint_twice)
5133         (remote_check_pending_interrupt, async_remote_interrupt)
5134         (async_remote_interrupt_twice)
5135         (async_cleanup_sigint_signal_handler, ofunc)
5136         (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
5137         (remote_terminal_inferior, remote_terminal_ours): Remove async
5138         checks.
5139         (remote_wait_as): Don't install a SIGINT handler in sync mode.
5140         (readchar, remote_serial_write): Override the quit handler with
5141         remote_serial_quit_handler.
5142         (getpkt_or_notif_sane_1): Don't call QUIT.
5143         (initialize_remote_ops): Don't install
5144         remote_check_pending_interrupt.
5145         (_initialize_remote): Don't create async_sigint_remote_token and
5146         async_sigint_remote_twice_token.
5147         * ser-base.c (ser_base_wait_for): Call QUIT and use
5148         interruptible_select.
5149         (ser_base_write): Call QUIT.
5150         * ser-go32.c (dos_readchar, dos_write): Call QUIT.
5151         * ser-unix.c (wait_for): Don't use VTIME.  Always take the
5152         gdb_select path, but call QUIT and interruptible_select.
5153         * utils.c (maybe_quit): Call the current quit handler.  Don't call
5154         target_check_pending_interrupt.
5155         (defaulted_query, prompt_for_continue): Override the quit handler
5156         with the default quit handler.
5157
5158 2016-04-12  Pedro Alves  <palves@redhat.com>
5159
5160         * tui/tui-hooks.c (tui_target_has_run): Delete.
5161         (tui_about_to_proceed): Delete.
5162         (tui_about_to_proceed_observer): Delete.
5163         (tui_install_hooks, tui_remove_hooks): Don't install/remove an
5164         about_to_proceed observer.
5165
5166 2016-04-12  Pedro Alves  <palves@redhat.com>
5167
5168         * mi/mi-interp.c (mi_new_thread): Put
5169         target_terminal_ours_for_output in effect while outputting.
5170         (mi_thread_exit): Use target_terminal_ours_for_output instead of
5171         target_terminal_ours.
5172         (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
5173         (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
5174         (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
5175         (mi_breakpoint_created, mi_breakpoint_deleted)
5176         (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
5177         (mi_command_param_changed, mi_memory_changed)
5178         (report_initial_inferior): Use target_terminal_ours_for_output
5179         instead of target_terminal_ours.  Restore terminal settings.
5180         * mi/mi-main.c (mi_execute_command): Use
5181         target_terminal_ours_for_output instead of target_terminal_ours.
5182         Restore terminal settings.
5183
5184 2016-04-12  Pedro Alves  <palves@redhat.com>
5185
5186         PR gdb/19828
5187         * gnu-nat.c (inf_validate_task_sc): Don't call
5188         target_terminal_ours / target_terminal_inferior around query.
5189         * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
5190         call target_terminal_ours / target_terminal_inferior around
5191         yquery.
5192         * linux-record.c (record_linux_system_call): Don't call
5193         target_terminal_ours / target_terminal_inferior around yquery.
5194         * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
5195         / target_terminal_inferior around query.
5196         * record-full.c (record_full_check_insn_num): Remove
5197         'set_terminal' parameter.  Don't call target_terminal_ours /
5198         target_terminal_inferior around query.
5199         (record_full_message, record_full_registers_change)
5200         (record_full_xfer_partial): Adjust.
5201         * remote.c (interrupt_query): Don't call target_terminal_ours /
5202         target_terminal_inferior around query.
5203         * utils.c (defaulted_query): Install cleanup to restore target
5204         terminal.  Put target_terminal_ours_for_output in effect while
5205         defaulted producing, and target_terminal_ours in in effect while
5206         handling input.
5207         (prompt_for_continue): Install cleanup to restore target terminal.
5208         Put target_terminal_ours in in effect while handling input.
5209
5210 2016-04-12  Pedro Alves  <palves@redhat.com>
5211
5212         * utils.c (defaulted_query, prompt_for_continue): Free temporary
5213         strings with cleanups, instead of xfree.
5214
5215 2016-04-12  Pedro Alves  <palves@redhat.com>
5216
5217         * utils.c (vwarning, internal_vproblem): Use
5218         make_cleanup_restore_target_terminal and
5219         target_terminal_ours_for_output.
5220
5221 2016-04-12  Pedro Alves  <palves@redhat.com>
5222
5223         * infcmd.c (post_create_inferior, prepare_one_step): Use
5224         target_terminal_ours_for_output instead of target_terminal_ours.
5225
5226 2016-04-12  Pedro Alves  <palves@redhat.com>
5227
5228         * exceptions.c (print_flush): Use target_terminal_ours_for_output
5229         instead of target_terminal_ours, and restore target terminal with
5230         a cleanup.
5231
5232 2016-04-12  Pedro Alves  <palves@redhat.com>
5233
5234         * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
5235         instead of target_terminal_ours, and restore target terminal with
5236         a cleanup.
5237
5238 2016-04-12  Pedro Alves  <palves@redhat.com>
5239
5240         * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
5241         functions.
5242         (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
5243
5244 2016-04-12  Pedro Alves  <palves@redhat.com>
5245
5246         * ser-base.c (fd_event): Retry read_prim on EINTR.
5247         (do_ser_base_readchar): Retry read_prim on EINTR.
5248         (ser_base_write): Retry write_prim on EINTR.
5249         * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
5250         (ser_unix_write_prim): Remove comment.
5251
5252 2016-04-12  Pedro Alves  <palves@redhat.com>
5253
5254         * remote.c (remote_pass_ctrlc): New function.
5255         (init_remote_ops): Install it.
5256         * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
5257         target.
5258         (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
5259         * target.h (struct target_ops) <to_pass_ctrlc>: New method.
5260         (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
5261         * target-delegates.c: Regenerate.
5262
5263 2016-04-12  Pedro Alves  <palves@redhat.com>
5264
5265         * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
5266         mode.
5267         * linux-nat.c (linux_nat_interrupt): Delete.
5268         (linux_nat_add_target): Don't install linux_nat_interrupt.
5269         * remote.c (remote_interrupt_ns): Change return type to void.
5270         Throw error if interrupting the target is not supported.
5271         (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
5272
5273 2016-04-12  Pedro Alves  <palves@redhat.com>
5274
5275         * defs.h (clear_quit_flag): Remove declaration.
5276         * extension-priv.h (struct extension_language_ops)
5277         <clear_quit_flag>: Remove field and update comments.
5278         * extension.c (clear_quit_flag): Delete.
5279         * guile/guile.c (guile_extension_ops): Adjust.
5280         * python/python.c (python_extension_ops): Adjust.
5281         (gdbpy_clear_quit_flag): Delete.
5282
5283 2016-04-12  Pedro Alves  <palves@redhat.com>
5284
5285         * main.c (captured_main): Don't clear the quit flag.
5286
5287 2016-04-12  Pedro Alves  <palves@redhat.com>
5288
5289         * exceptions.c (prepare_to_throw_exception): Don't clear the quit
5290         flag.
5291
5292 2016-04-12  Pedro Alves  <palves@redhat.com>
5293
5294         * event-top.c (command_handler): Don't call clear_quit_flag.
5295
5296 2016-04-12  Pedro Alves  <palves@redhat.com>
5297
5298         * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
5299         * remote.c (remote_wait_as): Don't call clear_quit_flag.
5300
5301 2016-04-12  Pedro Alves  <palves@redhat.com>
5302
5303         * python/python.c: Include "ser-event.h".
5304         (gdbpy_event_fds): Delete.
5305         (gdbpy_serial_event): New.
5306         (gdbpy_run_events): Change prototype.  Use serial_event_clear
5307         instead of serial_readchar.
5308         (gdbpy_post_event): Use serial_event_set instead of serial_write.
5309         (gdbpy_initialize_events): Use make_serial_event instead of
5310         serial_pipe.
5311
5312 2016-04-12  Pedro Alves  <palves@redhat.com>
5313
5314         * defs.h: Extend QUIT-related comments to mention
5315         interruptible_select.
5316         (quit_serial_event_set, quit_serial_event_clear): Declare.
5317         * event-top.c: Include "ser-event.h" and "gdb_select.h".
5318         (quit_serial_event): New global.
5319         (async_init_signals): Make quit_serial_event.
5320         (quit_serial_event_set, quit_serial_event_clear)
5321         (quit_serial_event_fd, interruptible_select): New functions.
5322         * extension.c (set_quit_flag): Set the quit serial event.
5323         (check_quit_flag): Clear the quit serial event.
5324         * gdb_select.h (interruptible_select): New declaration.
5325         * guile/scm-ports.c (ioscm_input_waiting): Use
5326         interruptible_select instead of gdb_select.
5327         * top.c (gdb_readline_no_editing): Likewise.
5328         * ui-file.c (stdio_file_read): Likewise.
5329
5330 2016-04-12  Pedro Alves  <palves@redhat.com>
5331
5332         * event-loop.c: Include "ser-event.h".
5333         (async_signal_handlers_serial_event): New global.
5334         (async_signals_handler, initialize_async_signal_handlers): New
5335         functions.
5336         (mark_async_signal_handler): Set
5337         async_signal_handlers_serial_event.
5338         (invoke_async_signal_handlers): Clear
5339         async_signal_handlers_serial_event.
5340         * event-top.c (async_init_signals): Call
5341         initialize_async_signal_handlers.
5342
5343 2016-04-12  Pedro Alves  <palves@redhat.com>
5344
5345         * Makefile.in (SFILES): Add ser-event.c.
5346         (HFILES_NO_SRCDIR): Add ser-event.h.
5347         (COMMON_OBS): Add ser-event.o.
5348         * ser-event.c, ser-event.h: New files.
5349         * serial.c (new_serial): New function, factored out from
5350         (serial_fdopen_ops): ... this.
5351         (serial_open_ops_1): New function, factored out from
5352         (serial_open): ... this.
5353         (serial_open_ops): New function.
5354         * serial.h (struct serial): Forware declare.
5355         (serial_open_ops): New declaration.
5356
5357 2016-04-12  Pedro Alves  <palves@redhat.com>
5358
5359         * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
5360         Remove references to name.
5361         * serial.h (struct serial) <name>: Delete.
5362
5363 2016-04-12  Pedro Alves  <palves@redhat.com>
5364
5365         * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
5366         Delete.
5367         (async_remote_fileio_interrupt): Delete.
5368         (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
5369         handler.  Instead just always set the ctrl_c flag.
5370         (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
5371         re-enabling the SIGINT handler.
5372         (remote_fileio_func_open, remote_fileio_func_close)
5373         (remote_fileio_func_read, remote_fileio_func_write)
5374         (remote_fileio_func_lseek, remote_fileio_func_rename)
5375         (remote_fileio_func_unlink, remote_fileio_func_stat)
5376         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5377         (remote_fileio_func_isatty, remote_fileio_func_system)
5378         (remote_fileio_request): Remove references to
5379         remote_fio_no_longjmp.
5380         (initialize_remote_fileio): Don't create an async signal handler.
5381
5382 2016-04-12  Pedro Alves  <palves@redhat.com>
5383
5384         * event-top.c (stdin_event_handler): Call QUIT;
5385         (prompt_for_continue): Don't run with immediate_quit set.
5386
5387 2016-04-12  Pedro Alves  <palves@redhat.com>
5388
5389         * tui/tui-io.c (tui_redisplay_readline): Check
5390         gdb_in_secondary_prompt_p instead of immediate_quit.
5391         * tui/tui.c: Include top.h.
5392         (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
5393         immediate_quit.
5394
5395 2016-04-12  Pedro Alves  <palves@redhat.com>
5396
5397         * top.c (read_command_file): Inline command_loop here.
5398         (command_loop): Delete.
5399
5400 2016-04-12  Pedro Alves  <palves@redhat.com>
5401
5402         * top.c: Include "gdb_select.h".
5403         (gdb_readline_no_editing): Wait for input with gdb_select instead
5404         of blocking in fgetc.
5405         (command_line_input): Don't set immediate_quit.
5406
5407 2016-04-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
5408
5409         * value.c (value_next): Make pass-by-reference parameters const-correct.
5410         (value_parent): Likewise.
5411         (value_enclosing_type): Likewise.
5412         (value_lazy): Likewise.
5413         (value_stack): Likewise.
5414         (value_embedded_offset): Likewise.
5415         (value_pointed_to_offset): Likewise.
5416         (value_raw_address): Likewise.
5417         (deprecated_value_modifiable): Likewise.
5418         (value_free_to_mark): Likewise.
5419         (value_release_to_mark): Likewise.
5420         (internalvar_name): Likewise.
5421         (readjust_indirect_value_type): Likewise.
5422         (value_initialized): Likewise.
5423         * value.h (value_next): Likewise.
5424         (value_parent): Likewise.
5425         (value_enclosing_type): Likewise.
5426         (value_lazy): Likewise.
5427         (value_stack): Likewise.
5428         (value_embedded_offset): Likewise.
5429         (value_pointed_to_offset): Likewise.
5430         (value_raw_address): Likewise.
5431         (deprecated_value_modifiable): Likewise.
5432         (value_free_to_mark): Likewise.
5433         (value_release_to_mark): Likewise.
5434         (internalvar_name): Likewise.
5435         (readjust_indirect_value_type): Likewise.
5436         (value_initialized): Likewise.
5437
5438 2016-04-07  Yao Qi  <yao.qi@linaro.org>
5439
5440         * record-full.c (record_full_insert_breakpoint): Return
5441         early if entry on the address is found in
5442         record_full_breakpoints.
5443
5444 2016-04-07  Yao Qi  <yao.qi@linaro.org>
5445
5446         * record-full.c (record_full_insert_breakpoint): Set
5447         bp_tgt->reqstd_address and bp_tgt->placed_size.
5448
5449 2016-04-06  Don Breazeal  <donb@codesourcery.com>
5450
5451         * value.c (value_actual_type): Don't try to get rtti type
5452         of the value if it has been optimized out.
5453         (value_optimized_out): If a memory access error occurs,
5454         just check vaue->optimized_out.
5455
5456 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5457
5458         Revert the previous commit adding unknown_v_replies_ok.
5459
5460 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5461
5462         * remote.c (struct remote_state): New field unknown_v_replies_ok.
5463         (packet_config_support): Read it.
5464         (remote_start_remote): Set it.
5465
5466 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5467
5468         * remote.c: Revert check-in by a mistake in the previous commit.
5469
5470 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5471             Pedro Alves  <palves@redhat.com>
5472
5473         * exec.c (exec_file_locate_attach): Print warning for unsupported
5474         target_pid_to_exec_file.
5475         * symfile-mem.c (add_vsyscall_page): Remove the "file" command
5476         message part.
5477
5478 2016-04-04  Simon Marchi  <simon.marchi@ericsson.com>
5479
5480         * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
5481         trailing spaces.
5482
5483 2016-04-01  Artemiy Volkov  <artemiyv@acm.org>
5484
5485         PR gdb/19820
5486         * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
5487         the type of BINOP_REPEAT's second operand.
5488
5489 2016-03-31  Yichao Yu  <yyc1992@gmail.com>
5490
5491         PR gdb/19858
5492         * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
5493         got the breakpoint at the right address.
5494         (jit_inferior_created): New function.
5495         (_initialize_jit): Install jit_inferior_created as
5496         inferior_created observer.
5497
5498 2016-03-31  Marcin Kościelnicki  <koriakin@0x04.net>
5499
5500         * NEWS: Mention support for tracepoints on powerpc*-linux.
5501
5502 2016-03-31  Catalin Udma  <catalin.udma@freescale.com>
5503
5504         PR python/19743
5505         * python/python.c (execute_gdb_command): Use console uiout
5506         when executing gdb command.
5507         * utils.c (restore_ui_out_closure): New structure.
5508         (do_restore_ui_out): New function.
5509         (make_cleanup_restore_ui_out): Likewise.
5510         * utils.h (make_cleanup_restore_ui_out): Declare.
5511
5512 2016-03-31  Pedro Alves  <palves@redhat.com>
5513
5514         * NEWS: Mention that support for "target m32rsdi", "target mips",
5515         "target pmon", "target ddb", "target rockhopper", and "target lsi"
5516         was removed.
5517         * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
5518         remote-mips.o.
5519         (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
5520         * configure.tgt: Remove all references to remote-m32r-sdi.o and
5521         remote-mips.o.
5522         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
5523         function.
5524         * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
5525         declaration.
5526         * remote-m32r-sdi.c, remote-mips.c: Delete files.
5527         * symfile.c (generic_load, generic_load): Remove comments.
5528
5529 2016-03-30  Yao Qi  <yao.qi@linaro.org>
5530
5531         * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
5532         0 rather than NULL.
5533
5534 2016-03-30  Yao Qi  <yao.qi@linaro.org>
5535
5536         * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
5537         (arm_epilogue_frame_this_id): New function.
5538         (arm_epilogue_frame_prev_register): New function.
5539         (arm_epilogue_frame_sniffer): New function.
5540         (arm_epilogue_frame_unwind): New.
5541         (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
5542
5543 2016-03-30  Yao Qi  <yao.qi@linaro.org>
5544
5545         * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
5546         (arm_stack_frame_destroyed_p_1): ... here.  Don't call
5547         arm_pc_is_thumb.
5548         (arm_stack_frame_destroyed_p): Call
5549         thumb_stack_frame_destroyed_p and
5550         arm_stack_frame_destroyed_p_1.
5551
5552 2016-03-30  Doug Evans  <dje@google.com>
5553
5554         * python/py-utils.c (host_string_to_python_string): New function.
5555         * python/python-internal.h (host_string_to_python_string): Declare it.
5556         * python/py-*.c (*): Update all calls to
5557         PyString_Decode (str, strlen (str), host_charset (), NULL);
5558         to use host_string_to_python_string instead.
5559
5560 2016-03-30  Marcin Kościelnicki  <koriakin@0x04.net>
5561
5562         * remote.c (remote_check_symbols): Allocate own buffer for reply.
5563
5564 2016-03-29  Max Filippov  <jcmvbkbc@gmail.com>
5565
5566         * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
5567         Use safe_read_memory_integer instead of read_memory_integer.
5568
5569 2016-03-29  Marcin Kościelnicki  <koriakin@0x04.net>
5570
5571         * NEWS: Mention support for tracepoints on s390*-linux.
5572
5573 2016-03-29  Don Breazeal  <donb@codesourcery.com>
5574
5575         * gdb/value.c (value_actual_type): Fix formatting issue.
5576
5577 2016-03-23  Yao Qi  <yao.qi@linaro.org>
5578
5579         * gdbarch.sh (software_single_step): Remove comments.
5580         * gdbarch.h: Regenerated.
5581
5582 2016-03-21  Yao Qi  <yao.qi@linaro.org>
5583
5584         * arm-tdep.c (arm_record_media): New.
5585         (arm_record_ld_st_reg_offset): Call arm_record_media.
5586
5587 2016-03-21  Yao Qi  <yao.qi@linaro.org>
5588
5589         * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
5590         more syscalls.
5591
5592 2016-03-18  Yao Qi  <yao.qi@linaro.org>
5593
5594         * sparc-tdep.c (sparc_software_single_step): Make it static.
5595         * sparc-tdep.h (sparc_software_single_step): Remove declaration.
5596
5597 2016-03-18  Yao Qi  <yao.qi@linaro.org>
5598
5599         * spu-tdep.c (spu_software_single_step): Throw error when
5600         target_read_memory fails.
5601
5602 2016-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5603
5604         * linux-thread-db.c (check_pid_namespace_match): Extend the message.
5605
5606 2016-03-17  Pedro Alves  <palves@redhat.com>
5607             Don Breazeal  <donb@codesourcery.com>
5608
5609         PR remote/19496
5610         * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
5611         instead of checking the 'non_stop' global.
5612         * remote.c (remote_add_thread): New parameter 'executing'.  Use it
5613         to set the new thread's executing state.
5614         (remote_notice_new_inferior): Rename parameter 'running' to
5615         'executing'.  Always set the thread state to THREAD_RUNNING in
5616         non-stop mode, and to THREAD_STOPPED in all-stop mode.  Pass
5617         EXECUTING to remote_add_thread and notice_new_inferior.
5618         (remote_update_thread_list): Update to pass executing state, not
5619         running state.
5620
5621 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5622
5623         * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
5624         to 374.
5625         * syscalls/s390x-linux.xml: Likewise.
5626
5627 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5628
5629         * linux-record.c (record_mem_at_reg): New helper function.
5630         (record_linux_system_call): Exploit new helper function where
5631         applicable.
5632
5633 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5634
5635         * linux-record.c: Fix whitespace issues; tabify, remove trailing
5636         spaces.
5637
5638 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5639
5640         * linux-record.c (record_linux_system_call): Add missing return
5641         statements to handling of pipe and pipe2 syscalls.
5642
5643 2016-03-16  Doug Evans  <dje@google.com>
5644
5645         * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
5646
5647 2016-03-16  Yao Qi  <yao.qi@linaro.org>
5648
5649         * arm-linux-tdep.c (arm_linux_init_abi): Fix
5650         arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
5651         arm_linux_record_tdep.arg3.  Set arm_linux_record_tdep.arg4,
5652         arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
5653         arm_linux_record_tdep.arg7.
5654
5655 2016-03-15  Keith Seitz  <keiths@redhat.com>
5656
5657         PR breakpoints/18303
5658         * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
5659         look for "::" instead of simply ":".
5660         (cp_search_static_and_baseclasses): Return null_block_symbol for
5661         malformed input.
5662         Remove assertions.
5663         * cp-support.c (cp_find_first_component_aux): Do not return
5664         a prefix length for ':' unless the next character is also ':'.
5665
5666 2016-03-15  Doug Evans  <dje@google.com>
5667
5668         * features/aarch64-core.xml (cpsr_flags): New flags type.
5669         (cpsr): Use it.
5670         * features/aarch64.c: Regenerate.
5671
5672 2016-03-15  Doug Evans  <dje@google.com>
5673
5674         * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
5675         * features/i386/32bit-sse.xml (i386_eflags): Ditto.
5676         * features/i386/64bit-core.xml (i386_eflags): Ditto.
5677         * features/i386/64bit-sse.xml (i386_eflags): Ditto.
5678         * features/i386/x32-core.xml (i386_eflags): Ditto.
5679
5680 2016-03-15  Doug Evans  <dje@google.com>
5681             Wei-cheng Wang  <cole945@gmail.com>
5682
5683         Extend flags to support multibit and enum bitfields.
5684         * NEWS: Document new features.
5685         * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
5686         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
5687         * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
5688         (append_flags_type_field): New function.
5689         (append_flags_type_flag): Call it.
5690         * gdbtypes.h (append_flags_type_field): Declare.
5691         * target-descriptions.c (struct tdesc_type_flag): Delete.
5692         (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
5693         (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
5694         (struct tdesc_type) <u.f>: Delete.
5695         (tdesc_predefined_types): Add "bool".
5696         (tdesc_predefined_type): New function.
5697         (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
5698         Update TDESC_TYPE_FLAGS support.
5699         (tdesc_free_type): Handle TDESC_TYPE_ENUM.  Update TDESC_TYPE_FLAGS.
5700         (tdesc_create_flags): Update.
5701         (tdesc_create_enum): New function.
5702         (tdesc_add_field): Initialize start,end to -1.
5703         (tdesc_add_typed_bitfield): New function.
5704         (tdesc_add_bitfield): Call it.
5705         (tdesc_add_flag): Allow TDESC_TYPE_STRUCT.  Update.
5706         (tdesc_add_enum_value): New function.
5707         (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
5708         TDESC_TYPE_STRUCT.  Handle TDESC_TYPE_ENUM.
5709         * target-descriptions.h (tdesc_create_enum): Declare.
5710         (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
5711         * valprint.c (generic_val_print_enum_1): New function.
5712         (generic_val_print_enum): Call it.
5713         (val_print_type_code_flags): Make static.  Handle multibit bitfields
5714         and enum bitfields.
5715         * valprint.h (val_print_type_code_flags): Delete.
5716         * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
5717         Delete.  All uses removed.
5718         (tdesc_start_enum): New function.
5719         (tdesc_start_field): Handle multibit and enum bitfields.
5720         (tdesc_start_enum_value): New function.
5721         (enum_value_attributes, enum_children, enum_attributes): New static
5722         globals.
5723         (feature_children): Add "enum".
5724         * features/gdb-target.dtd (enum, evalue): New elements.
5725
5726 2016-03-15  Doug Evans  <dje@google.com>
5727
5728         * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
5729         from LONGEST to int.
5730         (struct tdesc_type) <u.f.size>: Ditto.
5731         (tdesc_set_struct_size): Change type of "size" arg from LONGEST
5732         to int.  Add assertion size > 0.
5733         (tdesc_create_flags): Ditto.
5734         * target-descriptions.h (tdesc_set_struct_size): Update.
5735         (tdesc_create_flags): Update.
5736         * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
5737         (MAX_VECTOR_SIZE): New macro.
5738         (tdesc_start_struct): Catch conversion errors from LONGEST to int.
5739         (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
5740
5741 2016-03-15  Doug Evans  <dje@google.com>
5742
5743         * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
5744         TYPE_CODE_FLAGS instead of "field_type", for consistency.
5745         * features/i386/amd64-avx-linux.c: Regenerate.
5746         * features/i386/amd64-avx.c: Regenerate.
5747         * features/i386/amd64-avx512-linux.c: Regenerate.
5748         * features/i386/amd64-avx512.c: Regenerate.
5749         * features/i386/amd64-linux.c: Regenerate.
5750         * features/i386/amd64-mpx-linux.c: Regenerate.
5751         * features/i386/amd64-mpx.c: Regenerate.
5752         * features/i386/amd64.c: Regenerate.
5753         * features/i386/i386-avx-linux.c: Regenerate.
5754         * features/i386/i386-avx.c: Regenerate.
5755         * features/i386/i386-avx512-linux.c: Regenerate.
5756         * features/i386/i386-avx512.c: Regenerate.
5757         * features/i386/i386-linux.c: Regenerate.
5758         * features/i386/i386-mmx-linux.c: Regenerate.
5759         * features/i386/i386-mmx.c: Regenerate.
5760         * features/i386/i386-mpx-linux.c: Regenerate.
5761         * features/i386/i386-mpx.c: Regenerate.
5762         * features/i386/i386.c: Regenerate.
5763         * features/i386/x32-avx-linux.c: Regenerate.
5764         * features/i386/x32-avx.c: Regenerate.
5765         * features/i386/x32-avx512-linux.c: Regenerate.
5766         * features/i386/x32-avx512.c: Regenerate.
5767         * features/i386/x32-linux.c: Regenerate.
5768         * features/i386/x32.c: Regenerate.
5769
5770 2016-03-15  Pedro Alves  <palves@redhat.com>
5771
5772         PR gdb/19676
5773         * linux-thread-db.c (try_thread_db_load_1): Leave
5774         info->td_ta_thr_iter_p NULL iff debugging a live process and we
5775         have /proc access.
5776         (find_new_threads_once): Assert that we have a non-NULL
5777         info->td_ta_thr_iter_p instead of checking whether the target has
5778         execution.
5779
5780 2016-03-15  Pedro Alves  <palves@redhat.com>
5781
5782         PR gdb/19676
5783         * infrun.c (displaced_step_prepare): Also disable displaced
5784         stepping on NOT_SUPPORTED_ERROR.
5785         * linux-tdep.c (linux_displaced_step_location): If reading auxv
5786         fails, throw NOT_SUPPORTED_ERROR instead of generic error.
5787
5788 2016-03-13  Marcin Kościelnicki  <koriakin@0x04.net>
5789
5790         * s390-linux-tdep.c (s390_gen_return_address): New function.
5791         (s390_gdbarch_init): Fill gen_return_address hook.
5792
5793 2016-03-11  Andrew Burgess  <andrew.burgess@embecosm.com>
5794
5795         * symmisc.c (maintenance_info_line_tables): New function.
5796         (maintenance_print_one_line_table): New function.
5797         (_initialize_symmisc): Register 'maint info line-table' command.
5798         * NEWS: Mention new command.
5799
5800 2016-03-11  Marcin Kościelnicki  <koriakin@0x04.net>
5801
5802         * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
5803         (s390_ax_pseudo_register_push_stack): New function.
5804         (s390_gdbarch_init): Fill ax_pseudo_register_collect and
5805         ax_pseudo_register_push_stack hooks.
5806
5807 2016-03-10  Simon Marchi  <simon.marchi@polymtl.ca>
5808
5809         * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
5810         gdb/function/as_string.py.
5811         * python/lib/gdb/function/as_string.py: New file.
5812         * NEWS: Mention the new $_as_string function.
5813
5814 2016-03-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
5815
5816         * target.h: Fix doc string of target_can_use_hardware_watchpoint.
5817
5818 2016-03-09  Pedro Alves  <palves@redhat.com>
5819
5820         * event-top.c (more_to_come): Delete.
5821         (struct readline_input_state): Delete.
5822         (readline_input_state): Delete.
5823         (get_command_line_buffer): New function.
5824         (command_handler): Update comments.  Don't handle NULL commands
5825         here.  Do not execute commented lines.
5826         (command_line_append_input_line): New function.
5827         (handle_line_of_input): New function, partly based on
5828         command_line_handler and command_line_input.
5829         (command_line_handler): Rewrite.
5830         * event-top.h (command_handler): New declaration.
5831         (command_loop): Defer command execution to command_handler.
5832         (command_line_input): Update comments.  Simplify, using struct
5833         buffer and handle_line_of_input.
5834         * top.h (struct buffer): New forward declaration.
5835         (handle_line_of_input): New declaration.
5836
5837 2016-03-09  Pedro Alves  <palves@redhat.com>
5838
5839         * event-top.c (command_line_handler): Use xfree + xstrdup instead
5840         of xrealloc + strcpy.
5841         * main.c (captured_main): Use xstrdup instead of xmalloc plus
5842         manual clear.
5843         * top.c (saved_command_line): Rewrite comment.
5844         (saved_command_line_size): Delete.
5845         (command_line_input): Use xfree + xstrdup instead of xrealloc +
5846         strcpy.
5847         * top.h (saved_command_line_size): Delete declaration.
5848
5849 2016-03-09  Pedro Alves  <palves@redhat.com>
5850
5851         * event-top.c: Include buffer.h.
5852         (gdb_readline_no_editing_callback): Use struct buffer instead
5853         of xrealloc.
5854
5855 2016-03-09  Pedro Alves  <palves@redhat.com>
5856
5857         * common/buffer.h (buffer_grow_char): New function.
5858         * top.c: Include buffer.h.
5859         (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
5860         'prompt'.  Use struct buffer instead of xrealloc.
5861
5862 2016-03-09  Pedro Alves  <palves@redhat.com>
5863
5864         * defs.h (gdb_readline): Delete declaration.
5865         * top.c (gdb_readline): Rename to ...
5866         (gdb_readline_no_editing): ... this, and make static.
5867
5868 2016-03-09  Pedro Alves  <palves@redhat.com>
5869
5870         * utils.c (prompt_for_continue): Update comments.
5871
5872 2016-03-09  Pedro Alves  <palves@redhat.com>
5873
5874         * event-top.c (async_annotation_suffix): Delete.
5875         (top_level_prompt, command_line_handler): Don't use
5876         'async_annotation_suffix' and simplify.
5877         * event-top.h (async_annotation_suffix): Delete declaration.
5878         (init_main): Remove reference to 'async_annotation_suffix'.
5879
5880 2016-03-09  Pedro Alves  <palves@redhat.com>
5881
5882         * event-top.c (gdb_readline2): Rename to ...
5883         (gdb_readline_no_editing_callback): ... this.
5884         (change_line_handler, stdin_event_handler)
5885         (gdb_setup_readline): Adjust.
5886         * event-top.h (gdb_readline2): Rename to ...
5887         (gdb_readline_no_editing_callback): ... this, and move closer to
5888         other readline-related declarations.
5889         * mi/mi-interp.c (mi_interpreter_resume): Adjust.
5890
5891 2016-03-09  Pedro Alves  <palves@redhat.com>
5892
5893         * top.c (window_hook): Delete.
5894         (command_loop): Remove references to window_hook.
5895
5896 2016-03-09  Marcin Kościelnicki  <koriakin@0x04.net>
5897
5898         * corefile.c (safe_read_memory_unsigned_integer): New function.
5899         * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
5900         * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
5901
5902 2016-03-09  Marcin Kościelnicki  <koriakin@0x04.net>
5903
5904         * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
5905         (rs6000_gen_return_address): New function.
5906         (rs6000_gdbarch_init): Wire in the above.
5907
5908 2016-03-09  Marcin Kościelnicki  <koriakin@0x04.net>
5909
5910         * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
5911         (rs6000_gdbarch_init): Wire in the above.
5912
5913 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5914
5915         * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
5916         instructions that do nothing or are conditional traps.
5917
5918 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5919
5920         * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
5921         frame func's PC in info->func before any other failure can occur.
5922         (s390_frame_this_id): Use frame_id_build_unavailable_stack if
5923         info->func has been filled out.
5924
5925 2016-03-09  Pedro Alves  <palves@redhat.com>
5926
5927         * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
5928
5929 2016-03-09  Pedro Alves  <palves@redhat.com>
5930
5931         * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
5932
5933 2016-03-09  Pedro Alves  <palves@redhat.com>
5934
5935         * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
5936         order is BFD_ENDIAN_BIG or if the cris version is unsupported.
5937
5938 2016-03-09  Pedro Alves  <palves@redhat.com>
5939
5940         * doublest.c: Extend comments.
5941         (floatformat_to_doublest, floatformat_from_doublest): Copy the
5942         floatformat's total size, not the host type's size.
5943
5944 2016-03-09  Pedro Alves  <palves@redhat.com>
5945
5946         * doublest.c (floatformat_totalsize_bytes): New function.
5947         (floatformat_from_type): Assert that the type's length is at least
5948         as long as the floatformat's totalsize.
5949         * doublest.h (floatformat_totalsize_bytes): New declaration.
5950         * gdbtypes.c (arch_float_type): Assert that the type's length is
5951         at least as long as the floatformat's totalsize.
5952
5953 2016-03-09  Pedro Alves  <palves@redhat.com>
5954
5955         * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
5956         format to floatformats_ieee_double.
5957
5958 2016-03-07  Pedro Alves  <palves@redhat.com>
5959
5960         * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
5961         before calling bfd_get_flavour.
5962
5963 2016-03-05  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5964
5965         * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
5966         (avr_push_dummy_call): Correct last needed argument register.
5967         Write MSB of argument into register and subsequent bytes into
5968         other registers in decreasing order.
5969
5970 2016-03-04  Yao Qi  <yao.qi@linaro.org>
5971
5972         * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
5973         condition check.  Record the right D register number.
5974
5975 2016-03-04  Yao Qi  <yao.qi@linaro.org>
5976
5977         * arm-tdep.c (arm_record_extension_space): Remove code
5978         printing "Process record does not support".
5979         (arm_record_data_proc_misc_ld_str): Likewise.
5980         (decode_insn): Call arm_record_extension_space if condition
5981         is 0xf.  Call arm_record_unsupported_insn if ret isn't
5982         ARM_RECORD_SUCCESS.  Use 'ret' instead of 'insn_id' to hold
5983         the value of thumb2_record_decode_insn_handler.
5984
5985 2016-03-04  Simon Marchi  <simon.marchi@ericsson.com>
5986
5987         * features/feature_to_c.sh: Print the help when passing no
5988         argument.
5989
5990 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
5991
5992         * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
5993
5994 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
5995
5996         * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
5997
5998 2016-03-01  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5999
6000         * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
6001         exception when attempting to access the inferior's backchain.
6002
6003 2016-02-29  Yao Qi  <yao.qi@linaro.org>
6004
6005         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
6006         eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
6007         Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
6008         for aarch64_sys_epoll_create1.
6009
6010 2016-02-29  Yao Qi  <yao.qi@linaro.org>
6011
6012         * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
6013         <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
6014         <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
6015         * linux-record.c (record_linux_system_call): Handle them.
6016
6017 2016-02-28  Iain Buclaw  <ibuclaw@gdcproject.org>
6018
6019         * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
6020         cyclic imports.
6021
6022 2016-02-26  Keith Seitz  <keiths@redhat.com>
6023
6024         * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
6025         to avoid invalid conversion from void *.
6026
6027 2016-02-26  Yao Qi  <yao.qi@linaro.org>
6028
6029         * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
6030         per bit 8.  Check bit 20 instead of bit 4 for VMOV
6031         instruction.  Record D registers for instructions changing
6032         S registers.  Change of the order of length and address
6033         in record_buf_mem array.
6034
6035 2016-02-26  Yao Qi  <yao.qi@linaro.org>
6036
6037         * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
6038         number of Rd.
6039
6040 2016-02-25  Doug Evans  <dje@google.com>
6041
6042         * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
6043         compiler warning.
6044         (recv_long_data): Ditto.
6045
6046 2016-02-25  Simon Marchi  <simon.marchi@ericsson.com>
6047
6048         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
6049         Initialize variables.
6050
6051 2016-02-25  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6052
6053         * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
6054         (ax_reg_mask): Likewise.
6055
6056 2016-02-24  Pedro Alves  <palves@redhat.com>
6057
6058         * linux-nat.c (save_sigtrap) Delete.
6059         (stop_wait_callback): Call save_stop_reason instead of
6060         save_sigtrap.
6061         (check_stopped_by_breakpoint): Rename to ...
6062         (save_stop_reason): ... this.  Bits of save_sigtrap folded here.
6063         Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
6064         GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.  Factor out
6065         common code between the USE_SIGTRAP_SIGINFO and
6066         !USE_SIGTRAP_SIGINFO blocks.
6067         (linux_nat_filter_event): Call save_stop_reason instead of
6068         save_sigtrap.
6069         * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
6070         si_code for MIPS.
6071         * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table.  Add
6072         comments on MIPS behavior.
6073         (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
6074
6075 2016-02-24  Marcin Kościelnicki  <koriakin@0x04.net>
6076
6077         * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
6078         to avoid spurious warnings.
6079
6080 2016-02-24  Gary Benson  <gbenson@redhat.com>
6081
6082         * exec.c (exec_file_locate_attach): Do not attempt to
6083         locate main executable locally if not found in sysroot.
6084
6085 2016-02-24  Joel Brobecker  <brobecker@adacore.com>
6086
6087         GDB 7.11 released.
6088
6089 2016-02-24  Wei-cheng Wang  <cole945@gmail.com>
6090
6091         * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
6092         unavailable PC/SP to build unavailable frame.
6093
6094 2016-02-23  Doug Evans  <dje@google.com>
6095
6096         Extend "skip" command to support -file, -gfile, -function, -rfunction.
6097         * NEWS: Document new features.
6098         * skip.c: #include "fnmatch.h", "gdb_regex.h".
6099         (skiplist_entry) <file>: Renamed from filename.
6100         <function>: Renamed from function_name.
6101         <file_is_glob, function_is_regexp>: New members.
6102         <compiled_function_regexp, compiled_function_regexp_is_valid>:
6103         New members.
6104         (make_skip_entry): New function.
6105         (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
6106         (make_free_skiplist_entry_cleanup): New function.
6107         (skip_file_command): Update.
6108         (skip_function, skip_function_command): Update.
6109         (compile_skip_regexp): New functions.
6110         (skip_command): Add support for new options.
6111         (skip_info): Update.
6112         (skip_file_p, skip_gfile_p): New functions.
6113         (skip_function_p, skip_rfunction_p): New functions.
6114         (function_name_is_marked_for_skip): Update and simplify.
6115         (_initialize_step_skip): Update.
6116         * symtab.c: #include "fnmatch.h".
6117         (compare_glob_filenames_for_search): New function.
6118         * symtab.h (compare_glob_filenames_for_search): Declare.
6119         * utils.c (count_path_elements): New function.
6120         (strip_leading_path_elements): New function.
6121         * utils.h (count_path_elements): Declare.
6122         (strip_leading_path_elements): Declare.
6123
6124 2016-02-23  Simon Marchi  <simon.marchi@ericsson.com>
6125
6126         * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
6127         (thumb_process_displaced_insn): Likewise.
6128         (arm_process_displaced_insn): Adjust calls.
6129
6130 2016-02-23  Yao Qi  <yao.qi@linaro.org>
6131
6132         * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
6133         Remove.
6134         <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
6135         <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
6136         <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
6137         <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
6138         <aarch64_sys_linkat, aarch64_sys_renameat>: New.
6139         <aarch64_sys_faccessat>: New.
6140         <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
6141         <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
6142         <aarch64_sys_newfstatat>: New.
6143         (UNSUPPORTED_SYSCALL_MAP): New macro.
6144         (aarch64_canonicalize_syscall): Add missing syscalls.
6145
6146 2016-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
6147
6148         * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
6149
6150 2016-02-22  Yao Qi  <yao.qi@linaro.org>
6151
6152         * arm-tdep.c: Fix code format issues.
6153
6154 2016-02-21  Iain Buclaw  <ibuclaw@gdcproject.org>
6155
6156         * d-namespace.c (d_lookup_symbol_imports): Remove argument
6157         'search_parents'.  All callers updated.
6158
6159 2016-02-18  Marcin Kościelnicki  <koriakin@0x04.net>
6160
6161         * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
6162         (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
6163
6164 2016-02-18  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6165
6166         * NEWS: Add entry for bound violation.
6167         * amd64-linux-tdep.c (amd64_linux_init_abi_common):
6168         Add handler for segmentation fault.
6169         * gdbarch.sh (handle_segmentation_fault): New.
6170         * gdbarch.c: Regenerate.
6171         * gdbarch.h: Regenerate.
6172         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
6173         (SIG_CODE_BONDARY_FAULT): New define.
6174         (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
6175         * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
6176         * i386-tdep.c (i386_mpx_enabled): Add as external.
6177         * i386-tdep.c (i386_mpx_enabled): Add as external.
6178         * infrun.c (handle_segmentation_fault): New function.
6179         (print_signal_received_reason): Use handle_segmentation_fault.
6180
6181 2016-02-18  Marcin Kościelnicki  <koriakin@0x04.net>
6182
6183         * arch-utils.c (default_guess_tracepoint_registers): New function.
6184         * arch-utils.h (default_guess_tracepoint_registers): New prototype.
6185         * gdbarch.c: Regenerate.
6186         * gdbarch.h: Regenerate.
6187         * gdbarch.sh: Add guess_tracepoint_registers hook.
6188         * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
6189
6190 2016-02-17  Gary Benson  <gbenson@redhat.com>
6191
6192         * exec.c (exec_file_locate_attach): Add missing cleanup.
6193
6194 2016-02-16  Don Breazeal  <donb@codesourcery.com>
6195
6196         PR remote/19496
6197         * remote.c (remove_new_fork_children): Check for pending
6198         fork status in thread_info.suspend.
6199
6200 2016-02-16  Yao Qi  <yao.qi@linaro.org>
6201
6202         * arm-linux-tdep.c (arm_linux_software_single_step): Assign
6203         'old_chain' later.
6204
6205 2016-02-16  Yao Qi  <yao.qi@linaro.org>
6206
6207         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
6208         <syscall_next_pc>: Remove argument PC.  Callers updated.
6209         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
6210         Remove argument PC.  Get pc from regcache_read_pc.
6211         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
6212         argument PC.
6213
6214 2016-02-15  Yao Qi  <yao.qi@linaro.org>
6215
6216         * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
6217
6218 2016-02-12  Yao Qi  <yao.qi@linaro.org>
6219
6220         * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
6221         nextpc according to instruction.
6222
6223 2016-02-12  Yao Qi  <yao.qi@linaro.org>
6224
6225         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
6226         self->ops->fixup if it isn't NULL.
6227         * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
6228         (struct arm_get_next_pcs_ops) <fixup>: New field.
6229         * arch/arm-linux.c: Include common-regcache.h and
6230         arch/arm-get-next-pcs.h.
6231         (arm_linux_get_next_pcs_fixup): New function.
6232         * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
6233         * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
6234         it with arm_linux_get_next_pcs_fixup.
6235         (arm_linux_software_single_step): Move code to
6236         arm_linux_get_next_pcs_fixup.
6237         * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
6238
6239 2016-02-12  Marcin Kościelnicki  <koriakin@0x04.net>
6240
6241         * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
6242         and return NULL.
6243
6244 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
6245
6246         * frame.h (skip_tailcall_frames): Update comment.
6247         * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
6248         if only artificial frames are found.  Update comment.
6249         (frame_unwind_caller_id): Handle NULL return.
6250         (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
6251         skip_artificial_frames does not return NULL.
6252         (frame_pop): Add an error if only tailcall frames are found.
6253         * infcmd.c (finish_command): Move skip_tailcall_frames call into
6254         forward-execution case.  Add an error if only tailcall frames are
6255         found.
6256
6257 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
6258
6259         * stack.c (frame_info): Check frame_unwind_caller_id.
6260
6261 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
6262
6263         * frame.h (skip_tailcall_frames): New.
6264         * frame.c (skip_tailcall_frames): New.
6265         (frame_pop): Call skip_tailcall_frames.
6266         * infcmd.c (finish_command): Call skip_tailcall_frames.
6267
6268 2016-02-11  Pedro Alves  <palves@redhat.com>
6269
6270         * Makefile.in (check-parallel): New rule.
6271
6272 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
6273
6274         * arm-tdep.c (arm_skip_prologue): Remove unused variables.
6275         (arm_analyze_prologue): Likewise.
6276         (arm_scan_prologue): Likewise.
6277         (arm_m_exception_prev_register): Likewise.
6278         (arm_copy_block_xfer): Likewise.
6279         (thumb2_copy_block_xfer): Likewise.
6280         (arm_decode_miscellaneous): Likewise.
6281         (arm_decode_ld_st_word_ubyte): Likewise.
6282         (arm_decode_svc_copro): Likewise.
6283         (thumb2_decode_svc_copro): Likewise.
6284         (thumb_copy_16bit_ldr_literal): Likewise.
6285         (thumb_copy_pop_pc_16bit): Likewise.
6286         (decode_thumb_32bit_ld_mem_hints): Likewise.
6287         (arm_show_force_mode): Likewise.
6288         (_initialize_arm_tdep): Likewise.
6289         (arm_record_strx): Likewise.
6290         (arm_record_extension_space): Likewise.
6291         (arm_record_data_proc_misc_ld_str): Likewise.
6292         (arm_record_exreg_ld_st_insn): Likewise.
6293         (arm_record_vfp_data_proc_insn): Likewise.
6294         (arm_record_coproc_data_proc): Likewise.
6295         (thumb_record_misc): Likewise.
6296         (thumb_record_ldm_stm_swi): Likewise.
6297         (thumb2_record_ld_st_dual_ex_tbb): Likewise.
6298         (thumb2_record_ld_mem_hints): Likewise.
6299         (thumb2_record_lmul_lmla_div): Likewise.
6300         (thumb2_record_asimd_struct_ld_st): Likewise.
6301         (arm_process_record): Likewise.
6302
6303 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
6304
6305         * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
6306         (ARM displaced stepping support): Remove reference to
6307         arm_displaced_step_copy_insn in comment.
6308         * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
6309         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
6310         reference to arm_displaced_step_copy_insn in comment.
6311
6312 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
6313
6314         * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
6315         (thumb_copy_b): Likewise.
6316         (arm_decode_b_bl_ldmstm): Likewise.
6317         (thumb_copy_16bit_ldr_literal): Likewise.
6318         (thumb_copy_pop_pc_16bit): Likewise.
6319
6320 2016-02-11  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6321
6322         * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
6323         than loc->gdbarch.
6324
6325 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
6326
6327         * tracefile-tfile.c (trace_tdesc): New static variable.
6328         (tfile_open): Clear trace_tdesc, call target_find_description.
6329         (tfile_interp_line): Recognize tdesc lines.
6330         (tfile_close): Clear trace_tdesc.
6331         (tfile_xfer_partial_features): New function.
6332         (tfile_xfer_partial): Call tfile_xfer_partial_features.
6333         (tfile_append_tdesc_line): New function.
6334
6335 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
6336
6337         * ctf.c (ctf_write_tdesc): New function.
6338         (ctf_write_ops): Wire in ctf_write_tdesc.
6339         * tracefile-tfile.c (tfile_write_tdesc): New function.
6340         (tfile_write_ops): Wire in tfile_write_tdesc.
6341         * tracefile.c (trace_save): Call write_tdesc method.
6342         * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
6343         * xml-tdesc.c (target_fetch_description_xml): New function.
6344         * xml-tdesc.h: Add target_fetch_description_xml prototype.
6345
6346 2016-02-10  Simon Marchi  <simon.marchi@ericsson.com>
6347
6348         * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
6349         (arm_decode_dp_misc): Likewise.
6350
6351 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
6352
6353         * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
6354         (amd64_init_abi): Fill ax_pseudo_register_collect hook.
6355         * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
6356         misleading comment.
6357         (i386_pseudo_register_write): Ditto.
6358         (i386_ax_pseudo_register_collect): New function.
6359         (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
6360         * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
6361
6362 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
6363
6364         * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
6365         instead of gdb order.
6366
6367 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
6368
6369         * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
6370         check.
6371
6372 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
6373
6374         * NEWS: Create a new section for the next release branch.
6375         Rename the section of the current branch, now that it has
6376         been cut.
6377
6378 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
6379
6380         GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
6381         * version.in: Bump version to 7.11.50.DATE-git.
6382
6383 2016-02-09  Keith Seitz  <keiths@redhat.com>
6384
6385         PR breakpoints/19546
6386         * breakpoint.c (breakpoint_event_location_empty_p): New function.
6387         (update_breakpoints_after_exec, bkpt_re_set): Use this new function
6388         instead of event_location_empty_p.
6389
6390 2016-02-09  Keith Seitz  <keiths@redhat.com>
6391
6392         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
6393         string_to_event_location_basic instead of string_to_event_location.
6394
6395 2016-02-09  Keith Seitz  <keiths@redhat.com>
6396
6397         * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
6398         leading whitespace and use string_to_event_location_basic instead
6399         of new_linespec_location.
6400
6401 2016-02-09  Keith Seitz  <keiths@redhat.com>
6402
6403         PR python/19506
6404         * python/py-breakpoint.c (bppy_init): Use
6405         string_to_event_location_basic instead of new_linespec_location.
6406
6407 2016-02-09  Keith Seitz  <keiths@redhat.com>
6408
6409         * location.c (string_to_explicit_location): Note that "-p" is
6410         reserved for probe locations and return NULL for any input
6411         that starts with that.
6412         (string_to_event_location): Move "legacy" linespec code to ...
6413         (string_to_event_location_basic): ... here.
6414         * location.h (string_to_event_location): Update comment.
6415         (string_to_event_location_basic): New function.
6416
6417 2016-02-09  Simon Marchi  <simon.marchi@ericsson.com>
6418
6419         * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6420         to AC_OUTPUT.  Remove "exit 0" at the end.
6421         * configure: Regenerate.
6422
6423 2016-02-09  Pedro Alves  <palves@redhat.com>
6424
6425         PR breakpoints/19548
6426         * breakpoint.c (create_overlay_event_breakpoint): Don't update
6427         global location list here.
6428         (create_longjmp_master_breakpoint)
6429         (create_std_terminate_master_breakpoint)
6430         (create_exception_master_breakpoint, create_jit_event_breakpoint)
6431         (update_breakpoint_locations):
6432         (breakpoint_re_set): Update global location list after all
6433         breakpoints are re-set.
6434
6435 2016-02-08  Simon Marchi  <simon.marchi@ericsson.com>
6436
6437         * remote.c (remote_register_number_and_offset): Remove unused
6438         variable(s).
6439         (remote_thread_always_alive): Likewise.
6440         (remote_update_thread_list): Likewise.
6441         (process_initial_stop_replies): Likewise.
6442         (remote_start_remote): Likewise.
6443         (remote_check_symbols): Likewise.
6444         (discard_pending_stop_replies): Likewise.
6445         (process_stop_reply): Likewise.
6446         (putpkt_binary): Likewise.
6447         (getpkt): Likewise.
6448         (remote_add_target_side_condition): Likewise.
6449         (remote_insert_breakpoint): Likewise.
6450         (remote_supports_stopped_by_sw_breakpoint): Likewise.
6451         (remote_supports_stopped_by_hw_breakpoint): Likewise.
6452         (remote_xfer_partial): Likewise.
6453         (remote_read_btrace): Likewise.
6454         (remote_async_serial_handler): Likewise.
6455         (remote_thread_events): Likewise.
6456         (_initialize_remote): Likewise.
6457
6458 2016-02-07  Simon Marchi  <simon.marchi@polymtl.ca>
6459
6460         * varobj.h (varobj_delete): Remove dellist parameter, update and
6461         move documentation here.
6462         * varobj.c (struct cpstack, cppush, cppop): Remove.
6463         (delete_variable): Remove resultp (first) parameter.
6464         (delete_variable_1): Likewise.
6465         (varobj_delete): Remove dellist parameter and unused code.
6466         (update_dynamic_varobj_children): Adjust varobj_delete call.
6467         (update_type_if_necessary): Likewise.
6468         (varobj_set_visualizer): Likewise.
6469         (varobj_update): Likewise.
6470         (value_of_root): Likewise.
6471         (varobj_invalidate_iter): Likewise.
6472         * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
6473
6474 2016-02-04  Yao Qi  <yao.qi@linaro.org>
6475
6476         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
6477         0 before handling 'F' and set it back afterwards.
6478
6479 2016-02-02  Simon Marchi  <simon.marchi@ericsson.com>
6480
6481         * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
6482
6483 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6484
6485         * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
6486         New types.
6487         (compat_siginfo): New bound fields added.
6488         (compat_x32_siginfo): New field added.
6489         (cpt_si_addr_lsb): New define.
6490         (compat_siginfo_from_siginfo): Use nat_siginfo.
6491         (siginfo_from_compat_siginfo): Use nat_siginfo.
6492         (compat_x32_siginfo_from_siginfo): Likewise.
6493         (siginfo_from_compat_x32_siginfo): Likewise.
6494
6495 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6496
6497         * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
6498         structure to the siginfo if extra_fields contains
6499         LINUX_SIGINFO_FIELD_ADDR_BND.
6500
6501 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6502
6503         * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
6504         * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
6505         * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
6506         function.
6507         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
6508         x86_linux_get_siginfo_type for the amd64 abi.
6509         * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
6510         function.
6511         (i386_linux_init_abi): Add new function at the i386 ABI
6512         initialization.
6513
6514 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6515
6516         * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
6517         (linux_siginfo_extra_fields): New enum type.
6518         * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
6519         (linux_get_siginfo_type): Use new function.
6520
6521 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6522
6523         * nat/amd64-linux-siginfo.c: New file.
6524         * nat/amd64-linux-siginfo.h: New file.
6525         * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
6526         (amd64-linux-siginfo.o): New rule.
6527         * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
6528         * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
6529         (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6530         (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6531         (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6532         (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6533         (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6534         (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
6535
6536 2016-02-01  Andrew Burgess  <andrew.burgess@embecosm.com>
6537
6538         * value.c (max_value_size): New variable.
6539         (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
6540         (set_max_value_size): New function.
6541         (show_max_value_size): New function.
6542         (check_type_length_before_alloc): New function.
6543         (allocate_value_contents): Call check_type_length_before_alloc.
6544         (set_value_enclosing_type): Likewise.
6545         (_initialize_values): Add set/show handler for max-value-size.
6546         * NEWS: Mention new set/show command.
6547
6548 2016-01-31  Simon Marchi  <simon.marchi@polymtl.ca>
6549
6550         * varobj.h (struct varobj): Fix typos in comments.
6551         (struct lang_varobj_ops): Likewise.
6552         * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
6553         (varobj_create): Move misplaced comment.
6554
6555 2016-01-29  Simon Marchi  <simon.marchi@ericsson.com>
6556
6557         * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
6558         to for include additional lines.
6559         * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
6560
6561 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
6562
6563         * gnulib/import/Makefile.am: Regenerate.
6564         * gnulib/import/Makefile.in: Regenerate.
6565         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6566         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
6567
6568 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
6569
6570         * remote.c (skip_to_semicolon): Remove.
6571         (remote_parse_stop_reply): Use strchrnul instead of
6572         skip_to_semicolon.
6573         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6574         strchrnul.
6575         * gnulib/aclocal.m4: Regenerate.
6576         * gnulib/config.in: Regenerate.
6577         * gnulib/configure: Regenerate.
6578         * gnulib/import/Makefile.am: Regenerate.
6579         * gnulib/import/Makefile.in: Regenerate.
6580         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6581         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6582         * gnulib/import/m4/rawmemchr.m4: New file.
6583         * gnulib/import/m4/strchrnul.m4: New file.
6584         * gnulib/import/rawmemchr.c: New file.
6585         * gnulib/import/rawmemchr.valgrind: New file.
6586         * gnulib/import/strchrnul.c: New file.
6587         * gnulib/import/strchrnul.valgrind: New file.
6588
6589 2016-01-28  Yao Qi  <yao.qi@linaro.org>
6590
6591         * breakpoint.c (build_target_command_list): Don't call continue
6592         if aexpr is NULL.
6593         (build_target_condition_list): Likewise.
6594
6595 2016-01-27  Kevin Buettner  <kevinb@redhat.com>
6596
6597         * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
6598         bytes as aggregates.
6599
6600 2016-01-27  Joel Brobecker  <brobecker@adacore.com>
6601
6602         * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
6603         Linespec Maintainers.
6604
6605 2016-01-26  Simon Marchi  <simon.marchi@ericsson.com>
6606
6607         * common/common-utils.c (skip_spaces): Fix comment.
6608         (skip_to_space_const): Likewise.
6609
6610 2016-01-25  Yao Qi  <yao.qi@linaro.org>
6611
6612         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6613         Remove argument pc.  Get pc by regcache_read_pc.  Callers updated.
6614         (arm_deal_with_atomic_sequence_raw): Likewise.
6615         (thumb_get_next_pcs_raw): Likewise.
6616         (arm_get_next_pcs_raw): Likewise.
6617         (arm_get_next_pcs): Remove argument pc.  Callers updated.
6618         * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
6619
6620 2016-01-25  Mark Wielaard  <mjw@redhat.com>
6621
6622         * ada-lang.c (ada_evaluate_subexp): Add proper else block.
6623         * c-typeprint.c (c_type_print_base): Fix misleading indentation of
6624         if statement.
6625         * inflow.c (child_terminal_ours_1): Fix misleading indentation of
6626         statement block by introducing an else.
6627         * linux-record.c (record_linux_sockaddr): Fix misleading indentation
6628         of return statements.
6629         (record_linux_msghdr): Likewise.
6630
6631 2016-01-25  Pedro Alves  <palves@redhat.com>
6632
6633         PR threads/19461
6634         * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
6635         parent/child running states.
6636
6637 2016-01-25  Pedro Alves  <palves@redhat.com>
6638
6639         PR gdb/19494
6640         * linux-nat.c (kill_one_lwp): New, factored out from ...
6641         (kill_callback): ... this.
6642         (kill_wait_callback): New, factored out from ...
6643         (kill_wait_one_lwp): ... this.
6644         (kill_unfollowed_fork_children): New function.
6645         (linux_nat_kill): Use it.
6646
6647 2016-01-22  John Baldwin  <jhb@FreeBSD.org>
6648
6649         * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
6650
6651 2016-01-22  Yao Qi  <yao.qi@linaro.org>
6652
6653         * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
6654         instead of warning.
6655         (store_fpregs, fetch_regs, store_regs): Likewise.
6656         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6657         (fetch_vfp_regs, store_vfp_regs): Likewise.
6658
6659 2016-01-21  Doug Evans  <dje@google.com>
6660
6661         * breakpoint.c (init_breakpoint_sal): Add comment.
6662
6663 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
6664
6665         * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
6666
6667 2016-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
6668
6669         * disasm.c (maybe_add_dis_line_entry): Rename to...
6670         (add_dis_line_entry): ...this, and update header comment.
6671         (do_mixed_source_and_assembly): Now use add_dis_line_entry.
6672
6673 2016-01-21  Pedro Alves  <palves@redhat.com>
6674
6675         * Makefile.in (COMPILER_CFLAGS): New.
6676         (CXXFLAGS): Get it from configure.
6677         (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
6678         instead of CFLAGS.
6679         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
6680         COMPILER_CFLAGS.
6681         * configure: Regenerate.
6682
6683 2016-01-21  Joel Brobecker  <brobecker@adacore.com>
6684
6685         * location.h (new_address_location): Add new parameters
6686         "addr_string" and "addr_string_len".
6687         (get_address_string_location): Add declaration.
6688         * location.c (new_address_location): Add new parameters
6689         "addr_string" and "addr_string_len".  If not NULL, store
6690         a copy of the addr_string in the new location as well.
6691         (get_address_string_location): New function.
6692         (string_to_event_location): Update call to new_address_location.
6693         * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
6694         Save the event location in the parser's state before
6695         passing it to convert_address_location_to_sals.
6696         * breakpoint.c (create_thread_event_breakpoint): Update call
6697         to new_address_location.
6698         (init_breakpoint_sal): Get the event location's string, if any,
6699         and use it to update call to new_address_location.
6700         * python/py-finishbreakpoint.c (bpfinishpy_init):
6701         Update call to new_address_location.
6702         * spu-tdep.c (spu_catch_start): Likewise.
6703
6704         * config/djgpp/fnchange.lst: Add entries for
6705         gdb/testsuite/gdb.base/break-fun-addr1.c and
6706         gdb/testsuite/gdb.base/break-fun-addr2.c.
6707
6708 2016-01-21  Yao Qi  <yao.qi@linaro.org>
6709
6710         * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
6711         is_thumb and set it according to CPSR saved on the stack.
6712         (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
6713         arm_linux_sigreturn_next_pc.
6714
6715 2016-01-20  Simon Marchi  <simon.marchi@polymtl.ca>
6716
6717         * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
6718         Fix enumerators sort key function.
6719
6720 2016-01-20  Joel Brobecker  <brobecker@adacore.com>
6721
6722         * printcmd.c (print_scalar_formatted): Move binary operator from
6723         end of line to beginning of next line.  Adjust formatting
6724         accordingly.
6725
6726 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
6727
6728         * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
6729         "len" with sysctl.
6730
6731 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
6732
6733         * fbsd-tdep.c (find_stop_signal): Remove.
6734         (struct fbsd_collect_regset_section_cb) <lwp>: New field.
6735         <stop_signal>: New field.
6736         <abort_iteration>: New field.
6737         (fbsd_collect_regset_section_cb): Use new fields.
6738         (fbsd_collect_thread_registers): New function.
6739         (struct fbsd_corefile_thread_data): New structure.
6740         (fbsd_corefile_thread): New function.
6741         (fbsd_make_corefile_notes): Use new function to dump notes for each
6742         non-exited thread in a process.
6743
6744 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
6745
6746         * configure.ac: Check for support for LWP names on FreeBSD.
6747         * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
6748         [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
6749         (fbsd_fetch_kinfo_proc): Move function earlier.
6750         [PT_LWPINFO] (fbsd_thread_alive): New function.
6751         [PT_LWPINFO] (fbsd_pid_to_str): New function.
6752         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
6753         [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
6754         [PT_LWPINFO] (fbsd_add_threads): New function.
6755         [PT_LWPINFO] (fbsd_update_thread_list): New function.
6756         [PT_LWPINFO] New variable super_resume.
6757         [PT_LWPINFO] (resume_one_thread_cb): New function.
6758         [PT_LWPINFO] (resume_all_threads_cb): New function.
6759         [PT_LWPINFO] (fbsd_resume): New function.
6760         (fbsd_remember_child): Save full ptid instead of plain pid.
6761         (fbsd_is_child_pending): Return ptid of saved child process.
6762         (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
6763         first stop.
6764         [PT_LWP_EVENTS] Handle LWP events.
6765         [TDP_RFPPWAIT] Include LWP in child ptid.
6766         (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
6767         (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
6768         Add threads for existing processes.
6769         (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
6770         "fbsd_thread_alive".
6771         Set "to_pid_to_str" to "fbsd_pid_to_str".
6772         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
6773         "fbsd_thread_name".
6774         [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
6775         Set "to_has_thread_control" to "tc_schedlock".
6776         Set "to_resume" to "fbsd_resume".
6777         (_initialize_fbsd_nat): New function.
6778         * configure: Regenerate.
6779         * config.in: Regenerate.
6780
6781 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
6782
6783         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
6784         get_ptrace_pid.
6785         (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
6786         (amd64bsd_dr_get): Use get_ptrace_pid.
6787         (amd64bsd_dr_set): Use get_ptrace_pid.
6788         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
6789         (i386bsd_store_inferior_registers): Use get_ptrace_pid.
6790         (i386bsd_dr_get): Use get_ptrace_pid.
6791         (i386bsd_dr_set): Use get_ptrace_pid.
6792         * inf-ptrace.c (get_ptrace_pid): Export.
6793         * inf-ptrace.h (get_ptrace_pid): Declare.
6794         * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
6795         (ppcfbsd_store_inferior_registers): Use lwp id.
6796
6797 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
6798
6799         * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
6800         (fbsd_core_thread_name): New function.
6801         (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
6802         Add "core_thread_name" gdbarch method.
6803
6804 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
6805
6806         * corelow.c (core_thread_name): New function.
6807         (init_core_ops): Use "core_thread_name" for the "to_thread_name"
6808         target op.
6809         * gdbarch.sh (core_thread_name): New gdbarch callback.
6810         * gdbarch.h: Re-generate.
6811         * gdbarch.c: Re-generate.
6812
6813 2016-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
6814
6815         * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
6816         convert gdb.Value to integer type using int().
6817
6818 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
6819
6820         * configure.ac: Include <sys/types.h when checking for "r_fs" in
6821         "struct reg".
6822         * configure: Regenerate.
6823
6824 2016-01-19  Pedro Alves  <palves@redhat.com>
6825
6826         * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
6827         * break-catch-throw.c (re_set_exception_catchpoint): Pass the
6828         current program space down to linespec decoding and breakpoint
6829         location updating.
6830         * breakpoint.c (parse_breakpoint_sals): Adjust calls to
6831         decode_line_full.
6832         (until_break_command): Adjust calls to decode_line_1.
6833         (base_breakpoint_decode_location, bkpt_decode_location): Add
6834         'search_pspace' parameter.  Pass it along.
6835         (bkpt_probe_create_sals_from_location): Adjust calls to
6836         parse_probes.
6837         (tracepoint_decode_location, tracepoint_probe_decode_location)
6838         (strace_marker_decode_location): Add 'search_pspace' parameter.
6839         Pass it along.
6840         (all_locations_are_pending): Rewrite to take a breakpoint and
6841         program space as arguments instead.
6842         (hoist_existing_locations): New function.
6843         (update_breakpoint_locations): Add 'filter_pspace' parameter.  Use
6844         hoist_existing_locations instead of always removing all locations,
6845         and adjust to all_locations_are_pending change.
6846         (location_to_sals): Add 'search_pspace' parameter.  Pass it along.
6847         Don't disable the breakpoint if there are other locations in
6848         another program space.
6849         (breakpoint_re_set_default): Adjust to pass down the current
6850         program space as filter program space.
6851         (decode_location_default): Add 'search_pspace' parameter and pass
6852         it along.
6853         (prepare_re_set_context): Don't switch program space here.
6854         (breakpoint_re_set): Use save_current_space_and_thread instead of
6855         save_current_program_space.
6856         * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
6857         'search_pspace' parameter.
6858         (update_breakpoint_locations): Add 'filter_pspace' parameter.
6859         * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
6860         decode_line_1.
6861         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
6862         program space as filter program space.
6863         * linespec.c (struct linespec_state) <search_pspace>: New field.
6864         (create_sals_line_offset, convert_explicit_location_to_sals)
6865         (parse_linespec): Pass the search program space down.
6866         (linespec_state_constructor): Add 'search_pspace' parameter.
6867         Store it.
6868         (linespec_parser_new): Add 'search_pspace' parameter and pass it
6869         along.
6870         (linespec_lex_to_end): Adjust.
6871         (decode_line_full, decode_line_1): Add 'search_pspace' parameter
6872         and pass it along.
6873         (decode_line_with_last_displayed): Adjust.
6874         (collect_symtabs_from_filename, symtabs_from_filename): New
6875         'search_pspace' parameter.  Use it.
6876         (find_function_symbols): Pass the search program space down.
6877         * linespec.h (decode_line_1, decode_line_full): Add
6878         'search_pspace' parameter.
6879         * probe.c (parse_probes_in_pspace): New function, factored out
6880         from ...
6881         (parse_probes): ... this.  Add 'search_pspace' parameter and use
6882         it.
6883         * probe.h (parse_probes): Add pspace' parameter.
6884         * python/python.c (gdbpy_decode_line): Adjust.
6885         * tracepoint.c (scope_info): Adjust.
6886
6887 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
6888
6889         * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
6890         instruction support.
6891         (micromips_next_pc): Likewise.
6892         (micromips_scan_prologue): Likewise.
6893         (micromips_deal_with_atomic_sequence): Likewise.
6894         (micromips_stack_frame_destroyed_p): Likewise.
6895         (mips_breakpoint_from_pc): Likewise.
6896
6897 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
6898
6899         * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
6900         unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
6901
6902 2016-01-18  Pedro Alves  <palves@redhat.com>
6903
6904         * NEWS: Mention that GDB now displays the ID and name of the
6905         thread that hit a breakpoint or received a signal.
6906         * break-catch-sig.c (signal_catchpoint_print_it): Use
6907         maybe_print_thread_hit_breakpoint.
6908         * break-catch-syscall.c (print_it_catch_syscall): Likewise.
6909         * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
6910         * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
6911         (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
6912         (print_it_catch_exec, print_it_ranged_breakpoint)
6913         (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
6914         Use maybe_print_thread_hit_breakpoint.
6915         * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
6916         * gdbthread.h (show_thread_that_caused_stop): Declare.
6917         * infrun.c (print_signal_received_reason): Print which thread
6918         received signal.
6919         * thread.c (show_thread_that_caused_stop): New function.
6920
6921 2016-01-18  Gary Benson  <gbenson@redhat.com>
6922
6923         * nat/linux-namespaces.c (do_fork): New function.
6924         (linux_mntns_get_helper): Use the above.
6925
6926 2016-01-17  Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>  (tiny change)
6927
6928         Pushed by Joel Brobecker  <brobecker@adacore.com>.
6929         PR gdb/19208
6930         * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
6931         if the function has no name.
6932
6933 2016-01-15  Sandra Loosemore  <sandra@codesourcery.com>
6934
6935         * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
6936         Conditionalize for Windows host.
6937         (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
6938         (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
6939         (phony_iconv_open): Handle both UTF-32 endiannesses.
6940         (phony_iconv): Likewise.  Check for output overflow and clean up
6941         out-of-input cases.  Correct adjustment to input buffer pointer.
6942         (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
6943         phony_iconv_open.
6944
6945 2016-01-15  Pedro Alves  <palves@redhat.com>
6946
6947         * NEWS: Mention star wildcard ranges.
6948         * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
6949         (number_range_setup_range): New function.
6950         * cli/cli-utils.h (number_range_setup_range): New declaration.
6951         * thread.c (thread_apply_command): Support star TID ranges.
6952         * tid-parse.c (tid_range_parser_finished)
6953         (tid_range_parser_string, tid_range_parser_skip)
6954         (get_tid_or_range, get_tid_or_range): Handle
6955         TID_RANGE_STATE_STAR_RANGE.
6956         (tid_range_parser_star_range): New function.
6957         * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
6958         New value.
6959         (tid_range_parser_star_range): New declaration.
6960
6961 2016-01-15  Pedro Alves  <palves@redhat.com>
6962
6963         * thread.c (thread_apply_command): Use the tid range parser to
6964         advance past the thread ID list.
6965         * tid-parse.c (get_positive_number_trailer): New function.
6966         (parse_thread_id): Use it.
6967         (get_tid_or_range): Use it.  Return 0 instead of throwing invalid
6968         thread ID error.
6969         (get_tid_or_range): Detect negative values.  Return 0 instead of
6970         throwing invalid thread ID error.
6971
6972 2016-01-14  Yao Qi  <yao.qi@linaro.org>
6973
6974         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
6975         Declare.
6976         (arm_linux_get_next_pcs_ops): Install
6977         arm_linux_get_next_pcs_syscall_next_pc.
6978         (arm_linux_syscall_next_pc): Change to ...
6979         (arm_linux_get_next_pcs_syscall_next_pc): ... it.
6980         (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
6981         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
6982         (arm_get_next_pcs_syscall_next_pc): Make it static.  Don't
6983         call tdep->syscall_next_pc.
6984         * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
6985         (arm_get_next_pcs_syscall_next_pc): Remove.
6986
6987 2016-01-14  Yao Qi  <yao.qi@linaro.org>
6988
6989         * remote.c (remote_set_syscall_catchpoint): Cast to char *.
6990         * thread.c (do_captured_thread_select): Cast to const char *.
6991
6992 2016-01-14  Yao Qi  <yao.qi@linaro.org>
6993
6994         * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
6995         argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
6996         (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
6997         instead.
6998         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
6999         <arm_thumb2_breakpoint>: Remove.
7000         <has_thumb2_breakpoint>: New field.
7001         (arm_get_next_pcs_ctor): Update declaration.
7002         * arm-linux-tdep.c (arm_linux_software_single_step): Pass
7003         1 to arm_get_next_pcs_ctor.
7004         * arm-tdep.c (arm_software_single_step): Pass 0 to
7005         arm_get_next_pcs_ctor.
7006
7007 2016-01-13  Ulrich Weigand  <uweigand@de.ibm.com>
7008
7009         * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
7010
7011 2016-01-13  Yao Qi  <yao.qi@linaro.org>
7012
7013         * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
7014         byte_order_for_code to read instruction.
7015
7016 2016-01-13  Pedro Alves  <palves@redhat.com>
7017
7018         * NEWS: Mention $_gthread.
7019         * gdbthread.h (struct thread_info) <global_num>: Mention
7020         $_gthread.
7021         * thread.c (thread_num_make_value_helper): New function.
7022         (thread_id_make_value): Delete.
7023         (thread_id_per_inf_num_make_value, global_thread_id_make_value):
7024         New.
7025         (thread_funcs): Adjust.
7026         (gthread_funcs): New.
7027         (_initialize_thread): Register $_gthread variable.
7028
7029 2016-01-13  Pedro Alves  <palves@redhat.com>
7030
7031         * NEWS: Mention "info threads -gid".
7032         * gdbthread.h (struct thread_info) <global_num>: Mention "info
7033         threads -gid".
7034         * thread.c (info_threads_command): Handle "-gid".
7035         (_initialize_thread): Adjust "info threads" help string to mention
7036         -gid.
7037
7038 2016-01-13  Pedro Alves  <palves@redhat.com>
7039
7040         * NEWS: Mention InferiorThread.global_num.
7041         * python/py-infthread.c (thpy_get_global_num): New function.
7042         (thread_object_getset): Register "global_num".
7043
7044 2016-01-13  Pedro Alves  <palves@redhat.com>
7045
7046         * NEWS: Mention that thread IDs are now per inferior and global
7047         thread IDs.
7048         * Makefile.in (SFILES): Add tid-parse.c.
7049         (COMMON_OBS): Add tid-parse.o.
7050         (HFILES_NO_SRCDIR): Add tid-parse.h.
7051         * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
7052         * breakpoint.c (insert_breakpoint_locations)
7053         (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
7054         (print_one_breakpoint_location, set_longjmp_breakpoint)
7055         (check_longjmp_breakpoint_for_call_dummy)
7056         (set_momentary_breakpoint): Adjust to use global IDs.
7057         (find_condition_and_thread, watch_command_1): Use parse_thread_id.
7058         (until_break_command, longjmp_bkpt_dtor)
7059         (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
7060         to use global IDs.
7061         * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
7062         ptid_to_global_thread_id.
7063         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7064         * gdbthread.h (struct thread_info): Rename field 'num' to
7065         'global_num.  Add new fields 'per_inf_num' and 'inf'.
7066         (thread_id_to_pid): Rename thread_id_to_pid to
7067         global_thread_id_to_ptid.
7068         (pid_to_thread_id): Rename to ...
7069         (ptid_to_global_thread_id): ... this.
7070         (valid_thread_id): Rename to ...
7071         (valid_global_thread_id): ... this.
7072         (find_thread_id): Rename to ...
7073         (find_thread_global_id): ... this.
7074         (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
7075         (print_thread_info): Add comment.
7076         * tid-parse.h: New file.
7077         * tid-parse.c: New file.
7078         * infcmd.c (step_command_fsm_prepare)
7079         (step_command_fsm_should_stop): Adjust to use the global thread
7080         ID.
7081         (until_next_command, until_next_command)
7082         (finish_command_fsm_should_stop): Adjust to use the global thread
7083         ID.
7084         (attach_post_wait): Adjust to check the inferior number too.
7085         * inferior.h (struct inferior) <highest_thread_num>: New field.
7086         * infrun.c (handle_signal_stop)
7087         (insert_exception_resume_breakpoint)
7088         (insert_exception_resume_from_probe): Adjust to use the global
7089         thread ID.
7090         * record-btrace.c (record_btrace_open): Use global thread IDs.
7091         * remote.c (process_initial_stop_replies): Also consider the
7092         inferior number.
7093         * target.c (target_pre_inferior): Clear the inferior's highest
7094         thread num.
7095         * thread.c (clear_thread_inferior_resources): Adjust to use the
7096         global thread ID.
7097         (new_thread): New inferior parameter.  Adjust to use it.  Set both
7098         the thread's global ID and the thread's per-inferior ID.
7099         (add_thread_silent): Adjust.
7100         (find_thread_global_id): New.
7101         (find_thread_id): Make static.  Adjust to rename.
7102         (valid_thread_id): Rename to ...
7103         (valid_global_thread_id): ... this.
7104         (pid_to_thread_id): Rename to ...
7105         (ptid_to_global_thread_id): ... this.
7106         (thread_id_to_pid): Rename to ...
7107         (global_thread_id_to_ptid): ... this.  Adjust.
7108         (first_thread_of_process): Adjust.
7109         (do_captured_list_thread_ids): Adjust to use global thread IDs.
7110         (should_print_thread): New function.
7111         (print_thread_info): Rename to ...
7112         (print_thread_info_1): ... this, and add new show_global_ids
7113         parameter.  Handle it.  Iterate over inferiors.
7114         (print_thread_info): Reimplement as wrapper around
7115         print_thread_info_1.
7116         (show_inferior_qualified_tids): New function.
7117         (print_thread_id): Use it.
7118         (tp_array_compar): Compare inferior numbers too.
7119         (thread_apply_command): Use tid_range_parser.
7120         (do_captured_thread_select): Use parse_thread_id.
7121         (thread_id_make_value): Adjust.
7122         (_initialize_thread): Adjust "info threads" help string.
7123         * varobj.c (struct varobj_root): Update comment.
7124         (varobj_create): Adjust to use global thread IDs.
7125         (value_of_root_1): Adjust to use global_thread_id_to_ptid.
7126         * windows-tdep.c (display_tib): No longer accept an argument.
7127         * cli/cli-utils.c (get_number_trailer): Make extern.
7128         * cli/cli-utils.h (get_number_trailer): Declare.
7129         (get_number_const): Adjust documentation.
7130         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
7131         thread IDs.
7132         * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7133         (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
7134         * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
7135         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
7136         Likewise.
7137         * python/py-breakpoint.c (bppy_set_thread): Likewise.
7138         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
7139         * python/py-infthread.c (thpy_get_num): Add comment and return the
7140         per-inferior thread ID.
7141         (thread_object_getset): Update comment of "num".
7142
7143 2016-01-13  Pedro Alves  <palves@redhat.com>
7144
7145         * breakpoint.c (remove_threaded_breakpoints)
7146         (print_one_breakpoint_location): Use print_thread_id.
7147         * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7148         (btrace_fetch, btrace_clear): Use print_thread_id.
7149         * common/print-utils.c (CELLSIZE): Delete.
7150         (get_cell): Rename to ...
7151         (get_print_cell): ... this and made extern.  Adjust call callers.
7152         Adjust to use PRINT_CELL_SIZE.
7153         * common/print-utils.h (get_print_cell): Declare.
7154         (PRINT_CELL_SIZE): New.
7155         * gdbthread.h (print_thread_id): Declare.
7156         * infcmd.c (signal_command): Use print_thread_id.
7157         * inferior.c (print_inferior): Use print_thread_id.
7158         * infrun.c (handle_signal_stop)
7159         (insert_exception_resume_breakpoint)
7160         (insert_exception_resume_from_probe)
7161         (print_signal_received_reason): Use print_thread_id.
7162         * record-btrace.c (record_btrace_info)
7163         (record_btrace_resume_thread, record_btrace_cancel_resume)
7164         (record_btrace_step_thread, record_btrace_wait): Use
7165         print_thread_id.
7166         * thread.c (thread_apply_all_command): Use print_thread_id.
7167         (print_thread_id): New function.
7168         (thread_apply_command): Use print_thread_id.
7169         (thread_command, thread_find_command, do_captured_thread_select):
7170         Use print_thread_id.
7171
7172 2016-01-13  Pedro Alves  <palves@redhat.com>
7173
7174         * NEWS: Mention InferiorThread.inferior.
7175         * python/py-infthread.c (thpy_get_inferior): New.
7176         (thread_object_getset): Register "inferior".
7177
7178 2016-01-13  Pedro Alves  <palves@redhat.com>
7179
7180         * NEWS: Mention $_inferior.
7181         * inferior.c (inferior_id_make_value): New.
7182         (inferior_funcs): New.
7183         (_initialize_inferior): Create $_inferior variable.
7184
7185 2016-01-13  Pedro Alves  <palves@redhat.com>
7186
7187         PR breakpoints/19388
7188         * frame.c (get_current_frame): Use validate_registers_access.
7189         * gdbthread.h (validate_registers_access): Declare.
7190         * infrun.c (validate_siginfo_access): Delete.
7191         (siginfo_value_read, siginfo_value_write): Use
7192         validate_registers_access.
7193         * thread.c (validate_registers_access): New function.
7194
7195 2016-01-12  Josh Stone  <jistone@redhat.com>
7196             Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7197
7198         * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
7199         syscall_entry and syscall_return stop reasons.  Mention GDB
7200         support for remote catch syscall.
7201         * remote.c (PACKET_QCatchSyscalls): New enum.
7202         (remote_set_syscall_catchpoint): New function.
7203         (remote_protocol_features): New element for QCatchSyscalls.
7204         (remote_parse_stop_reply): Parse syscall_entry/return stops.
7205         (init_remote_ops): Install remote_set_syscall_catchpoint.
7206         (_initialize_remote): Config QCatchSyscalls.
7207         * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
7208
7209 2016-01-12  Yao Qi  <yao.qi@linaro.org>
7210
7211         * nat/linux-ptrace.c (linux_child_function): Cast child_stack
7212         to gdb_byte * and pass to linux_fork_to_function.
7213
7214 2016-01-12  Yao Qi  <yao.qi@linaro.org>
7215
7216         * nat/linux-ptrace.c (linux_fork_to_function): Change type
7217         of argument 'function'.
7218         (linux_grandchild_function): Change return type to 'int'.
7219         Change child_stack's type to 'void *'.
7220         (linux_child_function): Likewise.
7221
7222 2016-01-12  Pedro Alves  <palves@redhat.com>
7223
7224         Remove use of the registered trademark symbol throughout.
7225
7226 2016-01-12  Thomas Schwinge  <thomas@codesourcery.com>
7227
7228         * reply_mig_hack.awk: Rewrite one regular expression.
7229
7230 2016-01-11  Mike Frysinger  <vapier@gentoo.org>
7231
7232         * acinclude.m4: Include new warning.m4 file.
7233         * configure: Regenerated.
7234         * configure.ac: Move all warning logic ...
7235         * warning.m4: ... here.
7236
7237 2016-01-08  Yao Qi  <yao.qi@linaro.org>
7238
7239         * extension.c: Include target.h.
7240         (set_active_ext_lang): Only call install_gdb_sigint_handler,
7241         check_quit_flag, and set_quit_flag if target_terminal_is_ours
7242         returns false.
7243         (restore_active_ext_lang): Likewise.
7244         * target.c (target_terminal_is_ours): New function.
7245         * target.h (target_terminal_is_ours): Declare.
7246
7247 2016-01-07  Maciej W. Rozycki  <macro@imgtec.com>
7248
7249         * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
7250         to `err' in the little-endian leg.
7251
7252 2016-01-06  Yao Qi  <yao.qi@linaro.org>
7253
7254         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
7255         lines below.
7256         (thumb_get_next_pcs_raw): Make it static.
7257         (arm_get_next_pcs_raw): Likewise.
7258         * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
7259         declaration.
7260         (arm_get_next_pcs_raw): Likewise.
7261
7262 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
7263
7264         * version.in: Change cvs to git.
7265
7266 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
7267
7268         * configure.tgt (score-*-*): Delete gdb_sim assignment.
7269
7270 2016-01-05  Pedro Alves  <palves@redhat.com>
7271
7272         PR sim/13418
7273         * configure.ac: Define WITH_PPC_SIM when linking in the sim and
7274         the target is powerpc*.
7275         * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
7276         of WITH_SIM.
7277         * configure: Regenerate.
7278         * config.in: Regenerate.
7279
7280 2016-01-04  Markus Metzger  <markus.t.metzger@intel.com>
7281
7282         * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
7283
7284 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
7285
7286         * configure.tgt (powerpc*-*-*): Delete test call and
7287         always assign gdb_sim.
7288
7289 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
7290
7291         Update year range in copyright notice of all files.
7292
7293 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
7294
7295         * top.c (print_gdb_version): Change copyright year in version
7296         message.
7297
7298 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
7299
7300         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
7301
7302 For older changes see ChangeLog-2015.
7303 \f
7304 Local Variables:
7305 mode: change-log
7306 left-margin: 8
7307 fill-column: 74
7308 version-control: never
7309 coding: utf-8
7310 End: