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