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