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