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