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