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