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