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