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