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