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