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