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