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