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