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