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