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