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