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