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