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