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