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