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