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