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