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