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