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