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