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