eac5e5c66a036fad316c7196d13a010fc251e265
[external/binutils.git] / gdb / ChangeLog
1 2016-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2
3         * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
4
5 2016-02-22  Yao Qi  <yao.qi@linaro.org>
6
7         * arm-tdep.c: Fix code format issues.
8
9 2016-02-21  Iain Buclaw  <ibuclaw@gdcproject.org>
10
11         * d-namespace.c (d_lookup_symbol_imports): Remove argument
12         'search_parents'.  All callers updated.
13
14 2016-02-18  Marcin Kościelnicki  <koriakin@0x04.net>
15
16         * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
17         (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
18
19 2016-02-18  Walfred Tedeschi  <walfred.tedeschi@intel.com>
20
21         * NEWS: Add entry for bound violation.
22         * amd64-linux-tdep.c (amd64_linux_init_abi_common):
23         Add handler for segmentation fault.
24         * gdbarch.sh (handle_segmentation_fault): New.
25         * gdbarch.c: Regenerate.
26         * gdbarch.h: Regenerate.
27         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
28         (SIG_CODE_BONDARY_FAULT): New define.
29         (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
30         * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
31         * i386-tdep.c (i386_mpx_enabled): Add as external.
32         * i386-tdep.c (i386_mpx_enabled): Add as external.
33         * infrun.c (handle_segmentation_fault): New function.
34         (print_signal_received_reason): Use handle_segmentation_fault.
35
36 2016-02-18  Marcin Kościelnicki  <koriakin@0x04.net>
37
38         * arch-utils.c (default_guess_tracepoint_registers): New function.
39         * arch-utils.h (default_guess_tracepoint_registers): New prototype.
40         * gdbarch.c: Regenerate.
41         * gdbarch.h: Regenerate.
42         * gdbarch.sh: Add guess_tracepoint_registers hook.
43         * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
44
45 2016-02-17  Gary Benson  <gbenson@redhat.com>
46
47         * exec.c (exec_file_locate_attach): Add missing cleanup.
48
49 2016-02-16  Don Breazeal  <donb@codesourcery.com>
50
51         PR remote/19496
52         * remote.c (remove_new_fork_children): Check for pending
53         fork status in thread_info.suspend.
54
55 2016-02-16  Yao Qi  <yao.qi@linaro.org>
56
57         * arm-linux-tdep.c (arm_linux_software_single_step): Assign
58         'old_chain' later.
59
60 2016-02-16  Yao Qi  <yao.qi@linaro.org>
61
62         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
63         <syscall_next_pc>: Remove argument PC.  Callers updated.
64         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
65         Remove argument PC.  Get pc from regcache_read_pc.
66         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
67         argument PC.
68
69 2016-02-15  Yao Qi  <yao.qi@linaro.org>
70
71         * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
72
73 2016-02-12  Yao Qi  <yao.qi@linaro.org>
74
75         * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
76         nextpc according to instruction.
77
78 2016-02-12  Yao Qi  <yao.qi@linaro.org>
79
80         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
81         self->ops->fixup if it isn't NULL.
82         * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
83         (struct arm_get_next_pcs_ops) <fixup>: New field.
84         * arch/arm-linux.c: Include common-regcache.h and
85         arch/arm-get-next-pcs.h.
86         (arm_linux_get_next_pcs_fixup): New function.
87         * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
88         * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
89         it with arm_linux_get_next_pcs_fixup.
90         (arm_linux_software_single_step): Move code to
91         arm_linux_get_next_pcs_fixup.
92         * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
93
94 2016-02-12  Marcin Kościelnicki  <koriakin@0x04.net>
95
96         * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
97         and return NULL.
98
99 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
100
101         * frame.h (skip_tailcall_frames): Update comment.
102         * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
103         if only artificial frames are found.  Update comment.
104         (frame_unwind_caller_id): Handle NULL return.
105         (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
106         skip_artificial_frames does not return NULL.
107         (frame_pop): Add an error if only tailcall frames are found.
108         * infcmd.c (finish_command): Move skip_tailcall_frames call into
109         forward-execution case.  Add an error if only tailcall frames are
110         found.
111
112 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
113
114         * stack.c (frame_info): Check frame_unwind_caller_id.
115
116 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
117
118         * frame.h (skip_tailcall_frames): New.
119         * frame.c (skip_tailcall_frames): New.
120         (frame_pop): Call skip_tailcall_frames.
121         * infcmd.c (finish_command): Call skip_tailcall_frames.
122
123 2016-02-11  Pedro Alves  <palves@redhat.com>
124
125         * Makefile.in (check-parallel): New rule.
126
127 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
128
129         * arm-tdep.c (arm_skip_prologue): Remove unused variables.
130         (arm_analyze_prologue): Likewise.
131         (arm_scan_prologue): Likewise.
132         (arm_m_exception_prev_register): Likewise.
133         (arm_copy_block_xfer): Likewise.
134         (thumb2_copy_block_xfer): Likewise.
135         (arm_decode_miscellaneous): Likewise.
136         (arm_decode_ld_st_word_ubyte): Likewise.
137         (arm_decode_svc_copro): Likewise.
138         (thumb2_decode_svc_copro): Likewise.
139         (thumb_copy_16bit_ldr_literal): Likewise.
140         (thumb_copy_pop_pc_16bit): Likewise.
141         (decode_thumb_32bit_ld_mem_hints): Likewise.
142         (arm_show_force_mode): Likewise.
143         (_initialize_arm_tdep): Likewise.
144         (arm_record_strx): Likewise.
145         (arm_record_extension_space): Likewise.
146         (arm_record_data_proc_misc_ld_str): Likewise.
147         (arm_record_exreg_ld_st_insn): Likewise.
148         (arm_record_vfp_data_proc_insn): Likewise.
149         (arm_record_coproc_data_proc): Likewise.
150         (thumb_record_misc): Likewise.
151         (thumb_record_ldm_stm_swi): Likewise.
152         (thumb2_record_ld_st_dual_ex_tbb): Likewise.
153         (thumb2_record_ld_mem_hints): Likewise.
154         (thumb2_record_lmul_lmla_div): Likewise.
155         (thumb2_record_asimd_struct_ld_st): Likewise.
156         (arm_process_record): Likewise.
157
158 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
159
160         * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
161         (ARM displaced stepping support): Remove reference to
162         arm_displaced_step_copy_insn in comment.
163         * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
164         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
165         reference to arm_displaced_step_copy_insn in comment.
166
167 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
168
169         * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
170         (thumb_copy_b): Likewise.
171         (arm_decode_b_bl_ldmstm): Likewise.
172         (thumb_copy_16bit_ldr_literal): Likewise.
173         (thumb_copy_pop_pc_16bit): Likewise.
174
175 2016-02-11  Antoine Tremblay  <antoine.tremblay@ericsson.com>
176
177         * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
178         than loc->gdbarch.
179
180 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
181
182         * tracefile-tfile.c (trace_tdesc): New static variable.
183         (tfile_open): Clear trace_tdesc, call target_find_description.
184         (tfile_interp_line): Recognize tdesc lines.
185         (tfile_close): Clear trace_tdesc.
186         (tfile_xfer_partial_features): New function.
187         (tfile_xfer_partial): Call tfile_xfer_partial_features.
188         (tfile_append_tdesc_line): New function.
189
190 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
191
192         * ctf.c (ctf_write_tdesc): New function.
193         (ctf_write_ops): Wire in ctf_write_tdesc.
194         * tracefile-tfile.c (tfile_write_tdesc): New function.
195         (tfile_write_ops): Wire in tfile_write_tdesc.
196         * tracefile.c (trace_save): Call write_tdesc method.
197         * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
198         * xml-tdesc.c (target_fetch_description_xml): New function.
199         * xml-tdesc.h: Add target_fetch_description_xml prototype.
200
201 2016-02-10  Simon Marchi  <simon.marchi@ericsson.com>
202
203         * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
204         (arm_decode_dp_misc): Likewise.
205
206 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
207
208         * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
209         (amd64_init_abi): Fill ax_pseudo_register_collect hook.
210         * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
211         misleading comment.
212         (i386_pseudo_register_write): Ditto.
213         (i386_ax_pseudo_register_collect): New function.
214         (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
215         * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
216
217 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
218
219         * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
220         instead of gdb order.
221
222 2016-02-10  Marcin Kościelnicki  <koriakin@0x04.net>
223
224         * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
225         check.
226
227 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
228
229         * NEWS: Create a new section for the next release branch.
230         Rename the section of the current branch, now that it has
231         been cut.
232
233 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
234
235         GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
236         * version.in: Bump version to 7.11.50.DATE-git.
237
238 2016-02-09  Keith Seitz  <keiths@redhat.com>
239
240         PR breakpoints/19546
241         * breakpoint.c (breakpoint_event_location_empty_p): New function.
242         (update_breakpoints_after_exec, bkpt_re_set): Use this new function
243         instead of event_location_empty_p.
244
245 2016-02-09  Keith Seitz  <keiths@redhat.com>
246
247         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
248         string_to_event_location_basic instead of string_to_event_location.
249
250 2016-02-09  Keith Seitz  <keiths@redhat.com>
251
252         * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
253         leading whitespace and use string_to_event_location_basic instead
254         of new_linespec_location.
255
256 2016-02-09  Keith Seitz  <keiths@redhat.com>
257
258         PR python/19506
259         * python/py-breakpoint.c (bppy_init): Use
260         string_to_event_location_basic instead of new_linespec_location.
261
262 2016-02-09  Keith Seitz  <keiths@redhat.com>
263
264         * location.c (string_to_explicit_location): Note that "-p" is
265         reserved for probe locations and return NULL for any input
266         that starts with that.
267         (string_to_event_location): Move "legacy" linespec code to ...
268         (string_to_event_location_basic): ... here.
269         * location.h (string_to_event_location): Update comment.
270         (string_to_event_location_basic): New function.
271
272 2016-02-09  Simon Marchi  <simon.marchi@ericsson.com>
273
274         * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
275         to AC_OUTPUT.  Remove "exit 0" at the end.
276         * configure: Regenerate.
277
278 2016-02-09  Pedro Alves  <palves@redhat.com>
279
280         PR breakpoints/19548
281         * breakpoint.c (create_overlay_event_breakpoint): Don't update
282         global location list here.
283         (create_longjmp_master_breakpoint)
284         (create_std_terminate_master_breakpoint)
285         (create_exception_master_breakpoint, create_jit_event_breakpoint)
286         (update_breakpoint_locations):
287         (breakpoint_re_set): Update global location list after all
288         breakpoints are re-set.
289
290 2016-02-08  Simon Marchi  <simon.marchi@ericsson.com>
291
292         * remote.c (remote_register_number_and_offset): Remove unused
293         variable(s).
294         (remote_thread_always_alive): Likewise.
295         (remote_update_thread_list): Likewise.
296         (process_initial_stop_replies): Likewise.
297         (remote_start_remote): Likewise.
298         (remote_check_symbols): Likewise.
299         (discard_pending_stop_replies): Likewise.
300         (process_stop_reply): Likewise.
301         (putpkt_binary): Likewise.
302         (getpkt): Likewise.
303         (remote_add_target_side_condition): Likewise.
304         (remote_insert_breakpoint): Likewise.
305         (remote_supports_stopped_by_sw_breakpoint): Likewise.
306         (remote_supports_stopped_by_hw_breakpoint): Likewise.
307         (remote_xfer_partial): Likewise.
308         (remote_read_btrace): Likewise.
309         (remote_async_serial_handler): Likewise.
310         (remote_thread_events): Likewise.
311         (_initialize_remote): Likewise.
312
313 2016-02-07  Simon Marchi  <simon.marchi@polymtl.ca>
314
315         * varobj.h (varobj_delete): Remove dellist parameter, update and
316         move documentation here.
317         * varobj.c (struct cpstack, cppush, cppop): Remove.
318         (delete_variable): Remove resultp (first) parameter.
319         (delete_variable_1): Likewise.
320         (varobj_delete): Remove dellist parameter and unused code.
321         (update_dynamic_varobj_children): Adjust varobj_delete call.
322         (update_type_if_necessary): Likewise.
323         (varobj_set_visualizer): Likewise.
324         (varobj_update): Likewise.
325         (value_of_root): Likewise.
326         (varobj_invalidate_iter): Likewise.
327         * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
328
329 2016-02-04  Yao Qi  <yao.qi@linaro.org>
330
331         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
332         0 before handling 'F' and set it back afterwards.
333
334 2016-02-02  Simon Marchi  <simon.marchi@ericsson.com>
335
336         * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
337
338 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
339
340         * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
341         New types.
342         (compat_siginfo): New bound fields added.
343         (compat_x32_siginfo): New field added.
344         (cpt_si_addr_lsb): New define.
345         (compat_siginfo_from_siginfo): Use nat_siginfo.
346         (siginfo_from_compat_siginfo): Use nat_siginfo.
347         (compat_x32_siginfo_from_siginfo): Likewise.
348         (siginfo_from_compat_x32_siginfo): Likewise.
349
350 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
351
352         * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
353         structure to the siginfo if extra_fields contains
354         LINUX_SIGINFO_FIELD_ADDR_BND.
355
356 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
357
358         * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
359         * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
360         * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
361         function.
362         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
363         x86_linux_get_siginfo_type for the amd64 abi.
364         * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
365         function.
366         (i386_linux_init_abi): Add new function at the i386 ABI
367         initialization.
368
369 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
370
371         * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
372         (linux_siginfo_extra_fields): New enum type.
373         * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
374         (linux_get_siginfo_type): Use new function.
375
376 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
377
378         * nat/amd64-linux-siginfo.c: New file.
379         * nat/amd64-linux-siginfo.h: New file.
380         * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
381         (amd64-linux-siginfo.o): New rule.
382         * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
383         * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
384         (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
385         (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
386         (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
387         (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
388         (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
389         (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
390
391 2016-02-01  Andrew Burgess  <andrew.burgess@embecosm.com>
392
393         * value.c (max_value_size): New variable.
394         (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
395         (set_max_value_size): New function.
396         (show_max_value_size): New function.
397         (check_type_length_before_alloc): New function.
398         (allocate_value_contents): Call check_type_length_before_alloc.
399         (set_value_enclosing_type): Likewise.
400         (_initialize_values): Add set/show handler for max-value-size.
401         * NEWS: Mention new set/show command.
402
403 2016-01-31  Simon Marchi  <simon.marchi@polymtl.ca>
404
405         * varobj.h (struct varobj): Fix typos in comments.
406         (struct lang_varobj_ops): Likewise.
407         * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
408         (varobj_create): Move misplaced comment.
409
410 2016-01-29  Simon Marchi  <simon.marchi@ericsson.com>
411
412         * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
413         to for include additional lines.
414         * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
415
416 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
417
418         * gnulib/import/Makefile.am: Regenerate.
419         * gnulib/import/Makefile.in: Regenerate.
420         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
421         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
422
423 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
424
425         * remote.c (skip_to_semicolon): Remove.
426         (remote_parse_stop_reply): Use strchrnul instead of
427         skip_to_semicolon.
428         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
429         strchrnul.
430         * gnulib/aclocal.m4: Regenerate.
431         * gnulib/config.in: Regenerate.
432         * gnulib/configure: Regenerate.
433         * gnulib/import/Makefile.am: Regenerate.
434         * gnulib/import/Makefile.in: Regenerate.
435         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
436         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
437         * gnulib/import/m4/rawmemchr.m4: New file.
438         * gnulib/import/m4/strchrnul.m4: New file.
439         * gnulib/import/rawmemchr.c: New file.
440         * gnulib/import/rawmemchr.valgrind: New file.
441         * gnulib/import/strchrnul.c: New file.
442         * gnulib/import/strchrnul.valgrind: New file.
443
444 2016-01-28  Yao Qi  <yao.qi@linaro.org>
445
446         * breakpoint.c (build_target_command_list): Don't call continue
447         if aexpr is NULL.
448         (build_target_condition_list): Likewise.
449
450 2016-01-27  Kevin Buettner  <kevinb@redhat.com>
451
452         * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
453         bytes as aggregates.
454
455 2016-01-27  Joel Brobecker  <brobecker@adacore.com>
456
457         * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
458         Linespec Maintainers.
459
460 2016-01-26  Simon Marchi  <simon.marchi@ericsson.com>
461
462         * common/common-utils.c (skip_spaces): Fix comment.
463         (skip_to_space_const): Likewise.
464
465 2016-01-25  Yao Qi  <yao.qi@linaro.org>
466
467         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
468         Remove argument pc.  Get pc by regcache_read_pc.  Callers updated.
469         (arm_deal_with_atomic_sequence_raw): Likewise.
470         (thumb_get_next_pcs_raw): Likewise.
471         (arm_get_next_pcs_raw): Likewise.
472         (arm_get_next_pcs): Remove argument pc.  Callers updated.
473         * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
474
475 2016-01-25  Mark Wielaard  <mjw@redhat.com>
476
477         * ada-lang.c (ada_evaluate_subexp): Add proper else block.
478         * c-typeprint.c (c_type_print_base): Fix misleading indentation of
479         if statement.
480         * inflow.c (child_terminal_ours_1): Fix misleading indentation of
481         statement block by introducing an else.
482         * linux-record.c (record_linux_sockaddr): Fix misleading indentation
483         of return statements.
484         (record_linux_msghdr): Likewise.
485
486 2016-01-25  Pedro Alves  <palves@redhat.com>
487
488         PR threads/19461
489         * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
490         parent/child running states.
491
492 2016-01-25  Pedro Alves  <palves@redhat.com>
493
494         PR gdb/19494
495         * linux-nat.c (kill_one_lwp): New, factored out from ...
496         (kill_callback): ... this.
497         (kill_wait_callback): New, factored out from ...
498         (kill_wait_one_lwp): ... this.
499         (kill_unfollowed_fork_children): New function.
500         (linux_nat_kill): Use it.
501
502 2016-01-22  John Baldwin  <jhb@FreeBSD.org>
503
504         * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
505
506 2016-01-22  Yao Qi  <yao.qi@linaro.org>
507
508         * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
509         instead of warning.
510         (store_fpregs, fetch_regs, store_regs): Likewise.
511         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
512         (fetch_vfp_regs, store_vfp_regs): Likewise.
513
514 2016-01-21  Doug Evans  <dje@google.com>
515
516         * breakpoint.c (init_breakpoint_sal): Add comment.
517
518 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
519
520         * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
521
522 2016-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
523
524         * disasm.c (maybe_add_dis_line_entry): Rename to...
525         (add_dis_line_entry): ...this, and update header comment.
526         (do_mixed_source_and_assembly): Now use add_dis_line_entry.
527
528 2016-01-21  Pedro Alves  <palves@redhat.com>
529
530         * Makefile.in (COMPILER_CFLAGS): New.
531         (CXXFLAGS): Get it from configure.
532         (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
533         instead of CFLAGS.
534         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
535         COMPILER_CFLAGS.
536         * configure: Regenerate.
537
538 2016-01-21  Joel Brobecker  <brobecker@adacore.com>
539
540         * location.h (new_address_location): Add new parameters
541         "addr_string" and "addr_string_len".
542         (get_address_string_location): Add declaration.
543         * location.c (new_address_location): Add new parameters
544         "addr_string" and "addr_string_len".  If not NULL, store
545         a copy of the addr_string in the new location as well.
546         (get_address_string_location): New function.
547         (string_to_event_location): Update call to new_address_location.
548         * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
549         Save the event location in the parser's state before
550         passing it to convert_address_location_to_sals.
551         * breakpoint.c (create_thread_event_breakpoint): Update call
552         to new_address_location.
553         (init_breakpoint_sal): Get the event location's string, if any,
554         and use it to update call to new_address_location.
555         * python/py-finishbreakpoint.c (bpfinishpy_init):
556         Update call to new_address_location.
557         * spu-tdep.c (spu_catch_start): Likewise.
558
559         * config/djgpp/fnchange.lst: Add entries for
560         gdb/testsuite/gdb.base/break-fun-addr1.c and
561         gdb/testsuite/gdb.base/break-fun-addr2.c.
562
563 2016-01-21  Yao Qi  <yao.qi@linaro.org>
564
565         * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
566         is_thumb and set it according to CPSR saved on the stack.
567         (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
568         arm_linux_sigreturn_next_pc.
569
570 2016-01-20  Simon Marchi  <simon.marchi@polymtl.ca>
571
572         * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
573         Fix enumerators sort key function.
574
575 2016-01-20  Joel Brobecker  <brobecker@adacore.com>
576
577         * printcmd.c (print_scalar_formatted): Move binary operator from
578         end of line to beginning of next line.  Adjust formatting
579         accordingly.
580
581 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
582
583         * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
584         "len" with sysctl.
585
586 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
587
588         * fbsd-tdep.c (find_stop_signal): Remove.
589         (struct fbsd_collect_regset_section_cb) <lwp>: New field.
590         <stop_signal>: New field.
591         <abort_iteration>: New field.
592         (fbsd_collect_regset_section_cb): Use new fields.
593         (fbsd_collect_thread_registers): New function.
594         (struct fbsd_corefile_thread_data): New structure.
595         (fbsd_corefile_thread): New function.
596         (fbsd_make_corefile_notes): Use new function to dump notes for each
597         non-exited thread in a process.
598
599 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
600
601         * configure.ac: Check for support for LWP names on FreeBSD.
602         * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
603         [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
604         (fbsd_fetch_kinfo_proc): Move function earlier.
605         [PT_LWPINFO] (fbsd_thread_alive): New function.
606         [PT_LWPINFO] (fbsd_pid_to_str): New function.
607         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
608         [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
609         [PT_LWPINFO] (fbsd_add_threads): New function.
610         [PT_LWPINFO] (fbsd_update_thread_list): New function.
611         [PT_LWPINFO] New variable super_resume.
612         [PT_LWPINFO] (resume_one_thread_cb): New function.
613         [PT_LWPINFO] (resume_all_threads_cb): New function.
614         [PT_LWPINFO] (fbsd_resume): New function.
615         (fbsd_remember_child): Save full ptid instead of plain pid.
616         (fbsd_is_child_pending): Return ptid of saved child process.
617         (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
618         first stop.
619         [PT_LWP_EVENTS] Handle LWP events.
620         [TDP_RFPPWAIT] Include LWP in child ptid.
621         (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
622         (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
623         Add threads for existing processes.
624         (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
625         "fbsd_thread_alive".
626         Set "to_pid_to_str" to "fbsd_pid_to_str".
627         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
628         "fbsd_thread_name".
629         [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
630         Set "to_has_thread_control" to "tc_schedlock".
631         Set "to_resume" to "fbsd_resume".
632         (_initialize_fbsd_nat): New function.
633         * configure: Regenerate.
634         * config.in: Regenerate.
635
636 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
637
638         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
639         get_ptrace_pid.
640         (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
641         (amd64bsd_dr_get): Use get_ptrace_pid.
642         (amd64bsd_dr_set): Use get_ptrace_pid.
643         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
644         (i386bsd_store_inferior_registers): Use get_ptrace_pid.
645         (i386bsd_dr_get): Use get_ptrace_pid.
646         (i386bsd_dr_set): Use get_ptrace_pid.
647         * inf-ptrace.c (get_ptrace_pid): Export.
648         * inf-ptrace.h (get_ptrace_pid): Declare.
649         * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
650         (ppcfbsd_store_inferior_registers): Use lwp id.
651
652 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
653
654         * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
655         (fbsd_core_thread_name): New function.
656         (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
657         Add "core_thread_name" gdbarch method.
658
659 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
660
661         * corelow.c (core_thread_name): New function.
662         (init_core_ops): Use "core_thread_name" for the "to_thread_name"
663         target op.
664         * gdbarch.sh (core_thread_name): New gdbarch callback.
665         * gdbarch.h: Re-generate.
666         * gdbarch.c: Re-generate.
667
668 2016-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
669
670         * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
671         convert gdb.Value to integer type using int().
672
673 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
674
675         * configure.ac: Include <sys/types.h when checking for "r_fs" in
676         "struct reg".
677         * configure: Regenerate.
678
679 2016-01-19  Pedro Alves  <palves@redhat.com>
680
681         * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
682         * break-catch-throw.c (re_set_exception_catchpoint): Pass the
683         current program space down to linespec decoding and breakpoint
684         location updating.
685         * breakpoint.c (parse_breakpoint_sals): Adjust calls to
686         decode_line_full.
687         (until_break_command): Adjust calls to decode_line_1.
688         (base_breakpoint_decode_location, bkpt_decode_location): Add
689         'search_pspace' parameter.  Pass it along.
690         (bkpt_probe_create_sals_from_location): Adjust calls to
691         parse_probes.
692         (tracepoint_decode_location, tracepoint_probe_decode_location)
693         (strace_marker_decode_location): Add 'search_pspace' parameter.
694         Pass it along.
695         (all_locations_are_pending): Rewrite to take a breakpoint and
696         program space as arguments instead.
697         (hoist_existing_locations): New function.
698         (update_breakpoint_locations): Add 'filter_pspace' parameter.  Use
699         hoist_existing_locations instead of always removing all locations,
700         and adjust to all_locations_are_pending change.
701         (location_to_sals): Add 'search_pspace' parameter.  Pass it along.
702         Don't disable the breakpoint if there are other locations in
703         another program space.
704         (breakpoint_re_set_default): Adjust to pass down the current
705         program space as filter program space.
706         (decode_location_default): Add 'search_pspace' parameter and pass
707         it along.
708         (prepare_re_set_context): Don't switch program space here.
709         (breakpoint_re_set): Use save_current_space_and_thread instead of
710         save_current_program_space.
711         * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
712         'search_pspace' parameter.
713         (update_breakpoint_locations): Add 'filter_pspace' parameter.
714         * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
715         decode_line_1.
716         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
717         program space as filter program space.
718         * linespec.c (struct linespec_state) <search_pspace>: New field.
719         (create_sals_line_offset, convert_explicit_location_to_sals)
720         (parse_linespec): Pass the search program space down.
721         (linespec_state_constructor): Add 'search_pspace' parameter.
722         Store it.
723         (linespec_parser_new): Add 'search_pspace' parameter and pass it
724         along.
725         (linespec_lex_to_end): Adjust.
726         (decode_line_full, decode_line_1): Add 'search_pspace' parameter
727         and pass it along.
728         (decode_line_with_last_displayed): Adjust.
729         (collect_symtabs_from_filename, symtabs_from_filename): New
730         'search_pspace' parameter.  Use it.
731         (find_function_symbols): Pass the search program space down.
732         * linespec.h (decode_line_1, decode_line_full): Add
733         'search_pspace' parameter.
734         * probe.c (parse_probes_in_pspace): New function, factored out
735         from ...
736         (parse_probes): ... this.  Add 'search_pspace' parameter and use
737         it.
738         * probe.h (parse_probes): Add pspace' parameter.
739         * python/python.c (gdbpy_decode_line): Adjust.
740         * tracepoint.c (scope_info): Adjust.
741
742 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
743
744         * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
745         instruction support.
746         (micromips_next_pc): Likewise.
747         (micromips_scan_prologue): Likewise.
748         (micromips_deal_with_atomic_sequence): Likewise.
749         (micromips_stack_frame_destroyed_p): Likewise.
750         (mips_breakpoint_from_pc): Likewise.
751
752 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
753
754         * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
755         unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
756
757 2016-01-18  Pedro Alves  <palves@redhat.com>
758
759         * NEWS: Mention that GDB now displays the ID and name of the
760         thread that hit a breakpoint or received a signal.
761         * break-catch-sig.c (signal_catchpoint_print_it): Use
762         maybe_print_thread_hit_breakpoint.
763         * break-catch-syscall.c (print_it_catch_syscall): Likewise.
764         * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
765         * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
766         (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
767         (print_it_catch_exec, print_it_ranged_breakpoint)
768         (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
769         Use maybe_print_thread_hit_breakpoint.
770         * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
771         * gdbthread.h (show_thread_that_caused_stop): Declare.
772         * infrun.c (print_signal_received_reason): Print which thread
773         received signal.
774         * thread.c (show_thread_that_caused_stop): New function.
775
776 2016-01-18  Gary Benson  <gbenson@redhat.com>
777
778         * nat/linux-namespaces.c (do_fork): New function.
779         (linux_mntns_get_helper): Use the above.
780
781 2016-01-17  Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>  (tiny change)
782
783         Pushed by Joel Brobecker  <brobecker@adacore.com>.
784         PR gdb/19208
785         * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
786         if the function has no name.
787
788 2016-01-15  Sandra Loosemore  <sandra@codesourcery.com>
789
790         * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
791         Conditionalize for Windows host.
792         (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
793         (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
794         (phony_iconv_open): Handle both UTF-32 endiannesses.
795         (phony_iconv): Likewise.  Check for output overflow and clean up
796         out-of-input cases.  Correct adjustment to input buffer pointer.
797         (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
798         phony_iconv_open.
799
800 2016-01-15  Pedro Alves  <palves@redhat.com>
801
802         * NEWS: Mention star wildcard ranges.
803         * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
804         (number_range_setup_range): New function.
805         * cli/cli-utils.h (number_range_setup_range): New declaration.
806         * thread.c (thread_apply_command): Support star TID ranges.
807         * tid-parse.c (tid_range_parser_finished)
808         (tid_range_parser_string, tid_range_parser_skip)
809         (get_tid_or_range, get_tid_or_range): Handle
810         TID_RANGE_STATE_STAR_RANGE.
811         (tid_range_parser_star_range): New function.
812         * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
813         New value.
814         (tid_range_parser_star_range): New declaration.
815
816 2016-01-15  Pedro Alves  <palves@redhat.com>
817
818         * thread.c (thread_apply_command): Use the tid range parser to
819         advance past the thread ID list.
820         * tid-parse.c (get_positive_number_trailer): New function.
821         (parse_thread_id): Use it.
822         (get_tid_or_range): Use it.  Return 0 instead of throwing invalid
823         thread ID error.
824         (get_tid_or_range): Detect negative values.  Return 0 instead of
825         throwing invalid thread ID error.
826
827 2016-01-14  Yao Qi  <yao.qi@linaro.org>
828
829         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
830         Declare.
831         (arm_linux_get_next_pcs_ops): Install
832         arm_linux_get_next_pcs_syscall_next_pc.
833         (arm_linux_syscall_next_pc): Change to ...
834         (arm_linux_get_next_pcs_syscall_next_pc): ... it.
835         (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
836         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
837         (arm_get_next_pcs_syscall_next_pc): Make it static.  Don't
838         call tdep->syscall_next_pc.
839         * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
840         (arm_get_next_pcs_syscall_next_pc): Remove.
841
842 2016-01-14  Yao Qi  <yao.qi@linaro.org>
843
844         * remote.c (remote_set_syscall_catchpoint): Cast to char *.
845         * thread.c (do_captured_thread_select): Cast to const char *.
846
847 2016-01-14  Yao Qi  <yao.qi@linaro.org>
848
849         * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
850         argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
851         (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
852         instead.
853         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
854         <arm_thumb2_breakpoint>: Remove.
855         <has_thumb2_breakpoint>: New field.
856         (arm_get_next_pcs_ctor): Update declaration.
857         * arm-linux-tdep.c (arm_linux_software_single_step): Pass
858         1 to arm_get_next_pcs_ctor.
859         * arm-tdep.c (arm_software_single_step): Pass 0 to
860         arm_get_next_pcs_ctor.
861
862 2016-01-13  Ulrich Weigand  <uweigand@de.ibm.com>
863
864         * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
865
866 2016-01-13  Yao Qi  <yao.qi@linaro.org>
867
868         * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
869         byte_order_for_code to read instruction.
870
871 2016-01-13  Pedro Alves  <palves@redhat.com>
872
873         * NEWS: Mention $_gthread.
874         * gdbthread.h (struct thread_info) <global_num>: Mention
875         $_gthread.
876         * thread.c (thread_num_make_value_helper): New function.
877         (thread_id_make_value): Delete.
878         (thread_id_per_inf_num_make_value, global_thread_id_make_value):
879         New.
880         (thread_funcs): Adjust.
881         (gthread_funcs): New.
882         (_initialize_thread): Register $_gthread variable.
883
884 2016-01-13  Pedro Alves  <palves@redhat.com>
885
886         * NEWS: Mention "info threads -gid".
887         * gdbthread.h (struct thread_info) <global_num>: Mention "info
888         threads -gid".
889         * thread.c (info_threads_command): Handle "-gid".
890         (_initialize_thread): Adjust "info threads" help string to mention
891         -gid.
892
893 2016-01-13  Pedro Alves  <palves@redhat.com>
894
895         * NEWS: Mention InferiorThread.global_num.
896         * python/py-infthread.c (thpy_get_global_num): New function.
897         (thread_object_getset): Register "global_num".
898
899 2016-01-13  Pedro Alves  <palves@redhat.com>
900
901         * NEWS: Mention that thread IDs are now per inferior and global
902         thread IDs.
903         * Makefile.in (SFILES): Add tid-parse.c.
904         (COMMON_OBS): Add tid-parse.o.
905         (HFILES_NO_SRCDIR): Add tid-parse.h.
906         * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
907         * breakpoint.c (insert_breakpoint_locations)
908         (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
909         (print_one_breakpoint_location, set_longjmp_breakpoint)
910         (check_longjmp_breakpoint_for_call_dummy)
911         (set_momentary_breakpoint): Adjust to use global IDs.
912         (find_condition_and_thread, watch_command_1): Use parse_thread_id.
913         (until_break_command, longjmp_bkpt_dtor)
914         (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
915         to use global IDs.
916         * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
917         ptid_to_global_thread_id.
918         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
919         * gdbthread.h (struct thread_info): Rename field 'num' to
920         'global_num.  Add new fields 'per_inf_num' and 'inf'.
921         (thread_id_to_pid): Rename thread_id_to_pid to
922         global_thread_id_to_ptid.
923         (pid_to_thread_id): Rename to ...
924         (ptid_to_global_thread_id): ... this.
925         (valid_thread_id): Rename to ...
926         (valid_global_thread_id): ... this.
927         (find_thread_id): Rename to ...
928         (find_thread_global_id): ... this.
929         (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
930         (print_thread_info): Add comment.
931         * tid-parse.h: New file.
932         * tid-parse.c: New file.
933         * infcmd.c (step_command_fsm_prepare)
934         (step_command_fsm_should_stop): Adjust to use the global thread
935         ID.
936         (until_next_command, until_next_command)
937         (finish_command_fsm_should_stop): Adjust to use the global thread
938         ID.
939         (attach_post_wait): Adjust to check the inferior number too.
940         * inferior.h (struct inferior) <highest_thread_num>: New field.
941         * infrun.c (handle_signal_stop)
942         (insert_exception_resume_breakpoint)
943         (insert_exception_resume_from_probe): Adjust to use the global
944         thread ID.
945         * record-btrace.c (record_btrace_open): Use global thread IDs.
946         * remote.c (process_initial_stop_replies): Also consider the
947         inferior number.
948         * target.c (target_pre_inferior): Clear the inferior's highest
949         thread num.
950         * thread.c (clear_thread_inferior_resources): Adjust to use the
951         global thread ID.
952         (new_thread): New inferior parameter.  Adjust to use it.  Set both
953         the thread's global ID and the thread's per-inferior ID.
954         (add_thread_silent): Adjust.
955         (find_thread_global_id): New.
956         (find_thread_id): Make static.  Adjust to rename.
957         (valid_thread_id): Rename to ...
958         (valid_global_thread_id): ... this.
959         (pid_to_thread_id): Rename to ...
960         (ptid_to_global_thread_id): ... this.
961         (thread_id_to_pid): Rename to ...
962         (global_thread_id_to_ptid): ... this.  Adjust.
963         (first_thread_of_process): Adjust.
964         (do_captured_list_thread_ids): Adjust to use global thread IDs.
965         (should_print_thread): New function.
966         (print_thread_info): Rename to ...
967         (print_thread_info_1): ... this, and add new show_global_ids
968         parameter.  Handle it.  Iterate over inferiors.
969         (print_thread_info): Reimplement as wrapper around
970         print_thread_info_1.
971         (show_inferior_qualified_tids): New function.
972         (print_thread_id): Use it.
973         (tp_array_compar): Compare inferior numbers too.
974         (thread_apply_command): Use tid_range_parser.
975         (do_captured_thread_select): Use parse_thread_id.
976         (thread_id_make_value): Adjust.
977         (_initialize_thread): Adjust "info threads" help string.
978         * varobj.c (struct varobj_root): Update comment.
979         (varobj_create): Adjust to use global thread IDs.
980         (value_of_root_1): Adjust to use global_thread_id_to_ptid.
981         * windows-tdep.c (display_tib): No longer accept an argument.
982         * cli/cli-utils.c (get_number_trailer): Make extern.
983         * cli/cli-utils.h (get_number_trailer): Declare.
984         (get_number_const): Adjust documentation.
985         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
986         thread IDs.
987         * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
988         (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
989         * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
990         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
991         Likewise.
992         * python/py-breakpoint.c (bppy_set_thread): Likewise.
993         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
994         * python/py-infthread.c (thpy_get_num): Add comment and return the
995         per-inferior thread ID.
996         (thread_object_getset): Update comment of "num".
997
998 2016-01-13  Pedro Alves  <palves@redhat.com>
999
1000         * breakpoint.c (remove_threaded_breakpoints)
1001         (print_one_breakpoint_location): Use print_thread_id.
1002         * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
1003         (btrace_fetch, btrace_clear): Use print_thread_id.
1004         * common/print-utils.c (CELLSIZE): Delete.
1005         (get_cell): Rename to ...
1006         (get_print_cell): ... this and made extern.  Adjust call callers.
1007         Adjust to use PRINT_CELL_SIZE.
1008         * common/print-utils.h (get_print_cell): Declare.
1009         (PRINT_CELL_SIZE): New.
1010         * gdbthread.h (print_thread_id): Declare.
1011         * infcmd.c (signal_command): Use print_thread_id.
1012         * inferior.c (print_inferior): Use print_thread_id.
1013         * infrun.c (handle_signal_stop)
1014         (insert_exception_resume_breakpoint)
1015         (insert_exception_resume_from_probe)
1016         (print_signal_received_reason): Use print_thread_id.
1017         * record-btrace.c (record_btrace_info)
1018         (record_btrace_resume_thread, record_btrace_cancel_resume)
1019         (record_btrace_step_thread, record_btrace_wait): Use
1020         print_thread_id.
1021         * thread.c (thread_apply_all_command): Use print_thread_id.
1022         (print_thread_id): New function.
1023         (thread_apply_command): Use print_thread_id.
1024         (thread_command, thread_find_command, do_captured_thread_select):
1025         Use print_thread_id.
1026
1027 2016-01-13  Pedro Alves  <palves@redhat.com>
1028
1029         * NEWS: Mention InferiorThread.inferior.
1030         * python/py-infthread.c (thpy_get_inferior): New.
1031         (thread_object_getset): Register "inferior".
1032
1033 2016-01-13  Pedro Alves  <palves@redhat.com>
1034
1035         * NEWS: Mention $_inferior.
1036         * inferior.c (inferior_id_make_value): New.
1037         (inferior_funcs): New.
1038         (_initialize_inferior): Create $_inferior variable.
1039
1040 2016-01-13  Pedro Alves  <palves@redhat.com>
1041
1042         PR breakpoints/19388
1043         * frame.c (get_current_frame): Use validate_registers_access.
1044         * gdbthread.h (validate_registers_access): Declare.
1045         * infrun.c (validate_siginfo_access): Delete.
1046         (siginfo_value_read, siginfo_value_write): Use
1047         validate_registers_access.
1048         * thread.c (validate_registers_access): New function.
1049
1050 2016-01-12  Josh Stone  <jistone@redhat.com>
1051             Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1052
1053         * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
1054         syscall_entry and syscall_return stop reasons.  Mention GDB
1055         support for remote catch syscall.
1056         * remote.c (PACKET_QCatchSyscalls): New enum.
1057         (remote_set_syscall_catchpoint): New function.
1058         (remote_protocol_features): New element for QCatchSyscalls.
1059         (remote_parse_stop_reply): Parse syscall_entry/return stops.
1060         (init_remote_ops): Install remote_set_syscall_catchpoint.
1061         (_initialize_remote): Config QCatchSyscalls.
1062         * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
1063
1064 2016-01-12  Yao Qi  <yao.qi@linaro.org>
1065
1066         * nat/linux-ptrace.c (linux_child_function): Cast child_stack
1067         to gdb_byte * and pass to linux_fork_to_function.
1068
1069 2016-01-12  Yao Qi  <yao.qi@linaro.org>
1070
1071         * nat/linux-ptrace.c (linux_fork_to_function): Change type
1072         of argument 'function'.
1073         (linux_grandchild_function): Change return type to 'int'.
1074         Change child_stack's type to 'void *'.
1075         (linux_child_function): Likewise.
1076
1077 2016-01-12  Pedro Alves  <palves@redhat.com>
1078
1079         Remove use of the registered trademark symbol throughout.
1080
1081 2016-01-12  Thomas Schwinge  <thomas@codesourcery.com>
1082
1083         * reply_mig_hack.awk: Rewrite one regular expression.
1084
1085 2016-01-11  Mike Frysinger  <vapier@gentoo.org>
1086
1087         * acinclude.m4: Include new warning.m4 file.
1088         * configure: Regenerated.
1089         * configure.ac: Move all warning logic ...
1090         * warning.m4: ... here.
1091
1092 2016-01-08  Yao Qi  <yao.qi@linaro.org>
1093
1094         * extension.c: Include target.h.
1095         (set_active_ext_lang): Only call install_gdb_sigint_handler,
1096         check_quit_flag, and set_quit_flag if target_terminal_is_ours
1097         returns false.
1098         (restore_active_ext_lang): Likewise.
1099         * target.c (target_terminal_is_ours): New function.
1100         * target.h (target_terminal_is_ours): Declare.
1101
1102 2016-01-07  Maciej W. Rozycki  <macro@imgtec.com>
1103
1104         * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
1105         to `err' in the little-endian leg.
1106
1107 2016-01-06  Yao Qi  <yao.qi@linaro.org>
1108
1109         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
1110         lines below.
1111         (thumb_get_next_pcs_raw): Make it static.
1112         (arm_get_next_pcs_raw): Likewise.
1113         * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
1114         declaration.
1115         (arm_get_next_pcs_raw): Likewise.
1116
1117 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
1118
1119         * version.in: Change cvs to git.
1120
1121 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
1122
1123         * configure.tgt (score-*-*): Delete gdb_sim assignment.
1124
1125 2016-01-05  Pedro Alves  <palves@redhat.com>
1126
1127         PR sim/13418
1128         * configure.ac: Define WITH_PPC_SIM when linking in the sim and
1129         the target is powerpc*.
1130         * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
1131         of WITH_SIM.
1132         * configure: Regenerate.
1133         * config.in: Regenerate.
1134
1135 2016-01-04  Markus Metzger  <markus.t.metzger@intel.com>
1136
1137         * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
1138
1139 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
1140
1141         * configure.tgt (powerpc*-*-*): Delete test call and
1142         always assign gdb_sim.
1143
1144 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
1145
1146         Update year range in copyright notice of all files.
1147
1148 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
1149
1150         * top.c (print_gdb_version): Change copyright year in version
1151         message.
1152
1153 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
1154
1155         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
1156
1157 For older changes see ChangeLog-2015.
1158 \f
1159 Local Variables:
1160 mode: change-log
1161 left-margin: 8
1162 fill-column: 74
1163 version-control: never
1164 coding: utf-8
1165 End: