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