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