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