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