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