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