Implement "info threads -gid"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c84f6bbf
PA
12016-01-13 Pedro Alves <palves@redhat.com>
2
3 * NEWS: Mention "info threads -gid".
4 * gdbthread.h (struct thread_info) <global_num>: Mention "info
5 threads -gid".
6 * thread.c (info_threads_command): Handle "-gid".
7 (_initialize_thread): Adjust "info threads" help string to mention
8 -gid.
9
22a02324
PA
102016-01-13 Pedro Alves <palves@redhat.com>
11
12 * NEWS: Mention InferiorThread.global_num.
13 * python/py-infthread.c (thpy_get_global_num): New function.
14 (thread_object_getset): Register "global_num".
15
5d5658a1
PA
162016-01-13 Pedro Alves <palves@redhat.com>
17
18 * NEWS: Mention that thread IDs are now per inferior and global
19 thread IDs.
20 * Makefile.in (SFILES): Add tid-parse.c.
21 (COMMON_OBS): Add tid-parse.o.
22 (HFILES_NO_SRCDIR): Add tid-parse.h.
23 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
24 * breakpoint.c (insert_breakpoint_locations)
25 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
26 (print_one_breakpoint_location, set_longjmp_breakpoint)
27 (check_longjmp_breakpoint_for_call_dummy)
28 (set_momentary_breakpoint): Adjust to use global IDs.
29 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
30 (until_break_command, longjmp_bkpt_dtor)
31 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
32 to use global IDs.
33 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
34 ptid_to_global_thread_id.
35 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
36 * gdbthread.h (struct thread_info): Rename field 'num' to
37 'global_num. Add new fields 'per_inf_num' and 'inf'.
38 (thread_id_to_pid): Rename thread_id_to_pid to
39 global_thread_id_to_ptid.
40 (pid_to_thread_id): Rename to ...
41 (ptid_to_global_thread_id): ... this.
42 (valid_thread_id): Rename to ...
43 (valid_global_thread_id): ... this.
44 (find_thread_id): Rename to ...
45 (find_thread_global_id): ... this.
46 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
47 (print_thread_info): Add comment.
48 * tid-parse.h: New file.
49 * tid-parse.c: New file.
50 * infcmd.c (step_command_fsm_prepare)
51 (step_command_fsm_should_stop): Adjust to use the global thread
52 ID.
53 (until_next_command, until_next_command)
54 (finish_command_fsm_should_stop): Adjust to use the global thread
55 ID.
56 (attach_post_wait): Adjust to check the inferior number too.
57 * inferior.h (struct inferior) <highest_thread_num>: New field.
58 * infrun.c (handle_signal_stop)
59 (insert_exception_resume_breakpoint)
60 (insert_exception_resume_from_probe): Adjust to use the global
61 thread ID.
62 * record-btrace.c (record_btrace_open): Use global thread IDs.
63 * remote.c (process_initial_stop_replies): Also consider the
64 inferior number.
65 * target.c (target_pre_inferior): Clear the inferior's highest
66 thread num.
67 * thread.c (clear_thread_inferior_resources): Adjust to use the
68 global thread ID.
69 (new_thread): New inferior parameter. Adjust to use it. Set both
70 the thread's global ID and the thread's per-inferior ID.
71 (add_thread_silent): Adjust.
72 (find_thread_global_id): New.
73 (find_thread_id): Make static. Adjust to rename.
74 (valid_thread_id): Rename to ...
75 (valid_global_thread_id): ... this.
76 (pid_to_thread_id): Rename to ...
77 (ptid_to_global_thread_id): ... this.
78 (thread_id_to_pid): Rename to ...
79 (global_thread_id_to_ptid): ... this. Adjust.
80 (first_thread_of_process): Adjust.
81 (do_captured_list_thread_ids): Adjust to use global thread IDs.
82 (should_print_thread): New function.
83 (print_thread_info): Rename to ...
84 (print_thread_info_1): ... this, and add new show_global_ids
85 parameter. Handle it. Iterate over inferiors.
86 (print_thread_info): Reimplement as wrapper around
87 print_thread_info_1.
88 (show_inferior_qualified_tids): New function.
89 (print_thread_id): Use it.
90 (tp_array_compar): Compare inferior numbers too.
91 (thread_apply_command): Use tid_range_parser.
92 (do_captured_thread_select): Use parse_thread_id.
93 (thread_id_make_value): Adjust.
94 (_initialize_thread): Adjust "info threads" help string.
95 * varobj.c (struct varobj_root): Update comment.
96 (varobj_create): Adjust to use global thread IDs.
97 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
98 * windows-tdep.c (display_tib): No longer accept an argument.
99 * cli/cli-utils.c (get_number_trailer): Make extern.
100 * cli/cli-utils.h (get_number_trailer): Declare.
101 (get_number_const): Adjust documentation.
102 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
103 thread IDs.
104 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
105 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
106 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
107 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
108 Likewise.
109 * python/py-breakpoint.c (bppy_set_thread): Likewise.
110 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
111 * python/py-infthread.c (thpy_get_num): Add comment and return the
112 per-inferior thread ID.
113 (thread_object_getset): Update comment of "num".
114
43792cf0
PA
1152016-01-13 Pedro Alves <palves@redhat.com>
116
117 * breakpoint.c (remove_threaded_breakpoints)
118 (print_one_breakpoint_location): Use print_thread_id.
119 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
120 (btrace_fetch, btrace_clear): Use print_thread_id.
121 * common/print-utils.c (CELLSIZE): Delete.
122 (get_cell): Rename to ...
123 (get_print_cell): ... this and made extern. Adjust call callers.
124 Adjust to use PRINT_CELL_SIZE.
125 * common/print-utils.h (get_print_cell): Declare.
126 (PRINT_CELL_SIZE): New.
127 * gdbthread.h (print_thread_id): Declare.
128 * infcmd.c (signal_command): Use print_thread_id.
129 * inferior.c (print_inferior): Use print_thread_id.
130 * infrun.c (handle_signal_stop)
131 (insert_exception_resume_breakpoint)
132 (insert_exception_resume_from_probe)
133 (print_signal_received_reason): Use print_thread_id.
134 * record-btrace.c (record_btrace_info)
135 (record_btrace_resume_thread, record_btrace_cancel_resume)
136 (record_btrace_step_thread, record_btrace_wait): Use
137 print_thread_id.
138 * thread.c (thread_apply_all_command): Use print_thread_id.
139 (print_thread_id): New function.
140 (thread_apply_command): Use print_thread_id.
141 (thread_command, thread_find_command, do_captured_thread_select):
142 Use print_thread_id.
143
84654457
PA
1442016-01-13 Pedro Alves <palves@redhat.com>
145
146 * NEWS: Mention InferiorThread.inferior.
147 * python/py-infthread.c (thpy_get_inferior): New.
148 (thread_object_getset): Register "inferior".
149
e3940304
PA
1502016-01-13 Pedro Alves <palves@redhat.com>
151
152 * NEWS: Mention $_inferior.
153 * inferior.c (inferior_id_make_value): New.
154 (inferior_funcs): New.
155 (_initialize_inferior): Create $_inferior variable.
156
a911d87a
PA
1572016-01-13 Pedro Alves <palves@redhat.com>
158
159 PR breakpoints/19388
160 * frame.c (get_current_frame): Use validate_registers_access.
161 * gdbthread.h (validate_registers_access): Declare.
162 * infrun.c (validate_siginfo_access): Delete.
163 (siginfo_value_read, siginfo_value_write): Use
164 validate_registers_access.
165 * thread.c (validate_registers_access): New function.
166
82075af2
JS
1672016-01-12 Josh Stone <jistone@redhat.com>
168 Philippe Waroquiers <philippe.waroquiers@skynet.be>
169
170 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
171 syscall_entry and syscall_return stop reasons. Mention GDB
172 support for remote catch syscall.
173 * remote.c (PACKET_QCatchSyscalls): New enum.
174 (remote_set_syscall_catchpoint): New function.
175 (remote_protocol_features): New element for QCatchSyscalls.
176 (remote_parse_stop_reply): Parse syscall_entry/return stops.
177 (init_remote_ops): Install remote_set_syscall_catchpoint.
178 (_initialize_remote): Config QCatchSyscalls.
179 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
180
d18547d8
YQ
1812016-01-12 Yao Qi <yao.qi@linaro.org>
182
183 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
184 to gdb_byte * and pass to linux_fork_to_function.
185
ba4dd7c4
YQ
1862016-01-12 Yao Qi <yao.qi@linaro.org>
187
188 * nat/linux-ptrace.c (linux_fork_to_function): Change type
189 of argument 'function'.
190 (linux_grandchild_function): Change return type to 'int'.
191 Change child_stack's type to 'void *'.
192 (linux_child_function): Likewise.
193
bc504a31
PA
1942016-01-12 Pedro Alves <palves@redhat.com>
195
196 Remove use of the registered trademark symbol throughout.
197
5eddd578
TS
1982016-01-12 Thomas Schwinge <thomas@codesourcery.com>
199
200 * reply_mig_hack.awk: Rewrite one regular expression.
201
b835bb52
MF
2022016-01-11 Mike Frysinger <vapier@gentoo.org>
203
204 * acinclude.m4: Include new warning.m4 file.
205 * configure: Regenerated.
206 * configure.ac: Move all warning logic ...
207 * warning.m4: ... here.
208
2f99e8fc
YQ
2092016-01-08 Yao Qi <yao.qi@linaro.org>
210
211 * extension.c: Include target.h.
212 (set_active_ext_lang): Only call install_gdb_sigint_handler,
213 check_quit_flag, and set_quit_flag if target_terminal_is_ours
214 returns false.
215 (restore_active_ext_lang): Likewise.
216 * target.c (target_terminal_is_ours): New function.
217 * target.h (target_terminal_is_ours): Declare.
218
5dd05630
MR
2192016-01-07 Maciej W. Rozycki <macro@imgtec.com>
220
221 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
222 to `err' in the little-endian leg.
223
f5aa3069
YQ
2242016-01-06 Yao Qi <yao.qi@linaro.org>
225
226 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
227 lines below.
228 (thumb_get_next_pcs_raw): Make it static.
229 (arm_get_next_pcs_raw): Likewise.
230 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
231 declaration.
232 (arm_get_next_pcs_raw): Likewise.
233
bf69ad5a
MF
2342016-01-05 Mike Frysinger <vapier@gentoo.org>
235
236 * version.in: Change cvs to git.
237
66750332
MF
2382016-01-05 Mike Frysinger <vapier@gentoo.org>
239
240 * configure.tgt (score-*-*): Delete gdb_sim assignment.
241
976102cd
PA
2422016-01-05 Pedro Alves <palves@redhat.com>
243
244 PR sim/13418
245 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
246 the target is powerpc*.
fa89c126
PA
247 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
248 of WITH_SIM.
976102cd
PA
249 * configure: Regenerate.
250 * config.in: Regenerate.
251
43368e1d
MM
2522016-01-04 Markus Metzger <markus.t.metzger@intel.com>
253
254 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
255
32273fe6
MF
2562016-01-02 Mike Frysinger <vapier@gentoo.org>
257
258 * configure.tgt (powerpc*-*-*): Delete test call and
259 always assign gdb_sim.
260
618f726f
JB
2612016-01-01 Joel Brobecker <brobecker@adacore.com>
262
263 Update year range in copyright notice of all files.
264
edd88788
JB
2652016-01-01 Joel Brobecker <brobecker@adacore.com>
266
267 * top.c (print_gdb_version): Change copyright year in version
268 message.
269
0f7b3ef4 2702016-01-01 Joel Brobecker <brobecker@adacore.com>
aec47d1d 271
0f7b3ef4 272 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
aec47d1d 273
0f7b3ef4 274For older changes see ChangeLog-2015.
c906108c
SS
275\f
276Local Variables:
277mode: change-log
278left-margin: 8
279fill-column: 74
280version-control: never
57da7796 281coding: utf-8
c906108c 282End:
This page took 2.026896 seconds and 4 git commands to generate.