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