[ARM] perror_with_name when failed to fetch/store registers
[binutils-gdb.git] / gdb / ChangeLog
1 2016-01-22 Yao Qi <yao.qi@linaro.org>
2
3 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
4 instead of warning.
5 (store_fpregs, fetch_regs, store_regs): Likewise.
6 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
7 (fetch_vfp_regs, store_vfp_regs): Likewise.
8
9 2016-01-21 Doug Evans <dje@google.com>
10
11 * breakpoint.c (init_breakpoint_sal): Add comment.
12
13 2016-01-21 Marcin Koƛcielnicki <koriakin@0x04.net>
14
15 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
16
17 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
18
19 * disasm.c (maybe_add_dis_line_entry): Rename to...
20 (add_dis_line_entry): ...this, and update header comment.
21 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
22
23 2016-01-21 Pedro Alves <palves@redhat.com>
24
25 * Makefile.in (COMPILER_CFLAGS): New.
26 (CXXFLAGS): Get it from configure.
27 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
28 instead of CFLAGS.
29 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
30 COMPILER_CFLAGS.
31 * configure: Regenerate.
32
33 2016-01-21 Joel Brobecker <brobecker@adacore.com>
34
35 * location.h (new_address_location): Add new parameters
36 "addr_string" and "addr_string_len".
37 (get_address_string_location): Add declaration.
38 * location.c (new_address_location): Add new parameters
39 "addr_string" and "addr_string_len". If not NULL, store
40 a copy of the addr_string in the new location as well.
41 (get_address_string_location): New function.
42 (string_to_event_location): Update call to new_address_location.
43 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
44 Save the event location in the parser's state before
45 passing it to convert_address_location_to_sals.
46 * breakpoint.c (create_thread_event_breakpoint): Update call
47 to new_address_location.
48 (init_breakpoint_sal): Get the event location's string, if any,
49 and use it to update call to new_address_location.
50 * python/py-finishbreakpoint.c (bpfinishpy_init):
51 Update call to new_address_location.
52 * spu-tdep.c (spu_catch_start): Likewise.
53
54 * config/djgpp/fnchange.lst: Add entries for
55 gdb/testsuite/gdb.base/break-fun-addr1.c and
56 gdb/testsuite/gdb.base/break-fun-addr2.c.
57
58 2016-01-21 Yao Qi <yao.qi@linaro.org>
59
60 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
61 is_thumb and set it according to CPSR saved on the stack.
62 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
63 arm_linux_sigreturn_next_pc.
64
65 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
66
67 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
68 Fix enumerators sort key function.
69
70 2016-01-20 Joel Brobecker <brobecker@adacore.com>
71
72 * printcmd.c (print_scalar_formatted): Move binary operator from
73 end of line to beginning of next line. Adjust formatting
74 accordingly.
75
76 2016-01-19 John Baldwin <jhb@FreeBSD.org>
77
78 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
79 "len" with sysctl.
80
81 2016-01-19 John Baldwin <jhb@FreeBSD.org>
82
83 * fbsd-tdep.c (find_stop_signal): Remove.
84 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
85 <stop_signal>: New field.
86 <abort_iteration>: New field.
87 (fbsd_collect_regset_section_cb): Use new fields.
88 (fbsd_collect_thread_registers): New function.
89 (struct fbsd_corefile_thread_data): New structure.
90 (fbsd_corefile_thread): New function.
91 (fbsd_make_corefile_notes): Use new function to dump notes for each
92 non-exited thread in a process.
93
94 2016-01-19 John Baldwin <jhb@FreeBSD.org>
95
96 * configure.ac: Check for support for LWP names on FreeBSD.
97 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
98 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
99 (fbsd_fetch_kinfo_proc): Move function earlier.
100 [PT_LWPINFO] (fbsd_thread_alive): New function.
101 [PT_LWPINFO] (fbsd_pid_to_str): New function.
102 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
103 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
104 [PT_LWPINFO] (fbsd_add_threads): New function.
105 [PT_LWPINFO] (fbsd_update_thread_list): New function.
106 [PT_LWPINFO] New variable super_resume.
107 [PT_LWPINFO] (resume_one_thread_cb): New function.
108 [PT_LWPINFO] (resume_all_threads_cb): New function.
109 [PT_LWPINFO] (fbsd_resume): New function.
110 (fbsd_remember_child): Save full ptid instead of plain pid.
111 (fbsd_is_child_pending): Return ptid of saved child process.
112 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
113 first stop.
114 [PT_LWP_EVENTS] Handle LWP events.
115 [TDP_RFPPWAIT] Include LWP in child ptid.
116 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
117 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
118 Add threads for existing processes.
119 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
120 "fbsd_thread_alive".
121 Set "to_pid_to_str" to "fbsd_pid_to_str".
122 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
123 "fbsd_thread_name".
124 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
125 Set "to_has_thread_control" to "tc_schedlock".
126 Set "to_resume" to "fbsd_resume".
127 (_initialize_fbsd_nat): New function.
128 * configure: Regenerate.
129 * config.in: Regenerate.
130
131 2016-01-19 John Baldwin <jhb@FreeBSD.org>
132
133 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
134 get_ptrace_pid.
135 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
136 (amd64bsd_dr_get): Use get_ptrace_pid.
137 (amd64bsd_dr_set): Use get_ptrace_pid.
138 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
139 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
140 (i386bsd_dr_get): Use get_ptrace_pid.
141 (i386bsd_dr_set): Use get_ptrace_pid.
142 * inf-ptrace.c (get_ptrace_pid): Export.
143 * inf-ptrace.h (get_ptrace_pid): Declare.
144 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
145 (ppcfbsd_store_inferior_registers): Use lwp id.
146
147 2016-01-19 John Baldwin <jhb@FreeBSD.org>
148
149 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
150 (fbsd_core_thread_name): New function.
151 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
152 Add "core_thread_name" gdbarch method.
153
154 2016-01-19 John Baldwin <jhb@FreeBSD.org>
155
156 * corelow.c (core_thread_name): New function.
157 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
158 target op.
159 * gdbarch.sh (core_thread_name): New gdbarch callback.
160 * gdbarch.h: Re-generate.
161 * gdbarch.c: Re-generate.
162
163 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
164
165 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
166 convert gdb.Value to integer type using int().
167
168 2016-01-19 John Baldwin <jhb@FreeBSD.org>
169
170 * configure.ac: Include <sys/types.h when checking for "r_fs" in
171 "struct reg".
172 * configure: Regenerate.
173
174 2016-01-19 Pedro Alves <palves@redhat.com>
175
176 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
177 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
178 current program space down to linespec decoding and breakpoint
179 location updating.
180 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
181 decode_line_full.
182 (until_break_command): Adjust calls to decode_line_1.
183 (base_breakpoint_decode_location, bkpt_decode_location): Add
184 'search_pspace' parameter. Pass it along.
185 (bkpt_probe_create_sals_from_location): Adjust calls to
186 parse_probes.
187 (tracepoint_decode_location, tracepoint_probe_decode_location)
188 (strace_marker_decode_location): Add 'search_pspace' parameter.
189 Pass it along.
190 (all_locations_are_pending): Rewrite to take a breakpoint and
191 program space as arguments instead.
192 (hoist_existing_locations): New function.
193 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
194 hoist_existing_locations instead of always removing all locations,
195 and adjust to all_locations_are_pending change.
196 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
197 Don't disable the breakpoint if there are other locations in
198 another program space.
199 (breakpoint_re_set_default): Adjust to pass down the current
200 program space as filter program space.
201 (decode_location_default): Add 'search_pspace' parameter and pass
202 it along.
203 (prepare_re_set_context): Don't switch program space here.
204 (breakpoint_re_set): Use save_current_space_and_thread instead of
205 save_current_program_space.
206 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
207 'search_pspace' parameter.
208 (update_breakpoint_locations): Add 'filter_pspace' parameter.
209 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
210 decode_line_1.
211 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
212 program space as filter program space.
213 * linespec.c (struct linespec_state) <search_pspace>: New field.
214 (create_sals_line_offset, convert_explicit_location_to_sals)
215 (parse_linespec): Pass the search program space down.
216 (linespec_state_constructor): Add 'search_pspace' parameter.
217 Store it.
218 (linespec_parser_new): Add 'search_pspace' parameter and pass it
219 along.
220 (linespec_lex_to_end): Adjust.
221 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
222 and pass it along.
223 (decode_line_with_last_displayed): Adjust.
224 (collect_symtabs_from_filename, symtabs_from_filename): New
225 'search_pspace' parameter. Use it.
226 (find_function_symbols): Pass the search program space down.
227 * linespec.h (decode_line_1, decode_line_full): Add
228 'search_pspace' parameter.
229 * probe.c (parse_probes_in_pspace): New function, factored out
230 from ...
231 (parse_probes): ... this. Add 'search_pspace' parameter and use
232 it.
233 * probe.h (parse_probes): Add pspace' parameter.
234 * python/python.c (gdbpy_decode_line): Adjust.
235 * tracepoint.c (scope_info): Adjust.
236
237 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
238
239 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
240 instruction support.
241 (micromips_next_pc): Likewise.
242 (micromips_scan_prologue): Likewise.
243 (micromips_deal_with_atomic_sequence): Likewise.
244 (micromips_stack_frame_destroyed_p): Likewise.
245 (mips_breakpoint_from_pc): Likewise.
246
247 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
248
249 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
250 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
251
252 2016-01-18 Pedro Alves <palves@redhat.com>
253
254 * NEWS: Mention that GDB now displays the ID and name of the
255 thread that hit a breakpoint or received a signal.
256 * break-catch-sig.c (signal_catchpoint_print_it): Use
257 maybe_print_thread_hit_breakpoint.
258 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
259 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
260 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
261 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
262 (print_it_catch_exec, print_it_ranged_breakpoint)
263 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
264 Use maybe_print_thread_hit_breakpoint.
265 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
266 * gdbthread.h (show_thread_that_caused_stop): Declare.
267 * infrun.c (print_signal_received_reason): Print which thread
268 received signal.
269 * thread.c (show_thread_that_caused_stop): New function.
270
271 2016-01-18 Gary Benson <gbenson@redhat.com>
272
273 * nat/linux-namespaces.c (do_fork): New function.
274 (linux_mntns_get_helper): Use the above.
275
276 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
277
278 Pushed by Joel Brobecker <brobecker@adacore.com>.
279 PR gdb/19208
280 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
281 if the function has no name.
282
283 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
284
285 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
286 Conditionalize for Windows host.
287 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
288 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
289 (phony_iconv_open): Handle both UTF-32 endiannesses.
290 (phony_iconv): Likewise. Check for output overflow and clean up
291 out-of-input cases. Correct adjustment to input buffer pointer.
292 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
293 phony_iconv_open.
294
295 2016-01-15 Pedro Alves <palves@redhat.com>
296
297 * NEWS: Mention star wildcard ranges.
298 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
299 (number_range_setup_range): New function.
300 * cli/cli-utils.h (number_range_setup_range): New declaration.
301 * thread.c (thread_apply_command): Support star TID ranges.
302 * tid-parse.c (tid_range_parser_finished)
303 (tid_range_parser_string, tid_range_parser_skip)
304 (get_tid_or_range, get_tid_or_range): Handle
305 TID_RANGE_STATE_STAR_RANGE.
306 (tid_range_parser_star_range): New function.
307 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
308 New value.
309 (tid_range_parser_star_range): New declaration.
310
311 2016-01-15 Pedro Alves <palves@redhat.com>
312
313 * thread.c (thread_apply_command): Use the tid range parser to
314 advance past the thread ID list.
315 * tid-parse.c (get_positive_number_trailer): New function.
316 (parse_thread_id): Use it.
317 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
318 thread ID error.
319 (get_tid_or_range): Detect negative values. Return 0 instead of
320 throwing invalid thread ID error.
321
322 2016-01-14 Yao Qi <yao.qi@linaro.org>
323
324 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
325 Declare.
326 (arm_linux_get_next_pcs_ops): Install
327 arm_linux_get_next_pcs_syscall_next_pc.
328 (arm_linux_syscall_next_pc): Change to ...
329 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
330 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
331 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
332 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
333 call tdep->syscall_next_pc.
334 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
335 (arm_get_next_pcs_syscall_next_pc): Remove.
336
337 2016-01-14 Yao Qi <yao.qi@linaro.org>
338
339 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
340 * thread.c (do_captured_thread_select): Cast to const char *.
341
342 2016-01-14 Yao Qi <yao.qi@linaro.org>
343
344 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
345 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
346 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
347 instead.
348 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
349 <arm_thumb2_breakpoint>: Remove.
350 <has_thumb2_breakpoint>: New field.
351 (arm_get_next_pcs_ctor): Update declaration.
352 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
353 1 to arm_get_next_pcs_ctor.
354 * arm-tdep.c (arm_software_single_step): Pass 0 to
355 arm_get_next_pcs_ctor.
356
357 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
358
359 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
360
361 2016-01-13 Yao Qi <yao.qi@linaro.org>
362
363 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
364 byte_order_for_code to read instruction.
365
366 2016-01-13 Pedro Alves <palves@redhat.com>
367
368 * NEWS: Mention $_gthread.
369 * gdbthread.h (struct thread_info) <global_num>: Mention
370 $_gthread.
371 * thread.c (thread_num_make_value_helper): New function.
372 (thread_id_make_value): Delete.
373 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
374 New.
375 (thread_funcs): Adjust.
376 (gthread_funcs): New.
377 (_initialize_thread): Register $_gthread variable.
378
379 2016-01-13 Pedro Alves <palves@redhat.com>
380
381 * NEWS: Mention "info threads -gid".
382 * gdbthread.h (struct thread_info) <global_num>: Mention "info
383 threads -gid".
384 * thread.c (info_threads_command): Handle "-gid".
385 (_initialize_thread): Adjust "info threads" help string to mention
386 -gid.
387
388 2016-01-13 Pedro Alves <palves@redhat.com>
389
390 * NEWS: Mention InferiorThread.global_num.
391 * python/py-infthread.c (thpy_get_global_num): New function.
392 (thread_object_getset): Register "global_num".
393
394 2016-01-13 Pedro Alves <palves@redhat.com>
395
396 * NEWS: Mention that thread IDs are now per inferior and global
397 thread IDs.
398 * Makefile.in (SFILES): Add tid-parse.c.
399 (COMMON_OBS): Add tid-parse.o.
400 (HFILES_NO_SRCDIR): Add tid-parse.h.
401 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
402 * breakpoint.c (insert_breakpoint_locations)
403 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
404 (print_one_breakpoint_location, set_longjmp_breakpoint)
405 (check_longjmp_breakpoint_for_call_dummy)
406 (set_momentary_breakpoint): Adjust to use global IDs.
407 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
408 (until_break_command, longjmp_bkpt_dtor)
409 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
410 to use global IDs.
411 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
412 ptid_to_global_thread_id.
413 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
414 * gdbthread.h (struct thread_info): Rename field 'num' to
415 'global_num. Add new fields 'per_inf_num' and 'inf'.
416 (thread_id_to_pid): Rename thread_id_to_pid to
417 global_thread_id_to_ptid.
418 (pid_to_thread_id): Rename to ...
419 (ptid_to_global_thread_id): ... this.
420 (valid_thread_id): Rename to ...
421 (valid_global_thread_id): ... this.
422 (find_thread_id): Rename to ...
423 (find_thread_global_id): ... this.
424 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
425 (print_thread_info): Add comment.
426 * tid-parse.h: New file.
427 * tid-parse.c: New file.
428 * infcmd.c (step_command_fsm_prepare)
429 (step_command_fsm_should_stop): Adjust to use the global thread
430 ID.
431 (until_next_command, until_next_command)
432 (finish_command_fsm_should_stop): Adjust to use the global thread
433 ID.
434 (attach_post_wait): Adjust to check the inferior number too.
435 * inferior.h (struct inferior) <highest_thread_num>: New field.
436 * infrun.c (handle_signal_stop)
437 (insert_exception_resume_breakpoint)
438 (insert_exception_resume_from_probe): Adjust to use the global
439 thread ID.
440 * record-btrace.c (record_btrace_open): Use global thread IDs.
441 * remote.c (process_initial_stop_replies): Also consider the
442 inferior number.
443 * target.c (target_pre_inferior): Clear the inferior's highest
444 thread num.
445 * thread.c (clear_thread_inferior_resources): Adjust to use the
446 global thread ID.
447 (new_thread): New inferior parameter. Adjust to use it. Set both
448 the thread's global ID and the thread's per-inferior ID.
449 (add_thread_silent): Adjust.
450 (find_thread_global_id): New.
451 (find_thread_id): Make static. Adjust to rename.
452 (valid_thread_id): Rename to ...
453 (valid_global_thread_id): ... this.
454 (pid_to_thread_id): Rename to ...
455 (ptid_to_global_thread_id): ... this.
456 (thread_id_to_pid): Rename to ...
457 (global_thread_id_to_ptid): ... this. Adjust.
458 (first_thread_of_process): Adjust.
459 (do_captured_list_thread_ids): Adjust to use global thread IDs.
460 (should_print_thread): New function.
461 (print_thread_info): Rename to ...
462 (print_thread_info_1): ... this, and add new show_global_ids
463 parameter. Handle it. Iterate over inferiors.
464 (print_thread_info): Reimplement as wrapper around
465 print_thread_info_1.
466 (show_inferior_qualified_tids): New function.
467 (print_thread_id): Use it.
468 (tp_array_compar): Compare inferior numbers too.
469 (thread_apply_command): Use tid_range_parser.
470 (do_captured_thread_select): Use parse_thread_id.
471 (thread_id_make_value): Adjust.
472 (_initialize_thread): Adjust "info threads" help string.
473 * varobj.c (struct varobj_root): Update comment.
474 (varobj_create): Adjust to use global thread IDs.
475 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
476 * windows-tdep.c (display_tib): No longer accept an argument.
477 * cli/cli-utils.c (get_number_trailer): Make extern.
478 * cli/cli-utils.h (get_number_trailer): Declare.
479 (get_number_const): Adjust documentation.
480 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
481 thread IDs.
482 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
483 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
484 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
485 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
486 Likewise.
487 * python/py-breakpoint.c (bppy_set_thread): Likewise.
488 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
489 * python/py-infthread.c (thpy_get_num): Add comment and return the
490 per-inferior thread ID.
491 (thread_object_getset): Update comment of "num".
492
493 2016-01-13 Pedro Alves <palves@redhat.com>
494
495 * breakpoint.c (remove_threaded_breakpoints)
496 (print_one_breakpoint_location): Use print_thread_id.
497 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
498 (btrace_fetch, btrace_clear): Use print_thread_id.
499 * common/print-utils.c (CELLSIZE): Delete.
500 (get_cell): Rename to ...
501 (get_print_cell): ... this and made extern. Adjust call callers.
502 Adjust to use PRINT_CELL_SIZE.
503 * common/print-utils.h (get_print_cell): Declare.
504 (PRINT_CELL_SIZE): New.
505 * gdbthread.h (print_thread_id): Declare.
506 * infcmd.c (signal_command): Use print_thread_id.
507 * inferior.c (print_inferior): Use print_thread_id.
508 * infrun.c (handle_signal_stop)
509 (insert_exception_resume_breakpoint)
510 (insert_exception_resume_from_probe)
511 (print_signal_received_reason): Use print_thread_id.
512 * record-btrace.c (record_btrace_info)
513 (record_btrace_resume_thread, record_btrace_cancel_resume)
514 (record_btrace_step_thread, record_btrace_wait): Use
515 print_thread_id.
516 * thread.c (thread_apply_all_command): Use print_thread_id.
517 (print_thread_id): New function.
518 (thread_apply_command): Use print_thread_id.
519 (thread_command, thread_find_command, do_captured_thread_select):
520 Use print_thread_id.
521
522 2016-01-13 Pedro Alves <palves@redhat.com>
523
524 * NEWS: Mention InferiorThread.inferior.
525 * python/py-infthread.c (thpy_get_inferior): New.
526 (thread_object_getset): Register "inferior".
527
528 2016-01-13 Pedro Alves <palves@redhat.com>
529
530 * NEWS: Mention $_inferior.
531 * inferior.c (inferior_id_make_value): New.
532 (inferior_funcs): New.
533 (_initialize_inferior): Create $_inferior variable.
534
535 2016-01-13 Pedro Alves <palves@redhat.com>
536
537 PR breakpoints/19388
538 * frame.c (get_current_frame): Use validate_registers_access.
539 * gdbthread.h (validate_registers_access): Declare.
540 * infrun.c (validate_siginfo_access): Delete.
541 (siginfo_value_read, siginfo_value_write): Use
542 validate_registers_access.
543 * thread.c (validate_registers_access): New function.
544
545 2016-01-12 Josh Stone <jistone@redhat.com>
546 Philippe Waroquiers <philippe.waroquiers@skynet.be>
547
548 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
549 syscall_entry and syscall_return stop reasons. Mention GDB
550 support for remote catch syscall.
551 * remote.c (PACKET_QCatchSyscalls): New enum.
552 (remote_set_syscall_catchpoint): New function.
553 (remote_protocol_features): New element for QCatchSyscalls.
554 (remote_parse_stop_reply): Parse syscall_entry/return stops.
555 (init_remote_ops): Install remote_set_syscall_catchpoint.
556 (_initialize_remote): Config QCatchSyscalls.
557 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
558
559 2016-01-12 Yao Qi <yao.qi@linaro.org>
560
561 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
562 to gdb_byte * and pass to linux_fork_to_function.
563
564 2016-01-12 Yao Qi <yao.qi@linaro.org>
565
566 * nat/linux-ptrace.c (linux_fork_to_function): Change type
567 of argument 'function'.
568 (linux_grandchild_function): Change return type to 'int'.
569 Change child_stack's type to 'void *'.
570 (linux_child_function): Likewise.
571
572 2016-01-12 Pedro Alves <palves@redhat.com>
573
574 Remove use of the registered trademark symbol throughout.
575
576 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
577
578 * reply_mig_hack.awk: Rewrite one regular expression.
579
580 2016-01-11 Mike Frysinger <vapier@gentoo.org>
581
582 * acinclude.m4: Include new warning.m4 file.
583 * configure: Regenerated.
584 * configure.ac: Move all warning logic ...
585 * warning.m4: ... here.
586
587 2016-01-08 Yao Qi <yao.qi@linaro.org>
588
589 * extension.c: Include target.h.
590 (set_active_ext_lang): Only call install_gdb_sigint_handler,
591 check_quit_flag, and set_quit_flag if target_terminal_is_ours
592 returns false.
593 (restore_active_ext_lang): Likewise.
594 * target.c (target_terminal_is_ours): New function.
595 * target.h (target_terminal_is_ours): Declare.
596
597 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
598
599 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
600 to `err' in the little-endian leg.
601
602 2016-01-06 Yao Qi <yao.qi@linaro.org>
603
604 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
605 lines below.
606 (thumb_get_next_pcs_raw): Make it static.
607 (arm_get_next_pcs_raw): Likewise.
608 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
609 declaration.
610 (arm_get_next_pcs_raw): Likewise.
611
612 2016-01-05 Mike Frysinger <vapier@gentoo.org>
613
614 * version.in: Change cvs to git.
615
616 2016-01-05 Mike Frysinger <vapier@gentoo.org>
617
618 * configure.tgt (score-*-*): Delete gdb_sim assignment.
619
620 2016-01-05 Pedro Alves <palves@redhat.com>
621
622 PR sim/13418
623 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
624 the target is powerpc*.
625 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
626 of WITH_SIM.
627 * configure: Regenerate.
628 * config.in: Regenerate.
629
630 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
631
632 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
633
634 2016-01-02 Mike Frysinger <vapier@gentoo.org>
635
636 * configure.tgt (powerpc*-*-*): Delete test call and
637 always assign gdb_sim.
638
639 2016-01-01 Joel Brobecker <brobecker@adacore.com>
640
641 Update year range in copyright notice of all files.
642
643 2016-01-01 Joel Brobecker <brobecker@adacore.com>
644
645 * top.c (print_gdb_version): Change copyright year in version
646 message.
647
648 2016-01-01 Joel Brobecker <brobecker@adacore.com>
649
650 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
651
652 For older changes see ChangeLog-2015.
653 \f
654 Local Variables:
655 mode: change-log
656 left-margin: 8
657 fill-column: 74
658 version-control: never
659 coding: utf-8
660 End: