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