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