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