]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Use lwp, not tid, for Windows thread id
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
62fe396b
TT
12020-04-08 Tom Tromey <tromey@adacore.com>
2
3 * win32-i386-low.c (update_debug_registers)
4 (i386_prepare_to_resume, i386_thread_added): Update.
5
e9534bd2
TT
62020-04-08 Tom Tromey <tromey@adacore.com>
7
8 * win32-low.c (child_add_thread): Use new.
9 (delete_thread_info): Use delete.
10
ae1f8880
TT
112020-04-08 Tom Tromey <tromey@adacore.com>
12
13 * win32-low.h (struct windows_thread_info): Remove.
14
e56f8ccb
TT
152020-04-08 Tom Tromey <tromey@adacore.com>
16
17 * win32-low.h (struct windows_thread_info): Rename from
18 win32_thread_info. Remove typedef.
19 (struct win32_target_ops, win32_require_context): Update.
20 * win32-low.c (win32_get_thread_context)
21 (win32_set_thread_context, win32_prepare_to_resume)
22 (win32_require_context, thread_rec, child_add_thread)
23 (delete_thread_info, continue_one_thread)
24 (child_fetch_inferior_registers, child_store_inferior_registers)
25 (win32_resume, suspend_one_thread, win32_get_tib_address):
26 Update.
27 * win32-i386-low.c (update_debug_registers)
28 (win32_get_current_dr, i386_get_thread_context)
29 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
30 (i386_fetch_inferior_register, i386_store_inferior_register):
31 Update.
32 * win32-arm-low.c (arm_get_thread_context)
33 (arm_fetch_inferior_register, arm_store_inferior_register):
34 Update.
35
0dd7b52e
TBA
362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
37
38 * linux-low.h (struct linux_target_ops): Remove.
39 (the_low_target): Remove.
40 * linux-x86-low.cc (the_low_target): Remove.
41 * linux-aarch64-low.cc (the_low_target): Ditto.
42 * linux-arm-low.cc (the_low_target): Ditto.
43 * linux-bfin-low.cc (the_low_target): Ditto.
44 * linux-cris-low.cc (the_low_target): Ditto.
45 * linux-crisv32-low.cc (the_low_target): Ditto.
46 * linux-ia64-low.cc (the_low_target): Ditto.
47 * linux-m32r-low.cc (the_low_target): Ditto.
48 * linux-m68k-low.cc (the_low_target): Ditto.
49 * linux-mips-low.cc (the_low_target): Ditto.
50 * linux-nios2-low.cc (the_low_target): Ditto.
51 * linux-ppc-low.cc (the_low_target): Ditto.
52 * linux-riscv-low.cc (the_low_target): Ditto.
53 * linux-s390-low.cc (the_low_target): Ditto.
54 * linux-sh-low.cc (the_low_target): Ditto.
55 * linux-sparc-low.cc (the_low_target): Ditto.
56 * linux-tic6x-low.cc (the_low_target): Ditto.
57 * linux-tile-low.cc (the_low_target): Ditto.
58 * linux-xtensa-low.cc (the_low_target): Ditto.
59
fc5ecdb6
TBA
602020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
61
62 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
63 linux target define the op by overriding the declaration in
64 process_stratum_target.
65
66 * linux-low.h (struct linux_target_ops): Remove the op.
67 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
68 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
69 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
70 (x86_get_ipa_tdesc_idx): Turn into...
71 (x86_target::get_ipa_tdesc_idx): ...this.
72 (the_low_target): Remove the op field.
73 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
74 (ppc_get_ipa_tdesc_idx): Turn into...
75 (ppc_target::get_ipa_tdesc_idx): ...this.
76 (the_low_target): Remove the op field.
77 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
78 (s390_get_ipa_tdesc_idx): Turn into...
79 (s390_target::get_ipa_tdesc_idx): ...this.
80 (the_low_target): Remove the op field.
81
9eedd27d
TBA
822020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
83
84 Turn the 'get_syscall_trapinfo' linux target op into a method
85 of process_stratum_target.
86
87 * linux-low.h (struct linux_target_ops): Remove the op.
88 (class linux_process_target) <get_syscall_trapinfo>
89 <gdb_catch_this_syscall>
90 <low_supports_catch_syscall>
91 <low_get_syscall_trapinfo>: Declare.
92 * linux-low.cc (get_syscall_trapinfo): Turn into...
93 (linux_process_target::get_syscall_trapinfo): ...this.
94 (linux_process_target::low_get_syscall_trapinfo): Define.
95 (gdb_catch_this_syscall_p): Turn into...
96 (linux_process_target::gdb_catch_this_syscall): ...this.
97 (linux_process_target::low_supports_catch_syscall): Define.
98
99 Update the callers below.
100
101 (linux_process_target::wait_1)
102 (linux_process_target::supports_catch_syscall)
103
104 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
105 <low_get_syscall_trapinfo>: Declare.
106 (x86_target::low_supports_catch_syscall): Define.
107 (x86_get_syscall_trapinfo): Turn into...
108 (x86_target::low_get_syscall_trapinfo): ...this.
109 (the_low_target): Remove the op field.
110 * linux-aarch64-low.cc (class aarch64_target)
111 <low_supports_catch_syscall>
112 <low_get_syscall_trapinfo>: Declare.
113 (aarch64_target::low_supports_catch_syscall): Define.
114 (aarch64_get_syscall_trapinfo): Turn into...
115 (aarch64_target::low_get_syscall_trapinfo): ...this.
116 (the_low_target): Remove the op field.
117 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
118 <low_get_syscall_trapinfo>: Declare.
119 (arm_target::low_supports_catch_syscall): Define.
120 (arm_get_syscall_trapinfo): Turn into...
121 (arm_target::low_get_syscall_trapinfo): ...this.
122 (the_low_target): Remove the op field.
123 * linux-ppc-low.cc (the_low_target): Remove the op field.
124 * linux-s390-low.cc (the_low_target): Remove the op field.
125
b31cdfa6
TBA
1262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
127
128 Remove the 'supports_hardware_single_step' linux target op and
129 override the process_stratum_target's op definition in
130 linux_process_target to return true.
131
132 * linux-low.h (struct linux_target_ops): Remove the op.
133 (class linux_process_target) <finish_step_over>
134 <maybe_hw_step>: Declare.
135 * linux-low.cc (can_hardware_single_step): Remove.
136 (maybe_hw_step): Turn into...
137 (linux_process_target::maybe_hw_step): ...this.
138 (finish_step_over): Turn into...
139 (linux_process_target::finish_step_over): ...this.
140 (linux_process_target::supports_hardware_single_step): Update
141 to return true.
142
143 Update the callers below.
144
145 (linux_process_target::single_step)
146 (linux_process_target::resume_one_lwp_throw)
147
148 * linux-arm-low.cc (class arm_target)
149 <supports_hardware_single_step>: Declare.
150 (arm_supports_hardware_single_step): Turn into...
151 (arm_target::supports_hardware_single_step): ...this.
152 (the_low_target): Remove the op field.
153 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
154 (the_low_target): Remove the op field.
155 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
156 Remove.
157 (the_low_target): Remove the op field.
158 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
159 (the_low_target): Remove the op field.
160 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
161 (the_low_target): Remove the op field.
162 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
163 (the_low_target): Remove the op field.
164 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
165 (the_low_target): Remove the op field.
166 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
167 (the_low_target): Remove the op field.
168 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
169 (the_low_target): Remove the op field.
170 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
171 (the_low_target): Remove the op field.
172 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
173 (the_low_target): Remove the op field.
174 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
175 (the_low_target): Remove the op field.
176 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
177 Remove.
178 (the_low_target): Remove the op field.
179
9cfd8715
TBA
1802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
181
182 Turn the 'supports_range_stepping' linux target op into a method
183 of linux_process_target.
184
185 * linux-low.h (struct linux_target_ops): Remove the op.
186 (class linux_process_target) <low_supports_range_stepping>: Declare.
187 * linux-low.cc (linux_process_target::low_supports_range_stepping):
188 Define.
189 (linux_process_target::supports_range_stepping): Update the call
190 site.
191 * linux-x86-low.cc (class x86_target)
192 <low_supports_range_stepping>: Declare.
193 (x86_supports_range_stepping): Turn into...
194 (x86_target::low_supports_range_stepping): ...this.
195 (the_low_target): Remove the op field.
196 * linux-aarch64-low.cc (class aarch64_target)
197 <low_supports_range_stepping>: Declare.
198 (aarch64_supports_range_stepping): Turn into...
199 (aarch64_target::low_supports_range_stepping): ...this.
200 (the_low_target): Remove the op field.
201 * linux-arm-low.cc (the_low_target): Remove the op field.
202 * linux-bfin-low.cc (the_low_target): Ditto.
203 * linux-crisv32-low.cc (the_low_target): Ditto.
204 * linux-m32r-low.cc (the_low_target): Ditto.
205 * linux-m68k-low.cc (the_low_target): Ditto.
206 * linux-ppc-low.cc (the_low_target): Ditto.
207 * linux-s390-low.cc (the_low_target): Ditto.
208 * linux-sh-low.cc (the_low_target): Ditto.
209 * linux-tic6x-low.cc (the_low_target): Ditto.
210 * linux-tile-low.cc (the_low_target): Ditto.
211 * linux-xtensa-low.cc (the_low_target): Ditto.
212
ab64c999
TBA
2132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
214
215 Remove the 'emit_ops' linux target ops and let the concrete
216 linux target define the op by overriding the declaration of
217 process_stratum_target.
218
219 * linux-low.h (struct linux_target_ops): Remove the op.
220 (class linux_process_target) <emit_ops>: Remove.
221 * linux-low.cc (linux_process_target::emit_ops): Remove.
222 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
223 (x86_emit_ops): Turn into...
224 (x86_target::emit_ops): ...this.
225 (the_low_target): Remove the op field.
226 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
227 (aarch64_emit_ops): Turn into...
228 (aarch64_target::emit_ops): ...this.
229 (the_low_target): Remove the op field.
230 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
231 (ppc_emit_ops): Turn into...
232 (ppc_target::emit_ops): ...this.
233 (the_low_target): Remove the op field.
234 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
235 (s390_emit_ops): Turn into...
236 (s390_target::emit_ops): ...this.
237 (the_low_target): Remove the op field.
238 * linux-arm-low.cc (the_low_target): Remove the op field.
239 * linux-bfin-low.cc (the_low_target): Ditto.
240 * linux-crisv32-low.cc (the_low_target): Ditto.
241 * linux-m32r-low.cc (the_low_target): Ditto.
242 * linux-m68k-low.cc (the_low_target): Ditto.
243 * linux-sh-low.cc (the_low_target): Ditto.
244 * linux-tic6x-low.cc (the_low_target): Ditto.
245 * linux-tile-low.cc (the_low_target): Ditto.
246 * linux-xtensa-low.cc (the_low_target): Ditto.
247
809a0c35
TBA
2482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
249
250 Remove the 'install_fast_tracepoint_jump_pad' and
251 'get_min_fast_tracepoint_insn_len' linux target ops to let the
252 concrete linux target define the ops by overriding the declarations
253 of process_stratum_target.
254
255 * linux-low.h (struct linux_target_ops): Remove the ops.
256 (class linux_process_target) <supports_fast_tracepoints>
257 <install_fast_tracepoint_jump_pad>
258 <get_min_fast_tracepoint_insn_len>: Remove.
259 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
260 (linux_process_target::install_fast_tracepoint_jump_pad)
261 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
262 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
263 <install_fast_tracepoint_jump_pad>
264 <get_min_fast_tracepoint_insn_len>: Declare.
265 (x86_target::supports_fast_tracepoints): Define.
266 (x86_install_fast_tracepoint_jump_pad): Turn into...
267 (x86_target::install_fast_tracepoint_jump_pad): ...this.
268 (x86_get_min_fast_tracepoint_insn_len): Turn into...
269 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
270 (the_low_target): Remove the op fields.
271 * linux-aarch64-low.cc (class aarch64_target)
272 <supports_fast_tracepoints>
273 <install_fast_tracepoint_jump_pad>
274 <get_min_fast_tracepoint_insn_len>: Declare.
275 (aarch64_target::supports_fast_tracepoints): Define.
276 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
277 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
278 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
279 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
280 (the_low_target): Remove the op fields.
281 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
282 <install_fast_tracepoint_jump_pad>
283 <get_min_fast_tracepoint_insn_len>: Declare.
284 (ppc_target::supports_fast_tracepoints): Define.
285 (ppc_install_fast_tracepoint_jump_pad): Turn into...
286 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
287 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
288 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
289 (the_low_target): Remove the op fields.
290 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
291 <install_fast_tracepoint_jump_pad>
292 <get_min_fast_tracepoint_insn_len>: Declare.
293 (s390_target::supports_fast_tracepoints): Define.
294 (s390_install_fast_tracepoint_jump_pad): Turn into...
295 (s390_target::install_fast_tracepoint_jump_pad): ...this.
296 (s390_get_min_fast_tracepoint_insn_len): Turn into...
297 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
298 (the_low_target): Remove the op fields.
299 * linux-arm-low.cc (the_low_target): Remove the op fields.
300 * linux-bfin-low.cc (the_low_target): Ditto.
301 * linux-crisv32-low.cc (the_low_target): Ditto.
302 * linux-m32r-low.cc (the_low_target): Ditto.
303 * linux-m68k-low.cc (the_low_target): Ditto.
304 * linux-sh-low.cc (the_low_target): Ditto.
305 * linux-tic6x-low.cc (the_low_target): Ditto.
306 * linux-tile-low.cc (the_low_target): Ditto.
307 * linux-xtensa-low.cc (the_low_target): Ditto.
308
13e567af
TBA
3092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
310
311 Turn the 'get_thread_area' linux target op into a method of
312 process_stratum_target.
313
314 * linux-low.h (struct linux_target_ops): Remove the op.
315 (class linux_process_target) <stuck_in_jump_pad>
316 <linux_fast_tracepoint_collecting>
317 <low_get_thread_area>: Declare.
318 * linux-low.cc (supports_fast_tracepoints): Remove.
319 (linux_fast_tracepoint_collecting): Turn into...
320 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
321 (linux_process_target::low_get_thread_area): Define.
322 (stuck_in_jump_pad_callback): Turn into...
323 (linux_process_target::stuck_in_jump_pad): ...this.
324
325 Update the caller below.
326
327 (linux_process_target::stabilize_threads)
328
329 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
330 Declare.
331 (x86_get_thread_area): Turn into...
332 (x86_target::low_get_thread_area): ...this.
333 (the_low_target): Remove the op field.
334 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
335 Declare.
336 (aarch64_get_thread_area): Turn into...
337 (aarch64_target::low_get_thread_area): ...this.
338 (the_low_target): Remove the op field.
339 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
340 Declare.
341 (ppc_get_thread_area): Turn into...
342 (ppc_target::low_get_thread_area): ...this.
343 (the_low_target): Remove the op field.
344 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
345 Declare.
346 (s390_get_thread_area): Turn into...
347 (s390_target::low_get_thread_area): ...this.
348 (the_low_target): Remove the op field.
349 * linux-arm-low.cc (the_low_target): Remove the op field.
350 * linux-bfin-low.cc (the_low_target): Ditto.
351 * linux-crisv32-low.cc (the_low_target): Ditto.
352 * linux-m32r-low.cc (the_low_target): Ditto.
353 * linux-m68k-low.cc (the_low_target): Ditto.
354 * linux-sh-low.cc (the_low_target): Ditto.
355 * linux-tic6x-low.cc (the_low_target): Ditto.
356 * linux-tile-low.cc (the_low_target): Ditto.
357 * linux-xtensa-low.cc (the_low_target): Ditto.
358
47f70aa7
TBA
3592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
360
361 Remote the 'supports_tracepoints' linux target op and let the
362 concrete linux target define it by overriding the op declared in
363 process_stratum_target.
364
365 * linux-low.h (struct linux_target_ops): Remove the op.
366 (class linux_process_target) <supports_tracepoints>: Remove.
367 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
368 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
369 Declare.
370 (x86_supports_tracepoints): Turn into...
371 (x86_target::supports_tracepoints): ...this.
372 (the_low_target): Remove the op field.
373 * linux-aarch64-low.cc (class aarch64_target)
374 <supports_tracepoints>: Declare.
375 (aarch64_supports_tracepoints): Turn into...
376 (aarch64_target::supports_tracepoints): ...this.
377 (the_low_target): Remove the op field.
378 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
379 Declare.
380 (ppc_supports_tracepoints): Turn into...
381 (ppc_target::supports_tracepoints): ...this.
382 (the_low_target): Remove the op field.
383 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
384 Declare.
385 (s390_supports_tracepoints): Turn into...
386 (s390_target::supports_tracepoints): ...this.
387 (the_low_target): Remove the op field.
388 * linux-arm-low.cc (the_low_target): Remove the op field.
389 * linux-bfin-low.cc (the_low_target): Ditto.
390 * linux-crisv32-low.cc (the_low_target): Ditto.
391 * linux-m32r-low.cc (the_low_target): Ditto.
392 * linux-m68k-low.cc (the_low_target): Ditto.
393 * linux-sh-low.cc (the_low_target): Ditto.
394 * linux-tic6x-low.cc (the_low_target): Ditto.
395 * linux-tile-low.cc (the_low_target): Ditto.
396 * linux-xtensa-low.cc (the_low_target): Ditto.
397
a5b5da92
TBA
3982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
399
400 Remove the 'process_qsupported' linux target op and let a concrete
401 linux target define the op by overriding the op declaration in
402 process_stratum_target.
403
404 * linux-low.h (struct linux_target_ops): Remove the op.
405 (class linux_process_target) <process_qsupported>: Remove.
406 * linux-low.cc (linux_process_target::process_qsupported): Remove.
407 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
408 (x86_linux_process_qsupported): Turn into...
409 (x86_target::process_qsupported): ...this.
410 (the_low_target): Remove the op field.
411 * linux-aarch64-low.cc (the_low_target): Remove the op
412 field.
413 * linux-arm-low.cc (the_low_target): Ditto.
414 * linux-bfin-low.cc (the_low_target): Ditto.
415 * linux-crisv32-low.cc (the_low_target): Ditto.
416 * linux-m32r-low.cc (the_low_target): Ditto.
417 * linux-m68k-low.cc (the_low_target): Ditto.
418 * linux-ppc-low.cc (the_low_target): Ditto.
419 * linux-s390-low.cc (the_low_target): Ditto.
420 * linux-sh-low.cc (the_low_target): Ditto.
421 * linux-tic6x-low.cc (the_low_target): Ditto.
422 * linux-tile-low.cc (the_low_target): Ditto.
423 * linux-xtensa-low.cc (the_low_target): Ditto.
424
d7599cc0
TBA
4252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
426
427 Turn the 'prepare_to_resume' linux target op into a method of
428 linux_process_target.
429
430 * linux-low.h (struct linux_target_ops): Remove the op.
431 (class linux_process_target) <low_prepare_to_resume>: Declare.
432 * linux-low.cc (linux_process_target::low_prepare_to_resume):
433 Define.
434
435 Update the callers below:
436
437 (linux_process_target::resume_one_lwp_throw)
438 (linux_process_target::low_prepare_to_resume)
439
440 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
441 Declare.
442 (x86_target::low_prepare_to_resume): Define.
443 (the_low_target): Remove the op field.
444 * linux-aarch64-low.cc (class aarch64_target)
445 <low_prepare_to_resume>: Declare.
446 (aarch64_target::low_prepare_to_resume): Define.
447 (the_low_target): Remove the op field.
448 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
449 Declare.
450 (arm_prepare_to_resume): Turn into...
451 (arm_target::low_prepare_to_resume): ...this.
452 (the_low_target): Remove the op field.
453 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
454 Declare.
455 (mips_linux_prepare_to_resume): Turn into...
456 (mips_target::low_prepare_to_resume): ...this.
457 (the_low_target): Remove the op field.
458 * linux-bfin-low.cc (the_low_target): Remove the op field.
459 * linux-crisv32-low.cc (the_low_target): Ditto.
460 * linux-m32r-low.cc (the_low_target): Ditto.
461 * linux-m68k-low.cc (the_low_target): Ditto.
462 * linux-ppc-low.cc (the_low_target): Ditto.
463 * linux-s390-low.cc (the_low_target): Ditto.
464 * linux-sh-low.cc (the_low_target): Ditto.
465 * linux-tic6x-low.cc (the_low_target): Ditto.
466 * linux-tile-low.cc (the_low_target): Ditto.
467 * linux-xtensa-low.cc (the_low_target): Ditto.
468
fd000fb3
TBA
4692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
470
471 Turn the 'new_process', 'delete_process', 'new_thread',
472 'delete_thread', and 'new_fork' linux target ops into methods
473 of linux_process_target.
474
475 * linux-low.h (struct linux_target_ops): Remove the ops.
476 (class linux_process_target) <add_linux_process>
477 <add_lwp>
478 <delete_lwp>
479 <attach_lwp>
480 <detach_one_lwp>
481 <check_zombie_leaders>
482 <filter_exit_event>
483 <low_new_process>
484 <low_delete_process>
485 <low_new_thread>
486 <low_delete_thread>
487 <low_new_fork>: Declare.
488 * linux-low.cc (delete_lwp): Turn into...
489 (linux_process_target::delete_lwp): ...this.
490 (linux_process_target::low_delete_thread): Define.
491 (linux_add_process): Turn into...
492 (linux_process_target::add_linux_process): ...this.
493 (linux_process_target::low_new_process): Define.
494 (linux_process_target::low_delete_process): Define.
495 (linux_process_target::low_new_fork): Define.
496 (add_lwp): Turn into...
497 (linux_process_target::add_lwp): ...this.
498 (linux_process_target::low_new_thread): Define.
499 (linux_attach_lwp): Turn into...
500 (linux_process_target::attach_lwp): ...this.
501 (linux_detach_one_lwp): Turn into...
502 (linux_process_target::detach_one_lwp): ...this.
503 (linux_detach_lwp_callback): Remove and inline...
504 (linux_process_target::detach): ...here.
505 (check_zombie_leaders): Turn into...
506 (linux_process_target::check_zombie_leaders): ...this.
507 (filter_exit_event): Turn into...
508 (linux_process_target::filter_exit_event): ...this.
509
510 Update the callers below.
511
512 (linux_process_target::handle_extended_wait)
513 (linux_process_target::create_inferior)
514 (attach_proc_task_lwp_callback)
515 (linux_process_target::attach)
516 (linux_process_target::detach)
517 (linux_process_target::mourn)
518 * thread-db.cc (attach_thread)
519
520 * linux-x86-low.cc (class x86_target) <low_new_process>
521 <low_delete_process>
522 <low_new_thread>
523 <low_delete_thread>
524 <low_new_fork>: Declare.
525 (x86_linux_new_process): Turn into...
526 (x86_target::low_new_process): ...this.
527 (x86_linux_delete_process): Turn into...
528 (x86_target::low_delete_process): ...this.
529 (x86_target::low_new_thread): Define.
530 (x86_target::low_delete_thread): Define.
531 (x86_linux_new_fork): Turn into...
532 (x86_target::low_new_fork): ...this.
533 (the_low_target): Remove the op fields.
534 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
535 <low_delete_process>
536 <low_new_thread>
537 <low_delete_thread>
538 <low_new_fork>: Declare.
539 (aarch64_linux_new_process): Turn into...
540 (aarch64_target::low_new_process): ...this.
541 (aarch64_linux_delete_process): Turn into...
542 (aarch64_target::low_delete_process): ...this.
543 (aarch64_target::low_new_thread): Define.
544 (aarch64_target::low_delete_thread): Define.
545 (aarch64_linux_new_fork): Turn into...
546 (aarch64_target::low_new_fork): ...this.
547 (the_low_target): Remove the op fields.
548 * linux-arm-low.cc (class arm_target) <low_new_process>
549 <low_delete_process>
550 <low_new_thread>
551 <low_delete_thread>
552 <low_new_fork>: Declare.
553 (arm_new_process): Turn into...
554 (arm_target::low_new_process): ...this.
555 (arm_delete_process): Turn into...
556 (arm_target::low_delete_process): ...this.
557 (arm_new_thread): Turn into...
558 (arm_target::low_new_thread): ...this.
559 (arm_delete_thread): Turn into...
560 (arm_target::low_delete_thread): ...this.
561 (arm_new_fork): Turn into...
562 (arm_target::low_new_fork): ...this.
563 (the_low_target): Remove the op fields.
564 * linux-mips-low.cc (class mips_target) <low_new_process>
565 <low_delete_process>
566 <low_new_thread>
567 <low_delete_thread>
568 <low_new_fork>: Declare.
569 (mips_linux_new_process): Turn into...
570 (mips_target::low_new_process): ...this.
571 (mips_linux_delete_process): Turn into...
572 (mips_target::low_delete_process): ...this.
573 (mips_linux_new_thread): Turn into...
574 (mips_target::low_new_thread): ...this.
575 (mips_linux_delete_thread): Turn into...
576 (mips_target::low_delete_thread): ...this.
577 (mips_linux_new_fork): Turn into...
578 (mips_target::low_new_fork): ...this.
579 (the_low_target): Remove the op fields.
580 * linux-bfin-low.cc (the_low_target): Remove the op fields.
581 * linux-crisv32-low.cc (the_low_target): Ditto.
582 * linux-m32r-low.cc (the_low_target): Ditto.
583 * linux-m68k-low.cc (the_low_target): Ditto.
584 * linux-ppc-low.cc (the_low_target): Ditto.
585 * linux-s390-low.cc (the_low_target): Ditto.
586 * linux-sh-low.cc (the_low_target): Ditto.
587 * linux-tic6x-low.cc (the_low_target): Ditto.
588 * linux-tile-low.cc (the_low_target): Ditto.
589 * linux-xtensa-low.cc (the_low_target): Ditto.
590
cb63de7c
TBA
5912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
592
593 Turn the 'siginfo_fixup' linux target op into a method of
594 linux_process_target.
595
596 * linux-low.h (struct linux_target_ops): Remove the op.
597 (class linux_process_target) <siginfo_fixup>
598 <low_siginfo_fixup>: Declare.
599 * linux-low.cc (siginfo_fixup): Turn into...
600 (linux_process_target::siginfo_fixup): ...this.
601 (linux_process_target::low_siginfo_fixup): Define.
602 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
603 (x86_siginfo_fixup): Turn into...
604 (x86_target::low_siginfo_fixup): ...this.
605 (the_low_target): Remove the op field.
606 * linux-aarch64-low.cc (class aarch64_target):
607 <low_siginfo_fixup>: Declare.
608 (aarch64_linux_siginfo_fixup): Turn into...
609 (aarch64_target::low_siginfo_fixup): ...this.
610 (the_low_target): Remove the op field.
611 * linux-arm-low.cc (the_low_target): Remove the op field.
612 * linux-bfin-low.cc (the_low_target): Ditto.
613 * linux-crisv32-low.cc (the_low_target): Ditto.
614 * linux-m32r-low.cc (the_low_target): Ditto.
615 * linux-m68k-low.cc (the_low_target): Ditto.
616 * linux-mips-low.cc (the_low_target): Ditto.
617 * linux-ppc-low.cc (the_low_target): Ditto.
618 * linux-s390-low.cc (the_low_target): Ditto.
619 * linux-sh-low.cc (the_low_target): Ditto.
620 * linux-tic6x-low.cc (the_low_target): Ditto.
621 * linux-tile-low.cc (the_low_target): Ditto.
622 * linux-xtensa-low.cc (the_low_target): Ditto.
623
b35db733
TBA
6242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
625
626 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
627 linux target ops into methods of linux_process_target.
628
629 * linux-low.h (struct linux_target_ops): Remove the ops.
630 (class linux_process_target) <low_collect_ptrace_register>
631 <low_store_ptrace_register>: Declare.
632 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
633 (linux_process_target::low_supply_ptrace_register): Define.
634
635 Update the callers below.
636
637 (linux_process_target::fetch_register)
638 (linux_process_target::store_register)
639
640 * linux-x86-low.cc (the_low_target): Remove the op fields.
641 * linux-aarch64-low.cc (the_low_target): Ditto.
642 * linux-arm-low.cc (the_low_target): Ditto.
643 * linux-bfin-low.cc (the_low_target): Ditto.
644 * linux-crisv32-low.cc (the_low_target): Ditto.
645 * linux-m32r-low.cc (the_low_target): Ditto.
646 * linux-m68k-low.cc (the_low_target): Ditto.
647 * linux-sh-low.cc (the_low_target): Ditto.
648 * linux-sparc-low.cc (the_low_target): Ditto.
649 * linux-tic6x-low.cc (the_low_target): Ditto.
650 * linux-tile-low.cc (the_low_target): Ditto.
651 * linux-xtensa-low.cc (the_low_target): Ditto.
652 * linux-mips-low.cc (class mips_target)
653 <low_collect_ptrace_register>
654 <low_supply_ptrace_register>: Declare.
655 (mips_collect_ptrace_register): Turn into ...
656 (mips_target::low_collect_ptrace_register): ...this.
657 (mips_supply_ptrace_register): Turn into...
658 (mips_target::low_supply_ptrace_register): ...this.
659 (the_low_target): Remove the op fields.
660 * linux-ppc-low.cc (class ppc_target)
661 <low_collect_ptrace_register>
662 <low_supply_ptrace_register>: Declare.
663 (ppc_collect_ptrace_register): Turn into ...
664 (ppc_target::low_collect_ptrace_register): ...this.
665 (ppc_supply_ptrace_register): Turn into ...
666 (ppc_target::low_supply_ptrace_register): ...this.
667 (ppc_fill_gregset): Update for the calls to
668 low_collect_ptrace_register.
669 (the_low_target): Remove the op fields.
670 * linux-s390-low.cc (class s390_target)
671 <low_collect_ptrace_register>
672 <low_supply_ptrace_register>: Declare.
673 (s390_collect_ptrace_register): Turn into ...
674 (s390_target::low_collect_ptrace_register): ...this.
675 (s390_supply_ptrace_register): Turn into ...
676 (s390_target::low_supply_ptrace_register): ...this.
677 (s390_fill_gregset): Update for the calls to
678 low_collect_ptrace_register.
679 (the_low_target): Remove the op fields.
680
ac1bbaca
TBA
6812020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
682
683 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
684 target ops into methods of linux_process_target.
685
686 * linux-low.h (struct linux_target_ops): Remove the ops.
687 (class linux_process_target) <check_stopped_by_watchpoint>
688 <low_stopped_by_watchpoint>
689 <low_stopped_data_address>: Declare.
690 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
691 (linux_process_target::check_stopped_by_watchpoint): ...this.
692 (linux_process_target::low_stopped_by_watchpoint): Define.
693 (linux_process_target::low_stopped_data_address): Define.
694 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
695 <low_stopped_data_address>: Declare.
696 (x86_stopped_by_watchpoint): Turn into...
697 (x86_target::low_stopped_by_watchpoint): ...this.
698 (x86_stopped_data_address): Turn into...
699 (x86_target::low_stopped_data_address): ...this.
700 (the_low_target): Remove the op fields.
701 * linux-aarch64-low.cc (class aarch64_target)
702 <low_stopped_by_watchpoint>
703 <low_stopped_data_address>: Declare.
704 (aarch64_stopped_by_watchpoint): Turn into...
705 (aarch64_target::low_stopped_by_watchpoint): ...this.
706 (aarch64_stopped_data_address): Turn into...
707 (aarch64_target::low_stopped_data_address): ...this.
708 (the_low_target): Remove the op fields.
709 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
710 <low_stopped_data_address>: Declare.
711 (arm_stopped_by_watchpoint): Turn into...
712 (arm_target::low_stopped_by_watchpoint): ...this.
713 (arm_stopped_data_address): Turn into...
714 (arm_target::low_stopped_data_address): ...this.
715 (the_low_target): Remove the op fields.
716 * linux-crisv32-low.cc (class crisv32_target)
717 <low_stopped_by_watchpoint>
718 <low_stopped_data_address>: Declare.
719 (cris_stopped_by_watchpoint): Turn into...
720 (crisv32_target::low_stopped_by_watchpoint): ...this.
721 (cris_stopped_data_address): Turn into...
722 (crisv32_target::low_stopped_data_address): ...this.
723 (the_low_target): Remove the op fields.
724 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
725 <low_stopped_data_address>: Declare.
726 (mips_stopped_by_watchpoint): Turn into...
727 (mips_target::low_stopped_by_watchpoint): ...this.
728 (mips_stopped_data_address): Turn into...
729 (mips_target::low_stopped_data_address): ...this.
730 (the_low_target): Remove the op fields.
731 * linux-bfin-low.cc (the_low_target): Remove the op fields.
732 * linux-m32r-low.cc (the_low_target): Ditto.
733 * linux-m68k-low.cc (the_low_target): Ditto.
734 * linux-ppc-low.cc (the_low_target): Ditto.
735 * linux-s390-low.cc (the_low_target): Ditto.
736 * linux-sh-low.cc (the_low_target): Ditto.
737 * linux-sparc-low.cc (the_low_target): Ditto.
738 * linux-tic6x-low.cc (the_low_target): Ditto.
739 * linux-tile-low.cc (the_low_target): Ditto.
740 * linux-xtensa-low.cc (the_low_target): Ditto.
741
9db9aa23
TBA
7422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
743
744 Turn the 'insert_point' and 'remove_point' linux target ops into
745 methods of linux_process_target.
746
747 * linux-low.h (struct linux_target_ops): Remove the ops.
748 (class linux_process_target) <low_insert_point>
749 <low_remove_point>: Declare.
750 * linux-low.cc (linux_process_target::low_insert_point)
751 (linux_process_target::low_remove_point): Define.
752 (linux_process_target::insert_point)
753 (linux_process_target::remove_point): Update for calls to
754 low_insert_point and low_remove_point.
755 * linux-x86-low.cc (class x86_target) <low_insert_point>
756 <low_remove_point>: Declare.
757 (x86_insert_point): Turn into...
758 (x86_target::low_insert_point): ...this.
759 (x86_remove_point): Turn into...
760 (x86_target::low_remove_point): ...this.
761 (the_low_target): Remove the op fields.
762 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
763 <low_remove_point>: Declare.
764 (aarch64_insert_point): Turn into...
765 (aarch64_target::low_insert_point): ...this.
766 (aarch64_remove_point): Turn into...
767 (aarch64_target::low_remove_point): ...this.
768 (the_low_target): Remove the op fields.
769 * linux-arm-low.cc (class arm_target) <low_insert_point>
770 <low_remove_point>: Declare.
771 (arm_insert_point): Turn into...
772 (arm_target::low_insert_point): ...this.
773 (arm_remove_point): Turn into...
774 (arm_target::low_remove_point): ...this.
775 (the_low_target): Remove the op fields.
776 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
777 <low_remove_point>: Declare.
778 (crisv32_insert_point): Turn into...
779 (crisv32_target::low_insert_point): ...this.
780 (crisv32_remove_point): Turn into...
781 (crisv32_target::low_remove_point): ...this.
782 (the_low_target): Remove the op fields.
783 * linux-mips-low.cc (class mips_target) <low_insert_point>
784 <low_remove_point>: Declare.
785 (mips_insert_point): Turn into...
786 (mips_target::low_insert_point): ...this.
787 (mips_remove_point): Turn into...
788 (mips_target::low_remove_point): ...this.
789 (the_low_target): Remove the op fields.
790 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
791 <low_remove_point>: Declare.
792 (ppc_insert_point): Turn into...
793 (ppc_target::low_insert_point): ...this.
794 (ppc_remove_point): Turn into...
795 (ppc_target::low_remove_point): ...this.
796 (the_low_target): Remove the op fields.
797 * linux-bfin-low.cc (the_low_target): Remove the op fields.
798 * linux-m32r-low.cc (the_low_target): Ditto.
799 * linux-m68k-low.cc (the_low_target): Ditto.
800 * linux-s390-low.cc (the_low_target): Ditto.
801 * linux-sh-low.cc (the_low_target): Ditto.
802 * linux-sparc-low.cc (the_low_target): Ditto.
803 * linux-tic6x-low.cc (the_low_target): Ditto.
804 * linux-tile-low.cc (the_low_target): Ditto.
805 * linux-xtensa-low.cc (the_low_target): Ditto.
806
007c9b97
TBA
8072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
808
809 Remove the 'supports_z_point_type' linux target op and let the
810 concrete linux target define it by overriding the op declared in
811 process_stratum_target.
812
813 * linux-low.cc (linux_process_target::supports_z_point_type):
814 Remove.
815 * linux-low.h (struct linux_target_ops): Remove the op.
816 (class linux_process_target) <supports_z_point_type>: Remove.
817 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
818 Declare.
819 (x86_supports_z_point_type): Turn into...
820 (x86_target::supports_z_point_type): ...this.
821 (the_low_target): Remove the op field.
822 * linux-aarch64-low.cc (class aarch64_target)
823 <supports_z_point_type>: Declare.
824 (aarch64_supports_z_point_type): Turn into...
825 (aarch64_target::supports_z_point_type): ...this.
826 (the_low_target): Remove the op field.
827 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
828 Declare.
829 (arm_supports_z_point_type): Turn into...
830 (arm_target::supports_z_point_type): ...this.
831 (the_low_target): Remove the op field.
832 * linux-crisv32-low.cc (class crisv32_target)
833 <supports_z_point_type>: Declare.
834 (cris_supports_z_point_type): Turn into...
835 (crisv32_target::supports_z_point_type): ...this.
836 (the_low_target): Remove the op field.
837 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
838 Declare.
839 (mips_supports_z_point_type): Turn into...
840 (mips_target::supports_z_point_type): ...this.
841 (the_low_target): Remove the op field.
842 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
843 Declare.
844 (ppc_supports_z_point_type): Turn into...
845 (ppc_target::supports_z_point_type): ...this.
846 (the_low_target): Remove the op field.
847 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
848 Declare.
849 (s390_supports_z_point_type): Turn into...
850 (s390_target::supports_z_point_type): ...this.
851 (the_low_target): Remove the op field.
852 * linux-bfin-low.cc (the_low_target): Remove the op field.
853 * linux-m32r-low.cc (the_low_target): Ditto.
854 * linux-m68k-low.cc (the_low_target): Ditto.
855 * linux-sh-low.cc (the_low_target): Ditto.
856 * linux-sparc-low.cc (the_low_target): Ditto.
857 * linux-tic6x-low.cc (the_low_target): Ditto.
858 * linux-tile-low.cc (the_low_target): Ditto.
859 * linux-xtensa-low.cc (the_low_target): Ditto.
860
d7146cda
TBA
8612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
862
863 Turn the 'breakpoint_at' linux target op into a method of
864 linux_process_target.
865
866 * linux-low.h (struct linux_target_ops): Remove the op.
867 (class linux_process_target) <low_breakpoint_at>: Declare.
868
869 Update the callers below:
870
871 * linux-low.cc (linux_process_target::save_stop_reason)
872 (linux_process_target::thread_still_has_status_pending)
873 (linux_process_target::wait_1)
874
875 * linux-x86-low.cc (class x86_target)
876 <low_breakpoint_at>: Declare.
877 (x86_breakpoint_at): Turn into...
878 (x86_target::low_breakpoint_at): ...this.
879 (the_low_target): Remove the op field.
880 * linux-aarch64-low.cc (class aarch64_target)
881 <low_breakpoint_at>: Declare.
882 (aarch64_breakpoint_at): Turn into...
883 (aarch64_target::low_breakpoint_at): ...this.
884 (the_low_target): Remove the op field.
885 * linux-arm-low.cc (class arm_target)
886 <low_breakpoint_at>: Declare.
887 (arm_target::low_breakpoint_at): Define.
888 (the_low_target): Remove the op field.
889 * linux-bfin-low.cc (class bfin_target)
890 <low_breakpoint_at>: Declare.
891 (bfin_breakpoint_at): Turn into...
892 (bfin_target::low_breakpoint_at): ...this.
893 (the_low_target): Remove the op field.
894 * linux-cris-low.cc (class cris_target)
895 <low_breakpoint_at>: Declare.
896 (cris_breakpoint_at): Turn into...
897 (cris_target::low_breakpoint_at): ...this.
898 (the_low_target): Remove the op field.
899 * linux-crisv32-low.cc (class crisv32_target)
900 <low_breakpoint_at>: Declare.
901 (crisv32_breakpoint_at): Turn into...
902 (crisv32_target::low_breakpoint_at): ...this.
903 (the_low_target): Remove the op field.
904 * linux-ia64-low.cc (class ia64_target)
905 <low_breakpoint_at>: Declare.
906 (ia64_target::low_breakpoint_at): Define.
907 * linux-m32r-low.cc (class m32r_target)
908 <low_breakpoint_at>: Declare.
909 (m32r_breakpoint_at): Turn into...
910 (m32r_target::low_breakpoint_at): ...this.
911 (the_low_target): Remove the op field.
912 * linux-m68k-low.cc (class m68k_target)
913 <low_breakpoint_at>: Declare.
914 (m68k_breakpoint_at): Turn into...
915 (m68k_target::low_breakpoint_at): ...this.
916 (the_low_target): Remove the op field.
917 * linux-mips-low.cc (class mips_target)
918 <low_breakpoint_at>: Declare.
919 (mips_breakpoint_at): Turn into...
920 (mips_target::low_breakpoint_at): ...this.
921 (the_low_target): Remove the op field.
922 * linux-nios2-low.cc (class nios2_target)
923 <low_breakpoint_at>: Declare.
924 (nios2_breakpoint_at): Turn into...
925 (nios2_target::low_breakpoint_at): ...this.
926 (the_low_target): Remove the op field.
927 * linux-ppc-low.cc (class ppc_target)
928 <low_breakpoint_at>: Declare.
929 (ppc_breakpoint_at): Turn into...
930 (ppc_target::low_breakpoint_at): ...this.
931 (the_low_target): Remove the op field.
932 * linux-riscv-low.cc (class riscv_target)
933 <low_breakpoint_at>: Declare.
934 (riscv_breakpoint_at): Turn into...
935 (riscv_target::low_breakpoint_at): ...this.
936 (the_low_target): Remove the op field.
937 * linux-s390-low.cc (class s390_target)
938 <low_breakpoint_at>: Declare.
939 (s390_breakpoint_at): Turn into...
940 (s390_target::low_breakpoint_at): ...this.
941 (the_low_target): Remove the op field.
942 * linux-sh-low.cc (class sh_target)
943 <low_breakpoint_at>: Declare.
944 (sh_breakpoint_at): Turn into...
945 (sh_target::low_breakpoint_at): ...this.
946 (the_low_target): Remove the op field.
947 * linux-sparc-low.cc (class sparc_target)
948 <low_breakpoint_at>: Declare.
949 (sparc_breakpoint_at): Turn into...
950 (sparc_target::low_breakpoint_at): ...this.
951 (the_low_target): Remove the op field.
952 * linux-tic6x-low.cc (class tic6x_target)
953 <low_breakpoint_at>: Declare.
954 (tic6x_breakpoint_at): Turn into...
955 (tic6x_target::low_breakpoint_at): ...this.
956 (the_low_target): Remove the op field.
957 * linux-tile-low.cc (class tile_target)
958 <low_breakpoint_at>: Declare.
959 (tile_breakpoint_at): Turn into...
960 (tile_target::low_breakpoint_at): ...this.
961 (the_low_target): Remove the op field.
962 * linux-xtensa-low.cc (class xtensa_target)
963 <low_breakpoint_at>: Declare.
964 (xtensa_breakpoint_at): Turn into...
965 (xtensa_target::low_breakpoint_at): ...this.
966 (the_low_target): Remove the op field.
967
d4807ea2
TBA
9682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
969
970 Turn the 'decr_pc_after_break' linux_target_ops field into
971 a method of linux_process_target.
972
973 * linux-low.h (struct linux_target_ops)
974 <decr_pc_after_break>: Remove.
975 (class linux_process_target) <low_decr_pc_after_break>: New method
976 declaration.
977 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
978 New method implementation.
979
980 Update the users below.
981
982 (linux_process_target::save_stop_reason)
983 (linux_process_target::wait_1)
984 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
985 New declaration.
986 (x86_target::low_decr_pc_after_break): New method implementation.
987 (the_low_target): Remove the field.
988 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
989 New declaration.
990 (bfin_target::low_decr_pc_after_break): New method implementation.
991 (the_low_target): Remove the field.
992 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
993 New declaration.
994 (m68k_target::low_decr_pc_after_break): New method implementation.
995 (the_low_target): Remove the field.
996 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
997 New declaration.
998 (s390_target::low_decr_pc_after_break): New method implementation.
999 (the_low_target): Remove the field.
1000 * linux-aarch64-low.cc (the_low_target): Remove the field.
1001 * linux-arm-low.cc (the_low_target): Remove the field.
1002 * linux-cris-low.cc (the_low_target): Remove the field.
1003 * linux-crisv32-low.cc (the_low_target): Remove the field.
1004 * linux-m32r-low.cc (the_low_target): Remove the field.
1005 * linux-mips-low.cc (the_low_target): Remove the field.
1006 * linux-nios2-low.cc (the_low_target): Remove the field.
1007 * linux-ppc-low.cc (the_low_target): Remove the field.
1008 * linux-riscv-low.cc (the_low_target): Remove the field.
1009 * linux-sh-low.cc (the_low_target): Remove the field.
1010 * linux-sparc-low.cc (the_low_target): Remove the field.
1011 * linux-tic6x-low.cc (the_low_target): Remove the field.
1012 * linux-tile-low.cc (the_low_target): Remove the field.
1013 * linux-xtensa-low.cc (the_low_target): Remove the field.
1014
7582c77c
TBA
10152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1016
1017 Remove the 'supports_software_single_step' linux target op and let
1018 the concrete linux target define it by overriding the op in
1019 process_stratum_target.
1020 Turn the 'get_next_pcs' linux target op into a method of
1021 linux_process_target.
1022
1023 * linux-low.h (struct linux_target_ops): Remove the ops.
1024 (class linux_process_target) <supports_software_single_step>:
1025 Remove.
1026 <low_get_next_pcs>: Declare.
1027 * linux-low.cc (can_software_single_step): Remove.
1028 (linux_process_target::low_get_next_pcs): Define.
1029 (linux_process_target::supports_software_single_step): Remove.
1030
1031 Update the callers below.
1032
1033 (linux_process_target::handle_extended_wait)
1034 (linux_process_target::wait_1)
1035 (linux_process_target::install_software_single_step_breakpoints)
1036 (linux_process_target::single_step)
1037 (linux_process_target::thread_needs_step_over)
1038 (linux_process_target::proceed_one_lwp)
1039 (linux_process_target::supports_range_stepping)
1040
1041 * linux-x86-low.cc (the_low_target): Remove the op field.
1042 * linux-aarch64-low.cc (the_low_target): Ditto.
1043 * linux-bfin-low.cc (the_low_target): Ditto.
1044 * linux-cris-low.cc (the_low_target): Ditto.
1045 * linux-crisv32-low.cc (the_low_target): Ditto.
1046 * linux-m32r-low.cc (the_low_target): Ditto.
1047 * linux-m68k-low.cc (the_low_target): Ditto.
1048 * linux-mips-low.cc (the_low_target): Ditto.
1049 * linux-nios2-low.cc (the_low_target): Ditto.
1050 * linux-ppc-low.cc (the_low_target): Ditto.
1051 * linux-riscv-low.cc (the_low_target): Ditto.
1052 * linux-s390-low.cc (the_low_target): Ditto.
1053 * linux-sh-low.cc (the_low_target): Ditto.
1054 * linux-sparc-low.cc (the_low_target): Ditto.
1055 * linux-tic6x-low.cc (the_low_target): Ditto.
1056 * linux-tile-low.cc (the_low_target): Ditto.
1057 * linux-xtensa-low.cc (the_low_target): Ditto.
1058 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1059 <supports_software_single_step>: Declare.
1060 (arm_target::supports_software_single_step): Define.
1061 (arm_gdbserver_get_next_pcs): Turn into...
1062 (arm_target::low_get_next_pcs): ...this.
1063 (the_low_target): Remove the op field.
1064
3ca4edb6
TBA
10652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1066
1067 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1068 the concrete linux target define it by overriding the op
1069 in process_stratum_target.
1070
1071 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1072 Remove.
1073 * linux-low.h (struct linux_target_ops): Remove the op.
1074 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1075 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1076 Declare.
1077 (x86_sw_breakpoint_from_kind): Turn into...
1078 (x86_target::sw_breakpoint_from_kind): ...this.
1079 (the_low_target): Remove the op field.
1080 * linux-aarch64-low.cc (class aarch64_target)
1081 <sw_breakpoint_from_kind>: Declare.
1082 (aarch64_sw_breakpoint_from_kind): Turn into...
1083 (aarch64_target::sw_breakpoint_from_kind): ...this.
1084 (the_low_target): Remove the op field.
1085 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1086 Declare.
1087 (arm_target::sw_breakpoint_from_kind): Define.
1088 (the_low_target): Remove the op field.
1089 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1090 Declare.
1091 (bfin_sw_breakpoint_from_kind): Turn into...
1092 (bfin_target::sw_breakpoint_from_kind): ...this.
1093 (the_low_target): Remove the op field.
1094 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1095 Declare.
1096 (cris_sw_breakpoint_from_kind): Turn into...
1097 (cris_target::sw_breakpoint_from_kind): ...this.
1098 (the_low_target): Remove the op field.
1099 * linux-crisv32-low.cc (class crisv32_target)
1100 <sw_breakpoint_from_kind>: Declare.
1101 (cris_sw_breakpoint_from_kind): Turn into...
1102 (crisv32_target::sw_breakpoint_from_kind): ...this.
1103 (the_low_target): Remove the op field.
1104 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1105 Declare.
1106 (ia64_target::sw_breakpoint_from_kind): Define.
1107 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1108 Declare.
1109 (m32r_sw_breakpoint_from_kind): Turn into...
1110 (m32r_target::sw_breakpoint_from_kind): ...this.
1111 (the_low_target): Remove the op field.
1112 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1113 Declare.
1114 (m68k_sw_breakpoint_from_kind): Turn into...
1115 (m68k_target::sw_breakpoint_from_kind): ...this.
1116 (the_low_target): Remove the op field.
1117 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1118 Declare.
1119 (mips_sw_breakpoint_from_kind): Turn into...
1120 (mips_target::sw_breakpoint_from_kind): ...this.
1121 (the_low_target): Remove the op field.
1122 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1123 Declare.
1124 (nios2_sw_breakpoint_from_kind): Turn into...
1125 (nios2_target::sw_breakpoint_from_kind): ...this.
1126 (the_low_target): Remove the op field.
1127 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1128 Declare.
1129 (ppc_sw_breakpoint_from_kind): Turn into...
1130 (ppc_target::sw_breakpoint_from_kind): ...this.
1131 (the_low_target): Remove the op field.
1132 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1133 Declare.
1134 (riscv_sw_breakpoint_from_kind): Turn into...
1135 (riscv_target::sw_breakpoint_from_kind): ...this.
1136 (the_low_target): Remove the op field.
1137 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1138 Declare.
1139 (s390_sw_breakpoint_from_kind): Turn into...
1140 (s390_target::sw_breakpoint_from_kind): ...this.
1141 (the_low_target): Remove the op field.
1142 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1143 Declare.
1144 (sh_sw_breakpoint_from_kind): Turn into...
1145 (sh_target::sw_breakpoint_from_kind): ...this.
1146 (the_low_target): Remove the op field.
1147 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1148 Declare.
1149 (sparc_sw_breakpoint_from_kind): Turn into...
1150 (sparc_target::sw_breakpoint_from_kind): ...this.
1151 (the_low_target): Remove the op field.
1152 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1153 Declare.
1154 (tic6x_sw_breakpoint_from_kind): Turn into...
1155 (tic6x_target::sw_breakpoint_from_kind): ...this.
1156 (the_low_target): Remove the op field.
1157 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1158 Declare.
1159 (tile_sw_breakpoint_from_kind): Turn into...
1160 (tile_target::sw_breakpoint_from_kind): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-xtensa-low.cc (class xtensa_target)
1163 <sw_breakpoint_from_kind>: Declare.
1164 (xtensa_sw_breakpoint_from_kind): Turn into...
1165 (xtensa_target::sw_breakpoint_from_kind): ...this.
1166 (the_low_target): Remove the op field.
1167
06250e4e
TBA
11682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1169
1170 Remove the 'breakpoint_kind_from_pc' and
1171 'breakpoint_kind_from_current_state' linux target ops, and let the
1172 concrete linux target define them by overriding the ops of
1173 process_stratum_target.
1174
1175 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1176 Remove.
1177 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1178 * linux-low.h (struct linux_target_ops): Remove ops.
1179 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1180 <breakpoint_kind_from_current_state>: Remove.
1181 * linux-x86-low.cc (the_low_target): Remove the op fields.
1182 * linux-bfin-low.cc (the_low_target): Ditto.
1183 * linux-cris-low.cc (the_low_target): Ditto.
1184 * linux-crisv32-low.cc (the_low_target): Ditto.
1185 * linux-m32r-low.cc (the_low_target): Ditto.
1186 * linux-m68k-low.cc (the_low_target): Ditto.
1187 * linux-mips-low.cc (the_low_target): Ditto.
1188 * linux-nios2-low.cc (the_low_target): Ditto.
1189 * linux-ppc-low.cc (the_low_target): Ditto.
1190 * linux-s390-low.cc (the_low_target): Ditto.
1191 * linux-sh-low.cc (the_low_target): Ditto.
1192 * linux-sparc-low.cc (the_low_target): Ditto.
1193 * linux-tic6x-low.cc (the_low_target): Ditto.
1194 * linux-tile-low.cc (the_low_target): Ditto.
1195 * linux-xtensa-low.cc (the_low_target): Ditto.
1196 * linux-aarch64-low.cc (class aarch64_target)
1197 <breakpoint_kind_from_pc>
1198 <breakpoint_kind_from_current_state>: Declare.
1199 (aarch64_breakpoint_kind_from_pc): Turn into...
1200 (aarch64_target::breakpoint_kind_from_pc): ...this.
1201 (aarch64_breakpoint_kind_from_current_state): Turn into...
1202 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1203 (the_low_target): Remove the op fields.
1204 * linux-arm-low.cc (class arm_target):
1205 <breakpoint_kind_from_pc>
1206 <breakpoint_kind_from_current_state>: Declare.
1207 (arm_target::breakpoint_kind_from_pc): Define.
1208 (arm_target::breakpoint_kind_from_current_state): Define.
1209 (the_low_target): Remove the op fields.
1210 * linux-riscv-low.cc (class riscv_target):
1211 <breakpoint_kind_from_pc>: Declare.
1212 (riscv_breakpoint_kind_from_pc): Turn into...
1213 (riscv_target::breakpoint_kind_from_pc): ...this.
1214 (the_low_target): Remove the op fields.
1215
bf9ae9d8
TBA
12162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1217
1218 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1219 of linux_process_target.
1220
1221 * linux-low.h (struct linux_target_ops): Remove the ops.
1222 (class linux_process_target) <low_supports_breakpoints>
1223 <low_get_pc>
1224 <low_set_pc>: Declare.
1225 * linux-low.cc (supports_breakpoints): Turn into...
1226 (linux_process_target::low_supports_breakpoints): ...this.
1227 (linux_process_target::low_get_pc): Define.
1228 (linux_process_target::low_set_pc): Define.
1229
1230 Update the callers below.
1231
1232 (linux_process_target::get_pc)
1233 (linux_process_target::save_stop_reason)
1234 (linux_process_target::maybe_move_out_of_jump_pad)
1235 (linux_process_target::wait_1)
1236 (linux_process_target::resume_one_lwp_throw)
1237 (linux_process_target::resume)
1238 (linux_process_target::proceed_all_lwps)
1239 (linux_process_target::read_pc)
1240 (linux_process_target::write_pc)
1241
1242 * linux-x86-low.cc (class linux_process_target)
1243 <low_supports_breakpoints>
1244 <low_get_pc>
1245 <low_set_pc>: Declare.
1246 (x86_target::low_supports_breakpoints): Define.
1247 (x86_get_pc): Turn into...
1248 (x86_target::low_get_pc): ...this.
1249 (x86_set_pc): Turn into...
1250 (x86_target::low_set_pc): ...this.
1251 (the_low_target): Remove the op fields.
1252 * linux-arm-low.cc (class arm_target)
1253 <low_supports_breakpoints>
1254 <low_get_pc>
1255 <low_set_pc>: Declare.
1256 (arm_target::low_supports_breakpoints)
1257 (arm_target::low_get_pc)
1258 (arm_target::low_set_pc): Define.
1259 (the_low_target): Remove the op fields.
1260 * linux-bfin-low.cc (class bfin_target)
1261 <low_supports_breakpoints>
1262 <low_get_pc>
1263 <low_set_pc>: Declare.
1264 (bfin_target::low_supports_breakpoints)
1265 (bfin_target::low_get_pc)
1266 (bfin_target::low_set_pc): Define.
1267 (the_low_target): Remove the op fields.
1268 * linux-cris-low.cc (class cris_target)
1269 <low_supports_breakpoints>
1270 <low_get_pc>
1271 <low_set_pc>: Declare.
1272 (cris_target::low_supports_breakpoints)
1273 (cris_target::low_get_pc)
1274 (cris_target::low_set_pc): Define.
1275 (the_low_target): Remove the op fields.
1276 * linux-crisv32-low.cc (class crisv32_target)
1277 <low_supports_breakpoints>
1278 <low_get_pc>
1279 <low_set_pc>: Declare.
1280 (crisv32_target::low_supports_breakpoints)
1281 (crisv32_target::low_get_pc)
1282 (crisv32_target::low_set_pc): Define.
1283 (the_low_target): Remove the op fields.
1284 * linux-m32r-low.cc (class m32r_target)
1285 <low_supports_breakpoints>
1286 <low_get_pc>
1287 <low_set_pc>: Declare.
1288 (m32r_target::low_supports_breakpoints)
1289 (m32r_target::low_get_pc)
1290 (m32r_target::low_set_pc): Define.
1291 (the_low_target): Remove the op fields.
1292 * linux-m68k-low.cc (class m68k_target)
1293 <low_supports_breakpoints>
1294 <low_get_pc>
1295 <low_set_pc>: Declare.
1296 (m68k_target::low_supports_breakpoints)
1297 (m68k_target::low_get_pc)
1298 (m68k_target::low_set_pc): Define.
1299 (the_low_target): Remove the op fields.
1300 * linux-nios2-low.cc (class nios2_target)
1301 <low_supports_breakpoints>
1302 <low_get_pc>
1303 <low_set_pc>: Declare.
1304 (nios2_target::low_supports_breakpoints)
1305 (nios2_target::low_get_pc)
1306 (nios2_target::low_set_pc): Define.
1307 (the_low_target): Remove the op fields.
1308 * linux-sh-low.cc (class sh_target)
1309 <low_supports_breakpoints>
1310 <low_get_pc>
1311 <low_set_pc>: Declare.
1312 (sh_target::low_supports_breakpoints)
1313 (sh_target::low_get_pc)
1314 (sh_target::low_set_pc): Define.
1315 (the_low_target): Remove the op fields.
1316 * linux-xtensa-low.cc (class xtensa_target)
1317 <low_supports_breakpoints>
1318 <low_get_pc>
1319 <low_set_pc>: Declare.
1320 (xtensa_target::low_supports_breakpoints)
1321 (xtensa_target::low_get_pc)
1322 (xtensa_target::low_set_pc): Define.
1323 (the_low_target): Remove the op fields.
1324 * linux-sparc-low.cc (class sparc_target)
1325 <low_supports_breakpoints>
1326 <low_get_pc>: Declare.
1327 (sparc_target::low_supports_breakpoints)
1328 (sparc_target::low_get_pc): Define.
1329 (the_low_target): Remove the op fields.
1330 * linux-tile-low.cc (class tile_target)
1331 <low_supports_breakpoints>
1332 <low_get_pc>
1333 <low_set_pc>: Declare.
1334 (tile_target::low_supports_breakpoints)
1335 (tile_target::low_get_pc)
1336 (tile_target::low_set_pc): Define.
1337 (the_low_target): Remove the op fields.
1338 * linux-aarch64-low.cc (class aarch64_target)
1339 <low_supports_breakpoints>
1340 <low_get_pc>
1341 <low_set_pc>: Declare.
1342 (aarch64_target::low_supports_breakpoints): Define.
1343 (aarch64_get_pc): Turn into...
1344 (aarch64_target::low_get_pc): ...this.
1345 (aarch64_set_pc): Turn into...
1346 (aarch64_target::low_set_pc): ...this.
1347 (the_low_target): Remove the op fields.
1348 * linux-mips-low.cc (class mips_target)
1349 <low_supports_breakpoints>
1350 <low_get_pc>
1351 <low_set_pc>: Declare.
1352 (mips_target::low_supports_breakpoints): Define.
1353 (mips_get_pc): Turn into...
1354 (mips_target::low_get_pc): ...this.
1355 (mips_set_pc): Turn into...
1356 (mips_target::low_set_pc): ...this.
1357 (the_low_target): Remove the op fields.
1358 * linux-ppc-low.cc (class ppc_target)
1359 <low_supports_breakpoints>
1360 <low_get_pc>
1361 <low_set_pc>: Declare.
1362 (ppc_target::low_supports_breakpoints): Define.
1363 (ppc_get_pc): Turn into...
1364 (ppc_target::low_get_pc): ...this.
1365 (ppc_set_pc): Turn into...
1366 (ppc_target::low_set_pc): ...this.
1367 (the_low_target): Remove the op fields.
1368 * linux-riscv-low.cc (class riscv_target)
1369 <low_supports_breakpoints>
1370 <low_get_pc>
1371 <low_set_pc>: Declare.
1372 (riscv_target::low_supports_breakpoints): Define.
1373 (riscv_get_pc): Turn into...
1374 (riscv_target::low_get_pc): ...this.
1375 (riscv_set_pc): Turn into...
1376 (riscv_target::low_set_pc): ...this.
1377 (the_low_target): Remove the op fields.
1378 * linux-s390-low.cc (class s390_target)
1379 <low_supports_breakpoints>
1380 <low_get_pc>
1381 <low_set_pc>: Declare.
1382 (s390_target::low_supports_breakpoints): Define.
1383 (s390_get_pc): Turn into...
1384 (s390_target::low_get_pc): ...this.
1385 (s390_set_pc): Turn into...
1386 (s390_target::low_set_pc): ...this.
1387 (the_low_target): Remove the op fields.
1388 * linux-tic6x-low.cc (class tic6x_target)
1389 <low_supports_breakpoints>
1390 <low_get_pc>
1391 <low_set_pc>: Declare.
1392 (tic6x_target::low_supports_breakpoints): Define.
1393 (tic6x_get_pc): Turn into...
1394 (tic6x_target::low_get_pc): ...this.
1395 (tic6x_set_pc): Turn into...
1396 (tic6x_target::low_set_pc): ...this.
1397 (the_low_target): Remove the op fields.
1398
df95181f
TBA
13992020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1400
1401 Turn some more static methods in linux-low into private methods
1402 of linux_process_target.
1403
1404 * linux-low.cc (get_pc): Turn into...
1405 (linux_process_target::get_pc): ...this.
1406 (save_stop_reason): Turn into...
1407 (linux_process_target::save_stop_reason): ...this.
1408 (thread_still_has_status_pending_p): Turn into...
1409 (linux_process_target::thread_still_has_status_pending): ...this.
1410 (status_pending_p_callback): Turn into...
1411 (linux_process_target::status_pending_p_callback): ...this.
1412 (resume_stopped_resumed_lwps): Turn into...
1413 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1414 (install_software_single_step_breakpoints): Turn into...
1415 (linux_process_target::install_software_single_step_breakpoints):
1416 ...this.
1417 (single_step): Turn into...
1418 (linux_process_target::single_step): ...this.
1419 (linux_resume_one_lwp_throw): Turn into...
1420 (linux_process_target::resume_one_lwp_throw): ...this.
1421 (linux_resume_one_lwp): Turn into...
1422 (linux_process_target::resume_one_lwp): ...this.
1423 (resume_status_pending_p): Turn into...
1424 (linux_process_target::resume_status_pending): ...this.
1425 (need_step_over_p): Turn into...
1426 (linux_process_target::thread_needs_step_over): ...this.
1427 (linux_resume_one_thread): Turn into...
1428 (linux_process_target::resume_one_thread): ...this.
1429 (proceed_one_lwp): Turn into...
1430 (linux_process_target::proceed_one_lwp): ...this.
1431 (unsuspend_and_proceed_one_lwp): Turn into...
1432 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1433
1434 Update the calls/references to the above functions below.
1435
1436 (linux_process_target::handle_extended_wait)
1437 (linux_process_target::filter_event)
1438 (linux_process_target::wait_for_event_filtered)
1439 (linux_process_target::wait_1)
1440 (linux_process_target::move_out_of_jump_pad)
1441 (linux_process_target::start_step_over)
1442 (linux_process_target::resume)
1443 (linux_process_target::proceed_all_lwps)
1444 (regsets_store_inferior_registers)
1445 (linux_process_target::store_register)
1446
1447 * linux-low.h (class linux_process_target)
1448 <get_pc>
1449 <save_stop_reason>
1450 <thread_still_has_status_pending>
1451 <status_pending_p_callback>
1452 <resume_stopped_resumed_lwps>
1453 <install_software_single_step_breakpoints>
1454 <single_step>
1455 <resume_one_lwp_throw>
1456 <resume_one_lwp>
1457 <resume_status_pending>
1458 <thread_needs_step_over>
1459 <resume_one_thread>
1460 <proceed_one_lwp>
1461 <unsuspend_and_proceed_one_lwp>: Declare.
1462
bd70b1f2
TBA
14632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1464
1465 Turn the 'fetch_register' linux target op into a method of
1466 linux_process_target.
1467
1468 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1469 (class linux_process_target) <low_fetch_register>: Declare.
1470 * linux-x86-low.cc (the_low_target)
1471 * linux-aarch64-low.cc (the_low_target)
1472 * linux-arm-low.cc (the_low_target)
1473 * linux-bfin-low.cc (the_low_target)
1474 * linux-cris-low.cc (the_low_target)
1475 * linux-crisv32-low.cc (the_low_target)
1476 * linux-m32r-low.cc (the_low_target)
1477 * linux-m68k-low.cc (the_low_target)
1478 * linux-nios2-low.cc (the_low_target)
1479 * linux-ppc-low.cc (the_low_target)
1480 * linux-s390-low.cc (the_low_target)
1481 * linux-sh-low.cc (the_low_target)
1482 * linux-sparc-low.cc (the_low_target)
1483 * linux-tic6x-low.cc (the_low_target)
1484 * linux-tile-low.cc (the_low_target)
1485 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1486 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1487 Declare.
1488 (ia64_fetch_register): Turn into...
1489 (ia64_target::low_fetch_register): ...this.
1490 (the_low_target): Remove the op field.
1491 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1492 Declare.
1493 (mips_fetch_register): Turn into...
1494 (mips_target::low_fetch_register): ...this.
1495 (the_low_target): Remove the op field.
1496 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1497 Declare.
1498 (riscv_fetch_register): Turn into...
1499 (riscv_target::low_fetch_register): ...this.
1500 (the_low_target): Remove the op field.
1501
1502 Update the callers below.
1503
1504 * linux-low.cc (linux_process_target::fetch_registers)
1505 (linux_process_target::low_fetch_register)
1506
daca57a7
TBA
15072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1508
1509 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1510 linux target ops into methods of linux_process_target.
1511
1512 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1513 (class linux_process_target) <fetch_register>
1514 <store_register>
1515 <usr_fetch_inferior_registers>
1516 <usr_store_inferior_registers>
1517 <low_cannot_fetch_register>
1518 <low_cannot_fetch_register> Declare.
1519 * linux-low.cc (fetch_register): Turn into...
1520 (linux_process_target::fetch_register): ...this.
1521 (store_register): Turn into ...
1522 (linux_process_target::store_register): ...this.
1523 (usr_fetch_inferior_registers): Turn into...
1524 (linux_process_target::usr_fetch_inferior_registers): ...this.
1525 (usr_store_inferior_registers): Turn into...
1526 (linux_process_target::usr_store_inferior_registers): ...this.
1527 * linux-x86-low.cc (class x86_target)
1528 <low_cannot_fetch_register>
1529 <low_cannot_store_register>: Declare.
1530 (x86_cannot_store_register): Turn into...
1531 (x86_target::low_cannot_store_register): ...this.
1532 (x86_cannot_fetch_register): Turn into...
1533 (x86_target::low_cannot_fetch_register): ...this.
1534 (the_low_target): Remove the target op fields.
1535 * linux-aarch64-low.cc (class aarch64_target)
1536 <low_cannot_fetch_register>
1537 <low_cannot_store_register>: Declare.
1538 (aarch64_target::low_cannot_fetch_register)
1539 (aarch64_target::low_cannot_store_register): Define.
1540 (the_low_target): Remove the op fields.
1541 * linux-arm-low.cc (class arm_target)
1542 <low_cannot_fetch_register>
1543 <low_cannot_store_register>: Declare.
1544 (arm_cannot_fetch_register): Turn into...
1545 (arm_target::low_cannot_fetch_register): ...this.
1546 (arm_cannot_store_register): Turn into...
1547 (arm_target::low_cannot_store_register): ...this.
1548 (the_low_target): Remove the op fields.
1549 * linux-bfin-low.cc (class bfin_target)
1550 <low_cannot_fetch_register>
1551 <low_cannot_store_register>: Declare.
1552 (bfin_cannot_fetch_register): Turn into...
1553 (bfin_target::low_cannot_fetch_register): ...this.
1554 (bfin_cannot_store_register): Turn into...
1555 (bfin_target::low_cannot_store_register): ...this.
1556 (the_low_target): Remove the op fields.
1557 * linux-cris-low.cc (class cris_target)
1558 <low_cannot_fetch_register>
1559 <low_cannot_store_register>: Declare.
1560 (cris_cannot_fetch_register): Turn into...
1561 (cris_target::low_cannot_fetch_register): ...this.
1562 (cris_cannot_store_register): Turn into...
1563 (cris_target::low_cannot_store_register): ...this.
1564 (the_low_target): Remove the op fields.
1565 * linux-crisv32-low.cc (class crisv32_target)
1566 <low_cannot_fetch_register>
1567 <low_cannot_store_register>: Declare.
1568 (crisv32_target::low_cannot_fetch_register)
1569 (crisv32_target::low_cannot_store_register): Define.
1570 (the_low_target): Remove the op fields.
1571 * linux-ia64-low.cc (class ia64_target)
1572 <low_cannot_fetch_register>
1573 <low_cannot_store_register>: Declare.
1574 (ia64_cannot_fetch_register): Turn into...
1575 (ia64_target::low_cannot_fetch_register): ...this.
1576 (ia64_cannot_store_register): Turn into...
1577 (ia64_target::low_cannot_store_register): ...this.
1578 (the_low_target): Remove the op fields.
1579 * linux-m32r-low.cc (class m32r_target)
1580 <low_cannot_fetch_register>
1581 <low_cannot_store_register>: Declare.
1582 (m32r_cannot_fetch_register): Turn into...
1583 (m32r_target::low_cannot_fetch_register): ...this.
1584 (m32r_cannot_store_register): Turn into...
1585 (m32r_target::low_cannot_store_register): ...this.
1586 (the_low_target): Remove the op fields.
1587 * linux-m68k-low.cc (class m68k_target)
1588 <low_cannot_fetch_register>
1589 <low_cannot_store_register>: Declare.
1590 (m68k_cannot_fetch_register): Turn into...
1591 (m68k_target::low_cannot_fetch_register): ...this.
1592 (m68k_cannot_store_register): Turn into...
1593 (m68k_target::low_cannot_store_register): ...this.
1594 (the_low_target): Remove the op fields.
1595 * linux-mips-low.cc (class mips_target)
1596 <low_cannot_fetch_register>
1597 <low_cannot_store_register>: Declare.
1598 (mips_cannot_fetch_register): Turn into...
1599 (mips_target::low_cannot_fetch_register): ...this.
1600 (mips_cannot_store_register): Turn into...
1601 (mips_target::low_cannot_store_register): ...this.
1602 (get_usrregs_info): Inline at the call sites in
1603 low_cannot_fetch_register and low_cannot_store_register,
1604 and remove.
1605 (the_low_target): Remove the op fields.
1606 * linux-nios2-low.cc (class nios2_target)
1607 <low_cannot_fetch_register>
1608 <low_cannot_store_register>: Declare.
1609 (nios2_cannot_fetch_register): Turn into...
1610 (nios2_target::low_cannot_fetch_register): ...this.
1611 (nios2_cannot_store_register): Turn into...
1612 (nios2_target::low_cannot_store_register): ...this.
1613 (the_low_target): Remove the op fields.
1614 * linux-ppc-low.cc (class ppc_target)
1615 <low_cannot_fetch_register>
1616 <low_cannot_store_register>: Declare.
1617 (ppc_cannot_fetch_register): Turn into...
1618 (ppc_target::low_cannot_fetch_register): ...this.
1619 (ppc_cannot_store_register): Turn into...
1620 (ppc_target::low_cannot_store_register): ...this.
1621 (the_low_target): Remove the op fields.
1622 * linux-riscv-low.cc (class riscv_target)
1623 <low_cannot_fetch_register>
1624 <low_cannot_store_register>: Declare.
1625 (riscv_target::low_cannot_fetch_register)
1626 (riscv_target::low_cannot_store_register): Define.
1627 (the_low_target): Remove the op fields.
1628 * linux-s390-low.cc (class s390_target)
1629 <low_cannot_fetch_register>
1630 <low_cannot_store_register>: Declare.
1631 (s390_cannot_fetch_register): Turn into...
1632 (s390_target::low_cannot_fetch_register): ...this.
1633 (s390_cannot_store_register): Turn into...
1634 (s390_target::low_cannot_store_register): ...this.
1635 (the_low_target): Remove the op fields.
1636 * linux-sh-low.cc (class sh_target)
1637 <low_cannot_fetch_register>
1638 <low_cannot_store_register>: Declare.
1639 (sh_cannot_fetch_register): Turn into...
1640 (sh_target::low_cannot_fetch_register): ...this.
1641 (sh_cannot_store_register): Turn into...
1642 (sh_target::low_cannot_store_register): ...this.
1643 (the_low_target): Remove the op fields.
1644 * linux-sparc-low.cc (class sparc_target)
1645 <low_cannot_fetch_register>
1646 <low_cannot_store_register>: Declare.
1647 (sparc_cannot_fetch_register): Turn into...
1648 (sparc_target::low_cannot_fetch_register): ...this.
1649 (sparc_cannot_store_register): Turn into...
1650 (sparc_target::low_cannot_store_register): ...this.
1651 (the_low_target): Remove the op fields.
1652 * linux-tic6x-low.cc (class tic6x_target)
1653 <low_cannot_fetch_register>
1654 <low_cannot_store_register>: Declare.
1655 (tic6x_cannot_fetch_register): Turn into...
1656 (tic6x_target::low_cannot_fetch_register): ...this.
1657 (tic6x_cannot_store_register): Turn into...
1658 (tic6x_target::low_cannot_store_register): ...this.
1659 (the_low_target): Remove the op fields.
1660 * linux-tile-low.cc (class tile_target)
1661 <low_cannot_fetch_register>
1662 <low_cannot_store_register>: Declare.
1663 (tile_cannot_fetch_register): Turn into...
1664 (tile_target::low_cannot_fetch_register): ...this.
1665 (tile_cannot_store_register): Turn into...
1666 (tile_target::low_cannot_store_register): ...this.
1667 (the_low_target): Remove the op fields.
1668 * linux-xtensa-low.cc (class xtensa_target)
1669 <low_cannot_fetch_register>
1670 <low_cannot_store_register>: Declare.
1671 (xtensa_target::low_cannot_fetch_register)
1672 (xtensa_target::low_cannot_store_register): Define.
1673 (the_low_target): Remove the op fields.
1674
aa8d21c9
TBA
16752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1676
1677 Turn the 'regs_info' linux target op into a method of
1678 linux_process_target.
1679
1680 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1681 (class linux_process_target) <get_regs_info>: Define.
1682
1683 Update the callers below.
1684
1685 * linux-low.cc (linux_process_target::fetch_registers)
1686 (linux_process_target::store_registers)
1687 * proc-service.cc (gregset_info)
1688
1689 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1690 (x86_linux_regs_info): Turn into ...
1691 (x86_target::get_regs_info): ...this.
1692 (the_low_target): Remove the op field.
1693 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1694 Declare.
1695 (aarch64_regs_info): Turn into ...
1696 (aarch64_target::get_regs_info): ...this.
1697 (the_low_target): Remove the op field.
1698 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1699 (arm_regs_info): Turn into ...
1700 (arm_target::get_regs_info): ...this.
1701 (the_low_target): Remove the op field.
1702 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1703 (bfin_regs_info): Turn into ...
1704 (bfin_target::get_regs_info): ...this.
1705 (the_low_target): Remove the op field.
1706 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1707 (cris_regs_info): Turn into ...
1708 (cris_target::get_regs_info): ...this.
1709 (the_low_target): Remove the op field.
1710 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1711 Declare.
1712 (crisv32_regs_info): Turn into ...
1713 (crisv32_target::get_regs_info): ...this.
1714 (the_low_target): Remove the op field.
1715 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1716 (ia64_regs_info): Turn into ...
1717 (ia64_target::get_regs_info): ...this.
1718 (the_low_target): Remove the op field.
1719 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1720 (m32r_regs_info): Turn into ...
1721 (m32r_target::get_regs_info): ...this.
1722 (the_low_target): Remove the op field.
1723 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1724 (m68k_regs_info): Turn into ...
1725 (m68k_target::get_regs_info): ...this.
1726 (the_low_target): Remove the op field.
1727 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1728 (mips_regs_info): Turn into ...
1729 (mips_target::get_regs_info): ...this.
1730 (the_low_target): Remove the op field.
1731 (get_usrregs_info): Update the call to the op.
1732 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1733 (nios2_regs_info): Turn into ...
1734 (nios2_target::get_regs_info): ...this.
1735 (the_low_target): Remove the op field.
1736 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1737 (ppc_regs_info): Turn into ...
1738 (ppc_target::get_regs_info): ...this.
1739 (the_low_target): Remove the op field.
1740 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1741 (riscv_regs_info): Turn into ...
1742 (riscv_target::get_regs_info): ...this.
1743 (the_low_target): Remove the op field.
1744 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1745 (s390_regs_info): Turn into ...
1746 (s390_target::get_regs_info): ...this.
1747 (the_low_target): Remove the op field.
1748 (s390_collect_ptrace_register)
1749 (s390_supply_ptrace_register)
1750 (s390_fill_gregset): Update the call to the op.
1751 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1752 (sh_regs_info): Turn into ...
1753 (sh_target::get_regs_info): ...this.
1754 (the_low_target): Remove the op field.
1755 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1756 (sparc_regs_info): Turn into ...
1757 (sparc_target::get_regs_info): ...this.
1758 (the_low_target): Remove the op field.
1759 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1760 (tic6x_regs_info): Turn into ...
1761 (tic6x_target::get_regs_info): ...this.
1762 (the_low_target): Remove the op field.
1763 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1764 (tile_regs_info): Turn into ...
1765 (tile_target::get_regs_info): ...this.
1766 (the_low_target): Remove the op field.
1767 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1768 Declare.
1769 (xtensa_regs_info): Turn into ...
1770 (xtensa_target::get_regs_info): ...this.
1771 (the_low_target): Remove the op field.
1772
797bcff5
TBA
17732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1774
1775 Turn the 'arch_setup' linux target op into a method of
1776 linux_process_target.
1777
1778 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1779 (class linux_process_target) <arch_setup_thread>
1780 <low_arch_setup>: New declarations.
1781 * linux-low.cc (linux_arch_setup): Delete.
1782 (linux_arch_setup_thread): Turn into...
1783 (linux_process_target::arch_setup_thread): ... this.
1784
1785 Update the callers below.
1786
1787 (linux_process_target::handle_extended_wait)
1788 (linux_process_target::post_create_inferior)
1789 (linux_process_target::filter_event)
1790
1791 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1792 declaration.
1793 (x86_linux_update_xmltarget): Turn into...
1794 (x86_target::update_xmltarget): ...this.
1795 (x86_linux_process_qsupported): Update the call to
1796 x86_linux_update_xmltarget.
1797 (x86_arch_setup): Turn into ...
1798 (x86_target::low_arch_setup): ...this.
1799 (the_low_target): Remove the op field.
1800 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1801 declaration.
1802 (aarch64_arch_setup): Turn into ...
1803 (aarch64_target::low_arch_setup): ...this.
1804 (the_low_target): Remove the op field.
1805 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1806 declaration.
1807 (arm_arch_setup): Turn into ...
1808 (arm_target::low_arch_setup): ...this.
1809 (the_low_target): Remove the op field.
1810 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1811 declaration.
1812 (bfin_arch_setup): Turn into ...
1813 (bfin_target::low_arch_setup): ...this.
1814 (the_low_target): Remove the op field.
1815 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1816 declaration.
1817 (cris_arch_setup): Turn into ...
1818 (cris_target::low_arch_setup): ...this.
1819 (the_low_target): Remove the op field.
1820 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1821 declaration.
1822 (crisv32_arch_setup): Turn into ...
1823 (crisv32_target::low_arch_setup): ...this.
1824 (the_low_target): Remove the op field.
1825 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1826 declaration.
1827 (ia64_arch_setup): Turn into ...
1828 (ia64_target::low_arch_setup): ...this.
1829 (the_low_target): Remove the op field.
1830 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1831 declaration.
1832 (m32r_arch_setup): Turn into ...
1833 (m32r_target::low_arch_setup): ...this.
1834 (the_low_target): Remove the op field.
1835 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1836 declaration.
1837 (m68k_arch_setup): Turn into ...
1838 (m68k_target::low_arch_setup): ...this.
1839 (the_low_target): Remove the op field.
1840 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1841 declaration.
1842 (mips_arch_setup): Turn into ...
1843 (mips_target::low_arch_setup): ...this.
1844 (the_low_target): Remove the op field.
1845 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1846 declaration.
1847 (nios2_arch_setup): Turn into ...
1848 (nios2_target::low_arch_setup): ...this.
1849 (the_low_target): Remove the op field.
1850 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1851 declaration.
1852 (ppc_arch_setup): Turn into ...
1853 (ppc_target::low_arch_setup): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1856 declaration.
1857 (riscv_arch_setup): Turn into ...
1858 (riscv_target::low_arch_setup): ...this.
1859 (the_low_target): Remove the op field.
1860 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1861 declaration.
1862 (s390_arch_setup): Turn into ...
1863 (s390_target::low_arch_setup): ...this.
1864 (the_low_target): Remove the op field.
1865 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1866 declaration.
1867 (sh_arch_setup): Turn into ...
1868 (sh_target::low_arch_setup): ...this.
1869 (the_low_target): Remove the op field.
1870 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1871 declaration.
1872 (sparc_arch_setup): Turn into ...
1873 (sparc_target::low_arch_setup): ...this.
1874 (the_low_target): Remove the op field.
1875 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1876 declaration.
1877 (tic6x_arch_setup): Turn into ...
1878 (tic6x_target::low_arch_setup): ...this.
1879 (the_low_target): Remove the op field.
1880 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1881 declaration.
1882 (tile_arch_setup): Turn into ...
1883 (tile_target::low_arch_setup): ...this.
1884 (the_low_target): Remove the op field.
1885 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1886 declaration.
1887 (xtensa_arch_setup): Turn into ...
1888 (xtensa_target::low_arch_setup): ...this.
1889 (the_low_target): Remove the op field.
1890
ef0478f6
TBA
18912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1892
1893 * linux-low.h (the_linux_target): New extern declaration.
1894 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1895 'the_target'.
1896 (the_linux_target): Remove.
1897 * linux-x86-low.cc (class x86_target): New class.
1898 (the_x86_target): New static object.
1899 (the_linux_target): Define as pointer to the_x86_target.
1900 * linux-aarch64-low.cc (class aarch64_target): New class.
1901 (the_aarch64_target): New static object.
1902 (the_linux_target): Define as pointer to the_aarch64_target.
1903 * linux-arm-low.cc (class arm_target): New class.
1904 (the_arm_target): New static object.
1905 (the_linux_target): Define as pointer to the_arm_target.
1906 * linux-bfin-low.cc (class bfin_target): New class.
1907 (the_bfin_target): New static object.
1908 (the_linux_target): Define as pointer to the_bfin_target.
1909 * linux-cris-low.cc (class cris_target): New class.
1910 (the_cris_target): New static object.
1911 (the_linux_target): Define as pointer to the_cris_target.
1912 * linux-crisv32-low.cc (class crisv32_target): New class.
1913 (the_crisv32_target): New static object.
1914 (the_linux_target): Define as pointer to the_crisv32_target.
1915 * linux-ia64-low.cc (class ia64_target): New class.
1916 (the_ia64_target): New static object.
1917 (the_linux_target): Define as pointer to the_ia64_target.
1918 * linux-m32r-low.cc (class m32r_target): New class.
1919 (the_m32r_target): New static object.
1920 (the_linux_target): Define as pointer to the_m32r_target.
1921 * linux-m68k-low.cc (class m68k_target): New class.
1922 (the_m68k_target): New static object.
1923 (the_linux_target): Define as pointer to the_m68k_target.
1924 * linux-mips-low.cc (class mips_target): New class.
1925 (the_mips_target): New static object.
1926 (the_linux_target): Define as pointer to the_mips_target.
1927 * linux-nios2-low.cc (class nios2_target): New class.
1928 (the_nios2_target): New static object.
1929 (the_linux_target): Define as pointer to the_nios2_target.
1930 * linux-ppc-low.cc (class ppc_target): New class.
1931 (the_ppc_target): New static object.
1932 (the_linux_target): Define as pointer to the_ppc_target.
1933 * linux-riscv-low.cc (class riscv_target): New class.
1934 (the_riscv_target): New static object.
1935 (the_linux_target): Define as pointer to the_riscv_target.
1936 * linux-s390-low.cc (class s390_target): New class.
1937 (the_s390_target): New static object.
1938 (the_linux_target): Define as pointer to the_s390_target.
1939 * linux-sh-low.cc (class sh_target): New class.
1940 (the_sh_target): New static object.
1941 (the_linux_target): Define as pointer to the_sh_target.
1942 * linux-sparc-low.cc (class sparc_target): New class.
1943 (the_sparc_target): New static object.
1944 (the_linux_target): Define as pointer to the_sparc_target.
1945 * linux-tic6x-low.cc (class tic6x_target): New class.
1946 (the_tic6x_target): New static object.
1947 (the_linux_target): Define as pointer to the_tic6x_target.
1948 * linux-tile-low.cc (class tile_target): New class.
1949 (the_tile_target): New static object.
1950 (the_linux_target): Define as pointer to the_tile_target.
1951 * linux-xtensa-low.cc (class xtensa_target): New class.
1952 (the_xtensa_target): New static object.
1953 (the_linux_target): Define as pointer to the_xtensa_target.
1954
d16f3f6c
TBA
19552020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1956
1957 Turn some static functions in linux-low.cc into private methods of
1958 linux_process_target.
1959
1960 * linux-low.cc (handle_extended_wait): Turn into ...
1961 (linux_process_target::handle_extended_wait): ...this. Call
1962 'mourn' on 'this' object instead of 'the_target'.
1963 (maybe_move_out_of_jump_pad): Turn into...
1964 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1965 (linux_low_filter_event): Turn into...
1966 (linux_process_target::filter_event): ...this.
1967 (linux_wait_for_event_filtered): Turn into...
1968 (linux_process_target::wait_for_event_filtered): ...this.
1969 (linux_wait_for_event): Turn into...
1970 (linux_process_target::wait_for_event): ...this.
1971 (linux_wait_1): Turn into...
1972 (linux_process_target::wait_1): ...this.
1973 (wait_for_sigstop): Turn into...
1974 (linux_process_target::wait_for_sigstop): ...this.
1975 (move_out_of_jump_pad_callback): Turn into...
1976 (linux_process_target::move_out_of_jump_pad): ...this.
1977 (stop_all_lwps): Turn into...
1978 (linux_process_target::stop_all_lwps): ...this.
1979 (start_step_over): Turn into...
1980 (linux_process_target::start_step_over): ...this.
1981 (complete_ongoing_step_over): Turn into...
1982 (linux_process_target::complete_ongoing_step_over): ...this.
1983 (proceed_all_lwps): Turn into...
1984 (linux_process_target::proceed_all_lwps): ...this.
1985 (unstop_all_lwps): Turn into...
1986 (linux_process_target::unstop_all_lwps): ...this.
1987
1988 * linux-low.h (class linux_process_target)
1989 <handle_extended_wait>
1990 <maybe_move_out_of_jump_pad>
1991 filter_event>
1992 <wait_for_event_filtered>
1993 <wait_for_event>
1994 <wait_1>
1995 <wait_for_sigstop>
1996 <move_out_of_jump_pad>
1997 <stop_all_lwps>
1998 <start_step_over>
1999 <complete_ongoing_step_over>
2000 <proceed_all_lwps>
2001 <unstop_all_lwps>: Declare.
2002
2003 Update the callers below.
2004
2005 * linux-low.cc (linux_process_target::attach): Update.
2006 (linux_process_target::stabilize_threads): Ditto.
2007 (linux_process_target::wait): Ditto.
2008
a5863204
TBA
20092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2010
2011 * linux-low.h (struct linux_target_ops): Update the comment for
2012 'cannot_store_register' to return 0 or 1.
2013 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2014 of 2.
2015
c884cc46
SM
20162020-03-20 Simon Marchi <simon.marchi@efficios.com>
2017
2018 * config.in: Re-generate.
2019 * configure: Re-generate.
2020
5a82b8a1
KR
20212020-03-17 Kamil Rytarowski <n54@gmx.com>
2022
2023 * regcache.cc (find_register_by_number): Update.
2024 * tdesc.cc (init_target_desc): Likewise.
2025 * tdesc.h (target_desc::reg_defs): Likewise.
2026
4635ff97
TT
20272020-03-12 Tom Tromey <tom@tromey.com>
2028
2029 * configure: Rebuild.
2030 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2031 (WIN32APILIBS): New subst.
2032 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2033 gdbsupport files.
2034 (gdbsupport/%.o): Remove target.
2035 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2036 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2037 (WIN32APILIBS): New variable.
2038 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2039 (gdbreplay$(EXEEXT)): Likewise.
2040
9a665d62
TT
20412020-03-12 Tom Tromey <tom@tromey.com>
2042
2043 * config.in, configure: Rebuild.
2044 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2045 * acinclude.m4: Include gettext-sister.m4.
2046 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2047 variables.
2048 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2049 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2050
272cd5a3
SM
20512020-03-12 Simon Marchi <simon.marchi@efficios.com>
2052
2053 * acinclude.m4: Update path to selftest.m4.
2054
db6878ac
SM
20552020-03-12 Simon Marchi <simon.marchi@efficios.com>
2056
2057 * configure.ac: Don't source bfd/development.sh, move
2058 GDB_AC_COMMON higher.
2059 * configure: Re-generate.
2060
4d696a5c
SM
20612020-03-12 Simon Marchi <simon.marchi@efficios.com>
2062
2063 * configure: Re-generate.
2064
a0761e34
SM
20652020-03-11 Simon Marchi <simon.marchi@efficios.com>
2066
2067 * configure: Re-generate.
2068
20ea4a60
AB
20692020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * .dir-locals.el: New file.
2072
842806cb
TBA
20732020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2074
2075 * .gitattributes: New file.
2076
442131c1
AB
20772020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2078
2079 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2080 reply into an S reply.
2081 * server.cc (disable_packet_T): New global.
2082 (captured_main): Set new global when appropriate.
2083 * server.h (disable_packet_T): Declare.
2084
dda42c0b
TT
20852020-02-21 Tom Tromey <tom@tromey.com>
2086
2087 * Makefile.in (mostlyclean): New target.
2088
52405d85
TBA
20892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2090
2091 * target.h (struct process_stratum_target): Remove.
2092 (class process_target): Rename to ...
2093 (class process_stratum_target): ... this.
2094 * linux-low.h (class linux_process_target): Derive from
2095 'process_stratum_target'.
2096 * linux-low.cc (linux_target_ops): Remove.
2097 (initialize_low): Set the_target to the singleton instance of
2098 linux_process_target.
2099 * lynx-low.h (class lynx_process_target): Derive from
2100 'process_stratum_target'.
2101 * lynx-low.cc (lynx_target_ops): Remove.
2102 (initialize_low): Set the_target to the singleton instance of
2103 lynx_process_target.
2104 * nto-low.h (class nto_process_target): Derive from
2105 'process_stratum_target'.
2106 * nto-low.cc (nto_target_ops): Remove.
2107 (initialize_low): Set the_target to the singleton instance of
2108 nto_process_target.
2109 * win32-low.h (class win32_process_target): Derive from
2110 'process_stratum_target'.
2111 * win32-low.cc (win32_target_ops): Remove.
2112 (initialize_low): Set the_target to the singleton instance of
2113 win32_process_target.
2114
2115 Replace 'the_target->pt' with 'the_target' in the uses below.
2116
2117 * hostio.cc (hostio_error)
2118 (handle_setfs)
2119 (handle_open)
2120 (handle_unlink)
2121 (handle_readlink)
2122 * linux-aarch32-low.cc (arm_breakpoint_at)
2123 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2124 * linux-arm-low.cc (arm_sigreturn_next_pc)
2125 (arm_get_hwcap)
2126 (arm_get_syscall_trapinfo)
2127 * linux-cris-low.cc (cris_breakpoint_at)
2128 * linux-crisv32-low.cc (cris_breakpoint_at)
2129 * linux-low.cc (handle_extended_wait)
2130 (linux_wait_1)
2131 (linux_read_memory)
2132 (linux_process_target::breakpoint_kind_from_pc)
2133 (linux_get_auxv)
2134 * linux-m32r-low.cc (m32r_breakpoint_at)
2135 * linux-mips-low.cc (mips_breakpoint_at)
2136 * linux-nios2-low.cc (nios2_breakpoint_at)
2137 * linux-ppc-low.cc (ppc_breakpoint_at)
2138 * linux-s390-low.cc (s390_get_hwcap)
2139 * linux-sh-low.cc (sh_breakpoint_at)
2140 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2141 (sparc_store_gregset_from_stack)
2142 (sparc_breakpoint_at)
2143 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2144 * linux-tile-low.cc (tile_breakpoint_at)
2145 * linux-x86-low.cc (x86_breakpoint_at)
2146 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2147 * mem-break.cc (bp_size)
2148 (bp_opcode)
2149 (insert_memory_breakpoint)
2150 (set_raw_breakpoint_at)
2151 (delete_raw_breakpoint)
2152 (z_type_supported)
2153 (uninsert_raw_breakpoint)
2154 (reinsert_raw_breakpoint)
2155 (validate_inserted_breakpoint)
2156 * regcache.cc (regcache_read_pc)
2157 (regcache_write_pc)
2158 * remote-utils.cc (putpkt_binary_1)
2159 (input_interrupt)
2160 (getpkt)
2161 (prepare_resume_reply)
2162 * server.cc (handle_general_set)
2163 (handle_detach)
2164 (handle_qxfer_auxv)
2165 (handle_qxfer_exec_file)
2166 (handle_qxfer_libraries_svr4)
2167 (handle_qxfer_osdata)
2168 (handle_qxfer_siginfo)
2169 (handle_qxfer_fdpic)
2170 (handle_query)
2171 (resume)
2172 (handle_v_requests)
2173 (queue_stop_reply_callback)
2174 (captured_main)
2175 * target.cc (prepare_to_access_memory)
2176 (done_accessing_memory)
2177 (read_inferior_memory)
2178 (target_write_memory)
2179 (target_stop_and_wait)
2180 (target_wait)
2181 (target_mourn_inferior)
2182 (target_continue_no_signal)
2183 (target_continue)
2184 (target_supports_multi_process)
2185 (kill_inferior)
2186 * target.h
2187 (target_create_inferior)
2188 (target_post_create_inferior)
2189 (myattach)
2190 (target_supports_fork_events)
2191 (target_supports_vfork_events)
2192 (target_supports_exec_events)
2193 (target_handle_new_gdb_connection)
2194 (detach_inferior)
2195 (mythread_alive)
2196 (fetch_inferior_registers)
2197 (store_inferior_registers)
2198 (join_inferior)
2199 (target_supports_non_stop)
2200 (target_async)
2201 (target_process_qsupported)
2202 (target_supports_catch_syscall)
2203 (target_get_ipa_tdesc_idx)
2204 (target_supports_tracepoints)
2205 (target_supports_fast_tracepoints)
2206 (target_get_min_fast_tracepoint_insn_len)
2207 (target_thread_stopped)
2208 (target_pause_all)
2209 (target_unpause_all)
2210 (target_stabilize_threads)
2211 (target_install_fast_tracepoint_jump_pad)
2212 (target_emit_ops)
2213 (target_supports_disable_randomization)
2214 (target_supports_agent)
2215 (target_enable_btrace)
2216 (target_disable_btrace)
2217 (target_read_btrace)
2218 (target_read_btrace_conf)
2219 (target_supports_range_stepping)
2220 (target_supports_stopped_by_sw_breakpoint)
2221 (target_stopped_by_sw_breakpoint)
2222 (target_supports_stopped_by_hw_breakpoint)
2223 (target_supports_hardware_single_step)
2224 (target_stopped_by_hw_breakpoint)
2225 (target_breakpoint_kind_from_pc)
2226 (target_breakpoint_kind_from_current_state)
2227 (target_supports_software_single_step)
2228 (target_core_of_thread)
2229 (target_thread_name)
2230 (target_thread_handle)
2231 * win32-low.cc (do_initial_child_stuff)
2232
2233 Rename target op default definitions listed below.
2234
2235 * target.cc (process_target::post_create_inferior): Rename as ...
2236 (process_stratum_target::post_create_inferior): ... this.
2237 (process_target::prepare_to_access_memory): Rename as ...
2238 (process_stratum_target::prepare_to_access_memory): ... this.
2239 (process_target::done_accessing_memory): Rename as ...
2240 (process_stratum_target::done_accessing_memory): ... this.
2241 (process_target::look_up_symbols): Rename as ...
2242 (process_stratum_target::look_up_symbols): ... this.
2243 (process_target::supports_read_auxv): Rename as ...
2244 (process_stratum_target::supports_read_auxv): ... this.
2245 (process_target::read_auxv): Rename as ...
2246 (process_stratum_target::read_auxv): ... this.
2247 (process_target::supports_z_point_type): Rename as ...
2248 (process_stratum_target::supports_z_point_type): ... this.
2249 (process_target::insert_point): Rename as ...
2250 (process_stratum_target::insert_point): ... this.
2251 (process_target::remove_point): Rename as ...
2252 (process_stratum_target::remove_point): ... this.
2253 (process_target::stopped_by_sw_breakpoint): Rename as ...
2254 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2255 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2256 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2257 (process_target::stopped_by_hw_breakpoint): Rename as ...
2258 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2259 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2260 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2261 (process_target::supports_hardware_single_step): Rename as ...
2262 (process_stratum_target::supports_hardware_single_step): ... this.
2263 (process_target::stopped_by_watchpoint): Rename as ...
2264 (process_stratum_target::stopped_by_watchpoint): ... this.
2265 (process_target::stopped_data_address): Rename as ...
2266 (process_stratum_target::stopped_data_address): ... this.
2267 (process_target::supports_read_offsets): Rename as ...
2268 (process_stratum_target::supports_read_offsets): ... this.
2269 (process_target::read_offsets): Rename as ...
2270 (process_stratum_target::read_offsets): ... this.
2271 (process_target::supports_get_tls_address): Rename as ...
2272 (process_stratum_target::supports_get_tls_address): ... this.
2273 (process_target::get_tls_address): Rename as ...
2274 (process_stratum_target::get_tls_address): ... this.
2275 (process_target::hostio_last_error): Rename as ...
2276 (process_stratum_target::hostio_last_error): ... this.
2277 (process_target::supports_qxfer_osdata): Rename as ...
2278 (process_stratum_target::supports_qxfer_osdata): ... this.
2279 (process_target::qxfer_osdata): Rename as ...
2280 (process_stratum_target::qxfer_osdata): ... this.
2281 (process_target::supports_qxfer_siginfo): Rename as ...
2282 (process_stratum_target::supports_qxfer_siginfo): ... this.
2283 (process_target::qxfer_siginfo): Rename as ...
2284 (process_stratum_target::qxfer_siginfo): ... this.
2285 (process_target::supports_non_stop): Rename as ...
2286 (process_stratum_target::supports_non_stop): ... this.
2287 (process_target::async): Rename as ...
2288 (process_stratum_target::async): ... this.
2289 (process_target::start_non_stop): Rename as ...
2290 (process_stratum_target::start_non_stop): ... this.
2291 (process_target::supports_multi_process): Rename as ...
2292 (process_stratum_target::supports_multi_process): ... this.
2293 (process_target::supports_fork_events): Rename as ...
2294 (process_stratum_target::supports_fork_events): ... this.
2295 (process_target::supports_vfork_events): Rename as ...
2296 (process_stratum_target::supports_vfork_events): ... this.
2297 (process_target::supports_exec_events): Rename as ...
2298 (process_stratum_target::supports_exec_events): ... this.
2299 (process_target::handle_new_gdb_connection): Rename as ...
2300 (process_stratum_target::handle_new_gdb_connection): ... this.
2301 (process_target::handle_monitor_command): Rename as ...
2302 (process_stratum_target::handle_monitor_command): ... this.
2303 (process_target::core_of_thread): Rename as ...
2304 (process_stratum_target::core_of_thread): ... this.
2305 (process_target::supports_read_loadmap): Rename as ...
2306 (process_stratum_target::supports_read_loadmap): ... this.
2307 (process_target::read_loadmap): Rename as ...
2308 (process_stratum_target::read_loadmap): ... this.
2309 (process_target::process_qsupported): Rename as ...
2310 (process_stratum_target::process_qsupported): ... this.
2311 (process_target::supports_tracepoints): Rename as ...
2312 (process_stratum_target::supports_tracepoints): ... this.
2313 (process_target::read_pc): Rename as ...
2314 (process_stratum_target::read_pc): ... this.
2315 (process_target::write_pc): Rename as ...
2316 (process_stratum_target::write_pc): ... this.
2317 (process_target::supports_thread_stopped): Rename as ...
2318 (process_stratum_target::supports_thread_stopped): ... this.
2319 (process_target::thread_stopped): Rename as ...
2320 (process_stratum_target::thread_stopped): ... this.
2321 (process_target::supports_get_tib_address): Rename as ...
2322 (process_stratum_target::supports_get_tib_address): ... this.
2323 (process_target::get_tib_address): Rename as ...
2324 (process_stratum_target::get_tib_address): ... this.
2325 (process_target::pause_all): Rename as ...
2326 (process_stratum_target::pause_all): ... this.
2327 (process_target::unpause_all): Rename as ...
2328 (process_stratum_target::unpause_all): ... this.
2329 (process_target::stabilize_threads): Rename as ...
2330 (process_stratum_target::stabilize_threads): ... this.
2331 (process_target::supports_fast_tracepoints): Rename as ...
2332 (process_stratum_target::supports_fast_tracepoints): ... this.
2333 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2334 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2335 (process_target::emit_ops): Rename as ...
2336 (process_stratum_target::emit_ops): ... this.
2337 (process_target::supports_disable_randomization): Rename as ...
2338 (process_stratum_target::supports_disable_randomization): ... this.
2339 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2340 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2341 (process_target::qxfer_libraries_svr4): Rename as ...
2342 (process_stratum_target::qxfer_libraries_svr4): ... this.
2343 (process_target::supports_agent): Rename as ...
2344 (process_stratum_target::supports_agent): ... this.
2345 (process_target::enable_btrace): Rename as ...
2346 (process_stratum_target::enable_btrace): ... this.
2347 (process_target::disable_btrace): Rename as ...
2348 (process_stratum_target::disable_btrace): ... this.
2349 (process_target::read_btrace): Rename as ...
2350 (process_stratum_target::read_btrace): ... this.
2351 (process_target::read_btrace_conf): Rename as ...
2352 (process_stratum_target::read_btrace_conf): ... this.
2353 (process_target::supports_range_stepping): Rename as ...
2354 (process_stratum_target::supports_range_stepping): ... this.
2355 (process_target::supports_pid_to_exec_file): Rename as ...
2356 (process_stratum_target::supports_pid_to_exec_file): ... this.
2357 (process_target::pid_to_exec_file): Rename as ...
2358 (process_stratum_target::pid_to_exec_file): ... this.
2359 (process_target::supports_multifs): Rename as ...
2360 (process_stratum_target::supports_multifs): ... this.
2361 (process_target::multifs_open): Rename as ...
2362 (process_stratum_target::multifs_open): ... this.
2363 (process_target::multifs_unlink): Rename as ...
2364 (process_stratum_target::multifs_unlink): ... this.
2365 (process_target::multifs_readlink): Rename as ...
2366 (process_stratum_target::multifs_readlink): ... this.
2367 (process_target::breakpoint_kind_from_pc): Rename as ...
2368 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2369 (process_target::breakpoint_kind_from_current_state): Rename as ...
2370 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2371 (process_target::thread_name): Rename as ...
2372 (process_stratum_target::thread_name): ... this.
2373 (process_target::thread_handle): Rename as ...
2374 (process_stratum_target::thread_handle): ... this.
2375 (process_target::supports_software_single_step): Rename as ...
2376 (process_stratum_target::supports_software_single_step): ... this.
2377 (process_target::supports_catch_syscall): Rename as ...
2378 (process_stratum_target::supports_catch_syscall): ... this.
2379 (process_target::get_ipa_tdesc_idx): Rename as ...
2380 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2381
478f9adf
PA
23822020-02-20 Pedro Alves <palves@redhat.com>
2383
2384 * target.cc (set_target_ops): Simply copy the given target pointer
2385 instead of creating a copy of the pointed object.
2386
d633e831
TBA
23872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2388
2389 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2390 of process_target.
2391
2392 * target.h (struct process_stratum_target): Remove the target op.
2393 (class process_target): Add the target op.
2394 (target_get_ipa_tdesc_idx): Update the macro.
2395 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2396
2397 Update the derived classes and callers below.
2398
2399 * linux-low.cc (linux_target_ops): Update.
2400 (linux_get_ipa_tdesc_idx): Turn into ...
2401 (linux_process_target::get_ipa_tdesc_idx): ... this.
2402 * linux-low.h (class linux_process_target): Update.
2403 * lynx-low.cc (lynx_target_ops): Update.
2404 * nto-low.cc (nto_target_ops): Update.
2405 * win32-low.cc (win32_target_ops): Update.
2406
bc8d3ae4
TBA
24072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2408
2409 Turn process_stratum_target's supports_catch_syscall op into a
2410 method of process_target.
2411
2412 * target.h (struct process_stratum_target): Remove the target op.
2413 (class process_target): Add the target op.
2414 (target_supports_catch_syscall): Update the macro.
2415 * target.cc (process_target::supports_catch_syscall): Define.
2416
2417 Update the derived classes and callers below.
2418
2419 * linux-low.cc (linux_target_ops): Update.
2420 (linux_supports_catch_syscall): Turn into ...
2421 (linux_process_target::supports_catch_syscall): ... this.
2422 * linux-low.h (class linux_process_target): Update.
2423 * lynx-low.cc (lynx_target_ops): Update.
2424 * nto-low.cc (nto_target_ops): Update.
2425 * win32-low.cc (win32_target_ops): Update.
2426
5303a34f
TBA
24272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2428
2429 Turn process_stratum_target's supports_software_single_step op
2430 into a method of process_target.
2431
2432 * target.h (struct process_stratum_target): Remove the target op.
2433 (class process_target): Add the target op.
2434 (target_supports_software_single_step): Update the macro.
2435 * target.cc (process_target::supports_software_single_step): Define.
2436
2437 Update the derived classes and callers below.
2438
2439 * linux-low.cc (linux_target_ops): Update.
2440 (linux_supports_software_single_step): Turn into ...
2441 (linux_process_target::supports_software_single_step): ... this.
2442 * linux-low.h (class linux_process_target): Update.
2443 * lynx-low.cc (lynx_target_ops): Update.
2444 * nto-low.cc (nto_target_ops): Update.
2445 * win32-low.cc (win32_target_ops): Update.
2446
7f63b89b
TBA
24472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2448
2449 Turn process_stratum_target's thread_name and thread_handle ops
2450 into methods of process_target.
2451
2452 * target.h (struct process_stratum_target): Remove the target ops.
2453 (class process_target): Add the target ops.
2454 (target_thread_name): Update the macro.
2455 (target_thread_handle): Update the macro.
2456 * target.cc (process_target::thread_name): Define.
2457 (process_target::thread_handle): Define.
2458
2459 Update the derived classes and callers below.
2460
2461 * linux-low.cc (linux_target_ops): Update.
2462 (linux_process_target::thread_name): Define.
2463 (linux_process_target::thread_handle): Define.
2464 * linux-low.h (class linux_process_target): Update.
2465 * lynx-low.cc (lynx_target_ops): Update.
2466 * nto-low.cc (nto_target_ops): Update.
2467 * win32-low.cc (win32_target_ops): Update.
2468
d367006f
TBA
24692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2470
2471 Turn process_stratum_target's breakpoint_kind_from_pc,
2472 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2473 ops into methods of process_target.
2474
2475 * target.h (struct process_stratum_target): Remove the target op.
2476 (class process_target): Add the target op.
2477 (target_breakpoint_kind_from_pc): Update the macro.
2478 (target_breakpoint_kind_from_current_state): Update the macro.
2479 (default_breakpoint_kind_from_pc): Remove declaration.
2480 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2481 (process_target::breakpoint_kind_from_pc): ... this.
2482 (process_target::breakpoint_kind_from_current_state): Define.
2483
2484 Update the derived classes and callers below.
2485
2486 * mem-break.cc (bp_size): Update.
2487 (bp_opcode): Update.
2488 * linux-low.cc (linux_target_ops): Update.
2489 (linux_wait_1): Update.
2490 (linux_breakpoint_kind_from_pc): Turn into ...
2491 (linux_process_target::breakpoint_kind_from_pc): ... this.
2492 (linux_sw_breakpoint_from_kind): Turn into ...
2493 (linux_process_target::sw_breakpoint_from_kind): ... this.
2494 (linux_breakpoint_kind_from_current_state): Turn into ...
2495 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2496 * linux-low.h (class linux_process_target): Update.
2497 * lynx-low.cc (lynx_target_ops): Update.
2498 (lynx_process_target::sw_breakpoint_from_kind): Define.
2499 * lynx-low.h (class lynx_process_target): Update.
2500 * nto-low.cc (nto_target_ops): Update.
2501 (nto_sw_breakpoint_from_kind): Turn into ...
2502 (nto_process_target::sw_breakpoint_from_kind): ... this.
2503 * nto-low.h (class nto_process_target): Update.
2504 * win32-low.cc (win32_target_ops): Update.
2505 (win32_sw_breakpoint_from_kind): Turn into ...
2506 (win32_process_target::sw_breakpoint_from_kind): ... this.
2507 * win32-low.h (class win32_process_target): Update.
2508
c9b7b804
TBA
25092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2510
2511 Turn process_stratum_target's multifs_open, multifs_readlink,
2512 multifs_unlink ops into methods of process_target.
2513
2514 * target.h (struct process_stratum_target): Remove the target ops.
2515 (class process_target): Add the target ops. Also add
2516 'supports_multifs'.
2517 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2518 "sys/stat.h".
2519 (process_target::supports_multifs): Define.
2520 (process_target::multifs_open): Define.
2521 (process_target::multifs_readlink): Define.
2522 (process_target::multifs_unlink): Define.
2523
2524 Update the derived classes and callers below.
2525
2526 * hostio.cc (handle_setfs): Update.
2527 (handle_open): Update.
2528 (handle_unlink): Update.
2529 (handle_readlink): Update.
2530 * linux-low.cc (linux_target_ops): Update.
2531 (linux_process_target::supports_multifs): Define.
2532 (linux_process_target::multifs_open): Define.
2533 (linux_process_target::multifs_readlink): Define.
2534 (linux_process_target::multifs_unlink): Define.
2535 * linux-low.h (class linux_process_target): Update.
2536 * lynx-low.cc (lynx_target_ops): Update.
2537 * nto-low.cc (nto_target_ops): Update.
2538 * win32-low.cc (win32_target_ops): Update.
2539
8247b823
TBA
25402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2541
2542 Turn process_stratum_target's pid_to_exec_file op into a method
2543 of process_target.
2544
2545 * target.h (struct process_stratum_target): Remove the target op.
2546 (class process_target): Add the target op. Also add
2547 'supports_pid_to_exec_file'.
2548 * target.cc (process_target::pid_to_exec_file): Define.
2549 (process_target::supports_pid_to_exec_file): Define.
2550
2551 Update the derived classes and callers below.
2552
2553 * server.cc (handle_qxfer_exec_file): Update.
2554 (handle_query): Update.
2555 * linux-low.cc (linux_target_ops): Update.
2556 (linux_process_target::supports_pid_to_exec_file): Define.
2557 (linux_process_target::pid_to_exec_file): Define.
2558 * linux-low.h (class linux_process_target): Update.
2559 * lynx-low.cc (lynx_target_ops): Update.
2560 * nto-low.cc (nto_target_ops): Update.
2561 * win32-low.cc (win32_target_ops): Update.
2562
2526e0cd
TBA
25632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2564
2565 Turn process_stratum_target's supports_range_stepping op into a
2566 method of process_target.
2567
2568 * target.h (struct process_stratum_target): Remove the target op.
2569 (class process_target): Add the target op.
2570 (target_supports_range_stepping): Update the macro.
2571 * target.cc (process_target::supports_range_stepping): Define.
2572
2573 Update the derived classes and callers below.
2574
2575 * linux-low.cc (linux_target_ops): Update.
2576 (linux_supports_range_stepping): Turn into ...
2577 (linux_process_target::supports_range_stepping): ... this.
2578 * linux-low.h (class linux_process_target): Update.
2579 * lynx-low.cc (lynx_target_ops): Update.
2580 * nto-low.cc (nto_target_ops): Update.
2581 * win32-low.cc (win32_target_ops): Update.
2582
79597bdd
TBA
25832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2584
2585 Turn process_stratum_target's btrace-related ops (enable_btrace,
2586 disable_btrace, read_btrace, read_btrace_conf) into methods of
2587 process_target.
2588
2589 * target.h (struct process_stratum_target): Remove the target ops.
2590 (class process_target): Add the target ops.
2591 (target_enable_btrace): Update.
2592 (target_disable_btrace): Update.
2593 (target_read_btrace): Update.
2594 (target_read_btrace_conf): Update.
2595 * target.cc (process_target::enable_btrace): Define.
2596 (process_target::disable_btrace): Define.
2597 (process_target::read_btrace): Define.
2598 (process_target::read_btrace_conf): Define.
2599
2600 Update the derived classes and callers below.
2601
2602 * linux-low.cc (linux_target_ops): Update.
2603 (linux_process_target:enable_btrace): Define as a wrapper around
2604 linux_enable_btrace.
2605 (linux_low_disable_btrace): Turn into ...
2606 (linux_process_target::disable_btrace): ... this.
2607 (linux_low_read_btrace): Turn into ...
2608 (linux_process_target::read_btrace): ... this.
2609 (linux_low_btrace_conf): Turn into ...
2610 (linux_process_target::read_btrace_conf): ... this.
2611 * linux-low.h (class linux_process_target): Update.
2612 * lynx-low.cc (lynx_target_ops): Update.
2613 * nto-low.cc (nto_target_ops): Update.
2614 * win32-low.cc (win32_target_ops): Update.
2615
c0245cb9
TBA
26162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2617
2618 Turn process_stratum_target's supports_agent op into a method of
2619 process_target.
2620
2621 * target.h (struct process_stratum_target): Remove the target op.
2622 (class process_target): Add the target op.
2623 (target_supports_agent): Update the macro.
2624 * target.cc (process_target::supports_agent): Define.
2625
2626 Update the derived classes and callers below.
2627
2628 * linux-low.cc (linux_target_ops): Update.
2629 (linux_supports_agent): Turn into ...
2630 (linux_process_target::supports_agent): ... this.
2631 * linux-low.h (class linux_process_target): Update.
2632 * lynx-low.cc (lynx_target_ops): Update.
2633 * nto-low.cc (nto_target_ops): Update.
2634 * win32-low.cc (win32_target_ops): Update.
2635
974387bb
TBA
26362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2637
2638 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2639 method of process_target.
2640
2641 * target.h (struct process_stratum_target): Remove the target op.
2642 (class process_target): Add the target op. Also add
2643 'supports_qxfer_libraries_svr4'.
2644 * target.cc (process_target::qxfer_libraries_svr4): Define.
2645 (process_target::supports_qxfer_libraries_svr4): Define.
2646
2647 Update the derived classes and callers below.
2648
2649 * server.cc (handle_qxfer_libraries_svr4): Update.
2650 (handle_query): Update.
2651 * linux-low.cc (linux_target_ops): Update.
2652 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2653 (linux_qxfer_libraries_svr4): Turn into ...
2654 (linux_process_target::qxfer_libraries_svr4): ... this.
2655 * linux-low.h (class linux_process_target): Update.
2656 * lynx-low.cc (lynx_target_ops): Update.
2657 * nto-low.cc (nto_target_ops): Update.
2658 * win32-low.cc (win32_target_ops): Update.
2659
c756403b
TBA
26602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2661
2662 Turn process_stratum_target's supports_disable_randomization op
2663 into a method of process_target.
2664
2665 * target.h (struct process_stratum_target): Remove the target op.
2666 (class process_target): Add the target op.
2667 (target_supports_disable_randomization): Update the macro.
2668 * target.cc (process_target::supports_disable_randomization): Define.
2669
2670 Update the derived classes and callers below.
2671
2672 * linux-low.cc (linux_target_ops): Update.
2673 (linux_supports_disable_randomization): Turn into ...
2674 (linux_process_target::supports_disable_randomization): ... this.
2675 * linux-low.h (class linux_process_target): Update.
2676 * lynx-low.cc (lynx_target_ops): Update.
2677 * nto-low.cc (nto_target_ops): Update.
2678 * win32-low.cc (win32_target_ops): Update.
2679
345dafad
TBA
26802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2681
2682 Turn process_stratum_target's emit_ops op into a method of
2683 process_target.
2684
2685 * target.h (struct process_stratum_target): Remove the target op.
2686 (class process_target): Add the target op.
2687 (target_emit_ops): Update the macro.
2688 * target.cc (process_target::emit_ops): Define.
2689
2690 Update the derived classes and callers below.
2691
2692 * linux-low.cc (linux_target_ops): Update.
2693 (linux_emit_ops): Turn into ...
2694 (linux_process_target::emit_ops): ... this.
2695 * linux-low.h (class linux_process_target): Update.
2696 * lynx-low.cc (lynx_target_ops): Update.
2697 * nto-low.cc (nto_target_ops): Update.
2698 * win32-low.cc (win32_target_ops): Update.
2699
c23c9391
TBA
27002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2701
2702 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2703 and get_min_fast_tracepoint_insn_len ops into methods of
2704 process_target.
2705
2706 * target.h (struct process_stratum_target): Remove the target ops.
2707 (class process_target): Add the target ops. Also add
2708 'supports_fast_tracepoints'.
2709 (target_supports_fast_tracepoints): Update the macro.
2710 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2711 (install_fast_tracepoint_jump_pad): Update and rename the macro
2712 to ...
2713 (target_install_fast_tracepoint_jump_pad): ... this.
2714 * target.cc (process_target::supports_fast_tracepoints): Define.
2715 (process_target::install_fast_tracepoint_jump_pad): Define.
2716 (process_target::get_min_fast_tracepoint_insn_len): Define.
2717
2718 Update the derived classes and callers below.
2719
2720 * tracepoint.cc (install_fast_tracepoint): Update.
2721 * linux-low.cc (linux_target_ops): Update.
2722 (linux_process_target::supports_fast_tracepoints): Define.
2723 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2724 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2725 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2726 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2727 * linux-low.h (class linux_process_target): Update.
2728 * lynx-low.cc (lynx_target_ops): Update.
2729 * nto-low.cc (nto_target_ops): Update.
2730 * win32-low.cc (win32_target_ops): Update.
2731
5c9eb2f2
TBA
27322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2733
2734 Turn process_stratum_target's stabilize_threads op into a
2735 method of process_target.
2736
2737 * target.h (struct process_stratum_target): Remove the target op.
2738 (class process_target): Add the target op.
2739 (target_stabilize_threads): Update the macro.
2740 * target.cc (process_target::stabilize_threads): Define.
2741
2742 Update the derived classes and callers below.
2743
2744 * server.cc (handle_status): Update.
2745 * tracepoint.cc (cmd_qtdp): Update.
2746 (cmd_qtstart): Update.
2747 * linux-low.cc (linux_target_ops): Update.
2748 (linux_stabilize_threads): Turn into ...
2749 (linux_process_target::stabilize_threads): ... this.
2750 (linux_wait_1): Update.
2751 * linux-low.h (class linux_process_target): Update.
2752 * lynx-low.cc (lynx_target_ops): Update.
2753 * nto-low.cc (nto_target_ops): Update.
2754 * win32-low.cc (win32_target_ops): Update.
2755
29e8dc09
TBA
27562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2757
2758 Turn process_stratum_target's pause_all and unpause_all ops
2759 into methods of process_target.
2760
2761 * target.h (struct process_stratum_target): Remove the target ops.
2762 (class process_target): Add the target ops.
2763 (pause_all): Update the macro and rename to...
2764 (target_pause_all): ... this.
2765 (unpause_all): Update the macro and rename to...
2766 (target_unpause_all): ... this.
2767 * target.cc (process_target::pause_all): Define.
2768 (process_target::unpause_all): Define.
2769
2770 Update the derived classes and callers below.
2771
2772 * server.cc (handle_status): Update.
2773 * tracepoint.cc (clear_installed_tracepoints): Update.
2774 (cmd_qtdp): Update.
2775 (cmd_qtstart): Update.
2776 (stop_tracing): Update.
2777 (cmd_qtstatus): Update.
2778 (upload_fast_traceframes): Update.
2779 (run_inferior_command): Update.
2780 * linux-low.cc (linux_target_ops): Update.
2781 (linux_pause_all): Turn into ...
2782 (linux_process_target::pause_all): ... this.
2783 (linux_unpause_all): Turn into ...
2784 (linux_process_target::unpause_all): ... this.
2785 (linux_process_target::prepare_to_access_memory): Update.
2786 (linux_process_target::done_accessing_memory): Update.
2787 * linux-low.h (class linux_process_target): Update.
2788 * lynx-low.cc (lynx_target_ops): Update.
2789 * nto-low.cc (nto_target_ops): Update.
2790 * win32-low.cc (win32_target_ops): Update.
2791
4e2e869c
TBA
27922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2793
2794 Turn process_stratum_target's get_tib_address op into a method of
2795 process_target.
2796
2797 * target.h (struct process_stratum_target): Remove the target op.
2798 (class process_target): Add the target op. Also add
2799 'supports_get_tib_address'.
2800 * target.cc (process_target::get_tib_address): Define.
2801 (process_target::supports_get_tib_address): Define.
2802
2803 Update the derived classes and callers below.
2804
2805 * server.cc (handle_query): Update.
2806 * linux-low.cc (win32_target_ops): Update.
2807 * lynx-low.cc (lynx_target_ops): Update.
2808 * nto-low.cc (nto_target_ops): Update.
2809 * win32-low.cc (win32_target_ops): Update.
2810 (win32_process_target::supports_get_tib_address): Define.
2811 (win32_get_tib_address): Turn into ...
2812 (win32_process_target::get_tib_address): ... this.
2813 * win32-low.h (class win32_process_target): Update.
2814
68119632
TBA
28152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2816
2817 Turn process_stratum_target's thread_stopped op into a method of
2818 process_target.
2819
2820 * target.h (struct process_stratum_target): Remove the target op.
2821 (class process_target): Add the target op. Also add
2822 'supports_thread_stopped'.
2823 (target_thread_stopped): Update the macro.
2824 * target.cc (process_target::thread_stopped): Define.
2825 (process_target::supports_thread_stopped): Define.
2826 (prepare_to_access_memory): Update.
2827
2828 Update the derived classes and callers below.
2829
2830 * server.cc (queue_stop_reply_callback): Update.
2831 * linux-low.cc (linux_target_ops): Update.
2832 (linux_process_target::supports_thread_stopped): Define.
2833 (linux_thread_stopped): Turn into ...
2834 (linux_process_target::thread_stopped): ... this.
2835 * linux-low.h (class linux_process_target): Update.
2836 * lynx-low.cc (lynx_target_ops): Update.
2837 * nto-low.cc (nto_target_ops): Update.
2838 * win32-low.cc (win32_target_ops): Update.
2839
770d8f6a
TBA
28402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2841
2842 Turn process_stratum_target's read_pc and write_pc ops into
2843 methods of process_target.
2844
2845 * target.h (struct process_stratum_target): Remove the target ops.
2846 (class process_target): Add the target ops.
2847 * target.cc (process_target::read_pc): Define.
2848 (process_target::write_pc): Define.
2849
2850 Update the derived classes and callers below.
2851
2852 * regcache.cc (regcache_read_pc): Update.
2853 (regcache_write_pc): Update.
2854 * linux-low.cc (linux_target_ops): Update.
2855 (linux_read_pc): Turn into ...
2856 (linux_process_target::read_pc): ... this.
2857 (linux_write_pc): Turn into ...
2858 (linux_process_target::write_pc): ... this.
2859 * linux-low.h (class linux_process_target): Update.
2860 * lynx-low.cc (lynx_target_ops): Update.
2861 * nto-low.cc (nto_target_ops): Update.
2862 * win32-low.cc (win32_target_ops): Update.
2863
290732bf
TBA
28642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2865
2866 Turn process_stratum_target's supports_tracepoints op into a
2867 method of process_target.
2868
2869 * target.h (struct process_stratum_target): Remove the target op.
2870 (class process_target): Add the target op.
2871 (target_supports_tracepoints): Update the macro.
2872 * target.cc (process_target::supports_tracepoints): Define.
2873
2874 Update the derived classes and callers below.
2875
2876 * linux-low.cc (linux_target_ops): Update.
2877 (linux_supports_tracepoints): Turn into ...
2878 (linux_process_target::supports_tracepoints): ... this.
2879 * linux-low.h (class linux_process_target): Update.
2880 * lynx-low.cc (lynx_target_ops): Update.
2881 * nto-low.cc (nto_target_ops): Update.
2882 * win32-low.cc (win32_target_ops): Update.
2883
0df28b1b
TBA
28842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2885
2886 Turn process_stratum_target's process_qsupported op into a method
2887 of process_target.
2888
2889 * target.h (struct process_stratum_target): Remove the target op.
2890 (class process_target): Add the target op.
2891 (target_process_qsupported): Update the macro.
2892 * target.cc (process_target::process_qsupported): Define.
2893
2894 Update the derived classes and callers below.
2895
2896 * linux-low.cc (linux_target_ops): Update.
2897 (linux_process_qsupported): Turn into ...
2898 (linux_process_target::process_qsupported): ... this.
2899 * linux-low.h (class linux_process_target): Update.
2900 * lynx-low.cc (lynx_target_ops): Update.
2901 * nto-low.cc (nto_target_ops): Update.
2902 * win32-low.cc (win32_target_ops): Update.
2903
9da41fda
TBA
29042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2905
2906 Turn process_stratum_target's read_loadmap op into a method of
2907 process_target.
2908
2909 * target.h (struct process_stratum_target): Remove the target op.
2910 (class process_target): Add the target op. Also add
2911 'supports_read_loadmap'.
2912 * target.cc (process_target::read_loadmap): Define.
2913 (process_target::supports_read_loadmap): Define.
2914
2915 Update the derived classes and callers below.
2916
2917 * server.cc (handle_qxfer_fdpic): Update.
2918 (handle_query): Update.
2919 * linux-low.cc (linux_target_ops): Update.
2920 (linux_process_target::supports_read_loadmap): Define.
2921 (linux_read_loadmap): Turn into ...
2922 (linux_process_target::read_loadmap): ... this.
2923 * linux-low.h (class linux_process_target): Update.
2924 * lynx-low.cc (lynx_target_ops): Update.
2925 * nto-low.cc (nto_target_ops): Update.
2926 * win32-low.cc (win32_target_ops): Update.
2927
95a45fc1
TBA
29282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2929
2930 Turn process_stratum_target's core_of_thread op into a method of
2931 process_target.
2932
2933 * target.h (struct process_stratum_target): Remove the target op.
2934 (class process_target): Add the target op.
2935 (target_core_of_thread): Update the macro.
2936 * target.cc (process_target::core_of_thread): Define.
2937
2938 Update the derived classes and callers below.
2939
2940 * linux-low.cc (linux_target_ops): Update.
2941 (linux_process_target::core_of_thread): Define.
2942 * linux-low.h (class linux_process_target): Update.
2943 * lynx-low.cc (lynx_target_ops): Update.
2944 * nto-low.cc (nto_target_ops): Update.
2945 * win32-low.cc (win32_target_ops): Update.
2946
55cf3021
TBA
29472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2948
2949 Turn process_stratum_target's handle_monitor_command op into a
2950 method of process_target.
2951
2952 * target.h (struct process_stratum_target): Remove the target op.
2953 (class process_target): Add the target op.
2954 (target_handle_monitor_command): Update the macro.
2955 * target.cc (process_target::handle_monitor_command): Define.
2956
2957 Update the derived classes and callers below.
2958
2959 * server.cc (handle_query): Update.
2960 * linux-low.cc (linux_target_ops): Update.
2961 (linux_process_target::handle_monitor_command): Define.
2962 * linux-low.h (class linux_process_target): Update.
2963 * lynx-low.cc (lynx_target_ops): Update.
2964 * nto-low.cc (nto_target_ops): Update.
2965 * win32-low.cc (win32_target_ops): Update.
2966
fb00dfce
TBA
29672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2968
2969 Turn process_stratum_target's handle_new_gdb_connection op into a
2970 method of process_target.
2971
2972 * target.h (struct process_stratum_target): Remove the target op.
2973 (class process_target): Add the target op.
2974 (target_handle_new_gdb_connection): Update the macro.
2975 * target.cc (process_target::handle_new_gdb_connection): Define.
2976
2977 Update the derived classes and callers below.
2978
2979 * linux-low.cc (linux_target_ops): Update.
2980 (linux_handle_new_gdb_connection): Turn into ...
2981 (linux_process_target::handle_new_gdb_connection): ... this.
2982 * linux-low.h (class linux_process_target): Update.
2983 * lynx-low.cc (lynx_target_ops): Update.
2984 * nto-low.cc (nto_target_ops): Update.
2985 * win32-low.cc (win32_target_ops): Update.
2986
9690a72a
TBA
29872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2988
2989 Turn process_stratum_target's supports_fork_events,
2990 supports_vfork_events, and supports_exec_events ops into methods
2991 of process_target.
2992
2993 * target.h (struct process_stratum_target): Remove the target ops.
2994 (class process_target): Add the target ops.
2995 (target_supports_fork_events): Update the macro.
2996 (target_supports_vfork_events): Update the macro.
2997 (target_supports_exec_events): Update the macro.
2998 * target.cc (process_target::supports_fork_events): Define.
2999 (process_target::supports_vfork_events): Define.
3000 (process_target::supports_exec_events): Define.
3001
3002 Update the derived classes and callers below.
3003
3004 * linux-low.cc (linux_target_ops): Update.
3005 (linux_supports_fork_events): Turn into ...
3006 (linux_process_target::supports_fork_events): ... this.
3007 (linux_supports_vfork_events): Turn into ...
3008 (linux_process_target::supports_vfork_events): ... this.
3009 (linux_supports_exec_events): Turn into ...
3010 (linux_process_target::supports_exec_events): ... this.
3011 * linux-low.h (class linux_process_target): Update.
3012 * lynx-low.cc (lynx_target_ops): Update.
3013 * nto-low.cc (nto_target_ops): Update.
3014 * win32-low.cc (win32_target_ops): Update.
3015
652aef77
TBA
30162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3017
3018 Turn process_stratum_target's supports_multi_process op into a
3019 method of process_target.
3020
3021 * target.h (struct process_stratum_target): Remove the target op.
3022 (class process_target): Add the target op.
3023 * target.cc (process_target::supports_multi_process): Define.
3024 (target_supports_multi_process): Update.
3025
3026 Update the derived classes and callers below.
3027
3028 * linux-low.cc (linux_target_ops): Update.
3029 (linux_supports_multi_process): Turn into ...
3030 (linux_process_target::supports_multi_process): ... this.
3031 * linux-low.h (class linux_process_target): Update.
3032 * lynx-low.cc (lynx_target_ops): Update.
3033 * nto-low.cc (nto_target_ops): Update.
3034 * win32-low.cc (win32_target_ops): Update.
3035
0dc587d4
TBA
30362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3037
3038 Turn process_stratum_target's supports_non_stop, async, and
3039 start_non_stop ops into methods of process_target.
3040
3041 * target.h (struct process_stratum_target): Remove the target ops.
3042 (class process_target): Add the target ops.
3043 (target_supports_non_stop): Update the macro.
3044 (target_async): Update the macro.
3045 (start_non_stop): Remove declaration.
3046 * target.cc (process_target::supports_non_stop): Define.
3047 (process_target::async): Define.
3048 (process_target::start_non_stop): Define.
3049 (start_non_stop): Remove.
3050
3051 Update the derived classes and callers below.
3052
3053 * server.cc (handle_qxfer_siginfo): Update.
3054 (handle_query): Update.
3055 * linux-low.cc (linux_target_ops): Update.
3056 (linux_supports_non_stop): Turn into ...
3057 (linux_process_target::supports_non_stop): ... this.
3058 (linux_async): Turn into ...
3059 (linux_process_target::async): ... this.
3060 (linux_start_non_stop): Turn into ...
3061 (linux_process_target::start_non_stop): ... this.
3062 * linux-low.h (class linux_process_target): Update.
3063 * lynx-low.cc (lynx_target_ops): Update.
3064 * nto-low.cc (nto_target_ops): Update.
3065 (nto_supports_non_stop): Remove; rely on the default behavior
3066 instead.
3067 * win32-low.cc (win32_target_ops): Update.
3068
d7abedf7
TBA
30692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3070
3071 Turn process_stratum_target's qxfer_siginfo op into a method of
3072 process_target.
3073
3074 * target.h (struct process_stratum_target): Remove the target op.
3075 (class process_target): Add the target op. Also add
3076 'supports_qxfer_siginfo'.
3077 * target.cc (process_target::qxfer_siginfo): Define.
3078 (process_target::supports_qxfer_siginfo): Define.
3079
3080 Update the derived classes and callers below.
3081
3082 * server.cc (handle_qxfer_siginfo): Update.
3083 (handle_query): Update.
3084 * linux-low.cc (linux_target_ops): Update.
3085 (linux_process_target::supports_qxfer_siginfo): Define.
3086 (linux_xfer_siginfo): Turn into ...
3087 (linux_process_target::qxfer_siginfo): ... this.
3088 * linux-low.h (class linux_process_target): Update.
3089 * lynx-low.cc (lynx_target_ops): Update.
3090 * nto-low.cc (nto_target_ops): Update.
3091 * win32-low.cc (win32_target_ops): Update.
3092
2d0795ee
TBA
30932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3094
3095 Turn process_stratum_target's qxfer_osdata op into a method of
3096 process_target.
3097
3098 * target.h (struct process_stratum_target): Remove the target op.
3099 (class process_target): Add the target op. Also add
3100 'supports_qxfer_osdata'.
3101 * target.cc (process_target::qxfer_osdata): Define.
3102 (process_target::supports_qxfer_osdata): Define.
3103
3104 Update the derived classes and callers below.
3105
3106 * server.cc (handle_qxfer_osdata): Update.
3107 (handle_query): Update.
3108 * linux-low.cc (linux_target_ops): Update.
3109 (linux_process_target::supports_qxfer_osdata): Define.
3110 (linux_qxfer_osdata): Turn into ...
3111 (linux_process_target::qxfer_osdata): ... this.
3112 * linux-low.h (class linux_process_target): Update.
3113 * lynx-low.cc (lynx_target_ops): Update.
3114 * nto-low.cc (nto_target_ops): Update.
3115 * win32-low.cc (win32_target_ops): Update.
3116
ea06bbaa
TBA
31172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3118
3119 Turn process_stratum_target's hostio_last_error op into a
3120 method of process_target.
3121
3122 * target.h (struct process_stratum_target): Remove the target op.
3123 (class process_target): Add the target op.
3124 * target.cc: Add "hostio.h" to includes.
3125 (process_target::hostio_last_error): Define.
3126
3127 Update the derived classes and callers below.
3128
3129 * hostio.cc (hostio_error): Update.
3130 * linux-low.cc: Remove "hostio.h" from includes.
3131 (linux_target_ops): Update.
3132 * lynx-low.cc (lynx_target_ops): Update.
3133 * nto-low.cc (nto_target_ops): Update.
3134 * win32-low.h (class win32_process_target): Update.
3135 * win32-low.cc (win32_target_ops): Update.
3136 (wince_hostio_last_error): Turn into ...
3137 (win32_process_target::hostio_last_error): ... this.
3138
6e3fd7e9
TBA
31392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3140
3141 Turn process_stratum_target's get_tls_address op into a method of
3142 process_target.
3143
3144 * target.h (struct process_stratum_target): Remove the target op.
3145 (class process_target): Add the target op. Also add
3146 'supports_get_tls_address'.
3147 * target.cc (process_target::get_tls_address): Define.
3148 (process_target::supports_get_tls_address): Define.
3149
3150 Update the derived classes and callers below.
3151
3152 * server.cc (handle_query): Update.
3153 * linux-low.cc (linux_target_ops): Update.
3154 (linux_process_target::supports_get_tls_address): Define.
3155 (linux_process_target::get_tls_address): Define.
3156 * linux-low.h (class linux_process_target): Update.
3157 * lynx-low.cc (lynx_target_ops): Update.
3158 * nto-low.cc (nto_target_ops): Update.
3159 * win32-low.cc (win32_target_ops): Update.
3160
5203ae1e
TBA
31612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3162
3163 Turn process_stratum_target's read_offsets op into a method of
3164 process_target.
3165
3166 * target.h (struct process_stratum_target): Remove the target op.
3167 (class process_target): Add the target op. Also add
3168 'supports_read_offsets'.
3169 * target.cc (process_target::read_offsets): Define.
3170 (process_target::supports_read_offsets): Define.
3171
3172 Update the derived classes and callers below.
3173
3174 * server.cc (handle_query): Update.
3175 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3176 (linux_target_ops): Update.
3177 (linux_process_target::supports_read_offsets): Define.
3178 (linux_read_offsets): Turn into ...
3179 (linux_process_target::read_offsets): ... this.
3180 * linux-low.h (class linux_process_target): Update.
3181 * lynx-low.cc (lynx_target_ops): Update.
3182 * nto-low.cc (nto_target_ops): Update.
3183 * win32-low.cc (win32_target_ops): Update.
3184
6eeb5c55
TBA
31852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3186
3187 Turn process_stratum_target's stopped_by_watchpoint and
3188 stopped_data_address ops into methods of process_target.
3189
3190 * target.h (struct process_stratum_target): Remove the target ops.
3191 (class process_target): Add the target ops.
3192 * target.cc (process_target::stopped_by_watchpoint): Define.
3193 (process_target::stopped_data_address): Define.
3194
3195 Update the derived classes and callers below.
3196
3197 * remote-utils.cc (prepare_resume_reply): Update.
3198 * linux-low.cc (linux_target_ops): Update.
3199 (linux_stopped_by_watchpoint): Turn into ...
3200 (linux_process_target::stopped_by_watchpoint): ... this.
3201 (linux_stopped_data_address): Turn into ...
3202 (linux_process_target::stopped_data_address): ... this.
3203 * linux-low.h (class linux_process_target): Update.
3204 * lynx-low.cc (lynx_target_ops): Update.
3205 * nto-low.cc (nto_target_ops): Update.
3206 (nto_stopped_by_watchpoint): Turn into ...
3207 (nto_process_target::stopped_by_watchpoint): ... this.
3208 (nto_stopped_data_address): Turn into ...
3209 (nto_process_target::stopped_data_address): ... this.
3210 * nto-low.h (class nto_process_target): Update.
3211 * win32-low.cc (win32_target_ops): Update.
3212 (win32_stopped_by_watchpoint): Turn into ...
3213 (win32_process_target::stopped_by_watchpoint): ... this.
3214 (win32_stopped_data_address): Turn into ...
3215 (win32_process_target::stopped_data_address): ... this.
3216 * win32-low.h (class win32_process_target): Update.
3217
22aa6223
TBA
32182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3219
3220 Turn process_stratum_target's supports_hardware_single_step op into
3221 a method of process_target.
3222
3223 * target.h (struct process_stratum_target): Remove the target op.
3224 (class process_target): Add the target op.
3225 (target_supports_hardware_single_step): Update the macro.
3226 (target_can_do_hardware_single_step): Remove declaration.
3227 * target.cc (process_target::supports_hardware_single_step): Define.
3228 (target_can_do_hardware_single_step): Remove.
3229
3230 Update the derived classes and callers below.
3231
3232 * linux-low.h (class linux_process_target): Update.
3233 * linux-low.cc (linux_target_ops): Update.
3234 (linux_supports_hardware_single_step): Turn into ...
3235 (linux_process_target::supports_hardware_single_step): ... this.
3236 * lynx-low.h (class lynx_process_target): Update.
3237 * lynx-low.cc (lynx_target_ops): Update.
3238 (lynx_process_target::supports_hardware_single_step): Define.
3239 * nto-low.h (class nto_process_target): Update.
3240 * nto-low.cc (nto_target_ops): Update.
3241 (nto_process_target::supports_hardware_single_step): Define.
3242 * win32-low.h (class win32_process_target): Update.
3243 * win32-low.cc (win32_target_ops): Update.
3244 (win32_process_target::supports_hardware_single_step): Define.
3245
93fe88b2
TBA
32462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3247
3248 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3249 ops into methods of process_target.
3250
3251 * target.h (struct process_stratum_target): Remove the target ops.
3252 (class process_target): Add the target ops.
3253 (target_stopped_by_hw_breakpoint): Update the macro.
3254 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3255 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3256 (process_target::supports_stopped_by_hw_breakpoint): Define.
3257
3258 Update the derived classes and callers below.
3259
3260 * linux-low.cc (linux_target_ops): Update.
3261 (linux_stopped_by_hw_breakpoint): Turn into ...
3262 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3263 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3264 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3265 * linux-low.h (class linux_process_target): Update.
3266 * lynx-low.cc (lynx_target_ops): Update.
3267 * nto-low.cc (nto_target_ops): Update.
3268 * win32-low.cc (win32_target_ops): Update.
3269
84320c4e
TBA
32702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3271
3272 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3273 ops into methods of process_target.
3274
3275 * target.h (struct process_stratum_target): Remove the target ops.
3276 (class process_target): Add the target ops.
3277 (target_stopped_by_sw_breakpoint): Update the macro.
3278 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3279 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3280 (process_target::supports_stopped_by_sw_breakpoint): Define.
3281
3282 Update the derived classes and callers below.
3283
3284 * linux-low.cc (linux_target_ops): Update.
3285 (linux_stopped_by_sw_breakpoint): Turn into ...
3286 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3287 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3288 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3289 * linux-low.h (class linux_process_target): Update.
3290 * lynx-low.cc (lynx_target_ops): Update.
3291 * nto-low.cc (nto_target_ops): Update.
3292 * win32-low.cc (win32_target_ops): Update.
3293
7e0bde70
TBA
32942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3295
3296 Turn process_stratum_target's insert_point and remove_point ops
3297 into methods of process_target.
3298
3299 * target.h (struct process_stratum_target): Remove the target ops.
3300 (class process_target): Add the target ops.
3301 * target.cc (process_target::insert_point): Define.
3302 (process_target::remove_point): Define.
3303
3304 Update the derived classes and callers below.
3305
3306 * mem-break.cc (set_raw_breakpoint_at): Update.
3307 (delete_raw_breakpoint): Update.
3308 (uninsert_raw_breakpoint): Update.
3309 (reinsert_raw_breakpoint): Update.
3310 * linux-low.cc (linux_target_ops): Update.
3311 (linux_insert_point): Turn into ...
3312 (linux_process_target::insert_point): ... this.
3313 (linux_remove_point): Turn into ...
3314 (linux_process_target::remove_point): ... this.
3315 * linux-low.h (class linux_process_target): Update.
3316 * lynx-low.cc (lynx_target_ops): Update.
3317 * nto-low.cc (nto_target_ops): Update.
3318 (nto_insert_point): Turn into ...
3319 (nto_process_target::insert_point): ... this.
3320 (nto_remove_point): Turn into ...
3321 (nto_process_target::remove_point): ... this.
3322 * nto-low.h (class nto_process_target): Update.
3323 * win32-low.cc (win32_target_ops): Update.
3324 (win32_insert_point): Turn into ...
3325 (win32_process_target::insert_point): ... this.
3326 (win32_remove_point): Turn into ...
3327 (win32_process_target::remove_point): ... this.
3328 * win32-low.h (class win32_process_target): Update.
3329
a2b2297a
TBA
33302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3331
3332 Turn process_stratum_target's supports_z_point_type op into a
3333 method of process_target.
3334
3335 * target.h (struct process_stratum_target): Remove the target op.
3336 (class process_target): Add the target op.
3337 * target.cc (process_target::supports_z_point_type): Define.
3338
3339 Update the derived classes and callers below.
3340
3341 * mem-break.cc (z_type_supported): Update.
3342 * linux-low.cc (linux_target_ops): Update.
3343 (linux_supports_z_point_type): Turn into ...
3344 (linux_process_target::supports_z_point_type): ... this.
3345 * linux-low.h (class linux_process_target): Update.
3346 * lynx-low.cc (lynx_target_ops): Update.
3347 * nto-low.cc (nto_target_ops): Update.
3348 (nto_supports_z_point_type): Turn into ...
3349 (nto_process_target::supports_z_point_type): ... this.
3350 * nto-low.h (class nto_process_target): Update.
3351 * win32-low.cc (win32_target_ops): Update.
3352 (win32_supports_z_point_type): Turn into ...
3353 (win32_process_target::supports_z_point_type): ... this.
3354 * win32-low.h (class win32_process_target): Update.
3355
eac215cc
TBA
33562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3357
3358 Turn process_stratum_target's read_auxv op into a method of
3359 process_target.
3360
3361 * target.h (class process_stratum_target): Remove the target op.
3362 (struct process_target): Add the target op. Also add
3363 'supports_read_auxv'.
3364 * target.cc (process_target::read_auxv): Define.
3365 (process_target::supports_read_auxv): Define.
3366
3367 Update the derived classes and callers below.
3368
3369 * server.cc (handle_qxfer_auxv): Update.
3370 (handle_query): Update.
3371 * linux-low.cc (linux_target_ops): Update.
3372 (linux_process_target::supports_read_auxv): Define.
3373 (linux_read_auxv): Turn into ...
3374 (linux_process_target::read_auxv): ... this.
3375 * linux-low.h (class linux_process_target): Update.
3376 * lynx-low.cc (lynx_target_ops): Update.
3377 * nto-low.cc (nto_target_ops): Update.
3378 (nto_process_target::supports_read_auxv): Define.
3379 (nto_read_auxv): Turn into ...
3380 (nto_process_target::read_auxv): ... this.
3381 * nto-low.h (class nto_process_target): Update.
3382 * win32-low.cc (win32_target_ops): Update.
3383
eb497a2a
TBA
33842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3385
3386 Turn process_stratum_target's request_interrupt op into a method of
3387 process_target.
3388
3389 * target.h (struct process_stratum_target): Remove the target op.
3390 (class process_target): Add the target op.
3391
3392 Update the derived classes and callers below.
3393
3394 * remote-utils.cc (putpkt_binary_1): Update.
3395 (input_interrupt): Update.
3396 (getpkt): Update.
3397 * server.cc (handle_v_requests): Update.
3398 * linux-low.cc (linux_target_ops): Update.
3399 (linux_request_interrupt): Turn into ...
3400 (linux_process_target::request_interrupt): ... this.
3401 * linux-low.h (class linux_process_target): Update.
3402 * lynx-low.cc (lynx_target_ops): Update.
3403 (lynx_request_interrupt): Turn into ...
3404 (lynx_process_target::request_interrupt): ... this.
3405 * lynx-low.h (class lynx_process_target): Update.
3406 * nto-low.cc (nto_target_ops): Update.
3407 (nto_request_interrupt): Turn into ...
3408 (nto_process_target::request_interrupt): ... this.
3409 * nto-low.h (class nto_process_target): Update.
3410 * win32-low.cc (win32_target_ops): Update.
3411 (win32_request_interrupt): Turn into ...
3412 (win32_process_target::request_interrupt): ... this.
3413 * win32-low.h (class win32_process_target): Update.
3414
2a31c7aa
TBA
34152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3416
3417 Turn process_stratum_target's look_up_symbols op into a method of
3418 process_target.
3419
3420 * target.h (struct process_stratum_target): Remove the target op.
3421 (class process_target): Add the target op.
3422 * target.cc (process_target::look_up_symbols): Define.
3423
3424 Update the derived classes and callers below.
3425
3426 * server.cc (handle_query): Update.
3427 * linux-low.cc (linux_target_ops): Update.
3428 (linux_look_up_symbols): Turn into ...
3429 (linux_process_target::look_up_symbols): ... this.
3430 * linux-low.h (class linux_process_target): Update.
3431 * lynx-low.cc (lynx_target_ops): Update.
3432 * nto-low.cc (nto_target_ops): Update.
3433 * win32-low.cc (win32_target_ops): Update.
3434
e2558df3
TBA
34352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3436
3437 Turn process_stratum_target's read_memory and write_memory
3438 ops into methods of process_target.
3439
3440 * target.h (struct process_stratum_target): Remove the target ops.
3441 (class process_target): Add the target ops.
3442
3443 Update the derived classes and callers below.
3444
3445 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3446 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3447 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3448 (arm_get_syscall_trapinfo): Update.
3449 * linux-cris-low.cc (cris_breakpoint_at): Update.
3450 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3451 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3452 * linux-mips-low.cc (mips_breakpoint_at): Update.
3453 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3454 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3455 * linux-sh-low.cc (sh_breakpoint_at): Update.
3456 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3457 (sparc_store_gregset_from_stack): Update.
3458 (sparc_breakpoint_at): Update.
3459 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3460 * linux-tile-low.cc (tile_breakpoint_at): Update.
3461 * linux-x86-low.cc (x86_breakpoint_at): Update.
3462 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3463 * mem-brea.cc (insert_memory_breakpoint): Update.
3464 (validate_inserted_breakpoint): Update.
3465 * target.cc (read_inferior_memory): Update.
3466 (target_write_memory): Update.
3467 * linux-low.cc (linux_target_ops): Update.
3468 (linux_read_memory): Make a wrapper around the read_memory target
3469 op call.
3470 (linux_process_target::read_memory): Rename from linux_read_memory.
3471 (linux_write_memory): Turn into ...
3472 (linux_process_target::write_memory): ... this.
3473 * linux-low.h (class linux_process_target): Update.
3474 * lynx-low.cc (lynx_target_ops): Update.
3475 (lynx_read_memory): Turn into ...
3476 (lynx_process_target::read_memory): ... this.
3477 (lynx_write_memory): Turn into ...
3478 (lynx_process_target::write_memory): ... this.
3479 * lynx-low.h (class lynx_process_target): Update.
3480 * nto-low.cc (nto_target_ops): Update.
3481 (nto_read_memory): Turn into ...
3482 (nto_process_target::read_memory): ... this.
3483 (nto_write_memory): Turn into ...
3484 (nto_process_target::write_memory): ... this.
3485 * nto-low.h (class nto_process_target): Update.
3486 * win32-low.cc (win32_target_ops): Update.
3487 (win32_read_inferior_memory): Turn into ...
3488 (win32_process_target::read_memory): ... this.
3489 (win32_write_inferior_memory): Turn into ...
3490 (win32_process_target::write_memory): ... this.
3491 * win32-low.h (class win32_process_target): Update.
3492
79b44087
TBA
34932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3494
3495 Turn process_stratum_target's prepare_to_access_memory and
3496 done_accessing_memory ops into methods of process_target.
3497
3498 * target.h (struct process_stratum_target): Remove the target ops.
3499 (class process_target): Add the target ops.
3500 * target.cc (process_target::prepare_to_access_memory): Define.
3501 (process_target::done_accessing_memory): Define.
3502 (prepare_to_access_memory): Update.
3503 (done_accessing_memory): Update.
3504
3505 Update the derived classes and callers below.
3506
3507 * linux-low.cc (linux_target_ops): Update.
3508 (linux_prepare_to_access_memory): Turn into ...
3509 (linux_process_target::prepare_to_access_memory): ... this.
3510 (linux_done_accessing_memory): Turn into ...
3511 (linux_process_target::done_accessing_memory): ... this.
3512 * linux-low.h (class linux_process_target): Update.
3513 * lynx-low.cc (lynx_target_ops): Update.
3514 * nto-low.cc (nto_target_ops): Update.
3515 * win32-low.cc (win32_target_ops): Update.
3516
a5a4d4cd
TBA
35172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3518
3519 Turn process_stratum_target's fetch_registers and store_registers
3520 ops into methods of process_target.
3521
3522 * target.h (struct process_stratum_target): Remove the target ops.
3523 (class process_target): Add the target ops.
3524 (fetch_inferior_registers): Update the macro.
3525 (store_inferior_registers): Update the macro.
3526
3527 Update the derived classes and callers below.
3528
3529 * linux-low.cc (linux_target_ops): Update.
3530 (linux_fetch_registers): Turn into ...
3531 (linux_process_target::fetch_registers): ... this.
3532 (linux_store_registers): Turn into ...
3533 (linux_process_target::store_registers): ... this.
3534 * linux-low.h (class linux_process_target): Update.
3535 * lynx-low.cc (lynx_target_ops): Update.
3536 (lynx_fetch_registers): Turn into ...
3537 (lynx_process_target::fetch_registers): ... this.
3538 (lynx_store_registers): Turn into ...
3539 (lynx_process_target::store_registers): ... this.
3540 * lynx-low.h (class lynx_process_target): Update.
3541 * nto-low.cc (nto_target_ops): Update.
3542 (nto_fetch_registers): Turn into ...
3543 (nto_process_target::fetch_registers): ... this.
3544 (nto_store_registers): Turn into ...
3545 (nto_process_target::store_registers): ... this.
3546 * nto-low.h (class nto_process_target): Update.
3547 * win32-low.cc (win32_target_ops): Update.
3548 (win32_fetch_inferior_registers): Turn into ...
3549 (win32_process_target::fetch_registers): ... this.
3550 (win32_store_inferior_registers): Turn into ...
3551 (win32_process_target::store_registers): ... this.
3552 * win32-low.h (class win32_process_target): Update.
3553
6532e7e3
TBA
35542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3555
3556 Turn process_stratum_target's wait op into a method of
3557 process_target.
3558
3559 * target.h (struct process_stratum_target): Remove the target op.
3560 (class process_target): Add the target op.
3561
3562 Update the derived classes and callers below.
3563
3564 * target.cc (target_wait): Update.
3565 * linux-low.cc (linux_target_ops): Update.
3566 (linux_wait): Turn into ...
3567 (linux_process_target::wait): ... this.
3568 * linux-low.h (class linux_process_target): Update.
3569 * lynx-low.cc (lynx_target_ops): Update.
3570 (lynx_wait): Turn into ...
3571 (lynx_process_target::wait): ... this.
3572 * lynx-low.h (class lynx_process_target): Update.
3573 * nto-low.cc (nto_target_ops): Update.
3574 (nto_wait): Turn into ...
3575 (nto_process_target::wait): ... this.
3576 * nto-low.h (class nto_process_target): Update.
3577 * win32-low.cc (win32_target_ops): Update.
3578 (win32_wait): Turn into ...
3579 (win32_process_target::wait): ... this.
3580 (do_initial_child_stuff): Update.
3581 * win32-low.h (class win32_process_target): Update.
3582
0e4d7e35
TBA
35832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3584
3585 Turn process_stratum_target's resume op into a method of
3586 process_target.
3587
3588 * target.h (struct process_stratum_target): Remove the target op.
3589 (class process_target): Add the target op.
3590
3591 Update the derived classes and callers below.
3592
3593 * server.cc (resume): Update.
3594 * target.cc (target_stop_and_wait): Update.
3595 (target_continue_no_signal): Update.
3596 (target_continue): Update.
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_resume): Turn into ...
3599 (linux_process_target::resume): ... this.
3600 * linux-low.h (class linux_process_target): Update.
3601 * lynx-low.cc (lynx_target_ops): Update.
3602 (lynx_resume): Turn into ...
3603 (lynx_process_target::resume): ... this.
3604 * lynx-low.h (class lynx_process_target): Update.
3605 * nto-low.cc (nto_target_ops): Update.
3606 (nto_resume): Turn into ...
3607 (nto_process_target::resume): ... this.
3608 * nto-low.h (class nto_process_target): Update.
3609 * win32-low.cc (win32_target_ops): Update.
3610 (win32_resume): Turn into ...
3611 (win32_process_target::resume): ... this.
3612 (win32_process_target::detach): Update.
3613 (do_initial_child_stuff): Update.
3614 * win32-low.h (class win32_process_target): Update.
3615
13d3d99b
TBA
36162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3617
3618 Turn process_stratum_target's thread_alive op into a method of
3619 process_target.
3620
3621 * target.h (struct process_stratum_target): Remove the target op.
3622 (class process_target): Add the target op.
3623 (mythread_alive): Update the macro.
3624
3625 Update the derived classes and callers below.
3626
3627 * linux-low.cc (linux_target_ops): Update.
3628 (linux_thread_alive): Turn into ...
3629 (linux_process_target::thread_alive): ... this.
3630 (wait_for_sigstop): Update.
3631 * linux-low.h (class linux_process_target): Update.
3632 * lynx-low.cc (lynx_target_ops): Update.
3633 (lynx_thread_alive): Turn into ...
3634 (lynx_process_target::thread_alive): ... this.
3635 * lynx-low.h (class lynx_process_target): Update.
3636 * nto-low.cc (nto_target_ops): Update.
3637 (nto_thread_alive): Turn into ...
3638 (nto_process_target::thread_alive): ... this.
3639 * nto-low.h (class nto_process_target): Update.
3640 * win32-low.cc (win32_target_ops): Update.
3641 (win32_thread_alive): Turn into ...
3642 (win32_process_target::thread_alive): ... this.
3643 * win32-low.h (class win32_process_target): Update.
3644
95a49a39
TBA
36452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3646
3647 Turn process_stratum_target's join op into a method of
3648 process_target.
3649
3650 * target.h (struct process_stratum_target): Remove the target op.
3651 (class process_target): Add the target op.
3652 (join_inferior): Update the macro.
3653
3654 Update the derived classes and callers below.
3655
3656 * linux-low.cc (linux_target_ops): Update.
3657 (linux_join): Turn into ...
3658 (linux_process_target::join): ... this.
3659 * linux-low.h (class linux_process_target): Update.
3660 * lynx-low.cc (lynx_target_ops): Update.
3661 (lynx_join): Turn into ...
3662 (lynx_process_target::join): ... this.
3663 * lynx-low.h (class lynx_process_target): Update.
3664 * nto-low.cc (nto_target_ops): Update.
3665 (nto_process_target::join): Define.
3666 * nto-low.h (class nto_process_target): Update.
3667 * win32-low.cc (win32_target_ops): Update.
3668 (win32_join): Turn into ...
3669 (win32_process_target::join): ... this.
3670 * win32-low.h (class win32_process_target): Update.
3671
8adb37b9
TBA
36722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3673
3674 Turn process_stratum_target's mourn op into a method of
3675 process_target.
3676
3677 * target.h (struct process_stratum_target): Remove the target op.
3678 (class process_target): Add the target op.
3679
3680 Update the derived classes and callers below.
3681
3682 * target.cc (target_mourn_inferior): Update.
3683 * linux-low.cc (linux_target_ops): Update.
3684 (linux_mourn): Turn into ...
3685 (linux_process_target::mourn): ... this.
3686 (handle_extended_wait): Update.
3687 (linux_process_target::kill): Update.
3688 (linux_process_target::detach): Update.
3689 * linux-low.h (class linux_process_target): Update.
3690 * lynx-low.cc (lynx_target_ops): Update.
3691 (lynx_mourn): Turn into ...
3692 (lynx_process_target::mourn): ... this.
3693 * lynx-low.h (class lynx_process_target): Update.
3694 * nto-low.cc (nto_target_ops): Update.
3695 (nto_mourn): Turn into ...
3696 (nto_process_target::mourn): ... this.
3697 * nto-low.h (class nto_process_target): Update.
3698 * win32-low.cc (win32_target_ops): Update.
3699 (win32_mourn): Turn into ...
3700 (win32_process_target::mourn): ... this.
3701 * win32-low.h (class win32_process_target): Update.
3702
9061c9cf
TBA
37032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3704
3705 Turn process_stratum_target's detach op into a method of
3706 process_target.
3707
3708 * target.h (struct process_stratum_target): Remove the target op.
3709 (class process_target): Add the target op.
3710 (detach_inferior): Update the macro.
3711
3712 Update the derived classes and callers below.
3713
3714 * linux-low.cc (linux_target_ops): Update.
3715 (linux_detach): Turn into ...
3716 (linux_process_target::detach): ... this.
3717 * linux-low.h (class linux_process_target): Update.
3718 * lynx-low.cc (lynx_target_ops): Update.
3719 (lynx_detach): Turn into ...
3720 (lynx_process_target::detach): ... this.
3721 * lynx-low.h (class lynx_process_target): Update.
3722 * nto-low.cc (nto_target_ops): Update.
3723 (nto_detach): Turn into ...
3724 (nto_process_target::detach): ... this.
3725 * nto-low.h (class nto_process_target): Update.
3726 * win32-low.cc (win32_target_ops): Update.
3727 (win32_detach): Turn into ...
3728 (win32_process_target::detach): ... this.
3729 * win32-low.h (class win32_process_target): Update.
3730
c6885a57
TBA
37312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3732
3733 Turn process_stratum_target's kill op into a method of
3734 process_target.
3735
3736 * target.h (struct process_stratum_target): Remove the target op.
3737 (class process_target): Add the target op.
3738
3739 Update the derived classes and callers below.
3740
3741 * target.cc (kill_inferior): Update.
3742 * linux-low.cc (linux_target_ops): Update.
3743 (linux_kill): Turn into ...
3744 (linux_process_target::kill): ... this.
3745 * linux-low.h (class linux_process_target): Update.
3746 * lynx-low.cc (lynx_target_ops): Update.
3747 (lynx_kill): Turn into ...
3748 (lynx_process_target::kill): ... this.
3749 * lynx-low.h (class lynx_process_target): Update.
3750 * nto-low.cc (nto_target_ops): Update.
3751 (nto_kill): Turn into ...
3752 (nto_process_target::kill): ... this.
3753 * nto-low.h (class nto_process_target): Update.
3754 * win32-low.cc (win32_target_ops): Update.
3755 (win32_kill): Turn into ...
3756 (win32_process_target::kill): ... this.
3757 * win32-low.h (class win32_process_target): Update.
3758
ef03dad8
TBA
37592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3760
3761 Turn process_stratum_target's attach op into a method of
3762 process_target.
3763
3764 * target.h (struct process_stratum_target): Remove the target op.
3765 (class process_target): Add the target op.
3766 (myattach): Update the macro.
3767
3768 Update the derived classes and callers below.
3769
3770 * linux-low.cc (linux_target_ops): Update.
3771 (linux_attach): Turn into ...
3772 (linux_process_target::attach): ... this.
3773 * linux-low.h (class linux_process_target): Update.
3774 * lynx-low.cc (lynx_target_ops): Update.
3775 (lynx_attach): Turn into ...
3776 (lynx_process_target::attach): ... this.
3777 * lynx-low.h (class lynx_process_target): Update.
3778 * nto-low.cc (nto_target_ops): Update.
3779 (nto_attach): Turn into ...
3780 (nto_process_target::attach): ... this.
3781 * nto-low.h (class nto_process_target): Update.
3782 * win32-low.cc (win32_target_ops): Update.
3783 (win32_attach): Turn into ...
3784 (win32_process_target::attach): ... this.
3785 * win32-low.h (class win32_process_target): Update.
3786
6dee9afb
TBA
37872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3788
3789 Turn process_stratum_target's post_create_inferior op into a method
3790 of process_target.
3791
3792 * target.h (struct process_stratum_target): Remove the target op.
3793 (class process_target): Add the target op.
3794 (target_post_create_inferior): Update the macro.
3795 * target.cc (process_target::post_create_inferior): Define.
3796
3797 Update the derived classes and callers below.
3798
3799 * linux-low.cc (linux_target_ops): Update.
3800 (linux_post_create_inferior): Turn into ...
3801 (linux_process_target::post_create_inferior): ... this.
3802 * linux-low.h (class linux_process_target): Update.
3803 * lynx-low.cc (lynx_target_ops): Update.
3804 * nto-low.cc (nto_target_ops): Update.
3805 * win32-low.cc (win32_target_ops): Update.
3806
15295543
TBA
38072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3808
3809 Turn process_stratum_target's create_inferior op into a method of
3810 process_target.
3811
3812 * target.h (struct process_stratum_target): Remove the target op.
3813 (class process_target): Add the target op.
3814 (create_inferior): Rename the macro to ...
3815 (target_create_inferior): ... this.
3816
3817 Update the derived classes and callers below.
3818
3819 * server.cc (handle_v_run): Update.
3820 (captured_main): Update.
3821 (process_serial_event): Update.
3822 * linux-low.cc (linux_target_ops): Update.
3823 (linux_create_inferior): Turn into ...
3824 (linux_process_target::create_inferior): ... this.
3825 * linux-low.h (class linux_process_target): Update.
3826 * lynx-low.cc (lynx_target_ops): Update.
3827 (lynx_create_inferior): Turn into ...
3828 (lynx_process_target::create_inferior): ... this.
3829 * lynx-low.h (class lynx_process_target): Update.
3830 * nto-low.cc (nto_target_ops): Update.
3831 (nto_create_inferior): Turn into ...
3832 (nto_process_target::create_inferior): ... this.
3833 * nto-low.h (class nto_process_target): Update.
3834 * win32-low.cc (win32_target_ops): Update.
3835 (win32_create_inferior): Turn into ...
3836 (win32_process_target::create_inferior): ... this.
3837 * win32-low.h (class win32_process_target): Update.
3838
5ef9273d
TBA
38392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3840
3841 * target.h (class process_target): New class definition.
3842 (struct process_stratum_target) <pt>: New field with type
3843 'process_target*'.
3844 * linux-low.h (class linux_process_target): Define as a derived
3845 class of 'process_target'.
3846 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3847 as the 'pt' field.
3848 * lynx-low.h (class lynx_process_target): Define as a derived
3849 class of 'process_target'.
3850 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3851 as the 'pt' field.
3852 * nto-low.h (class nto_process_target): Define as a derived
3853 class of 'process_target'.
3854 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3855 as the 'pt' field.
3856 * win32-low.h (class win32_process_target): Define as a derived
3857 class of 'process_target'.
3858 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3859 as the 'pt' field.
3860
9f1528a1
AB
38612020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3862
3863 * configure: Regenerate.
3864
bf84f706
MR
38652020-02-19 Maciej W. Rozycki <macro@wdc.com>
3866 Andrew Burgess <andrew.burgess@embecosm.com>
3867
3868 * linux-riscv-low.cc: New file.
3869 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3870 and nat/riscv-linux-tdesc.c.
3871 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3872 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3873 Define.
3874
1a627e7e
TT
38752020-02-14 Tom Tromey <tom@tromey.com>
3876
3877 * acinclude.m4: Don't include acx_configure_dir.m4.
3878 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3879 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3880 (all, install-only, uninstall, clean-info, clean)
3881 (maintainer-clean): Don't recurse.
3882 (subdir_do, all-lib): Remove.
3883 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3884 (GNULIB_H): Remove.
3885 (generated_files): Update.
3886 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3887 * configure: Rebuild.
3888 * configure.ac: Don't configure gnulib or libiberty.
3889 (GNULIB): Update.
3890
a9b34532
EZ
38912020-02-14 Eli Zaretskii <eliz@gnu.org>
3892
3893 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3894 preparing the command line for CreateProcess.
3895 (win32_create_inferior): Reflect the program name in debugging
3896 output that shows the process and its command line.
3897
feacfcac
SM
38982020-02-13 Simon Marchi <simon.marchi@efficios.com>
3899
3900 * Makefile.in: Rename source files from .c to .cc.
3901 * %.c: Rename to %.cc.
3902 * configure.ac: Rename server.c to server.cc.
3903 * configure: Re-generate.
3904
06b3c5bd
SM
39052020-02-13 Simon Marchi <simon.marchi@efficios.com>
3906
3907 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3908
052793ad
HD
39092020-02-12 Hannes Domani <ssbssa@yahoo.de>
3910
3911 * win32-low.c (win32_create_inferior): Set signal_pid.
3912
f20e3e82
MR
39132020-02-12 Maciej W. Rozycki <macro@wdc.com>
3914 Pedro Alves <palves@redhat.com>
3915
3916 Skip building gdbserver in a cross-configuration.
3917 * configure.srv: Set $gdbserver_host depending on whether $target
3918 is $host. Use $gdbserver_host instead of $host.
3919
8ddd8e0e
SM
39202020-02-11 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * configure: Re-generate.
3923
898e7f60
SM
39242020-02-11 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * configure: Re-generate.
3927
58df732b
SM
39282020-02-11 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * acinclude.m4: Update warning.m4 path.
3931
7928d571
HD
39322020-02-09 Hannes Domani <ssbssa@yahoo.de>
3933
3934 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3935 (handle_exception): Set siginfo_er.
3936 (win32_xfer_siginfo): New function.
3937
919adfe8
TT
39382020-02-07 Tom Tromey <tom@tromey.com>
3939 Pedro Alves <palves@redhat.com>
3940
3941 * README: Update build documentation.
3942 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3943 host, not target.
3944 * configure.ac: Update paths.
3945 * configure: Rebuild.
3946 * acinclude.m4: Update paths.
3947 * Makefile.in: Update include paths.
3948 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3949 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3950 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3951 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3952 (%-generated.c): Update paths.
3953 * Move entire directory from ../gdb/gdbserver.
3954
287c844a
MR
39552020-01-29 Maciej W. Rozycki <macro@wdc.com>
3956
3957 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3958
548a204f
PFC
39592020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3960
3961 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3962 assignment instead of srv_linux_obj.
3963
a2236a08
HD
39642020-01-28 Hannes Domani <ssbssa@yahoo.de>
3965
3966 * server.c (handle_qxfer_libraries): Write segment-address with
3967 paddress.
3968
bdaed379
HD
39692020-01-24 Hannes Domani <ssbssa@yahoo.de>
3970
3971 * Makefile.in (install-strip): New target.
3972 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3973 * aclocal.m4: Regenerate.
3974 * configure: Regenerate.
3975 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3976
42cd72aa
MR
39772020-01-24 Maciej W. Rozycki <macro@wdc.com>
3978
3979 * Makefile.in (SFILES): Adjust paths to point to real files.
3980 (OBS): Move waitstatus.o to target/waitstatus.o.
3981 (TAGS): Transform paths appropriately.
3982 (%.o): Rename to...
3983 (nat/%.o): ... this pattern rule.
3984 (%.o): Rename to...
3985 (target/%.o): ... this pattern rule.
3986 * configure.srv: Adjust paths throughout to include nat/ prefix
3987 with the revant files.
3988 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3989 * configure: Regenerate.
3990
42ba50ec
MR
39912020-01-24 Maciej W. Rozycki <macro@wdc.com>
3992
3993 * Makefile.in (TAGS): Remove config files from the recipe.
3994
05ea2a05
TT
39952020-01-14 Tom Tromey <tom@tromey.com>
3996
3997 * configure: Rebuild.
3998 * configure.ac: Remove any checks that were added to common.m4.
3999 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4000 lib-link.m4.
4001
01027315
TT
40022020-01-14 Tom Tromey <tom@tromey.com>
4003
4004 * server.h: Include config.h.
4005 * gdbreplay.c: Include config.h.
4006 * configure: Rebuild.
4007 * configure.ac: Don't source common.host.
4008 * acinclude.m4: Update path.
4009 * Makefile.in (INCSUPPORT): New variable.
4010 (INCLUDE_CFLAGS): Add INCSUPPORT.
4011 (SFILES): Update paths.
4012 (version-generated.c): Update path to create-version.sh.
4013 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4014
b2ceabe8
TT
40152020-01-14 Tom Tromey <tom@tromey.com>
4016
4017 * configure.ac (LIBS): Use WIN32APILIBS.
4018 (USE_WIN32API): Don't define.
4019 * configure: Rebuild.
4020
25c51f71
TT
40212020-01-14 Tom Tromey <tom@tromey.com>
4022
4023 * configure: Rebuild.
4024
c0bd321d
SM
40252020-01-13 Simon Marchi <simon.marchi@efficios.com>
4026
4027 * Makefile.in (%-generated.c): Remove rule for files from
4028 regformats/i386.
4029
bb564c58
SM
40302020-01-13 Simon Marchi <simon.marchi@efficios.com>
4031
4032 * configure: Re-generate.
4033
6e37c371
SM
40342020-01-13 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4037 Define to static.
4038 * tracepoint.c (stop_tracing, flush_trace_buffer,
4039 about_to_request_buffer_space, get_trace_state_variable_value,
4040 set_trace_state_variable_value, gdb_collect): Add declaration.
4041
df4a0200
SM
40422020-01-13 Simon Marchi <simon.marchi@efficios.com>
4043
4044 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4045 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4046 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4047 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4048 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4049 static.
4050
89e94ec9
SM
40512020-01-13 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * inferiors.c: Include gdbsupport/common-inferior.h.
4054
2552728a
SM
40552020-01-13 Simon Marchi <simon.marchi@efficios.com>
4056
4057 * hostio-errno.c: Include hostio.h.
4058
4025fa09
SM
40592020-01-13 Simon Marchi <simon.marchi@efficios.com>
4060
4061 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4062 prerequisite.
4063
c0b0a142
SM
40642020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4065
4066 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4067 * linux-arm-tdesc.h: Include arch/arm.h.
4068
bb1183e2
SM
40692020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4070
4071 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4072
f5df0b5f
SM
40732020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4074
4075 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4076 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4077
5b6d1e4f
PA
40782020-01-10 Pedro Alves <palves@redhat.com>
4079
4080 * fork-child.c (post_fork_inferior): Pass target down to
4081 startup_inferior.
4082 * inferiors.c (switch_to_thread): Add process_stratum_target
4083 parameter.
4084 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4085 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4086 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4087 * remote-utils.c (prepare_resume_reply): Pass the target to
4088 switch_to_thread.
4089 * target.c (the_target): Now a process_stratum_target.
4090 (done_accessing_memory): Pass the target to switch_to_thread.
4091 (set_target_ops): Ajust to use process_stratum_target.
4092 * target.h (struct target_ops): Rename to ...
4093 (struct process_stratum_target): ... this.
4094 (the_target, set_target_ops): Adjust.
4095 (prepare_to_access_memory): Adjust comment.
4096 * win32-low.c (child_xfer_memory): Adjust to use
4097 process_stratum_target.
4098 (win32_target_ops): Now a process_stratum_target.
4099
559e7e50
EZ
41002020-01-06 Eli Zaretskii <eliz@gnu.org>
4101 Pedro Alves <palves@redhat.com>
4102
4103 * win32-low.c (get_child_debug_event): Extract the fatal exception
4104 from the exit status and convert to the equivalent Posix signal
4105 number.
4106 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4107 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4108
48189bec
HD
41092020-01-01 Hannes Domani <ssbssa@yahoo.de>
4110
4111 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4112
5dd8bf88
JB
41132020-01-01 Joel Brobecker <brobecker@adacore.com>
4114
4115 * server.c (gdbserver_version): Change copyright year to 2020.
4116 * gdbreplay.c (gdbreplay_version): Likewise.
4117
0ad6b8ee
CB
41182019-12-19 Christian Biesinger <cbiesinger@google.com>
4119
4120 * configure: Regenerate.
4121 * configure.ac: Quote variable arguments of test.
4122
1ee7b812
BE
41232019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4124
4125 * Makefile.in: Fix build with GNU Make 3.81
4126
d9fa87f4
TT
41272019-12-16 Tom Tromey <tromey@adacore.com>
4128
4129 * server.c (get_exec_file): Constify result.
4130
ab7d13f0
CB
41312019-12-10 Christian Biesinger <cbiesinger@google.com>
4132
4133 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4134 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4135 * config.in: Regenerate.
4136 * configure: Regenerate.
4137 * configure.ac: Don't check for strerror.
4138 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4139 Call safe_strerror instead of strerror.
4140 * server.h (strerror): Remove this now-unnecessary declaration.
4141 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4142 strerror.
4143 (gdb_agent_helper_thread): Likewise.
4144 * utils.c (perror_with_name): Likewise.
4145
4da8c3a8
TT
41462019-11-26 Tom Tromey <tom@tromey.com>
4147
4148 * configure, config.in: Rebuild.
4149
21987b9c
TT
41502019-11-26 Tom Tromey <tom@tromey.com>
4151
4152 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4153 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4154 gdb_sigmask.
4155 * configure, config.in: Rebuild.
4156
5e030278
TT
41572019-11-26 Tom Tromey <tom@tromey.com>
4158
4159 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4160 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4161 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4162 * acinclude.m4: Include ax_pthread.m4.
4163 * config.in, configure: Rebuild.
4164
6d91ce9a
CB
41652019-11-26 Christian Biesinger <cbiesinger@google.com>
4166
4167 * debug.c (debug_set_output): Call safe_strerror instead of
4168 strerror.
4169 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4170 (linux_kill_one_lwp): Likewise.
4171 (linux_detach_one_lwp): Likewise.
4172 (linux_wait_for_event_filtered): Likewise.
4173 (store_register): Likewise.
4174 * lynx-low.c (lynx_attach): Likewise.
4175 * mem-break.c (insert_memory_breakpoint): Likewise.
4176 (remove_memory_breakpoint): Likewise.
4177 (delete_fast_tracepoint_jump): Likewise.
4178 (set_fast_tracepoint_jump): Likewise.
4179 (uninsert_fast_tracepoint_jumps_at): Likewise.
4180 (reinsert_fast_tracepoint_jumps_at): Likewise.
4181 * nto-low.c (nto_xfer_memory): Likewise.
4182 (nto_resume): Likewise.
4183
6cdd651f
LM
41842019-11-20 Luis Machado <luis.machado@linaro.org>
4185
4186 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4187 instead of register count.
4188 * tdesc.c (tdesc_contains_feature): New function.
4189 * tdesc.h (tdesc_contains_feature): New prototype.
4190
cd850b40
CB
41912019-11-15 Christian Biesinger <cbiesinger@google.com>
4192
4193 * Makefile.in: Add safe-strerror.c.
4194 * configure: Regenerate.
4195 * configure.ac: Don't source common.host.
4196
5abebf3c
CB
41972019-11-15 Christian Biesinger <cbiesinger@google.com>
4198
4199 * config.in: Regenerate.
4200 * configure: Regenerate.
4201
e06f3d6e
AB
42022019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4203
4204 * ax.c (ax_printf): Handle size_t_arg.
4205
ca3a04f6
CB
42062019-11-06 Christian Biesinger <cbiesinger@google.com>
4207
4208 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4209 * mi/mi-main.c (output_cores): Likewise.
4210 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4211 (linux_xfer_osdata_modules): Likewise.
4212 * remote.c (register_remote_support_xml): Likewise.
4213 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4214 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4215
e48f6033
CB
42162019-11-01 Christian Biesinger <cbiesinger@google.com>
4217
4218 * configure: Regenerate.
4219 * configure.ac: Remove check for strerror_r.
4220
e7e97a2e
CB
42212019-10-31 Christian Biesinger <cbiesinger@google.com>
4222
4223 * config.in: Regenerate.
4224 * configure: Regenerate.
4225 * configure.ac: Also check for strerror_r.
4226
75cafaa6
CB
42272019-10-31 Christian Biesinger <cbiesinger@google.com>
4228
4229 * ax.h (debug_agent): Remove duplicate declaration.
4230
30baf67b
TV
42312019-10-26 Tom de Vries <tdevries@suse.de>
4232
4233 * linux-aarch64-low.c: Fix typos in comments.
4234 * linux-arm-low.c: Same.
4235 * linux-low.c: Same.
4236 * linux-ppc-low.c: Same.
4237 * proc-service.c: Same.
4238 * regcache.h: Same.
4239 * server.c: Same.
4240 * tracepoint.c: Same.
4241 * win32-low.c: Same.
4242
52c64cf7
TT
42432019-10-25 Tom Tromey <tromey@adacore.com>
4244
4245 * utils.c (xstrdup): Remove.
4246
c12d372d
TT
42472019-10-23 Tom Tromey <tom@tromey.com>
4248
4249 * configure, config.in: Rebuild.
4250
4d0b984b
TT
42512019-10-23 Tom Tromey <tom@tromey.com>
4252
4253 * configure: Rebuild.
4254 * acinclude.m4: Use m4_include, not sinclude.
4255
c5adaa19
TT
42562019-10-17 Tom Tromey <tromey@adacore.com>
4257
4258 * configure: Rebuild.
4259 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4260 in AC_CONFIG_FILES invocation.
4261 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4262 invocation.
4263
fec4e896
CB
42642019-10-16 Christian Biesinger <cbiesinger@google.com>
4265
4266 * server.c: Include xml-builtin.h.
4267 (get_xml_features): Don't declare xml_builtins here.
4268
00975ff6
AB
42692019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4270
4271 * Makefile.in: Remove references to vec-ipa.o.
4272
0dc32745
AB
42732019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4274
4275 * Makefile.in: Remove references to vec.c.
4276
3e6ec53a
CB
42772019-10-02 Christian Biesinger <cbiesinger@google.com>
4278
4279 * server.c (server_waiting): Change to bool.
4280 (extended_protocol): Likewise.
4281 (response_needed): Likewise.
4282 (exit_requested): Likewise.
4283 (run_once): Likewise.
4284 (report_no_resumed): Likewise.
4285 (non_stop): Likewise.
4286 (disable_packet_vCont): Likewise.
4287 (disable_packet_Tthread): Likewise.
4288 (disable_packet_qC): Likewise.
4289 (disable_packet_qfThreadInfo): Likewise.
4290 (handle_general_set): Update.
4291 (handle_detach): Update.
4292 (handle_monitor_command): Update.
4293 (handle_query): Update.
4294 (captured_main): Update.
4295 (process_serial_event): Update.
4296 * server.h (server_waiting): Change to bool.
4297 (disable_packet_vCont): Likewise.
4298 (disable_packet_Tthread): Likewise.
4299 (disable_packet_qC): Likewise.
4300 (disable_packet_qfThreadInfo): Likewise.
4301 (run_once): Likewise.
4302 (non_stop): Likewise.
4303 * target.c (target_stop_and_wait): Update.
4304
80fd2826
TT
43052019-10-02 Tom Tromey <tromey@adacore.com>
4306
4307 * Makefile.in (SFILES): Add common-inferior.c.
4308 (OBS): Add common-inferior.o.
4309 * server.c (startup_with_shell): Don't define.
4310
46f29a9a
AB
43112019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4312
4313 * linux-low.c (linux_low_read_btrace): Update for change to
4314 std::vector.
4315
f9d949fb
CB
43162019-09-20 Christian Biesinger <cbiesinger@google.com>
4317
4318 * debug.c (debug_threads): Remove comment in favor of the header.
4319 * debug.h (using_threads): Add declaration.
4320 (debug_threads): Add comment.
4321 * linux-aarch64-low.c: Include debug.h and remove declaration of
4322 debug_threads.
4323 * nto-low.c: Likewise.
4324 * remote-utils.c: Likewise.
4325 * thread-db.c: Likewise.
4326
abf516c6
UW
43272019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4328
4329 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4330 and powerpc-cell64l-ipa.o.
4331 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4332 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4333 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4334 (spu*-*-*): Remove.
4335
4336 * spu-low.c: Remove file.
4337
4338 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4339 (parse_spufs_run): Remove.
4340 (ppc_get_pc): Remove Cell/B.E. support.
4341 (ppc_set_pc): Likewise.
4342 (ppc_breakpoint_at): Likewise.
4343 (ppc_arch_setup): Likewise.
4344 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4345 tdesc_powerpc_cell32l.
4346 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4347 or init_registers_powerpc_cell32l.
4348 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4349 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4350 or init_registers_powerpc_cell32l.
4351 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4352 (init_registers_powerpc_cell32l): Remove prototype.
4353 (init_registers_powerpc_cell64l): Likewise.
4354
4355 * target.h (struct target_ops): Remove qxfer_spu member.
4356 * server.c (handle_qxfer_spu): Remove.
4357 (qxfer_packets): Remove entry for "spu".
4358 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4359 * linux-low.c (SPUFS_MAGIC): Remove.
4360 (spu_enumerate_spu_ids): Remove.
4361 (linux_qxfer_spu): Remove.
4362 (linux_target_ops): Remove qxfer_spu member.
4363 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4364 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4365 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4366
2d41fa11
SDJ
43672019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4368
4369 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4370 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4371 * config.in: Regenerate.
4372 * configure: Regenerate.
4373
d59b55f0
TT
43742019-08-15 Tom Tromey <tromey@adacore.com>
4375
4376 * target.c (target_write_memory): Use gdb::byte_vector.
4377
4196ab2a
TT
43782019-08-15 Tom Tromey <tromey@adacore.com>
4379
4380 * tracepoint.c (write_inferior_data_pointer)
4381 (write_inferior_integer, write_inferior_int8)
4382 (write_inferior_uinteger, m_tracepoint_action_download)
4383 (r_tracepoint_action_download, x_tracepoint_action_download)
4384 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4385 (download_agent_expr, download_tracepoint_1)
4386 (download_trace_state_variables, upload_fast_traceframes): Update.
4387 * server.c (gdb_write_memory): Update.
4388 * remote-utils.c (relocate_instruction): Update.
4389 * proc-service.c (ps_pdwrite): Update.
4390 * mem-break.c (remove_memory_breakpoint)
4391 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4392 (uninsert_fast_tracepoint_jumps_at)
4393 (reinsert_fast_tracepoint_jumps_at): Update.
4394 * linux-x86-low.c (append_insns)
4395 (i386_install_fast_tracepoint_jump_pad)
4396 (amd64_write_goto_address, i386_write_goto_address): Update.
4397 * linux-s390-low.c (append_insns, s390_write_goto_address):
4398 Update.
4399 * linux-ppc-low.c (ppc_relocate_instruction)
4400 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4401 (ppc_write_goto_address): Update.
4402 * linux-aarch64-low.c (append_insns): Update.
4403 * target.h (struct target_ops): Update.
4404 (write_inferior_memory): Don't declare.
4405 * target.c (target_write_memory): Rename from
4406 write_inferior_memory. Remove old target_write_memory.
4407
c6778d00
TT
44082019-08-15 Tom Tromey <tromey@adacore.com>
4409
4410 * target.c (write_inferior_memory): Use std::vector.
4411
404f2902
FCE
44122019-08-06 Frank Ch. Eigler <fche@redhat.com>
4413
4414 PR build/24886
4415 * configure.ac: Drop enable-libmcheck support.
4416 * configure, config.in: Rebuild.
4417 * acinclude.m4: Don't include it.
4418
4c5aa8e0
AH
44192019-07-19 Alan Hayward <alan.hayward@arm.com>
4420
4421 * configure.srv: Remove Arm xml files.
4422
7cc17433
AH
44232019-07-19 Alan Hayward <alan.hayward@arm.com>
4424
4425 * configure.srv: Add new files. Remove xml generated files.
4426 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4427 registers.
4428 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4429 * linux-aarch32-tdesc.c: New file.
4430 * linux-aarch32-tdesc.h: New file.
4431 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4432 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4433 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4434 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4435 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4436 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4437 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4438 (arm_read_description): Call arm_linux_read_description.
4439 (initialize_low_arch): Don't init registers.
4440 * linux-arm-tdesc.c: New file.
4441 * linux-arm-tdesc.h: New file.
4442
166a82be
AH
44432019-07-10 Alan Hayward <alan.hayward@arm.com>
4444
4445 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4446 Move counter inside for.
4447 (arm_read_description): Check ptrace earlier.
4448 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4449
268a13a5
TT
44502019-07-09 Tom Tromey <tom@tromey.com>
4451
4452 * configure: Rebuild.
4453 * configure.ac: Change common to gdbsupport.
4454 * acinclude.m4: Change common to gdbsupport.
4455 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4456 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4457 common to gdbsupport.
4458 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4459 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4460 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4461 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4462 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4463 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4464 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4465 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4466 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4467 common to gdbsupport.
4468
350fab54
AH
44692019-07-04 Alan Hayward <alan.hayward@arm.com>
4470
4471 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4472 defines.
4473 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4474
2b40fda7
AH
44752019-07-04 Alan Hayward <alan.hayward@arm.com>
4476
4477 * configure.srv: Remove legacy xml.
4478 * linux-aarch64-low.c (initialize_low_arch): Remove
4479 initialize_low_tdesc call.
4480 * linux-aarch64-tdesc-selftest.c: Remove file.
4481 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4482 * linux-x86-low.c (initialize_low_arch): Remove
4483 initialize_low_tdesc call.
4484 * linux-x86-tdesc-selftest.c: Remove file.
4485 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4486
7d10623d
TV
44872019-06-20 Tom de Vries <tdevries@suse.de>
4488
4489 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4490 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4491
8d6a48df
TV
44922019-06-19 Tom de Vries <tdevries@suse.de>
4493
4494 * debug.h (debug_write): Change return type to ssize_t.
4495 * debug.c (debug_write): Same.
4496
73cc7272
TT
44972019-06-14 Tom Tromey <tom@tromey.com>
4498
4499 * configure.ac: Use new path to gnulib.
4500 * configure: Rebuild.
4501 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4502 to gnulib.
4503
08f10e02
TT
45042019-06-11 Tom Tromey <tom@tromey.com>
4505
4506 * Makefile.in (SFILES): Add alloc.c.
4507 (OBS): Add alloc.o.
4508 (IPA_OBJS): Add alloc-ipa.o.
4509 (alloc-ipa.o): New target.
4510 (%.o: ../%.c): New pattern rule.
4511
422186a9
TT
45122019-06-10 Tom Tromey <tromey@adacore.com>
4513
4514 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4515 end warning with a newline.
4516 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4517 newline.
4518 * thread-db.c (attach_thread): Don't end warning with a newline.
4519 (thread_db_notice_clone): Likewise.
4520 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4521 newline.
4522 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4523 end warning with a newline.
4524
b02f78f9
PA
45252019-06-04 Pedro Alves <palves@redhat.com>
4526
4527 * server.c (captured_main): Use make_unique_xstrdup.
4528
88ed7edb
TT
45292019-06-02 Tom Tromey <tom@tromey.com>
4530
4531 * gdbreplay.c (fromhex): Remove.
4532 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4533
33a6bc35
TT
45342019-05-29 Tom Tromey <tromey@adacore.com>
4535
4536 * configure: Rebuild.
4537
e90a813d
KB
45382019-05-06 Kevin Buettner <kevinb@redhat.com>
4539
4540 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4541 sign extension code on 32-bit builds.
4542
353ea2d1
EZ
45432019-05-03 Eli Zaretskii <eliz@gnu.org>
4544
4545 * remote-utils.c:
4546 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4547
b494cdff
TT
45482019-04-19 Tom Tromey <tom@tromey.com>
4549
4550 * server.c (struct vstop_notif): Derive from notif_event.
4551 <base>: Remove.
4552 (queue_stop_reply): Update.
4553 (remove_all_on_match_ptid): Change type. Rewrite.
4554 (discard_queued_stop_replies): Rewrite.
4555 (in_queued_stop_replies_ptid): Change type.
4556 (in_queued_stop_replies): Rewrite.
4557 (notif_stop): Update.
4558 (queue_stop_reply_callback): Update.
4559 (captured_main): Don't call initialize_notif.
4560 (push_stop_notification): Update.
4561 * notif.c (notif_write_event, handle_notif_ack)
4562 (notif_event_enque, notif_push): Update.
4563 (notif_event_xfree, initialize_notif): Remove.
4564 * notif.h (struct notif_event): Include <list>, not
4565 "common/queue.h".
4566 (struct notif_server) <queue>: Now a std::list.
4567 (notif_event_p): Remove typedef.
4568 (initialize_notif): Don't declare.
4569 (struct notif_event): Add virtual destructor.
4570
a7e559cc
AH
45712019-04-17 Alan Hayward <alan.hayward@arm.com>
4572
4573 * ax.c (ax_vdebug): Call debug_printf.
4574 * debug.c (debug_write): New function.
4575 * debug.h (debug_write): New declaration.
4576 * linux-low.c (sigchld_handler): Call debug_write.
4577
aeb2e706
AH
45782019-04-17 Alan Hayward <alan.hayward@arm.com>
4579
4580 * debug.c (debug_set_output): New function.
4581 (debug_vprintf): Send output to debug_file.
4582 (debug_flush): Likewise.
4583 * debug.h (debug_set_output): New declaration.
4584 * server.c (handle_monitor_command): Add debug-file option.
4585 (captured_main): Likewise.
4586
c1bc0935
AH
45872019-04-17 Alan Hayward <alan.hayward@arm.com>
4588
4589 * debug.c (remote_debug): Add definition.
4590 * debug.h (remote_debug): Add declaration.
4591 * hostio.c (remote_debug): Remove declaration.
4592 * remote-utils.c (struct ui_file): Likewise.
4593 (remote_debug): Likewise.
4594 * remote-utils.h (remote_debug): Likewise,
4595 * server.c (remote_debug): Remove definition.
4596
3f52fdbc
KB
45972019-04-10 Kevin Buettner <kevinb@redhat.com>
4598
4599 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4600 when using a 64-bit gdbserver.
4601
b0319eaa
TT
46022019-04-09 Tom Tromey <tromey@adacore.com>
4603
4604 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4605
eedc3f4f
TT
46062019-04-08 Tom Tromey <tom@tromey.com>
4607
4608 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4609 throw.
4610 (linux_resume_one_lwp): Likewise.
4611
230d2906
TT
46122019-04-08 Tom Tromey <tom@tromey.com>
4613
4614 * gdbreplay.c: Update.
4615 * linux-low.c: Update.
4616 * server.c: Update.
4617
a70b8144
TT
46182019-04-08 Tom Tromey <tom@tromey.com>
4619
4620 * server.c: Use C++ exception handling.
4621 * linux-low.c: Use C++ exception handling.
4622 * gdbreplay.c: Use C++ exception handling.
4623
3d6e9d23
TT
46242019-04-08 Tom Tromey <tom@tromey.com>
4625
4626 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4627 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4628 (captured_main, main): Update.
4629 * gdbreplay.c (main): Update.
4630
0570503d
PFC
46312019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4632
4633 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4634 value in argument pointer, return 1 if the entry is found and 0
4635 otherwise. Move comment.
4636 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4637 * linux-low.h (linux_get_auxv): Declare.
4638 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4639
227a9e65
TT
46402019-04-05 Tom Tromey <tromey@adacore.com>
4641
4642 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4643 variables.
4644
69f4c9cc
AH
46452019-03-28 Alan Hayward <alan.hayward@arm.com>
4646
4647 * linux-low.c (AT_HWCAP2): Add define if not already included.
4648
974c89e0
AH
46492019-03-26 Alan Hayward <alan.hayward@arm.com>
4650
4651 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4652 (aarch64_arch_setup): Call linux_get_hwcap.
4653 * linux-arm-low.c (arm_get_hwcap): Remove function.
4654 (arm_read_description): Call linux_get_hwcap.
4655 * linux-low.c (linux_get_auxv): New function.
4656 (linux_get_hwcap): Likewise.
4657 (linux_get_hwcap2): Likewise.
4658 * linux-low.h (linux_get_hwcap): New declaration.
4659 (linux_get_hwcap2): Likewise.
4660 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4661 (ppc_arch_setup): Call linux_get_hwcap.
4662 * linux-s390-low.c (s390_get_hwcap): Remove function.
4663 (s390_arch_setup): Call linux_get_hwcap.
4664
1ef53e6b
AH
46652019-03-22 Alan Hayward <alan.hayward@arm.com>
4666 Jiong Wang <jiong.wang@arm.com>
4667
4668 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4669 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4670 to fail.
4671 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4672
ee4fbcfa
AH
46732019-03-22 Alan Hayward <alan.hayward@arm.com>
4674 Jiong Wang <jiong.wang@arm.com>
4675
4676 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4677 (aarch64_get_hwcap): New function.
4678 (aarch64_arch_setup): Read APIA hwcap.
4679
6dc0ebde
AH
46802019-03-22 Alan Hayward <alan.hayward@arm.com>
4681 Jiong Wang <jiong.wang@arm.com>
4682
4683 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4684 (initialize_low_tracepoint): Likewise.
4685 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4686 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4687 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4688 (aarch64_linux_read_description): Likewise.
4689 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4690
1163a4b7
JB
46912019-03-12 John Baldwin <jhb@FreeBSD.org>
4692
4693 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4694 i386_create_target_description for 'segments' parameter.
4695 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4696 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4697 * win32-i386-low.c (i386_arch_setup): Likewise.
4698
d3a70e03
TT
46992019-03-12 Tom Tromey <tromey@adacore.com>
4700
4701 * linux-low.c (iterate_over_lwps): Update.
4702
37991b4f
TT
47032019-03-06 Tom Tromey <tom@tromey.com>
4704
4705 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4706 (captured_main): Use SCOPE_EXIT.
4707
45950eb6
SDJ
47082019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4709
4710 * configure.srv: Use '$enable_unittest' instead of '$development'
4711 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4712 case.
4713
43ac54fc
TT
47142019-02-27 Tom Tromey <tromey@adacore.com>
4715
4716 * gdbreplay.c (logchar): Handle \r\n.
4717
df0da8a2
AH
47182019-02-07 Alan Hayward <alan.hayward@arm.com>
4719
4720 * linux-low.c (linux_attach): Add process before lwp.
4721 * server.c (attach_inferior): Check if already attached.
4722
1a5c2598
TT
47232019-02-07 Tom Tromey <tom@tromey.com>
4724
4725 * x86-tdesc.h: Rename include guard.
4726 * x86-low.h: Add include guard.
4727 * wincecompat.h: Rename include guard.
4728 * win32-low.h: Add include guard.
4729 * utils.h: Rename include guard.
4730 * tracepoint.h: Rename include guard.
4731 * tdesc.h: Rename include guard.
4732 * target.h: Rename include guard.
4733 * server.h: Rename include guard.
4734 * remote-utils.h: Rename include guard.
4735 * regcache.h: Rename include guard.
4736 * nto-low.h: Rename include guard.
4737 * notif.h: Add include guard.
4738 * mem-break.h: Rename include guard.
4739 * lynx-low.h: Add include guard.
4740 * linux-x86-tdesc.h: Add include guard.
4741 * linux-s390-tdesc.h: Add include guard.
4742 * linux-ppc-tdesc-init.h: Add include guard.
4743 * linux-low.h: Add include guard.
4744 * linux-aarch64-tdesc.h: Add include guard.
4745 * linux-aarch32-low.h: Add include guard.
4746 * inferiors.h: Rename include guard.
4747 * i387-fp.h: Rename include guard.
4748 * hostio.h: Rename include guard.
4749 * gdbthread.h: Rename include guard.
4750 * gdb_proc_service.h: Rename include guard.
4751 * event-loop.h: Rename include guard.
4752 * dll.h: Rename include guard.
4753 * debug.h: Rename include guard.
4754 * ax.h: Rename include guard.
4755
956cc47c
SN
47562018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4757
4758 PR gdb/23985
4759 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4760 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4761
a0707f3c
TT
47622019-01-25 Tom Tromey <tom@tromey.com>
4763
4764 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4765
0747795c
TT
47662019-01-25 Tom Tromey <tom@tromey.com>
4767
4768 * win32-low.c: Fix common/ includes.
4769 * win32-i386-low.c: Fix common/ includes.
4770 * tracepoint.c: Fix common/ includes.
4771 * thread-db.c: Fix common/ includes.
4772 * target.h: Fix common/ includes.
4773 * symbol.c: Fix common/ includes.
4774 * spu-low.c: Fix common/ includes.
4775 * server.h: Fix common/ includes.
4776 * server.c: Fix common/ includes.
4777 * remote-utils.c: Fix common/ includes.
4778 * regcache.h: Fix common/ includes.
4779 * regcache.c: Fix common/ includes.
4780 * nto-x86-low.c: Fix common/ includes.
4781 * notif.h: Fix common/ includes.
4782 * mem-break.h: Fix common/ includes.
4783 * lynx-low.c: Fix common/ includes.
4784 * lynx-i386-low.c: Fix common/ includes.
4785 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4786 * linux-x86-low.c: Fix common/ includes.
4787 * linux-low.c: Fix common/ includes.
4788 * inferiors.h: Fix common/ includes.
4789 * i387-fp.c: Fix common/ includes.
4790 * hostio.c: Fix common/ includes.
4791 * hostio-errno.c: Fix common/ includes.
4792 * gdbthread.h: Fix common/ includes.
4793 * gdbreplay.c: Fix common/ includes.
4794 * fork-child.c: Fix common/ includes.
4795 * event-loop.c: Fix common/ includes.
4796 * ax.c:
4797 (enum gdb_agent_op): Fix common/ includes.
4798
be6d4f74
TT
47992019-01-21 Tom Tromey <tom@tromey.com>
4800
4801 * tracepoint.c: Fix includes.
4802 * remote-utils.c: Fix includes.
4803 * linux-x86-low.c: Fix includes.
4804
66d91b39
JB
48052019-01-01 Joel Brobecker <brobecker@adacore.com>
4806
4807 * gdbreplay.c (gdbreplay_version): Update copyright year in
4808 version message.
4809 * server.c (gdbserver_version): Likewise.
4810
754e3168
AH
48112018-12-05 Alan Hayward <alan.hayward@arm.com>
4812
4813 * linux-low.c (add_lwp): Switch ordering.
4814
d105de22
TT
48152018-11-29 Tom Tromey <tom@tromey.com>
4816
4817 * win32-low.c (win32_join): Take pid, not process.
4818 * target.h (struct target_ops) <join>: Change argument type.
4819 (join_inferior): Change argument name.
4820 * spu-low.c (spu_join): Take pid, not process.
4821 * server.c (handle_detach): Preserve pid before destroying
4822 process.
4823 * lynx-low.c (lynx_join): Take pid, not process.
4824 * linux-low.c (linux_join): Take pid, not process.
4825
50138245
AH
48262018-11-23 Alan Hayward <alan.hayward@arm.com>
4827
4828 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4829 (aarch64_cannot_fetch_register): Likewise.
4830 (struct linux_target_ops): Update references.
4831
64f57f3d
PFC
48322018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4833
4834 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4835
8d619c01
EBM
48362018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4837
4838 * configure.srv (ipa_ppc_linux_regobj): Add
4839 powerpc-isa207-htm-vsx32l-ipa.o and
4840 powerpc-isa207-htm-vsx64l-ipa.o.
4841 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4842 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4843 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4844 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4845 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4846 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4847 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4848 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4849 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4850 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4851 (init_registers_powerpc_isa207_htm_vsx32l)
4852 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4853 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4854 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4855 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4856 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4857 (ppc_store_tm_ctarregset): New functions.
4858 (ppc_regsets): Add entries for HTM regsets.
4859 (ppc_arch_setup): Set htm in features struct when needed. Set
4860 sizes for the HTM regsets.
4861 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4862 (initialize_low_arch): Call
4863 init_registers_powerpc_isa207_htm_vsx32l and
4864 init_registers_powerpc_isa207_htm_vsx64l.
4865 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4866 PPC_TDESC_ISA207_HTM_VSX.
4867 (initialize_low_tracepoint): Call
4868 init_registers_powerpc_isa207_htm_vsx32l and
4869 init_registers_powerpc_isa207_htm_vsx64l.
4870
232bfb86
EBM
48712018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4872
4873 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4874 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4875 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4876 (ppc_store_pmuregset): New functions.
4877 (ppc_regsets): Add entries for ebb and pmu regsets.
4878 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4879 pmu regsets are available. Set sizes for these regsets.
4880
f2cf6173
EBM
48812018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4882
4883 * configure.srv (ipa_ppc_linux_regobj): Add
4884 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4885 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4886 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4887 rs6000/powerpc-isa207-vsx32l.xml, and
4888 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4889 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4890 <PPC_TDESC_ISA207_VSX>: New enum value.
4891 (init_registers_powerpc_isa207_vsx32l): Declare.
4892 (init_registers_powerpc_isa207_vsx64l): Declare.
4893 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4894 (ppc_store_tarregset): New function.
4895 (ppc_regsets): Add entry for the TAR regset.
4896 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4897 size for the TAR regsets.
4898 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4899 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4900 and init_registers_powerpc_isa207_vsx64l.
4901 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4902 (initialize_low_tracepoint): Call
4903 init_registers_powerpc_isa207_vsx32l and
4904 init_registers_powerpc_isa207_vsx64l.
4905
7ca18ed6
EBM
49062018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4907 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4908
4909 * configure.srv (ipa_ppc_linux_regobj): Add
4910 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4911 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4912 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4913 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4914 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4915 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4916 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4917 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4918 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4919 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4920 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4921 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4922 (ppc_hwcap): Add comment.
4923 (ppc_hwcap2): New global.
4924 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4925 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4926 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4927 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4928 when needed. Set sizes for the the DSCR and PPR regsets.
4929 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4930 (initialize_low_arch): Call
4931 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4932 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4933 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4934 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4935 (initialize_low_tracepoint): Call
4936 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4937 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4938
5c849b22
PFC
49392018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4940
4941 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4942
8ecfd7bd
SDJ
49432018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4944 Simon Marchi <simark@simark.ca>
4945
4946 * acinclude.m4: Include "../selftest.m4".
4947 * configure: Regenerate.
4948 * configure.ac: Use "GDB_AC_SELFTEST".
4949 * configure.srv: Use "$enable_unittests" instead of
4950 "$development" when checking whether unit tests have been
4951 enabled.
4952 * server.c (captured_main): Update message informing that
4953 selftests have been disabled.
4954
96643e35
TT
49552018-10-04 Tom Tromey <tom@tromey.com>
4956
4957 * configure: Rebuild.
4958
da4ae14a
TT
49592018-10-04 Tom Tromey <tom@tromey.com>
4960
4961 * server.c (handle_status): Rename inner "thread".
4962 (process_serial_event): Declare "res" in 'm' case.
4963 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4964 (iterate_over_lwps): Rename inner "thread".
4965 (linux_qxfer_libraries_svr4): Rename inner "len".
4966 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4967
7c619dbd
GB
49682018-10-01 Gary Benson <gbenson@redhat.com>
4969
4970 * gdb_proc_service.h: Moved common code to
4971 common/gdb_proc_service.h.
4972
3795e814
GB
49732018-10-01 Gary Benson <gbenson@redhat.com>
4974
4975 * gdb_proc_service.h: Synchronize comments and whitespace with
4976 GDB's version of this file.
4977
49b036f1
TT
49782018-09-25 Tom Tromey <tom@tromey.com>
4979
4980 * configure: Rebuild.
4981 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4982
8ff03f0b
SM
49832018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4984
4985 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4986 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4987 ($(IPA_LIB)): Sort IPA_OBJS.
4988
a1cd91dc
SM
49892018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4990
4991 * Makefile.in: Remove references to $(ADD_DEPS).
4992
752312ba
TT
49932018-09-16 Tom Tromey <tom@tromey.com>
4994
4995 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4996 variables.
4997 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4998 variables.
4999
f1628857
TT
50002018-09-05 Tom Tromey <tom@tromey.com>
5001
5002 * configure: Rebuild.
5003
ad202fcc
SM
50042018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5005
5006 PR build/23399
5007 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5008
d3d8724a
TT
50092018-08-27 Tom Tromey <tom@tromey.com>
5010
5011 PR build/23087:
5012 * configure: Rebuild.
5013
b4f183d2
TT
50142018-08-27 Tom Tromey <tom@tromey.com>
5015
5016 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5017 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5018 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5019 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5020 (s390x_emit_stack_adjust): Add casts to unsigned char.
5021
4e2aa472
SM
50222018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5023
5024 PR gdb/23374
5025 PR gdb/23375
5026 * server.h (struct client_state) <disable_randomization>:
5027 Initialize to 1.
5028
cf4088a9
SM
50292018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5030
5031 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5032 variable.
5033 (mips_supply_ptrace_register): Likewise.
5034
a0de763e
TT
50352018-07-22 Tom Tromey <tom@tromey.com>
5036
5037 * configure: Rebuild.
5038
b0a7723d
TT
50392018-07-22 Tom Tromey <tom@tromey.com>
5040
5041 * win32-low.c (win32_create_inferior): Remove unused variables.
5042 * gdbreplay.c (remote_open): Remove unused variable.
5043 * remote-utils.c (remote_prepare): Remove unused variable.
5044 * x86-tdesc.h (X86_TDESC_H): Define.
5045 (amd64_expedite_regs): Define conditionally.
5046 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5047 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5048 * remote-utils.c (readchar): Remove unused variable.
5049
a780ef4f
PA
50502018-07-13 Pedro Alves <palves@redhat.com>
5051
5052 * linux-low.c (linux_kill): Change parameter to process_info
5053 pointer instead of pid. Adjust.
5054 * lynx-low.c (lynx_kill): Likewise.
5055 * nto-low.c (nto_kill): Likewise.
5056 * spu-low.c (spu_kill): Likewise.
5057 * win32-low.c (win32_kill): Likewise.
5058 * server.c (handle_v_kill, kill_inferior_callback)
5059 (detach_or_kill_for_exit): Adjust.
5060 * target.c (kill_inferior): Change parameter to process_info
5061 pointer instead of pid. Adjust.
5062 * target.h (struct target_ops) <kill>: Change parameter to
5063 process_info pointer instead of pid. Adjust all implementations
5064 and callers.
5065 (kill_inferior): Likewise.
5066
ef2ddb33
PA
50672018-07-13 Pedro Alves <palves@redhat.com>
5068
5069 * linux-low.c (linux_detach, linux_join): Change parameter to
5070 process_info pointer instead of pid. Adjust.
5071 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5072 * nto-low.c (nto_detach): Likewise.
5073 * spu-low.c (spu_detach, spu_join): Likewise.
5074 * win32-low.c (win32_detach, win32_join): Likewise.
5075 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5076 * target.h (struct target_ops) <detach, join>: Change parameter to
5077 process_info pointer instead of pid. Adjust all implementations
5078 and callers.
5079 (detach_inferior, join_inferior): Rename 'pid' parameter to
5080 'proc'.
5081
c7ab0aef
SDJ
50822018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5083 Jan Kratochvil <jan.kratochvil@redhat.com>
5084 Paul Fertser <fercerpav@gmail.com>
5085 Tsutomu Seki <sekiriki@gmail.com>
5086
5087 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5088 (OBS): Add 'common/netstuff.o'.
5089 (GDBREPLAY_OBS): Likewise.
5090 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5091 (remote_open): Implement support for IPv6
5092 connections.
5093 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5094 and 'wspiapi.h'.
5095 (handle_accept_event): Accept connections from IPv6 sources.
5096 (remote_prepare): Handle IPv6-style hostnames; implement
5097 support for IPv6 connections.
5098 (remote_open): Implement support for printing connections from
5099 IPv6 sources.
5100
31445d10
PA
51012018-07-11 Pedro Alves <palves@redhat.com>
5102
5103 PR gdb/23377
5104 * mem-break.c (any_persistent_commands): Add process_info
5105 parameter and use it instead of relying on the current process.
5106 Change return type to bool.
5107 * mem-break.h (any_persistent_commands): Add process_info
5108 parameter and change return type to bool.
5109 * server.c (handle_detach): Remove require_running_or_return call.
5110 Look up the process_info for the process we're about to detach.
5111 If not found, return back error to GDB. Adjust
5112 any_persistent_commands call to pass down a process pointer.
5113
cb197132
PA
51142018-07-11 Pedro Alves <palves@redhat.com>
5115
5116 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5117 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5118 instead of collect_register_by_name.
5119 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5120 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5121
1b919490
VB
51222018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5123 Pedro Alves <palves@redhat.com>
5124
5125 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5126
d7e15655
TT
51272018-07-03 Tom Tromey <tom@tromey.com>
5128
5129 * linux-low.c: Update.
5130 * lynx-low.c: Update.
5131 * mem-break.c: Update.
5132 * nto-low.c: Update.
5133 * remote-utils.c: Update.
5134 * server.c: Update.
5135 * spu-low.c: Update.
5136 * target.c: Update.
5137 * win32-low.c: Update.
5138
26a57c92
TT
51392018-07-03 Tom Tromey <tom@tromey.com>
5140
5141 * server.c: Update.
5142
0e998d96
TT
51432018-07-03 Tom Tromey <tom@tromey.com>
5144
5145 * linux-low.c: Update.
5146
cc6bcb54
TT
51472018-07-03 Tom Tromey <tom@tromey.com>
5148
5149 * target.c: Update.
5150
e38504b3
TT
51512018-07-03 Tom Tromey <tom@tromey.com>
5152
5153 * linux-low.c: Update.
5154 * linux-mips-low.c: Update.
5155 * lynx-low.c: Update.
5156 * nto-low.c: Update.
5157 * remote-utils.c: Update.
5158 * server.c: Update.
5159 * spu-low.c: Update.
5160 * target.c: Update.
5161 * thread-db.c: Update.
5162
e99b03dc
TT
51632018-07-03 Tom Tromey <tom@tromey.com>
5164
5165 * linux-low.c: Update.
5166 * linux-mips-low.c: Update.
5167 * lynx-low.c: Update.
5168 * mem-break.c: Update.
5169 * nto-low.c: Update.
5170 * remote-utils.c: Update.
5171 * server.c: Update.
5172 * spu-low.c: Update.
5173 * target.c: Update.
5174 * tracepoint.c: Update.
5175
f2907e49
TT
51762018-07-03 Tom Tromey <tom@tromey.com>
5177
5178 * linux-low.c: Update.
5179 * linux-ppc-low.c: Update.
5180 * linux-x86-low.c: Update.
5181 * proc-service.c: Update.
5182 * server.c: Update.
5183 * spu-low.c: Update.
5184 * thread-db.c: Update.
5185 * win32-low.c: Update.
5186
fd79271b
TT
51872018-07-03 Tom Tromey <tom@tromey.com>
5188
5189 * linux-low.c: Update.
5190 * lynx-low.c: Update.
5191 * nto-low.c: Update.
5192 * remote-utils.c: Update.
5193 * spu-low.c: Update.
5194 * thread-db.c: Update.
5195 * win32-low.c: Update.
5196
c0867626
SDJ
51972018-06-29 Joel Brobecker <brobecker@adacore.com>
5198
5199 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5200 parameter in call to 'amd64_create_target_description'.
5201
2512d7ef
JK
52022018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5203
5204 * x86-tdesc.h: Remove executable permission flag.
5205
d0ac1c44
SM
52062018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5207
5208 * configure.ac: Remove AC_PREREQ, add missing quoting.
5209 * configure: Re-generate.
5210 * config.in: Re-generate.
5211 * aclocal.m4: Re-generate.
5212
c4eb05ff
SM
52132018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5214
5215 * tracepoint.h (current_traceframe): Remove declaration.
5216
02895270
AH
52172018-06-18 Alan Hayward <alan.hayward@arm.com>
5218
5219 * linux-aarch64-low.c (is_sve_tdesc): New function.
5220 (aarch64_sve_regs_copy_to_regcache): Likewise.
5221 (aarch64_sve_regs_copy_from_regcache): Likewise.
5222 (aarch64_regs_info): Add SVE checks.
5223 (initialize_low_arch): Initialize SVE.
5224
e9902bfc
AH
52252018-06-18 Alan Hayward <alan.hayward@arm.com>
5226
5227 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5228
fefa175e
AH
52292018-06-11 Alan Hayward <alan.hayward@arm.com>
5230
5231 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5232 (initialize_low_tracepoint): Likewise
5233 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5234 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5235 param.
5236 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5237 checks.
5238 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5239
b91ad3ff
AH
52402018-06-11 Alan Hayward <alan.hayward@arm.com>
5241
5242 * server.h (PBUFSIZ): Increase size
5243
f868386e
AH
52442018-06-11 Alan Hayward <alan.hayward@arm.com>
5245
5246 * regcache.c (regcache::raw_compare): New function.
5247 * regcache.h (regcache::raw_compare): New declaration.
5248
9c861883
AH
52492018-06-11 Alan Hayward <alan.hayward@arm.com>
5250
5251 * regcache.c (new_register_cache): Use new.
5252 (free_register_cache): Use delete.
5253 (register_data): Use const.
5254 (supply_register): Move body inside regcache.
5255 (regcache::raw_supply): New override function.
5256 (collect_register): Move body inside regcache.
5257 (regcache::raw_collect): New override function.
5258 (regcache::get_register_status): New override function.
5259 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5260
40591844
TT
52612018-06-09 Tom Tromey <tom@tromey.com>
5262
5263 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5264 declare queue.
5265 (event_queue): Use std::queue.
5266 (gdb_event_xfree): Remove.
5267 (initialize_event_loop, process_event, wait_for_event): Update.
5268
6341380d
SC
52692018-06-08 Stan Cox <scox@redhat.com>
5270
5271 * win32-low.c (win32_create_inferior): last_ptid and last_status
5272 moved to client_state.
5273
03349c93
PA
52742018-06-08 Pedro Alves <palves@redhat.com>
5275
5276 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5277 common/common-exceptions.o, common/common-utils.o,
5278 common/errors.o, common/print-utils.o and utils.o.
5279 * gdbreplay.c: Include "common-defs.h" instead of the two
5280 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5281 string.h or alloca.h.
5282 (perror_with_name): Delete.
5283 (remote_open): Use xstrdup instead of strdup.
5284 (main): Rename to ...
5285 (captured_main): ... this.
5286 (main): New.
5287
8dcc53b3
TT
52882018-06-08 Tom Tromey <tom@tromey.com>
5289
5290 * linux-low.c (linux_low_read_btrace): Update.
5291
c12a5089
SC
52922018-06-04 Stan Cox <scox@redhat.com>
5293
5294 * server.h (struct client_state): New.
5295 * server.c (cont_thread, general_thread, multi_process)
5296 (report_fork_events, report_vfork_events, report_exec_events)
5297 (report_thread_events, swbreak_feature, hwbreak_feature)
5298 (vCont_supported, disable_randomization, pass_signals)
5299 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5300 Moved to client_state.
5301 * remote-utils.c (remote_debug, noack_mode)
5302 (transport_is_reliable): Moved to client_state.
5303 * tracepoint.c (current_traceframe): Moved to client_state.
5304
5305 Update all callers.
5306 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5307 linux-low.c, remote-utils.h, target.c: Use client_state.
5308
122394f1
AH
53092018-05-31 Alan Hayward <alan.hayward@arm.com>
5310
5311 * configure.srv: Add new c/h file.
5312
95228a0d
AH
53132018-05-31 Alan Hayward <alan.hayward@arm.com>
5314
5315 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5316 null VQ.
5317
d8dab6c3
MR
53182018-05-25 Maciej W. Rozycki <macro@mips.com>
5319
5320 * gdb.arch/mips-fpregset-core.exp: New test.
5321 * gdb.arch/mips-fpregset-core.c: New test source.
5322
81e25b7c
EK
53232018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5324
5325 PR server/23198
5326 * hostio.c (require_int): Do not report overflow for integers
5327 between 0xfffffff and 0x7fffffff.
5328
7e947ad3
MR
53292018-05-22 Maciej W. Rozycki <macro@mips.com>
5330
5331 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5332 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5333 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5334 functions.
5335 (the_low_target): Wire them.
5336
1d75a658
PFC
53372018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5338
5339 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5340 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5341 mode. Call collect_register_by_name with vscr using
5342 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5343 (ppc_store_vrregset): Add and set vscr_offset variable as in
5344 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5345 vscr_offset.
5346
d078308a
PFC
53472018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5348
5349 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5350 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5351 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5352
7273b5fc
PFC
53532018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5354
5355 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5356 (ppc_store_vsxregset): Likewise.
5357 (ppc_fill_vrregset): Likewise.
5358 (ppc_store_vrregset): Likewise.
5359 (ppc_fill_evrregset): Likewise.
5360 (ppc_store_evrregset): Likewise.
5361 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5362 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5363 needed.
5364
2e077f5e
PFC
53652018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5366
5367 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5368 wordsize of the inferior. Call ppc_linux_target_wordsize.
5369
bd64614e
PFC
53702018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5371
5372 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5373 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5374 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5375 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5376 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5377 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5378 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5379 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5380 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5381 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5382 (tdesc_powerpc_e500l): Remove.
5383 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5384 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5385 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5386 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5387 linux-ppc-tdesc.h.
5388 (ppc_arch_setup): Remove target description matching code. Fill a
5389 ppc_linux_features struct and call ppc_linux_match_description
5390 with it.
5391
75d74cca
MR
53922018-05-22 Maciej W. Rozycki <macro@mips.com>
5393
5394 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5395 width of the requested register exceeds the width of the
5396 `ptrace' data type.
5397 (mips_cannot_store_register): Likewise.
5398
e4439e43
MR
53992018-05-21 Maciej W. Rozycki <macro@mips.com>
5400
5401 * linux-mips-low.c (mips_fetch_register): New function. Update
5402 preceding comment.
5403 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5404 (the_low_target): Wire `mips_fetch_register'.
5405
55271bf9
JB
54062018-05-10 Joel Brobecker <brobecker@adacore.com>
5407
5408 * lynx-i386-low.c (LYNXOS_178): New macro.
5409 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5410 the layout on LynxOS-178.
5411 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5412 handle floating point registers that are not supported by
5413 LynxOS-178.
5414
1a34f210
TT
54152018-05-10 Tom Tromey <tom@tromey.com>
5416
5417 * configure: Rebuild.
5418
190852c8
JB
54192018-05-10 Joel Brobecker <brobecker@adacore.com>
5420
5421 PR server/23158:
5422 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5423 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5424 Use it to set the expedite_regs field in the given tdesc.
5425 * x86-tdesc.h: New file.
5426 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5427 Adjust following the addition of the new expedite_regs parameter
5428 to init_target_desc.
5429 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5430 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5431 (i386_linux_read_description, amd64_linux_read_description):
5432 Adjust following the addition of the new expedite_regs parameter
5433 to init_target_desc.
5434 * lynx-i386-low.c: #include "x86-tdesc.h".
5435 (lynx_i386_arch_setup): Adjust following the addition of the new
5436 expedite_regs parameter to init_target_desc.
5437 * nto-x86-low.c: #include "x86-tdesc.h".
5438 (nto_x86_arch_setup): Adjust following the addition of the new
5439 expedite_regs parameter to init_target_desc.
5440 * win32-i386-low.c: #include "x86-tdesc.h".
5441 (i386_arch_setup): Adjust following the addition of the new
5442 expedite_regs parameter to init_target_desc.
5443
7dbac825
JB
54442018-05-10 Joel Brobecker <brobecker@adacore.com>
5445
5446 PR server/23158:
5447 * win32-low.c (win32_create_inferior): Add call to my_wait
5448 setting last_status global.
5449
906994d9
JB
54502018-05-10 Joel Brobecker <brobecker@adacore.com>
5451
5452 PR server/23158:
5453 * win32-low.c (create_process): Only call gdb_tilde_expand if
5454 inferior_cwd is not NULL.
5455
8ee22052
AB
54562018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5457
5458 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5459 registers to the cache if their values have changed.
5460 (i387_xsave_to_cache): Provide default values for x87 control
5461 registers when these features are available, but disabled.
5462 * regcache.c (supply_register_by_name_zeroed): New function.
5463 * regcache.h (supply_register_by_name_zeroed): Declare new
5464 function.
5465
aff689d3
TT
54662018-05-07 Tom Tromey <tom@tromey.com>
5467
5468 * configure: Rebuild.
5469
85e26832
TT
54702018-05-04 Tom Tromey <tom@tromey.com>
5471
5472 * configure: Rebuild.
5473
a3b60e45
JK
54742018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5475 Pedro Alves <palves@redhat.com>
5476
5477 * linux-aarch64-low.c (aarch64_stopped_data_address):
5478 Likewise.
5479
632e107b
TT
54802018-04-27 Tom Tromey <tom@tromey.com>
5481
5482 * configure: Rebuild.
5483
458412c3
TT
54842018-04-23 Tom Tromey <tom@tromey.com>
5485
5486 * configure: Rebuild.
5487
f31c089e
SM
54882018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5489
5490 * Makefile.in (depcomp): Add "..".
5491 (all_deps_files): New and use it.
5492
b319b098
AH
54932018-04-18 Alan Hayward <alan.hayward@arm.com>
5494
5495 * configure.srv (aarch64*-*-linux*): Don't include xml.
5496 (i[34567]86-*-cygwin*): Likewise.
5497 (i[34567]86-*-linux*): Likewise.
5498 (i[34567]86-*-lynxos*): Likewise.
5499 (i[34567]86-*-mingw32ce*): Likewise.
5500 (i[34567]86-*-mingw*): Likewise.
5501 (i[34567]86-*-nto*): Likewise.
5502 (tic6x-*-uclinux): Likewise.
5503 (x86_64-*-linux*): Likewise.
5504 (x86_64-*-mingw*): Likewise.
5505 (x86_64-*-cygwin*): Likewise.
5506
3b74854b
AH
55072018-04-18 Alan Hayward <alan.hayward@arm.com>
5508
5509 * tdesc.c: Remove xml parameter.
5510
e98577a9
AH
55112018-04-18 Alan Hayward <alan.hayward@arm.com>
5512
5513 * server.c (get_features_xml): Remove cast.
5514 * tdesc.c (void target_desc::accept): Fill in function.
5515 (tdesc_get_features_xml): Remove old xml creation.
5516 (print_xml_feature::visit_pre): Add xml vistor.
5517 * tdesc.h (struct target_desc): Make xmltarget mutable.
5518 (tdesc_get_features_xml): Remove declaration.
5519
d278f585
AH
55202018-04-18 Alan Hayward <alan.hayward@arm.com>
5521
5522 * tdesc.c (tdesc_architecture_name): Add new function.
5523 (tdesc_osabi_name): Likewise.
5524 (tdesc_get_features_xml): Use new functions.
5525
eee8a18d
AH
55262018-04-18 Alan Hayward <alan.hayward@arm.com>
5527
5528 * tdesc.c (tdesc_create_flags): Remove.
5529 (tdesc_add_flag): Likewise.
5530 (tdesc_named_type): Likewise.
5531 (tdesc_create_union): Likewise.
5532 (tdesc_create_struct): Likewise.
5533 (tdesc_create_vector): Likewise.
5534 (tdesc_add_bitfield): Likewise.
5535 (tdesc_add_field): Likewise.
5536 (tdesc_set_struct_size): Likewise.
5537
82ec9bc7
AH
55382018-04-18 Alan Hayward <alan.hayward@arm.com>
5539
5540 * tdesc.c (~target_desc): Remove implictly deleted items.
5541 (init_target_desc): Iterate all features.
5542 (tdesc_get_features_xml): Use vector.
5543 (tdesc_create_feature): Create feature.
5544 * tdesc.h (tdesc_feature) Remove
5545 (target_desc): Add features.
5546
ea3e7d71
AH
55472018-04-18 Alan Hayward <alan.hayward@arm.com>
5548
5549 * Makefile.in: Add common/tdesc.c
5550 * tdesc.c (init_target_desc): init all reg_defs from register
5551 vector.
5552 (tdesc_create_reg): Create tdesc_reg.
5553 * tdesc.h (tdesc_feature): Add register vector.
5554
17d08cd4
SM
55552018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5556
5557 * tdesc.h (struct target_desc) <features>: Change type to
5558 std::vector<std::string>.
5559 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5560 changes.
5561 (tdesc_get_features_xml): Likewise.
5562 (tdesc_create_feature): Likewise.
5563
5cd3e386
AH
55642018-03-26 Alan Hayward <alan.hayward@arm.com>
5565
5566 * regcache.c (find_register_by_number): Return a ref.
5567 (find_regno): Use references.
5568 (register_size): Likewise.
5569 (register_data): Likewise.
5570 * tdesc.c (target_desc::~target_desc): Remove free calls.
5571 (target_desc::operator==): Use std::vector compare.
5572 (init_target_desc): Use reference.
5573 (tdesc_create_reg): Use reg constructors.
5574 * tdesc.h (struct target_desc): Replace pointer with object.
5575
dff7492c
AH
55762018-03-23 Alan Hayward <alan.hayward@arm.com>
5577
5578 * regcache.c (find_register_by_number): Make static.
5579 (find_regno): Use find_register_by_number
5580 * regcache.h (struct reg): Remove declaration.
5581
d80e5242
AH
55822018-03-23 Alan Hayward <alan.hayward@arm.com>
5583
5584 * tdesc.c (target_desc::~target_desc): Move to here.
5585 (target_desc::operator==): Likewise.
5586 * tdesc.h (target_desc::~target_desc): Move from here.
5587 (target_desc::operator==): Likewise.
5588
f69c5afb
AA
55892018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5590
5591 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5592
ce29f843
AA
55932018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5594
5595 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5596 S390_TDESC_GS.
5597 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5598 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5599 and init_registers_s390_gs_linux64.
5600
c49bd90b
AA
56012018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5602
5603 * linux-s390-low.c (s390_fill_gs): Remove function.
5604 (s390_fill_gsbc): Remove function.
5605 (s390_regsets): Set fill functions for the guarded storage regsets
5606 to NULL.
5607
7edb9bd3
AA
56082018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5609
5610 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5611 the word size. Add comment.
5612 (s390_get_wordsize): New function.
5613 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5614 pswm with it. Instead, use s390_get_wordsize to determine the
5615 word size first and derive the correct tdesc from that directly.
5616
39be3c7e
SM
56172018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5618
5619 * Makefile.in: Include silent-rules.mk.
5620 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5621 (COMPILE): Add ECHO_CXX.
5622 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5623 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5624 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5625 (version-generated.c): Add ECHO_GEN.
5626 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5627 (IPAGENT_COMPILE): Add ECHO_CXX.
5628 (%-generated.c): Add ECHO_REGDAT.
5629
3ae9ce5d
TT
56302018-03-14 Tom Tromey <tom@tromey.com>
5631
5632 PR cli/14977:
5633 * ax.c (ax_printf): Special case for NULL.
5634
e6a58aa8
SM
56352018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5636
5637 * linux-low.c (linux_qxfer_libraries_svr4): Use
5638 xml_escape_text_append.
5639
f6e8a41e
SM
56402018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5641
5642 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5643
b9671caf
SM
56442018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5645
5646 * server.c (handle_general_set): Remove unnecessary xstrdup.
5647
e80aaf61
SM
56482018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5649
5650 * server.c (parse_debug_format_options): Adjust to
5651 delim_string_to_char_ptr_vec changes.
5652 * thread-db.c (thread_db_load_search): Adjust to
5653 dirnames_to_char_ptr_vec changes.
5654
b1223e78
MM
56552018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5656
5657 * target.h (target_enable_btrace, target_disable_btrace)
5658 (target_read_btrace, target_read_btrace_conf): Turn macro into
5659 inline function. Throw error if target method is not defined.
5660 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5661 check for btrace target method. Be prepared to handle exceptions
5662 from btrace target methods.
5663
81561546
SDJ
56642018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5665
5666 * server.c (captured_main): Change order of error message printed
5667 when the current working directory cannot be found.
5668
25e3c82c
SDJ
56692018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5670
5671 * server.c: Include "filenames.h" and "pathstuff.h".
5672 (program_name): Delete variable.
5673 (program_path): New anonymous class.
5674 (get_exec_wrapper): Use "program_path" instead of
5675 "program_name".
5676 (handle_v_run): Likewise.
5677 (captured_main): Likewise.
5678 (process_serial_event): Likewise.
5679
b4987c95
SDJ
56802018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5681
5682 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5683 (OBJS): Add "pathstuff.o".
5684 * server.c (current_directory): New global variable.
5685 (captured_main): Initialize "current_directory".
5686
f46cd62a
AH
56872018-02-26 Alan Hayward <alan.hayward@arm.com>
5688
5689 * tdesc.c: Use common/tdesc.h.
5690 * tdesc.h: Likewise.
5691
a543c5ca
AH
56922018-02-20 Alan Hayward <alan.hayward@arm.com>
5693 Simon Marchi <simon.marchi@ericsson.com>
5694
5695 * Makefile.in: Switch order of make rules.
5696
b5884fa7
AH
56972018-02-19 Alan Hayward <alan.hayward@arm.com>
5698
5699 * Makefile.in: Add common directory in build.
5700 * configure.ac: Add common reference.
5701 * configure: Regenerate.
5702
de6242d3
MM
57032018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5704
5705 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5706 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5707 * spu-low.c (spu_target_ops): Likewise.
5708 * win32-low.c (win32_target_ops): Likewise.
5709 * server.c (supported_btrace_packets): Report packets unconditionally.
5710 * target.h (target_ops) <supports_btrace>: Remove.
5711 (target_supports_btrace): Remove.
5712
9ee23a85
MM
57132018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5714
5715 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5716 (handle_btrace_disable): Change return type to void. Use exceptions
5717 to report errors.
5718 (handle_btrace_general_set): Catch exception and copy message to
5719 return message.
5720
8ce47547
TT
57212018-02-08 Tom Tromey <tom@tromey.com>
5722
5723 * linux-low.c (install_software_single_step_breakpoints): Use
5724 make_scoped_restore.
5725 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5726 (do_restore_current_thread_cleanup): Remove.
5727 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5728 declare.
5729
45dd3607
TT
57302018-02-08 Tom Tromey <tom@tromey.com>
5731
5732 * mem-break.c (set_raw_breakpoint_at): Use
5733 gdb::unique_xmalloc_ptr.
5734
e671cd59
PA
57352018-01-30 Pedro Alves <palves@redhat.com>
5736
5737 PR gdb/13211
5738 * target.c (target_terminal::terminal_state): Rename to ...
5739 (target_terminal::m_terminal_state): ... this.
5740
a0aad537
JC
57412018-01-19 James Clarke <jrtc27@jrtc27.com>
5742
5743 * linux-low.c (handle_extended_wait): Surround call to
5744 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5745
4d9b86e1
SM
57462018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5747
5748 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5749 linux_ptrace_attach_fail_reason_string now returning an
5750 std::string.
5751 (linux_attach): Likewise.
5752 * thread-db.c (attach_thread): Likewise.
5753
f517c180
EA
57542018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5755
5756 PR gdb/21559
5757 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5758 checking for fs_base/gs_base fields in struct user_regs_struct.
5759 * configure: Regenerate.
5760
9a70f35c
YQ
57612018-01-16 Yao Qi <yao.qi@linaro.org>
5762
5763 PR gdb/18749
5764 * linux-low.c (fetch_register): Call supply_register instead of
5765 error.
5766
605fd3c6
YQ
57672018-01-08 Yao Qi <yao.qi@linaro.org>
5768 Simon Marchi <simon.marchi@ericsson.com>
5769
5770 * Makefile.in (OBS): Remove selftest.o.
5771 * configure.ac: Set srv_selftest_objs if $development is true.
5772 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5773 * configure: Re-generated.
5774 * server.c (captured_main): Wrap variable selftest_filter with
5775 GDB_SELF_TEST.
5776
2cc05030
SM
57772018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5778
5779 * server.c (parse_debug_format_options): Return std::string.
5780 (handle_monitor_command, captured_main): Adjust.
5781
e379cee6
PA
57822018-01-05 Pedro Alves <palves@redhat.com>
5783
5784 PR gdb/18653
5785 * server.c (captured_main): Pass quiet=false to
5786 save_original_signals_state.
5787
82e1e79a
JB
57882018-01-01 Joel Brobecker <brobecker@adacore.com>
5789
5790 * gdbreplay.c (gdbreplay_version): Update copyright year in
5791 version message.
5792 * server.c (gdbserver_version): Likewise.
5793
8e481c3b
TT
57942017-12-08 Tom Tromey <tom@tromey.com>
5795
5796 * ax.c (ax_printf): Update.
5797
a8806230
YQ
57982017-12-07 Yao Qi <yao.qi@linaro.org>
5799
5800 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5801 aarch64_linux_read_description.
5802 * linux-amd64-ipa.c (idx2mask): New array.
5803 (get_ipa_tdesc): Move idx2mask out.
5804 (initialize_low_tracepoint): Initialize target descriptions.
5805 * linux-i386-ipa.c (idx2mask): New array.
5806 (get_ipa_tdesc): Move idx2mask out.
5807 (initialize_low_tracepoint): Initialize target descriptions.
5808
d4a0e8b5
SM
58092017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5810
5811 * tdesc.c (struct tdesc_type): Change return type.
5812 (tdesc_add_flag): Change parameter type.
5813 (tdesc_add_bitfield): Likewise.
5814 (tdesc_add_field): Likewise.
5815 (tdesc_set_struct_size): Likewise.
5816
798a7429
SM
58172017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5818
5819 * regcache.c (registers_to_string): Remove unused variable.
5820
c0e15c9b
SM
58212017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5822
5823 * inferiors.c (for_each_inferior_with_data): Remove.
5824 * inferiors.h (for_each_inferior_with_data): Remove.
5825 * server.c (handle_qxfer_threads_worker): Change parameter type.
5826 (handle_qxfer_threads_proper): Use for_each_thread.
5827
f0045347
SM
58282017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5829
5830 * inferiors.c (for_each_inferior): Remove.
5831 (clear_inferiors): Use for_each_thread.
5832 * inferiors.h (for_each_inferior): Remove.
5833 * linux-low.c (linux_wait_for_event_filtered): Use
5834 for_each_thread.
5835 (linux_stabilize_threads): Likewise.
5836 * regcache.c (regcache_release): Likewise.
5837 * server.c (gdb_wants_all_threads_stopped): Likewise.
5838 (clear_pending_status_callback): Remove.
5839 (handle_status): Use for_each_thread.
5840 (captured_main): Likewise.
5841 * win32-low.c (child_init_thread_list): Likewise.
5842 (win32_clear_inferiors): Likewise.
5843 (fake_breakpoint_event): Likewise.
5844
9521758b
SM
58452017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5846
5847 * inferiors.h (find_inferior): Remove.
5848 * inferiors.c (find_inferior): Remove.
5849
8f86d7aa
SM
58502017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5851
5852 * linux-low.c (resume_status_pending_p): Update comment.
5853 (need_step_over_p): Update comment.
5854
e2b44075
SM
58552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 * linux-low.c (proceed_one_lwp): Return void, change parameter
5858 type.
5859 (unsuspend_and_proceed_one_lwp): Likewise.
5860 (proceed_all_lwps): Use for_each_thread.
5861 (unstop_all_lwps): Likewise.
5862
c80825ff
SM
58632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * linux-low.c (linux_resume_one_thread): Return void, take
5866 parameter directly.
5867 (linux_resume): Use for_each_thread.
5868
df3e4dbe
SM
58692017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5870
5871 * linux-low.c (send_sigstop_callback): Return void, change
5872 parameter type. Rename to...
5873 (send_sigstop): ... this.
5874 (suspend_and_send_sigstop_callback): Return void, change parameter
5875 type. Rename to...
5876 (suspend_and_send_sigstop): ... this.
5877 (stop_all_lwps): Use for_each_thread.
5878
5a6b0a41
SM
58792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5880
5881 * linux-low.c (lwp_running): Return bool, remove unused
5882 argument.
5883 (linux_stabilize_threads): Use find_thread.
5884
39a64da5
SM
58852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5886
5887 * linux-low.c (select_singlestep_lwp_callback): Remove.
5888 (count_events_callback): Remove.
5889 (select_event_lwp_callback): Remove.
5890 (select_event_lwp): Use find_thread/for_each_thread.
5891
a1385b7b
SM
58922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5893
5894 * linux-low.c (not_stopped_callback): Return bool, take filter
5895 argument directly.
5896 (linux_wait_for_event_filtered): Use find_thread.
5897 (linux_wait_1): Likewise.
5898
454296a2
SM
58992017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5900
5901 * linux-low.c (same_lwp): Remove.
5902 (find_lwp_pid): Use find_thread.
5903
6b2a85da
SM
59042017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5905
5906 * linux-low.c (delete_lwp_callback): Remove.
5907 (linux_mourn): Use for_each_thread.
5908
798a38e8
SM
59092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5910
5911 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5912 args parameter, don't check for pid.
5913 (linux_detach): Use for_each_thread.
5914
e4eb0dec
SM
59152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5916
5917 * linux-low.c (struct counter): Remove.
5918 (second_thread_of_pid_p): Remove.
5919 (last_thread_of_process_p): Use find_thread.
5920
83e1b6c1
SM
59212017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5922
5923 * inferiors.c (find_inferior_in_random): Remove.
5924 * inferiors.h (find_inferior_in_random): Remove.
5925 * linux-low.c (status_pending_p_callback): Return bool, accept
5926 parameter ptid directly.
5927 (linux_wait_for_event_filtered): Use find_thread_in_random.
5928 (linux_wait_1): Likewise.
5929
8dc7b443
SM
59302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5931
5932 * inferiors.c (find_inferior_id): Remove.
5933 (find_thread_ptid): Move implemention from find_inferior_id to
5934 here.
5935 * inferiors.h (find_inferior_id): Remove.
5936 * server.c (handle_status): Use find_thread_ptid.
5937 (process_serial_event): Likewise.
5938 * thread-db.c (find_one_thread): Likewise.
5939 (thread_db_thread_handle): Likewise.
5940 * win32-low.c (thread_rec): Likewise.
5941 (child_delete_thread): Likewise.
5942 (win32_thread_alive): Likewise.
5943 (get_child_debug_event): Likewise.
5944
da25033c
SM
59452017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5946
5947 * linux-mips-low.c (update_watch_registers_callback): Return
5948 void, remove pid_p parameter, don't check for pid.
5949 (mips_insert_point, mips_remove_point): Use for_each_thread.
5950
c91bb56b
SM
59512017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5952
5953 * lynx.low (lynx_delete_thread_callback): Remove.
5954 (lynx_mourn): Use for_each_thread.
5955
634a3254
SM
59562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5957
5958 * regcache.c (regcache_invalidate_one): Remove.
5959 (regcache_invalidate_pid): use for_each_thread.
5960
41272101
TT
59612017-11-26 Tom Tromey <tom@tromey.com>
5962
5963 * linux-low.c (linux_create_inferior): Update.
5964
f5291a6f
UW
59652017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5966
5967 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5968
6654d750
AH
59692017-11-24 Alan Hayward <alan.hayward@arm.com>
5970
5971 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5972 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5973 * linux-aarch64-tdesc-selftest.c: New file.
5974 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5975
59762017-11-24 Alan Hayward <alan.hayward@arm.com>
5977
5978 * configure.srv: Add new file.
5979 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5980 * linux-aarch64-tdesc-selftest.c: New file.
5981 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5982
49bdb7ee
AH
59832017-11-24 Alan Hayward <alan.hayward@arm.com>
5984
5985 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5986 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5987 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5988
d6d7ce56
AH
59892017-11-24 Alan Hayward <alan.hayward@arm.com>
5990
5991 * configure.srv: Add new files.
5992 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5993 aarch64_linux_read_description.
5994 * linux-aarch64-low.c (aarch64_linux_read_description):
5995 Merge with aarch64_arch_setup.
5996 (aarch64_arch_setup): Call aarch64_linux_read_description.
5997 * linux-aarch64-tdesc.c: New file.
5998 * linux-aarch64-tdesc.h: New file.
5999
506fe5f4
YQ
60002017-11-24 Yao Qi <yao.qi@linaro.org>
6001
6002 * configure.srv: Set $srv_regobj for tic6x-linux.
6003 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6004 (tic6x_read_description): Move some code to tic6x_arch_setup.
6005 (tic6x_tdesc_test): New function.
6006 (initialize_low_arch): Call selftests::register_test.
6007
29f9a567
YQ
60082017-11-22 Yao Qi <yao.qi@linaro.org>
6009
6010 * remote-utils.c (prepare_resume_reply): Use memcpy.
6011
578290ec
SM
60122017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6013
6014 * linux-low.c (kill_one_lwp_callback): Return void, take
6015 argument directly, don't filter on pid.
6016 (linux_kill): Use for_each_thread.
6017
eca55aec
SM
60182017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6019
6020 * linux-low.c (need_step_over_p): Return bool, remove dummy
6021 argument.
6022 (linux_resume, proceed_all_lwps): Use find_thread.
6023
25c28b4d
SM
60242017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6025
6026 * linux-low.c (resume_status_pending_p): Return bool, remove
6027 flag_p argument.
6028 (linux_resume): Use find_thread.
6029
5fdda392
SM
60302017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6031
6032 * linux-low.c (struct thread_resume_array): Remove.
6033 (linux_set_resume_request): Return void, take arguments
6034 directly.
6035 (linux_resume): Use for_each_thread.
6036
fcb056a5
SM
60372017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6038
6039 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6040 return bool, remove data argument.
6041 (linux_stabilize_threads): Use find_thread.
6042
139720c5
SM
60432017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6044
6045 * linux-low.c (unsuspend_one_lwp): Remove.
6046 (unsuspend_all_lwps): Use for_each_thread, inline code from
6047 unsuspend_one_lwp.
6048
6d1e5673
SM
60492017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6050
6051 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6052 * linux-low.c (struct iterate_over_lwps_args): Remove.
6053 (iterate_over_lwps_filter): Remove.
6054 (iterate_over_lwps): Use find_thread.
6055
bbf550d5
SM
60562017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6057
6058 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6059 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6060 code from reset_lwp_ptrace_options_callback.
6061
00192f77
SM
60622017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6063
6064 * linux-arm-low.c (struct update_registers_data): Remove.
6065 (update_registers_callback): Return void, take arguments
6066 directly, don't check thread's pid.
6067 (arm_insert_point, arm_remove_point): Use for_each_thread.
6068
2bee2b6c
SM
60692017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6070
6071 * win32-low.c (continue_one_thread): Return void, take argument
6072 directly.
6073 (child_continue): Use for_each_thread.
6074
0b360f19
SM
60752017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6076
6077 * win32-i386-low.c (update_debug_registers_callback): Rename
6078 to ...
6079 (update_debug_registers): ... this, return void, remove pid_p arg.
6080 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6081
f27866ba
SM
60822017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6083
6084 * inferiors.h (struct process_info): Add constructor, initialize
6085 fields..
6086 <syscalls_to_catch>: Change type to std::vector<int>.
6087 * inferiors.c (add_process): Allocate process_info with new.
6088 (remove_process): Free process_info with delete.
6089 * linux-low.c (handle_extended_wait): Adjust.
6090 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6091 * server.c (handle_general_set): Adjust.
6092
e849ea89
PA
60932017-11-16 Pedro Alves <palves@redhat.com>
6094
6095 * remote-utils.c (remote_close): Block SIGIO signals instead of
6096 uninstalling the SIGIO handler.
6097
1d0aa65c
AH
60982017-11-16 Alan Hayward <alan.hayward@arm.com>
6099
6100 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6101
3491a34c
YQ
61022017-11-16 Yao Qi <yao.qi@linaro.org>
6103
6104 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6105 (tic6x_store_gregset): Likewise.
6106 (tic6x_usrregs_info): Move it up.
6107
a602f924
AH
61082017-11-15 Alan Hayward <alan.hayward@arm.com>
6109
6110 * Makefile.in: Update arch rules.
6111 * configure.srv: Explicitly mark arch/ files.
6112
5616b6c3
AS
61132017-11-13 Andreas Schwab <schwab@suse.de>
6114
6115 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6116 function.
6117 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6118
d1928160
PA
61192017-11-06 Pedro Alves <palves@redhat.com>
6120
6121 * config.in, configure: Regenerate.
6122
bac608e7
SM
61232017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6124
6125 * target.c (struct thread_search): Remove.
6126 (thread_search_callback): Remove.
6127 (prepare_to_access_memory): Use for_each_thread instead of
6128 find_inferior. Inline code from thread_search_callback.
6129
eaddb425
SM
61302017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6131
6132 * server.c (struct visit_actioned_threads_data): Remove.
6133 (visit_actioned_threads): Change prototype to take arguments
6134 directly.
6135 (resume): Use find_thread instead of find_inferior.
6136
99078d34
SM
61372017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6138
6139 * server.c (queue_stop_reply_callback): Change prototype, return
6140 void.
6141 (find_status_pending_thread_callback): Remove.
6142 (handle_status): Replace find_inferior with find_thread and
6143 for_each_thread.
6144
cc628f3d
AH
61452017-10-25 Alan Hayward <alan.hayward@arm.com>
6146
6147 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6148 with REGNO.
6149 (aarch64_store_gregset): Likewise.
6150 (aarch64_fill_fpregset): Likewise.
6151 (aarch64_store_fpregset): Likewise.
6152
4d3bb80e
SM
61532017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6154
6155 * gdbthread.h (find_thread, for_each_thread): New functions.
6156 * inferiors.c (thread_of_pid): Remove.
6157 (find_any_thread_of_pid): Use find_thread.
6158 * linux-low.c (num_lwps): Use for_each_thread.
6159
7a7cdfa0
YQ
61602017-10-17 Yao Qi <yao.qi@linaro.org>
6161
6162 * Makefile.in: Remove one rule.
6163 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6164
e675d170
YQ
61652017-10-17 Yao Qi <yao.qi@linaro.org>
6166
6167 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6168 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6169
7eb4e0f9
YQ
61702017-10-17 Yao Qi <yao.qi@linaro.org>
6171
6172 * configure.srv: Rename arm.o with arch/arm.o.
6173
60d6cfc9
YQ
61742017-10-17 Yao Qi <yao.qi@linaro.org>
6175
6176 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6177 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6178 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6179 (arch-i386.o, arch-amd64.o): Remove rules.
6180 (arch/%.o): New rule.
6181 Update POSTCOMPILE and COMPILE.pre.
6182 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6183 * configure: Re-generated.
6184 * configure.srv: Replace arch-i386.o with arch/i386.o.
6185 Replace arch-amd64.o with arch/amd64.o.
6186
5bfda255
YQ
61872017-10-16 Yao Qi <yao.qi@linaro.org>
6188
6189 * configure: Regenerated.
6190
9c80ecd6
SM
61912017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6192
6193 * inferiors.h: (struct inferior_list): Remove.
6194 (struct inferior_list_entry); Remove.
6195 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6196 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6197 get_first_inferior): Remove.
6198 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6199 find_inferior_id, find_inferior_in_random): Change signature.
6200 * inferiors.c (all_threads): Change type to
6201 std::list<thread_info *>.
6202 (get_thread): Remove macro.
6203 (find_inferior, find_inferior_id): Change signature, implement
6204 using find_thread.
6205 (find_inferior_in_random): Change signature, implement using
6206 find_thread_in_random.
6207 (for_each_inferior, for_each_inferior_with_data): Change
6208 signature, implement using for_each_thread.
6209 (add_inferior_to_list, remove_inferior): Remove.
6210 (add_thread, get_first_thread, thread_of_pid,
6211 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6212 (get_first_inferior, one_inferior_p, clear_inferior_list):
6213 Remove.
6214 (clear_inferiors, get_thread_process): Update.
6215 * gdbthread.h: Include <list>.
6216 (struct thread_info) <entry>: Remove field.
6217 <id>: New field.
6218 (all_threads): Change type to std::list<thread_info *>.
6219 (get_first_inferior): Add doc.
6220 (find_thread, for_each_thread, find_thread_in_random): New
6221 functions.
6222 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6223 * linux-arm-low.c (update_registers_callback): Update.
6224 * linux-low.c (second_thread_of_pid_p): Update.
6225 (kill_one_lwp_callback, linux_detach_lwp_callback,
6226 delete_lwp_callback, status_pending_p_callback, same_lwp,
6227 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6228 iterate_over_lwps, not_stopped_callback,
6229 resume_stopped_resumed_lwps, count_events_callback,
6230 select_singlestep_lwp_callback, select_event_lwp_callback,
6231 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6232 suspend_and_send_sigstop_callback, wait_for_sigstop,
6233 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6234 lwp_running, linux_set_resume_request, resume_status_pending_p,
6235 need_step_over_p, start_step_over, linux_resume_one_thread,
6236 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6237 reset_lwp_ptrace_options_callback): Update.
6238 * linux-mips-low.c (update_watch_registers_callback): Update.
6239 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6240 Update.
6241 (free_register_cache_thread_one): Remove.
6242 (regcache_release): Update.
6243 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6244 handle_qxfer_threads_worker): Update.
6245 (handle_query): Update, use list iterator.
6246 (visit_actioned_threads, handle_pending_status,
6247 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6248 clear_pending_status_callback, set_pending_status_callback,
6249 find_status_pending_thread_callback, handle_status,
6250 process_serial_event): Update.
6251 * target.c (thread_search_callback): Update.
6252 * thread-db.c (thread_db_get_tls_address): Update.
6253 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6254 Update.
6255 * win32-i386-low.c (update_debug_registers_callback): Update.
6256 * win32-low.c (delete_thread_info, child_delete_thread,
6257 continue_one_thread, suspend_one_thread,
6258 get_child_debug_event): Adjust.
6259
9179355e
SM
62602017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6261
6262 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6263 * inferiors.h: Include <list>.
6264 (struct process_info) <entry>: Remove field.
6265 <pid>: New field.
6266 (pid_of): Change macro to function.
6267 (ptid_of, lwpid_of): Remove macro.
6268 (all_processes): Change type to std::list<process_info *>.
6269 (ALL_PROCESSES): Remove macro.
6270 (for_each_process, find_process): New function.
6271 * inferiors.c (all_processes): Change type to
6272 std::list<process_info *>.
6273 (find_thread_process): Adjust.
6274 (add_process): Likewise.
6275 (remove_process): Likewise.
6276 (find_process_pid): Likewise.
6277 (get_first_process): Likewise.
6278 (started_inferior_callback): Remove.
6279 (have_started_inferiors_p): Adjust.
6280 (attached_inferior_callback): Remove.
6281 (have_attached_inferiors_p): Adjust.
6282 * linux-low.c (check_zombie_leaders): Likewise.
6283 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6284 (x86_linux_update_xmltarget): Adjust.
6285 * server.c (handle_query): Likewise.
6286 (gdb_reattached_process): Remove.
6287 (handle_status): Adjust.
6288 (kill_inferior_callback): Likewise.
6289 (detach_or_kill_inferior): Remove.
6290 (print_started_pid): Likewise.
6291 (print_attached_pid): Likewise.
6292 (detach_or_kill_for_exit): Update.
6293 (process_serial_event): Likewise.
6294 * linux-arm-low.c (arm_new_fork): Likewise.
6295
c9cb8905
SM
62962017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6297
6298 * dll.h: Include <list>.
6299 (struct dll_info): Add constructor.
6300 <entry>: Remove field.
6301 (all_dlls): Change type to std::list<dll_info>.
6302 * dll.c: Include <algorithm>.
6303 (get_dll): Remove macro.
6304 (all_dlls): Change type to std::list<dll_info *>.
6305 (free_one_dll): Remove.
6306 (match_dll): Likewise.
6307 (loaded_dll): Adjust.
6308 (unloaded_dll): Adjust to all_dlls type change, use
6309 std::find_if. Inline code from match_dll.
6310 (clear_dlls): Adjust to all_dlls type change.
6311 * server.c (emit_dll_description): Remove.
6312 (handle_qxfer_libraries): Adjust to all_dlls type change,
6313 integrate emit_dll_description's functionality.
6314
04ec7890
SM
63152017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6316
6317 * linux-low.h (struct linux_target_ops) <delete_process>: New
6318 field.
6319 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6320 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6321 (struct linux_target_ops): Add delete_process callback.
6322 * linux-arm-low.c (arm_delete_process): New.
6323 (struct linux_target_ops): Add delete_process callback.
6324 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6325 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6326 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6327 * linux-mips-low.c (mips_linux_delete_process): New.
6328 (struct linux_target_ops): Add delete_process callback.
6329 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6330 * linux-s390-low.c (struct linux_target_ops): Likewise.
6331 * linux-sh-low.c (struct linux_target_ops): Likewise.
6332 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6333 * linux-tile-low.c (struct linux_target_ops): Likewise.
6334 * linux-x86-low.c (x86_linux_delete_process): New.
6335 (struct linux_target_ops): Add delete_process callback.
6336 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6337
466eecee
SM
63382017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6339
6340 * linux-aarch64-low.c (the_low_target): Add thread delete
6341 callback.
6342 * linux-arm-low.c (arm_delete_thread): New function.
6343 (the_low_target): Add thread delete callback.
6344 * linux-bfin-low.c (the_low_target): Likewise.
6345 * linux-crisv32-low.c (the_low_target): Likewise.
6346 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6347 set.
6348 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6349 field.
6350 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6351 * linux-mips-low.c (mips_linux_delete_thread): New function.
6352 (the_low_target): Add thread delete callback.
6353 * linux-ppc-low.c (the_low_target): Likewise.
6354 * linux-s390-low.c (the_low_target): Likewise.
6355 * linux-sh-low.c (the_low_target): Likewise.
6356 * linux-tic6x-low.c (the_low_target): Likewise.
6357 * linux-tile-low.c (the_low_target): Likewise.
6358 * linux-x86-low.c (the_low_target): Likewise.
6359 * linux-xtensa-low.c (the_low_target): Likewise.
6360
b79f7801
YZ
63612017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6362
6363 * win32-low.c: Include "common-inferior.h".
6364
bc3b087d
SDJ
63652017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6366
6367 * inferiors.c (set_inferior_cwd): New function.
6368 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6369 (handle_query): Inform that QSetWorkingDir is supported.
6370 * win32-low.c (create_process): Pass the inferior's cwd to
6371 CreateProcess.
6372
d092c5a2
SDJ
63732017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6374
6375 * inferiors.c (current_inferior_cwd): New global variable.
6376 (get_inferior_cwd): New function.
6377 * inferiors.h (struct process_info) <cwd>: New field.
6378
7da0a886
SDJ
63792017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6380
6381 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6382 (OBS): Add gdb_tilde_expand.o.
6383
289a6840
SM
63842017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6385
6386 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6387 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6388
256642e8
PA
63892017-09-29 Pedro Alves <palves@redhat.com>
6390
6391 * ax.c (gdb_parse_agent_expr): Constify.
6392 * ax.h (gdb_parse_agent_expr): Constify.
6393 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6394 Constify.
6395 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6396 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6397 * remote-utils.h (read_ptid): Constify.
6398 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6399 (process_point_options, process_serial_event): Constify.
6400 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6401 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6402 (cmd_qtbuffer): Constify.
6403
5b9ca4d4
PA
64042017-09-29 Pedro Alves <palves@redhat.com>
6405
6406 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6407 fails.
6408
94c207e0
PA
64092017-09-29 Pedro Alves <palves@redhat.com>
6410
6411 * linux-low.c (handle_extended_wait): Pass parent thread instead
6412 of process to thread_db_notice_clone.
6413 * linux-low.h (thread_db_notice_clone): Replace parent process
6414 parameter with parent thread parameter.
6415 * thread-db.c (find_one_thread): Add comment.
6416 (thread_db_notice_clone): Replace parent process parameter with
6417 parent thread parameter. Temporarily switch to the parent thread.
6418
75352e28
SDJ
64192017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6420
6421 * gdbthread.h: Include "common-gdbthread.h".
6422 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6423 "if" when validating the ptid.
6424 * remote-utils.c: Include "gdbthread.h".
6425 (prepare_resume_reply): Use "switch_to_thread".
6426 * target.c (done_accessing_memory): Likewise.
6427
ad339634
AA
64282017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6429
6430 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6431 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6432 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6433 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6434 s390x-gs-linux64-ipa.o to ipa_obj.
6435 * linux-s390-low.c (HWCAP_S390_GS): New define.
6436 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6437 New functions.
6438 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6439 (s390_arch_setup): Check for guarded-storage support and choose
6440 appropriate tdesc.
6441 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6442 init_registers_s390x_gs_linux64.
6443 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6444 enum value.
6445 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6446 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6447
cc4d742f
SM
64482017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6449
6450 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6451
f6327dcb
KB
64522017-09-21 Kevin Buettner <kevinb@redhat.com>
6453
6454 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6455 (thread_db_thread_handle): Declare.
6456 * linux-low.c (linux_target_ops): Initialize thread_handle.
6457 * server.c (handle_qxfer_threads_worker): Add support for
6458 "handle" attribute.
6459 * target.h (struct target_ops): Add new function pointer,
6460 thread_handle.
6461 (target_thread_handle): Define.
6462 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6463 field in lwp.
6464 (thread_db_thread_handle): New function.
6465
86299109
KB
64662017-09-21 Kevin Buettner <kevinb@redhat.com>
6467
6468 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6469 * linux-low.h (thread_db_notice_clone): Declare.
6470 * thread-db.c (thread_db_notice_clone): New function.
6471
f557a88a
PA
64722017-09-21 Pedro Alves <palves@redhat.com>
6473
6474 * server.c (gdb_read_memory, handle_status, process_serial_event)
6475 (handle_serial_event, handle_target_event): Adjust to
6476 set_desired_thread prototype change.
6477 * target.c (set_desired_thread): Remove 'use_general' parameter
6478 and adjust.
6479 * target.h (set_desired_thread): Remove 'use_general' parameter.
6480
223ffa71
TT
64812017-09-20 Tom Tromey <tom@tromey.com>
6482
6483 * target.c (target_terminal::terminal_state): Define.
6484 (target_terminal::init): Rename from target_terminal_init.
6485 (target_terminal::inferior): Rename from
6486 target_terminal_inferior.
6487 (target_terminal::ours): Rename from target_terminal_ours.
6488 (target_terminal::ours_for_output, target_terminal::info): New.
6489
04fd3ba9
SM
64902017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6491
6492 * server.c (accumulate_file_name_length): Remove.
6493 (emit_dll_description): Adjust to std::string change.
6494 (handle_qxfer_libraries): Use std::string to hold document.
6495
5e187554
SM
64962017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6497
6498 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6499 return type of xml_escape_text.
6500 * server.c (emit_dll_description): Likewise.
6501
1526853e
SM
65022017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6503
6504 * server.c (captured_main): Accept argument for --selftest.
6505 Update run_tests call.
6506 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6507 when registering selftests.
6508
c4dfafab
SDJ
65092017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6510
6511 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6512 instead of "VEC" for "target_desc.reg_defs".
6513 (regcache_cpy): Likewise.
6514 (registers_to_string): Likewise.
6515 (registers_from_string): Likewise.
6516 (find_regno): Likewise.
6517 (supply_regblock): Likewise.
6518 (regcache_raw_read_unsigned): Likewise.
6519 * tdesc.c (init_target_desc): Likewise.
6520 (tdesc_create_reg): Likewise.
6521 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6522 (struct target_desc) <reg_defs>: Convert to "std::vector".
6523 (target_desc): Do not initialize "reg_defs".
6524 (~target_desc): Update code to use "std::vector" instead of "VEC"
6525 for "target_desc.reg_defs".
6526 (operator==): Likewise.
6527
124aceb4
SM
65282017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6529
6530 * inferiors.h (thread_to_gdb_id): Remove.
6531 * inferiors.c (thread_to_gdb_id): Remove.
6532 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6533 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6534 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6535 Likewise.
6536 * nto-low.c (nto_fetch_registers, nto_store_registers,
6537 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6538
96cde54f
SM
65392017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6540
6541 * inferiors.h (gdb_id_to_thread_id): Remove.
6542 * inferiors.c (gdb_id_to_thread_id): Remove.
6543 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6544 removal. Move pid declaration closer to where it's used.
6545
e8ca139e
SM
65462017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6547
6548 * server.c (handle_detach): New function.
6549 (process_serial_event): Move code out, call handle_detach.
6550
f8a4e119
SM
65512017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6552
6553 * server.c (require_running): Rename to ...
6554 (require_running_or_return): ... this ...
6555 (require_running_or_break): ... and this.
6556 (handle_query, process_serial_event): Adjust.
6557
0eb0a407
SM
65582017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6559
6560 * linux-low.c (linux_set_resume_request): Remove unused
6561 variables.
6562
785922a5
SM
65632017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6564
6565 * server.c (first_thread_of): Remove.
6566 (process_serial_event): Replace usage of first_thread_of with
6567 find_any_thread_of_pid.
6568 * tracepoint.c (same_process_p): Remove.
6569 (gdb_agent_about_to_close): Replace usage of same_process_p with
6570 find_any_thread_of_pid.
6571 * linux-x86-low.c (same_process_callback): Remove.
6572 (x86_arch_setup_process_callback): Replace usage of
6573 same_process_callback with find_any_thread_of_pid.
6574 * thread-db.c (any_thread_of): Remove.
6575 (switch_to_process): Replace usage of any_thread_of with
6576 find_any_thread_of_pid.
6577 * inferiors.c (thread_pid_matches_callback): Remove.
6578 (find_thread_process): Adjust to use find_any_thread_of_pid.
6579
a059f00c
SDJ
65802017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6581
6582 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6583 with "!VEC_empty".
a059f00c 6584
cc397f3a
SDJ
65852017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6586
6587 * linux-low.c (handle_extended_wait): Use
6588 "allocate_target_description" instead of "XNEW".
6589 * linux-x86-low.c (initialize_low_arch): Likewise.
6590
22916b07
YQ
65912017-09-05 Yao Qi <yao.qi@linaro.org>
6592
6593 * configure.srv (srv_i386_regobj): Remove.
6594 (srv_amd64_regobj): Remove.
6595 (srv_regobj): Set it to "" for x86 non-linux targets.
6596 * linux-x86-tdesc.c (i386_linux_read_description):
6597 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6598 (init_registers_i386): Remove the declaration.
6599 (tdesc_i386): Remove the declaration.
6600 (lynx_i386_arch_setup): Call i386_create_target_description.
6601 * nto-x86-low.c: Likewise.
6602 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6603 [!__x86_64__]: include arch/i386.h.
6604 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6605
38602d55
YQ
66062017-09-05 Yao Qi <yao.qi@linaro.org>
6607
6608 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6609 i386/amd64-XXX-linux from it.
6610
44b886ff
YQ
66112017-09-05 Yao Qi <yao.qi@linaro.org>
6612
6613 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6614 false.
6615 (ipa_amd64_linux_regobj): Remove.
6616 (ipa_x32_linux_regobj): Remove.
6617
b4570e4b
YQ
66182017-09-05 Yao Qi <yao.qi@linaro.org>
6619
6620 * Makefile.in (arch-amd64.o): New rule.
6621 * configure.srv: Append arch-amd64.o.
6622 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6623 (get_ipa_tdesc): Call amd64_linux_read_description.
6624 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6625 and init_registers_amd64_XXX.
6626 * linux-x86-low.c (x86_linux_read_description): Call
6627 amd64_linux_read_description.
6628 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6629 (initialize_low_arch): Don't call init_registers_x32_XXX and
6630 init_registers_amd64_XXX.
6631 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6632 and tdesc_amd64_XXX.
6633 [__x86_64__] (amd64_tdesc_test): New function.
6634 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6635 and init_registers_amd64_XXX.
6636 * linux-x86-tdesc.c: Include arch/amd64.h.
6637 (xcr0_to_tdesc_idx): New function.
6638 (i386_linux_read_description): New function.
6639 (amd64_get_ipa_tdesc_idx): New function.
6640 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6641 (amd64_get_ipa_tdesc): Declare.
6642
d1f28ea2
YQ
66432017-09-05 Yao Qi <yao.qi@linaro.org>
6644
6645 * configure.srv (srv_i386_linux_xmlfiles): Remove
6646 i386/i386-XXX-linux.xml from it.
6647
25a93583
YQ
66482017-09-05 Yao Qi <yao.qi@linaro.org>
6649
6650 * configure.srv: Set srv_i386_linux_regobj empty if $development
6651 is false.
6652 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6653 initialize_low_tdesc.
6654 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6655 with #if initialize_low_tdesc.
6656 * linux-x86-tdesc-selftest.c: New file.
6657 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6658
5f035c07
YQ
66592017-09-05 Yao Qi <yao.qi@linaro.org>
6660
6661 * Makefile.in (arch-i386.o): New rule.
6662 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6663 (x86_64-*-linux*): Likewise.
6664 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6665 include arch/i386.h.
6666 (i386_linux_read_description): Remove code and call
6667 i386_create_target_description.
6668 * tdesc.c (allocate_target_description): New function.
6669 * tdesc.h (set_tdesc_architecture): Remove declaration.
6670 (set_tdesc_osabi): Likewise.
6671
0abe8a89
YQ
66722017-09-05 Yao Qi <yao.qi@linaro.org>
6673
6674 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6675 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6676 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6677 .xmltarget.
6678 * server.c (get_features_xml): Call tdesc_get_features_xml.
6679 * tdesc.c (set_tdesc_architecture): New function.
6680 (set_tdesc_osabi): New function.
6681 (tdesc_get_features_xml): New function.
6682 (tdesc_create_feature): Add an argument.
6683 * tdesc.h (struct target_desc) <features>: New field.
6684 <arch, osabi>: New field.
6685 (~target_desc): xfree features, arch, and osabi.
6686 (target_desc::oerator==): Don't compare .xmltarget.
6687 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6688 (set_tdesc_osabi): Likewise.
6689 (tdesc_get_features_xml): Likewise.
6690
0a188386
YQ
66912017-09-05 Yao Qi <yao.qi@linaro.org>
6692
6693 * linux-x86-tdesc.c: Include selftest.h.
6694 (i386_tdesc_test): New function.
6695 (initialize_low_tdesc): Call selftests::register_test.
6696 * tdesc.h: Include regdef.h.
6697 (target_desc): Override operator == and !=.
6698
f49ff000
YQ
66992017-09-05 Yao Qi <yao.qi@linaro.org>
6700
6701 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6702 (ipa_obj): Likewise.
6703 * linux-i386-ipa.c: Include common/x86-xstate.h
6704 (get_ipa_tdesc): Call i386_linux_read_description.
6705 (initialize_low_tracepoint): Don't call init_registers_XXX
6706 functions, call initialize_low_tdesc instead.
6707 * linux-x86-low.c (x86_linux_read_description): Call
6708 i386_linux_read_description.
6709 (initialize_low_arch): Don't call init_registers_i386_XXX
6710 functions, call initialize_low_tdesc.
6711 * linux-x86-tdesc.c: New file.
6712 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6713 (i386_get_ipa_tdesc_idx): Declare.
6714 (i386_get_ipa_tdesc): Declare.
6715 (initialize_low_tdesc): Declare.
6716
2b68ef2f
YQ
67172017-09-05 Yao Qi <yao.qi@linaro.org>
6718
6719 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6720 instead of 0.
6721
f7000548
YQ
67222017-09-05 Yao Qi <yao.qi@linaro.org>
6723
6724 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6725 * regcache.c (get_thread_regcache): Use VEC_length.
6726 (init_register_cache): Likewise.
6727 (regcache_cpy): Likewise.
6728 (registers_to_string): Iterate reg_defs via VEC_iterate.
6729 (find_regno): Likewise.
6730 (find_register_by_number): Use VEC_index.
6731 (register_size): Call find_register_by_number.
6732 (register_data): Call find_register_by_number.
6733 (supply_regblock): Use VEC_length.
6734 (regcache_raw_read_unsigned): Likewise.
6735 * tdesc.c (init_target_desc): Iterate reg_defs via
6736 VEC_iterate.
6737 (default_description): Update initializer.
6738 (copy_target_description): Don't update field num_registers.
6739 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6740 <num_registers>: Remove.
6741
50a421ac
SM
67422017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6743
6744 * Makefile.in (.SECONDARY): Define target.
6745
23fdd69e
SM
67462017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6747
6748 * linux-low.c (linux_wait_1): Adjust.
6749 * server.c (queue_stop_reply_callback): Adjust.
6750
0a2dde4a
SDJ
67512017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6752
6753 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6754 QEnvironmentUnset and QEnvironmentReset packets.
6755 (handle_query): Inform remote that QEnvironmentHexEncoded,
6756 QEnvironmentUnset and QEnvironmentReset are supported.
6757
6afd337d
SM
67582017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6759
6760 * inferiors.h (inferior_target_data): Rename to ...
6761 (thread_target_data): ... this.
6762 (inferior_regcache_data): Rename to ...
6763 (thread_regcache_data): ... this.
6764 (set_inferior_regcache_data): Rename to ...
6765 (set_thread_regcache_data): ... this.
6766 * inferiors.c (inferior_target_data): Rename to ...
6767 (thread_target_data): ... this.
6768 (inferior_regcache_data): Rename to ...
6769 (thread_regcache_data): ... this.
6770 (set_inferior_regcache_data): Rename to ...
6771 (set_thread_regcache_data): ... this.
6772 (free_one_thread): Update.
6773 * linux-low.h (get_thread_lwp): Update.
6774 * regcache.c (get_thread_regcache): Update.
6775 (regcache_invalidate_thread): Update.
6776 (free_register_cache_thread): Update.
6777 * win32-i386-low.c (update_debug_registers_callback): Update.
6778 (win32_get_current_dr): Update.
6779 * win32-low.c (thread_rec): Update.
6780 (delete_thread_info): Update.
6781 (continue_one_thread): Update.
6782 (suspend_one_thread): Update.
6783
a160cc46
SM
67842017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6785
6786 * inferiors.c (set_inferior_target_data): Remove.
6787 * inferiors.h (set_inferior_target_data): Remove.
6788
6d580b63
YQ
67892017-08-18 Yao Qi <yao.qi@linaro.org>
6790
6791 * Makefile.in (OBS): Add selftest.o.
6792 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6793 * configure, config.in: Re-generated.
6794 * server.c: Include common/sefltest.h.
6795 (captured_main): Handle option --selftest.
6796
f5a29eb0
YQ
67972017-08-09 Yao Qi <yao.qi@linaro.org>
6798
6799 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6800 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6801 i386-avx-mpx.o and i386-mmx.o.
6802 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6803 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6804 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6805 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6806 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6807 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6808 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6809 i386/amd64-avx-mpx.xml.
6810
57757c2f
YQ
68112017-08-09 Yao Qi <yao.qi@linaro.org>
6812
6813 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6814 and x32-avx-avx512.o.
6815 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6816 i386/x32-avx-avx512.xml.
6817
229d26fc
SM
68182017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6819
6820 * tracepoint.h (enum class fast_tpoint_collect_result): New
6821 enumeration.
6822 (fast_tracepoint_collecting): Change return type to
6823 fast_tpoint_collect_result.
6824 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6825 * linux-low.h: Include tracepoint.h.
6826 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6827 fast_tpoint_collect_result.
6828 * linux-low.c (handle_tracepoints): Adjust.
6829 (linux_fast_tracepoint_collecting): Change return type to
6830 fast_tpoint_collect_result.
6831 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6832 linux_wait_1, stuck_in_jump_pad_callback,
6833 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6834 proceed_one_lwp): Adjust to type change.
6835
2e1e43e1
YQ
68362017-07-10 Yao Qi <yao.qi@linaro.org>
6837
6838 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6839
adc764e7
YQ
68402017-06-29 Yao Qi <yao.qi@linaro.org>
6841
6842 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6843 Remove.
6844 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6845
a206891a
SM
68462017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6847
6848 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6849
9a6c7d9c
SDJ
68502017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6851
6852 * linux-low.c (linux_create_inferior): Adjust code to access the
6853 environment information via 'gdb_environ' class.
6854 * lynx-low.c (lynx_create_inferior): Likewise.
6855 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6856 (get_environ): Return a pointer to 'our_environ'.
6857 (captured_main): Initialize 'our_environ'.
6858 * server.h (get_environ): Adjust prototype.
6859 * spu-low.c (spu_create_inferior): Adjust code to access the
6860 environment information via 'gdb_environ' class.
6861
ae3e2ccf
SM
68622017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6863
6864 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6865 usage of "register" keyword.
6866
3e019bdc
SM
68672017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6868
6869 * configure: Re-generate.
6870
8465943a
SM
68712017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6872
6873 * configure: Re-generate.
6874
cf0dd6f0
SM
68752017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6876
6877 * Makefile.in (COMPILE.pre): Add "-x c++".
6878
9845682b
SDJ
68792017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6880
6881 * fork-child.c: Conditionally include <signal.h>.
6882
aefd8b33
SDJ
68832017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6884
6885 * server.c (handle_general_set): Handle new packet
6886 "QStartupWithShell".
6887 (handle_query): Add "QStartupWithShell" to the list of supported
6888 packets.
6889 (gdbserver_usage): Add help text explaining the
6890 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6891 options.
6892 (captured_main): Recognize and act upon the presence of the new
6893 CLI options.
6894
2090129c
SDJ
68952017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6896 Pedro Alves <palves@redhat.com>
6897
6898 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6899 * configure: Regenerate.
6900 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6901 "fork-inferior.o".
6902 (i[34567]86-*-lynxos*): Likewise.
6903 (spu*-*-*): Likewise.
6904 * fork-child.c: New file.
6905 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6906 and "environ.h".
6907 (linux_ptrace_fun): New function.
6908 (linux_create_inferior): Adjust function prototype to reflect
6909 change on "target.h". Adjust function code to use
6910 "fork_inferior".
6911 (linux_request_interrupt): Delete "signal_pid".
6912 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6913 (lynx_ptrace_fun): New function.
6914 (lynx_create_inferior): Adjust function prototype to reflect
6915 change on "target.h". Adjust function code to use
6916 "fork_inferior".
6917 * nto-low.c (nto_create_inferior): Adjust function prototype and
6918 code to reflect change on "target.h". Update comments.
6919 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6920 "common-terminal.h" and "environ.h".
6921 (terminal_fd): Moved to fork-child.c.
6922 (old_foreground_pgrp): Likewise.
6923 (restore_old_foreground_pgrp): Likewise.
6924 (last_status): Make it global.
6925 (last_ptid): Likewise.
6926 (our_environ): New variable.
6927 (startup_with_shell): Likewise.
6928 (program_name): Likewise.
6929 (program_argv): Rename to...
6930 (program_args): ...this.
6931 (wrapper_argv): New variable.
6932 (start_inferior): Delete function.
6933 (get_exec_wrapper): New function.
6934 (get_exec_file): Likewise.
6935 (get_environ): Likewise.
6936 (prefork_hook): Likewise.
6937 (post_fork_inferior): Likewise.
6938 (postfork_hook): Likewise.
6939 (postfork_child_hook): Likewise.
6940 (handle_v_run): Update code to deal with arguments coming from the
6941 remote host. Update calls from "start_inferior" to
6942 "create_inferior".
6943 (captured_main): Likewise. Initialize environment variable. Call
6944 "have_job_control".
6945 * server.h (post_fork_inferior): New prototype.
6946 (get_environ): Likewise.
6947 (last_status): Declare.
6948 (last_ptid): Likewise.
6949 (signal_pid): Likewise.
6950 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6951 (spu_ptrace_fun): New function.
6952 (spu_create_inferior): Adjust function prototype to reflect change
6953 on "target.h". Adjust function code to use "fork_inferior".
6954 * target.c (target_terminal_init): New function.
6955 (target_terminal_inferior): Likewise.
6956 (target_terminal_ours): Likewise.
6957 * target.h: Include <vector>.
6958 (struct target_ops) <create_inferior>: Update prototype.
6959 (create_inferior): Update macro.
6960 * utils.c (gdb_flush_out_err): New function.
6961 * win32-low.c (win32_create_inferior): Adjust function prototype
6962 and code to reflect change on "target.h".
6963
043a4934
SDJ
69642017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6965
6966 * inferiors.c (switch_to_thread): New function.
6967
15652511
SDJ
69682017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6969
6970 * Makefile.in (SFILE): Add "common/job-control.c".
6971 (OBS): Add "job-control.o".
6972
21ea5acd
SDJ
69732017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6974
6975 * Makefile: Remove "@host_makefile_frag@".
6976
e13cb306
PA
69772017-05-05 Pedro Alves <palves@redhat.com>
6978
6979 * configure: Regenerate.
6980
c94fee56
SDJ
69812017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6982
6983 * configure: Regenerate.
6984
a0ff9e1a
SM
69852017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6986
6987 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6988 software_single_step change of return type to
6989 std::vector<CORE_ADDR>.
6990 * linux-low.c (install_software_single_step_breakpoints):
6991 Likewise.
6992 * linux-low.h (install_software_single_step_breakpoints):
6993 Likewise.
6994
be628ab8
SDJ
69952017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6996
6997 * remote-utils.c: Include "gdb_termios.h" instead of
6998 "terminal.h".
6999 * terminal.h: Delete file.
7000
7c5ded6a
SDJ
70012017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7002
7003 * server.c: Include <vector>.
7004 <program_argv, wrapper_argv>: Convert to std::vector.
7005 (start_inferior): Rewrite function to use C++.
7006 (handle_v_run): Likewise. Update code that calculates the argv
7007 based on the vRun packet; use C++.
7008 (captured_main): Likewise.
7009
436252de
SM
70102017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7011
7012 * server.c (handle_v_cont): Initialize thread_resume::thread
7013 with null_ptid.
7014
9bf2a700
PA
70152017-04-05 Pedro Alves <palves@redhat.com>
7016
7017 * configure: Regenerate.
7018
a121b7c1
PA
70192017-04-05 Pedro Alves <palves@redhat.com>
7020
7021 * gdbreplay.c (sync_error): Constify.
7022 * linux-x86-low.c (push_opcode): Constify.
7023
21c8a587
PA
70242017-04-05 Pedro Alves <palves@redhat.com>
7025
7026 * win32-low.c (get_child_debug_event)
7027 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7028 Report TARGET_WAITKIND_SPURIOUS instead.
7029
fb32b4f7
PA
70302017-04-05 Pedro Alves <palves@redhat.com>
7031
e79be6e5
SM
7032 * remote-utils.c (remote_prepare, remote_open): Constify.
7033 * remote-utils.h (remote_prepare, remote_open): Constify.
7034 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7035
65dd1e59
SM
70362017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7037
7038 * Makefile.in (clean): Clear .deps.
7039
8fa5b777
SM
70402017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7041
7042 * .gitignore: Remove generated files, replace with wildcard.
7043 * (clean): Replace removal of generated files with wildcard.
7044 (version.c): Replace with...
7045 (version-generated.c): ...this.
7046 (xml-builtin.c): Replace with...
7047 (xml-builtin-generated.c): ...this.
7048 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7049 (%.c: *regformats*): Replace with...
7050 (%-generated.c: *regformats*): ...this.
7051
a12e714b
MF
70522017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7053
7054 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7055 (xtensa_fill_gregset): Call collect_register_by_name for
7056 threadptr register.
7057 (xtensa_store_gregset): Call supply_register_by_name for
7058 threadptr register.
7059
1a09b50a
MF
70602017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7061
7062 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7063 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7064 (xtensa_store_gregset): Call supply_register for all registers in
7065 a0_regnum..a0_regnum + C0_NREGS range.
7066
1a01e7c6
SM
70672017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7068
7069 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7070 (ax-ipa.o: ax.c): Remove.
7071 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7072 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7073 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7074 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7075 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7076
36bc18a8
SM
70772017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7078
7079 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7080 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7081 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7082 (errors-ipa.o: ../common/errors.c): Remove.
7083 (format-ipa.o: ../common/format.c): Remove.
7084 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7085
a8ebe3d5
SM
70862017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7087
7088 * Makefile.in (%-ipa.o: %.c): New rule.
7089 (tracepoint-ipa.o: tracepoint.c): Remove.
7090 (utils-ipa.o: utils.c): Remove.
7091 (remote-utils-ipa.o: remote-utils.c): Remove.
7092 (regcache-ipa.o: regcache.c): Remove.
7093 (i386-linux-ipa.o: i386-linux.c): Remove.
7094 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7095 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7096 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7097 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7098 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7099 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7100 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7101 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7102 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7103 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7104 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7105 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7106 (aarch64-ipa.o: aarch64.c): Remove.
7107 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7108 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7109 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7110 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7111 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7112 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7113 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7114 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7115 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7116 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7117 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7118 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7119 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7120 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7121 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7122 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7123 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7124 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7125 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7126 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7127 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7128 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7129 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7130 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7131 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7132 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7133 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7134 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7135 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7136 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7137 (tdesc-ipa.o: tdesc.c): Remove.
7138 (x32-linux-ipa.o: x32-linux.c): Remove.
7139 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7140 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7141
50cfacb7
SM
71422017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7143
7144 * Makefile.in (%.o: ../arch/%.c): New rule.
7145 (arm.o: ../arch/arm.c): Remove.
7146 (arm-linux.o: ../arch/arm-linux.c): Remove.
7147 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7148 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7149
c5a22423
SM
71502017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7151
7152 * Makefile.in (%.o: ../nat/%.c): New rule.
7153 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7154 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7155 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7156 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7157 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7158 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7159 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7160 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7161 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7162 (linux-personality.o: ../nat/linux-personality.c): Remove.
7163 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7164 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7165 (x86-linux.o: ../nat/x86-linux.c): Remove.
7166 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7167 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7168
6bda016b
SM
71692017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7170
7171 * Makefile.in (%.o: ../common/%.c): New rule.
7172 (signals.o: ../common/signals.c): Remove.
7173 (print-utils.o: ../common/print-utils.c): Remove.
7174 (rsp-low.o: ../common/rsp-low.c): Remove.
7175 (common-utils.o: ../common/common-utils.c): Remove.
7176 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7177 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7178 (vec.o: ../common/vec.c): Remove.
7179 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7180 (xml-utils.o: ../common/xml-utils.c): Remove.
7181 (ptid.o: ../common/ptid.c): Remove.
7182 (buffer.o: ../common/buffer.c): Remove.
7183 (format.o: ../common/format.c): Remove.
7184 (filestuff.o: ../common/filestuff.c): Remove.
7185 (agent.o: ../common/agent.c): Remove.
7186 (errors.o: ../common/errors.c): Remove.
7187 (environ.o: ../common/environ.c): Remove.
7188 (common-debug.o: ../common/common-debug.c): Remove.
7189 (cleanups.o: ../common/cleanups.c): Remove.
7190 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7191 (fileio.o: ../common/fileio.c): Remove.
7192 (common-regcache.o: ../common/common-regcache.c): Remove.
7193 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7194 (new-op.o: ../common/new-op.c): Remove.
7195 (btrace-common.o: ../common/btrace-common.c): Remove.
7196
21122961
SM
71972017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7198
7199 * Makefile.in (%.o: ../target/%.c): New rule.
7200 (waitstatus.o: ../target/waitstatus.c): Remove.
7201
c362e621
SM
72022017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7203
7204 * Makefile.in
7205 (%.c: ../regformats/%.dat,
7206 (%.c: ../regformats/arm/%.dat,
7207 (%.c: ../regformats/i386/%.dat,
7208 (%.c: ../regformats/rs6000/%.dat): New rules.
7209 (aarch64.c): Remove.
7210 (reg-arm.c): Remove.
7211 (arm-with-iwmmxt.c): Remove.
7212 (arm-with-vfpv2.c): Remove.
7213 (arm-with-vfpv3.c): Remove.
7214 (arm-with-neon.c): Remove.
7215 (reg-bfin.c): Remove.
7216 (reg-cris.c): Remove.
7217 (reg-crisv32.c): Remove.
7218 (i386.c): Remove.
7219 (i386-linux.c): Remove.
7220 (i386-avx.c): Remove.
7221 (i386-avx-linux.c): Remove.
7222 (i386-avx-avx512.c): Remove.
7223 (i386-avx-avx512-linux.c): Remove.
7224 (i386-mpx.c): Remove.
7225 (i386-mpx-linux.c): Remove.
7226 (i386-avx-mpx-avx512-pku.c): Remove.
7227 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7228 (i386-avx-mpx.c): Remove.
7229 (i386-avx-mpx-linux.c): Remove.
7230 (i386-mmx.c): Remove.
7231 (i386-mmx-linux.c): Remove.
7232 (reg-ia64.c): Remove.
7233 (reg-m32r.c): Remove.
7234 (reg-m68k.c): Remove.
7235 (reg-cf.c): Remove.
7236 (mips-linux.c): Remove.
7237 (mips-dsp-linux.c): Remove.
7238 (mips64-linux.c): Remove.
7239 (mips64-dsp-linux.c): Remove.
7240 (nios2-linux.c): Remove.
7241 (powerpc-32.c): Remove.
7242 (powerpc-32l.c): Remove.
7243 (powerpc-altivec32l.c): Remove.
7244 (powerpc-cell32l.c): Remove.
7245 (powerpc-vsx32l.c): Remove.
7246 (powerpc-isa205-32l.c): Remove.
7247 (powerpc-isa205-altivec32l.c): Remove.
7248 (powerpc-isa205-vsx32l.c): Remove.
7249 (powerpc-e500l.c): Remove.
7250 (powerpc-64l.c): Remove.
7251 (powerpc-altivec64l.c): Remove.
7252 (powerpc-cell64l.c): Remove.
7253 (powerpc-vsx64l.c): Remove.
7254 (powerpc-isa205-64l.c): Remove.
7255 (powerpc-isa205-altivec64l.c): Remove.
7256 (powerpc-isa205-vsx64l.c): Remove.
7257 (s390-linux32.c): Remove.
7258 (s390-linux32v1.c): Remove.
7259 (s390-linux32v2.c): Remove.
7260 (s390-linux64.c): Remove.
7261 (s390-linux64v1.c): Remove.
7262 (s390-linux64v2.c): Remove.
7263 (s390-te-linux64.c): Remove.
7264 (s390-vx-linux64.c): Remove.
7265 (s390-tevx-linux64.c): Remove.
7266 (s390x-linux64.c): Remove.
7267 (s390x-linux64v1.c): Remove.
7268 (s390x-linux64v2.c): Remove.
7269 (s390x-te-linux64.c): Remove.
7270 (s390x-vx-linux64.c): Remove.
7271 (s390x-tevx-linux64.c): Remove.
7272 (tic6x-c64xp-linux.c): Remove.
7273 (tic6x-c64x-linux.c): Remove.
7274 (tic6x-c62x-linux.c): Remove.
7275 (reg-sh.c): Remove.
7276 (reg-sparc64.c): Remove.
7277 (reg-spu.c): Remove.
7278 (amd64.c): Remove.
7279 (amd64-linux.c): Remove.
7280 (amd64-avx.c): Remove.
7281 (amd64-avx-linux.c): Remove.
7282 (amd64-avx-avx512.c): Remove.
7283 (amd64-avx-avx512-linux.c): Remove.
7284 (amd64-mpx.c): Remove.
7285 (amd64-mpx-linux.c): Remove.
7286 (amd64-avx-mpx-avx512-pku.c): Remove.
7287 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7288 (amd64-avx-mpx.c): Remove.
7289 (amd64-avx-mpx-linux.c): Remove.
7290 (x32.c): Remove.
7291 (x32-linux.c): Remove.
7292 (x32-avx.c): Remove.
7293 (x32-avx-linux.c): Remove.
7294 (x32-avx-avx512.c): Remove.
7295 (x32-avx-avx512-linux.c): Remove.
7296 (reg-xtensa.c): Remove.
7297 (reg-tilegx.c): Remove.
7298 (reg-tilegx32.c): Remove.
7299
1672e0d9
SDJ
73002017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7301
7302 * Makefile.in (SFILES): Add "common/environ.c".
7303 (OBJS): Add "common/environ.h".
7304
239b6d10
WT
73052017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7306
7307 * configure.ac: Check if the fs_base and gs_base members of
7308 `struct user_regs_struct' exist.
7309 * config.in: Regenerated.
7310 * configure: Likewise.
7311
694b382c
AT
73122017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7313
7314 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7315 target_read_memory.
7316 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7317 (get_next_pcs_syscall_next_pc): Likewise.
7318
7dc53023
LM
73192016-12-23 Luis Machado <lgustavo@codesourcery.com>
7320
7321 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7322 * nto-x86-low.c: Likewise.
7323
ad02e4fe
SM
73242016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7325
7326 * Makefile.in: Include disable-implicit-rules.mk.
7327
dcb07cfa
PA
73282016-11-23 Pedro Alves <palves@redhat.com>
7329
7330 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7331 (debug_vprintf): Use std::chrono::steady_clock instead of
7332 gettimeofday. Use '.' instead of ':'.
7333 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7334 (get_timestamp): Use std::chrono::steady_clock instead of
7335 gettimeofday.
7336
8629c02c
SM
73372016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7338
7339 * Makefile.in: Fix whitespace formatting.
7340
b593ecca
SM
73412016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7342
7343 * Makefile.in (SFILES, OBS): Flatten list and order
7344 alphabetically.
7345
9986ba08
PA
73462016-11-23 Pedro Alves <palves@redhat.com>
7347
7348 * event-loop.c (handle_file_event): Use warning.
7349 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7350 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7351 Use warning.
7352
4eefa7bc
PA
73532016-11-23 Pedro Alves <palves@redhat.com>
7354
7355 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7356 output.
7357 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7358 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7359 debug_printf and debug_flush for debug output.
7360 * server.c (handle_general_set): Likewise.
7361 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7362 output.
7363
5443506e
SM
73642016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7365
7366 * Makefile.in (.c.o): Replace rule with ...
7367 (%.o: %.c): ... this one.
7368
3b165252
SM
73692016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7370
7371 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7372 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7373 make.
7374 * configure.ac: Remove checks for the make program.
7375 * configure: Re-generate.
7376
0bcda685
PA
73772016-10-28 Pedro Alves <palves@redhat.com>
7378
7379 * Makefile.in (CXX_DIALECT): Get from configure.
7380 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7381 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7382 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7383 * config.in: Regenerate.
7384 * configure: Regenerate.
7385
c3805894
YQ
73862016-10-27 Yao Qi <yao.qi@linaro.org>
7387
7388 * linux-low.c (linux_supports_range_stepping): Return true if
7389 can_software_single_step return true.
7390
89342618
YQ
73912016-10-27 Yao Qi <yao.qi@linaro.org>
7392
7393 * inferiors.c (find_inferior_in_random): New function.
7394 * inferiors.h (find_inferior_in_random): Declare.
7395 * linux-low.c (linux_wait_for_event_filtered): Call
7396 find_inferior_in_random instead of find_inferior.
7397
e3652c84
YQ
73982016-10-27 Yao Qi <yao.qi@linaro.org>
7399
7400 * linux-low.c (linux_wait_1): If single-step breakpoints are
7401 inserted, remove them.
7402
5a04c4cf
PA
74032016-10-26 Pedro Alves <palves@redhat.com>
7404
7405 * linux-low.c (handle_extended_wait): Link parent/child fork
7406 threads.
7407 (linux_wait_1): Unlink them.
7408 (linux_set_resume_request): Ignore resume requests for
7409 already-resumed and unhandled fork child threads.
7410 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7411 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7412 New functions.
7413 (handle_v_requests) <vCont>: Don't call require_running.
7414 * server.h (in_queued_stop_replies): New declaration.
7415
cb93dc7f
YQ
74162016-10-24 Yao Qi <yao.qi@linaro.org>
7417
7418 PR server/20733
7419 * linux-aarch64-low.c (append_insns): Cast the return value to
7420 'uint32_t *'.
7421
a1078bea
YQ
74222016-10-10 Yao Qi <yao.qi@linaro.org>
7423
7424 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7425
1fb77080
SDJ
74262016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7427
7428 * target.c (target_supports_multi_process): New function, moved
7429 from...
7430 * target.h (target_supports_multi_process): ... here. Remove
7431 macro.
7432
39b5a3b9
TT
74332016-10-05 Tom Tromey <tom@tromey.com>
7434
7435 PR remote/20655:
7436 * tracepoint.c (handle_tracepoint_bkpts): Check
7437 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7438
c1d0b70a
YQ
74392016-10-05 Yao Qi <yao.qi@linaro.org>
7440
7441 * configure.srv: Update the path of arm-*.xml files.
7442
0a69eedb
YQ
74432016-10-05 Terry Guo <terry.guo@arm.com>
7444 Yao Qi <yao.qi@linaro.org>
7445
7446 * Makefile.in: Adjust the path of rules.
7447 * configure.srv: Update the path of xml files.
7448 * regformats/arm-with-iwmmxt.dat: Regenerated.
7449 * regformats/arm-with-neon.dat: Likewise.
7450 * regformats/arm-with-vfpv2.dat: Likewise.
7451 * regformats/arm-with-vfpv3.dat Likewise.
7452
17e16485
YQ
74532016-09-30 Yao Qi <yao.qi@linaro.org>
7454
7455 PR gdbserver/20627
7456 * target.c (target_stop_and_wait): Don't call
7457 target_continue_no_signal, use resume_stop instead.
7458
edeeb602
YQ
74592016-09-26 Yao Qi <yao.qi@linaro.org>
7460
7461 * linux-low.c (linux_wait_1): Call debug_exit.
7462
503b1c39
PA
74632016-09-23 Pedro Alves <palves@redhat.com>
7464
7465 * Makefile.in (SFILES): Add common/new-op.c.
7466 (OBS): Add common/new-op.o.
7467 (new-op.o): New rule.
7468
74172ecf
SM
74692016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7470
7471 * .gitinore: Ignore more files.
7472
fc6cda2e
YQ
74732016-09-21 Yao Qi <yao.qi@linaro.org>
7474
7475 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7476 23.
7477
bc1e6c81
SDJ
74782016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7479
7480 * server.c (start_inferior): Call target_mourn_inferior instead of
7481 mourn_inferior; pass ptid_t argument to it.
7482 (resume): Likewise.
7483 (handle_target_event): Likewise.
7484 * target.c (target_mourn_inferior): New function.
7485 * target.h (mourn_inferior): Delete macro.
7486
0e00e962
AA
74872016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7488
7489 * linux-low.c (lwp_is_stepping): New function.
7490
1d8cb77d
CL
74912016-09-06 Carl Love <cel@us.ibm.com>
7492
7493 * server.c (start_inferior): Fixed comment, requested comment change
7494 didn't get updated correctly. Removed reference to ptrace () call as
7495 it is only true on Linux systems.
7496
7313bced
CL
74972016-09-06 Carl Love <cel@us.ibm.com>
7498
7499 * server.c (start_inferior): Do not call
7500 function target_post_create_inferior () if the
7501 inferior process has already exited.
7502
cf6de44d
PA
75032016-09-05 Pedro Alves <palves@redhat.com>
7504
7505 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7506 (COMPILE.pre, CC_LD): Use CXX directly.
7507 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7508 * acinclude.m4: Don't include build-with-cxx.m4.
7509 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7510 * configure: Regenerate.
7511
c1da6748
AT
75122016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7513
7514 PR gdb/19495
7515 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7516 call writing data to own_buf.
7517
f2b9e3df
SDJ
75182016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7519
7520 * target.c (mywait): Call target_wait instead of
7521 the_target->wait.
7522 (target_wait): New function.
7523
049a8570
SDJ
75242016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7525
7526 * server.c (start_inferior): New variable 'ptid'. Replace calls
7527 to the_target->resume by target_continue{,_no_signal}, depending
7528 on the case.
7529 * target.c (target_stop_and_wait): Call target_continue_no_signal
7530 instead of the_target->resume.
7531 (target_continue): New function.
7532
3aa5cfa0
AT
75332016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7534
7535 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7536
754653a7
AZ
75372016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7538
7539 PR server/20491
7540 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7541 ps_prochandle.
7542 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7543 * linux-arm-low.c (ps_get_thread_area): Likewise.
7544 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7545 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7546 * linux-mips-low.c (ps_get_thread_area): Likewise.
7547 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7548 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7549 * linux-x86-low.c (ps_get_thread_area): Likewise.
7550 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7551
ed036b40
PA
75522016-08-19 Pedro Alves <palves@redhat.com>
7553
7554 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7555
c8ef42ee
PA
75562016-08-19 Pedro Alves <palves@redhat.com>
7557
7558 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7559 comment. Use memcpy instead of casting through unsigned long.
7560
9c235a72
PA
75612016-08-19 Pedro Alves <palves@redhat.com>
7562
7563 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7564 allocating around 0x80000000.
7565
201506da
PA
75662016-08-19 Pedro Alves <palves@redhat.com>
7567
7568 PR gdb/20415
7569 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7570 (x32-avx512-linux-ipa.o): New rules.
7571 * configure.ac (x86_64-*-linux*): New x32 check.
7572 * configure.srv (ipa_x32_linux_regobj): New.
7573 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7574 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7575 descriptions.
7576 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7577 descriptions.
7578 * configure: Regenerate.
7579
f348d89a
PA
75802016-08-09 Pedro Alves <palves@redhat.com>
7581
7582 PR gdb/18653
7583 * Makefile.in (OBS): Add signals-state-save-restore.o.
7584 (signals-state-save-restore.o): New rule.
7585 * config.in: Regenerate.
7586 * configure: Regenerate.
7587 * linux-low.c: Include "signals-state-save-restore.h".
7588 (linux_create_inferior): Call
7589 restore_original_signals_state.
7590 * server.c: Include "dispositions-save-restore.h".
7591 (captured_main): Call save_original_signals_state.
7592
1baf5149
PA
75932016-08-05 Pedro Alves <palves@redhat.com>
7594
7595 * configure: Regenerate.
7596
fcd4a73d
YQ
75972016-08-04 Yao Qi <yao.qi@linaro.org>
7598
7599 * linux-low.c (regsets_fetch_inferior_registers): Check
7600 errno is ESRCH or not.
7601
979659d0
YQ
76022016-08-02 Yao Qi <yao.qi@linaro.org>
7603
7604 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7605 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7606 (thread_db_load_search): Update.
7607 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7608 td_ta_set_event and td_ta_event_getmsg.
7609
6598661d
PA
76102016-07-26 Pedro Alves <palves@redhat.com>
7611
7612 PR server/20414
7613 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7614 of unsigned long for 64-bit registers and use uint32_t instead of
7615 unsigned int for 32-bit registers.
7616
9cf12d57
PA
76172016-07-26 Pedro Alves <palves@redhat.com>
7618
7619 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7620 to 'ptrace'.
7621
305450ed
TT
76222016-07-21 Tom Tromey <tom@tromey.com>
7623
7624 * configure: Rebuild.
7625
2583da7c
YQ
76262016-07-21 Yao Qi <yao.qi@linaro.org>
7627
7628 * mem-break.c (find_gdb_breakpoint): Cast bp to
7629 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7630
21536b36
YQ
76312016-07-21 Yao Qi <yao.qi@linaro.org>
7632
7633 * server.c (handle_v_requests): Support s and S actions
7634 if target_supports_software_single_step return true.
7635
8901d193
YQ
76362016-07-21 Yao Qi <yao.qi@linaro.org>
7637
7638 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7639 is resume_step, call maybe_hw_step.
7640 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7641 and unstop them.
7642 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7643 breakpoints or not.
7644 (proceed_one_lwp): If resume request is resume_step, install
7645 reinsert breakpoints and call maybe_hw_step.
7646
0e9a339e
YQ
76472016-07-21 Yao Qi <yao.qi@linaro.org>
7648
7649 * linux-low.c (proceed_one_lwp): Declare.
7650 (linux_resume_one_thread): Remove local variable 'step'.
7651 Lift code enqueue signal. Call proceed_one_lwp instead of
7652 linux_resume_one_lwp.
7653
4281b351
YQ
76542016-07-21 Yao Qi <yao.qi@linaro.org>
7655
7656 * linux-low.c (linux_resume_one_thread): Call
7657 enqueue_pending_signal.
7658
984a2c04
YQ
76592016-07-21 Yao Qi <yao.qi@linaro.org>
7660
7661 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7662 * inferiors.c (do_restore_current_thread_cleanup): New function.
7663 (make_cleanup_restore_current_thread): Likewise.
7664 * linux-low.c (install_software_single_step_breakpoints): Call
7665 make_cleanup_restore_current_thread. Switch current_thread to
7666 thread.
7667
bec903c9
YQ
76682016-07-21 Yao Qi <yao.qi@linaro.org>
7669
7670 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7671 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7672 (clone_one_breakpoint): Likewise.
7673 (delete_reinsert_breakpoints): Change parameter to thread.
7674 Callers updated.
7675 (has_reinsert_breakpoints): Likewise.
7676 (uninsert_reinsert_breakpoints): Likewise.
7677 (reinsert_reinsert_breakpoints): Likewise.
7678 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7679 (delete_reinsert_breakpoints): Likewise.
7680 (reinsert_reinsert_breakpoints): Likewise.
7681 (uninsert_reinsert_breakpoints): Likewise.
7682 (has_reinsert_breakpoints): Likewise.
7683
63c40ec7
YQ
76842016-07-21 Yao Qi <yao.qi@linaro.org>
7685
7686 * inferiors.c (get_thread_process): Make parameter const.
7687 * inferiors.h (get_thread_process): Update declaration.
7688 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7689 Add new parameters child_thread and parent_thread. Callers
7690 updated.
7691 * mem-break.h (clone_all_breakpoints): Update declaration.
7692
9aa76cd0
YQ
76932016-07-21 Yao Qi <yao.qi@linaro.org>
7694
7695 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7696 <command_list, handler>: Remove.
7697 (struct gdb_breakpoint): New.
7698 (struct other_breakpoint): New.
7699 (struct reinsert_breakpoint): New.
7700 (is_gdb_breakpoint): New function.
7701 (any_persistent_commands): Update command_list if
7702 is_gdb_breakpoint returns true.
7703 (set_breakpoint): Create breakpoints according to their types.
7704 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7705 (set_gdb_breakpoint_1): Likewise.
7706 (set_gdb_breakpoint): Likewise.
7707 (clear_breakpoint_conditions): Change parameter type to
7708 'struct gdb_breakpoint *'.
7709 (clear_breakpoint_commands): Likewise.
7710 (clear_breakpoint_conditions_and_commands): Likewise.
7711 (add_condition_to_breakpoint): Likewise.
7712 (add_breakpoint_condition): Likewise.
7713 (add_commands_to_breakpoint): Likewise.
7714 (check_breakpoints): Check other_breakpoint.
7715 (clone_one_breakpoint): Clone breakpopint according to its type.
7716 * mem-break.h (struct gdb_breakpoint): Declare.
7717 (set_gdb_breakpoint): Update declaration.
7718 (clear_breakpoint_conditions_and_commands): Likewise.
7719 (add_breakpoint_condition): Likewise.
7720 (add_breakpoint_commands): Likewise.
7721 * server.c (process_point_options): Change parameter type to
7722 'struct gdb_breakpoint *'.
7723
811f8301
YQ
77242016-07-21 Yao Qi <yao.qi@linaro.org>
7725
7726 * mem-break.c (set_breakpoint_at): Rename it to ...
7727 (set_breakpoint_type_at): ... it.
7728 (set_breakpoint_at): Call set_breakpoint_type_at.
7729 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7730 * mem-break.h (set_breakpoint_at): Update comments.
7731
b1c51e36
CLT
77322016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7733
7734 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7735 to buf parameter.
7736 (nios2_store_gregset): Likewise.
7737
ced2dffb
PA
77382016-07-01 Pedro Alves <palves@redhat.com>
7739 Antoine Tremblay <antoine.tremblay@ericsson.com>
7740
7741 * linux-low.c: Change interface to take the target lwp_info
7742 pointer directly and return void. Handle detaching from a zombie
7743 thread.
7744 (linux_detach_lwp_callback): New function.
7745 (linux_detach): Detach from the leader thread after detaching from
7746 the clone threads.
7747
2ac09a5b
YQ
77482016-06-28 Yao Qi <yao.qi@linaro.org>
7749
7750 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7751 for variable new_offset.
7752 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7753 (aarch64_ftrace_insn_reloc_cb): Likewise.
7754 (aarch64_ftrace_insn_reloc_tb): Likewise.
7755 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7756 PRIx64 instead of PRIx32.
7757
79e7fd4f
YQ
77582016-06-28 Yao Qi <yao.qi@linaro.org>
7759
7760 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7761 (the_low_target): Install arm_get_syscall_trapinfo.
7762
061fc021
YQ
77632016-06-28 Yao Qi <yao.qi@linaro.org>
7764
7765 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7766 function.
7767 (the_low_target): Install aarch64_get_syscall_trapinfo.
7768
4cc32bec
YQ
77692016-06-28 Yao Qi <yao.qi@linaro.org>
7770
7771 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7772 Callers updated.
7773 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7774 Remove parameter sysno.
7775 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7776 sysret.
7777
782c1122
AA
77782016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7779
7780 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7781 (s390_emit_ne_goto): Likewise.
7782 (s390_emit_lt_goto): Likewise.
7783 (s390_emit_le_goto): Likewise.
7784 (s390_emit_gt_goto): Likewise.
7785 (s390_emit_ge_goto): Likewise.
7786 (s390x_emit_eq_goto): Likewise.
7787 (s390x_emit_ne_goto): Likewise.
7788 (s390x_emit_lt_goto): Likewise.
7789 (s390x_emit_le_goto): Likewise.
7790 (s390x_emit_gt_goto): Likewise.
7791 (s390x_emit_ge_goto): Likewise.
7792 (s390_emit_ops_impl): Mark variable static.
7793 (s390x_emit_ops): Likewise.
7794
2e7b624b
YQ
77952016-06-17 Yao Qi <yao.qi@linaro.org>
7796
7797 * linux-low.c (handle_extended_wait): Call
7798 uninsert_reinsert_breakpoints for the parent process. Remove
7799 reinsert breakpoints from the child process. Reinsert them to
7800 the parent process when vfork is done.
7801 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7802 (reinsert_reinsert_breakpoints): New function.
7803 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7804 (reinsert_reinsert_breakpoints): Declare.
7805
8a81c5d7
YQ
78062016-06-17 Yao Qi <yao.qi@linaro.org>
7807
7808 * linux-low.c (handle_extended_wait): If the parent is doing
7809 step-over, remove the reinsert breakpoints from the forked child.
7810
f50bf8e5
YQ
78112016-06-17 Yao Qi <yao.qi@linaro.org>
7812
7813 * linux-low.c (unsuspend_all_lwps): Declare.
7814 (linux_low_filter_event): If thread exited, call finish_step_over.
7815 If step-over is finished, unsuspend other threads.
7816
8376a3cb
YQ
78172016-06-17 Yao Qi <yao.qi@linaro.org>
7818
7819 * linux-low.c (linux_resume_one_lwp_throw): Assert
7820 has_reinsert_breakpoints returns false.
7821 * mem-break.c (delete_disabled_breakpoints): Assert
7822 bp type isn't reinsert_breakpoint.
7823
f79b145d
YQ
78242016-06-17 Yao Qi <yao.qi@linaro.org>
7825
7826 * linux-low.c (maybe_hw_step): New function.
7827 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7828 (finish_step_over): Switch current_thread to lwp temporarily,
7829 and assert has_reinsert_breakpoints returns true.
7830 (proceed_one_lwp): Call maybe_hw_step.
7831 * mem-break.c (has_reinsert_breakpoints): New function.
7832 * mem-break.h (has_reinsert_breakpoints): Declare.
7833
0ae534d2
JT
78342016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7835
7836 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7837
fcdad592
YQ
78382016-05-17 Yao Qi <yao.qi@linaro.org>
7839
7840 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7841 instead of find_inferior.
7842
9e784964
YQ
78432016-05-05 Yao Qi <yao.qi@linaro.org>
7844
7845 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7846 Initialize res to zero.
7847
cf2ebb6e
YQ
78482016-05-05 Yao Qi <yao.qi@linaro.org>
7849
7850 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7851 to uint32_t.
7852
c1aebf87
UW
78532016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7854
7855 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7856 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7857 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7858
35fd2deb 78592016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7860 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7861
7862 * tracepoint.c (write_inferior_int8): New function.
7863 (cmd_qtenable_disable): Write enable flag using
7864 write_inferior_int8.
7865
484b3c32
YQ
78662016-04-25 Yao Qi <yao.qi@linaro.org>
7867
7868 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7869 (need_step_over_p): Return zero if the LWP has pending signals
7870 can be delivered on software single step target.
7871
85ba7d86
YQ
78722016-04-25 Yao Qi <yao.qi@linaro.org>
7873
7874 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7875 return instead of error.
7876
3539aa13
YQ
78772016-04-22 Yao Qi <yao.qi@linaro.org>
7878
7879 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7880 to 23.
7881
5b061e98
YQ
78822016-04-22 Yao Qi <yao.qi@linaro.org>
7883
7884 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7885 signal when stepping over breakpoint with software single
7886 step.
7887
3451269c
PA
78882016-04-21 Pedro Alves <palves@redhat.com>
7889
7890 * linux-s390-low.c (s390_collect_ptrace_register)
7891 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7892 add casts.
7893 (s390_check_regset): Use void * instead of gdb_byte *.
7894
a2358508
PA
78952016-04-20 Pedro Alves <palves@redhat.com>
7896
7897 * configure: Renegerate.
7898
6885166d
YQ
78992016-04-20 Yao Qi <yao.qi@linaro.org>
7900
7901 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7902 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7903 number 16.
7904 (arm_store_gregset): Likewise.
7905
2b863f51
WT
79062016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7907
7908 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7909 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7910 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7911 (amd64-avx-mpx-linux.c): New rules.
7912 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7913 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7914 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7915 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7916 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7917 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7918 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7919 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7920 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7921 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7922 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7923 * linux-x86-low.c (x86_linux_read_description): Add case for
7924 X86_XSTATE_AVX_MPX_MASK.
7925 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7926 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7927 init_registers_i386_avx_mpx_linux.
7928 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7929 (initialize_low_tracepoint): Call
7930 init_registers_i386_avx_mpx_linux.
7931 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7932 (initialize_low_tracepoint): Call
7933 init_registers_amd64_avx_mpx_linux.
7934 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7935 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7936 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7937 declarations.
7938
9b30624b
PA
79392016-04-18 Pedro Alves <palves@redhat.com>
7940
7941 * configure: Regenerate.
7942
45e3745e
AT
79432016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7944
7945 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7946 (aarch64_emit_sub): Likewise.
7947
2afc13ff
PA
79482016-04-12 Pedro Alves <palves@redhat.com>
7949
7950 * utils.c (prepare_to_throw_exception): Delete.
7951
6e774b13
SM
79522016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7953
7954 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7955
4dca19f8
MK
79562016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7957
7958 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7959
d0a9981f
MK
79602016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7961
7962 * linux-aarch64-ipa.c: Add <elf.h> include.
7963 * linux-ppc-ipa.c: Add <elf.h> include.
7964 * linux-s390-ipa.c: Add <elf.h> include.
7965
252db07e
MK
79662016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7967
7968 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7969 (get_raw_reg_ptr): Likewise.
7970 (get_trace_state_variable_value_ptr): Likewise.
7971 (set_trace_state_variable_value_ptr): Likewise.
7972 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7973 char *.
7974
14e2b6d9
MK
79752016-03-31 Wei-cheng Wang <cole945@gmail.com>
7976 Marcin Kościelnicki <koriakin@0x04.net>
7977
7978 PR/17221
7979 * linux-ppc-low.c (emit_insns): New function.
7980 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7981 (ppc_emit_prologue): New function.
7982 (ppc_emit_epilogue): New function.
7983 (ppc_emit_add): New function.
7984 (ppc_emit_sub): New function.
7985 (ppc_emit_mul): New function.
7986 (ppc_emit_lsh): New function.
7987 (ppc_emit_rsh_signed): New function.
7988 (ppc_emit_rsh_unsigned): New function.
7989 (ppc_emit_ext): New function.
7990 (ppc_emit_zero_ext): New function.
7991 (ppc_emit_log_not): New function.
7992 (ppc_emit_bit_and): New function.
7993 (ppc_emit_bit_or): New function.
7994 (ppc_emit_bit_xor): New function.
7995 (ppc_emit_bit_not): New function.
7996 (ppc_emit_equal): New function.
7997 (ppc_emit_less_signed): New function.
7998 (ppc_emit_less_unsigned): New function.
7999 (ppc_emit_ref): New function.
8000 (ppc_emit_const): New function.
8001 (ppc_emit_reg): New function.
8002 (ppc_emit_pop): New function.
8003 (ppc_emit_stack_flush): New function.
8004 (ppc_emit_swap): New function.
8005 (ppc_emit_stack_adjust): New function.
8006 (ppc_emit_call): New function.
8007 (ppc_emit_int_call_1): New function.
8008 (ppc_emit_void_call_2): New function.
8009 (ppc_emit_if_goto): New function.
8010 (ppc_emit_goto): New function.
8011 (ppc_emit_eq_goto): New function.
8012 (ppc_emit_ne_goto): New function.
8013 (ppc_emit_lt_goto): New function.
8014 (ppc_emit_le_goto): New function.
8015 (ppc_emit_gt_goto): New function.
8016 (ppc_emit_ge_goto): New function.
8017 (ppc_write_goto_address): New function.
8018 (ppc_emit_ops_impl): New static variable.
8019 (ppc64v1_emit_prologue): New function.
8020 (ppc64v2_emit_prologue): New function.
8021 (ppc64_emit_epilogue): New function.
8022 (ppc64_emit_add): New function.
8023 (ppc64_emit_sub): New function.
8024 (ppc64_emit_mul): New function.
8025 (ppc64_emit_lsh): New function.
8026 (ppc64_emit_rsh_signed): New function.
8027 (ppc64_emit_rsh_unsigned): New function.
8028 (ppc64_emit_ext): New function.
8029 (ppc64_emit_zero_ext): New function.
8030 (ppc64_emit_log_not): New function.
8031 (ppc64_emit_bit_and): New function.
8032 (ppc64_emit_bit_or): New function.
8033 (ppc64_emit_bit_xor): New function.
8034 (ppc64_emit_bit_not): New function.
8035 (ppc64_emit_equal): New function.
8036 (ppc64_emit_less_signed): New function.
8037 (ppc64_emit_less_unsigned): New function.
8038 (ppc64_emit_ref): New function.
8039 (ppc64_emit_const): New function.
8040 (ppc64v1_emit_reg): New function.
8041 (ppc64v2_emit_reg): New function.
8042 (ppc64_emit_pop): New function.
8043 (ppc64_emit_stack_flush): New function.
8044 (ppc64_emit_swap): New function.
8045 (ppc64v1_emit_call): New function.
8046 (ppc64v2_emit_call): New function.
8047 (ppc64v1_emit_int_call_1): New function.
8048 (ppc64v2_emit_int_call_1): New function.
8049 (ppc64v1_emit_void_call_2): New function.
8050 (ppc64v2_emit_void_call_2): New function.
8051 (ppc64_emit_if_goto): New function.
8052 (ppc64_emit_eq_goto): New function.
8053 (ppc64_emit_ne_goto): New function.
8054 (ppc64_emit_lt_goto): New function.
8055 (ppc64_emit_le_goto): New function.
8056 (ppc64_emit_gt_goto): New function.
8057 (ppc64_emit_ge_goto): New function.
8058 (ppc64v1_emit_ops_impl): New static variable.
8059 (ppc64v2_emit_ops_impl): New static variable.
8060 (ppc_emit_ops): New function.
8061 (linux_low_target): Wire in ppc_emit_ops.
8062
a2174ba4
MK
80632016-03-31 Wei-cheng Wang <cole945@gmail.com>
8064 Marcin Kościelnicki <koriakin@0x04.net>
8065
8066 PR/17221
8067 * Makefile.in: Add powerpc-*-ipa.o
8068 * configure.srv: Add ipa_obj for powerpc*-linux.
8069 * linux-ppc-ipa.c: New file.
8070 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8071 includes.
8072 (PPC_FIELD): New macro.
8073 (PPC_SEXT): New macro.
8074 (PPC_OP6): New macro.
8075 (PPC_BO): New macro.
8076 (PPC_LI): New macro.
8077 (PPC_BD): New macro.
8078 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8079 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8080 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8081 (ppc_get_thread_area): New function.
8082 (is_elfv2_inferior): New function.
8083 (gen_ds_form): New function.
8084 (GEN_STD): New macro.
8085 (GEN_STDU): New macro.
8086 (GEN_LD): New macro.
8087 (GEN_LDU): New macro.
8088 (gen_d_form): New function.
8089 (GEN_ADDI): New macro.
8090 (GEN_ADDIS): New macro.
8091 (GEN_LI): New macro.
8092 (GEN_LIS): New macro.
8093 (GEN_ORI): New macro.
8094 (GEN_ORIS): New macro.
8095 (GEN_LWZ): New macro.
8096 (GEN_STW): New macro.
8097 (GEN_STWU): New macro.
8098 (gen_xfx_form): New function.
8099 (GEN_MFSPR): New macro.
8100 (GEN_MTSPR): New macro.
8101 (GEN_MFCR): New macro.
8102 (GEN_MTCR): New macro.
8103 (GEN_SYNC): New macro.
8104 (GEN_LWSYNC): New macro.
8105 (gen_x_form): New function.
8106 (GEN_OR): New macro.
8107 (GEN_MR): New macro.
8108 (GEN_LWARX): New macro.
8109 (GEN_STWCX): New macro.
8110 (GEN_CMPW): New macro.
8111 (gen_md_form): New function.
8112 (GEN_RLDICL): New macro.
8113 (GEN_RLDICR): New macro.
8114 (gen_i_form): New function.
8115 (GEN_B): New macro.
8116 (GEN_BL): New macro.
8117 (gen_b_form): New function.
8118 (GEN_BNE): New macro.
8119 (GEN_LOAD): New macro.
8120 (GEN_STORE): New macro.
8121 (gen_limm): New function.
8122 (gen_atomic_xchg): New function.
8123 (gen_call): New function.
8124 (ppc_relocate_instruction): New function.
8125 (ppc_install_fast_tracepoint_jump_pad): New function.
8126 (ppc_get_min_fast_tracepoint_insn_len): New function.
8127 (ppc_get_ipa_tdesc_idx): New function.
8128 (the_low_target): Wire in the new functions.
8129 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8130 tdescs.
8131 * linux-ppc-tdesc.h: New file.
8132
a13c4696
MK
81332016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8134
8135 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8136 (alloc_jump_pad_buffer): New function.
8137 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8138 (alloc_jump_pad_buffer): New function.
8139 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8140 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8141 (alloc_jump_pad_buffer): New function.
8142 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8143 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8144 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8145 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8146
1cda1512
MK
81472016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8148
8149 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8150 * linux-amd64-ipa.c: Likewise.
8151 * linux-i386-ipa.c: Likewise.
8152 * linux-s390-ipa.c: Likewise.
8153 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8154 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8155 set_trace_state_variable_value_ptr.
8156 (struct ipa_sym_addresses): Likewise.
8157 (symbol_list): Likewise.
8158 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8159 accessing gdb_collect directly.
8160 (gdb_collect_ptr_type): New typedef.
8161 (get_raw_reg_ptr_type): New typedef.
8162 (get_trace_state_variable_value_ptr_type): New typedef.
8163 (set_trace_state_variable_value_ptr_type): New typedef.
8164 (gdb_collect_ptr): New global.
8165 (get_raw_reg_ptr): New global.
8166 (get_trace_state_variable_value_ptr): New global.
8167 (set_trace_state_variable_value_ptr): New global.
8168 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8169 accessing get_raw_reg directly.
8170 (get_get_tsv_func_addr): Likewise for
8171 get_trace_state_variable_value_ptr.
8172 (get_set_tsv_func_addr): Likewise for
8173 set_trace_state_variable_value_ptr.
8174 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8175
72fb5488
SM
81762016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8177
8178 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8179
28170b88
MK
81802016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8181
8182 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8183 packets.
8184 (relocate_instruction): Remove own_buf.
8185 * server.c (own_buf): Make global.
8186 (handle_v_requests): Make global.
8187 * server.h (own_buf): New declaration.
8188 (handle_v_requests): New prototype.
8189
f39e8743
MK
81902016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8191
8192 PR 18377
8193 * linux-s390-low.c (add_insns): New function.
8194 (s390_emit_prologue): New function.
8195 (s390_emit_epilogue): New function.
8196 (s390_emit_add): New function.
8197 (s390_emit_sub): New function.
8198 (s390_emit_mul): New function.
8199 (s390_emit_lsh): New function.
8200 (s390_emit_rsh_signed): New function.
8201 (s390_emit_rsh_unsigned): New function.
8202 (s390_emit_ext): New function.
8203 (s390_emit_log_not): New function.
8204 (s390_emit_bit_and): New function.
8205 (s390_emit_bit_or): New function.
8206 (s390_emit_bit_xor): New function.
8207 (s390_emit_bit_not): New function.
8208 (s390_emit_equal): New function.
8209 (s390_emit_less_signed): New function.
8210 (s390_emit_less_unsigned): New function.
8211 (s390_emit_ref): New function.
8212 (s390_emit_if_goto): New function.
8213 (s390_emit_goto): New function.
8214 (s390_write_goto_address): New function.
8215 (s390_emit_litpool): New function.
8216 (s390_emit_const): New function.
8217 (s390_emit_call): New function.
8218 (s390_emit_reg): New function.
8219 (s390_emit_pop): New function.
8220 (s390_emit_stack_flush): New function.
8221 (s390_emit_zero_ext): New function.
8222 (s390_emit_swap): New function.
8223 (s390_emit_stack_adjust): New function.
8224 (s390_emit_set_r2): New function.
8225 (s390_emit_int_call_1): New function.
8226 (s390_emit_void_call_2): New function.
8227 (s390_emit_eq_goto): New function.
8228 (s390_emit_ne_goto): New function.
8229 (s390_emit_lt_goto): New function.
8230 (s390_emit_le_goto): New function.
8231 (s390_emit_gt_goto): New function.
8232 (s390_emit_ge_goto): New function.
8233 (s390x_emit_prologue): New function.
8234 (s390x_emit_epilogue): New function.
8235 (s390x_emit_add): New function.
8236 (s390x_emit_sub): New function.
8237 (s390x_emit_mul): New function.
8238 (s390x_emit_lsh): New function.
8239 (s390x_emit_rsh_signed): New function.
8240 (s390x_emit_rsh_unsigned): New function.
8241 (s390x_emit_ext): New function.
8242 (s390x_emit_log_not): New function.
8243 (s390x_emit_bit_and): New function.
8244 (s390x_emit_bit_or): New function.
8245 (s390x_emit_bit_xor): New function.
8246 (s390x_emit_bit_not): New function.
8247 (s390x_emit_equal): New function.
8248 (s390x_emit_less_signed): New function.
8249 (s390x_emit_less_unsigned): New function.
8250 (s390x_emit_ref): New function.
8251 (s390x_emit_if_goto): New function.
8252 (s390x_emit_const): New function.
8253 (s390x_emit_call): New function.
8254 (s390x_emit_reg): New function.
8255 (s390x_emit_pop): New function.
8256 (s390x_emit_stack_flush): New function.
8257 (s390x_emit_zero_ext): New function.
8258 (s390x_emit_swap): New function.
8259 (s390x_emit_stack_adjust): New function.
8260 (s390x_emit_int_call_1): New function.
8261 (s390x_emit_void_call_2): New function.
8262 (s390x_emit_eq_goto): New function.
8263 (s390x_emit_ne_goto): New function.
8264 (s390x_emit_lt_goto): New function.
8265 (s390x_emit_le_goto): New function.
8266 (s390x_emit_gt_goto): New function.
8267 (s390x_emit_ge_goto): New function.
8268 (s390_emit_ops): New function.
8269 (struct linux_target_ops): Fill in emit_ops hook.
8270
abd9baf9
MK
82712016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8272
8273 PR 18377
8274 * Makefile.in: Add s390 IPA files.
8275 * configure.srv: Build IPA for s390.
8276 * linux-s390-ipa.c: New file.
8277 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8278 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8279 (tdesc_s390_linux32): Likewise.
8280 (init_registers_s390_linux32v1): Likewise.
8281 (tdesc_s390_linux32v1): Likewise.
8282 (init_registers_s390_linux32v2): Likewise.
8283 (tdesc_s390_linux32v2): Likewise.
8284 (init_registers_s390_linux64): Likewise.
8285 (tdesc_s390_linux64): Likewise.
8286 (init_registers_s390_linux64v1): Likewise.
8287 (tdesc_s390_linux64v1): Likewise.
8288 (init_registers_s390_linux64v2): Likewise.
8289 (tdesc_s390_linux64v2): Likewise.
8290 (init_registers_s390_te_linux64): Likewise.
8291 (tdesc_s390_te_linux64): Likewise.
8292 (init_registers_s390_vx_linux64): Likewise.
8293 (tdesc_s390_vx_linux64): Likewise.
8294 (init_registers_s390_tevx_linux64): Likewise.
8295 (tdesc_s390_tevx_linux64): Likewise.
8296 (init_registers_s390x_linux64): Likewise.
8297 (tdesc_s390x_linux64): Likewise.
8298 (init_registers_s390x_linux64v1): Likewise.
8299 (tdesc_s390x_linux64v1): Likewise.
8300 (init_registers_s390x_linux64v2): Likewise.
8301 (tdesc_s390x_linux64v2): Likewise.
8302 (init_registers_s390x_te_linux64): Likewise.
8303 (tdesc_s390x_te_linux64): Likewise.
8304 (init_registers_s390x_vx_linux64): Likewise.
8305 (tdesc_s390x_vx_linux64): Likewise.
8306 (init_registers_s390x_tevx_linux64): Likewise.
8307 (tdesc_s390x_tevx_linux64): Likewise.
8308 (have_hwcap_s390_vx): New static variable.
8309 (s390_arch_setup): Fill have_hwcap_s390_vx.
8310 (s390_get_thread_area): New function.
8311 (s390_ft_entry_gpr_esa): New const.
8312 (s390_ft_entry_gpr_zarch): New const.
8313 (s390_ft_entry_misc): New const.
8314 (s390_ft_entry_fr): New const.
8315 (s390_ft_entry_vr): New const.
8316 (s390_ft_main_31): New const.
8317 (s390_ft_main_64): New const.
8318 (s390_ft_exit_fr): New const.
8319 (s390_ft_exit_vr): New const.
8320 (s390_ft_exit_misc): New const.
8321 (s390_ft_exit_gpr_esa): New const.
8322 (s390_ft_exit_gpr_zarch): New const.
8323 (append_insns): New function.
8324 (s390_relocate_instruction): New function.
8325 (s390_install_fast_tracepoint_jump_pad): New function.
8326 (s390_get_min_fast_tracepoint_insn_len): New function.
8327 (s390_get_ipa_tdesc_idx): New function.
8328 (struct linux_target_ops): Wire in the above functions.
8329 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8330 * linux-s390-tdesc.h: New file.
8331
a4105d04
MK
83322016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8333
8334 * linux-s390-low.c (s390_supports_tracepoints): New function.
8335 (struct linux_target_ops): Fill supports_tracepoints hook.
8336
35ac8b3e
YQ
83372016-03-18 Yao Qi <yao.qi@linaro.org>
8338
8339 * linux-low.c (lwp_signal_can_be_delivered): New function.
8340 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8341
94610ec4
YQ
83422016-03-18 Yao Qi <yao.qi@linaro.org>
8343
8344 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8345 0 if signal is enqueued. Remove 'signal' from one debugging
8346 message. Move one debugging message to some lines below.
8347 Remove code setting 'signal' to 0.
8348
80aea927
YQ
83492016-03-18 Yao Qi <yao.qi@linaro.org>
8350
8351 * linux-low.c (linux_low_filter_event): Remove redundant
8352 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8353
b04fd3be
MK
83542016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8355
8356 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8357 (struct linux_target_ops): Wire in the above.
8358
c40c8d4b
YQ
83592016-03-03 Yao Qi <yao.qi@linaro.org>
8360
8361 * linux-low.c: Update comments to start_step_over.
8362
0f8288ae
YQ
83632016-03-03 Yao Qi <yao.qi@linaro.org>
8364
8365 PR server/19736
8366 * linux-low.c (handle_extended_wait): Set child suspended
8367 if event_lwp->bp_reinsert isn't zero.
8368
fdbd04a8
YQ
83692016-03-02 Yao Qi <yao.qi@linaro.org>
8370
8371 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8372 enqueue_pending_signal.
8373
6896a8fa
MK
83742016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8375
8376 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8377 is actually loaded.
8378
ab503087
MK
83792016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8380
8381 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8382 (s390_regmap_3264) [!__s390x__]: New global.
8383 (s390_collect_ptrace_register): Skip map entries containing -1.
8384 (s390_supply_ptrace_register): Ditto.
8385 (s390_fill_gprs_high): New function.
8386 (s390_store_gprs_high): New function.
8387 (s390_regsets): Add NT_S390_HIGH_GPRS.
8388 (s390_get_hwcap): Enable on 31-bit.
8389 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8390 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8391 Detect NT_S390_HIGH_GPRS.
8392 (s390_usrregs_info_3264): Enable on 31-bit.
8393 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8394 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8395
ae91f625
MK
83962016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8397
8398 PR gdb/13808
8399 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8400 * configure.srv: Ditto.
8401 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8402 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8403 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8404 (init_registers_amd64_linux): Remove prototype.
8405 (tdesc_amd64_linux): Remove declaration.
8406 (get_ipa_tdesc): New function.
8407 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8408 initialize remaining tdescs.
8409 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8410 (init_registers_i386_linux): Remove prototype.
8411 (tdesc_i386_linux): Remove declaration.
8412 (get_ipa_tdesc): New function.
8413 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8414 initialize remaining tdescs.
8415 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8416 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8417 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8418 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8419 (x86_get_ipa_tdesc_idx): New function.
8420 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8421 * linux-x86-tdesc.h: New file.
8422 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8423 (target_get_ipa_tdesc_idx): New macro.
8424 * tracepoint.c (ipa_tdesc_idx): New macro.
8425 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8426 (symbol_list): Add ipa_tdesc_idx.
8427 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8428 (ipa_tdesc): Remove.
8429 (ipa_tdesc_idx): New variable.
8430 (get_context_regcache): Use get_ipa_tdesc.
8431 (gdb_collect): Ditto.
8432 (gdb_probe): Ditto.
8433 * tracepoint.h (get_ipa_tdesc): New prototype.
8434 (ipa_tdesc): Remove.
8435
e7ad2f14
PA
84362016-02-24 Pedro Alves <palves@redhat.com>
8437
8438 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8439 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8440 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8441 Factor out common code between the USE_SIGTRAP_SIGINFO and
8442 !USE_SIGTRAP_SIGINFO blocks.
8443 (linux_low_filter_event): Call save_stop_reason instead of
8444 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8445 Update comments.
8446 (linux_wait_1): Update comments.
8447
657f9cde
WW
84482016-02-24 Wei-cheng Wang <cole945@gmail.com>
8449
8450 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8451 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8452 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8453 ppc_insert_point, ppc_remove_point.
8454
b00b61e1
MK
84552016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8456
8457 * linux-s390-low.c (s390_supports_z_point_type): New function.
8458 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8459
553cb527
YQ
84602016-02-16 Yao Qi <yao.qi@linaro.org>
8461
8462 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8463 PC. Get pc from regcache_read_pc.
8464
a5652c21
YQ
84652016-02-12 Yao Qi <yao.qi@linaro.org>
8466
8467 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8468 or linux_get_pc_32bit.
8469 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8470
ed443b61
YQ
84712016-02-12 Yao Qi <yao.qi@linaro.org>
8472
8473 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8474 arm_linux_get_next_pcs_fixup.
8475
020ecd38
MK
84762016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8477
8478 * tracepoint.c (x_tracepoint_action_download): Change
8479 write_inferior_data_ptr to write_inferior_data_pointer.
8480 (cmd_qtstart): Likewise.
8481 (write_inferior_data_ptr): Remove.
8482 (download_agent_expr): Change write_inferior_data_ptr to
8483 write_inferior_data_pointer.
8484 (download_tracepoint_1): Likewise.
8485 (download_tracepoint): Likewise.
8486 (download_trace_state_variables): Likewise.
8487
7cae9051
WW
84882016-02-11 Wei-cheng Wang <cole945@gmail.com>
8489 Marcin Kościelnicki <koriakin@0x04.net>
8490
8491 * tracepoint.c (struct tracepoint_action_ops): Remove.
8492 (struct tracepoint_action): Remove ops.
8493 (m_tracepoint_action_download, r_tracepoint_action_download)
8494 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8495 size and offset accordingly.
8496 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8497 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8498 (tracepoint_action_send, tracepoint_action_download): New functions.
8499 Helpers for trace action handlers.
8500 (add_tracepoint_action): Remove setup actions ops.
8501 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8502
9f6a71b4
YQ
85032016-02-10 Yao Qi <yao.qi@linaro.org>
8504
8505 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8506
1e94266c
SM
85072016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8508
8509 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8510 to AC_OUTPUT.
8511 * configure: Regenerate.
8512
8adce034
SM
85132016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8514
8515 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8516 void * to gdb_byte *.
8517 * linux-low.c (siginfo_fixup): Likewise.
8518 (linux_xfer_siginfo): Likewise.
8519 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8520 Likewise.
8521 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8522
93813b37
WT
85232016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8524
8525 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8526 to srv_tgtobj.
8527 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8528 to srv_tgtobj.
8529 * linux-x86-low.c [__x86_64__]: Include
8530 "nat/amd64-linux-siginfo.h".
8531 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8532 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8533 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8534 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8535 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8536 (cpt_si_fd, si_timerid, si_overrun): Move from
8537 nat/amd64-linux-siginfo.c.
8538 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8539
8424cc97
SM
85402016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8541
8542 * server.c (skip_to_semicolon): Remove.
8543 (process_point_options): Use strchrnul instead of
8544 skip_to_semicolon.
8545
4d18591b
YQ
85462016-01-26 Yao Qi <yao.qi@linaro.org>
8547
8548 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8549 * linux-low.c (install_software_single_step_breakpoints): Don't
8550 call regcache_read_pc.
8551 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8552 argument pc.
8553
d8020970
YQ
85542016-01-26 Yao Qi <yao.qi@linaro.org>
8555
8556 * linux-low.c (install_software_single_step_breakpoints): Call
8557 regcache_read_pc instead of get_pc.
8558
8b207339
YQ
85592016-01-26 Yao Qi <yao.qi@linaro.org>
8560
8561 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8562 (unblock_async_io): Rename to ...
8563 (block_unblock_async_io): ... it. New function.
8564 (enable_async_io): Don't install SIGIO handler. Unblock it
8565 instead.
8566 (disable_async_io): Don't ignore SIGIO. Block it instead.
8567 (initialize_async_io): Install SIGIO handler. Don't call
8568 unblock_async_io.
8569
18879fef
YQ
85702016-01-26 Yao Qi <yao.qi@linaro.org>
8571
8572 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8573 first character is '\003', call *the_target->request_interrupt.
8574
a0f8e08a
YQ
85752016-01-25 Yao Qi <yao.qi@linaro.org>
8576
8577 * remote-utils.c (new_thread_notify): Remove.
8578 (dead_thread_notify): Likewise.
8579 * remote-utils.h (new_thread_notify): Remove declaration.
8580 (dead_thread_notify): Likewise.
8581
cc5fd9ab
MK
85822016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8583
8584 * gdb.trace/pending.exp: Fix expected message on continue.
8585
99e8eb11
MK
85862016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8587
8588 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8589 it works properly on big-endian machines where sizeof (CORE_ADDR)
8590 != sizeof (void *).
8591
a994041d
PA
85922016-01-21 Pedro Alves <palves@redhat.com>
8593
8594 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8595 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8596 * configure: Regenerate.
8597
f7a6a40d
YQ
85982016-01-21 Yao Qi <yao.qi@linaro.org>
8599
8600 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8601 is_thumb and set it according to CPSR saved on the stack.
8602 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8603 arm_sigreturn_next_pc.
8604
6f69e520
YQ
86052016-01-18 Yao Qi <yao.qi@linaro.org>
8606
8607 * linux-low.c (linux_set_pc_64bit): New function.
8608 (linux_get_pc_64bit): New function.
8609 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8610 Declare.
8611 * linux-sparc-low.c (debug_threads): Remove declaration.
8612 (sparc_get_pc): Remove.
8613 (the_low_target): Use linux_get_pc_64bit instead of
8614 sparc_get_pc.
8615 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8616 (the_low_target): Use linux_get_pc_64bit and
8617 linux_set_pc_64bit.
8618
276d4552
YQ
86192016-01-18 Yao Qi <yao.qi@linaro.org>
8620
8621 * linux-arm-low.c (debug_threads): Remove declaration.
8622 (arm_get_pc, arm_set_pc): Remove.
8623 (the_low_target): Use linux_get_pc_32bit and
8624 linux_set_pc_32bit.
8625 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8626 (the_low_target): Use linux_get_pc_32bit and
8627 linux_set_pc_32bit.
8628 * linux-cris-low.c (debug_threads): Remove declaration.
8629 (cris_get_pc, cris_set_pc,): Remove.
8630 (the_low_target): Use linux_get_pc_32bit and
8631 linux_set_pc_32bit.
8632 * linux-crisv32-low.c (debug_threads): Remove declaration.
8633 (cris_get_pc, cris_set_pc): Remove.
8634 (the_low_target): Use linux_get_pc_32bit and
8635 linux_set_pc_32bit.
8636 * linux-low.c: Include inttypes.h.
8637 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8638 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8639 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8640 (the_low_target): Use linux_get_pc_32bit and
8641 linux_set_pc_32bit.
8642 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8643 (the_low_target): Use linux_get_pc_32bit and
8644 linux_set_pc_32bit.
8645 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8646 (the_low_target): Use linux_get_pc_32bit and
8647 linux_set_pc_32bit.
8648 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8649 (the_low_target): Use linux_get_pc_32bit and
8650 linux_set_pc_32bit.
8651 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8652 (the_low_target): Use linux_get_pc_32bit and
8653 linux_set_pc_32bit.
8654
eb0edac8
GB
86552016-01-18 Gary Benson <gbenson@redhat.com>
8656
8657 * configure.ac (AC_FUNC_FORK): New check.
8658 * config.in: Regenerate.
8659 * configure: Likewise.
8660
1b451dda
YQ
86612016-01-14 Yao Qi <yao.qi@linaro.org>
8662
8663 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8664 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8665 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8666 arm_get_next_pcs_ctor.
8667
82075af2
JS
86682016-01-12 Josh Stone <jistone@redhat.com>
8669 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8670
8671 * inferiors.h: Include "gdb_vecs.h".
8672 (struct process_info): Add syscalls_to_catch.
8673 * inferiors.c (remove_process): Free syscalls_to_catch.
8674 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8675 syscall_return stops.
8676 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8677 * server.c (handle_general_set): Handle QCatchSyscalls.
8678 (handle_query): Report support for QCatchSyscalls.
8679 * target.h (struct target_ops): Add supports_catch_syscall.
8680 (target_supports_catch_syscall): New macro.
8681 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8682 (struct lwp_info): Add syscall_state.
8683 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8684 Maintain syscall_state and syscalls_to_catch across exec.
8685 (get_syscall_trapinfo): New function, proxy to the_low_target.
8686 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8687 (linux_low_filter_event): Toggle syscall_state entry/return for
8688 syscall traps, and set it ignored for all others.
8689 (gdb_catching_syscalls_p): New function.
8690 (gdb_catch_this_syscall_p): New function.
8691 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8692 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8693 (linux_supports_catch_syscall): New function.
8694 (linux_target_ops): Install it.
8695 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8696 (the_low_target): Install it.
8697
8f13a3ce
MF
86982016-01-12 Mike Frysinger <vapier@gentoo.org>
8699
8700 * acinclude.m4: Include new ../warning.m4 file.
8701 * configure: Regenerated.
8702 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8703
5b3da067
MF
87042016-01-12 Mike Frysinger <vapier@gentoo.org>
8705
8706 * ax.c (is_goto_target): Mark static.
8707 * linux-low.c (register_addr): Likewise.
8708 (linux_fetch_registers, linux_store_registers): Likewise.
8709 * mem-break.c (any_persistent_commands): Fix old prototype.
8710 (add_commands_to_breakpoint): Mark static.
8711 * regcache.c (find_register_by_name): Delete unused func.
8712 * remote-utils.c (hex_or_minus_one): Mark static.
8713 * server.c (monitor_show_help): Mark static.
8714 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8715 handle_v_requests): Likewise.
8716
bc504a31
PA
87172016-01-12 Pedro Alves <palves@redhat.com>
8718
8719 Remove use of the registered trademark symbol throughout.
8720
5a0dd67a
YQ
87212016-01-08 Yao Qi <yao.qi@linaro.org>
8722
8723 * remote-utils.c (getpkt): If c is '\003', call target hook
8724 request_interrupt.
8725
b2ca446f
YQ
87262016-01-06 Yao Qi <yao.qi@linaro.org>
8727
8728 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8729 linux-aarch32-low.c.
8730 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8731 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8732 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8733 (thumb2_breakpoint): Declare.
8734 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8735 linux-aarch32-low.h.
8736 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8737 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8738 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8739
edd88788
JB
87402016-01-01 Joel Brobecker <brobecker@adacore.com>
8741
8742 * gdbreplay.c (gdbreplay_version): Change copyright year in
8743 version message.
8744 * server.c (gdbserver_version): Likewise.
8745
65da7f14
PP
87462015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8747
8748 * server.c (crc32_table): Delete.
8749 (crc32): Use libiberty's xcrc32 function.
8750
4abd5ed2
JB
87512015-12-22 Joel Brobecker <brobecker@adacore.com>
8752
8753 * lynx-low.c (lynx_delete_thread_callback): New function.
8754 (lynx_mourn): Properly delete our process and all of its
8755 threads. Remove call to clear_inferiors.
8756
0e50fe5c
JB
87572015-12-22 Joel Brobecker <brobecker@adacore.com>
8758
8759 * target.c (thread_search_callback): Add check that
8760 the thread_stopped target callback is not NULL before
8761 calling it.
8762
35adc03f
YQ
87632015-12-21 Yao Qi <yao.qi@linaro.org>
8764
8765 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8766 arm breakpoint.
8767
bd2b2909
AT
87682015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8769
8770 * server.c (handle_query): Call target_supports_software_single_step.
8771
7fe5e27e
AT
87722015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8773
8774 * linux-low.c (single_step): New function.
8775 (linux_resume_one_lwp_throw): Call single_step.
8776 (start_step_over): Likewise.
8777
d9311bfa
AT
87782015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8779
8780 * Makefile.in (SFILES): Append arch/arm-linux.c,
8781 arch/arm-get-next-pcs.c.
8782 (arm-linux.o): New rule.
8783 (arm-get-next-pcs.o): New rule.
8784 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8785 arm-linux.o.
8786 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8787 to linux-aarch32-low.c.
8788 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8789 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8790 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8791 (thumb2_breakpoint_len): Likewise.
8792 (arm_is_thumb_mode): Make non-static.
8793 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8794 from linux-aarch32-low.c.
8795 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8796 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8797 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8798 (thumb2_breakpoint_len): Likewise.
8799 (arm_is_thumb_mode): New declaration.
8800 * linux-arm-low.c: Include arch/arm-linux.h
8801 aarch/arm-get-next-pcs.h, sys/syscall.h.
8802 (get_next_pcs_ops): New struct.
8803 (get_next_pcs_addr_bits_remove): New function.
8804 (get_next_pcs_is_thumb): New function.
8805 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8806 (arm_sigreturn_next_pc): Likewise.
8807 (get_next_pcs_syscall_next_pc): Likewise.
8808 (arm_gdbserver_get_next_pcs): Likewise.
8809 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8810 Initialize.
8811 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8812 * server.h: Include gdb_vecs.h.
8813
68ce2059
AT
88142015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8815
8816 * Makefile.in (SFILES): Append common/common-regcache.c.
8817 (OBS): Append common-regcache.o.
8818 (common-regcache.o): New rule.
8819 * regcache.c (init_register_cache): Initialize cache to
8820 REG_UNAVAILABLE.
8821 (regcache_raw_read_unsigned): New function.
8822 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8823 register_status enum.
8824
fa5308bd
AT
88252015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8826
8827 * linux-aarch64-low.c (the_low_targets): Rename
8828 breakpoint_reinsert_addr to get_next_pcs.
8829 * linux-arm-low.c (the_low_targets): Likewise.
8830 * linux-bfin-low.c (the_low_targets): Likewise.
8831 * linux-cris-low.c (the_low_targets): Likewise.
8832 * linux-crisv32-low.c (the_low_targets): Likewise.
8833 * linux-low.c (can_software_single_step): Likewise.
8834 (install_software_single_step_breakpoints): New function.
8835 (start_step_over): Use install_software_single_step_breakpoints.
8836 * linux-low.h: New CORE_ADDR vector.
8837 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8838 get_next_pcs.
8839 * linux-mips-low.c (the_low_targets): Likewise.
8840 * linux-nios2-low.c (the_low_targets): Likewise.
8841 * linux-sparc-low.c (the_low_targets): Likewise.
8842
4a6ed09b
PA
88432015-12-17 Pedro Alves <palves@redhat.com>
8844
8845 * linux-low.c (linux_kill_one_lwp): Remove references to
8846 LinuxThreads.
8847 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8848 to 'kill'.
8849 (linux_init_signals): Delete.
8850 (initialize_low): Adjust.
8851 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8852
7544db95
PA
88532015-12-16 Pedro Alves <palves@redhat.com>
8854
8855 * configure.ac (compiler warning flags): When testing a
8856 -Wno-foo option, check whether -Wfoo works instead.
8857 * configure: Regenerate.
8858
8020350c
DB
88592015-12-11 Don Breazeal <donb@codesourcery.com>
8860
8861 * server.c (process_serial_event): Don't exit from gdbserver
8862 in remote mode if there are still active inferiors.
8863
db91f502
YQ
88642015-12-11 Yao Qi <yao.qi@linaro.org>
8865
8866 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8867 arm_breakpoint_at if the process is 32-bit.
8868
b37a6290
YQ
88692015-12-11 Yao Qi <yao.qi@linaro.org>
8870
8871 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8872 arm breakpoint.
8873
17b1509a
YQ
88742015-12-07 Yao Qi <yao.qi@linaro.org>
8875
8876 * configure.srv: Append arm.o to srv_tgtobj for
8877 aarch64*-*-linux* target.
8878 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8879 from linux-arm-low.c.
8880 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8881 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8882 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8883 (thumb2_breakpoint_len): Likewise.
8884 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8885 (arm_breakpoint_kinds): Likewise.
8886 (arm_breakpoint_kind_from_pc): Likewise.
8887 (arm_sw_breakpoint_from_kind): Likewise.
8888 (arm_breakpoint_kind_from_current_state): Likewise.
8889 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8890 (arm_sw_breakpoint_from_kind): Declare.
8891 (arm_breakpoint_kind_from_current_state): Declare.
8892 (arm_breakpoint_at): Declare.
8893 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8894 arm_sw_breakpoint_from_kind if process is 32-bit.
8895 (aarch64_breakpoint_kind_from_pc): New function.
8896 (aarch64_breakpoint_kind_from_current_state): New function.
8897 (the_low_target): Initialize fields breakpoint_kind_from_pc
8898 and breakpoint_kind_from_current_state.
8899 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8900 linux-aarch32-low.c.
8901 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8902 (arm_breakpoint, arm_breakpoint_len): Likewise.
8903 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8904 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8905 (arm_is_thumb_mode): Likewise.
8906 (arm_breakpoint_at): Likewise.
8907 (arm_breakpoint_kind_from_pc): Likewise.
8908 (arm_sw_breakpoint_from_kind): Likewise.
8909 (arm_breakpoint_kind_from_current_state): Likewise.
8910
8911 Revert:
8912 2015-08-04 Yao Qi <yao.qi@linaro.org>
8913
8914 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8915 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8916 * server.c (extended_protocol): Remove "static".
8917 * server.h (extended_protocol): Declare it.
8918
ece66d65
JS
89192015-12-04 Josh Stone <jistone@redhat.com>
8920
8921 * target.h (struct target_ops) <arch_setup>: Rename to ...
8922 (struct target_ops) <post_create_inferior>: ... this.
8923 (target_arch_setup): Rename to ...
8924 (target_post_create_inferior): ... this, calling post_create_inferior.
8925 * server.c (start_inferior): Update target_arch_setup calls to
8926 target_post_create_inferior.
8927 * linux-low.c (linux_low_ptrace_options): Forward declare.
8928 (linux_arch_setup): Update its comment for general use.
8929 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8930 (struct linux_target_ops): Use linux_post_create_inferior.
8931 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8932 to post_create_inferior.
8933 * nto-low.c (struct nto_target_ops): Likewise.
8934 * spu-low.c (struct spu_target_ops): Likewise.
8935 * win32-low.c (struct win32_target_ops): Likewise.
8936
e58c48b4
AT
89372015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8938
8939 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8940
fbec8956
AT
89412015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8942
8943 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8944 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8945 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8946 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8947 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8948 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8949 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8950 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8951 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8952 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8953 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8954 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8955
9b4c5f87
AT
89562015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8957
8958 * linux-low.c (linux_look_up_symbols): Don't call
8959 linux_supports_traceclone.
8960 * linux-low.h (thread_db_init): Remove use_events argument.
8961 * thread-db.c (thread_db_use_event): Remove global variable.
8962 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8963 (struct thread_db) <td_create_bp>: Remove field.
8964 (thread_db_create_event): Remove function.
8965 (thread_db_enable_reporting): Likewise.
8966 (find_one_thread): Don't check for thread_db_use_events.
8967 (attach_thread): Likewise.
8968 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8969 (try_thread_db_load_1): Don't check for thread_db_use_events.
8970 (thread_db_init): Remove use_events argument and thread events
8971 handling.
8972 (remove_thread_event_breakpoints): Remove function.
8973 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8974
7d00775e
AT
89752015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8976
8977 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8978 New function.
8979 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8980 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8981 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8982 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8983 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8984 Initialize.
8985 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8986 New function.
8987 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8988 * linux-low.c (can_hardware_single_step): Use
8989 supports_hardware_single_step.
8990 (can_software_single_step): New function.
8991 (start_step_over): Call can_software_single_step.
8992 (linux_supports_hardware_single_step): New function.
8993 (struct target_ops) <supports_software_single_step>: Initialize.
8994 * linux-low.h (struct linux_target_ops)
8995 <supports_hardware_single_step>: Initialize.
8996 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8997 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8998 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8999 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9000 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9001 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9002 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9003 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9004 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9005 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9006 Initialize.
9007 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9008 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9009 Initialize.
9010 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9011 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9012 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9013 New function.
9014 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9015 * target.h (struct target_ops): <supports_software_single_step>:
9016 New field.
9017 (target_supports_software_single_step): New macro.
9018
2d97cd35
AT
90192015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9020
9021 * linux-low.c (linux_wait_1): Fix pc advance condition.
9022 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9023 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9024
769ef81f
AT
90252015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9026
9027 * linux-arm-low.c (arm_is_thumb_mode): New function.
9028 (arm_breakpoint_at): Use arm_is_thumb_mode.
9029 (arm_breakpoint_kind_from_current_state): New function.
9030 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9031 Initialize.
9032 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9033 (linux_breakpoint_kind_from_current_state): New function.
9034 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9035 * linux-low.h (struct linux_target_ops)
9036 <breakpoint_kind_from_current_state>: New field.
9037 * target.h (struct target_ops): Likewise.
9038 (target_breakpoint_kind_from_current_state): New macro.
9039
1bebeeca
PA
90402015-11-30 Pedro Alves <palves@redhat.com>
9041
9042 * linux-low.c (linux_resume): Wake up the event loop before
9043 returning.
9044
a67a9fae
PA
90452015-11-30 Pedro Alves <palves@redhat.com>
9046
9047 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9048 check.
9049 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9050 to -1.
9051 * target.c (struct thread_search): New structure.
9052 (thread_search_callback): New function.
9053 (prev_general_thread): New global.
9054 (prepare_to_access_memory, done_accessing_memory): New functions.
9055 * target.h (prepare_to_access_memory, done_accessing_memory):
9056 Replace macros with function declarations.
9057
f2faf941
PA
90582015-11-30 Pedro Alves <palves@redhat.com>
9059
9060 PR 14618
9061 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9062 report TARGET_WAITKIND_NO_RESUMED.
9063 * remote-utils.c (prepare_resume_reply): Handle
9064 TARGET_WAITKIND_NO_RESUMED.
9065 * server.c (report_no_resumed): New global.
9066 (handle_query) <qSupported>: Handle "no-resumed+". Report
9067 "no-resumed+" support.
9068 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9069 return error if the client doesn't support no-resumed events.
9070 (push_stop_notification): New function.
9071 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9072 events if the client supports them.
9073
a681f9c9
PA
90742015-11-30 Pedro Alves <palves@redhat.com>
9075
9076 * linux-low.c (thread_still_has_status_pending_p): Don't check
9077 vCont;t here.
9078 (lwp_resumed): New function.
9079 (status_pending_p_callback): Return early if the LWP is not
9080 supposed to be resumed.
9081
65706a29
PA
90822015-11-30 Pedro Alves <palves@redhat.com>
9083
9084 * linux-low.c (handle_extended_wait): Assert that the LWP's
9085 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9086 thread create events, leave the new child's status pending.
9087 (linux_low_filter_event): If GDB wants to hear about thread exit
9088 events, leave the LWP marked dead and don't delete it.
9089 (linux_wait_for_event_filtered): Don't check for thread exit.
9090 (filter_exit_event): New function.
9091 (linux_wait_1): Use it, when returning an exit event.
9092 (linux_resume_one_lwp_throw): Assert that the LWP's
9093 waitstatus is TARGET_WAITKIND_IGNORE.
9094 * remote-utils.c (prepare_resume_reply): Handle
9095 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9096 * server.c (report_thread_events): New global.
9097 (handle_general_set): Handle QThreadEvents.
9098 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9099 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9100 TARGET_WAITKIND_THREAD_EXITED.
9101 * server.h (report_thread_events): Declare.
9102
56cf4bed
PA
91032015-11-30 Pedro Alves <palves@redhat.com>
9104
9105 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9106 the thread's last_resume_kind was resume_stop.
9107
500c1d85
PA
91082015-11-30 Pedro Alves <palves@redhat.com>
9109
9110 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9111 before returning.
9112
de979965
PA
91132015-11-30 Pedro Alves <palves@redhat.com>
9114
9115 * server.c (handle_v_requests): Handle vCtrlC.
9116
34c65914
PA
91172015-11-30 Pedro Alves <palves@redhat.com>
9118
9119 * gdbthread.h (find_any_thread_of_pid): Declare.
9120 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9121 functions.
9122 * server.c (handle_query): If current_thread is NULL, look for
9123 another thread of the selected process.
9124
79efa585 91252015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9126 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9127
9128 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9129 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9130 name in reply.
9131 * target.h (struct target_ops) <thread_name>: New field.
9132 (target_thread_name): New macro.
9133
80d82c19
JB
91342015-11-23 Joel Brobecker <brobecker@adacore.com>
9135
9136 * regcache.h (regcache_invalidate_pid): Add declaration.
9137 * regcache.c (regcache_invalidate_pid): New function, extracted
9138 from regcache_invalidate.
9139 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9140 Add trivial documentation comment.
9141 * lynx-low.c: Use regcache_invalidate_pid instead of
9142 regcache_invalidate.
9143
64da5dd5
JB
91442015-11-23 Joel Brobecker <brobecker@adacore.com>
9145
9146 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9147 and Elf64_auxv_t if the target is Android.
9148
37ce4055
DE
91492015-11-22 Doug Evans <xdje42@gmail.com>
9150
9151 * target.h: #include <sys/types.h>.
9152
06e03fff
PA
91532015-11-19 Pedro Alves <palves@redhat.com>
9154
9155 * linux-low.c (linux_process_qsupported): Change prototype.
9156 Adjust.
9157 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9158 Change prototype.
9159 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9160 and adjust to loop over all features.
9161 * server.c (handle_query) <qSupported>: Adjust to call
9162 target_process_qsupported once, passing it a vector of unprocessed
9163 features.
9164 * target.h (struct target_ops) <process_qsupported>: Change
9165 prototype.
9166 (target_process_qsupported): Adjust.
9167
9a084706
PA
91682015-11-19 Pedro Alves <palves@redhat.com>
9169
9170 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9171 mode.
9172 * configure: Regenerate.
9173
dad44a1f
PA
91742015-11-19 Pedro Alves <palves@redhat.com>
9175
9176 * configure: Regenerate.
9177
231c0592
YQ
91782015-11-19 Yao Qi <yao.qi@linaro.org>
9179
9180 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9181 type to uint32_t.
9182
6c1c9a8b
YQ
91832015-11-19 Yao Qi <yao.qi@linaro.org>
9184
9185 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9186 (struct aarch64_operand): Move enum out.
9187
9caa3311
YQ
91882015-11-19 Yao Qi <yao.qi@linaro.org>
9189
9190 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9191 struct user_fpsimd_state *.
9192 (aarch64_store_fpregset): Likewise.
9193
6a69a054
YQ
91942015-11-19 Yao Qi <yao.qi@linaro.org>
9195
9196 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9197 struct user_pt_regs *.
9198 (aarch64_store_gregset): Likewise.
9199
1798301e
PA
92002015-11-18 Pedro Alves <palves@redhat.com>
9201
9202 * Makefile.in (all_object_files): Add $IPA_OBJS.
9203
ce7715e2
PA
92042015-11-17 Pedro Alves <palves@redhat.com>
9205
9206 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9207 GDB_SIGNAL_0 and gdb_signal_to_string.
9208
c0879059
PA
92092015-11-17 Pedro Alves <palves@redhat.com>
9210
9211 * win32-low.c (handle_output_debug_string): Remove parameter.
9212 (win32_kill): Remove our_status local and adjust call to
9213 handle_output_debug_string.
9214 (get_child_debug_event): Adjust call to
9215 handle_output_debug_string.
9216
1996e237
SM
92172015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9218
9219 * linux-mips-low.c (mips_fill_gregset): Add cast.
9220 (mips_store_gregset): Likewise.
9221 (mips_fill_fpregset): Likewise.
9222 (mips_store_fpregset): Likewise.
9223
cbec665b
SM
92242015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9225
9226 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9227 priv.
9228
eb3e3c67
SM
92292015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9230
9231 * linux-mips-low.c (mips_linux_new_thread): Change type of
9232 watch_type to enum target_hw_bp_type.
9233
171de4b8
SM
92342015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9235
9236 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9237 Change return type to arm_hwbp_type.
9238
04248ead
SM
92392015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9240
9241 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9242 (arm_store_gregset): Likewise.
9243 * linux-arm-low.c (arm_get_hwcap): Likewise.
9244 (arm_read_description): Likewise.
9245
04b3479c
SM
92462015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9247
9248 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9249
2bc84e8a
SM
92502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9251
9252 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9253 (ppc_fill_vsxregset): Likewise.
9254 (ppc_store_vsxregset): Likewise.
9255 (ppc_fill_vrregset): Likewise.
9256 (ppc_store_vrregset): Likewise.
9257 (ppc_fill_evrregset): Likewise.
9258 (ppc_store_evrregset): Likewise.
9259
e6c5bb05
SM
92602015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9261
9262 * linux-ppc-low.c (ppc_usrregs_info): Remove
9263 forward-declaration.
9264 (ppc_arch_setup): Move lower in file.
9265
7ea45d72
SM
92662015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9267
9268 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9269 (ps_pdwrite): Likewise.
9270
69291610
HW
92712015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9272
9273 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9274 to after assert checks.
9275
b42945fd
SM
92762015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9277
9278 * proc-service.c (ps_pdread): Add/adjust casts.
9279 (ps_pdwrite): Add/adjust casts.
9280
d6f85c84
SM
92812015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9282
9283 * server.c (handle_search_memory_1): Cast return value of
9284 memmem.
9285
f98cd059
SM
92862015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9287
9288 * server.c (write_qxfer_response): Change type of data to
9289 gdb_byte *.
9290
d2412fa5
PA
92912015-10-29 Pedro Alves <palves@redhat.com>
9292
9293 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9294
c17414a2
PA
92952015-10-29 Pedro Alves <palves@redhat.com>
9296
9297 * tracepoint.c (clear_installed_tracepoints): Add casts.
9298
e053fbc4
PA
92992015-10-29 Pedro Alves <palves@redhat.com>
9300
9301 * server.c (handle_v_cont, process_serial_event): Add enum
9302 gdb_signal casts to signal parsing code.
9303
add67df8
PA
93042015-10-29 Pedro Alves <palves@redhat.com>
9305
9306 * linux-low.h (NULL_REGSET): Define.
9307 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9308 * linux-arm-low.c (arm_regsets): Likewise.
9309 * linux-crisv32-low.c (cris_regsets): Likewise.
9310 * linux-m68k-low.c (m68k_regsets): Likewise.
9311 * linux-mips-low.c (mips_regsets): Likewise.
9312 * linux-nios2-low.c (nios2_regsets): Likewise.
9313 * linux-ppc-low.c (ppc_regsets): Likewise.
9314 * linux-s390-low.c (s390_regsets): Likewise.
9315 * linux-sh-low.c (sh_regsets): Likewise.
9316 * linux-sparc-low.c (sparc_regsets): Likewise.
9317 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9318 * linux-tile-low.c (tile_regsets): Likewise.
9319 * linux-x86-low.c (x86_regsets): Likewise.
9320 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9321
50bc912a
PA
93222015-10-29 Pedro Alves <palves@redhat.com>
9323
9324 * linux-low.h (NULL_REGSET): Define.
9325 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9326 * linux-arm-low.c (arm_regsets): Likewise.
9327 * linux-crisv32-low.c (cris_regsets): Likewise.
9328 * linux-m68k-low.c (m68k_regsets): Likewise.
9329 * linux-mips-low.c (mips_regsets): Likewise.
9330 * linux-nios2-low.c (nios2_regsets): Likewise.
9331 * linux-ppc-low.c (ppc_regsets): Likewise.
9332 * linux-s390-low.c (s390_regsets): Likewise.
9333 * linux-sh-low.c (sh_regsets): Likewise.
9334 * linux-sparc-low.c (sparc_regsets): Likewise.
9335 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9336 * linux-tile-low.c (tile_regsets): Likewise.
9337 * linux-x86-low.c (x86_regsets): Likewise.
9338 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9339
682b2546
DE
93402015-10-26 Doug Evans <dje@google.com>
9341
9342 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9343
963843d4
DE
93442015-10-26 Doug Evans <dje@google.com>
9345
9346 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9347
d41401ac
DE
93482015-10-26 Doug Evans <dje@google.com>
9349
9350 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9351 for debug_printf.
9352 (attach_thread, find_new_threads_callback): Ditto.
9353
3db28855
AT
93542015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9355
9356 * mem-break.h (set_breakpoint_data): Remove.
9357
fb78e89c
AT
93582015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9359
9360 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9361 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9362 (initialize_low): Remove set_breakpoint_data call.
9363 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9364 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9365 (initialize_low): Remove set_breakpoint_data call.
9366 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9367 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9368 (initialize_low): Remove set_breakpoint_data call.
9369
2e6ee069
AT
93702015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9371
9372 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9373 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9374 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9375 * target.h (target_breakpoint_kind_from_pc): New macro.
9376
1652a986
AT
93772015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9378
9379 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9380 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9381 the default breakpoint kind.
9382
abeead09
AT
93832015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9384
9385 * linux-arm-low.c (arm_supports_z_point_type): Add software
9386 breakpoint support.
9387
b0b4b501
AT
93882015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9389
9390 * linux-arm-low.c: Refactor breakpoint definitions.
9391 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9392 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9393
8689682c
AT
93942015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9395
9396 * Makefile.in: Add arm.c/o.
9397 * configure.srv: Likewise.
9398 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9399 (arm_breakpoint_kind_from_pc): New function.
9400 (arm_sw_breakpoint_from_kind): Return proper kind.
9401 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9402
27165294
AT
94032015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9404
9405 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9406 removal.
9407 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9408 (struct raw_breakpoint) <size>: Remove.
9409 (struct raw_breakpoint) <kind>: Add.
9410 (bp_size): New function.
9411 (bp_opcode): Likewise.
9412 (find_raw_breakpoint_at): Adjust for kind.
9413 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9414 (remove_memory_breakpoint): Adjust for kind call bp_size.
9415 (set_raw_breakpoint_at): Adjust for kind.
9416 (set_breakpoint): Likewise.
9417 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9418 (delete_raw_breakpoint): Adjust for kind.
9419 (delete_breakpoint): Likewise.
9420 (find_gdb_breakpoint): Likewise.
9421 (set_gdb_breakpoint_1): Likewise.
9422 (set_gdb_breakpoint): Likewise.
9423 (delete_gdb_breakpoint_1): Likewise.
9424 (delete_gdb_breakpoint): Likewise.
9425 (uninsert_raw_breakpoint): Likewise.
9426 (reinsert_raw_breakpoint): Likewise.
9427 (set_breakpoint_data): Remove.
9428 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9429 (check_mem_read): Adjust for kind call bp_size.
9430 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9431 (clone_one_breakpoint): Adjust for kind.
9432 * mem-break.h (set_gdb_breakpoint): Likewise.
9433 (delete_gdb_breakpoint): Likewise.
9434 * server.c (process_serial_event): Likewise.
9435
dd373349
AT
94362015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9437
9438 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9439 (struct linux_target_ops) <breakpoint>: Remove.
9440 (struct linux_target_ops) <breakpoint_len>: Remove.
9441 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9442 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9443 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9444 (arm_sw_breakpoint_from_kind): New function.
9445 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9446 (struct linux_target_ops) <breakpoint>: Remove.
9447 (struct linux_target_ops) <breakpoint_len>: Remove.
9448 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9449 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9450 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9451 (struct linux_target_ops) <breakpoint>: Remove.
9452 (struct linux_target_ops) <breakpoint_len>: Remove.
9453 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9454 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9455 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9456 (struct linux_target_ops) <breakpoint>: Remove.
9457 (struct linux_target_ops) <breakpoint_len>: Remove.
9458 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9459 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9460 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9461 and sw_breakpoint_from_kind to increment the pc.
9462 (linux_breakpoint_kind_from_pc): New function.
9463 (linux_sw_breakpoint_from_kind): New function.
9464 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9465 (initialize_low): Call breakpoint_kind_from_pc and
9466 sw_breakpoint_from_kind to replace breakpoint_data/len.
9467 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9468 New field.
9469 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9470 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9471 (struct linux_target_ops) <breakpoint>: Remove.
9472 (struct linux_target_ops) <breakpoint_len>: Remove.
9473 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9474 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9475 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9476 (struct linux_target_ops) <breakpoint>: Remove.
9477 (struct linux_target_ops) <breakpoint_len>: Remove.
9478 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9479 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9480 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9481 (struct linux_target_ops) <breakpoint>: Remove.
9482 (struct linux_target_ops) <breakpoint_len>: Remove.
9483 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9484 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9485 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9486 (struct linux_target_ops) <breakpoint>: Remove.
9487 (struct linux_target_ops) <breakpoint_len>: Remove.
9488 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9489 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9490 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9491 (struct linux_target_ops) <breakpoint>: Remove.
9492 (struct linux_target_ops) <breakpoint_len>: Remove.
9493 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9494 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9495 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9496 (struct linux_target_ops) <breakpoint>: Remove.
9497 (struct linux_target_ops) <breakpoint_len>: Remove.
9498 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9499 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9500 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9501 (struct linux_target_ops) <breakpoint>: Remove.
9502 (struct linux_target_ops) <breakpoint_len>: Remove.
9503 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9504 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9505 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9506 (struct linux_target_ops) <breakpoint>: Remove.
9507 (struct linux_target_ops) <breakpoint_len>: Remove.
9508 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9509 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9510 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9511 (struct linux_target_ops) <breakpoint>: Remove.
9512 (struct linux_target_ops) <breakpoint_len>: Remove.
9513 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9514 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9515 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9516 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9517 (struct linux_target_ops) <breakpoint>: Remove.
9518 (struct linux_target_ops) <breakpoint_len>: Remove.
9519 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9520 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9521 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9522 (struct linux_target_ops) <breakpoint>: Remove.
9523 (struct linux_target_ops) <breakpoint_len>: Remove.
9524 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9525 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9526
4cd98a19
AT
95272015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9528
9529 * linux-cris-low.c (cris_get_pc): Remove void arg.
9530
774ee6d2
AR
95312015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9532
9533 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9534 variable name.
9535
833dcd29
AR
95362015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9537
9538 * inferiors.c (thread_pid_matches_callback): New function.
9539 (find_thread_process): New function.
9540 (remove_thread): Reset current_thread.
9541 (remove_process): Assert threads have been removed first.
9542
8d689ee5
YQ
95432015-10-15 Yao Qi <yao.qi@linaro.org>
9544
9545 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9546 if it is 3.
9547 (aarch64_remove_point): Likewise.
9548 * regcache.c (regcache_register_size): New function.
9549
1c2e1515
YQ
95502015-10-12 Yao Qi <yao.qi@linaro.org>
9551
9552 * linux-aarch64-low.c: Update all callers as emit_load_store
9553 is renamed to aarch64_emit_load_store.
9554
e1c587c3
YQ
95552015-10-12 Yao Qi <yao.qi@linaro.org>
9556
9557 * linux-aarch64-low.c: Update all callers of function renaming
9558 from emit_insn to aarch64_emit_insn.
9559
b6542f81
YQ
95602015-10-12 Yao Qi <yao.qi@linaro.org>
9561
9562 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9563 arch/aarch64-insn.h.
9564 (struct aarch64_memory_operand): Likewise.
9565 (ENCODE): Likewise.
9566 (emit_insn): Move to arch/aarch64-insn.c.
9567 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9568 (emit_load_store): Move to arch/aarch64-insn.c.
9569 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9570 (can_encode_int32): Remove.
9571
246994ce
YQ
95722015-10-12 Yao Qi <yao.qi@linaro.org>
9573
9574 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9575 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9576 (aarch64_relocate_instruction): Likewise.
9577 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9578 (struct aarch64_insn_visitor): Likewise.
9579
0badd99f
YQ
95802015-10-12 Yao Qi <yao.qi@linaro.org>
9581
9582 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9583 (struct aarch64_insn_visitor): New.
9584 (struct aarch64_insn_relocation_data): New.
9585 (aarch64_ftrace_insn_reloc_b): New function.
9586 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9587 (aarch64_ftrace_insn_reloc_cb): Likewise.
9588 (aarch64_ftrace_insn_reloc_tb): Likewise.
9589 (aarch64_ftrace_insn_reloc_adr): Likewise.
9590 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9591 (aarch64_ftrace_insn_reloc_others): Likewise.
9592 (visitor): New.
9593 (aarch64_relocate_instruction): Use visitor.
9594
dfaffe9d
YQ
95952015-10-12 Yao Qi <yao.qi@linaro.org>
9596
9597 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9598 int. Add argument buf.
9599 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9600 aarch64_relocate_instruction.
9601
70b439f0
YQ
96022015-10-12 Yao Qi <yao.qi@linaro.org>
9603
9604 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9605 argument insn. Remove local variable insn. Don't call
9606 target_read_uint32.
9607 (aarch64_install_fast_tracepoint_jump_pad): Call
9608 target_read_uint32.
9609
7781c06f
YQ
96102015-09-30 Yao Qi <yao.qi@linaro.org>
9611
9612 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9613 (emit_load_store_pair): Likewise.
9614
9a3c8263
SM
96152015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9616
9617 * dll.c (match_dll): Add cast(s).
9618 (unloaded_dll): Likewise.
9619 * linux-low.c (second_thread_of_pid_p): Likewise.
9620 (delete_lwp_callback): Likewise.
9621 (count_events_callback): Likewise.
9622 (select_event_lwp_callback): Likewise.
9623 (linux_set_resume_request): Likewise.
9624 * server.c (accumulate_file_name_length): Likewise.
9625 (emit_dll_description): Likewise.
9626 (handle_qxfer_threads_worker): Likewise.
9627 (visit_actioned_threads): Likewise.
9628 * thread-db.c (any_thread_of): Likewise.
9629 * tracepoint.c (same_process_p): Likewise.
9630 (match_blocktype): Likewise.
9631 (build_traceframe_info_xml): Likewise.
9632
224c3ddb
SM
96332015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9634
9635 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9636 assignment.
9637 (gdb_unparse_agent_expr): Likewise.
9638 * hostio.c (require_data): Likewise.
9639 (handle_pread): Likewise.
9640 * linux-low.c (disable_regset): Likewise.
9641 (fetch_register): Likewise.
9642 (store_register): Likewise.
9643 (get_dynamic): Likewise.
9644 (linux_qxfer_libraries_svr4): Likewise.
9645 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9646 (set_fast_tracepoint_jump): Likewise.
9647 (uninsert_fast_tracepoint_jumps_at): Likewise.
9648 (reinsert_fast_tracepoint_jumps_at): Likewise.
9649 (validate_inserted_breakpoint): Likewise.
9650 (clone_agent_expr): Likewise.
9651 * regcache.c (init_register_cache): Likewise.
9652 * remote-utils.c (putpkt_binary_1): Likewise.
9653 (decode_M_packet): Likewise.
9654 (decode_X_packet): Likewise.
9655 (look_up_one_symbol): Likewise.
9656 (relocate_instruction): Likewise.
9657 (monitor_output): Likewise.
9658 * server.c (handle_search_memory): Likewise.
9659 (handle_qxfer_exec_file): Likewise.
9660 (handle_qxfer_libraries): Likewise.
9661 (handle_qxfer): Likewise.
9662 (handle_query): Likewise.
9663 (handle_v_cont): Likewise.
9664 (handle_v_run): Likewise.
9665 (captured_main): Likewise.
9666 * target.c (write_inferior_memory): Likewise.
9667 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9668 * tracepoint.c (init_trace_buffer): Likewise.
9669 (add_tracepoint_action): Likewise.
9670 (add_traceframe): Likewise.
9671 (add_traceframe_block): Likewise.
9672 (cmd_qtdpsrc): Likewise.
9673 (cmd_qtdv): Likewise.
9674 (cmd_qtstatus): Likewise.
9675 (response_source): Likewise.
9676 (response_tsv): Likewise.
9677 (cmd_qtnotes): Likewise.
9678 (gdb_collect): Likewise.
9679 (initialize_tracepoint): Likewise.
9680
afbe19f8
PL
96812015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9682
9683 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9684 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9685 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9686 <NOP>: New.
9687 (enum aarch64_condition_codes): New enum.
9688 (w0): New static global.
9689 (fp): Likewise.
9690 (lr): Likewise.
9691 (struct aarch64_memory_operand) <type>: New
9692 MEMORY_OPERAND_POSTINDEX type.
9693 (postindex_memory_operand): New helper function.
9694 (emit_ret): New function.
9695 (emit_load_store_pair): New function, factored out of emit_stp
9696 with support for MEMORY_OPERAND_POSTINDEX.
9697 (emit_stp): Rewrite using emit_load_store_pair.
9698 (emit_ldp): New function.
9699 (emit_load_store): Likewise.
9700 (emit_ldr): Mention post-index instruction in comment.
9701 (emit_ldrh): New function.
9702 (emit_ldrb): New function.
9703 (emit_ldrsw): Mention post-index instruction in comment.
9704 (emit_str): Likewise.
9705 (emit_subs): New function.
9706 (emit_cmp): Likewise.
9707 (emit_and): Likewise.
9708 (emit_orr): Likewise.
9709 (emit_orn): Likewise.
9710 (emit_eor): Likewise.
9711 (emit_mvn): Likewise.
9712 (emit_lslv): Likewise.
9713 (emit_lsrv): Likewise.
9714 (emit_asrv): Likewise.
9715 (emit_mul): Likewise.
9716 (emit_sbfm): Likewise.
9717 (emit_sbfx): Likewise.
9718 (emit_ubfm): Likewise.
9719 (emit_ubfx): Likewise.
9720 (emit_csinc): Likewise.
9721 (emit_cset): Likewise.
9722 (emit_nop): Likewise.
9723 (emit_ops_insns): New helper function.
9724 (emit_pop): Likewise.
9725 (emit_push): Likewise.
9726 (aarch64_emit_prologue): New function.
9727 (aarch64_emit_epilogue): Likewise.
9728 (aarch64_emit_add): Likewise.
9729 (aarch64_emit_sub): Likewise.
9730 (aarch64_emit_mul): Likewise.
9731 (aarch64_emit_lsh): Likewise.
9732 (aarch64_emit_rsh_signed): Likewise.
9733 (aarch64_emit_rsh_unsigned): Likewise.
9734 (aarch64_emit_ext): Likewise.
9735 (aarch64_emit_log_not): Likewise.
9736 (aarch64_emit_bit_and): Likewise.
9737 (aarch64_emit_bit_or): Likewise.
9738 (aarch64_emit_bit_xor): Likewise.
9739 (aarch64_emit_bit_not): Likewise.
9740 (aarch64_emit_equal): Likewise.
9741 (aarch64_emit_less_signed): Likewise.
9742 (aarch64_emit_less_unsigned): Likewise.
9743 (aarch64_emit_ref): Likewise.
9744 (aarch64_emit_if_goto): Likewise.
9745 (aarch64_emit_goto): Likewise.
9746 (aarch64_write_goto_address): Likewise.
9747 (aarch64_emit_const): Likewise.
9748 (aarch64_emit_call): Likewise.
9749 (aarch64_emit_reg): Likewise.
9750 (aarch64_emit_pop): Likewise.
9751 (aarch64_emit_stack_flush): Likewise.
9752 (aarch64_emit_zero_ext): Likewise.
9753 (aarch64_emit_swap): Likewise.
9754 (aarch64_emit_stack_adjust): Likewise.
9755 (aarch64_emit_int_call_1): Likewise.
9756 (aarch64_emit_void_call_2): Likewise.
9757 (aarch64_emit_eq_goto): Likewise.
9758 (aarch64_emit_ne_goto): Likewise.
9759 (aarch64_emit_lt_goto): Likewise.
9760 (aarch64_emit_le_goto): Likewise.
9761 (aarch64_emit_gt_goto): Likewise.
9762 (aarch64_emit_ge_got): Likewise.
9763 (aarch64_emit_ops_impl): New static global variable.
9764 (aarch64_emit_ops): New target function, return
9765 &aarch64_emit_ops_impl.
9766 (struct linux_target_ops): Install it.
9767
bb903df0
PL
97682015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9769
9770 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9771 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9772 aarch64-ipa.o.
9773 * linux-aarch64-ipa.c: New file.
9774 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9775 and endian.h.
9776 (aarch64_get_thread_area): New target method.
9777 (extract_signed_bitfield): New helper function.
9778 (aarch64_decode_ldr_literal): New function.
9779 (enum aarch64_opcodes): New enum.
9780 (struct aarch64_register): New struct.
9781 (struct aarch64_operand): New struct.
9782 (x0): New static global.
9783 (x1): Likewise.
9784 (x2): Likewise.
9785 (x3): Likewise.
9786 (x4): Likewise.
9787 (w2): Likewise.
9788 (ip0): Likewise.
9789 (sp): Likewise.
9790 (xzr): Likewise.
9791 (aarch64_register): New helper function.
9792 (register_operand): Likewise.
9793 (immediate_operand): Likewise.
9794 (struct aarch64_memory_operand): New struct.
9795 (offset_memory_operand): New helper function.
9796 (preindex_memory_operand): Likewise.
9797 (enum aarch64_system_control_registers): New enum.
9798 (ENCODE): New macro.
9799 (emit_insn): New helper function.
9800 (emit_b): New function.
9801 (emit_bcond): Likewise.
9802 (emit_cb): Likewise.
9803 (emit_tb): Likewise.
9804 (emit_blr): Likewise.
9805 (emit_stp): Likewise.
9806 (emit_ldp_q_offset): Likewise.
9807 (emit_stp_q_offset): Likewise.
9808 (emit_load_store): Likewise.
9809 (emit_ldr): Likewise.
9810 (emit_ldrsw): Likewise.
9811 (emit_str): Likewise.
9812 (emit_ldaxr): Likewise.
9813 (emit_stxr): Likewise.
9814 (emit_stlr): Likewise.
9815 (emit_data_processing_reg): Likewise.
9816 (emit_data_processing): Likewise.
9817 (emit_add): Likewise.
9818 (emit_sub): Likewise.
9819 (emit_mov): Likewise.
9820 (emit_movk): Likewise.
9821 (emit_mov_addr): Likewise.
9822 (emit_mrs): Likewise.
9823 (emit_msr): Likewise.
9824 (emit_sevl): Likewise.
9825 (emit_wfe): Likewise.
9826 (append_insns): Likewise.
9827 (can_encode_int32_in): New helper function.
9828 (aarch64_relocate_instruction): New function.
9829 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9830 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9831 (struct linux_target_ops): Install aarch64_get_thread_area,
9832 aarch64_install_fast_tracepoint_jump_pad and
9833 aarch64_get_min_fast_tracepoint_insn_len.
9834
787749ea
PL
98352015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9836
9837 * Makefile.in (aarch64-insn.o): New rule.
9838 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9839
9812b2e6
YQ
98402015-09-21 Yao Qi <yao.qi@linaro.org>
9841
9842 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9843
18fe412b
YQ
98442015-09-21 Yao Qi <yao.qi@linaro.org>
9845
9846 * tracepoint.c (max_jump_pad_size): Remove.
9847
a0cc84cd
YQ
98482015-09-18 Yao Qi <yao.qi@linaro.org>
9849
9850 * linux-aarch64-low.c: Don't include sys/uio.h.
9851 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9852
d78908cf
WW
98532015-09-16 Wei-cheng Wang <cole945@gmail.com>
9854
9855 * tracepoint.c (eval_result_type): Change prototype.
9856 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9857
d57e0d50
PA
98582015-09-15 Pedro Alves <palves@redhat.com>
9859
9860 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9861 Check whether to report exec events instead of checking whether
9862 multiprocess is enabled.
9863
5a676acc
PA
98642015-09-15 Pedro Alves <palves@redhat.com>
9865
9866 PR remote/18965
9867 * remote-utils.c (prepare_resume_reply): Merge
9868 TARGET_WAITKIND_VFORK_DONE switch case with the
9869 TARGET_WAITKIND_FORKED case.
9870
7c5d0fad
YQ
98712015-09-15 Yao Qi <yao.qi@linaro.org>
9872
9873 * server.c (handle_query): Check string comparison using
9874 "else if" instead of "if".
9875
750ce8d1
YQ
98762015-09-15 Yao Qi <yao.qi@linaro.org>
9877
9878 * server.c (vCont_supported): New global variable.
9879 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9880 matches. Append ";vContSupported+" to own_buf.
9881 (handle_v_requests): Append ";s;S" to own_buf if target supports
9882 hardware single step or vCont_supported is false.
9883 (capture_main): Set vCont_supported to zero.
9884
70b90b91
YQ
98852015-09-15 Yao Qi <yao.qi@linaro.org>
9886
9887 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9888 it to ...
9889 (linux_supports_hardware_single_step): ... New function.
9890 (linux_target_ops): Update.
9891 * lynx-low.c (lynx_target_ops): Set field
9892 supports_hardware_single_step to target_can_do_hardware_single_step.
9893 * nto-low.c (nto_target_ops): Likewise.
9894 * spu-low.c (spu_target_ops): Likewise.
9895 * win32-low.c (win32_target_ops): Likewise.
9896 * target.c (target_can_do_hardware_single_step): New function.
9897 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9898 Remove. <supports_hardware_single_step>: New field.
9899 (target_supports_conditional_breakpoints): Remove.
9900 (target_supports_hardware_single_step): New macro.
9901 (target_can_do_hardware_single_step): Declare.
9902 * server.c (handle_query): Use target_supports_hardware_single_step
9903 instead of target_supports_conditional_breakpoints.
9904
ade90bde
YQ
99052015-09-15 Yao Qi <yao.qi@linaro.org>
9906
9907 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9908 function.
9909 (struct linux_target_ops the_low_target): Install
9910 aarch64_linux_siginfo_fixup.
9911
94585166
DB
99122015-09-11 Don Breazeal <donb@codesourcery.com>
9913 Luis Machado <lgustavo@codesourcery.com>
9914
9915 * linux-low.c (linux_mourn): Static declaration.
9916 (linux_arch_setup): Move in front of
9917 handle_extended_wait.
9918 (linux_arch_setup_thread): New function.
9919 (handle_extended_wait): Handle exec events. Call
9920 linux_arch_setup_thread. Make event_lwp argument a
9921 pointer-to-a-pointer.
9922 (check_zombie_leaders): Do not check stopped threads.
9923 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9924 (linux_low_filter_event): Add lwp and thread for exec'ing
9925 non-leader thread if leader thread has been deleted.
9926 Refactor code into linux_arch_setup_thread and call it.
9927 Pass child lwp pointer by reference to handle_extended_wait.
9928 (linux_wait_for_event_filtered): Update comment.
9929 (linux_wait_1): Prevent clobbering exec event status.
9930 (linux_supports_exec_events): New function.
9931 (linux_target_ops) <supports_exec_events>: Initialize new member.
9932 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9933 new member.
9934 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9935 * server.c (report_exec_events): New global variable.
9936 (handle_query): Handle qSupported query for exec-events feature.
9937 (captured_main): Initialize report_exec_events.
9938 * server.h (report_exec_events): Declare new global variable.
9939 * target.h (struct target_ops) <supports_exec_events>: New
9940 member.
9941 (target_supports_exec_events): New macro.
9942 * win32-low.c (win32_target_ops) <supports_exec_events>:
9943 Initialize new member.
9944
0568462b
MM
99452015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9946
9947 * linux-low.c (linux_low_enable_btrace): Remove.
9948 (linux_target_ops): Replace linux_low_enable_btrace with
9949 linux_enable_btrace.
9950
39edd165
YQ
99512015-09-03 Yao Qi <yao.qi@linaro.org>
9952
9953 * linux-aarch64-low.c (aarch64_insert_point): Call
9954 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9955 returns true.
9956
1db33b5a
UW
99572015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9958
9959 * linux-low.c (check_stopped_by_breakpoint): Use
9960 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9961
ab290430
PA
99622015-08-27 Pedro Alves <palves@redhat.com>
9963
9964 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9965
8d749320
SM
99662015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9967
6711b7f8
SM
9968 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9969 the XNEW-family equivalent.
8d749320
SM
9970 (compile_bytecodes): Likewise.
9971 * dll.c (loaded_dll): Likewise.
9972 * event-loop.c (append_callback_event): Likewise.
9973 (create_file_handler): Likewise.
9974 (create_file_event): Likewise.
9975 * hostio.c (handle_open): Likewise.
9976 * inferiors.c (add_thread): Likewise.
9977 (add_process): Likewise.
9978 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9979 * linux-arm-low.c (arm_new_process): Likewise.
9980 (arm_new_thread): Likewise.
9981 * linux-low.c (add_to_pid_list): Likewise.
9982 (linux_add_process): Likewise.
9983 (handle_extended_wait): Likewise.
9984 (add_lwp): Likewise.
9985 (enqueue_one_deferred_signal): Likewise.
9986 (enqueue_pending_signal): Likewise.
9987 (linux_resume_one_lwp_throw): Likewise.
9988 (linux_resume_one_thread): Likewise.
9989 (linux_read_memory): Likewise.
9990 (linux_write_memory): Likewise.
9991 * linux-mips-low.c (mips_linux_new_process): Likewise.
9992 (mips_linux_new_thread): Likewise.
9993 (mips_add_watchpoint): Likewise.
9994 * linux-x86-low.c (initialize_low_arch): Likewise.
9995 * lynx-low.c (lynx_add_process): Likewise.
9996 * mem-break.c (set_raw_breakpoint_at): Likewise.
9997 (set_breakpoint): Likewise.
9998 (add_condition_to_breakpoint): Likewise.
9999 (add_commands_to_breakpoint): Likewise.
10000 (clone_agent_expr): Likewise.
10001 (clone_one_breakpoint): Likewise.
10002 * regcache.c (new_register_cache): Likewise.
10003 * remote-utils.c (look_up_one_symbol): Likewise.
10004 * server.c (queue_stop_reply): Likewise.
10005 (start_inferior): Likewise.
10006 (queue_stop_reply_callback): Likewise.
10007 (handle_target_event): Likewise.
10008 * spu-low.c (fetch_ppc_memory): Likewise.
10009 (store_ppc_memory): Likewise.
10010 * target.c (set_target_ops): Likewise.
10011 * thread-db.c (thread_db_load_search): Likewise.
10012 (try_thread_db_load_1): Likewise.
10013 * tracepoint.c (add_tracepoint): Likewise.
10014 (add_tracepoint_action): Likewise.
10015 (create_trace_state_variable): Likewise.
10016 (cmd_qtdpsrc): Likewise.
10017 (cmd_qtro): Likewise.
10018 (add_while_stepping_state): Likewise.
10019 * win32-low.c (child_add_thread): Likewise.
10020 (get_image_name): Likewise.
10021
ed8b7b42
YQ
100222015-08-25 Yao Qi <yao.qi@linaro.org>
10023
10024 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10025
db3cb7cb
YQ
100262015-08-25 Yao Qi <yao.qi@linaro.org>
10027
10028 * Makefile.in (aarch64-linux.o): New rule.
10029 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10030 srv_tgtobj.
10031 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10032 (aarch64_init_debug_reg_state): Make it extern.
10033 (aarch64_linux_prepare_to_resume): Remove.
10034
f6011a1c
YQ
100352015-08-25 Yao Qi <yao.qi@linaro.org>
10036
10037 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10038 lwp_arch_private_info and ptid_of_lwp.
10039
88e2cf7e
YQ
100402015-08-25 Yao Qi <yao.qi@linaro.org>
10041
10042 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10043 Find proc_info by find_process_pid. All callers updated.
10044
5e35436e
YQ
100452015-08-25 Yao Qi <yao.qi@linaro.org>
10046
10047 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10048 Remove.
10049 (debug_reg_change_callback): Remove.
10050 (aarch64_notify_debug_reg_change): Remove.
10051
4a8a7965
YQ
100522015-08-25 Yao Qi <yao.qi@linaro.org>
10053
10054 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10055 Call current_lwp_ptid.
10056
32a271ee
YQ
100572015-08-25 Yao Qi <yao.qi@linaro.org>
10058
10059 * linux-aarch64-low.c (debug_reg_change_callback): Use
10060 debug_printf.
10061
0d51c8d7
YQ
100622015-08-25 Yao Qi <yao.qi@linaro.org>
10063
10064 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10065
31a43dd5
YQ
100662015-08-25 Yao Qi <yao.qi@linaro.org>
10067
10068 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10069
8ee52567
YQ
100702015-08-25 Yao Qi <yao.qi@linaro.org>
10071
10072 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10073 the code.
10074
ff3f0f45
YQ
100752015-08-25 Yao Qi <yao.qi@linaro.org>
10076
10077 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10078 Remove.
10079 (debug_reg_change_callback): Remove argument entry and add argument
10080 lwp. Remove local variable thread. Don't print thread id in the
10081 debugging output. Don't check whether pid of thread equals to pid.
10082 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10083 iterate_over_lwps instead find_inferior.
10084
3d40fbb5
PA
100852015-08-24 Pedro Alves <palves@redhat.com>
10086
10087 * inferiors.c (get_first_process): New function.
10088 * inferiors.h (get_first_process): New declaration.
10089 * remote-utils.c (read_ptid): Default to the first process in the
10090 list, instead of to the current thread's process.
10091
438e1e42
PA
100922015-08-24 Pedro Alves <palves@redhat.com>
10093
10094 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10095 * event-loop.c: Likewise.
10096 * remote-utils.c: Likewise.
10097 * tracepoint.c: Likewise.
10098
a8c6d4fc
PA
100992015-08-24 Pedro Alves <palves@redhat.com>
10100
10101 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10102 ptid_get_lwp.
10103
99b0bb12
PA
101042015-08-21 Pedro Alves <palves@redhat.com>
10105
10106 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10107 instead of literal 1.
10108
f8904751
PA
101092015-08-21 Pedro Alves <palves@redhat.com>
10110
10111 * tdesc.c (default_description): Explicitly zero-initialize.
10112
465a859e
PA
101132015-08-21 Pedro Alves <palves@redhat.com>
10114
10115 PR gdb/18749
10116 * inferiors.c (remove_thread): Discard any pending stop reply for
10117 this thread.
10118 * server.c (remove_all_on_match_pid): Rename to ...
10119 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10120 instead of a pid.
10121 (discard_queued_stop_replies): Change parameter to a ptid. Now
10122 extern.
10123 (handle_v_kill, kill_inferior_callback, captured_main)
10124 (process_serial_event): Adjust.
10125 * server.h (discard_queued_stop_replies): Declare.
10126
f0db101d
PA
101272015-08-21 Pedro Alves <palves@redhat.com>
10128
10129 * linux-low.c (wait_for_sigstop): Always switch to no thread
10130 selected if the previously current thread dies.
10131 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10132 process instead of the current thread's.
10133 * remote-utils.c (input_interrupt): Don't check if there's no
10134 current thread.
10135 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10136 current thread to the general thread fails, error out.
10137 (handle_qxfer_auxv, handle_qxfer_libraries)
10138 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10139 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10140 (handle_query): Check if there's a thread selected instead of
10141 checking whether there's any thread in the thread list.
10142 (handle_qxfer_threads, handle_qxfer_btrace)
10143 (handle_qxfer_btrace_conf): Don't error out early if there's no
10144 thread in the thread list.
10145 (handle_v_cont, myresume): Don't set the current thread to the
10146 continue thread.
10147 (process_serial_event) <Hg handling>: Also set thread_id if the
10148 previous general thread is still alive.
10149 (process_serial_event) <g/G handling>: If setting the current
10150 thread to the general thread fails, error out.
10151 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10152 thread's lwp instead of the current thread's.
10153 * target.c (set_desired_thread): If the desired thread was not
10154 found, leave the current thread pointing to NULL. Return an int
10155 (boolean) indicating success.
10156 * target.h (set_desired_thread): Change return type to int.
10157
40045d91
MF
101582015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10159
10160 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10161 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10162 #includes.
10163 (ps_get_thread_area): New function.
10164
45face3b
GB
101652015-08-19 Gary Benson <gbenson@redhat.com>
10166
10167 * hostio.c (handle_pread): Do not attempt to read more data
10168 than hostio_reply_with_data can fit in a packet.
10169
16d5f642
JB
101702015-08-18 Joel Brobecker <brobecker@adacore.com>
10171
10172 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10173
a738da3a
MF
101742015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10175
10176 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10177
33ebda9d
PA
101782015-08-06 Pedro Alves <palves@redhat.com>
10179
10180 * tracepoint.c (expr_eval_result): Now an int.
10181
a44892be
PA
101822015-08-06 Pedro Alves <palves@redhat.com>
10183
10184 * gdbthread.h (struct regcache): Forward declare.
10185 (struct thread_info) <regcache_data>: Now a struct regcache
10186 pointer.
10187 * inferiors.c (inferior_regcache_data)
10188 (set_inferior_regcache_data): Now work with struct regcache
10189 pointers.
10190 * inferiors.h (struct regcache): Forward declare.
10191 (inferior_regcache_data, set_inferior_regcache_data): Now work
10192 with struct regcache pointers.
10193 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10194 (free_register_cache_thread): Remove struct regcache pointer
10195 casts.
10196
608a1e46
PA
101972015-08-06 Pedro Alves <palves@redhat.com>
10198
10199 * server.c (captured_main): On error, print the exception message
10200 to stderr, and if run_once is set, throw a quit.
10201
f0ce0d3a
PA
102022015-08-06 Pedro Alves <palves@redhat.com>
10203
10204 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10205 the current thread.
10206
bf47e248
PA
102072015-08-06 Pedro Alves <palves@redhat.com>
10208
10209 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10210 reading beyond the passed in buffer length.
10211
b6b9ffcc
PL
102122015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10213
10214 * tracepoint.c (symbol_list) <required>: Remove.
10215
863d01bd
PA
102162015-08-06 Pedro Alves <palves@redhat.com>
10217
10218 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10219 count if stopping and suspending threads.
10220 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10221 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10222 (linux_detach): Complete an ongoing step-over.
10223 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10224 throughout.
10225 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10226 (linux_wait_1): If passing a signal to the inferior after
10227 finishing a step-over, unsuspend and re-resume all lwps. If we
10228 see a single-step event but the thread should be continuing, don't
10229 pass the trap to gdb.
10230 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10231 internal_error instead of gdb_assert.
10232 (enqueue_pending_signal): New function.
10233 (check_ptrace_stopped_lwp_gone): Add debug output.
10234 (start_step_over): Use internal_error instead of gdb_assert.
10235 (complete_ongoing_step_over): New function.
10236 (linux_resume_one_thread): Don't resume a suspended thread.
10237 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10238 it stepping.
10239
00db26fa
PA
102402015-08-06 Pedro Alves <palves@redhat.com>
10241
10242 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10243 (linux_thread_alive): Use lwp_is_marked_dead.
10244 (extended_event_reported): Delete.
10245 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10246 instead of extended_event_reported.
10247 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10248 as well.
10249 (lwp_is_marked_dead): New function.
10250 (lwp_running): Use lwp_is_marked_dead.
10251 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10252 comment.
10253
ad071a30
PA
102542015-08-06 Pedro Alves <palves@redhat.com>
10255
10256 * linux-low.c (linux_wait_1): Move fork event output out of the
10257 !report_to_gdb check. Pass event_child->waitstatus to
10258 target_waitstatus_to_string instead of ourstatus.
10259
524b57e6
YQ
102602015-08-04 Yao Qi <yao.qi@linaro.org>
10261
10262 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10263 if current_thread is 32 bit.
10264
6085d6f6
YQ
102652015-08-04 Yao Qi <yao.qi@linaro.org>
10266
10267 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10268 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10269 * server.c (extended_protocol): Remove "static".
10270 * server.h (extended_protocol): Declare it.
10271
8a7e4587
YQ
102722015-08-04 Yao Qi <yao.qi@linaro.org>
10273
10274 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10275 both aarch64 and aarch32.
10276 (aarch64_set_pc): Likewise.
10277
3b53ae99
YQ
102782015-08-04 Yao Qi <yao.qi@linaro.org>
10279
10280 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10281 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10282 arm-with-neon.xml to srv_xmlfiles.
10283 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10284 (is_64bit_tdesc): New function.
10285 (aarch64_linux_read_description): New function.
10286 (aarch64_arch_setup): Call aarch64_linux_read_description.
10287 (regs_info): Rename to regs_info_aarch64.
10288 (aarch64_regs_info): Return right regs_info.
10289 (initialize_low_arch): Call initialize_low_arch_aarch32.
10290
bd9e6534
YQ
102912015-08-04 Yao Qi <yao.qi@linaro.org>
10292
10293 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10294 * linux-aarch32-low.c: New file.
10295 * linux-aarch32-low.h: New file.
10296 * linux-arm-low.c (arm_fill_gregset): Move it to
10297 linux-aarch32-low.c.
10298 (arm_store_gregset): Likewise.
10299 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10300 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10301 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10302 (regs_info): Rename to regs_info_arm.
10303 (arm_regs_info): Return regs_info_aarch32 if
10304 have_ptrace_getregset is 1 and target description is
10305 arm_with_neon or arm_with_vfpv3.
10306 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10307 Call initialize_low_arch_aarch32 instead.
10308
ded48a5e
YQ
103092015-08-04 Yao Qi <yao.qi@linaro.org>
10310
10311 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10312 * linux-low.c: ... here.
10313 * linux-low.h (have_ptrace_getregset): Declare it.
10314
96e9210f
PA
103152015-08-04 Pedro Alves <palves@redhat.com>
10316
10317 * thread-db.c (struct thread_db): Use new typedefs.
10318 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10319 CHK calls.
10320 (disable_thread_event_reporting): Cast result of dlsym to
10321 destination function pointer type.
10322 (thread_db_mourn): Use td_ta_delete_ftype.
10323
af60a1ef
SL
103242015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10325
10326 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10327 arch variant.
10328 (CDX_BREAKPOINT): Define for R2.
10329 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10330 (the_low_target): Add comments.
10331
e8b41681
YQ
103322015-07-30 Yao Qi <yao.qi@linaro.org>
10333
10334 * linux-arm-low.c (arm_hwcap): Remove it.
10335 (arm_read_description): New local variable arm_hwcap. Don't
10336 set arm_hwcap to zero.
10337
89abb039
YQ
103382015-07-30 Yao Qi <yao.qi@linaro.org>
10339
10340 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10341 Use regcache->tdesc instead.
10342 (arm_store_wmmxregset): Likewise.
10343 (arm_fill_vfpregset): Likewise.
10344 (arm_store_vfpregset): Likewise.
10345
deca266c
YQ
103462015-07-30 Yao Qi <yao.qi@linaro.org>
10347
10348 * linux-arm-low.c: Include arch/arm.h.
10349 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10350 (arm_store_gregset): Likewise.
10351
aa58a496
SM
103522015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10353
10354 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10355 ptrace's 4th parameter.
10356
50904b25
YQ
103572015-07-27 Yao Qi <yao.qi@linaro.org>
10358
10359 * configure.srv (case aarch64*-*-linux*): Don't set
10360 srv_linux_usrregs.
10361
5826e159
PA
103622015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10363
10364 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10365 sys/ptrace.h.
10366 * linux-arm-low.c: Likewise.
10367 * linux-cris-low.c: Likewise.
10368 * linux-crisv32-low.c: Likewise.
10369 * linux-low.c: Likewise.
10370 * linux-m68k-low.c: Likewise.
10371 * linux-mips-low.c: Likewise.
10372 * linux-nios2-low.c: Likewise.
10373 * linux-s390-low.c: Likewise.
10374 * linux-sparc-low.c: Likewise.
10375 * linux-tic6x-low.c: Likewise.
10376 * linux-tile-low.c: Likewise.
10377 * linux-x86-low.c: Likewise.
10378
54019719
PA
103792015-07-24 Pedro Alves <palves@redhat.com>
10380
10381 * config.in: Regenerate.
10382 * configure: Regenerate.
10383
eb7aa561
PA
103842015-07-24 Pedro Alves <palves@redhat.com>
10385
10386 * acinclude.m4: Include ../ptrace.m4.
10387 * configure.ac: Call GDB_AC_PTRACE.
10388 * config.in, configure: Regenerate.
10389
55d7b841
YQ
103902015-07-24 Yao Qi <yao.qi@linaro.org>
10391
10392 * linux-low.c (linux_create_inferior): Remove setting to
10393 proc->priv->new_inferior.
10394 (linux_attach): Likewise.
10395 (linux_low_filter_event): Likewise.
10396 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10397
c06cbd92
YQ
103982015-07-24 Yao Qi <yao.qi@linaro.org>
10399
10400 * linux-low.c (linux_arch_setup): New function.
10401 (linux_low_filter_event): If proc->tdesc is NULL and
10402 proc->attached is true, call the_low_target.arch_setup.
10403 Otherwise, keep status pending, and return.
10404 (linux_resume_one_lwp_throw): Don't call get_pc if
10405 thread->while_stepping isn't NULL. Don't call
10406 get_thread_regcache if proc->tdesc is NULL.
10407 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10408 (linux_target_ops): Install arch_setup.
10409 * server.c (start_inferior): Call the_target->arch_setup.
10410 * target.h (struct target_ops) <arch_setup>: New field.
10411 (target_arch_setup): New marco.
10412 * lynx-low.c (lynx_target_ops): Update.
10413 * nto-low.c (nto_target_ops): Update.
10414 * spu-low.c (spu_target_ops): Update.
10415 * win32-low.c (win32_target_ops): Update.
10416
5ae3ebba
YQ
104172015-07-24 Yao Qi <yao.qi@linaro.org>
10418
10419 * linux-low.c (linux_add_process): Don't set
10420 proc->priv->new_inferior.
10421 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10422 (linux_attach): Likewise.
10423
eb97750b
YQ
104242015-07-24 Yao Qi <yao.qi@linaro.org>
10425
10426 * server.c (start_inferior): Code refactor.
10427
51aee833
YQ
104282015-07-24 Yao Qi <yao.qi@linaro.org>
10429
10430 * server.c (process_serial_event): Set general_thread.
10431
af1b22f3
YQ
104322015-07-21 Yao Qi <yao.qi@linaro.org>
10433
10434 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10435 aarch64_linux_get_debug_reg_capacity.
10436
554717a3
YQ
104372015-07-17 Yao Qi <yao.qi@linaro.org>
10438
10439 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10440 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10441 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10442 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10443 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10444 (AARCH64_HWP_ALIGNMENT): Likewise.
10445 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10446 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10447 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10448 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10449 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10450 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10451 (struct aarch64_debug_reg_state): Likewise.
10452 (struct arch_lwp_info): Likewise.
10453 (aarch64_align_watchpoint): Likewise.
10454 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10455 (aarch64_watchpoint_length): Likewise.
10456 (aarch64_point_encode_ctrl_reg): Likewise
10457 (aarch64_point_is_aligned): Likewise.
10458 (aarch64_align_watchpoint): Likewise.
10459 (aarch64_linux_set_debug_regs):
10460 (aarch64_dr_state_insert_one_point): Likewise.
10461 (aarch64_dr_state_remove_one_point): Likewise.
10462 (aarch64_handle_breakpoint): Likewise.
10463 (aarch64_handle_aligned_watchpoint): Likewise.
10464 (aarch64_handle_unaligned_watchpoint): Likewise.
10465 (aarch64_handle_watchpoint): Likewise.
10466
c67ca4de
YQ
104672015-07-17 Yao Qi <yao.qi@linaro.org>
10468
10469 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10470 and don't aarch64_get_debug_reg_state. All callers update.
10471 (aarch64_handle_aligned_watchpoint): Likewise.
10472 (aarch64_handle_unaligned_watchpoint): Likewise.
10473 (aarch64_handle_watchpoint): Likewise.
10474 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10475 (aarch64_remove_point): Likewise.
10476
25abf979
YQ
104772015-07-17 Yao Qi <yao.qi@linaro.org>
10478
10479 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10480 debug_printf.
10481 (aarch64_handle_unaligned_watchpoint): Likewise.
10482
db1ff28b
JK
104832015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10484
10485 Revert the previous 3 commits:
10486 Move gdb_regex* to common/
10487 Move linux_find_memory_regions_full & co.
10488 gdbserver build-id attribute generator
10489
700ca40f
JK
104902015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10491 Jan Kratochvil <jan.kratochvil@redhat.com>
10492
10493 gdbserver build-id attribute generator.
10494 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10495 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10496 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10497 (find_phdr): New.
10498 (get_dynamic): Use find_pdhr to traverse program headers.
10499 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10500 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10501 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10502 (get_hex_build_id): New.
10503 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10504 to reply XML document.
10505
9904185c
JK
105062015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10507 Jan Kratochvil <jan.kratochvil@redhat.com>
10508
10509 * target.c: Include target/target-utils.h and fcntl.h.
10510 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10511 (target_fileio_read_stralloc): New functions.
10512
6e5b4429
JK
105132015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10514
10515 * Makefile.in (OBS): Add gdb_regex.o.
10516 (gdb_regex.o): New.
10517 * config.in: Rebuilt.
10518 * configure: Rebuilt.
10519
ddc98fbf
JK
105202015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10521 Jan Kratochvil <jan.kratochvil@redhat.com>
10522
10523 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10524 * Makefile.in (OBS): Add target-utils.o.
10525 (linux-maps.o, target-utils.o): New.
10526 * configure.srv (srv_linux_obj): Add linux-maps.o.
10527
e57bb7a0
PL
105282015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10529
10530 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10531 function, return 1.
10532 (the_low_target): Install it.
10533
586b02a9
PA
105342015-07-14 Pedro Alves <palves@redhat.com>
10535
10536 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10537 Instead, ignore ECHILD, and throw an error for other errnos.
10538
58c1b36c
PA
105392015-07-10 Pedro Alves <palves@redhat.com>
10540
10541 * event-loop.c (struct callback_event) <data>: Change type to
10542 gdb_client_data instance instead of gdb_client_data pointer.
10543 (append_callback_event): Adjust.
10544
421530db
PL
105452015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10546
10547 * linux-aarch64-low.c: Add comments for each linux_target_ops
10548 method. Remove comments already covered in target_ops and
10549 linux_target_ops definitions.
10550 (the_low_target): Add comments for each unimplemented method.
10551
c2d65f38
YQ
105522015-07-09 Yao Qi <yao.qi@linaro.org>
10553
10554 * linux-aarch64-low.c (aarch64_regmap): Remove.
10555 (aarch64_usrregs_info): Remove.
10556 (regs_info): Set field usrregs to NULL.
10557
b20a6524
MM
105582015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10559
10560 * linux-low.c: Include "rsp-low.h"
10561 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10562 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10563 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10564 (handle_btrace_enable_pt): New.
10565 (handle_btrace_general_set): Support "pt".
10566 (handle_btrace_conf_general_set): Support "pt:size".
10567
96c97461
PL
105682015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10569
10570 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10571 Z_PACKET_SW_BP.
10572
37d66942
PL
105732015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10574
10575 * linux-aarch64-low.c: Remove comment about endianness.
10576 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10577 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10578 memcmp.
10579
dc06243f
GB
105802015-06-24 Gary Benson <gbenson@redhat.com>
10581
10582 * linux-i386-ipa.c (stdint.h): Do not include.
10583 * lynx-i386-low.c (stdint.h): Likewise.
10584 * lynx-ppc-low.c (stdint.h): Likewise.
10585 * mem-break.c (stdint.h): Likewise.
10586 * thread-db.c (stdint.h): Likewise.
10587 * tracepoint.c (stdint.h): Likewise.
10588 * win32-low.c (stdint.h): Likewise.
10589
124e13d9
SM
105902015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10591
10592 * server.c (write_qxfer_response): Update call to
10593 remote_escape_output.
10594
909c2cda
JK
105952015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10596 Jan Kratochvil <jan.kratochvil@redhat.com>
10597
10598 Merge multiple hex conversions.
10599 * gdbreplay.c (tohex): Rename to 'fromhex'.
10600 (logchar): Use fromhex.
10601
24c05f46
JK
106022015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10603
10604 * server.c (handle_qxfer_libraries): Set `version' attribute for
10605 <library-list>.
10606
14d2069a
GB
106072015-06-10 Gary Benson <gbenson@redhat.com>
10608
10609 * target.h (struct target_ops) <multifs_open>: New field.
10610 <multifs_unlink>: Likewise.
10611 <multifs_readlink>: Likewise.
10612 * linux-low.c (nat/linux-namespaces.h): New include.
10613 (linux_target_ops): Initialize the_target->multifs_open,
10614 the_target->multifs_unlink and the_target->multifs_readlink.
10615 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10616 * hostio.c (hostio_fs_pid): New static variable.
10617 (hostio_handle_new_gdb_connection): New function.
10618 (handle_setfs): Likewise.
10619 (handle_open): Use the_target->multifs_open as appropriate.
10620 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10621 (handle_readlink): Use the_target->multifs_readlink as
10622 appropriate.
10623 (handle_vFile): Handle vFile:setfs packets.
10624 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10625 after target_handle_new_gdb_connection.
10626
4b8b5e72
GB
106272015-06-10 Gary Benson <gbenson@redhat.com>
10628
10629 * configure.ac (AC_CHECK_FUNCS): Add setns.
10630 * config.in: Regenerate.
10631 * configure: Likewise.
10632 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10633 (linux-namespaces.o): New rule.
10634 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10635
3ac2e371
GB
106362015-06-09 Gary Benson <gbenson@redhat.com>
10637
10638 * hostio.c (handle_open): Process mode argument with
10639 fileio_to_host_mode.
10640
ca9b78ce
YQ
106412015-06-01 Yao Qi <yao.qi@linaro.org>
10642
10643 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10644 * linux-x86-low.c: Likewise.
10645
bfacd19d
DB
106462015-05-28 Don Breazeal <donb@codesourcery.com>
10647
10648 * linux-low.c (handle_extended_wait): Initialize
10649 thread_info.last_resume_kind for new fork children.
10650
452003ef
PA
106512015-05-15 Pedro Alves <palves@redhat.com>
10652
10653 * target.h (target_handle_new_gdb_connection): Rewrite using if
10654 wrapped in do/while.
10655
1041a03c
JB
106562015-05-14 Joel Brobecker <brobecker@adacore.com>
10657
10658 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10659 * configure, config.in: Regenerate.
10660 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10661 Declare typedef.
10662
c269dbdb
DB
106632015-05-12 Don Breazeal <donb@codesourcery.com>
10664
10665 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10666 PTRACE_EVENT_VFORK_DONE.
10667 (linux_low_ptrace_options, extended_event_reported): Add vfork
10668 events.
10669 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10670 and "vforkdone" for RSP 'T' Stop Reply Packet.
10671 * server.h (report_vfork_events): Declare
10672 global variable.
10673
3a8a0396
DB
106742015-05-12 Don Breazeal <donb@codesourcery.com>
10675
10676 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10677 (the_low_target) <new_fork>: Initialize new member.
10678 * linux-arm-low.c (arm_new_fork): New function.
10679 (the_low_target) <new_fork>: Initialize new member.
10680 * linux-low.c (handle_extended_wait): Call new target function
10681 new_fork.
10682 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10683 * linux-mips-low.c (mips_add_watchpoint): New function
10684 extracted from mips_insert_point.
10685 (the_low_target) <new_fork>: Initialize new member.
10686 (mips_linux_new_fork): New function.
10687 (mips_insert_point): Call mips_add_watchpoint.
10688 * linux-x86-low.c (x86_linux_new_fork): New function.
10689 (the_low_target) <new_fork>: Initialize new member.
10690
de0d863e
DB
106912015-05-12 Don Breazeal <donb@codesourcery.com>
10692
10693 * linux-low.c (handle_extended_wait): Implement return value,
10694 rename argument 'event_child' to 'event_lwp', handle
10695 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10696 (linux_low_ptrace_options): New function.
10697 (linux_low_filter_event): Call linux_low_ptrace_options,
10698 use different argument fo linux_enable_event_reporting,
10699 use return value from handle_extended_wait.
10700 (extended_event_reported): New function.
10701 (linux_wait_1): Call extended_event_reported and set
10702 status to report fork events.
10703 (linux_write_memory): Add pid to debug message.
10704 (reset_lwp_ptrace_options_callback): New function.
10705 (linux_handle_new_gdb_connection): New function.
10706 (linux_target_ops): Initialize new structure member.
10707 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10708 * lynx-low.c: Initialize new structure member.
10709 * remote-utils.c (prepare_resume_reply): Implement stop reason
10710 "fork" for "T" stop message.
10711 * server.c (handle_query): Call handle_new_gdb_connection.
10712 * server.h (report_fork_events): Declare global flag.
10713 * target.h (struct target_ops) <handle_new_gdb_connection>:
10714 New member.
10715 (target_handle_new_gdb_connection): New macro.
10716 * win32-low.c: Initialize new structure member.
10717
ddcbc397
DB
107182015-05-12 Don Breazeal <donb@codesourcery.com>
10719
10720 * mem-break.c (APPEND_TO_LIST): Define macro.
10721 (clone_agent_expr): New function.
10722 (clone_one_breakpoint): New function.
10723 (clone_all_breakpoints): New function.
10724 * mem-break.h: Declare new functions.
10725
89245bc0
DB
107262015-05-12 Don Breazeal <donb@codesourcery.com>
10727
10728 * linux-low.c (linux_supports_fork_events): New function.
10729 (linux_supports_vfork_events): New function.
10730 (linux_target_ops): Initialize new structure members.
10731 (initialize_low): Call linux_check_ptrace_features.
10732 * lynx-low.c (lynx_target_ops): Initialize new structure
10733 members.
10734 * server.c (report_fork_events, report_vfork_events):
10735 New global flags.
10736 (handle_query): Add new features to qSupported packet and
10737 response.
10738 (captured_main): Initialize new global variables.
10739 * target.h (struct target_ops) <supports_fork_events>:
10740 New member.
10741 <supports_vfork_events>: New member.
10742 (target_supports_fork_events): New macro.
10743 (target_supports_vfork_events): New macro.
10744 * win32-low.c (win32_target_ops): Initialize new structure
10745 members.
10746
835205d0
GB
107472015-05-12 Gary Benson <gbenson@redhat.com>
10748
10749 * server.c (handle_qxfer_exec_file): Use current process
10750 if annex is empty.
10751
21e94bd9
SL
107522015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10753
10754 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10755 Remove HAVE_PTRACE_GETREGS conditionals.
10756 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10757 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10758
45614f15
YQ
107592015-05-08 Yao Qi <yao.qi@linaro.org>
10760
10761 * linux-low.c (linux_supports_conditional_breakpoints): New
10762 function.
10763 (linux_target_ops): Install new target method.
10764 * lynx-low.c (lynx_target_ops): Install NULL hook for
10765 supports_conditional_breakpoints.
10766 * nto-low.c (nto_target_ops): Likewise.
10767 * spu-low.c (spu_target_ops): Likewise.
10768 * win32-low.c (win32_target_ops): Likewise.
10769 * server.c (handle_query): Check
10770 target_supports_conditional_breakpoints.
10771 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10772 New field.
10773 (target_supports_conditional_breakpoints): New macro.
10774
80ad801e
PA
107752015-05-06 Pedro Alves <palves@redhat.com>
10776
10777 PR server/18081
10778 * server.c (start_inferior): If the process exits, mourn it.
10779
819843c7
GB
107802015-04-21 Gary Benson <gbenson@redhat.com>
10781
10782 * hostio.c (fileio_open_flags_to_host): Factored out to
10783 fileio_to_host_openflags in common/fileio.c. Single use
10784 updated.
10785
a2d5a9d7
MF
107862015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10787
10788 * linux-xtensa-low.c (xtensa_fill_gregset)
10789 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10790 XCHAL_HAVE_LOOP.
10791
deb44829
MF
107922015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10793
10794 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10795 (regs_info): Replace usrregs pointer with NULL.
10796
e57f1de3
GB
107972015-04-17 Gary Benson <gbenson@redhat.com>
10798
10799 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10800 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10801 * server.c (handle_qxfer_exec_file): New function.
10802 (qxfer_packets): Add exec-file entry.
10803 (handle_query): Report qXfer:exec-file:read as supported packet.
10804
62828379
RN
108052015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10806
10807 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10808
b88bb450
GB
108092015-04-09 Gary Benson <gbenson@redhat.com>
10810
10811 * hostio-errno.c (errno_to_fileio_error): Remove function.
10812 Update caller to use remote_fileio_to_fio_error.
10813
c8f4bfdd
YQ
108142015-04-09 Yao Qi <yao.qi@linaro.org>
10815
10816 * linux-low.c (linux_insert_point): Call
10817 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10818 (linux_remove_point): Call remove_memory_breakpoint if type is
10819 raw_bkpt_type_sw.
10820 * linux-x86-low.c (x86_insert_point): Don't call
10821 insert_memory_breakpoint.
10822 (x86_remove_point): Don't call remove_memory_breakpoint.
10823
41f98f02
PA
108242015-04-01 Pedro Alves <palves@redhat.com>
10825 Cleber Rosa <crosa@redhat.com>
10826
10827 * server.c (gdbserver_usage): Reorganize and extend the usage
10828 message.
10829
2bf6fb9d
PA
108302015-03-24 Pedro Alves <palves@redhat.com>
10831
10832 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10833 output. Also dump TRAP_TRACE.
10834 (linux_low_filter_event): In debug output, distinguish a
10835 resume_stop SIGSTOP from a delayed SIGSTOP.
10836
369f6daa
GB
108372015-03-24 Gary Benson <gbenson@redhat.com>
10838
10839 * linux-x86-low.c (x86_linux_new_thread): Moved to
10840 nat/x86-linux.c.
10841 (x86_linux_prepare_to_resume): Likewise.
10842
8e5d4070
GB
108432015-03-24 Gary Benson <gbenson@redhat.com>
10844
10845 * Makefile.in (x86-linux-dregs.o): New rule.
10846 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10847 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10848 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10849 (x86_linux_dr_get): Likewise.
10850 (x86_linux_dr_set): Likewise.
10851 (update_debug_registers_callback): Likewise.
10852 (x86_linux_dr_set_addr): Likewise.
10853 (x86_linux_dr_get_addr): Likewise.
10854 (x86_linux_dr_set_control): Likewise.
10855 (x86_linux_dr_get_control): Likewise.
10856 (x86_linux_dr_get_status): Likewise.
10857 (x86_linux_update_debug_registers): Likewise.
10858
2b95d440
GB
108592015-03-24 Gary Benson <gbenson@redhat.com>
10860
10861 * linux-x86-low.c (x86_linux_update_debug_registers):
10862 New function, factored out from...
10863 (x86_linux_prepare_to_resume): ...this.
10864
14b0bc68
GB
108652015-03-24 Gary Benson <gbenson@redhat.com>
10866
10867 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10868 (x86_linux_dr_set): Likewise.
10869 (update_debug_registers_callback): Likewise.
10870 (x86_linux_dr_set_addr): Likewise.
10871 (x86_linux_dr_get_addr): Likewise.
10872 (x86_linux_dr_set_control): Likewise.
10873 (x86_linux_dr_get_control): Likewise.
10874 (x86_linux_dr_get_status): Likewise.
10875 (x86_linux_prepare_to_resume): Likewise.
10876
5dfe6ca8
GB
108772015-03-24 Gary Benson <gbenson@redhat.com>
10878
10879 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10880 Use perror_with_name. Pass string through gettext.
10881 (x86_linux_dr_set): Likewise.
10882
d33472ad
GB
108832015-03-24 Gary Benson <gbenson@redhat.com>
10884
10885 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10886 (x86_linux_dr_set_addr): ...this.
10887 (x86_dr_low_get_addr): Rename to...
10888 (x86_linux_dr_get_addr): ...this.
10889 (x86_dr_low_set_control): Rename to...
10890 (x86_linux_dr_set_control): ...this.
10891 (x86_dr_low_get_control): Rename to...
10892 (x86_linux_dr_get_control): ...this.
10893 (x86_dr_low_get_status): Rename to...
10894 (x86_linux_dr_get_status): ...this.
10895 (x86_dr_low): Update with new function names.
10896
4b134ca1
GB
108972015-03-24 Gary Benson <gbenson@redhat.com>
10898
10899 * Makefile.in (x86-linux.o): New rule.
10900 * configure.srv: Add x86-linux.o to relevant targets.
10901 * linux-low.c (lwp_set_arch_private_info): New function.
10902 (lwp_arch_private_info): Likewise.
10903 * linux-x86-low.c: Include nat/x86-linux.h.
10904 (arch_lwp_info): Removed structure.
10905 (update_debug_registers_callback):
10906 Use lwp_set_debug_registers_changed.
10907 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10908 and lwp_set_debug_registers_changed.
10909 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10910
34c703da
GB
109112015-03-24 Gary Benson <gbenson@redhat.com>
10912
10913 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10914 * linux-arm-low.c (arm_new_thread): Likewise.
10915 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10916 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10917 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10918 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10919
cff068da
GB
109202015-03-24 Gary Benson <gbenson@redhat.com>
10921
10922 * linux-low.c (ptid_of_lwp): New function.
10923 (lwp_is_stopped): Likewise.
10924 (lwp_stop_reason): Likewise.
10925 * linux-x86-low.c (update_debug_registers_callback):
10926 Use lwp_is_stopped.
10927 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10928 lwp_stop_reason.
10929
b2f7c7e8
GB
109302015-03-24 Gary Benson <gbenson@redhat.com>
10931
10932 * linux-low.h (linux_stop_lwp): Remove declaration.
10933
6d4ee8c6
GB
109342015-03-24 Gary Benson <gbenson@redhat.com>
10935
10936 * linux-low.h: Include nat/linux-nat.h.
10937 * linux-low.c (iterate_over_lwps_args): New structure.
10938 (iterate_over_lwps_filter): New function.
10939 (iterate_over_lwps): Likewise.
10940 * linux-x86-low.c (update_debug_registers_callback):
10941 Update signature to what iterate_over_lwps expects.
10942 Remove PID check that iterate_over_lwps now performs.
10943 (x86_dr_low_set_addr): Use iterate_over_lwps.
10944 (x86_dr_low_set_control): Likewise.
10945
70a0bb6b
GB
109462015-03-24 Gary Benson <gbenson@redhat.com>
10947
10948 * linux-x86-low.c (x86_debug_reg_state): New function.
10949 (x86_linux_prepare_to_resume): Use the above.
10950
7b669087
GB
109512015-03-24 Gary Benson <gbenson@redhat.com>
10952
10953 * linux-low.c (current_lwp_ptid): New function.
10954 * linux-x86-low.c: Include nat/linux-nat.h.
10955 (x86_dr_low_get_addr): Use current_lwp_ptid.
10956 (x86_dr_low_get_control): Likewise.
10957 (x86_dr_low_get_status): Likewise.
10958
eef49a3d
PA
109592015-03-20 Pedro Alves <palves@redhat.com>
10960
10961 * tracepoint.c (cmd_qtstatus): Make "str" const.
10962
b2333d22
PA
109632015-03-20 Pedro Alves <palves@redhat.com>
10964
10965 * server.c (handle_general_set): Make "req_str" const.
10966
23f238d3
PA
109672015-03-19 Pedro Alves <palves@redhat.com>
10968
10969 * linux-low.c (linux_resume_one_lwp): Rename to ...
10970 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10971 instead call perror_with_name.
10972 (check_ptrace_stopped_lwp_gone): New function.
10973 (linux_resume_one_lwp): Reimplement as wrapper around
10974 linux_resume_one_lwp_throw that swallows errors if the LWP is
10975 gone.
10976
91baf43f
PA
109772015-03-19 Pedro Alves <palves@redhat.com>
10978
10979 * linux-low.c (count_events_callback, select_event_lwp_callback):
10980 No longer check whether the thread has resume_stop as last resume
10981 kind.
10982
8bf3b159
PA
109832015-03-19 Pedro Alves <palves@redhat.com>
10984
10985 * linux-low.c (count_events_callback, select_event_lwp_callback):
10986 Use the lwp's status_pending_p field, not the thread's.
10987
b90fc188
PA
109882015-03-19 Pedro Alves <palves@redhat.com>
10989
10990 * linux-low.c (select_event_lwp_callback): Update comments to
10991 no longer mention SIGTRAP.
10992
464b0089
GB
109932015-03-18 Gary Benson <gbenson@redhat.com>
10994
10995 * server.c (handle_query): Do not report vFile:fstat as supported.
10996
aa9e327f
GB
109972015-03-11 Gary Benson <gbenson@redhat.com>
10998
10999 * hostio.c (sys/types.h): New include.
11000 (sys/stat.h): Likewise.
11001 (common-remote-fileio.h): Likewise.
11002 (handle_fstat): New function.
11003 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11004
791c0056
GB
110052015-03-11 Gary Benson <gbenson@redhat.com>
11006
11007 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11008 struct stat.st_blocks and struct stat.st_blksize.
11009 * configure: Regenerate.
11010 * config.in: Likewise.
11011 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11012 (OBS): Add common-remote-fileio.o.
11013 (common-remote-fileio.o): New rule.
11014
9a9df970
PA
110152015-03-09 Pedro Alves <palves@redhat.com>
11016
11017 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11018 'struct sockaddr' pointer in 'accept' call.
11019
9eb1356e
PA
110202015-03-09 Pedro Alves <palves@redhat.com>
11021
11022 Revert:
11023 2015-03-07 Pedro Alves <palves@redhat.com>
11024 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11025 or <winsock2.h> here. Instead include "gdb_socket.h".
11026 (remote_open): Use union gdb_sockaddr_u.
11027 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11028 or <winsock2.h> here. Instead include "gdb_socket.h".
11029 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11030 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11031 or <sys/un.h>.
11032 (init_named_socket, gdb_agent_helper_thread): Use union
11033 gdb_sockaddr_u.
11034
aac331e4
PA
110352015-03-07 Pedro Alves <palves@redhat.com>
11036
11037 * configure.ac (build_warnings): Move
11038 -Wdeclaration-after-statement to the C-specific set.
11039 * configure: Regenerate.
11040
366c75fc
PA
110412015-03-07 Pedro Alves <palves@redhat.com>
11042
11043 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11044 or <winsock2.h> here. Instead include "gdb_socket.h".
11045 (remote_open): Use union gdb_sockaddr_u.
11046 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11047 or <winsock2.h> here. Instead include "gdb_socket.h".
11048 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11049 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11050 or <sys/un.h>.
11051 (init_named_socket, gdb_agent_helper_thread): Use union
11052 gdb_sockaddr_u.
11053
492d29ea
PA
110542015-03-07 Pedro Alves <palves@redhat.com>
11055
11056 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11057 instead.
11058
60a191ed
YQ
110592015-03-06 Yao Qi <yao.qi@linaro.org>
11060
11061 * linux-aarch64-low.c (aarch64_insert_point): Use
11062 show_debug_regs as a boolean.
11063 (aarch64_remove_point): Likewise.
11064
f5771b1d
PA
110652015-03-05 Pedro Alves <palves@redhat.com>
11066
11067 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11068 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11069 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11070 * nto-low.c (nto_target_ops): Likewise.
11071 * spu-low.c (spu_target_ops): Likewise.
11072 * win32-low.c (win32_target_ops): Likewise.
11073
3e572f71
PA
110742015-03-04 Pedro Alves <palves@redhat.com>
11075
72f4393d 11076 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11077 Decide whether a breakpoint triggered based on the SIGTRAP's
11078 siginfo.si_code.
72f4393d
L
11079 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11080 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11081 (linux_low_filter_event): Check for breakpoints before checking
11082 watchpoints.
11083 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11084 siginfo.si_code.
72f4393d
L
11085 (linux_stopped_by_sw_breakpoint)
11086 (linux_supports_stopped_by_sw_breakpoint)
11087 (linux_stopped_by_hw_breakpoint)
11088 (linux_supports_stopped_by_hw_breakpoint): New functions.
11089 (linux_target_ops): Install new target methods.
3e572f71 11090
1ec68e26
PA
110912015-03-04 Pedro Alves <palves@redhat.com>
11092
11093 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11094 * server.c (swbreak_feature, hwbreak_feature): New globals.
11095 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11096 (captured_main): Clear swbreak_feature and hwbreak_feature.
11097 * server.h (swbreak_feature, hwbreak_feature): Declare.
11098 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11099 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11100 supports_stopped_by_hw_breakpoint>: New fields.
11101 (target_supports_stopped_by_sw_breakpoint)
11102 (target_stopped_by_sw_breakpoint)
11103 (target_supports_stopped_by_hw_breakpoint)
11104 (target_stopped_by_hw_breakpoint): Declare.
11105
15c66dd6
PA
111062015-03-04 Pedro Alves <palves@redhat.com>
11107
11108 enum lwp_stop_reason -> enum target_stop_reason
11109 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11110 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11111 (linux_wait_1, stuck_in_jump_pad_callback)
11112 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11113 (linux_stopped_by_watchpoint):
11114 * linux-low.h (enum lwp_stop_reason): Delete.
11115 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11116 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11117
98fc70d6
YQ
111182015-03-04 Yao Qi <yao.qi@linaro.org>
11119
11120 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11121
dd2ac174
GB
111222015-03-03 Gary Benson <gbenson@redhat.com>
11123
11124 * hostio.c (handle_vFile): Fix prefix lengths.
11125
d68e53f4
MM
111262015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11127
11128 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11129 ptr_bits.
11130
bf2d68ab
AA
111312015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11132
11133 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11134 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11135 (clean): Add "rm -f" for above C files.
11136 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11137 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11138 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11139 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11140 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11141 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11142 (init_registers_s390x_vx_linux64)
11143 (init_registers_s390x_tevx_linux64)
11144 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11145 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11146 declarations.
11147 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11148 (s390_store_vxrs_high): New functions.
11149 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11150 NT_S390_VXRS_HIGH.
11151 (s390_arch_setup): Add logic for selecting one of the new target
11152 descriptions. Activate the new vector regsets if applicable.
11153 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11154 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11155 and init_registers_s390x_tevx_linux64.
11156
c966a859
PA
111572015-03-01 Pedro Alves <palves@redhat.com>
11158
11159 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11160 parameter.
11161
4180215b
PA
111622015-02-27 Pedro Alves <palves@redhat.com>
11163
11164 * linux-x86-low.c (u_debugreg_offset): New function.
11165 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11166
749bab01
PA
111672015-02-27 Pedro Alves <palves@redhat.com>
11168
11169 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11170 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11171 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11172 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11173 (ps_lsetfpregs, ps_getpid)
11174 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11175 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11176 (ps_lsetxregs, ps_plog): Declare.
11177
3c14e5a3
PA
111782015-02-27 Pedro Alves <palves@redhat.com>
11179
11180 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11181 IP_AGENT_EXPORT_FUNC.
11182 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11183 IP_AGENT_EXPORT_FUNC.
11184 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11185 (IP_AGENT_EXPORT): Delete.
11186 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11187 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11188 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11189 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11190 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11191 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11192 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11193 (traceframe_read_count, traceframe_write_count)
11194 (traceframes_created, trace_state_variables, get_raw_reg)
11195 (get_trace_state_variable_value, set_trace_state_variable_value)
11196 (ust_loaded, helper_thread_id, cmd_buf): Use
11197 IPA_SYM_EXPORTED_NAME.
11198 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11199 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11200 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11201 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11202 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11203 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11204 EXTERN_C_PUSH/EXTERN_C_POP.
11205 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11206 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11207 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11208 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11209 (traceframe_write_count, traceframe_read_count)
11210 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11211 (about_to_request_buffer_space, get_trace_state_variable_value)
11212 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11213 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11214 EXTERN_C_PUSH/EXTERN_C_POP.
11215 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11216 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11217 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11218 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11219 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11220 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11221 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11222 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11223 Define.
11224 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11225 (IP_AGENT_EXPORT_VAR_DECL): Define.
11226 (tracing): Declare.
11227 (gdb_agent_get_raw_reg): Declare.
11228
fe978cb0
PA
112292015-02-27 Tom Tromey <tromey@redhat.com>
11230 Pedro Alves <palves@redhat.com>
11231
11232 Rename symbols whose names are reserved C++ keywords throughout.
11233
3bc3d82a
PA
112342015-02-27 Pedro Alves <palves@redhat.com>
11235
11236 * Makefile.in (COMPILER): New, get it from autoconf.
11237 (CXX): Get from autoconf instead.
11238 (COMPILE.pre): Use COMPILER.
11239 (CC-LD): Rename to ...
11240 (CC_LD): ... this. Use COMPILER.
11241 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11242 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11243 * acinclude.m4: Include build-with-cxx.m4.
11244 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11245 Disable -Werror by default if building in C++ mode.
11246 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11247 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11248 the C++ compiler. Save/restore CXXFLAGS too.
11249 * configure: Regenerate.
11250
07697489
PA
112512015-02-27 Pedro Alves <palves@redhat.com>
11252
11253 * acinclude.m4: Include libiberty.m4.
11254 * configure.ac: Call libiberty_INIT.
11255 * config.in, configure: Regenerate.
11256
9beb7c4e
PA
112572015-02-26 Pedro Alves <palves@redhat.com>
11258
11259 * linux-low.c (linux_wait_1): When incrementing the PC past a
11260 program breakpoint always use the_low_target.breakpoint_len as
11261 increment, rather than the maximum between that and
11262 the_low_target.decr_pc_after_break.
11263
8090aef2
PA
112642015-02-23 Pedro Alves <palves@redhat.com>
11265
11266 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11267 thread was doing a step-over; always adjust the PC if
11268 we stepped over a permanent breakpoint.
11269 (linux_wait_1): If we stepped over breakpoint that was on top of a
11270 permanent breakpoint, manually advance the PC past it.
11271
bc9540e8
PA
112722015-02-23 Pedro Alves <palves@redhat.com>
11273
11274 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11275 modes.
11276 (x86_fill_gregset, x86_store_gregset): Use it when handling
11277 $orig_eax.
11278
2db9a427
PA
112792015-02-20 Pedro Alves <palves@redhat.com>
11280
11281 * thread-db.c: Include "nat/linux-procfs.h".
11282 (thread_db_init): Skip listing new threads if the kernel supports
11283 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11284
afa8d396
PA
112852015-02-20 Pedro Alves <palves@redhat.com>
11286
11287 * linux-low.c (status_pending_p_callback): Use ptid_match.
11288
c9587f88
AT
112892015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11290
11291 PR breakpoints/16812
11292 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11293 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11294 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11295
b05ec7a5
AT
112962015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11297
11298 PR breakpoints/15956
11299 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11300
d33501a5
MM
113012015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11302
11303 * linux-low.c (linux_low_btrace_conf): Print size.
11304 * server.c (handle_btrace_conf_general_set): New.
11305 (hanle_general_set): Call handle_btrace_conf_general_set.
11306 (handle_query): Report Qbtrace-conf:bts:size as supported.
11307
f4abbc16
MM
113082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11309
11310 * linux-low.c (linux_low_enable_btrace): Update parameters.
11311 (linux_low_btrace_conf): New.
11312 (linux_target_ops)<to_btrace_conf>: Initialize.
11313 * server.c (current_btrace_conf): New.
11314 (handle_btrace_enable): Rename to ...
11315 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11316 to target_enable_btrace. Update comment. Update users.
11317 (handle_qxfer_btrace_conf): New.
11318 (qxfer_packets): Add btrace-conf entry.
11319 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11320 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11321 (target_ops)<read_btrace_conf>: New.
11322 (target_enable_btrace): Update parameters.
11323 (target_read_btrace_conf): New.
11324
043c3577
MM
113252015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11326
11327 * server.c (handle_btrace_general_set): Remove call to
11328 target_supports_btrace.
11329 (supported_btrace_packets): New.
11330 (handle_query): Call supported_btrace_packets.
11331 * target.h: include btrace-common.h.
11332 (btrace_target_info): Removed.
11333 (supports_btrace, target_supports_btrace): Update parameters.
11334
734b0e4b
MM
113352015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11336
11337 * Makefile.in (SFILES): Add common/btrace-common.c.
11338 (OBS): Add common/btrace-common.o.
11339 (btrace-common.o): Add build rules.
11340 * linux-low: Include btrace-common.h.
11341 (linux_low_read_btrace): Use struct btrace_data. Call
11342 btrace_data_init and btrace_data_fini.
11343
d6c146e9
PA
113442015-02-06 Pedro Alves <palves@redhat.com>
11345
11346 * thread-db.c (find_new_threads_callback): Add debug output.
11347
20ba1ce6
PA
113482015-02-04 Pedro Alves <palves@redhat.com>
11349
11350 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11351 (resume_stopped_resumed_lwps): New function.
11352 (linux_wait_for_event_filtered): Use it.
11353
8cc73a39
SDJ
113542015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11355
11356 * Makefile.in (SFILES): Add linux-personality.c.
11357 (linux-personality.o): New rule.
11358 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11359 list of objects to be built.
11360 * linux-low.c: Include nat/linux-personality.h.
11361 (linux_create_inferior): Remove code to disable address space
11362 randomization (moved to ../nat/linux-personality.c). Create
11363 cleanup to disable address space randomization.
11364
fb23d554
SDJ
113652015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11366
11367 * Makefile.in (posix-strerror.o): New rule.
11368 (mingw-strerror.o): Likewise.
11369 * configure: Regenerated.
11370 * configure.ac: Source file ../common/common.host. Initialize new
11371 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11372
cdf43629
YQ
113732015-01-14 Yao Qi <yao@codesourcery.com>
11374
11375 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11376 (ppc-linux.o): New rule.
11377 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11378 * configure.ac: AC_CHECK_FUNCS(getauxval).
11379 * config.in: Re-generated.
11380 * configure: Re-generated.
11381 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11382 ppc64_64bit_inferior_p
11383
514c5338
YQ
113842015-01-14 Yao Qi <yao@codesourcery.com>
11385
11386 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11387 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11388 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11389 (PT_ORIG_R3, PT_TRAP): Likewise.
11390 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11391 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11392 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11393
3368c1e5
JB
113942015-01-10 Joel Brobecker <brobecker@adacore.com>
11395
11396 * i387-fp.c (i387_cache_to_xsave): In look over
11397 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11398 zmmh_low_space field by use of zmmh_high_space.
11399
582511be
PA
114002015-01-09 Pedro Alves <palves@redhat.com>
11401
11402 * linux-low.c (step_over_bkpt): Move higher up in the file.
11403 (handle_extended_wait): Don't store the stop_pc here.
11404 (get_stop_pc): Adjust comments and rename to ...
11405 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11406 stopped for a software breakpoint or hardware breakpoint.
11407 (thread_still_has_status_pending_p): New function.
11408 (status_pending_p_callback): Use
11409 thread_still_has_status_pending_p. If the event is no longer
11410 interesting, resume the LWP.
11411 (handle_tracepoints): Add assert.
11412 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11413 (wstatus_maybe_breakpoint): New function.
11414 (cancel_breakpoint): Delete function.
11415 (check_stopped_by_watchpoint): New function, factored out from
11416 linux_low_filter_event.
11417 (lp_status_maybe_breakpoint): Delete function.
11418 (linux_low_filter_event): Remove filter_ptid argument.
11419 Leave thread group exits pending here. Store the LWP's stop PC.
11420 Always leave events pending.
11421 (linux_wait_for_event_filtered): Pull all events out of the
11422 kernel, and leave them all pending.
11423 (count_events_callback, select_event_lwp_callback): Consider all
11424 events.
11425 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11426 (select_event_lwp): Only give preference to the stepping LWP in
11427 all-stop mode. Adjust comments.
11428 (ignore_event): New function.
11429 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11430 references to cancel_breakpoints. Adjust to renames. Also give
11431 equal priority to all LWPs that have had events in non-stop mode.
11432 If reporting a software breakpoint event, unadjust the LWP's PC.
11433 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11434 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11435 Adjust.
11436 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11437 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11438 (linux_stopped_by_watchpoint): Adjust.
11439 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11440 * linux-low.h (enum lwp_stop_reason): New.
11441 (struct lwp_info) <stop_pc>: Adjust comment.
11442 <stopped_by_watchpoint>: Delete field.
11443 <stop_reason>: New field.
11444 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11445 * mem-break.c (software_breakpoint_inserted_here)
11446 (hardware_breakpoint_inserted_here): New function.
11447 * mem-break.h (software_breakpoint_inserted_here)
11448 (hardware_breakpoint_inserted_here): Declare.
11449 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11450 (cancel_breakpoints): Delete.
11451 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11452 (upload_fast_traceframes): Remove references to
11453 cancel_breakpoints.
11454
a33e3959
PA
114552015-01-09 Pedro Alves <palves@redhat.com>
11456
11457 * thread-db.c (find_new_threads_callback): Ignore thread if the
11458 kernel thread ID is -1.
11459
8784d563
PA
114602015-01-09 Pedro Alves <palves@redhat.com>
11461
11462 * linux-low.c (linux_attach_fail_reason_string): Move to
11463 nat/linux-ptrace.c, and rename.
11464 (linux_attach_lwp): Update comment.
11465 (attach_proc_task_lwp_callback): New function.
11466 (linux_attach): Adjust to rename and use
11467 linux_proc_attach_tgid_threads.
11468 (linux_attach_fail_reason_string): Delete declaration.
11469
76f2b779
JB
114702015-01-01 Joel Brobecker <brobecker@adacore.com>
11471
11472 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11473 * server.c (gdbserver_version): Likewise.
11474
fafcc06a
SDJ
114752014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11476
11477 * remote-utils.c: Include ctype.h.
11478 (input_interrupt): Explicitly handle the case when the char
11479 received is the NUL byte. Improve the printing of non-ASCII
11480 characters.
11481
beed38b8
JB
114822014-12-16 Joel Brobecker <brobecker@adacore.com>
11483
11484 * linux-low.c (linux_low_filter_event): Update call to
11485 linux_enable_event_reporting following the addition of
11486 a new parameter to that function.
11487
bf330350
CU
114882014-12-16 Catalin Udma <catalin.udma@freescale.com>
11489
11490 PR server/17457
11491 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11492 (AARCH64_FPCR_REGNO): Likewise.
11493 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11494 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11495 (aarch64_store_fpregset): Likewise.
11496
5227d625
JB
114972014-12-15 Joel Brobecker <brobecker@adacore.com>
11498
11499 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11500 Remove FIXME comment about assumption about N.
11501
f93b65a0
JB
115022014-12-13 Joel Brobecker <brobecker@adacore.com>
11503
11504 * configure.ac: If large-file support is disabled in GDBserver,
11505 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11506 * configure: Regenerate.
11507
e5a9158d
AA
115082014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11509
11510 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11511 warning upon ENODATA from ptrace.
11512 * linux-s390-low.c (s390_store_tdb): New.
11513 (s390_regsets): Add regset for NT_S390_TDB.
11514
feea5f36
AA
115152014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11516
11517 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11518 without a fill_function.
11519 * linux-s390-low.c (s390_fill_last_break): Remove.
11520 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11521 (s390_arch_setup): Use regset's size instead of fill_function for
11522 loop end condition.
11523
098dbe61
AA
115242014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11525
11526 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11527 the regset's store function when ptrace returned an error.
11528 * regcache.c (get_thread_regcache): Invalidate register cache
11529 before fetching inferior's registers.
11530
28eef672
AA
115312014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11532
11533 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11534 while-loop as for-loop.
11535 (regsets_store_inferior_registers): Likewise.
11536
bdca27a2
YQ
115372014-11-28 Yao Qi <yao@codesourcery.com>
11538
11539 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11540 * config.in, configure: Re-generate.
11541 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11542 is defined.
11543
9c232dda
YQ
115442014-11-21 Yao Qi <yao@codesourcery.com>
11545
11546 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11547 (AC_CHECK_HEADERS): Remove malloc.h.
11548 * configure: Re-generated.
11549 * config.in: Re-generated.
11550 * server.h: Don't include alloca.h and malloc.h.
11551 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11552 Don't include malloc.h.
11553
43968415
JB
115542014-11-17 Joel Brobecker <brobecker@adacore.com>
11555
11556 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11557 corresponding ERRNO check in same block.
11558
40e91bc7
PA
115592014-11-12 Pedro Alves <palves@redhat.com>
11560
11561 * server.c (cont_thread): Update comment.
11562 (start_inferior, attach_inferior): No longer clear cont_thread.
11563 (handle_v_cont): No longer set cont_thread.
11564 (captured_main): Clear cont_thread each time a GDB connects.
11565
c2c118cf
PA
115662014-11-12 Pedro Alves <palves@redhat.com>
11567
11568 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11569 thread, and don't resume all threads if the Hc thread has exited.
11570
78708b7c
PA
115712014-11-12 Pedro Alves <palves@redhat.com>
11572
11573 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11574 the process group instead of to a specific LWP.
11575
a2abc7de
PA
115762014-10-15 Pedro Alves <palves@redhat.com>
11577
11578 PR server/17487
11579 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11580 parameter.
11581 (arm_set_thread_context): Delete.
11582 (the_low_target): Adjust.
11583 * win32-i386-low.c (debug_registers_changed)
11584 (debug_registers_used): Delete.
11585 (update_debug_registers_callback): New function.
11586 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11587 needing to update their debug registers.
11588 (win32_get_current_dr): New function.
11589 (x86_dr_low_get_addr, x86_dr_low_get_control)
11590 (x86_dr_low_get_status): Fetch the debug register from the thread
11591 record's context.
11592 (i386_initial_stuff): Adjust.
11593 (i386_get_thread_context): Remove current_event parameter. Don't
11594 clear debug_registers_changed nor copy DR values to
11595 debug_reg_state.
11596 (i386_set_thread_context): Delete.
11597 (i386_prepare_to_resume): New function.
11598 (i386_thread_added): Mark the thread as needing to update irs
11599 debug registers.
11600 (the_low_target): Remove i386_set_thread_context and install
11601 i386_prepare_to_resume.
11602 * win32-low.c (win32_get_thread_context): Adjust.
11603 (win32_set_thread_context): Use SetThreadContext
11604 directly.
11605 (win32_prepare_to_resume): New function.
11606 (win32_require_context): New function, factored out from ...
11607 (thread_rec): ... this.
11608 (continue_one_thread): Call win32_prepare_to_resume on each thread
11609 we're about to continue.
11610 (win32_resume): Call win32_prepare_to_resume on the event thread.
11611 * win32-low.h (struct win32_thread_info)
11612 <debug_registers_changed>: New field.
11613 (struct win32_target_ops): Change prototype of set_thread_context,
11614 delete set_thread_context and add prepare_to_resume.
11615 (win32_require_context): New declaration.
11616
a442d071
GB
116172014-10-08 Gary Benson <gbenson@redhat.com>
11618
11619 * server.h: Do not include common-exceptions.h.
11620
6f1947e8
GB
116212014-10-08 Gary Benson <gbenson@redhat.com>
11622
11623 * server.h: Do not include cleanups.h.
11624
63b434a4
JH
116252014-09-30 James Hogan <james.hogan@imgtec.com>
11626
11627 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11628 mips64-dsp-linux.c.
11629
c4d9ceb6
YQ
116302014-09-23 Yao Qi <yao@codesourcery.com>
11631
11632 * linux-low.c (lp_status_maybe_breakpoint): New function.
11633 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11634 (count_events_callback): Likewise.
11635 (select_event_lwp_callback): Likewise.
11636 (cancel_breakpoints_callback): Likewise.
11637
89a5711c
DB
116382014-09-19 Don Breazeal <donb@codesourcery.com>
11639
11640 * linux-low.c (handle_extended_wait): Call
11641 linux_ptrace_get_extended_event.
11642 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11643 linux_is_extended_waitstatus.
11644
bffc0964
JB
116452014-09-16 Joel Brobecker <brobecker@adacore.com>
11646
11647 * Makefile.in (CPPFLAGS): Define.
11648 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11649 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11650
0bfdf32f
GB
116512014-09-16 Gary Benson <gbenson@redhat.com>
11652
11653 * inferiors.h (current_inferior): Renamed as...
11654 (current_thread): New variable. All uses updated.
11655 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11656 (maybe_move_out_of_jump_pad): Likewise.
11657 (cancel_breakpoint): Likewise.
11658 (linux_low_filter_event): Likewise.
11659 (wait_for_sigstop): Likewise.
11660 (linux_resume_one_lwp): Likewise.
11661 (need_step_over_p): Likewise.
11662 (start_step_over): Likewise.
11663 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11664 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11665 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11666 and save_inferior as saved_thread.
11667 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11668 saved_thread.
11669 (regcache_invalidate_thread): Likewise.
11670 * remote-utils.c (prepare_resume_reply): Likewise.
11671 * thread-db.c (thread_db_get_tls_address): Likewise.
11672 (disable_thread_event_reporting): Likewise.
11673 (remove_thread_event_breakpoints): Likewise.
11674 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11675 as saved_thread.
11676 * target.h (set_desired_inferior): Renamed as...
11677 (set_desired_thread): New declaration. All uses updated.
11678 * server.c (myresume): Updated comment to reference thread instead
11679 of inferior.
11680 (handle_serial_event): Likewise.
11681 (handle_target_event): Likewise.
11682
361c8ade
GB
116832014-09-12 Tom Tromey <tromey@redhat.com>
11684 Gary Benson <gbenson@redhat.com>
11685
11686 * regcache.h: Include common-regcache.h.
11687 (regcache_read_pc): Don't declare.
11688 * regcache.c (get_thread_regcache_for_ptid): New function.
11689
bd9269f7
GB
116902014-09-11 Tom Tromey <tromey@redhat.com>
11691 Gary Benson <gbenson@redhat.com>
11692
11693 * symbol.c: New file.
11694 * Makefile.in (SFILES): Add symbol.c.
11695 (OBS): Add symbol.o.
11696
f8c1d06b
GB
116972014-09-11 Gary Benson <gbenson@redhat.com>
11698
11699 * target.c (target_stop_ptid, target_continue_ptid): New
11700 functions.
11701
721ec300
GB
117022014-09-11 Tom Tromey <tromey@redhat.com>
11703 Gary Benson <gbenson@redhat.com>
11704
11705 * target.h: Include target/target.h.
11706 * target.c (target_read_memory, target_read_uint32)
11707 (target_write_memory): New functions.
11708
c5e92cca
GB
117092014-09-11 Gary Benson <gbenson@redhat.com>
11710
11711 * server.h (debug_hw_points): Don't declare.
11712 * server.c (debug_hw_points): Don't define. Replace all uses
11713 with show_debug_regs.
11714 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11715 all uses with show_debug_regs.
11716
2e4bb98a
EBM
117172014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11718
11719 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11720 endianness into account.
11721 (ppc_supply_ptrace_register): Likewise.
11722
ac740bc7
JH
117232014-09-03 James Hogan <james.hogan@imgtec.com>
11724
11725 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11726 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11727
97ea6506
GB
117282014-09-03 Gary Benson <gbenson@redhat.com>
11729
11730 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11731 ALL_DEBUG_ADDRESS_REGISTERS.
11732
df7e5265
GB
117332014-09-02 Gary Benson <gbenson@redhat.com>
11734
11735 * i386-low.h: Renamed as...
11736 * x86-low.h: New file. All type, function and variable name
11737 prefixes changed from "i386_" to "x86_". All references updated.
11738 * i386-low.c: Renamed as...
11739 * x86-low.c: New file. All type, function and variable name
11740 prefixes changed from "i386_" to "x86_". All references updated.
11741
ed859da7
GB
117422014-09-02 Gary Benson <gbenson@redhat.com>
11743
11744 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11745 (x86_linux_new_thread): Likewise.
11746
860789c7
GB
117472014-08-29 Gary Benson <gbenson@redhat.com>
11748
11749 * server.h (setjmp.h): Do not include.
11750 (toplevel): Do not declare.
11751 (common-exceptions.h): Include.
11752 (cleanups.h): Likewise.
11753 * server.c (toplevel): Do not define.
11754 (exit_code): New static global.
11755 (detach_or_kill_for_exit_cleanup): New function.
11756 (main): New function. Original main renamed to...
11757 (captured_main): New function.
11758 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11759
ff55e1b5
GB
117602014-08-29 Gary Benson <gbenson@redhat.com>
11761
11762 * Makefile.in (SFILES): Add common/common-exceptions.c.
11763 (OBS): Add common-exceptions.o.
11764 (common-exceptions.o): New rule.
11765 * utils.c (prepare_to_throw_exception): New function.
11766
e9bcb658
GB
117672014-08-29 Gary Benson <gbenson@redhat.com>
11768
11769 * config.in: Regenerate.
11770 * configure: Likewise.
11771
e3180625
GB
117722014-08-29 Gary Benson <gbenson@redhat.com>
11773
11774 * Makefile.in (SFILES): Add common/cleanups.c.
11775 (OBS): cleanups.o.
11776 (cleanups.o): New rule.
11777
e3d6ba5d
GB
117782014-08-29 Gary Benson <gbenson@redhat.com>
11779
11780 * utils.c (internal_vwarning): New function.
11781
7096e886
GB
117822014-08-28 Gary Benson <gbenson@redhat.com>
11783
11784 * utils.h (fatal): Remove declaration.
11785 * utils.c (fatal): Remove function.
11786
14ce3192
GB
117872014-08-28 Gary Benson <gbenson@redhat.com>
11788
11789 * tracepoint.c (gdb_agent_init): Replace fatal with
11790 perror_with_name.
11791 (initialize_tracepoint): Likewise.
11792
50278d59
GB
117932014-08-28 Gary Benson <gbenson@redhat.com>
11794
11795 * remote-utils.c (remote_prepare): Replace fatal with error.
11796
aa96c426
GB
117972014-08-28 Gary Benson <gbenson@redhat.com>
11798
11799 * linux-low.c (linux_async): Replace fatal with warning.
11800 Tidy up and return.
11801 (linux_start_non_stop): Return -1 if linux_async failed.
11802
f7160e97
GB
118032014-08-28 Gary Benson <gbenson@redhat.com>
11804
11805 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11806 gdb_assert.
11807 (i386_dr_low_get_addr): Remove vague comment.
11808 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11809 gdb_assert.
11810
38e08fca
GB
118112014-08-28 Gary Benson <gbenson@redhat.com>
11812
11813 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11814 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11815 internal_error.
11816 (linux_resume_one_lwp): Likewise.
11817 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11818 gdb_assert.
11819 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11820 with internal_error.
11821 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11822 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11823 (find_register_by_name): Replace fatal with internal_error.
11824 (find_regno): Likewise.
11825 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11826 * thread-db.c (thread_db_create_event): Likewise.
11827 (thread_db_load_search): Likewise.
11828 (try_thread_db_load_1): Likewise.
11829 * tracepoint.c (get_jump_space_head): Replace fatal with
11830 internal_error.
11831 (claim_trampoline_space): Likewise.
11832 (have_fast_tracepoint_trampoline_buffer): Likewise.
11833 (cmd_qtstart): Likewise.
11834 (stop_tracing): Likewise.
11835 (fast_tracepoint_collecting): Likewise.
11836 (target_malloc): Likewise.
11837 (download_tracepoint): Likewise.
11838 (download_trace_state_variables): Replace check with gdb_assert.
11839 (upload_fast_traceframes): Replace fatal with internal_error.
11840
34abf635
GB
118412014-08-19 Tom Tromey <tromey@redhat.com>
11842 Gary Benson <gbenson@redhat.com>
11843
11844 * Makefile.in (SFILES): Add common/common-debug.c.
11845 (OBS): Add common-debug.o.
11846 (common-debug.o): New rule.
11847 * debug.h (debug_printf): Don't declare.
11848 * debug.c (debug_printf): Renamed and rewritten as...
11849 (debug_vprintf): New function.
11850
f6e94d78
GB
118512014-08-19 Gary Benson <gbenson@redhat.com>
11852
11853 * utils.h: Do not include print-utils.h.
11854
9239eeab
GB
118552014-08-19 Tom Tromey <tromey@redhat.com>
11856 Gary Benson <gbenson@redhat.com>
11857
11858 * server.h: Add static assertion.
11859 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11860
ef87c8bb
GB
118612014-08-19 Tom Tromey <tromey@redhat.com>
11862 Gary Benson <gbenson@redhat.com>
11863
11864 * Makefile.in (SFILES): Add common/errors.c.
11865 (OBS): Add errors.o.
11866 (IPA_OBS): Add errors-ipa.o.
11867 (errors.o): New rule.
11868 (errors-ipa.o): Likewise.
11869 * utils.h (perror_with_name, error, warning): Don't declare.
11870 * utils.c (warning): Renamed and rewritten as...
11871 (vwarning): New function.
11872 (error): Renamed and rewritten as...
11873 (verror): New function.
11874 (internal_error): Renamed and rewritten as...
11875 (internal_verror): New function.
11876
bb974a24
GB
118772014-08-07 Gary Benson <gbenson@redhat.com>
11878
11879 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11880 * configure: Regenerate.
11881 * config.in: Likewise.
11882 * server.h: Do not include errno.h.
11883 * event-loop.c: Likewise.
11884 * hostio-errno.c: Likewise.
11885 * linux-low.c: Likewise.
11886 * remote-utils.c: Likewise.
11887 * spu-low.c: Likewise.
11888 * utils.c: Likewise.
11889 * gdbreplay.c: Unconditionally include errno.h.
11890
6d3d12eb
GB
118912014-08-07 Gary Benson <gbenson@redhat.com>
11892
11893 * server.h: Do not include string.h.
11894 * event-loop.c: Likewise.
11895 * linux-low.c: Likewise.
11896 * regcache.c: Likewise.
11897 * remote-utils.c: Likewise.
11898 * spu-low.c: Likewise.
11899 * utils.c: Likewise.
11900
dccbb609
GB
119012014-08-07 Gary Benson <gbenson@redhat.com>
11902
11903 * server.h: Do not include gdb_assert.h.
11904
e76df0d0
GB
119052014-08-07 Gary Benson <gbenson@redhat.com>
11906
11907 * server.h: Do not include common-utils.h.
11908
4cb9c816
GB
119092014-08-07 Gary Benson <gbenson@redhat.com>
11910
11911 * server.h: Do not include ptid.h.
11912 * notif.h: Likewise.
11913
3995eeee
GB
119142014-08-07 Gary Benson <gbenson@redhat.com>
11915
11916 * server.h: Do not include gdb_locale.h.
11917
cb9f1a9b
GB
119182014-08-07 Gary Benson <gbenson@redhat.com>
11919
11920 * server.h: Do not include gdb/signals.h.
11921 * win32-low.c: Likewise.
11922
a5fceff8
GB
119232014-08-07 Gary Benson <gbenson@redhat.com>
11924
11925 * server.h: Do not include pathmax.h.
11926
b9391142
GB
119272014-08-07 Gary Benson <gbenson@redhat.com>
11928
11929 * server.h: Do not include libiberty.h.
11930 * linux-bfin-low.c: Likewise.
11931
0e443c87
GB
119322014-08-07 Gary Benson <gbenson@redhat.com>
11933
11934 * server.h: Do not include ansidecl.h.
11935
8ebb3f56
GB
119362014-08-07 Gary Benson <gbenson@redhat.com>
11937
11938 * linux-x86-low.c: Do not include stddef.h.
11939 * lynx-ppc-low.c: Likewise.
11940 * tracepoint.c: Likewise.
11941
8980bdf6
GB
119422014-08-07 Gary Benson <gbenson@redhat.com>
11943
11944 * server.h: Do not include stdarg.h.
11945 * nto-low.c: Likewise.
11946
d7096f71
GB
119472014-08-07 Gary Benson <gbenson@redhat.com>
11948
11949 * server.h: Do not include stdlib.h.
11950 * inferiors.c: Likewise.
11951 * linux-low.c: Likewise.
11952 * regcache.c: Likewise.
11953 * spu-low.c: Likewise.
11954 * tracepoint.c: Likewise.
11955 * utils.c: Likewise.
11956
d02f550d
GB
119572014-08-07 Gary Benson <gbenson@redhat.com>
11958
11959 * server.h: Do not include stdio.h.
11960 * linux-low.c: Likewise.
11961 * remote-utils.c: Likewise.
11962 * spu-low.c: Likewise.
11963 * utils.c: Likewise.
11964 * wincecompat.c: Likewise.
11965
87f6c4e3
GB
119662014-08-06 Gary Benson <gbenson@redhat.com>
11967
11968 * regcache.c (init_register_cache): Move conditionals inside if.
11969
7089dca4
GB
119702014-08-06 Gary Benson <gbenson@redhat.com>
11971
11972 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11973
462f517e
GB
119742014-07-31 Gary Benson <gbenson@redhat.com>
11975
11976 * ax.h: Do not include server.h.
11977 * gdbthread.h: Likewise.
11978 * lynx-low.h: Likewise.
11979 * notif.h: Likewise.
11980
976411d6
GB
119812014-07-30 Gary Benson <gbenson@redhat.com>
11982
11983 * server.h: Include common-defs.h.
11984 Do not include config.h or build-gnulib-gdbserver/config.h.
11985
d41f6d8e
GB
119862014-07-30 Gary Benson <gbenson@redhat.com>
11987
11988 * hostio-errno.c: Move server.h to top of includes list.
11989 * inferiors.c: Likewise.
11990 * linux-x86-low.c: Likewise.
11991 * notif.c: Include server.h.
11992
314c6a35
TT
119932014-07-24 Tom Tromey <tromey@redhat.com>
11994 Gary Benson <gbenson@redhat.com>
11995
11996 * server.h (CORE_ADDR): Now unsigned.
11997
69ff6be5
PA
119982014-07-16 Pedro Alves <palves@redhat.com>
11999
12000 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12001
ce9e3fe7
PA
120022014-07-15 Pedro Alves <palves@redhat.com>
12003
12004 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12005 copy.
12006
e76126e8
PA
120072014-07-11 Pedro Alves <palves@redhat.com>
12008
12009 * linux-low.c (kill_wait_lwp): New function, based on
12010 kill_one_lwp_callback, but use my_waitpid directly.
12011 (kill_one_lwp_callback, linux_kill): Use it.
12012
8e9db26e
PA
120132014-06-23 Pedro Alves <palves@redhat.com>
12014
12015 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12016 before setting DR0..DR3.
12017
698b3e08
GB
120182014-06-20 Gary Benson <gbenson@redhat.com>
12019
12020 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12021 * configure: Regenerated.
12022 * config.in: Likewise.
12023
125f8a3d
GB
120242014-06-20 Gary Benson <gbenson@redhat.com>
12025
12026 * Makefile.in (SFILES): Update locations for files moved
12027 from common to nat.
12028 (object file files): Reordered.
12029
42995dbd
GB
120302014-06-20 Gary Benson <gbenson@redhat.com>
12031
12032 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12033 (i386_dr_low_set_addr): Likewise.
12034 (i386_dr_low_get_addr): Likewise.
12035 (i386_dr_low_can_set_control): Likewise.
12036 (i386_dr_low_set_control): Likewise.
12037 (i386_dr_low_get_control): Likewise.
12038 (i386_dr_low_get_status): Likewise.
12039 (i386_get_debug_register_length): Likewise.
12040 * linux-x86-low.c (i386_dr_low_set_addr):
12041 Changed signature. Made static.
12042 (i386_dr_low_get_addr): Likewise.
12043 (i386_dr_low_set_control): Likewise.
12044 (i386_dr_low_get_control): Likewise.
12045 (i386_dr_low_get_status): Likewise.
12046 (i386_dr_low): New global variable.
12047 * win32-i386-low.c (i386_dr_low_set_addr):
12048 Changed signature. Made static.
12049 (i386_dr_low_get_addr): Likewise.
12050 (i386_dr_low_set_control): Likewise.
12051 (i386_dr_low_get_control): Likewise.
12052 (i386_dr_low_get_status): Likewise.
12053 (i386_dr_low): New global variable.
12054
e1d2394b
MS
120552014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12056
12057 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12058 * Makefile.in (AR, AR_FLAGS): Define.
12059 * configure: Regenerate.
12060
3a8ee006
GB
120612014-06-19 Gary Benson <gbenson@redhat.com>
12062
12063 * Makefile.in (i386-dregs.o): New rule.
12064 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12065 * i386-low.c (target.h): Remove include.
12066 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12067 (DR_CONTROL_SHIFT): Likewise.
12068 (DR_CONTROL_SIZE): Likewise.
12069 (DR_RW_EXECUTE): Likewise.
12070 (DR_RW_WRITE): Likewise.
12071 (DR_RW_READ): Likewise.
12072 (DR_RW_IORW): Likewise.
12073 (DR_LEN_1): Likewise.
12074 (DR_LEN_2): Likewise.
12075 (DR_LEN_4): Likewise.
12076 (DR_LEN_8): Likewise.
12077 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12078 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12079 (DR_ENABLE_SIZE): Likewise.
12080 (DR_LOCAL_SLOWDOWN): Likewise.
12081 (DR_GLOBAL_SLOWDOWN): Likewise.
12082 (DR_CONTROL_RESERVED): Likewise.
12083 (I386_DR_CONTROL_MASK): Likewise.
12084 (I386_DR_VACANT): Likewise.
12085 (I386_DR_LOCAL_ENABLE): Likewise.
12086 (I386_DR_GLOBAL_ENABLE): Likewise.
12087 (I386_DR_DISABLE): Likewise.
12088 (I386_DR_SET_RW_LEN): Likewise.
12089 (I386_DR_GET_RW_LEN): Likewise.
12090 (I386_DR_WATCH_HIT): Likewise.
12091 (i386_wp_op_t): Likewise.
12092 (i386_show_dr): Likewise.
12093 (i386_length_and_rw_bits): Likewise.
12094 (i386_insert_aligned_watchpoint): Likewise.
12095 (i386_remove_aligned_watchpoint): Likewise.
12096 (i386_handle_nonaligned_watchpoint): Likewise.
12097 i386_update_inferior_debug_regs(): Likewise.
12098 (i386_dr_insert_watchpoint): Likewise.
12099 (i386_dr_remove_watchpoint): Likewise.
12100 (i386_dr_region_ok_for_watchpoint): Likewise.
12101 (i386_dr_stopped_data_address): Likewise.
12102 (i386_dr_stopped_by_watchpoint): Likewise.
12103
8f26655c
GB
121042014-06-19 Gary Benson <gbenson@redhat.com>
12105
12106 * i386-low.c (i386_dr_show): Renamed to
12107 i386_show_dr and made static. All uses updated.
12108 (i386_dr_length_and_rw_bits): Renamed to
12109 i386_length_and_rw_bits and made static.
12110 All uses updated.
12111 (i386_dr_insert_aligned_watchpoint): Renamed to
12112 i386_insert_aligned_watchpoint and made static.
12113 All uses updated.
12114 (i386_dr_remove_aligned_watchpoint): Renamed to
12115 i386_remove_aligned_watchpoint and made static.
12116 All uses updated.
12117 (i386_dr_update_inferior_debug_regs): Renamed to
12118 i386_update_inferior_debug_regs and made static.
12119 All uses updated.
12120
b9228891
GB
121212014-06-18 Gary Benson <gbenson@redhat.com>
12122
5171def3
GB
12123 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12124 (i386_dr_low_can_set_control): Likewise.
12125 (i386_get_debug_register_length): Likewise.
12126 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12127 (i386_dr_low_can_set_control): Likewise.
12128 (i386_get_debug_register_length): Likewise.
12129
121302014-06-17 Gary Benson <gbenson@redhat.com>
12131
b9228891
GB
12132 * i386-low.h (i386-dregs.h): New include.
12133 (DR_FIRSTADDR): Now in i386-dregs.h.
12134 (DR_LASTADDR): Likewise.
12135 (DR_NADDR): Likewise.
12136 (DR_STATUS): Likewise.
12137 (DR_CONTROL): Likewise.
12138 (i386_debug_reg_state): Likewise.
12139 (i386_dr_insert_watchpoint): Likewise.
12140 (i386_dr_remove_watchpoint): Likewise.
12141 (i386_dr_region_ok_for_watchpoint): Likewise.
12142 (i386_dr_stopped_data_address): Likewise.
12143 (i386_dr_stopped_by_watchpoint): Likewise.
12144 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12145
4be83cc2
GB
121462014-06-18 Gary Benson <gbenson@redhat.com>
12147
12148 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12149 i386_dr_insert_watchpoint.
12150 (i386_low_remove_watchpoint): Renamed to
12151 i386_dr_remove_watchpoint.
12152 (i386_low_region_ok_for_watchpoint): Renamed to
12153 i386_dr_region_ok_for_watchpoint.
12154 (i386_low_stopped_data_address): Renamed to
12155 i386_dr_stopped_data_address.
12156 (i386_low_stopped_by_watchpoint): Renamed to
12157 i386_dr_stopped_by_watchpoint.
12158 * i386-low.c (i386_show_dr): Renamed to
12159 i386_dr_show and made nonstatic. All uses updated.
12160 (i386_length_and_rw_bits): Renamed to
12161 i386_dr_length_and_rw_bits and made nonstatic.
12162 All uses updated.
12163 (i386_insert_aligned_watchpoint): Renamed to
12164 i386_dr_insert_aligned_watchpoint and made nonstatic.
12165 All uses updated.
12166 (i386_remove_aligned_watchpoint): Renamed to
12167 i386_dr_remove_aligned_watchpoint and made nonstatic.
12168 All uses updated.
12169 (i386_update_inferior_debug_regs): Renamed to
12170 i386_dr_update_inferior_debug_regs and made nonstatic.
12171 All uses updated.
12172 (i386_low_insert_watchpoint): Renamed to
12173 i386_dr_insert_watchpoint. All uses updated.
12174 (i386_low_remove_watchpoint): Renamed to
12175 i386_dr_remove_watchpoint. All uses updated.
12176 (i386_low_region_ok_for_watchpoint): Renamed to
12177 i386_dr_region_ok_for_watchpoint. All uses updated.
12178 (i386_low_stopped_data_address): Renamed to
12179 i386_dr_stopped_data_address. All uses updated.
12180 (i386_low_stopped_by_watchpoint): Renamed to
12181 i386_dr_stopped_by_watchpoint. All uses updated.
12182
131aa0d4
GB
121832014-06-18 Gary Benson <gbenson@redhat.com>
12184
12185 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12186 (i386_dr_low_can_set_control): Likewise.
12187 (i386_insert_aligned_watchpoint): New check.
12188
d9305f7f
GB
121892014-06-18 Gary Benson <gbenson@redhat.com>
12190
12191 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12192 Renamed to state.
12193
e927c9fc
GB
121942014-06-18 Gary Benson <gbenson@redhat.com>
12195
12196 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12197 instead of fatal and error.
12198 (i386_handle_nonaligned_watchpoint): Likewise.
12199
1b6d4134
GB
122002014-06-18 Gary Benson <gbenson@redhat.com>
12201
12202 * i386-low.c (i386_get_debug_register_length): New macro.
12203 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12204 (i386_show_dr): Use debug_printf instead of fprintf. Use
12205 phex to format values.
12206
6e62758f
GB
122072014-06-18 Gary Benson <gbenson@redhat.com>
12208
12209 * i386-low.h: Comment changes.
12210 * i386-low.c: Likewise.
12211
fc6e2f03
GB
122122014-06-18 Gary Benson <gbenson@redhat.com>
12213
12214 * i386-low.c: Whitespace changes.
12215
f9d1eeed
TT
122162014-06-12 Tom Tromey <tromey@redhat.com>
12217
12218 * utils.c (freeargv): Remove.
12219
0b04e523
TT
122202014-06-12 Tom Tromey <tromey@redhat.com>
12221
12222 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12223 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12224 (parse_debug_format_options): Likewise.
12225 (gdbserver_usage): Likewise.
12226 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12227 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12228 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12229 against libiberty.
12230 ($(LIBGNU)): Depend on libiberty.
12231 (all-lib): Recurse into all subdirs.
12232 (install-only): Invoke "install" target in subdirs.
12233 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12234 targets.
12235 * configure: Rebuild.
12236 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12237 for vasprintf, vsnprintf, or gettimeofday.
12238 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12239 srv_tgtobj.
12240
270c9937
JB
122412014-06-05 Joel Brobecker <brobecker@adacore.com>
12242
12243 * development.sh: Delete.
12244 * Makefile.in (config.status): Adjust dependency on development.sh.
12245 * configure.ac: Adjust development.sh source call.
12246 * configure: Regenerate.
12247
0a261ed8
PA
122482014-06-02 Pedro Alves <palves@redhat.com>
12249
12250 * ax.c (gdb_free_agent_expr): New function.
12251 * ax.h (gdb_free_agent_expr): New declaration.
12252 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12253 list.
12254 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12255 static.
12256 (clear_breakpoint_conditions_and_commands): New function.
12257 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12258 (clear_breakpoint_conditions_and_commands): New declaration.
12259
e9dae05e
RR
122602014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12261
12262 * linux-aarch64-low.c (asm/ptrace.h): Include.
12263
5876f503
JK
122642014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12265
12266 Fix TLS access for -static -pthread.
12267 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12268 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12269 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12270
802e8e6d
PA
122712014-05-20 Pedro Alves <palves@redhat.com>
12272
12273 * linux-aarch64-low.c (aarch64_insert_point)
12274 (aarch64_remove_point): No longer check whether the type is
12275 supported here. Adjust to new interface.
12276 (the_low_target): Install aarch64_supports_z_point_type as
12277 supports_z_point_type method.
12278 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12279 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12280 instead of a Z packet char. Adjust.
12281 (arm_supports_z_point_type): New function.
12282 (arm_insert_point, arm_remove_point): Adjust to new interface.
12283 (the_low_target): Install arm_supports_z_point_type.
12284 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12285 (cris_insert_point, cris_remove_point): Adjust to new interface.
12286 Don't check whether the type is supported here.
12287 (the_low_target): Install cris_supports_z_point_type.
12288 * linux-low.c (linux_supports_z_point_type): New function.
12289 (linux_insert_point, linux_remove_point): Adjust to new interface.
12290 * linux-low.h (struct linux_target_ops) <insert_point,
12291 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12292 raw_breakpoint pointer parameter.
12293 <supports_z_point_type>: New method.
12294 * linux-mips-low.c (mips_supports_z_point_type): New function.
12295 (mips_insert_point, mips_remove_point): Adjust to new interface.
12296 Use mips_supports_z_point_type.
12297 (the_low_target): Install mips_supports_z_point_type.
12298 * linux-ppc-low.c (the_low_target): Install NULL as
12299 supports_z_point_type method.
12300 * linux-s390-low.c (the_low_target): Install NULL as
12301 supports_z_point_type method.
12302 * linux-sparc-low.c (the_low_target): Install NULL as
12303 supports_z_point_type method.
12304 * linux-x86-low.c (x86_supports_z_point_type): New function.
12305 (x86_insert_point): Adjust to new insert_point interface. Use
12306 insert_memory_breakpoint. Adjust to new
12307 i386_low_insert_watchpoint interface.
12308 (x86_remove_point): Adjust to remove_point interface. Use
12309 remove_memory_breakpoint. Adjust to new
12310 i386_low_remove_watchpoint interface.
12311 (the_low_target): Install x86_supports_z_point_type.
12312 * lynx-low.c (lynx_target_ops): Install NULL as
12313 supports_z_point_type callback.
12314 * nto-low.c (nto_supports_z_point_type): New.
12315 (nto_insert_point, nto_remove_point): Adjust to new interface.
12316 (nto_target_ops): Install nto_supports_z_point_type.
12317 * mem-break.c: Adjust intro comment.
12318 (struct raw_breakpoint) <raw_type, size>: New fields.
12319 <inserted>: Update comment.
12320 <shlib_disabled>: Delete field.
12321 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12322 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12323 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12324 (raw_bkpt_type_to_target_hw_bp_type): New function.
12325 (find_enabled_raw_code_breakpoint_at): New function.
12326 (find_raw_breakpoint_at): New type and size parameters. Use them.
12327 (insert_memory_breakpoint): New function, based off
12328 set_raw_breakpoint_at.
12329 (remove_memory_breakpoint): New function.
12330 (set_raw_breakpoint_at): Reimplement.
12331 (set_breakpoint): New, based on set_breakpoint_at.
12332 (set_breakpoint_at): Reimplement.
12333 (delete_raw_breakpoint): Go through the_target->remove_point
12334 instead of assuming memory breakpoints.
12335 (find_gdb_breakpoint_at): Delete.
12336 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12337 (find_gdb_breakpoint): New function.
12338 (set_gdb_breakpoint_at): Delete.
12339 (z_type_supported): New function.
12340 (set_gdb_breakpoint_1): New function, loosely based off
12341 set_gdb_breakpoint_at.
12342 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12343 (delete_gdb_breakpoint_at): Delete.
12344 (delete_gdb_breakpoint_1): New function, loosely based off
12345 delete_gdb_breakpoint_at.
12346 (delete_gdb_breakpoint): New function.
12347 (clear_gdb_breakpoint_conditions): Rename to ...
12348 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12349 breakpoint.
12350 (add_condition_to_breakpoint): Make static.
12351 (add_breakpoint_condition): Take a struct breakpoint pointer
12352 instead of an address. Adjust.
12353 (gdb_condition_true_at_breakpoint): Rename to ...
12354 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12355 z_type parameter.
12356 (gdb_condition_true_at_breakpoint): Reimplement.
12357 (add_breakpoint_commands): Take a struct breakpoint pointer
12358 instead of an address. Adjust.
12359 (gdb_no_commands_at_breakpoint): Rename to ...
12360 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12361 parameter. Return true if no breakpoint was found. Change debug
12362 output.
12363 (gdb_no_commands_at_breakpoint): Reimplement.
12364 (run_breakpoint_commands): Rename to ...
12365 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12366 and change return type to boolean.
12367 (run_breakpoint_commands): New function.
12368 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12369 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12370 breakpoint. Go through the_target->remove_point instead of
12371 assuming memory breakpoint.
12372 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12373 software and hardware breakpoints.
12374 (reinsert_raw_breakpoint): Go through the_target->insert_point
12375 instead of assuming memory breakpoint.
12376 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12377 software and hardware breakpoints.
12378 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12379 Check both software and hardware breakpoints.
12380 (validate_inserted_breakpoint): Assert the breakpoint is a
12381 software breakpoint. Set the inserted flag to -1 instead of
12382 setting shlib_disabled.
12383 (delete_disabled_breakpoints): Adjust.
12384 (validate_breakpoints): Only validate software breakpoints.
12385 Adjust to inserted flag change.
12386 (check_mem_read, check_mem_write): Skip breakpoint types other
12387 than software breakpoints. Adjust to inserted flag change.
12388 * mem-break.h (enum raw_bkpt_type): New enum.
12389 (raw_breakpoint, struct process_info): Forward declare.
12390 (Z_packet_to_target_hw_bp_type): Delete declaration.
12391 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12392 (set_gdb_breakpoint, delete_gdb_breakpoint)
12393 (clear_breakpoint_conditions): New declarations.
12394 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12395 (breakpoint_inserted_here): Update comment.
12396 (add_breakpoint_condition, add_breakpoint_commands): Replace
12397 address parameter with a breakpoint pointer parameter.
12398 (gdb_breakpoint_here): Update comment.
12399 (delete_gdb_breakpoint_at): Delete.
12400 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12401 * server.c (process_point_options): Take a struct breakpoint
12402 pointer instead of an address. Adjust.
12403 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12404 delete_gdb_breakpoint.
12405 * spu-low.c (spu_target_ops): Install NULL as
12406 supports_z_point_type method.
12407 * target.h: Include mem-break.h.
12408 (struct target_ops) <prepare_to_access_memory>: Update comment.
12409 <supports_z_point_type>: New field.
12410 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12411 instead of a char. Also take a raw breakpoint pointer.
12412 * win32-arm-low.c (the_low_target): Install NULL as
12413 supports_z_point_type.
12414 * win32-i386-low.c (i386_supports_z_point_type): New function.
12415 (i386_insert_point, i386_remove_point): Adjust to new interface.
12416 (the_low_target): Install i386_supports_z_point_type.
12417 * win32-low.c (win32_supports_z_point_type): New function.
12418 (win32_insert_point, win32_remove_point): Adjust to new interface.
12419 (win32_target_ops): Install win32_supports_z_point_type.
12420 * win32-low.h (struct win32_target_ops):
12421 <supports_z_point_type>: New method.
12422 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12423 instead of a char. Also take a raw breakpoint pointer.
12424
932539e3
PA
124252014-05-20 Pedro Alves <palves@redhat.com>
12426
12427 * mem-break.h: Include break-common.h.
12428 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12429 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12430 (Z_packet_to_target_hw_bp_type): New declaration.
12431 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12432 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12433 (Z_PACKET_ACCESS_WP): Delete macros.
12434 (Z_packet_to_hw_type): Delete function.
12435 * i386-low.h: Don't include break-common.h here.
12436 (Z_packet_to_hw_type): Delete declaration.
12437 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12438 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12439 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12440 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12441 * linux-aarch64-low.c: Don't include break-common.h here.
12442 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12443 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12444 (Z_packet_to_target_hw_bp_type): Delete function.
12445 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12446 function.
12447 (mips_insert_point, mips_remove_point): Use
12448 Z_packet_to_target_hw_bp_type.
12449
4ff0d3d8
PA
124502014-05-20 Pedro Alves <palves@redhat.com>
12451
12452 * linux-aarch64-low.c: Include break-common.h.
12453 (enum target_point_type): Delete.
12454 (Z_packet_to_point_type): Rename to ...
12455 (Z_packet_to_target_hw_bp_type): ... this, and return a
12456 target_hw_bp_type instead.
12457 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12458 instead of an enum target_point_type.
12459 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12460 breakpoint type.
12461 (aarch64_dr_state_insert_one_point)
12462 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12463 (aarch64_handle_aligned_watchpoint)
12464 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12465 Take an enum target_hw_bp_type instead of an enum
12466 target_point_type.
12467 (aarch64_supports_z_point_type): New function.
12468 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12469 use Z_packet_to_target_hw_bp_type.
12470
786dc519
JB
124712014-05-20 Joel Brobecker <brobecker@adacore.com>
12472
12473 * configure.ac: Only use -Werror by default when DEVELOPMENT
12474 is true.
12475 * configure: Regenerate.
12476
9e0aa64f
JK
124772014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12478
12479 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12480 * linux-x86-low.c (X86_64_USER_REGS): New.
12481 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12482
2b577b92
YQ
124832014-04-28 Yao Qi <yao@codesourcery.com>
12484
12485 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12486 name.
12487
94611da2
PA
124882014-04-25 Pedro Alves <palves@redhat.com>
12489
12490 PR server/16255
12491 * linux-low.c (linux_attach_fail_reason_string): New function.
12492 (linux_attach_lwp): Delete.
12493 (linux_attach_lwp_1): Rename to ...
12494 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12495 argument. Remove "initial" parameter. Return int instead of
12496 void. Don't error or warn here.
12497 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12498 failure to attach to the tgid. Call warning when failing to
12499 attach to an lwp.
12500 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12501 argument. Remove "initial" parameter. Return int instead of
12502 void. Don't error or warn here.
12503 (linux_attach_fail_reason_string): New declaration.
12504 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12505 interface change. Use linux_attach_fail_reason_string.
12506
01f9f808
MS
125072014-04-24 Michael Sturm <michael.sturm@mintel.com>
12508 Walfred Tedeschi <walfred.tedeschi@intel.com>
12509
12510 * Makefile.in: Added rules to handle new files
12511 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12512 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12513 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12514 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12515 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12516 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12517 x32-avx512-linux.o.
12518 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12519 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12520 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12521 i386/x32-avx512.xml.
12522 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12523 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12524 i386/x32-avx512-linux.xml.
12525 * i387-fp.c (num_avx512_k_registers): New constant for number
12526 of K registers.
12527 (num_avx512_zmmh_low_registers): New constant for number of
12528 lower ZMM registers (0-15).
12529 (num_avx512_zmmh_high_registers): New constant for number of
12530 higher ZMM registers (16-31).
12531 (num_avx512_ymmh_registers): New contant for number of higher
12532 YMM registers (ymm16-31 added by avx521 on x86_64).
12533 (num_avx512_xmm_registers): New constant for number of higher
12534 XMM registers (xmm16-31 added by AVX512 on x86_64).
12535 (struct i387_xsave): Add space for AVX512 registers.
12536 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12537 Add code to handle AVX512 registers.
12538 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12539 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12540 prototypei from generated file.
12541 (tdesc_amd64_avx512_linux): Likewise.
12542 (init_registers_x32_avx512_linux): Likewise.
12543 (tdesc_x32_avx512_linux): Likewise.
12544 (init_registers_i386_avx512_linux): Likewise.
12545 (tdesc_i386_avx512_linux): Likewise.
12546 (x86_64_regmap): Add AVX512 registers.
12547 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12548 mask.
12549 (initialize_low_arch): Add code to initialize AVX512 registers.
12550
51aa91f9
PA
125512014-04-23 Pedro Alves <palves@redhat.com>
12552
12553 * mem-break.c (find_gdb_breakpoint_at): Make static.
12554 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12555
a4165e94
PA
125562014-04-23 Pedro Alves <palves@redhat.com>
12557
12558 * i386-low.c: Don't include break-common.h here.
12559 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12560 prototype to take target_hw_bp_type as argument instead of a Z
12561 packet char.
12562 * i386-low.h: Include break-common.h here.
12563 (Z_packet_to_hw_type): Declare.
12564 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12565 prototypes.
12566 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12567 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12568 (x86_remove_point): Convert the packet number to a
12569 target_hw_bp_type before calling i386_low_remove_watchpoint.
12570 * win32-i386-low.c (i386_insert_point): Convert the packet number
12571 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12572 (i386_remove_point): Convert the packet number to a
12573 target_hw_bp_type before calling i386_low_remove_watchpoint.
12574
b8acf843
PA
125752014-04-23 Pedro Alves <palves@redhat.com>
12576
12577 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12578
d708bcd1
PA
125792014-04-10 Pedro Alves <palves@redhat.com>
12580
12581 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12582 Check if the condition or command is NULL before checking if the
12583 breakpoint is known. On success, return true.
12584 * mem-break.h (add_breakpoint_condition): Document return.
12585 (add_breakpoint_commands): Add describing comment.
12586 * server.c (skip_to_semicolon): New function.
12587 (process_point_options): Use it.
12588
2eec7d5b
PA
125892014-04-09 Pedro Alves <palves@redhat.com>
12590
12591 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12592 to lwpid_of.
12593
fa96cb38
PA
125942014-02-27 Pedro Alves <palves@redhat.com>
12595
12596 PR 12702
12597 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12598 macros.
12599 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12600 output.
12601 (last_thread_of_process_p): Take a PID argument instead of a
12602 thread pointer.
12603 (linux_wait_for_lwp): Delete.
12604 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12605 functions.
12606 (linux_low_filter_event): New function, party factored out from
12607 linux_wait_for_event.
12608 (linux_wait_for_event): Rename to ...
12609 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12610 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12611 sigsuspend. Check for zombie leaders.
12612 (linux_wait_for_event): Reimplement as wrapper around
12613 linux_wait_for_event_filtered.
12614 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12615 a normal or signal exit is seen, it's the whole process exiting.
12616 (wait_for_sigstop): No longer a for_each_inferior callback.
12617 Rewrite on top of linux_wait_for_event_filtered.
12618 (stop_all_lwps): Call wait_for_sigstop directly.
12619 * server.c (resume, handle_target_event): Handle
12620 TARGET_WAITKIND_NO_RESUMED.
12621
d763de10
JB
126222014-02-26 Joel Brobecker <brobecker@adacore.com>
12623
12624 * win32-low.c (psapi_get_dll_name,
12625 * win32_CreateToolhelp32Snapshot): Delete.
12626 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12627 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12628 Delete.
12629 (handle_load_dll): Add function description.
12630 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12631
850a0f76
JB
126322014-02-26 Joel Brobecker <brobecker@adacore.com>
12633
12634 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12635 Add comment.
12636 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12637 base address when calling win32_add_one_solib.
12638 (handle_load_dll): Delete local variable load_addr.
12639 Remove 0x1000 offset applied to DLL base address when calling
12640 win32_add_one_solib.
12641 (handle_unload_dll): Add comment.
12642
f25b3fc3
JB
126432014-02-26 Joel Brobecker <brobecker@adacore.com>
12644
12645 * win32-low.c (win32_add_all_dlls): Renames
12646 win32_ensure_ntdll_loaded. Rewrite function documentation.
12647 Adjust implementation to always load all DLLs.
12648 Add 0x1000 offset to DLL base address when calling
12649 win32_add_one_solib.
12650 (child_initialization_done): New static global.
12651 (do_initial_child_stuff): Set child_initialization_done to
12652 zero during child initialization, and 1 after. Replace call
12653 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12654 Add comment.
12655 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12656 (handle_unload_dll): Add function documentation.
12657 (get_child_debug_event): Ignore load and unload DLL events
12658 during child initialization.
12659
d86d4aaf
DE
126602014-02-20 Doug Evans <dje@google.com>
12661
3bc32da3 12662 Remove global all_lwps.
d86d4aaf
DE
12663 * inferiors.h (ptid_of): Move here from linux-low.h.
12664 (pid_of, lwpid_of): Ditto.
12665 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12666 parameter is a struct thread_info * now.
12667 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12668 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12669 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12670 directly.
12671 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12672 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12673 * linux-arm-low.c (update_registers_callback): Update, "entry"
12674 parameter is a struct thread_info * now.
12675 Fetch lwpid from current_inferior directly.
12676 (arm_insert_point): Pass &all_threads to find_inferior instead of
12677 &all_lwps.
12678 (arm_remove_point): Ditto.
12679 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12680 (arm_prepare_to_resume): Fetch pid from thread.
12681 (arm_read_description): Fetch lwpid from current_inferior directly.
12682 * linux-low.c (all_lwps): Delete.
12683 (delete_lwp): Delete call to remove_inferior.
12684 (handle_extended_wait): Fetch lwpid from thread.
12685 (add_lwp): Don't set lwp->entry.id. Remove call to
12686 add_inferior_to_list.
12687 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12688 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12689 (kill_one_lwp_callback): Ditto.
12690 (linux_kill): Don't dereference NULL pointer.
12691 Fetch ptid,lwpid from thread.
12692 (get_detach_signal): Fetch ptid from thread.
12693 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12694 Simplify call to regcache_invalidate_thread.
12695 (delete_lwp_callback): Update, "entry" parameter is a
12696 struct thread_info * now. Fetch pid from thread.
12697 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12698 (status_pending_p_callback): Update, "entry" parameter is a
12699 struct thread_info * now. Fetch ptid from thread.
12700 (find_lwp_pid): Update, "entry" parameter is a
12701 struct thread_info * now.
12702 (linux_wait_for_lwp): Fetch pid from thread.
12703 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12704 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12705 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12706 (dequeue_one_deferred_signal): Ditto.
12707 (cancel_breakpoint): Fetch ptid from current_inferior.
12708 (linux_wait_for_event): Pass &all_threads to find_inferior,
12709 not &all_lwps. Fetch ptid, lwpid from thread.
12710 (count_events_callback): Update, "entry" parameter is a
12711 struct thread_info * now.
12712 (select_singlestep_lwp_callback): Ditto.
12713 (select_event_lwp_callback): Ditto.
12714 (cancel_breakpoints_callback): Ditto.
12715 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12716 not &all_lwps.
12717 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12718 (unsuspend_one_lwp): Update, "entry" parameter is a
12719 struct thread_info * now.
12720 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12721 not &all_lwps.
12722 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12723 Fetch lwpid from thread, not lwp.
12724 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12725 Pass &all_threads to find_inferior, not &all_lwps.
12726 (send_sigstop): Fetch lwpid from thread, not lwp.
12727 (send_sigstop_callback): Update, "entry" parameter is a
12728 struct thread_info * now.
12729 (suspend_and_send_sigstop_callback): Ditto.
12730 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12731 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12732 struct thread_info * now.
12733 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12734 from thread, lwp.
12735 (lwp_running): Update, "entry" parameter is a
12736 struct thread_info * now.
12737 (stop_all_lwps): Fetch ptid from thread.
12738 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12739 (linux_resume_one_lwp): Fetch lwpid from thread.
12740 (linux_set_resume_request): Update, "entry" parameter is a
12741 struct thread_info * now. Fetch pid, lwpid from thread.
12742 (resume_status_pending_p): Update, "entry" parameter is a
12743 struct thread_info * now.
12744 (need_step_over_p): Ditto. Fetch lwpid from thread.
12745 (start_step_over): Fetch lwpid from thread.
12746 (linux_resume_one_thread): Update, "entry" parameter is a
12747 struct thread_info * now. Fetch lwpid from thread.
12748 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12749 (proceed_one_lwp): Update, "entry" parameter is a
12750 struct thread_info * now. Fetch lwpid from thread.
12751 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12752 struct thread_info * now.
12753 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12754 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12755 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12756 directly.
12757 (regsets_store_inferior_registers): Ditto.
12758 (fetch_register, store_register): Ditto.
12759 (linux_read_memory, linux_write_memory): Ditto.
12760 (linux_request_interrupt): Ditto.
12761 (linux_read_auxv): Ditto.
12762 (linux_xfer_siginfo): Ditto.
12763 (linux_qxfer_spu): Ditto.
12764 (linux_qxfer_libraries_svr4): Ditto.
12765 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12766 moved to inferiors.h.
12767 (get_lwp): Delete.
12768 (get_thread_lwp): Update.
12769 (struct lwp_info): Delete member "entry". Simplify comment for
12770 member "thread".
12771 (all_lwps): Delete.
12772 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12773 current_inferior directly.
12774 (update_watch_registers_callback): Update, "entry" parameter is a
12775 struct thread_info * now. Fetch pid from thread.
12776 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12777 (mips_insert_point): Fetch lwpid from current_inferior.
12778 Pass &all_threads to find_inferior, not &all_lwps.
12779 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12780 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12781 directly.
12782 (mips_stopped_data_address): Ditto.
12783 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12784 directly.
12785 * linux-tile-low.c (tile_arch_setup): Ditto.
12786 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12787 (update_debug_registers_callback): Update, "entry" parameter is a
12788 struct thread_info * now. Fetch pid from thread.
12789 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12790 Pass &all_threads to find_inferior, not &all_lwps.
12791 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12792 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12793 Pass &all_threads to find_inferior, not &all_lwps.
12794 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12795 (i386_dr_low_get_status): Ditto.
12796 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12797 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12798 (x86_linux_read_description): Ditto.
12799 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12800
3b8361aa
DE
128012014-02-20 Doug Evans <dje@google.com>
12802
12803 * inferiors.c (get_first_inferior): Fix buglet.
12804
f7667f0d
DE
128052014-02-19 Doug Evans <dje@google.com>
12806
12807 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12808 * inferiors.c (add_thread): Change result type to struct thread_info *.
12809 All callers updated.
12810 (add_lwp): Call add_thread here instead of in callers.
12811 All callers updated.
12812 * linux-low.h (get_lwp_thread): Rewrite.
12813 (struct lwp_info): New member "thread".
12814
b3312d80
DE
128152014-02-19 Doug Evans <dje@google.com>
12816
12817 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12818 All callers updated.
12819
ecc6f45c
DE
128202014-02-19 Doug Evans <dje@google.com>
12821
12822 * inferiors.c (add_thread): Fix whitespace.
12823
649ebbca
DE
128242014-02-19 Doug Evans <dje@google.com>
12825
12826 * dll.c (clear_dlls): Replace accessing list implemention details
12827 with API function.
12828 * gdbthread.h (get_first_thread): Declare.
12829 * inferiors.c (for_each_inferior_with_data): New function.
12830 (get_first_thread): New function.
12831 (find_thread_ptid): Simplify.
12832 (get_first_inferior): New function.
12833 (clear_list): Delete.
12834 (one_inferior_p): New function.
12835 (clear_inferior_list): New function.
12836 (clear_inferiors): Update.
12837 * inferiors.h (for_each_inferior_with_data): Declare.
12838 (clear_inferior_list): Declare.
12839 (one_inferior_p): Declare.
12840 (get_first_inferior): Declare.
12841 * linux-low.c (linux_wait_for_event): Replace accessing list
12842 implemention details with API function.
12843 * server.c (target_running): Ditto.
12844 (accumulate_file_name_length): New function.
12845 (emit_dll_description): New function.
12846 (handle_qxfer_libraries): Replace accessing list implemention
12847 details with API function.
12848 (handle_qxfer_threads_worker): New function.
12849 (handle_qxfer_threads_proper): Replace accessing list implemention
12850 details with API function.
12851 (handle_query): Ditto.
12852 (visit_actioned_threads_callback_ftype): New typedef.
12853 (visit_actioned_threads_data): New struct.
12854 (visit_actioned_threads): Rewrite to be find_inferior callback.
12855 (resume): Call find_inferior.
12856 (handle_status): Replace accessing list implemention
12857 details with API function.
12858 (process_serial_event): Replace accessing list implemention details
12859 with API function.
12860 * target.c (set_desired_inferior): Replace accessing list implemention
12861 details with API function.
12862 * tracepoint.c (same_process_p): New function.
12863 (gdb_agent_about_to_close): Replace accessing list implemention
12864 details with API function.
12865 * win32-low.c (child_delete_thread): Replace accessing list
12866 implemention details with API function.
12867 (match_dll_by_basename): New function.
12868 (dll_is_loaded_by_basename): New function.
12869 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12870 details call to dll_is_loaded_by_basename.
12871
80894984
DE
128722014-02-19 Doug Evans <dje@google.com>
12873
12874 * dll.h (struct dll_info): Add comment.
12875 * gdbthread.h (struct thread_info): Add comment.
12876 (current_ptid): Simplify.
12877 * inferiors.c (add_process): Update.
12878 (remove_process): Update.
12879 * inferiors.h (struct process_info): Rename member "head" to "entry".
12880 * linux-low.c (delete_lwp): Update.
12881 (add_lwp): Update.
12882 (last_thread_of_process_p): Update.
12883 (kill_one_lwp_callback, linux_kill): Update.
12884 (status_pending_p_callback): Update.
12885 (wait_for_sigstop): Update. Simplify read of ptid.
12886 (start_step_over): Update.
12887 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12888 (get_lwp_thread): Update.
12889 (struct lwp_info): Rename member "head" to "entry".
12890 * regcache.h (inferior_list_entry): Delete.
12891 * server.c (kill_inferior_callback): Update.
12892 (detach_or_kill_inferior_callback): Update.
12893 (print_started_pid): Update.
12894 (print_attached_pid): Update.
12895 (process_serial_event): Simplify read of ptid.
12896 * thread-db.c (thread_db_create_event): Update.
12897 (thread_db_get_tls_address): Update.
12898 * win32-low.c (current_inferior_ptid): Simplify.
12899
46917d26
TT
129002014-02-19 Tom Tromey <tromey@redhat.com>
12901
12902 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12903 argument.
12904 (target_supports_btrace): Update.
12905
0759a81e
YQ
129062014-02-14 Yao Qi <yao@codesourcery.com>
12907
12908 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12909 (rsp-low-ipa.o): New target.
12910
a7191e8b
TT
129112014-02-12 Tom Tromey <tromey@redhat.com>
12912
12913 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12914 convert_ascii_to_int.
12915 * regcache.c (registers_to_string): Likewise.
12916 * remote-utils.c (decode_M_packet): Likewise.
12917 * server.c (process_serial_event): Likewise.
12918
ff0e980e
TT
129192014-02-12 Tom Tromey <tromey@redhat.com>
12920
12921 * server.c (handle_query, handle_v_run): Use hex2bin, not
12922 unhexify.
12923 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12924
e9371aff
TT
129252014-02-12 Tom Tromey <tromey@redhat.com>
12926
12927 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12928 convert_int_to_ascii.
12929 * regcache.c (registers_to_string, collect_register_as_string):
12930 Likewise.
12931 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12932 Likewise.
12933 * server.c (process_serial_event): Likewise.
12934 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12935 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12936
971dc0b8
TT
129372014-02-12 Tom Tromey <tromey@redhat.com>
12938
12939 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12940 bin2hex, not hexify.
12941 * tracepoint.c (cmd_qtstatus): Likewise.
12942
0a822afb
TT
129432014-02-12 Tom Tromey <tromey@redhat.com>
12944
12945 * remote-utils.c (monitor_output): Pass explicit length to
12946 hexify.
12947
9c3d6531
TT
129482014-02-12 Tom Tromey <tromey@redhat.com>
12949
12950 * tracepoint.c: Include rsp-low.h.
12951 * server.c: Include rsp-low.h.
12952 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12953 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12954 declare.
12955 * remote-utils.c: Include rsp-low.h.
12956 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12957 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12958 (convert_int_to_ascii, convert_ascii_to_int): Move to
12959 common/rsp-low.c.
12960 * regcache.c: Include rsp-low.h.
12961 * ax.c: Include rsp-low.h.
12962 * Makefile.in (SFILES): Add common/rsp-low.c.
12963 (OBS): Add rsp-low.o.
12964 (rsp-low.o): New target.
12965
01fd3ea5
TT
129662014-02-12 Tom Tromey <tromey@redhat.com>
12967
12968 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12969 Include print-utils.h.
12970 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12971 (plongest, thirty_two, phex_nz): Remove.
12972 * Makefile.in (SFILES): Add common/print-utils.c.
12973 (OBS): Add print-utils.o.
12974 (print-utils-ipa.o): New target.
12975 (print-utils.o): New target.
12976 (IPA_OBJS): Add print-utils-ipa.o.
12977
e99dc820
TT
129782014-02-06 Tom Tromey <tromey@redhat.com>
12979
12980 * Makefile.in (SFILES): Fix indentation.
12981
ee1e2d4f
DE
129822014-02-05 Doug Evans <dje@google.com>
12983
12984 * linux-low.c (linux_wait_for_event): Improve comment.
12985 (linux_wait_1): Keep current_inferior in sync with event_child.
12986
f5a02773
DE
129872014-01-22 Doug Evans <dje@google.com>
12988
12989 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12990
87ce2a04
DE
129912014-01-22 Doug Evans <dje@google.com>
12992
12993 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12994 * configure: Regenerate.
12995 * config.in: Regenerate.
12996 * Makefile.in (SFILES): Add debug.c.
12997 (OBS): Add debug.o.
12998 * debug.c: New file.
12999 * debug.h: New file.
13000 * linux-aarch64-low.c (*): Update all debugging printfs to use
13001 debug_printf instead of fprintf.
13002 * linux-arm-low.c (*): Ditto.
13003 * linux-cris-low.c (*): Ditto.
13004 * linux-crisv32-low.c (*): Ditto.
13005 * linux-m32r-low.c (*): Ditto.
13006 * linux-sparc-low.c (*): Ditto.
13007 * linux-x86.c (*): Ditto.
13008 * linux-low.c (*): Ditto.
13009 (linux_wait_1): Add calls to debug_enter, debug_exit.
13010 (linux_wait): Remove redundant debugging printf.
13011 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13012 (linux_resume, unstop_all_lwps): Ditto.
13013 * mem-break.c (*): Update all debugging printfs to use
13014 debug_printf instead of fprintf.
13015 * remote-utils.c (*): Ditto.
13016 * thread-db.c (*): Ditto.
13017 * server.c #include <ctype.h>, "gdb_vecs.h".
13018 (debug_threads): Moved to debug.c.
13019 (*): Update all debugging printfs to use debug_printf instead of
13020 fprintf.
13021 (start_inferior): Replace call to fflush with call to debug_flush.
13022 (monitor_show_help): Mention set debug-format.
13023 (parse_debug_format_options): New function.
13024 (handle_monitor_command): Handle "monitor set debug-format".
13025 (gdbserver_usage): Mention --debug-format.
13026 (main): Parse --debug-format.
13027 * server.h (debug_threads): Declaration moved to debug.h.
13028 #include "debug.h".
13029 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13030 trace_debug_1 that uses debug_printf.
13031 (tracepoint_look_up_symbols): Update all debugging printfs to use
13032 debug_printf instead of fprintf.
13033
e671835b
BS
130342014-01-20 Baruch Siach <baruch@tkos.co.il>
13035
13036 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13037 sys/ptrace.h.
13038
b5737fa9
PA
130392014-01-17 Pedro Alves <palves@redhat.com>
13040
ea38d2a9 13041 PR build/16445
c7faa97a
PA
13042 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13043 defined after including gdb_proc_service.h.
b5737fa9 13044
40ed484e
DE
130452014-01-16 Doug Evans <dje@google.com>
13046
13047 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13048 (match_dll): Use it.
13049
969c39fb
MM
130502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13051
13052 * target.h (target_ops) <read_btrace>: Change parameters and
13053 return type to allow error reporting.
13054 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13055 trace reading errors on.
13056 * linux-low.c (linux_low_read_btrace): Pass trace reading
13057 errors on.
13058 (linux_low_disable_btrace): New.
13059
ab7f45ba
DE
130602014-01-15 Doug Evans <dje@google.com>
13061
13062 * inferiors.c (thread_id_to_gdb_id): Delete.
13063 * inferiors.h (thread_id_to_gdb_id): Delete.
13064
66af0f44
EZ
130652014-01-13 Eli Zaretskii <eliz@gnu.org>
13066
13067 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13068 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13069 versions.
13070
9939e131
PA
130712014-01-08 Pedro Alves <palves@redhat.com>
13072
13073 * server.c (handle_status): Don't discard previous queued stop
13074 replies or thread's pending status here.
13075 (main) <disconnection>: Do it here instead.
13076
b7ea362b
PA
130772014-01-08 Pedro Alves <palves@redhat.com>
13078
13079 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13080 * server.c (visit_actioned_threads, handle_pending_status): New
13081 function.
13082 (handle_v_cont): Factor out parts to ...
13083 (resume): ... this new function. If in all-stop, and a thread
13084 being resumed has a pending status, report it without actually
13085 resuming.
13086 (myresume): Adjust to use the new 'resume' function.
13087 (clear_pending_status_callback, set_pending_status_callback)
13088 (find_status_pending_thread_callback): New functions.
13089 (handle_status): Handle the case of multiple threads having
13090 interesting statuses to report. Report threads' real last signal
13091 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13092 with an interesting thread to report the status for, instead of
13093 always reporting the status of the first thread.
13094
28498c42
JB
130952014-01-01 Joel Brobecker <brobecker@adacore.com>
13096
13097 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13098 * gdbreplay.c (gdbreplay_version): Likewise.
13099
f45c82da
YZ
131002013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13101
13102 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13103 iov.iov_len with the real length in use.
13104
379a5e2d
JB
131052013-12-13 Joel Brobecker <brobecker@adacore.com>
13106
13107 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13108 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13109 for all targets that use win32-low.c.
13110 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13111 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13112
4210d83e
PA
131132013-12-13 Pedro Alves <palves@redhat.com>
13114
13115 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13116 if equal to TARGET_WAITKIND_LOADED.
13117 * win32-low.c (cached_status): New static global.
13118 (win32_wait): Add declaration.
13119 (do_initial_child_stuff): Flush all initial pending debug events
13120 up to the initial breakpoint.
13121 (win32_wait): If CACHED_STATUS was set, return that instead
13122 of doing a real wait. Remove the code resuming the execution
13123 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13124 during the initial phase. Also remove the code changing
13125 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13126 TARGET_WAITKIND_STOPPED.
13127
e7f0d979
YQ
131282013-12-11 Yao Qi <yao@codesourcery.com>
13129
13130 * notif.c (handle_notif_ack): Return 0 if no notification
13131 matches.
13132
ebcf782c
DE
131332013-11-20 Doug Evans <dje@google.com>
13134
13135 * linux-low.c (linux_set_resume_request): Fix comment.
13136
20ad9378
DE
131372013-11-20 Doug Evans <dje@google.com>
13138
13139 * linux-low.c (resume_status_pending_p): Tweak comment.
13140
a196ebeb
WT
131412013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13142
13143 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13144 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13145 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13146 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13147 (srv_amd64_regobj): Add amd64-mpx.o.
13148 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13149 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13150 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13151 * i387-fp.c (num_pl_bnd_register) Added constant.
13152 (num_pl_bnd_cfg_registers) Added constant.
13153 (struct i387_xsave) Added reserved area and MPX fields.
13154 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13155 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13156 function.
13157 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13158 (init_registers_amd64_mpx_linux): Declare new function.
13159 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13160 (x86_64_regmap): Add MPX registers.
13161 (x86_linux_read_description): Add MPX case.
13162 (initialize_low_arch): Initialize MPX targets.
13163
0080a2f6
TT
131642013-11-18 Tom Tromey <tromey@redhat.com>
13165
13166 * configure: Rebuild.
13167 * configure.ac: Don't check for stdlib.h.
13168 * gdbreplay.c: Unconditionally include stdlib.h.
13169
2978b111
TT
131702013-11-18 Tom Tromey <tromey@redhat.com>
13171
13172 * config.in: Rebuild.
13173 * configure: Rebuild.
13174 * configure.ac: Don't use AC_HEADER_DIRENT.
13175
a3d08894
TT
131762013-11-18 Tom Tromey <tromey@redhat.com>
13177
13178 * server.h: Don't check HAVE_STRING_H.
13179 * gdbreplay.c: Don't check HAVE_STRING_H.
13180 * configure: Rebuild.
13181
0a5dd17d
TT
131822013-11-18 Tom Tromey <tromey@redhat.com>
13183
13184 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13185 LIBGNU.
13186
1bd2f0ba
TT
131872013-11-08 Tom Tromey <tromey@redhat.com>
13188
13189 * configure, config.in: Rebuild.
13190 * configure.ac: Remove unused configury.
13191
3266f10b
TT
131922013-11-08 Tom Tromey <tromey@redhat.com>
13193
13194 * acinclude.m4: Include common.m4, codeset.m4.
13195 * configure, config.in: Rebuild.
13196 * configure.ac: Use GDB_AC_COMMON.
13197
6682d959
AA
131982013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13199
13200 * linux-s390-low.c (HWCAP_S390_TE): New define.
13201 (s390_arch_setup): Consider the TE field in the HWCAP for
13202 determining 'have_regset_tdb'.
13203
fd0a4d76
SDJ
132042013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13205
13206 PR gdb/16014
13207 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13208 call to sizeof.
13209
1a3d890b
PA
132102013-10-02 Pedro Alves <palves@redhat.com>
13211
13212 * server.c (process_serial_event): Don't output "GDBserver
13213 exiting" if GDB is connected through stdio.
13214 * target.c (mywait): Likewise, be silent if GDB is connected
13215 through stdio.
13216
97ad4581
JB
132172013-10-01 Joel Brobecker <brobecker@adacore.com>
13218
13219 * lynx-low.c (lynx_add_threads_after_attach): New function.
13220 (lynx_attach): Remove call to add_thread. Add call to
13221 lynx_add_threads_after_attach instead.
13222
5b4e221c
MF
132232013-09-28 Mike Frysinger <vapier@gentoo.org>
13224
13225 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13226 * config.in, configure: Regenerated.
13227
ee47b2f8
YQ
132282013-09-18 Yao Qi <yao@codesourcery.com>
13229
13230 PR server/15959
13231 * server.c (start_inferior): Clear 'resume_info'.
13232
d6707650 132332013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13234
d6707650
JW
13235 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13236 for each register.
13237
9243dd0e 132382013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13239
9243dd0e
JW
13240 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13241 linux-tile-low.o to srv_tgtobj.
13242
c623a6ef
WN
132432013-09-16 Will Newton <will.newton@linaro.org>
13244
13245 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13246 out regs.
13247
fb71d39e
PA
132482013-09-06 Pedro Alves <palves@redhat.com>
13249
13250 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13251 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13252 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13253 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13254 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13255 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13256
8e7e9910
PA
132572013-09-06 Pedro Alves <palves@redhat.com>
13258
13259 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13260 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13261
7c3a12ca
PA
132622013-09-06 Pedro Alves <palves@redhat.com>
13263
13264 * linux-amd64-ipa.c: Include tracepoint.h.
13265 * linux-i386-ipa.c: Include tracepoint.h.
13266
8eb3d7b6
RW
132672013-09-06 Ricard Wanderlof <ricardw@axis.com>
13268
13269 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13270 (ps_get_thread_area): New function.
13271
eddddb9d
RW
132722013-09-06 Ricard Wanderlof <ricardw@axis.com>
13273
13274 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13275 (initialize_low_arch): Call init_registers_crisv32 rather than
13276 init_register_crisv32.
13277
533b0600
PA
132782013-09-05 Pedro Alves <palves@redhat.com>
13279
13280 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13281 to ...
13282 * hostio.h: ... this new file.
13283 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13284 win32-low.c: Include hostio.h.
13285
0ce3d3b5
PA
132862013-09-05 Pedro Alves <palves@redhat.com>
13287
13288 * server.h (gdb_client_data, handler_func, callback_handler_func)
13289 (delete_file_handler, add_file_handler, append_callback_event)
13290 (delete_callback_event, start_event_loop, initialize_event_loop):
13291 Move to event-loop.h and include it.
13292 * event-loop.h: New file.
13293
799cdc37
PA
132942013-09-05 Pedro Alves <palves@redhat.com>
13295
13296 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13297 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13298 (loaded_dll, unloaded_dll): Move to ...
13299 * dll.h: ... this new file.
13300 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13301
6a6bbd9d
PA
133022013-09-05 Pedro Alves <palves@redhat.com>
13303
13304 * server.h (current_process, get_thread_process, all_processes)
13305 (add_inferior_to_list, for_each_inferior, current_inferior)
13306 (remove_inferior, add_process, remove_process, find_process_pid)
13307 (have_started_inferiors_p, have_attached_inferiors_p)
13308 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13309 (clear_inferiors, find_inferior, find_inferior_id)
13310 (inferior_target_data, set_inferior_target_data)
13311 (inferior_regcache_data, set_inferior_regcache_data): Move to
13312 inferiors.h, and include it.
13313 * inferiors.h: New file.
13314
f699aaba
PA
133152013-09-05 Pedro Alves <palves@redhat.com>
13316
13317 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13318 Move ...
72f4393d 13319 * ax.h: ... here.
f699aaba 13320
c144c7a0
PA
133212013-09-05 Pedro Alves <palves@redhat.com>
13322
13323 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13324 tracepoint.h.
13325 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13326 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13327 (handle_tracepoint_general_set, handle_tracepoint_query)
13328 (tracepoint_finished_step, tracepoint_was_hit)
13329 (release_while_stepping_state_list, current_traceframe)
13330 (in_readonly_region, traceframe_read_mem)
13331 (fetch_traceframe_registers, traceframe_read_sdata)
13332 (traceframe_read_info, struct fast_tpoint_collect_status)
13333 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13334 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13335 (supply_fast_tracepoint_registers)
13336 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13337 (ipa_tdesc, claim_trampoline_space)
13338 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13339 (agent_mem_read, agent_get_trace_state_variable_value)
13340 (agent_set_trace_state_variable_value, agent_tsv_read)
13341 (agent_mem_read_string, get_raw_reg_func_addr)
13342 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13343 * tracepoint.h: ... this new file.
13344
ff42e6ab
PA
133452013-09-05 Pedro Alves <palves@redhat.com>
13346
13347 * server.h (perror_with_name, error, fatal, warning, paddress)
13348 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13349 include it.
13350 * utils.h: New file.
13351
541af0f4
PA
133522013-09-05 Pedro Alves <palves@redhat.com>
13353
13354 * server.h (remote_debug, noack_mode, transport_is_reliable)
13355 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13356 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13357 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13358 (write_enn, initialize_async_io, enable_async_io)
13359 (disable_async_io, check_remote_input_interrupt_request)
13360 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13361 (dead_thread_notify, prepare_resume_reply)
13362 (decode_address_to_semicolon, decode_address, decode_m_packet)
13363 (decode_M_packet, decode_X_packet, decode_xfer_write)
13364 (decode_search_memory_packet, unhexify, hexify)
13365 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13366 (look_up_one_symbol, relocate_instruction)
13367 (monitor_output): Move to remote-utils.h, and include it.
13368 * remote-utils.h: New file.
13369
eebdf26b
PA
133702013-09-05 Pedro Alves <palves@redhat.com>
13371
13372 * server.h (_): Delete.
13373
3aafd2ff
PA
133742013-09-02 Pedro Alves <palves@redhat.com>
13375
13376 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13377 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13378 allocated.
13379 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13380
cee83bcb
PM
133812013-09-02 Pierre Muller <muller@sourceware.org>
13382
13383 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13384 or WriteProcessMemory complete successfully and handle
13385 ERROR_PARTIAL_COPY error.
13386
9a13b2fa
PA
133872013-09-02 Pedro Alves <palves@redhat.com>
13388
13389 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13390 error instead of EIO.
13391
602e3198
JK
133922013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13393
13394 PR server/15604
13395 * linux-low.c: Include filestuff.h.
13396 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13397 * lynx-low.c: Include filestuff.h.
13398 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13399 * server.c: Include filestuff.h.
13400 (main): Call notice_open_fds.
13401 * spu-low.c: Include filestuff.h.
13402 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13403
96d7229d
LM
134042013-08-22 Luis Machado <lgustavo@codesourcery.com>
13405
13406 * Makefile.in: Explain why ../target and ../nat are not
13407 listed as include file search paths.
13408 (linux-waitpid.o): New object file rule.
13409 * configure.srv (srv_native_linux_obj): New variable.
13410 Replace all occurrences of linux native object files with
13411 $srv_native_linux_obj.
13412 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13413 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13414 (linux_enable_event_reporting): Remove declaration.
13415 (my_waitpid): Moved to common/linux-waitpid.c.
13416 (linux_wait_for_event): Pass ptid when calling
13417 linux_enable_event_reporting.
13418 (linux_supports_tracefork_flag): Remove.
13419 (linux_enable_event_reporting): Likewise.
13420 (linux_tracefork_grandchild): Remove.
13421 (STACK_SIZE): Moved to common/linux-ptrace.c.
13422 (linux_tracefork_child): Remove.
13423 (linux_test_for_tracefork): Remove.
13424 (linux_look_up_symbols): Call linux_supports_traceclone.
13425 (initialize_low): Remove call to linux_test_for_tracefork.
13426 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13427 common/linux-ptrace.h.
13428 (PTRACE_TYPE_ARG4): Likewise.
13429 Include linux-ptrace.h.
13430
32940073
PA
134312013-08-21 Pedro Alves <palves@redhat.com>
13432
13433 * config.in: Renegerate.
13434
33b60d58 134352013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13436
33b60d58
LM
13437 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13438 (SFILES): Remove $(srcdir)/common/target-common.c and
13439 add $(srcdir)/target/waitstatus.c.
13440 (OBS): Remove target-common.o and add waitstatus.o.
13441 (server_h): Remove $(srcdir)/../common/target-common.h and
13442 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13443 and $(srcdir)/../target/waitstatus.h.
13444 (target-common.o): Remove.
13445 (waitstatus.o): New target object file.
13446 * target.h: Do not include target-common.h and
13447 include target/resume.h, target/wait.h and
13448 target/waitstatus.h.
13449
b8e1b30e
LM
134502013-08-13 Luis Machado <lgustavo@codesourcery.com>
13451
13452 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13453 to PTRACE_TYPE_ARG3.
13454 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13455 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13456 PTRACE_TYPE_ARG4.
13457 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13458 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13459
7a60ad40
YQ
134602013-07-27 Jie Zhang <jie@codesourcery.com>
13461 Daniel Jacobowitz <dan@codesourcery.com>
13462 Yao Qi <yao@codesourcery.com>
13463
13464 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13465 (mips-linux-watch.o): New rule.
13466 (mips_linux_watch_h): New variable.
13467 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13468 srv_tgtobj.
13469 * linux-mips-low.c: Include mips-linux-watch.h.
13470 (struct arch_process_info, struct arch_lwp_info): New.
13471 (update_watch_registers_callback): New function.
13472 (mips_linux_new_process, mips_linux_new_thread) New functions.
13473 (mips_linux_prepare_to_resume, mips_insert_point): New
13474 functions.
13475 (mips_remove_point, mips_stopped_by_watchpoint): New
13476 functions.
13477 (rsp_bp_type_to_target_hw_bp_type): New function.
13478 (mips_stopped_data_address): New function.
13479 (the_low_target): Add watchpoint support functions.
13480
de6f69ad
YQ
134812013-07-27 Yao Qi <yao@codesourcery.com>
13482
13483 * i386-low.c: Include break-common.h.
13484 (enum target_hw_bp_type): Remove.
13485
3360c0bf
LM
134862013-07-24 Luis Machado <lgustavo@codesourcery.com>
13487
13488 * Makefile.in (SFILES): /common/target-common.c.
13489 (OBS): Add target-common.o.
13490 (server_h): Add $(srcdir)/../common/target-common.h.
13491 (target-common.o): New target.
13492 * server.c (queue_stop_reply_callback): Free
13493 status string after use.
13494 * target.c (target_waitstatus_to_string): Remove.
13495 * target.h: Include target-common.h.
13496 (resume_kind): Likewise.
13497 (target_waitkind): Likewise.
13498 (target_waitstatus): Likewise.
13499 (TARGET_WNOHANG): Likewise.
13500
bd885420
YQ
135012013-07-04 Yao Qi <yao@codesourcery.com>
13502
13503 * Makefile.in (host_alias): Use @host_noncanonical@.
13504 (target_alias): Use @target_noncanonical@.
13505 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13506 ACX_NONCANONICAL_HOST.
13507 * configure: Regenerated.
13508
13509 Revert:
13510 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13511
13512 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13513 * configure: Rebuild.
13514 * Makefile.in (version_host, version_target): Get from configure.
13515 (version.c): Use $(version_host) and $(version_target).
13516
17ef446e
PA
135172013-07-03 Pedro Alves <palves@redhat.com>
13518
13519 * Makefile.in (config.status): Depend on development.sh.
13520 * acinclude.m4: Include libmcheck.m4.
13521 * configure: Regenerate.
13522
7a9a7487
MG
135232013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13524
13525 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13526 attribute inside the parentheses.
13527 (winapi_DebugSetProcessKillOnExit): Ditto.
13528 (winapi_DebugBreakProcess): Ditto.
13529 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13530
49b64de6
MG
135312013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13532
13533 * notif.h (notif_event): Add a dummy member to avoid compiler
13534 errors.
13535
d5749ee7
PA
135362013-07-01 Pedro Alves <palves@redhat.com>
13537
13538 * hostio.c (HOSTIO_PATH_MAX): Define.
13539 (require_filename, handle_open, handle_unlink, handle_readlink):
13540 Use it.
13541
d8d2a3ee
PA
135422013-07-01 Pedro Alves <palves@redhat.com>
13543
13544 * server.h: Include "pathmax.h".
13545 * linux-low.c: Don't include sys/param.h.
13546 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13547 MAXPATHLEN.
13548 * win32-low.c: Don't include sys/param.h.
13549 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13550
bc7dea8d
PA
135512013-07-01 Pedro Alves <palves@redhat.com>
13552
13553 * event-loop.c: Don't check HAVE_UNISTD_H before including
13554 <unistd.h>.
13555 * gdbreplay.c: Likewise.
13556 * remote-utils.c: Likewise.
13557 * server.c: Likewise.
13558 * configure.ac: Don't check for unistd.h.
13559 * configure: Regenerate.
13560
d6c2da54
TT
135612013-06-28 Tom Tromey <tromey@redhat.com>
13562
13563 * Makefile.in (version.c): Use version.in, not
13564 common/version.in.
13565
257b6bec
MG
135662013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13567
13568 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13569 * configure: Rebuild.
13570 * Makefile.in (version_host, version_target): Get from configure.
13571 (version.c): Use $(version_host) and $(version_target).
13572
86ebe149
DK
135732013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13574
13575 Fix trace-status to output user name without trailing colon.
13576 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13577
f30aa5af
DK
135782013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13579
13580 Fix trace-status to output proper start-time and stop-time.
13581 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13582 output start time and stop time in hex as gdb expects.
13583
28a93511
YQ
135842013-06-26 Pedro Alves <pedro@codesourcery.com>
13585
13586 * tracepoint.c (build_traceframe_info_xml): Output trace state
13587 variables present in the trace buffer.
13588
01208463
TT
135892013-06-24 Tom Tromey <tromey@redhat.com>
13590
13591 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13592 create-version.sh.
13593 (version.o): Remove.
13594 * gdbreplay.c: Include version.h.
13595 (version, host_name): Don't declare.
13596 * server.h: Include version.h.
13597 (version, host_name): Don't declare.
13598
760256f9
PA
135992013-06-12 Pedro Alves <palves@redhat.com>
13600
13601 * linux-x86-low.c (linux_is_elf64): Delete global.
13602 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13603 with local linux_pid_exe_is_elf_64_file use.
13604
030031ee
PA
136052013-06-11 Pedro Alves <palves@redhat.com>
13606
13607 * linux-low.c (regset_disabled, disable_regset): New functions.
13608 (regsets_fetch_inferior_registers)
13609 (regsets_store_inferior_registers): Use them.
13610 (initialize_regsets_info); Don't allocate the disabled_regsets
13611 array here.
13612 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13613 comment.
13614
5da6eb0a
PA
136152013-06-11 Pedro Alves <palves@redhat.com>
13616
13617 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13618 xmalloc.
13619
7e5aaa09
PA
136202013-06-11 Pedro Alves <palves@redhat.com>
13621
13622 * linux-x86-low.c (initialize_low_arch): Call
13623 init_registers_x32_avx_linux.
13624
d878444c
JK
136252013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13626
13627 Fix compatibility with Android Bionic.
13628 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13629 it is not empty.
13630
3aee8918
PA
136312013-06-07 Pedro Alves <palves@redhat.com>
13632
5f2b57b5 13633 PR server/14823
3aee8918
PA
13634 * Makefile.in (OBS): Add tdesc.o.
13635 (IPA_OBJS): Add tdesc-ipa.o.
13636 (tdesc-ipa.o): New rule.
13637 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13638 interface.
13639 * linux-low.c (new_inferior): Delete.
13640 (disabled_regsets, num_regsets): Delete.
13641 (linux_add_process): Adjust to set the new per-process
13642 new_inferior flag.
13643 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13644 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13645 was a stop. When calling arch_setup, switch the current inferior
13646 to the thread that got an event.
13647 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13648 (regsets_fetch_inferior_registers)
13649 (regsets_store_inferior_registers): New regsets_info parameter.
13650 Adjust to use it.
13651 (linux_register_in_regsets): New regs_info parameter. Adjust to
13652 use it.
13653 (register_addr, fetch_register, store_register): New usrregs_info
13654 parameter. Adjust to use it.
13655 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13656 parameter regs_info. Adjust to use it.
13657 (linux_fetch_registers): Get the current inferior's regs_info, and
13658 adjust to use it.
13659 (linux_store_registers): Ditto.
13660 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13661 (initialize_low): Don't initialize the target_regsets here. Call
13662 initialize_low_arch.
13663 * linux-low.h (target_regsets): Delete declaration.
13664 (struct regsets_info): New.
13665 (struct usrregs_info): New.
13666 (struct regs_info): New.
13667 (struct process_info_private) <new_inferior>: New field.
13668 (struct linux_target_ops): Delete the num_regs, regmap, and
13669 regset_bitmap fields. New field regs_info.
13670 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13671 * i387-fp.c (num_xmm_registers): Delete.
13672 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13673 calls to new interface.
13674 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13675 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13676 Infer the number of xmm registers from the regcache's target
13677 description.
13678 * i387-fp.h (num_xmm_registers): Delete.
13679 * inferiors.c (add_thread): Don't install the thread's regcache
13680 here.
13681 * proc-service.c (gregset_info): Fetch the current inferior's
13682 regs_info. Adjust to use it.
13683 * regcache.c: Include tdesc.h.
13684 (register_bytes, reg_defs, num_registers)
13685 (gdbserver_expedite_regs): Delete.
13686 (get_thread_regcache): If the thread doesn't have a regcache yet,
13687 create one, instead of aborting gdbserver.
13688 (regcache_invalidate_one): Rename to ...
13689 (regcache_invalidate_thread): ... this.
13690 (regcache_invalidate_one): New.
13691 (regcache_invalidate): Only invalidate registers of the current
13692 process.
13693 (init_register_cache): Add target_desc parameter, and use it.
13694 (new_register_cache): Ditto. Assert the target description has a
13695 non zero registers_size.
13696 (regcache_cpy): Add assertions. Adjust.
13697 (realloc_register_cache, set_register_cache): Delete.
13698 (registers_to_string, registers_from_string): Adjust.
13699 (find_register_by_name, find_regno, find_register_by_number)
13700 (register_cache_size): Add target_desc parameter, and use it.
13701 (free_register_cache_thread, free_register_cache_thread_one)
13702 (regcache_release, register_cache_size): New.
13703 (register_size): Add target_desc parameter, and use it.
13704 (register_data, supply_register, supply_register_zeroed)
13705 (supply_regblock, supply_register_by_name, collect_register)
13706 (collect_register_as_string, collect_register_by_name): Adjust.
13707 * regcache.h (struct target_desc): Forward declare.
13708 (struct regcache) <tdesc>: New field.
13709 (init_register_cache, new_register_cache): Add target_desc
13710 parameter.
13711 (regcache_invalidate_thread): Declare.
13712 (regcache_invalidate_one): Delete declaration.
13713 (regcache_release): Declare.
13714 (find_register_by_number, register_cache_size, register_size)
13715 (find_regno): Add target_desc parameter.
13716 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13717 declarations.
13718 * remote-utils.c: Include tdesc.h.
13719 (outreg, prepare_resume_reply): Adjust.
13720 * server.c: Include tdesc.h.
13721 (gdbserver_xmltarget): Delete declaration.
13722 (get_features_xml, process_serial_event): Adjust.
13723 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13724 declare.
13725 (struct process_info) <tdesc>: New field.
13726 (ipa_tdesc): Declare.
13727 * tdesc.c: New file.
13728 * tdesc.h: New file.
13729 * tracepoint.c: Include tdesc.h.
13730 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13731 (get_context_regcache): Adjust to pass ipa_tdesc down.
13732 (do_action_at_tracepoint): Adjust to get the register cache size
13733 from the context regcache's description.
13734 (traceframe_walk_blocks): Adjust to get the register cache size
13735 from the current trace frame's description.
13736 (traceframe_get_pc): Adjust to get current trace frame's
13737 description and pass it down.
13738 (gdb_collect): Adjust to get the register cache size from the
13739 IPA's description.
13740 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13741 (gdbserver_xmltarget): Delete.
13742 (initialize_low_tracepoint): Set the ipa's target description.
13743 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13744 (initialize_low_tracepoint): Set the ipa's target description.
13745 * linux-x86-low.c: Include tdesc.h.
13746 [__x86_64__] (is_64bit_tdesc): New.
13747 (ps_get_thread_area, x86_get_thread_area): Use it.
13748 (i386_cannot_store_register): Rename to ...
13749 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13750 (i386_cannot_fetch_register): Rename to ...
13751 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13752 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13753 to new interface.
13754 (target_regsets): Rename to ...
13755 (x86_regsets): ... this.
13756 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13757 interface.
13758 (x86_siginfo_fixup): Use is_64bit_tdesc.
13759 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13760 (tdesc_x32_avx_linux, tdesc_x32_linux)
13761 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13762 Declare.
13763 (x86_linux_update_xmltarget): Delete.
13764 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13765 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13766 (AMD64_LINUX_USER64_CS): New.
13767 (x86_linux_read_description): New, based on
13768 x86_linux_update_xmltarget.
13769 (same_process_callback): New.
13770 (x86_arch_setup_process_callback): New.
13771 (x86_linux_update_xmltarget): New.
13772 (x86_regsets_info): New.
13773 (amd64_linux_regs_info): New.
13774 (i386_linux_usrregs_info): New.
13775 (i386_linux_regs_info): New.
13776 (x86_linux_regs_info): New.
13777 (x86_arch_setup): Reimplement.
13778 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13779 (x86_emit_ops): Ditto.
13780 (the_low_target): Adjust. Install x86_linux_regs_info,
13781 x86_cannot_fetch_register, and x86_cannot_store_register.
13782 (initialize_low_arch): New.
13783 * linux-ia64-low.c (tdesc_ia64): Declare.
13784 (ia64_fetch_register): Adjust.
13785 (ia64_usrregs_info, regs_info): New globals.
13786 (ia64_regs_info): New function.
13787 (the_low_target): Adjust.
13788 (initialize_low_arch): New function.
13789 * linux-sparc-low.c (tdesc_sparc64): Declare.
13790 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13791 Adjust.
13792 (sparc_arch_setup): New function.
13793 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13794 (the_low_target): Adjust.
13795 (initialize_low_arch): New function.
13796 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13797 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13798 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13799 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13800 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13801 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13802 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13803 (tdesc_powerpc_isa205_vsx64l): Declare.
13804 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13805 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13806 (ppc_set_pc, ppc_get_hwcap): Adjust.
13807 (ppc_usrregs_info): Forward declare.
13808 (!__powerpc64__) ppc_regmap_adjusted: New global.
13809 (ppc_arch_setup): Adjust to the current process'es target
13810 description.
13811 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13812 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13813 (ppc_store_evrregset): Adjust.
13814 (target_regsets): Rename to ...
13815 (ppc_regsets): ... this, and make static.
13816 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13817 (ppc_regs_info): New function.
13818 (the_low_target): Adjust.
13819 (initialize_low_arch): New function.
13820 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13821 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13822 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13823 (tdesc_s390x_linux64v2): Declare.
13824 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13825 (s390_fill_gregset, s390_store_last_break): Adjust.
13826 (target_regsets): Rename to ...
13827 (s390_regsets): ... this, and make static.
13828 (s390_get_pc, s390_set_pc): Adjust.
13829 (s390_get_hwcap): New target_desc parameter, and use it.
13830 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13831 (s390_arch_setup): Adjust to set the current process'es target
13832 description. Don't adjust the regmap.
13833 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13834 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13835 (regs_info_3264): New globals.
13836 (s390_regs_info): New function.
13837 (the_low_target): Adjust.
13838 (initialize_low_arch): New function.
13839 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13840 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13841 [__mips64] (init_registers_mips_linux)
13842 (init_registers_mips_dsp_linux): Delete defines.
13843 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13844 (have_dsp): New global.
13845 (mips_read_description): New, based on mips_arch_setup.
13846 (mips_arch_setup): Reimplement.
13847 (get_usrregs_info): New function.
13848 (mips_cannot_fetch_register, mips_cannot_store_register)
13849 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13850 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13851 (target_regsets): Rename to ...
13852 (mips_regsets): ... this, and make static.
13853 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13854 (dsp_regs_info, regs_info): New globals.
13855 (mips_regs_info): New function.
13856 (the_low_target): Adjust.
13857 (initialize_low_arch): New function.
13858 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13859 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13860 Declare.
13861 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13862 (arm_read_description): New, with bits factored from
13863 arm_arch_setup.
13864 (arm_arch_setup): Reimplement.
13865 (target_regsets): Rename to ...
13866 (arm_regsets): ... this, and make static.
13867 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13868 (arm_regs_info): New function.
13869 (the_low_target): Adjust.
13870 (initialize_low_arch): New function.
13871 * linux-m68k-low.c (tdesc_m68k): Declare.
13872 (target_regsets): Rename to ...
13873 (m68k_regsets): ... this, and make static.
13874 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13875 (m68k_regs_info): New function.
13876 (m68k_arch_setup): New function.
13877 (the_low_target): Adjust.
13878 (initialize_low_arch): New function.
13879 * linux-sh-low.c (tdesc_sharch): Declare.
13880 (target_regsets): Rename to ...
13881 (sh_regsets): ... this, and make static.
13882 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13883 (sh_regs_info, sh_arch_setup): New functions.
13884 (the_low_target): Adjust.
13885 (initialize_low_arch): New function.
13886 * linux-bfin-low.c (tdesc_bfin): Declare.
13887 (bfin_arch_setup): New function.
13888 (bfin_usrregs_info, regs_info): New globals.
13889 (bfin_regs_info): New function.
13890 (the_low_target): Adjust.
13891 (initialize_low_arch): New function.
13892 * linux-cris-low.c (tdesc_cris): Declare.
13893 (cris_arch_setup): New function.
13894 (cris_usrregs_info, regs_info): New globals.
13895 (cris_regs_info): New function.
13896 (the_low_target): Adjust.
13897 (initialize_low_arch): New function.
13898 * linux-cris-low.c (tdesc_crisv32): Declare.
13899 (cris_arch_setup): New function.
13900 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13901 (cris_regs_info): New function.
13902 (the_low_target): Adjust.
13903 (initialize_low_arch): New function.
13904 * linux-m32r-low.c (tdesc_m32r): Declare.
13905 (m32r_arch_setup): New function.
13906 (m32r_usrregs_info, regs_info): New globals.
13907 (m32r_regs_info): Adjust.
13908 (initialize_low_arch): New function.
13909 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13910 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13911 (tic6x_usrregs_info): Forward declare.
13912 (tic6x_read_description): New function, based on ...
13913 (tic6x_arch_setup): ... this. Reimplement.
13914 (target_regsets): Rename to ...
13915 (tic6x_regsets): ... this, and make static.
13916 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13917 (tic6x_regs_info): New function.
13918 (the_low_target): Adjust.
13919 (initialize_low_arch): New function.
13920 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13921 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13922 (target_regsets): Rename to ...
13923 (xtensa_regsets): ... this, and make static.
13924 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13925 globals.
13926 (xtensa_arch_setup, xtensa_regs_info): New functions.
13927 (the_low_target): Adjust.
13928 (initialize_low_arch): New function.
13929 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13930 (nios2_arch_setup): Set the current process'es tdesc.
13931 (target_regsets): Rename to ...
13932 (nios2_regsets): ... this.
13933 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13934 (nios2_regs_info): New function.
13935 (the_low_target): Adjust.
13936 (initialize_low_arch): New function.
a261b8f5
PA
13937 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13938 (aarch64_arch_setup): Set the current process'es tdesc.
13939 (target_regsets): Rename to ...
13940 (aarch64_regsets): ... this.
13941 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13942 (aarch64_regs_info): New function.
13943 (the_low_target): Adjust.
13944 (initialize_low_arch): New function.
3aee8918
PA
13945 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13946 globals.
13947 (target_regsets): Rename to ...
13948 (tile_regsets): ... this.
13949 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13950 (tile_regs_info): New function.
13951 (tile_arch_setup): Set the current process'es tdesc.
13952 (the_low_target): Adjust.
13953 (initialize_low_arch): New function.
13954 * spu-low.c (tdesc_spu): Declare.
13955 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13956 * win32-arm-low.c (tdesc_arm): Declare.
13957 (arm_arch_setup): New function.
13958 (the_low_target): Install arm_arch_setup instead of
13959 init_registers_arm.
13960 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13961 (init_windows_x86): Rename to ...
13962 (i386_arch_setup): ... this. Set `win32_tdesc'.
13963 (the_low_target): Adjust.
13964 * win32-low.c (win32_tdesc): New global.
13965 (child_add_thread): Don't create the thread cache here.
13966 (do_initial_child_stuff): Set the new process'es tdesc.
13967 * win32-low.h (struct target_desc): Forward declare.
13968 (win32_tdesc): Declare.
13969 * lynx-i386-low.c (tdesc_i386): Declare global.
13970 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13971 * lynx-low.c (lynx_tdesc): New global.
13972 (lynx_add_process): Set the new process'es tdesc.
13973 * lynx-low.h (struct target_desc): Forward declare.
13974 (lynx_tdesc): Declare global.
13975 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13976 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13977 * nto-low.c (nto_tdesc): New global.
13978 (do_attach): Set the new process'es tdesc.
13979 * nto-low.h (struct target_desc): Forward declare.
13980 (nto_tdesc): Declare.
13981 * nto-x86-low.c (tdesc_i386): Declare.
13982 (nto_x86_arch_setup): Set `nto_tdesc'.
13983
b1fbec62
GB
139842013-06-04 Gary Benson <gbenson@redhat.com>
13985
13986 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13987 to qSupported response when appropriate.
13988 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13989 with nonzero-length annex.
13990 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13991 arguments supplied in annex.
13992
d1ec4ce7
DE
139932013-05-31 Doug Evans <dje@google.com>
13994
ac44adcb 13995 PR server/15594
d1ec4ce7
DE
13996 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13997 64 bits in 64-cross-32 environment.
13998
9b25f2d3
PA
139992013-05-28 Pedro Alves <palves@redhat.com>
14000
14001 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14002 (aarch64-without-fpu.c): Delete rule.
14003 * configure.srv (aarch64*-*-linux*): Remove references to
14004 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14005 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14006 declaration.
14007
6740dc9c
PA
140082013-05-24 Pedro Alves <palves@redhat.com>
14009
14010 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14011 instead of strchr/decode_address. Error if the range isn't split
14012 with a ','. Don't assume there's be a ':' in the action.
14013
c2d6af84
PA
140142013-05-23 Yao Qi <yao@codesourcery.com>
14015 Pedro Alves <palves@redhat.com>
14016
14017 * linux-low.c (lwp_in_step_range): New function.
14018 (linux_wait_1): If the thread was range stepping and stopped
14019 outside the stepping range, report the stop to GDB. Otherwise,
14020 continue stepping. Add range stepping debug output.
14021 (linux_set_resume_request): Copy the step range from the resume
14022 request to the lwp.
14023 (linux_supports_range_stepping): New.
14024 (linux_target_ops) <supports_range_stepping>: Set to
14025 linux_supports_range_stepping.
14026 * linux-low.h (struct linux_target_ops)
14027 <supports_range_stepping>: New field.
14028 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14029 * linux-x86-low.c (x86_supports_range_stepping): New.
14030 (the_low_target) <supports_range_stepping>: Set to
14031 x86_supports_range_stepping.
14032 * server.c (handle_v_cont): Handle 'r' action.
14033 (handle_v_requests): Append ";r" if the target supports range
14034 stepping.
14035 * target.h (struct thread_resume) <step_range_start,
14036 step_range_end>: New fields.
14037 (struct target_ops) <supports_range_stepping>:
14038 New field.
14039 (target_supports_range_stepping): New macro.
14040
58794e1a
JB
140412013-05-17 Joel Brobecker <brobecker@adacore.com>
14042
14043 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14044 confusion in comment.
14045
d631c5a7
JB
140462013-05-17 Joel Brobecker <brobecker@adacore.com>
14047
14048 * lynx-low.c (struct process_info_private): New type.
14049 (lynx_add_process): New function.
14050 (lynx_create_inferior, lynx_attach): Replace calls to
14051 add_process by calls to lynx_add_process.
14052 (lynx_resume): If PTID is null, then try using
14053 current_process()->private->last_wait_event_ptid.
14054 Add comments.
14055 (lynx_clear_inferiors): Delete. The contents of that function
14056 has been inlined in lynx_mourn;
14057 (lynx_wait_1): Save the ptid in the process's private data.
14058 (lynx_mourn): Free the process' private data. Replace call
14059 to lynx_clear_inferiors by call to clear_inferiors.
14060
96f7a20f
YQ
140612013-05-17 Yao Qi <yao@codesourcery.com>
14062
14063 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14064 the right place.
14065
db0dfaa0
LM
140662013-05-16 Luis Machado <lgustavo@codesourcery.com>
14067
14068 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14069 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14070 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14071 PT_TEXT_END_ADDR guards. Update comments.
14072 (linux_target_op) <read_offsets>: Conditionally define to
14073 linux_read_offsets if the target is UCLIBC and if it defines
14074 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14075
68f5f838
SL
140762013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14077 Andrew Jenner <andrew@codesourcery.com>
14078
14079 * Makefile.in (SFILES): Add linux-nios2-low.c.
14080 (clean): Add action to delete nios2-linux.c.
14081 (nios2-linux.c): New rule.
14082 * configure.srv: Add nios2*-*-linux*.
14083 * linux-nios2-low.c: New.
14084
1ebff1fd
HAQ
140852013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14086
14087 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14088
f6150862
HZ
140892013-04-25 Hui Zhu <hui@codesourcery.com>
14090
14091 PR gdb/15186
f6150862
HZ
14092 * ax.c (ax_printf): Add fflush.
14093
614c279d
TT
140942013-04-22 Tom Tromey <tromey@redhat.com>
14095
14096 * Makefile.in (SFILES): Add filestuff.c.
14097 (OBS): Add filestuff.o.
14098 (filestuff.o): New target.
14099 * config.in, configure: Rebuild.
14100 * configure.ac: Check for fdwalk, pipe2.
14101
7d4e5717
PA
141022013-04-17 Pedro Alves <palves@redhat.com>
14103
14104 * configure.ac (USE_THREAD_DB): Delete variable.
14105 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14106 Don't AC_SUBST USE_THREAD_DB.
14107 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14108 * config.in, configure: Regenerate.
14109
d5c93e41
PA
141102013-04-16 Pedro Alves <palves@redhat.com>
14111
14112 * linux-low.h (struct lwp_info) <thread_known>: Move under
14113 the USE_THREAD_DB #ifdef.
14114
04f5fe89
PA
141152013-04-16 Pedro Alves <palves@redhat.com>
14116
14117 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14118 (linux-low.o): Delete rule.
14119 * linux-low.h: Always include "gdb_thread_db.h" instead of
14120 conditionally including thread_db.h.
14121 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14122 HAVE_THREAD_DB_H.
14123
480b27bf
JK
141242013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14125
14126 * Makefile.in (install-only): Fix make install regression.
14127
43662968
JK
141282013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14129
14130 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14131 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14132 installation.
14133 * gdbserver.1: Remove.
14134
3e74e146
PA
141352013-03-22 Pedro Alves <palves@redhat.com>
14136
14137 * linux-low.c (handle_extended_wait): Don't call
14138 linux_enable_event_reporting.
14139
a8347a2a
TT
141402013-03-15 Tony Theodore <tonyt@logyst.com>
14141
14142 PR build/9098:
14143 * Makefile.in (SHELL): Use @SHELL@.
14144
eeb56fa7
SDJ
141452013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14146
14147 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14148 compiler warning.
14149
4fa7e2ff
JB
141502013-03-13 Joel Brobecker <brobecker@adacore.com>
14151
14152 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14153 Remove extraneous NULL element.
14154
8ddb1965
YQ
141552013-03-13 Yao Qi <yao@codesourcery.com>
14156
14157 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14158 'V' block in trace frame.
14159
9accd112
MM
141602013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14161
14162 * target.h (struct target_ops): Add btrace ops.
14163 (target_supports_btrace): New macro.
14164 (target_enable_btrace): New macro.
14165 (target_disable_btrace): New macro.
14166 (target_read_btrace): New macro.
14167 * gdbthread.h (struct thread_info): Add btrace field.
14168 * server.c: Include btrace-common.h.
14169 (handle_btrace_general_set): New function.
14170 (handle_btrace_enable): New function.
14171 (handle_btrace_disable): New function.
14172 (handle_general_set): Call handle_btrace_general_set.
14173 (handle_qxfer_btrace): New function.
14174 (struct qxfer qxfer_packets[]): Add btrace entry.
14175 * inferiors.c (remove_thread): Disable btrace.
14176 * linux-low: Include linux-btrace.h.
14177 (linux_low_enable_btrace): New function.
14178 (linux_low_read_btrace): New function.
14179 (linux_target_ops): Add btrace ops.
14180 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14181 Add srv_linux_btrace=yes.
14182 (x86_64-*-linux*): Add linux-btrace.o.
14183 Add srv_linux_btrace=yes.
14184 * configure.ac: Define HAVE_LINUX_BTRACE.
14185 * config.in: Regenerated.
14186 * configure: Regenerated.
14187
5cc22e4c
MM
141882013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14189
14190 * server.c (handle_qxfer): Preserve error message if -3 is
14191 returned.
14192 (qxfer): Document the -3 return value.
14193
7c97f91e
MM
141942013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14195
14196 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14197 (linux_btrace_h): New variable.
14198 (linux-btrace.o): New rule.
14199
be9a119c 142002013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14201 Hafiz Abid Qadeer <abidh@codesourcery.com>
14202
14203 * tracepoint.c (trace_buffer_size): New global.
14204 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14205 (init_trace_buffer): Change to one-argument function. Allocate
14206 trace buffer memory.
14207 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14208 handle QTBuffer:size packet.
14209 (cmd_bigqtbuffer_size): New function.
14210 (initialize_tracepoint): Call init_trace_buffer with
14211 DEFAULT_TRACE_BUFFER_SIZE.
14212 * server.c (handle_query): Add QTBuffer:size in the
14213 supported packets.
14214
e64f7499
YQ
142152013-03-07 Yao Qi <yao@codesourcery.com>
14216
14217 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14218 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14219 of -1.
14220 (cmd_qtsp): Adjust condition. Do post increment.
14221 Set cur_action and cur_step_action back to 0.
14222
f0ae6fc3
PA
142232013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14224
14225 PR server/15236
14226 * linux-low.c (linux_write_memory): Return early success if LEN is
14227 zero.
14228
b5b0b0af
CV
142292013-03-05 Corinna Vinschen <vinschen@redhat.de>
14230
334ad4a8 14231 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14232
589bc927
TT
142332013-02-28 Tom Tromey <tromey@redhat.com>
14234
14235 * configure.ac: Invoke AC_SYS_LARGEFILE.
14236 * configure, config.in: Rebuild.
14237
dfe07582
CV
142382013-02-28 Corinna Vinschen <vinschen@redhat.com>
14239
14240 * win32-low.c: Throughout, fix format strings and casts of
14241 printf-like functions to avoid type related warnings on all
14242 platforms.
14243 (get_child_debug_event): Print dwDebugEventCode as hex since
14244 that's how it's usually documented.
14245
736cd585
YQ
142462013-02-28 Yao Qi <yao@codesourcery.com>
14247
14248 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14249 pulongest.
14250
e1f58301
JW
142512013-02-27 Jiong Wang <jiwang@tilera.com>
14252
14253 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14254 (reg-tilegx32.c): New rule.
14255 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14256 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14257 different register info initializer according to elf class.
14258 (init_registers_tilgx32): New function. The tilegx32 register info
14259 initializer.
14260 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14261 (tile_store_gregset): Likewise.
14262
d171ca78
YQ
142632013-02-27 Yao Qi <yao@codesourcery.com>
14264
14265 * server.c (process_point_options): Print debug message when
14266 debug_threads is true.
14267
282bbdf3
YQ
142682013-02-26 Yao Qi <yao@codesourcery.com>
14269
14270 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14271
aca22551
PA
142722013-02-19 Pedro Alves <palves@redhat.com>
14273 Kai Tietz <ktietz@redhat.com>
14274
14275 PR gdb/15161
14276
14277 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14278 instead of strtoul to extract address from packet.
14279 (process_serial_event) <'z'>: Likewise.
14280
4f3cee1c
YQ
142812013-02-18 Yao Qi <yao@codesourcery.com>
14282
14283 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14284
8e1d55a3
PA
142852013-02-14 Pedro Alves <palves@redhat.com>
14286
14287 Plug memory leak.
14288
14289 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14290 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14291
458820da
PA
142922013-02-14 Pedro Alves <palves@redhat.com>
14293
14294 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14295
baea0dae
PA
142962013-02-14 Pedro Alves <palves@redhat.com>
14297
14298 * tracepoint.c (save_string): Delete.
14299 (add_tracepoint_action): Use savestring instead of save_string.
14300
0b1afbb3
PA
143012013-02-12 Pedro Alves <palves@redhat.com>
14302
14303 * linux-xtensa-low.c: Ditto.
14304 * xtensa-xtregs.c: Ditto.
14305
8a4ac37e
PA
143062013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14307
14308 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14309 thread_db.
14310
148de6bb
MS
143112013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14312
14313 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14314 aarch64_num_wp_regs and aarch64_num_bp_regs to
14315 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14316
55fac6e0
MS
143172013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14318
14319 * linux-aarch64-low.c (ps_get_thread_area): Replace
14320 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14321
176eb98c
MS
143222013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14323 Marcus Shawcroft <marcus.shawcroft@arm.com>
14324 Nigel Stephens <nigel.stephens@arm.com>
14325 Yufeng Zhang <yufeng.zhang@arm.com>
14326
14327 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14328 (aarch64.c, aarch64-without-fpu.c): New targets.
14329 * configure.srv (aarch64*-*-linux*): New.
14330 * linux-aarch64-low.c: New file.
14331
56f7af9c
MS
143322013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14333
43aaf8b6 14334 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14335 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14336 (dequeue_one_deferred_signal, linux_resume_one_thread)
14337 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14338 (linux_tracefork_grandchild, linux_test_for_tracefork)
14339 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14340 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14341 where the argument is 0.
14342
60f662b0
YQ
143432013-01-25 Yao Qi <yao@codesourcery.com>
14344
14345 * event-loop.c: Include "queue.h".
14346 (gdb_event_p): New typedef.
14347 (struct gdb_event) <next_event>: Remove.
14348 (event_queue): Change to QUEUE(gdb_event_p).
14349 (async_queue_event): Remove.
14350 (gdb_event_xfree): New.
14351 (initialize_event_loop): New.
14352 (process_event): Use API from QUEUE.
14353 (wait_for_event): Likewise.
14354 * server.c (main): Call initialize_event_loop.
14355 * server.h (initialize_event_loop): Declare.
14356
5ae4861a
YQ
143572013-01-18 Yao Qi <yao@codesourcery.com>
14358
14359 * ax.h (struct eval_agent_expr_context): New.
14360 (gdb_eval_agent_expr): Update declaration.
14361 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14362 TFRAME. Add new argument CTX.
14363 * server.h (struct eval_agent_expr_context): Declare.
14364 (agent_mem_read, agent_tsv_read): Update declaration.
14365 (agent_mem_read_string): Likewise.
14366 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14367 (add_traceframe_block): Add new argument TPOINT.
14368 Increase TPOINT->traceframe_usage.
14369 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14370 eval_tracepoint_agent_expr.
14371 (condition_true_at_tracepoint): Likewise.
14372 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14373 (agent_mem_read_string, agent_tsv_read): Likewise.
14374
85e00e85
YQ
143752013-01-16 Yao Qi <yao@codesourcery.com>
14376
14377 * linux-low.c (linux_resume_one_lwp): Don't check
14378 'lwp->bp_reinsert != 0'.
14379
4039cf45
JB
143802013-01-07 Joel Brobecker <brobecker@adacore.com>
14381 Pedro Alves <palves@redhat.com>
14382
14383 * lynx-low.c (ptrace_request_to_str): Define a temporary
14384 macro and use it to simplify this function's implementation.
14385
9044dee2
JB
143862013-01-07 Joel Brobecker <brobecker@adacore.com>
14387
14388 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14389 sets errno.
14390
e6352c8f
JB
143912013-01-07 Joel Brobecker <brobecker@adacore.com>
14392
14393 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14394
50681a27
JB
143952013-01-07 Joel Brobecker <brobecker@adacore.com>
14396
14397 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14398
3f6e77ef
JB
143992013-01-07 Joel Brobecker <brobecker@adacore.com>
14400
14401 * lynx-low.c (lynx_resume): Use the resume_info parameter
14402 to determine the ptid for the lynx_ptrace call, unless
14403 it is equal to minus_one_ptid, in which case we use the
14404 ptid of the current_inferior.
14405 (lynx_wait_1): After having received a thread create/exit
14406 event, resume the inferior's execution using the signaling
14407 thread's ptid, rather than the old ptid.
14408
7fda33ae
JB
144092013-01-07 Joel Brobecker <brobecker@adacore.com>
14410
14411 * lynx-low.c (lynx_resume): Delete variable ret.
14412
b9786c74
JB
144132013-01-01 Joel Brobecker <brobecker@adacore.com>
14414
14415 * gdbreplay.c (gdbreplay_version): Update copyright year.
14416 * server.c (gdbserver_version): Likewise.
14417
8b93d60f
JB
144182012-12-17 Joel Brobecker <brobecker@adacore.com>
14419
14420 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14421 new thread.
14422
037335a7
JB
144232012-12-17 Joel Brobecker <brobecker@adacore.com>
14424
14425 * lynx-low.c (ptrace_request_to_str): Add handling for
14426 PTRACE_GETTRACESIG.
14427
52d4cbd8
JB
144282012-12-17 Joel Brobecker <brobecker@adacore.com>
14429
14430 * lynx-low.c (lynx_attach): Delete variable new_process.
14431
ab8f6ca9
JB
144322012-12-17 Joel Brobecker <brobecker@adacore.com>
14433
14434 * lynx-low.c (lynx_create_inferior): Delete variable
14435 new_process.
14436
78cbc024
JB
144372012-12-17 Joel Brobecker <brobecker@adacore.com>
14438
14439 * lynx-low.c (ptrace_request_to_str): Do not handle
14440 PTRACE_GETTHREADLIST if this macro does not exist.
14441
14a00470
YQ
144422012-12-15 Yao Qi <yao@codesourcery.com>
14443
14444 * Makefile.in (OBS): Add notif.o.
14445 * notif.c, notif.h: New.
14446 * server.c: Include "notif.h".
14447 (struct vstop_notif) <next>: Remove.
14448 <base>: New field.
14449 (queue_stop_reply): Update.
14450 (push_event, send_next_stop_reply): Remove.
14451 (discard_queued_stop_replies): Update.
14452 (notif_stop): New variable.
14453 (handle_v_stopped): Remove.
14454 (handle_v_requests): Don't call handle_v_stopped. Call
14455 handle_ack_notif instead.
14456 (queue_stop_reply_callback): Call notif_event_enque instead
14457 of queue_stop_reply.
14458 (handle_status): Don't call send_next_stop_reply, call
14459 notif_write_event instead.
14460 (kill_inferior_callback): Likewise.
14461 (detach_or_kill_inferior_callback): Likewise.
14462 (main): Call initialize_notif.
14463 (process_serial_event): Call QUEUE_is_empty.
14464 (handle_target_event): Call notif_push instead of push event.
14465 * server.h (push_event): Remove declaration.
14466
61c125b9
TT
144672012-12-10 Tom Tromey <tromey@redhat.com>
14468
14469 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14470 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14471 macros.
14472 (.c.o): Rewrite.
14473 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14474 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14475 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14476 (amd64-linux-ipa.o, ax.o): Rewrite.
14477 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14478 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14479 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14480 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14481 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14482 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14483 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14484 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14485 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14486 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14487 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14488 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14489 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14490 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14491 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14492 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14493 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14494 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14495 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14496 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14497 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14498 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14499 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14500 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14501 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14502 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14503 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14504 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14505 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14506 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14507 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14508 (reg-tilegx.o): Remove.
14509 (all_object_files): New macro.
14510 Include .deps files.
14511 * aclocal.m4, configure: Rebuild.
14512 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14513 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14514 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14515
e90e9ad9
TT
145162012-12-05 Tom Tromey <tromey@redhat.com>
14517
14518 PR gdb/14917:
14519 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14520
02d403bf 145212012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14522
14523 * configure.ac: Check for linux/perf_event.h.
14524 * config.in: Regenerated.
14525 * configure: Regenerated.
14526
0270a750
PA
145272012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14528
14529 * hostio.c (handle_readlink): Decrease buffer size
14530 parameter passed to readlink by one byte.
14531
8c29b58e
YQ
145322012-11-26 Yao Qi <yao@codesourcery.com>
14533
14534 * configure.ac (build_warnings): Append '-Wempty-body'.
14535 * configure: Regenerated.
14536 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14537 body.
14538
8bdce1ff
PM
145392012-11-15 Pierre Muller <muller@sourceware.org>
14540
14541 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14542 * config.in: Regenerate.
14543 * configure: Regenerate.
14544 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14545 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14546 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14547 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14548 header.
14549 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14550 instead of <sys/wait.h> header.
14551 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14552
02d403bf 145532012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14554
14555 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14556 (various make rules): Remove -DGDBSERVER
14557
fbd5db48
YQ
145582012-11-09 Yao Qi <yao@codesourcery.com>
14559
14560 * spu-low.c (current_ptid): Move it to ..
14561 * gdbthread.h: ... here. New.
14562 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14563 * server.c (myresume, process_serial_event): Likewise.
14564 * thread-db.c (thread_db_find_new_threads): Likewise.
14565 * tracepoint.c (run_inferior_command): Likewise.
14566
b3dc46ff
AB
145672012-10-01 Andrew Burgess <aburgess@broadcom.com>
14568
14569 * server.c (handle_search_memory_1): Include access length in
14570 warning message.
14571
07c04788
HPN
145722012-09-05 Michael Brandt <michael.brandt@axis.com>
14573
14574 * linux-crisv32-low.c: Fix compile errors.
14575
918d227b
YQ
145762012-09-04 Yao Qi <yao@codesourcery.com>
14577
14578 * tracepoint.c (cmd_qtsv): Adjust debug message.
14579 Don't check CUR_TPOINT.
14580
18c1b81a
YQ
145812012-08-28 Yao Qi <yao@codesourcery.com>
14582
14583 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14584 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14585 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14586 Remove declarations of xmalloc, xreallloc, xstrdup and
14587 freeargv.
14588 * Makefile.in (libiberty_h): New.
14589 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14590 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14591
dc82f37b
YQ
145922012-08-23 Yao Qi <yao@codesourcery.com>
14593
14594 * server.h: Remove declaration of 'xsnprintf'.
14595
406b1477
KS
145962012-08-22 Keith Seitz <keiths@redhat.com>
14597
14598 * server.h: Include build-gnulib-gbserver/config.h.
14599 * gdbreplay.c: Likewise.
14600
e6712ff1
DE
146012012-08-08 Doug Evans <dje@google.com>
14602
14603 * Makefile.in (SFILES): Add gdb_vecs.c.
14604 (OBS): Add gdb_vecs.o.
14605 (gdb_vecs_h, host_defs_h): New variables.
14606 (thread-db.o): Add $(gdb_vecs_h) dependency.
14607 (gdb_vecs.o): New rule.
14608 * thread-db.c: #include "gdb_vecs.h".
14609 (thread_db_load_search): Use a vector to iterate over path elements.
14610 Handle text appearing after "$pdir".
14611
14612 * configure.ac: Add check for strstr.
14613 * config.in: Regenerate.
14614 * configure: Regenerate.
14615
7c3270ae
UW
146162012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14617
14618 * hostio.c (handle_pread): If pread fails, fall back to attempting
14619 lseek/read.
14620 (handle_pwrite): Likewise for pwrite.
14621
b62e2b27
UW
146222012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14623
14624 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14625 between unsupported TYPE and unimplementable ADDR/LEN combination.
14626 (arm_insert_point): Act on new return value.
14627
78a99e91
PA
146282012-07-31 Pedro Alves <palves@redhat.com>
14629
14630 * server.c (process_point_options): Only skip tokens if we find
14631 one that is unrecognized. Don't treat 'X' specially while
14632 skipping unrecognized tokens.
14633
fcf303ab
UW
146342012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14635
14636 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14637 to 4-byte-align HW breakpoint addresses for Thumb.
14638
7255706c
YQ
146392012-07-27 Yao Qi <yao@codesourcery.com>
14640
14641 PR remote/14161.
14642
14643 * server.h: Declare gdb_agent_about_to_close.
14644 * target.c (kill_inferior): Include "agent.h".
14645 New. Send command 'kill'.
14646 * target.h (kill_inferior): Removed macro.
14647 * tracepoint.c (gdb_agent_about_to_close): New.
14648 (gdb_agent_helper_thread): Handle command 'close'.
14649 Wait endlessly until the inferior stops.
14650 Install gdb_agent_remove_socket to atexit hook.
14651 (agent_socket_name): New static variable.
14652 (gdb_agent_socket_init): Replace local variable 'name' with
14653 'agent_socket_name'.
14654 (gdb_agent_remove_socket): New.
14655
5a3f286f
YQ
146562012-07-27 Yao Qi <yao@codesourcery.com>
14657
14658 * server.c (process_point_options): Stop at 'X' when parsing.
14659
961bd387
ME
146602012-07-19 Michael Eager <eager@eagercon.com>
14661
a261b8f5 14662 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14663 to hw_execute.
14664 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14665 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14666 hardware breakpoint.
14667
aa7c7447
JK
146682012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14669
14670 * gdbserver/linux-low.c (initialize_low): Call
14671 linux_ptrace_init_warnings.
14672
7f216e7c
DE
146732012-07-02 Doug Evans <dje@google.com>
14674
14675 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14676 pointer to int.
14677
d3ce09f5
SS
146782012-07-02 Stan Shebs <stan@codesourcery.com>
14679
14680 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14681 (ax.o): Add it to build rule.
14682 (ax-ipa.o): Ditto.
14683 (OBS): Add format.o.
14684 (IPA_OBS): Add format.o.
14685 * server.c (handle_query): Claim support for breakpoint commands.
14686 (process_point_options): Add command case.
14687 (process_serial_event): Leave running if there are printfs in
14688 effect.
14689 * mem-break.h (any_persistent_commands): Declare.
14690 (add_breakpoint_commands): Declare.
14691 (gdb_no_commands_at_breakpoint): Declare.
14692 (run_breakpoint_commands): Declare.
14693 * mem-break.c (struct point_command_list): New struct.
14694 (struct breakpoint): New field command_list.
14695 (any_persistent_commands): New function.
14696 (add_commands_to_breakpoint): New function.
14697 (add_breakpoint_commands): New function.
14698 (gdb_no_commands_at_breakpoint): New function.
14699 (run_breakpoint_commands): New function.
14700 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14701 locally.
14702 * ax.c: Include format.h.
14703 (ax_printf): New function.
14704 (gdb_eval_agent_expr): Add printf opcode.
14705
2f8f6aed
YQ
147062012-06-13 Yao Qi <yao@codesourcery.com>
14707
14708 * server.c (start_inferior): Remove duplicated writes to fields
14709 'last_resume_kind' and 'last_status' of 'current_inferior'.
14710
0c9070b3
YQ
147112012-06-12 Yao Qi <yao@codesourcery.com>
14712 Pedro Alves <palves@redhat.com>
14713
14714 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14715 comment.
14716 * server.c (handle_v_cont): Extend comment.
14717
c52daf70
YQ
147182012-06-11 Yao Qi <yao@codesourcery.com>
14719
14720 * linux-low.c (linux_attach): Add 'static'.
14721
d38bbb0a
YQ
147222012-06-06 Yao Qi <yao@codesourcery.com>
14723
14724 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14725
89dc0afd
JK
147262012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14727
14728 Fix gcc -flto compilation warning.
14729 * server.c (main): Make variable multi_mode and attach volatile.
14730
75f62ce7
TJB
147312012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14732
14733 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14734 if the platform doesn't know about it.
14735
65f479b6
PA
147362012-05-30 Jeff Kenton <jkenton@tilera.com>
14737
14738 * Makefile.in (SFILES): Add linux-tile-low.c.
14739 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14740 * configure.srv: Handle tilegx-*-linux*.
14741 * linux-tile-low.c: New file.
14742
0c5bf5a9
JK
147432012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14744
14745 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14746
a493e3e2
PA
147472012-05-24 Pedro Alves <palves@redhat.com>
14748
14749 PR gdb/7205
14750
43aaf8b6 14751 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14752
2ea28649
PA
147532012-05-24 Pedro Alves <palves@redhat.com>
14754
14755 PR gdb/7205
14756
14757 Replace target_signal with gdb_signal throughout.
14758
8d409d16
MR
147592012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14760
14761 * linux-low.c (linux_store_registers): Avoid the copying sequence
14762 when no data has been retrieved by ptrace.
14763
23512c01
MGD
147642012-05-22 Will Deacon <will.deacon@arm.com>
14765
14766 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14767 Include asm/ptrace.h.
14768 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14769 already defined.
14770
4934b29e
MR
147712012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14772
14773 * linux-low.c (linux_store_registers): Don't re-retrieve data
14774 with ptrace that has already been obtained from /proc. Always
14775 copy any data retrieved with ptrace to the buffer supplied.
14776
bde24c0a
PA
147772012-05-11 Yao Qi <yao@codesourcery.com>
14778 Pedro Alves <palves@redhat.com>
14779
14780 * linux-low.c (enum stopping_threads_kind): New.
14781 (stopping_threads): Change type to `enum stopping_threads_kind'.
14782 (handle_extended_wait): If stopping and suspending threads, leave
14783 the new_lwp suspended too.
14784 (linux_wait_for_event): Adjust.
14785 (stop_all_lwps): Set `stopping_threads' to
14786 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14787 whether we're suspending threads or just stopping them. Assert no
14788 recursion happens.
14789
623b6bdf
YQ
147902012-04-29 Yao Qi <yao@codesourcery.com>
14791
14792 * server.h: Move some code to ...
14793 * gdbthread.h: ... here. New.
14794 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14795 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14796 (nto-low.o, win32-low.o): Likewise.
14797 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14798 * regcache.c, remote-utils.c, server.c: Likewise.
14799 * target.c, tracepoint.c, win32-low.c: Likewise.
14800
f15f9948
TJB
148012012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14802
14803 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14804 (PTRACE_ARG4_TYPE): Likewise.
14805 (PTRACE_XFER_TYPE): Likewise.
14806 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14807 ptrace to PTRACE_ARG3_TYPE.
14808 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14809 (PTRACE_ARG4_TYPE): Likewise.
14810 (PTRACE_XFER_TYPE): Likewise.
14811 (linux_detach_one_lwp): Cast fourth argument of
14812 ptrace to long then PTRACE_ARG4_TYPE.
14813 (regsets_fetch_inferior_registers): Cast third argument of
14814 ptrace to long then PTRACE_ARG3_TYPE.
14815 (regsets_store_inferior_registers): Likewise.
14816
38ea300a
PA
148172012-04-20 Pedro Alves <palves@redhat.com>
14818
14819 * configure: Regenerate.
14820
c971b7fa
PA
148212012-04-19 Pedro Alves <palves@redhat.com>
14822
43aaf8b6 14823 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14824 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14825 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14826 (all, install-only, uninstall, clean-info, all-lib, clean): No
14827 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14828 (maintainer-clean realclean distclean): Use subdir_do.
14829 (subdir_do): New.
14830 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14831 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14832 * acinclude.m4: Include acx_configure_dir.m4.
14833 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14834 calls. Call AC_PROG_RANLIB. Configure gnulib using
14835 ACX_CONFIGURE_DIR.
14836 (GNULIB): New.
14837 (GNULIB_STDINT_H): Adjust.
14838 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14839 * gdbreplay.c: Include build-gnulib/config.h.
14840 * server.h: Likewise.
14841 * aclocal.m4: Regenerate.
14842 * config.in: Regenerate.
14843 * configure: Regenerate.
c971b7fa 14844
809277f8
PA
148452012-04-19 Pedro Alves <palves@redhat.com>
14846
14847 * Makefile.in (LIBGNU, INCGNU): Adjust.
14848 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14849 (all, install-only, uninstall, clean-info, all-lib, clean)
14850 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14851 * configure.ac: Adjust AC_OUTPUT output.
14852 * aclocal.m4: Regenerate.
14853 * configure: Regenerate.
14854
fd9bb8b8
PA
148552012-04-19 Pedro Alves <palves@redhat.com>
14856
14857 * Makefile.in (generated_files): New.
14858 (server_h): Remove the explicit dependency on config.h, and depend
14859 on $generated_files.
14860
1c298c66
PA
148612012-04-19 Pedro Alves <palves@redhat.com>
14862
14863 * Makefile.in (INCGNU): Add -Ignulib.
14864
57c4b50b
PA
148652012-04-19 Pedro Alves <palves@redhat.com>
14866
14867 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14868 (INCGNU): ... this, and spell out -I here.
14869 (GNULIB_LIB): Rename to ...
14870 (LIBGNU): ... this.
14871 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14872
1030e047
PA
148732012-04-19 Pedro Alves <palves@redhat.com>
14874
14875 * config.in: Regenerate.
14876
447d4319
PA
148772012-04-19 Pedro Alves <palves@redhat.com>
14878
14879 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14880 * server.h (memmem): Remove declaration.
14881 * config.in: Regenerate.
14882 * configure: Regenerate.
14883
aad9eab9
YQ
148842012-04-19 Yao Qi <yao@codesourcery.com>
14885
14886 * Makefile.in (SFILES): Add common/vec.c.
14887 (OBS): Add vec.o.
14888 (vec.o): New rule.
14889
3e10640f
YQ
148902012-04-19 Yao Qi <yao@codesourcery.com>
14891
14892 * remote-utils.c (prepare_resume_reply): Replace with macro
14893 target_core_of_thread.
14894 * server.c (handle_qxfer_threads_proper): Likewise.
14895 * target.h (traget_core_of_thread): New macro.
14896
71622373
PA
148972012-04-18 Pedro Alves <palves@redhat.com>
14898
14899 * aclocal.m4: Regenerate.
14900 * configure: Regenerate.
14901
80d26939
YQ
149022012-04-16 Yao Qi <yao@codesourcery.com>
14903
14904 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14905 duplicated on address.
14906
42476b70
YQ
149072012-04-16 Yao Qi <yao@codesourcery.com>
14908
14909 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14910 (struct tracepoint_action_ops) <send>: New field.
14911 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14912 (agent_expr_send, x_tracepoint_action_send): New.
14913 (l_tracepoint_action_send): New.
14914 (cmd_qtdp): Download and install tracepoint
14915 according to `use_agent'.
14916 (run_inferior_command): Add one more parameter `len'.
14917 Update callers.
14918 (tracepoint_send_agent): New.
14919 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14920
7bc83639
YQ
149212012-04-16 Yao Qi <yao@codesourcery.com>
14922
14923 * tracepoint.c (download_tracepoints): Moved to ...
14924 (cmd_qtstart): ... here.
14925
5f18041e
YQ
149262012-04-14 Yao Qi <yao@codesourcery.com>
14927
14928 * tracepoint.c: Include inttypes.h.
14929 (struct collect_memory_action): Use sized types.
14930 (struct tracepoint): Likewise.
14931 (cmd_qtdp, stop_tracing): Update print specifiers.
14932 (cmd_qtp, response_tracepoint): Likewise.
14933 (collect_data_at_tracepoint): Likewise.
14934 (collect_data_at_step): Likewise.
14935
55a8c076
YQ
149362012-04-14 Yao Qi <yao@codesourcery.com>
14937
14938 Import gnulib module inttypes.
14939 * aclocal.m4, config.in, configure: Regenerated.
14940
dc750257
YQ
149412012-04-14 Yao Qi <yao@codesourcery.com>
14942
14943 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14944 Makefile and config.status at last.
14945
0ab5faf9
YQ
149462012-04-13 Yao Qi <yao@codesourcery.com>
14947
14948 * tracepoint.c: Include stdint.h unconditionally.
14949
18f5fd81
TJB
149502012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14951
14952 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14953 on BFD_HAVE_SYS_PROCFS_TYPE.
14954 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14955 * configure: Regenerate.
14956 * config.in: Likewise.
14957
4d47af5c
L
149582012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14959
14960 * Makefile.in (clean): Also remove x32.c x32-linux.c
14961 x32-avx.c x32-avx-linux.c.
14962 (x32.o): New target.
14963 (x32.c): Likewise.
14964 (x32-linux.o): Likewise.
14965 (x32-linux.c): Likewise.
14966 (x32-avx.o): Likewise.
14967 (x32-avx.c): Likewise.
14968 (x32-avx-linux.o): Likewise.
14969 (x32-avx-linux.c): Likewise.
14970
14971 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14972 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14973 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14974 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14975 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14976 i386/x32-avx-linux.xml.
14977
14978 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14979 (init_registers_x32_avx_linux): Likwise.
14980 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14981 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14982
ecedbe58
PA
149832012-04-13 Pedro Alves <palves@redhat.com>
14984
14985 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14986 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14987 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14988 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14989 the sub-make.
14990
c92b5177
L
149912012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14992
14993 * linux-x86-low.c (compat_x32_clock_t): New.
14994 (compat_x32_siginfo_t): Likewise.
14995 (compat_x32_siginfo_from_siginfo): Likewise.
14996 (siginfo_from_compat_x32_siginfo): Likewise.
14997 (linux_is_elf64): Likewise.
14998 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14999 and siginfo_from_compat_x32_siginfo for x32.
15000 (x86_arch_setup): Set linux_is_elf64.
15001
214d508e
L
150022012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15003
15004 PR gdb/13969
15005 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15006 e_machine field.
15007 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15008 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15009 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15010 compatible with process.
15011
c9a1864a
YQ
150122012-04-12 Yao Qi <yao@codesourcery.com>
15013
15014 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15015 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15016 (install-only, install-info, clean): Handle sub dir gnulib.
15017 (all-lib, am--refresh): New targets.
15018 (memmem.o): Remove target.
15019 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15020 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15021 (AC_REPLACE_FUNCS): Remove memmem.
15022 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15023 (AC_OUTPUT): Generate Makefile in gnulib/.
15024 * aclocal.m4, config.in, configure: Regenerated.
15025
367ba2c2
MR
150262012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15027
15028 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15029
9d236627
PA
150302012-04-05 Pedro Alves <palves@redhat.com>
15031
15032 -Werror=strict-aliasing
15033
15034 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15035 pointer.
15036
111217b3
PA
150372012-04-04 Pedro Alves <palves@redhat.com>
15038
15039 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15040 (sparc_store_gregset_from_stack, sparc_store_gregset)
15041 (sparc_breakpoint_at): Fix formatting.
15042
8365dcf5
TJB
150432012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15044
15045 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15046 are available.
15047 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15048 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15049 * config.in: Regenerate.
15050 * configure: Likewise.
15051
689cc2ae
PA
150522012-03-29 Pedro Alves <palves@redhat.com>
15053
15054 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15055 Correct ptrace arguments.
15056
c14dfd32
PA
150572012-03-28 Pedro Alves <palves@redhat.com>
15058
15059 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15060 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15061 (IA64_FR1_REGNUM): New defines.
15062 (ia64_fetch_register): New.
15063 (the_low_target): Install it.
15064 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15065 field.
15066 * linux-low.c (linux_fetch_registers): Try the
15067 the_low_target.fetch_register hook first.
15068
15069 * linux-arm-low.c (the_low_target): Adjust.
15070 * linux-bfin-low.c (the_low_target): Adjust.
15071 * linux-cris-low.c (the_low_target): Adjust.
15072 * linux-crisv32-low.c (the_low_target): Adjust.
15073 * linux-m32r-low.c (the_low_target): Adjust.
15074 * linux-m68k-low.c (the_low_target): Adjust.
15075 * linux-mips-low.c (the_low_target): Adjust.
15076 * linux-ppc-low.c (the_low_target): Adjust.
15077 * linux-s390-low.c (the_low_target): Adjust.
15078 * linux-sh-low.c (the_low_target): Adjust.
15079 * linux-sparc-low.c (the_low_target): Adjust.
15080 * linux-tic6x-low.c (the_low_target): Adjust.
15081 * linux-x86-low.c (the_low_target): Adjust.
15082 * linux-xtensa-low.c (the_low_target): Adjust.
15083
63c88e13
PA
150842012-03-26 Pedro Alves <palves@redhat.com>
15085
15086 * server.c (handle_qxfer_libraries): Don't bail early if
15087 the_target->qxfer_libraries_svr4 is not NULL.
15088
fb723180
PA
150892012-03-26 Pedro Alves <palves@redhat.com>
15090
15091 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15092
0afae3cf
PA
150932012-03-23 Pedro Alves <palves@redhat.com>
15094
15095 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15096 "library-list-svr4" element's start tag when the the DSO list is
15097 empty.
15098
485f1ee4
PA
150992012-03-23 Pedro Alves <palves@redhat.com>
15100
15101 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15102 a variable whose type size is the same as the inferior's pointer
15103 size.
15104
a5362b9a
TS
151052012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15106
15107 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15108 struct siginfo.
15109 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15110 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15111 * linux-low.h: Include <signal.h>.
15112 (struct siginfo): Remove forward declaration.
15113 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15114 struct siginfo.
15115
d226c142
MF
151162012-03-21 Mike Frysinger <vapier@gentoo.org>
15117
15118 * .gitignore: Ignore more files.
15119
122f36ef
PA
151202012-03-19 Pedro Alves <palves@redhat.com>
15121 Jan Kratochvil <jan.kratochvil@redhat.com>
15122
15123 * server.c (cont_thread, general_thread): Add describing comments.
15124 (start_inferior): Clear `cont_thread'.
15125 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15126 of a process.
15127
fc3e5175
YQ
151282012-03-15 Yao Qi <yao@codesourcery.com>
15129
15130 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15131 handling to ...
15132 (cmd_qtdp): ... here.
15133
8d0d92cd
YQ
151342012-03-15 Yao Qi <yao@codesourcery.com>
15135
15136 * tracepoint.c (struct tracepoint_action_ops): New.
15137 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15138 (m_tracepoint_action_download): New.
15139 (r_tracepoint_action_download): New.
15140 (x_tracepoint_action_download): New.
15141 (l_tracepoint_action_download): New.
15142 (add_tracepoint_action): Install `action->ops' according type.
15143 (download_tracepoint_1): Move code `download' function pointer
15144 of various tracepoint_action_ops.
15145
87b0bb13
JK
151462012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15147
15148 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15149 linux_ptrace_attach_warnings.
15150
5f572dec
JK
151512012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15152
15153 * Makefile.in (linux-ptrace.o): New.
15154 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15155 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15156 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15157 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15158 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15159 of these targets.
15160 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15161
f4647387
YQ
151622012-03-08 Yao Qi <yao@codesourcery.com>
15163 Pedro Alves <palves@redhat.com>
15164
15165 Fix PR server/13392.
15166 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15167 offset of JMP insn.
15168 * tracepoint.c (remove_tracepoint): New.
15169 (cmd_qtdp): Call remove_tracepoint when failed to install.
15170
9b224c5e
PA
151712012-03-07 Pedro Alves <palves@redhat.com>
15172
15173 * linux-low.c (get_detach_signal): New.
15174 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15175 Pass on pending signals to PTRACE_DETACH. Check the result of the
15176 ptrace call.
15177 * server.c (program_signals, program_signals_p): New.
15178 (handle_general_set): Handle QProgramSignals.
15179 * server.h (program_signals, program_signals_p): Declare.
15180
e237a7e2
JK
151812012-03-05 Pedro Alves <palves@redhat.com>
15182 Jan Kratochvil <jan.kratochvil@redhat.com>
15183
15184 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15185 New comment why.
15186
5808517f
YQ
151872012-03-03 Yao Qi <yao@codesourcery.com>
15188
15189 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15190 agent_look_up_symbols.
15191
58b4daa5
YQ
151922012-03-03 Yao Qi <yao@codesourcery.com>
15193
15194 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15195 (linux-x86-low.o): Likewise.
15196 * server.h: Remove in_process_agent_loaded.
15197 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15198 common/agent.c.
15199 Update callers.
15200
8ffcbaaf
YQ
152012012-03-03 Yao Qi <yao@codesourcery.com>
15202
15203 * tracepoint.c (gdb_agent_capability): New global.
15204 (in_process_agent_loaded_ust): Renamed to
15205 `in_process_agent_supports_ust'.
15206 Update callers.
15207 (in_process_agent_supports_ust): Call agent_capability_check.
15208 (clear_installed_tracepoints): Assert that agent supports
15209 agent.
15210
d1feda86
YQ
152112012-03-03 Yao Qi <yao@codesourcery.com>
15212
15213 * linux-low.c (linux_supports_agent): New.
15214 (linux_target_ops): Initialize field `supports_agent' with
15215 linux_supports_agent.
15216 * target.h (struct target_ops) <supports_agent>: New.
15217 (target_supports_agent): New macro.
15218 * server.c (handle_general_set): Handle packet 'QAgent'.
15219 (handle_query): Send `QAgent+'.
15220 * Makefile.in (server.o): Depends on agent.h.
15221
2fa291ac
YQ
152222012-03-03 Yao Qi <yao@codesourcery.com>
15223
15224 * Makefile.in (OBS): Add agent.o.
15225 Add new rule for agent.o.
15226 Track dependence of tracepoint.c on agent.h.
15227 * tracepoint.c (run_inferior_command_1):
15228 (run_inferior_command): Call agent_run_command.
15229 (gdb_ust_connect_sync_socket): Deleted. Move it to
15230 common/agent.c.
15231 (resume_thread, stop_thread): Likewise.
15232 (gdb_ust_socket_init): Renamed to ...
15233 (gdb_agent_socket_init): ... New.
15234 (gdb_ust_thread): Renamed to ...
15235 (gdb_agent_helper_thread): ... New.
15236 (gdb_ust_init): Move some code to ...
15237 (gdb_agent_init): ... here. New.
15238 [HAVE_UST]: Call gdb_ust_init.
15239 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15240 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15241 * config.in, configure: Regenerated.
15242
05044653
PA
152432012-03-02 Pedro Alves <palves@redhat.com>
15244
15245 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15246 * linux-low.c (struct simple_pid_list): New.
15247 (stopped_pids): New a struct simple_pid_list pointer.
15248 (add_to_pid_list, pull_pid_from_list): New.
15249 (handle_extended_wait): Don't assume the first signal new children
15250 report is SIGSTOP. Adjust call to pull_pid_from_list.
15251 (linux_wait_for_lwp): Adjust.
15252
8d00225b
YQ
152532012-03-02 Yao Qi <yao@codesourcery.com>
15254
15255 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15256 debug log.
15257
19560ba5
YQ
152582012-03-02 Yao Qi <yao@codesourcery.com>
15259
15260 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15261 `stop_pc' and `tpoint'. Update caller.
15262
1faeff08
MR
152632012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15264
15265 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15266 * linux-low.c (use_linux_regsets): New macro.
15267 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15268 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15269 (linux_register_in_regsets): New function.
15270 (usr_fetch_inferior_registers): Skip registers covered by
15271 regsets.
15272 (usr_store_inferior_registers): Likewise.
15273 (usr_fetch_inferior_registers): New macro.
15274 (usr_store_inferior_registers): Likewise.
15275 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15276 (linux_store_registers): Likewise.
15277 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15278 prototype.
15279 (init_registers_mips64_dsp_linux): Likewise.
15280 (init_registers_mips_linux): New macro.
15281 (init_registers_mips_dsp_linux): Likewise.
15282 (mips_dsp_num_regs): Likewise.
15283 (DSP_BASE, DSP_CONTROL): New fallback macros.
15284 (mips_base_regs): New macro.
15285 (mips_regmap): Use it. Fix the size.
15286 (mips_dsp_regmap): New variable.
15287 (mips_dsp_regset_bitmap): Likewise.
15288 (mips_arch_setup): New function.
15289 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15290 than mips_regmap.
15291 (mips_cannot_store_register): Likewise.
15292 (the_low_target): Update .arch_setup, .num_regs and .regmap
15293 initializers. Add .regset_bitmap initializer.
15294 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15295 initializer.
15296 * linux-bfin-low.c (the_low_target): Likewise.
15297 * linux-cris-low.c (the_low_target): Likewise.
15298 * linux-crisv32-low.c (the_low_target): Likewise.
15299 * linux-ia64-low.c (the_low_target): Likewise.
15300 * linux-m32r-low.c (the_low_target): Likewise.
15301 * linux-m68k-low.c (the_low_target): Likewise.
15302 * linux-ppc-low.c (the_low_target): Likewise.
15303 * linux-s390-low.c (the_low_target): Likewise.
15304 * linux-sh-low.c (the_low_target): Likewise.
15305 * linux-sparc-low.c (the_low_target): Likewise.
15306 * linux-tic6x-low.c (the_low_target): Likewise.
15307 * linux-x86-low.c (the_low_target): Likewise.
15308 * linux-xtensa-low.c (the_low_target): Likewise.
15309 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15310 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15311 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15312 srv_xmlfiles.
15313 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15314 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15315
c03e6ccc
YQ
153162012-02-29 Yao Qi <yao@codesourcery.com>
15317 Pedro Alves <palves@redhat.com>
15318
15319 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15320 `step_over_finished' is true.
15321
644cebc9
PA
153222012-02-27 Pedro Alves <palves@redhat.com>
15323
15324 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15325 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15326
c14d7ab2
PA
153272012-02-27 Pedro Alves <palves@redhat.com>
15328
15329 PR server/9684
15330 * linux-low.c (pid_is_stopped): New.
15331 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15332
412c89dd
LM
153332012-02-25 Luis Machado <lgustavo@codesourcery.com>
15334
15335 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15336 of conditions.
15337
b745defe
MR
153382012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15339
15340 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15341
9f3a5c85
LM
153422012-02-24 Luis Machado <lgustavo@codesourcery>
15343
15344 * server.c (handle_query): Advertise support for target-side
15345 breakpoint condition evaluation.
15346 (process_point_options): New function.
15347 (process_serial_event): When inserting a breakpoint, check for
15348 a target-side condition that should be evaluated.
15349
15350 * mem-break.c: Include regcache.h and ax.h.
15351 (point_cond_list_t): New data structure.
15352 (breakpoint) <cond_list>: New field.
15353 (find_gdb_breakpoint_at): Make non-static.
15354 (delete_gdb_breakpoint_at): Clear any target-side
15355 conditions.
15356 (clear_gdb_breakpoint_conditions): New function.
15357 (add_condition_to_breakpoint): Likewise.
15358 (add_breakpoint_condition): Likewise.
15359 (gdb_condition_true_at_breakpoint): Likewise.
15360 (gdb_breakpoint_here): Return result directly instead
15361 of going through a local variable.
15362
15363 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15364 (clear_gdb_breakpoint_conditions): Likewise.
15365 (add_breakpoint_condition): Likewise.
15366 (gdb_condition_true_at_breakpoint): Likewise.
15367
15368 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15369 (need_step_over_p): Take target-side breakpoint condition into
15370 consideration.
15371
5e1dc496
LM
153722012-02-24 Luis Machado <lgustavo@codesourcery>
15373
15374 * server.h: Include tracepoint.h.
15375 (agent_mem_read, agent_get_trace_state_variable_value,
15376 agent_set_trace_state_variable_value,
15377 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15378 get_set_tsv_func_addr): New prototypes.
15379
15380 * ax.h: New include file.
15381 * ax.c: New source file.
15382
15383 * tracepoint.c: Include ax.h.
15384 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15385 agent_expr, eval_result_type): Move to ax.h.
15386 (parse_agent_expr): Rename to ...
15387 (gdb_parse_agent_expr): ... this, make it non-static and move
15388 to ax.h.
15389 (unparse_agent_expr) Rename to ...
15390 (gdb_unparse_agent_expr): ... this, make it non-static and move
15391 to ax.h.
15392 (eval_agent_expr): Rename to ...
15393 (eval_tracepoint_agent_expr): ... this.
15394 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15395 forward declarations.
15396 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15397 (agent_get_trace_state_variable_value): New function.
15398 (agent_set_trace_state_variable_value): New function.
15399 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15400 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15401 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15402 (condition_true_at_tracepoint): Likewise.
15403 (parse_agent_expr): Rename to ...
15404 (gdb_parse_agent_expr): ... this and move to ax.c.
15405 (unparse_agent_expr): Rename to ...
15406 (gdb_unparse_agent_expr): ... this and move to ax.c.
15407 (gdb_agent_op_name): Move to ax.c.
15408 (eval_agent_expr): Rename to ...
15409 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15410 and move to ax.c.
15411 (eval_tracepoint_agent_expr): New function.
15412 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15413 non-static.
5e1dc496
LM
15414 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15415 ax.c.
15416 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15417 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15418 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15419 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15420 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15421 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15422 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15423 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15424 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15425 (compile_bytecodes): Remove forward declaration.
15426 (is_goto_target): Move to ax.c.
15427 (compile_bytecodes): Move to ax.c and call
15428 agent_get_trace_state_variable_value (...) and
15429 agent_set_trace_state_variable_value (...).
15430
15431 * Makefile.in: Update ax.c and IPA dependencies.
15432
277e4e52
PA
154332012-02-24 Pedro Alves <palves@redhat.com>
15434
15435 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15436 (cmd_bigqtbuffer_circular): ... this. Only handle
15437 'QTBuffer:circular:'.
15438 (handle_tracepoint_general_set): Adjust.
15439
bf4c19f7
YQ
154402012-02-16 Yao Qi <yao@codesourcery.com>
15441
15442 * inferiors.c: Move code to ...
15443 * dll.c: .... here. New.
15444 * server.h: Declare clear_dlls.
15445 * Makefile.in (SFILES): Add dll.c.
15446 (OBS): Add dll.o
15447 (dll.o): New rule.
15448
d73f2619
YQ
154492012-02-11 Yao Qi <yao@codesourcery.com>
15450
15451 * server.c: (handle_monitor_command): Add a new parameter
15452 `own_buf'.
15453 (handle_query): Update caller.
15454
f8255c2a
JB
154552012-02-09 Joel Brobecker <brobecker@adacore.com>
15456
15457 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15458 * configure, config.in: Regenerate.
15459 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15460 is not defined.
15461
da84f473
PA
154622012-02-02 Pedro Alves <palves@redhat.com>
15463
15464 Try SIGKILL first, then PTRACE_KILL.
15465 * linux-low.c (linux_kill_one_lwp): New.
15466 (linux_kill_one_lwp): Rename to ...
15467 (kill_one_lwp_callback): ... this. Use the new
15468 linux_kill_one_lwp.
15469
e886a173
PA
154702012-02-02 Pedro Alves <palves@redhat.com>
15471
15472 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15473 inferior.
15474
be07f1a2
PA
154752012-01-27 Pedro Alves <palves@redhat.com>
15476
15477 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15478 (elf_64_file_p): Make static.
15479 (linux_pid_exe_is_elf_64_file): New.
15480 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15481 Delete declarations.
15482 (linux_pid_exe_is_elf_64_file): Declare.
15483 * linux-x86-low.c (x86_arch_setup): Use
15484 linux_pid_exe_is_elf_64_file.
15485
d8301ad1
JK
154862012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15487
15488 * linux-low.c (linux_wait_for_event_1): Rename to ...
15489 (linux_wait_for_event): ... here and merge it with former
15490 linux_wait_for_event - new variable wait_ptid, use it.
15491 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15492
01b17894
PA
154932012-01-23 Pedro Alves <palves@redhat.com>
15494
15495 * server.c (main): Avoid yet another case of infinite loop while
15496 detaching/killing after a longjmp.
15497
e825046f
JK
154982012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15499
15500 Code cleanup.
15501 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15502
b9e7b9c3
UW
155032012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15504
15505 * hostio.c (handle_readlink): New function.
15506 (handle_vFile): Call it to handle "vFile:readlink" packets.
15507
901f9912
UW
155082012-01-20 Pedro Alves <palves@redhat.com>
15509 Ulrich Weigand <ulrich.weigand@linaro.org>
15510
15511 * server.c (handle_v_requests): Only support vAttach and vRun to
15512 start multiple processes when in extended protocol mode.
15513
fc1ab1a0
PA
155142012-01-17 Pedro Alves <palves@redhat.com>
15515
15516 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15517 memalign plus mprotect to allocate the scratch buffer.
15518
7d5d4e98
PA
155192012-01-13 Pedro Alves <palves@redhat.com>
15520
15521 * server.c (attach_inferior): Clear `cont_thread'.
15522
f128d5e9
PA
155232012-01-13 Pedro Alves <palves@redhat.com>
15524
15525 * server.c (main): Avoid infinite loop while detaching/killing
15526 after a longjmp.
15527
06db92f0
DE
155282012-01-09 Doug Evans <dje@google.com>
15529
15530 * server.c (start_inferior): Set last_ptid in --wrapper case.
15531
32d92999
YQ
155322012-01-06 Yao Qi <yao@codesourcery.com>
15533
15534 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15535 defined.
15536 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15537
5e0a92a9
YQ
155382012-01-04 Yao Qi <yao@codesourcery.com>
15539
15540 * tracepoint.c (cmd_qtdp): Print debug message
15541 for static tracepoint.
15542
ae639e8c
YQ
155432012-01-04 Yao Qi <yao@codesourcery.com>
15544
15545 * tracepoint.c (trace_vdebug): Differentiate debug message
15546 between gdbserver and IPA.
15547
f72429c5
YQ
155482012-01-03 Yao Qi <yao@codesourcery.com>
15549
15550 * tracepoint.c (tracepoint_was_hit): Don't collect for
15551 static tracepoint.
15552
12c3e59c
JB
155532012-01-02 Joel Brobecker <brobecker@adacore.com>
15554
15555 * terminal.h: Reformat copyright header.
15556
67827812
JB
155572012-01-02 Joel Brobecker <brobecker@adacore.com>
15558
15559 * server.c (gdbserver_version): Update copyright year.
15560 * gdbreplay.c (gdbreplay_version): Likewise.
15561
3e52c33d
JK
155622011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15563
15564 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15565
15566 Revert:
15567 2011-12-18 Hui Zhu <teawater@gmail.com>
15568 * linux-low.c (linux_create_inferior): Save return value to ret.
15569
66f1260e
HZ
155702011-12-18 Hui Zhu <teawater@gmail.com>
15571
15572 * linux-low.c (linux_create_inferior): Save return value to ret.
15573
e77616d7
DE
155742011-12-16 Doug Evans <dje@google.com>
15575
e7b06c57
DE
15576 * linux-low.c (linux_create_inferior): If stdio connection,
15577 redirect stdin from /dev/null, stdout to stderr.
15578 * remote-utils.c (remote_is_stdio): New static global.
15579 (remote_connection_is_stdio): New function.
15580 (remote_prepare): Handle stdio connection.
15581 (remote_open): Ditto.
15582 (remote_close): Don't close stdin for stdio connections.
15583 (read_prim,write_prim): New functions. Replace all calls to
15584 read/write to these.
15585 * server.c (main): Watch for "-" argument. Move call to
15586 remote_prepare before start_inferior.
15587 * server.h (STDIO_CONNECTION_NAME): New macro.
15588 (remote_connection_is_stdio): Declare.
15589
e77616d7
DE
15590 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15591 in debugging output.
15592
82067193
YQ
155932011-12-15 Yao Qi <yao@codesourcery.com>
15594
15595 * tracepoint.c: Include sys/syscall.h.
15596 (gdb_ust_thread): Remove preprocessor conditional.
15597
82bfbe7e
PA
155982011-12-14 Pedro Alves <pedro@codesourcery.com>
15599
15600 * linux-low.c (linux_detach_one_lwp): Call
15601 the_low_target.prepare_to_resume before detaching.
15602
712c6575
YQ
156032011-12-14 Yao Qi <yao@codesourcery.com>
15604
15605 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15606 of write.
15607
d54d1edf
YQ
156082011-12-14 Yao Qi <yao@codesourcery.com>
15609
15610 * i386-low.c (i386_low_stopped_data_address): Initialize local
15611 variable `control'.
15612
6210a125
PA
156132011-12-13 Pedro Alves <pedro@codesourcery.com>
15614
15615 PR remote/13492
15616
15617 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15618 DR_CONTROL unless necessary. Extend comments.
15619 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15620 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15621
2ece8244
YQ
156222011-12-13 Yao Qi <yao@codesourcery.com>
15623
15624 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15625 macros.
15626 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15627
784867a5
JK
156282011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15629
15630 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15631 Print new debug message for such case.
15632
6bf36717
JK
156332011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15634
15635 Fix overlapping memcpy.
15636 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15637 the read_inferior_memory transfer.
15638 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15639 write_inferior_memory transfer.
15640 (set_fast_tracepoint_jump): New variable buf. Use it for the
15641 read_inferior_memory and write_inferior_memory transfers.
15642 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15643 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15644 Use it for the write_inferior_memory transfer.
15645 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15646 buffers.
15647
50275556
MR
156482011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15649
15650 * linux-low.c (fetch_register, store_register): Make code
15651 consistent, fix formatting.
15652
7325beb4
MR
156532011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15654
15655 * linux-low.c (usr_store_inferior_registers): Factor out code
15656 to handle individual registers into...
15657 (store_register): ... this new function.
15658
c642a434
UW
156592011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15660
15661 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15662 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15663 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15664 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15665 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15666 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15667 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15668 (srv_xmlfiles): Add new XML files.
15669
15670 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15671 and <sys/uio.h>.
15672 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15673 (init_registers_s390_linux32v1): Add prototype.
15674 (init_registers_s390_linux32v2): Likewise.
15675 (init_registers_s390_linux64v1): Likewise.
15676 (init_registers_s390_linux64v2): Likewise.
15677 (init_registers_s390x_linux64v1): Likewise.
15678 (init_registers_s390x_linux64v2): Likewise.
15679 (s390_num_regs): Increment to 52.
15680 (s390_regmap): Add orig_r2 register.
15681 (s390_num_regs_3264): Increment to 68.
15682 (s390_regmap_3264): Add orig_r2 register.
15683 (s390_collect_ptrace_register): Handle orig_r2 register.
15684 (s390_supply_ptrace_register): Likewise.
15685 (s390_fill_last_break): New function.
15686 (s390_store_last_break): Likewise.
15687 (s390_fill_system_call): New function.
15688 (s390_store_system_call): Likewise.
15689 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15690 register sets.
15691 (s390_check_regset): New function.
15692 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15693 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15694 Update target_regsets for available register sets.
15695
2268b414
JK
156962011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15697 Jan Kratochvil <jan.kratochvil@redhat.com>
15698
15699 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15700 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15701 New.
15702 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15703 * linux-low.h (struct process_info_private): New member r_debug.
15704 * server.c (handle_qxfer_libraries): Call
15705 the_target->qxfer_libraries_svr4.
15706 (handle_qxfer_libraries_svr4): New function.
15707 (qxfer_packets): New entry "libraries-svr4".
15708 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15709 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15710 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15711 PACKET_qXfer_libraries_svr4.
15712
d6db1fab
UW
157132011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15714
15715 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15716 PSW address/mask between 8-byte and 16-byte formats.
15717 (s390_supply_ptrace_register): Likewise.
15718 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15719 basic addressing mode bit.
15720
242f5f1c
SS
157212011-11-24 Stan Shebs <stan@codesourcery.com>
15722
15723 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15724
f196051f
SS
157252011-11-17 Stan Shebs <stan@codesourcery.com>
15726
15727 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15728 (tracing_start_time): New global.
15729 (tracing_stop_time): New global.
15730 (tracing_user_name): New global.
15731 (tracing_notes): New global.
15732 (tracing_stop_note): New global.
15733 (cmd_qtstart): Set traceframe_usage, start_time.
15734 (stop_tracing): Set stop_time.
15735 (cmd_qtstatus): Report additional status.
15736 (cmd_qtp): New function.
15737 (handle_tracepoint_query): Call it.
15738 (cmd_qtnotes): New function.
15739 (handle_tracepoint_general_set): Call it.
15740 (get_timestamp): Rename from tsv_get_timestamp.
15741
405f8e94
SS
157422011-11-14 Stan Shebs <stan@codesourcery.com>
15743 Kwok Cheung Yeung <kcy@codesourcery.com>
15744
15745 * linux-x86-low.c (small_jump_insn): New.
15746 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15747 trampoline and error message, build a trampoline and issue a small
15748 jump instruction to it.
15749 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15750 trampoline and error message.
15751 (x86_get_min_fast_tracepoint_insn_len): New.
15752 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15753 * linux-low.h (struct linux_target_ops): Add arguments to
15754 install_fast_tracepoint_jump_pad operation, add new operation.
15755 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15756 arguments.
15757 (linux_get_min_fast_tracepoint_insn_len): New function.
15758 (linux_target_op): Add new operation.
15759 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15760 (gdb_trampoline_buffer_end): Ditto.
15761 (gdb_trampoline_buffer_error): Ditto.
15762 (struct ipa_sym_addresses): Add fields for new IPA variables.
15763 (symbol_list): Add entries for new IPA variables.
15764 (struct tracepoint): Add fields to hold the address range of the
15765 trampoline used by the tracepoint.
15766 (trampoline_buffer_head): New static variable.
15767 (trampoline_buffer_tail): Ditto.
15768 (claim_trampoline_space): New function.
15769 (have_fast_tracepoint_trampoline_buffer): New function.
15770 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15771 structure.
15772 (install_fast_tracepoint): Ditto, also add error buffer argument.
15773 (cmd_qtminftpilen): New function.
15774 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15775 (fast_tracepoint_from_trampoline_address): New function.
15776 (fast_tracepoint_collecting): Handle trampoline as part of jump
15777 pad space.
15778 (set_trampoline_buffer_space): New function.
15779 (initialize_tracepoint): Initialize new IPA variables.
15780 * target.h (struct target_ops): Add arguments to
15781 install_fast_tracepoint_jump_pad operation, add new
15782 get_min_fast_tracepoint_insn_len operation.
15783 (target_get_min_fast_tracepoint_insn_len): New.
15784 (install_fast_tracepoint_jump_pad): Add arguments.
15785 * server.h (IPA_BUFSIZ): Define.
15786 * linux-i386-ipa.c: Include extra header files.
15787 (initialize_fast_tracepoint_trampoline_buffer): New function.
15788 (initialize_low_tracepoint): Call it.
15789 * server.h (set_trampoline_buffer_space): Declare.
15790 (claim_trampoline_space): Ditto.
15791 (have_fast_tracepoint_trampoline_buffer): Ditto.
15792
1e4d1764
YQ
157932011-11-14 Yao Qi <yao@codesourcery.com>
15794
15795 * server.c (handle_query): Handle InstallInTrace for qSupported.
15796 * tracepoint.c (add_tracepoint): Sort list.
15797 (install_tracepoint, download_tracepoint): New.
15798 (cmd_qtdp): Call them to install and download tracepoints.
15799 (sort_tracepoints): Removed.
15800 (cmd_qtstart): Update.
15801
5c73ff4e
YQ
158022011-11-14 Yao Qi <yao@codesourcery.com>
15803
15804 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15805 * mem-break.h: Declare.
15806 * tracepoint.c (cmd_qtstart): Move some code to ...
15807 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15808 New.
15809 (download_tracepoints): Move some code to ...
15810 (download_tracepoint_1): ... here. New.
15811
86a30030
YQ
158122011-11-08 Yao Qi <yao@codesourcery.com>
15813
15814 * remote-utils.c (relocate_instruction): A comment fix.
15815
8d26e50c
JB
158162011-11-07 Joel Brobecker <brobecker@adacore.com>
15817
15818 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15819 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15820 dr_status_mirror and dr_control_mirror from debug_reg_state.
15821 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15822 (i386_initial_stuff): Remove use of deleted globals.
15823 (i386_get_thread_context, i386_set_thread_context,
15824 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15825 from debug_reg_state.
15826
a59306a3
YQ
158272011-11-05 Yao Qi <yao@codesourcery.com>
15828
15829 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15830 address as TPOINT's.
15831
3065dfb6
SS
158322011-11-02 Stan Shebs <stan@codesourcery.com>
15833
15834 * tracepoint.c (agent_mem_read_string): New function.
15835 (eval_agent_expr): Call it for tracenz.
15836 * server.c (handle_query): Report support for tracenz.
15837
fd0d8c7c
YQ
158382011-11-02 Yao Qi <yao@codesourcery.com>
15839
15840 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15841
609086b1
YQ
158422011-11-02 Yao Qi <yao@codesourcery.com>
15843
15844 * target.h: Fix a typo in comment.
15845
b9fd1791
PA
158462011-10-31 Pedro Alves <pedro@codesourcery.com>
15847
15848 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15849 clobber the breakpoints' shadows with fast tracepoint jumps.
15850 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15851 * target.c (write_inferior_memory): Also pass MYADDR down to
15852 check_mem_write.
15853
03583c20
UW
158542011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15855
15856 * configure.ac: Check support for personality routine.
15857 * configure: Regenerate.
15858 * config.in: Likewise.
15859 * linux-low.c: Include <sys/personality.h>.
15860 Define ADDR_NO_RANDOMIZE if necessary.
15861 (linux_create_inferior): Disable address space randomization when
15862 forking inferior, if requested.
15863 (linux_supports_disable_randomization): New function.
15864 (linux_target_ops): Install it.
15865 * server.h (disable_randomization): Declare.
15866 * server.c (disable_randomization): New global variable.
15867 (handle_general_set): Handle QDisableRandomization.
15868 (handle_query): Likewise for qSupported.
15869 (main): Support --disable-randomization and --no-disable-randomization
15870 command line arguments.
15871 * target.h (struct target_ops): Add supports_disable_randomization.
15872 (target_supports_disable_randomization): New macro.
15873
723b724b
MF
158742011-09-29 Mike Frysinger <vapier@gentoo.org>
15875
15876 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15877 ifdef check.
15878 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15879 [!PT_GETDSBT] (target_loadmap): New definition.
15880 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15881 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15882 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15883 and PT_GETDSBT to LINUX_LOADMAP.
15884 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15885 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15886
55329a5c 158872011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15888
15889 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15890 (arm_linux_hwbp_cap): New static variable.
15891 (arm_linux_get_hwbp_cap): Replace by ...
15892 (arm_linux_init_hwbp_cap): ... this new function.
15893 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15894 (arm_linux_get_hw_watchpoint_count): Likewise.
15895 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15896 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15897 (arm_prepare_to_resume): Use perror_with_name instead of error.
15898
55329a5c 158992011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
15900
15901 * linux-arm-low.c: Include <signal.h>.
15902 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15903 (struct arm_linux_hwbp_cap): New data type.
15904 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15905 (struct arm_linux_hw_breakpoint): New data type.
15906 (MAX_BPTS, MAX_WPTS): Define.
15907 (struct arch_process_info, struct arch_lwp_info): New data types.
15908 (arm_linux_get_hwbp_cap): New function.
15909 (arm_linux_get_hw_breakpoint_count): Likewise.
15910 (arm_linux_get_hw_watchpoint_count): Likewise.
15911 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15912 (arm_hwbp_control_initialize): Likewise.
15913 (arm_hwbp_control_is_enabled): Likewise.
15914 (arm_hwbp_control_is_initialized): Likewise.
15915 (arm_hwbp_control_disable): Likewise.
15916 (arm_linux_hw_breakpoint_equal): Likewise.
15917 (arm_linux_hw_point_initialize): Likewise.
15918 (struct update_registers_data): New data structure.
15919 (update_registers_callback: New function.
15920 (arm_insert_point): Likewise.
15921 (arm_remove_point): Likewise.
15922 (arm_stopped_by_watchpoint): Likewise.
15923 (arm_stopped_data_address): Likewise.
15924 (arm_new_process): Likewise.
15925 (arm_new_thread): Likewise.
15926 (arm_prepare_to_resume): Likewise.
15927 (the_low_target): Register arm_insert_point, arm_remove_point,
15928 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15929 arm_new_thread, and arm_prepare_to_resume.
15930
6b9801d4
SS
159312011-09-15 Stan Shebs <stan@codesourcery.com>
15932
15933 * server.h (struct emit_ops): Add compare-goto fields.
15934 * tracepoint.c (gdb_agent_op_sizes): New table.
15935 (emit_eq_goto): New function.
15936 (emit_ne_goto): New function.
15937 (emit_lt_goto): New function.
15938 (emit_le_goto): New function.
15939 (emit_gt_goto): New function.
15940 (emit_ge_goto): New function.
15941 (is_goto_target): New function.
15942 (compile_bytecodes): Recognize special cases of compare-goto
15943 combinations and call specialized emitters for them.
15944 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15945 (amd64_emit_ne_goto): New function.
15946 (amd64_emit_lt_goto): New function.
15947 (amd64_emit_le_goto): New function.
15948 (amd64_emit_gt_goto): New function.
15949 (amd64_emit_ge_goto): New function.
15950 (amd64_emit_ops): Add the new functions.
15951 (i386_emit_eq_goto): New function.
15952 (i386_emit_ne_goto): New function.
15953 (i386_emit_lt_goto): New function.
15954 (i386_emit_le_goto): New function.
15955 (i386_emit_gt_goto): New function.
15956 (i386_emit_ge_goto): New function.
15957 (i386_emit_ops): Add the new functions.
15958
bf15cbda
SS
159592011-09-08 Stan Shebs <stan@codesourcery.com>
15960
15961 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15962 (i386_emit_epilogue): Restore %ebx.
15963
943ca1dd
JZ
159642011-08-31 Jie Zhang <jzhang918@gmail.com>
15965
15966 * server.c (step_thread): Remove definition.
15967 (process_serial_event): Don't handle Hs.
15968 * server.h (step_thread): Remove declaration.
15969 * target.c (set_desired_inferior): Remove use of step_thread.
15970
e3deef73
LM
159712011-08-24 Luis Machado <lgustavo@codesourcery.com>
15972
15973 * linux-low.c: Include linux-procfs.h.
15974 (linux_attach_lwp_1): Update comments.
15975 (linux_attach): Scan for existing threads when attaching to a
15976 process that is the tgid.
15977 * Makefile.in: Update dependencies.
15978
13da1c97
LM
159792011-08-24 Luis Machado <lgustavo@codesourcery.com>
15980
15981 * configure.srv: Add linux-procfs.o dependencies.
15982
881127c9
YQ
159832011-08-14 Yao Qi <yao@codesourcery.com>
15984
15985 * target.h (struct target_ops): Fix indent.
15986 * win32-low.c (win32_target_ops): Fix comment.
15987
58dbd541
YQ
159882011-08-14 Andrew Jenner <andrew@codesourcery.com>
15989 Yao Qi <yao@codesourcery.com>
15990
15991 * Makefile.in (clean): Remove tic6x-*.c files.
15992 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15993 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15994 (tic6x-c64xp-linux.c): Likewise.
15995 * configure.srv: Add support for tic6x-*-uclinux.
15996 * linux-tic6x-low.c: New.
15997 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15998
78d85199
YQ
159992011-08-14 Andrew Stubbs <ams@codesourcery.com>
16000 Yao Qi <yao@codesourcery.com>
16001
16002 * target.h (struct target_ops): Add read_loadmap.
16003 * linux-low.c (struct target_loadseg): New type.
16004 (struct target_loadmap): New type.
16005 (linux_read_loadmap): New function.
16006 (linux_target_ops): Add linux_read_loadmap.
16007 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16008 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16009 to NULL.
78d85199 16010
a959a88d
EZ
160112011-08-05 Eli Zaretskii <eliz@gnu.org>
16012
16013 * win32-low.c: Include <stdint.h>.
16014
1ced966e
PA
160152011-07-22 Pedro Alves <pedro@codesourcery.com>
16016
16017 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16018 to the inferior here.
16019 (i386_remove_aligned_watchpoint): Ditto.
16020 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16021 fit part of the watchpoint in the debug registers.
16022 (i386_update_inferior_debug_regs): New.
16023 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16024 registers, and only update the inferior on success.
16025 (i386_low_remove_watchpoint): Ditto.
16026
d26e3629
KY
160272011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16028
16029 * linux-low.c (compare_ints, unique, list_threads, show_process,
16030 linux_core_of_thread): Delete.
16031 (linux_target_ops): Change linux_core_of_thread to
16032 linux_common_core_of_thread.
16033 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16034 * utils.c (malloc_failure): Change type of argument.
16035 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16036 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16037 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16038 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16039 (IPA_OBJS): Add common-utils-ipa.o.
16040 (ptid_h, linux_osdata_h): New macros.
16041 (server_h): Add common/common-utils.h, common/xml-utils.h,
16042 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16043 common/ptid.h.
16044 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16045 ptid.o, buffer.o): New rules.
16046 (linux-low.o): Add common/linux-osdata.h as a dependency.
16047 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16048 * configure.ac: Add AC_HEADER_DIRENT check.
16049 * config.in: Regenerate.
16050 * configure: Regenerate.
16051 * remote-utils.c (xml_escape_text): Delete.
16052 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16053 buffer_xml_printf): Move to common/buffer.c.
16054 * server.c (main): Remove call to initialize_inferiors.
16055 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16056 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16057 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16058 internal_error, gdb_assert, gdb_assert_fail): Delete.
16059 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16060 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16061 common/buffer.h.
16062 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16063 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16064 initialize_inferiors): Delete.
16065
2275a1a7
PA
160662011-07-20 Pedro Alves <pedro@codesourcery.com>
16067
16068 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16069 symbol error.
16070
0a5b1e09
PA
160712011-05-31 Pedro Alves <pedro@codesourcery.com>
16072
16073 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16074 assertion.
16075 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16076
6938fd34
YQ
160772011-05-26 Yao Qi <yao@codesourcery.com>
16078
16079 * Makefile.in (thread-db.o): Track dependence to
16080 common/gdb_thread_db.h.
16081 * thread-db.c: include gdb_thread_db.h from right place.
16082
b481f9e0
TT
160832011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16084
16085 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16086 __FILE__ and __LINE__ to internal_error.
16087
98a5dd13
DE
160882011-05-13 Doug Evans <dje@google.com>
16089
16090 * thread-db.c (try_thread_db_load_from_sdir): New function.
16091 (try_thread_db_load_from_dir): New function.
16092 (thread_db_load_search): Handle $sdir, ignore $pdir.
16093 Remove trying of system directories if search of
16094 libthread-db-search-path fails, that is now done via $sdir.
16095
d248b706
KY
160962011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16097
16098 * server.c (handle_query): Add EnableDisableTracepoints to the list
16099 of supported features.
43aaf8b6 16100 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16101 tracepoints.
43aaf8b6
PA
16102 (cmd_qtenable_disable): New.
16103 (cmd_qtstart): Install tracepoints even if disabled.
16104 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16105 receiving a QTEnable or QTDisable packet.
16106 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16107 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16108 tracepoints.
16109 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16110
84e578fb
DE
161112011-05-10 Doug Evans <dje@google.com>
16112
16113 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16114
71f55dd8
DE
161152011-05-04 Doug Evans <dje@google.com>
16116
16117 * linux-low.c (linux_join): Skip process lookup.
16118 * spu-low.c (spu_join): Ditto.
16119 * server.c (join_inferiors_callback): Delete.
16120 (process_serial_event): For 'D' packet (detach) call join_inferior
16121 directly.
16122
4d393d60
JM
161232011-05-04 Joseph Myers <joseph@codesourcery.com>
16124
16125 * README: Don't mention xscale*-*-linux*.
16126 * configure.srv (xscale*-*-linux*): Don't handle target.
16127
b00ad6ff
NF
161282011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16129
16130 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16131 casting pointers.
16132 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16133 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16134 (i386_emit_void_call_2): Likewise.
16135
af96c192
YQ
161362011-04-26 Yao Qi <yao@codesourcery.com>
16137
43aaf8b6
PA
16138 * linux-low.c: Move common macros to linux-ptrace.h.
16139 Include linux-ptrace.h.
af96c192
YQ
16140 * Makefile.in (linux_ptrace_h): New.
16141 (linux-low.o): Depends on linux-ptrace.h.
16142
03f2bd59
JK
161432011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16144
16145 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16146 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16147 (remote_prepare): New function with most of the TCP code from ...
16148 (remote_open): ... here. Detect PORT here unconditionally. Move also
16149 setting transport_is_reliable.
16150 * server.c (run_once): New variable.
16151 (gdbserver_usage): Document it.
16152 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16153 the first run if RUN_ONCE.
16154 * server.h (run_once, remote_prepare): New declarations.
16155
7a9dd1b2
TT
161562011-04-19 Tom Tromey <tromey@redhat.com>
16157
16158 * win32-low.c (handle_load_dll): Remove duplicate "the".
16159
81239425
PM
161602011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16161
16162 Remove support for old Cygwin 1.5 versions.
16163 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16164 function to avoid warning.
16165 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16166 warning.
16167
9e0627f1
PM
161682011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16169
16170 * gdbserver/server.h (Macro _): Define it if not available.
16171
588eebee
MS
161722011-03-14 Michael Snyder <msnyder@vmware.com>
16173
348af9f7 16174 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16175
43f70d4c
JB
161762011-03-10 Joel Brobecker <brobecker@adacore.com>
16177
16178 * Makefile.in (maintainer-clean realclean distclean): Remove
16179 "make ... subdir_do" command.
16180
348af9f7
MS
161812011-03-10 Michael Snyder <msnyder@vmware.com>
16182
16183 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16184
16185 * server.c (handle_v_run): Free alloced buffer on early return.
16186
e637a4f5
YQ
161872011-03-09 Yao Qi <yao@codesourcery.com>
16188
16189 Revert:
16190 2011-03-04 Yao Qi <yao@codesourcery.com>
16191
16192 * Makefile.in: Remove GNU make feature --directory.
16193
16194 2011-03-05 Yao Qi <yao@codesourcery.com>
16195
16196 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16197 (subdir_do): New make target. Copied from gdb/Makefile.
16198 (maintainer-clean, realclean, distclean, clean): Call corresponding
16199 make targets in common/Makefile.
16200
16201 2011-02-11 Yao Qi <yao@codesourcery.com>
16202
16203 * configure.ac: Call AC_PROG_RANLIB.
16204 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16205 * configure: Regenerate.
16206
e6edda56
JK
162072011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16208
16209 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16210
e5141119
JB
162112011-03-06 Yao Qi <yao@codesourcery.com>
16212
16213 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16214
64794aa4
JB
162152011-03-05 Yao Qi <yao@codesourcery.com>
16216
16217 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16218 (subdir_do): New make target. Copied from gdb/Makefile.
16219 (maintainer-clean, realclean, distclean, clean): Call corresponding
16220 make targets in common/Makefile.
16221
7a762829
YQ
162222011-03-04 Yao Qi <yao@codesourcery.com>
16223
16224 * Makefile.in: Remove GNU make feature --directory.
16225
348af9f7
MS
162262011-03-04 Michael Snyder <msnyder@vmware.com>
16227
16228 * server.c (queue_stop_reply): Call xmalloc not malloc.
16229
162302011-03-02 Michael Snyder <msnyder@vmware.com>
16231
16232 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16233
9f72fee2
MS
162342011-02-28 Michael Snyder <msnyder@vmware.com>
16235
588eebee
MS
16236 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16237 (cmd_qtframe): Ditto.
16238 (cmd_qtbuffer): Ditto.
16239 (cmd_bigqtbuffer): Ditto.
16240
9f72fee2
MS
16241 * utils.c (decimal2str): Initialize 'width' to nine, then
16242 don't mess with it.
16243
8040bd49
UW
162442011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16245
16246 * hostio.c (require_data): Free *data, not data.
16247
7e52cbd0
JK
162482011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16249
16250 * hostio.c (require_data): Use free, not xfree.
16251
9130f83e
MS
162522011-02-27 Michael Snyder <msnyder@vmware.com>
16253
4b812f4e
MS
16254 * server.c (handle_query): Discard unused value.
16255
9130f83e
MS
16256 * hostio.c (require_data): Free malloc memory before returning
16257 error.
16258
69d37113
MS
162592011-02-26 Michael Snyder <msnyder@vmware.com>
16260
16261 * linux-low.c (list_threads): Call closedir for dirent.
16262
35f5825a
MS
162632011-02-27 Michael Snyder <msnyder@vmware.com>
16264
2a589cef
MS
16265 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16266 a case statement falls through.
16267
0adea5f7
MS
16268 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16269
35f5825a
MS
16270 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16271 in comparison.
16272
238f1c74
MS
162732011-02-26 Michael Snyder <msnyder@vmware.com>
16274
16275 * utils.c (decimal2str): Eliminate dead code and dead param.
16276 (pulongest): Drop dead param from call to decimal2str.
16277 (plongest): Ditto.
16278
633ff500
JB
162792011-02-24 Joel Brobecker <brobecker@adacore.com>
16280
16281 Revert the following patch (not approved yet):
16282 2011-02-21 Hui Zhu <teawater@gmail.com>
16283 * tracepoint.c (tp_printf): New function.
16284 (eval_agent_expr): Handle gdb_agent_op_printf.
16285
f9c6ff72
HZ
162862011-02-21 Hui Zhu <teawater@gmail.com>
16287
16288 * tracepoint.c (tp_printf): New function.
16289 (eval_agent_expr): Handle gdb_agent_op_printf.
16290
94d5e490
TT
162912011-02-18 Tom Tromey <tromey@redhat.com>
16292
16293 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16294 (tracepoint.o): Likewise.
16295 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16296 (gdb_agent_op_names): Likewise.
16297
c7f96d2b
TT
162982011-02-18 Tom Tromey <tromey@redhat.com>
16299
16300 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16301 gdb_agent_op_rot>: New constants.
16302 (gdb_agent_op_names): Add pick and roll.
16303 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16304 cases.
16305
0feedb2c
JK
163062011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16307
16308 * aclocal.m4: Regenerated with aclocal-1.11.1.
16309
b3b9301e
PA
163102011-02-14 Pedro Alves <pedro@codesourcery.com>
16311
16312 * server.c (handle_qxfer_traceframe_info): New.
16313 (qxfer_packets): Register "traceframe-info".
16314 (handle_query): Report support for qXfer:traceframe-info:read+.
16315 * tracepoint.c (match_blocktype): New.
16316 (traceframe_find_block_type): Rename to ...
16317 (traceframe_walk_blocks): ... this. Add callback filter argument,
16318 and use it.
16319 (traceframe_find_block_type): New, reimplemented on top of
16320 traceframe_walk_blocks.
16321 (build_traceframe_info_xml): New.
16322 (traceframe_read_info): New.
16323 * server.h (traceframe_read_info): Declare.
16324
4f3e6fb7
YQ
163252011-02-11 Yao Qi <yao@codesourcery.com>
16326
16327 * configure.ac: Call AC_PROG_RANLIB.
16328 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16329 * configure: Regenerate.
16330
764880b7
PA
163312011-02-07 Pedro Alves <pedro@codesourcery.com>
16332
16333 * server.c (gdb_read_memory): Change return semantics to allow
16334 partial transfers.
16335 (handle_search_memory_1): Adjust.
16336 (process_serial_event) <'m' packet>: Handle partial transfers.
16337 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16338
1c79eb8a
PA
163392011-01-28 Pedro Alves <pedro@codesourcery.com>
16340
16341 * regcache.c (init_register_cache): Initialize
16342 regcache->register_status.
16343 (free_register_cache): Release regcache->register_status.
16344 (regcache_cpy): Copy register_status.
16345 (registers_to_string): Print 'x's for unavailable registers.
16346 (supply_register): Mark the register's status valid or
16347 unavailable, depending on whether a buffer was passed in or not.
16348 (supply_register_zeroed): New.
16349 (supply_regblock): Mark the registers' status valid or
16350 unavailable, depending on whether a buffer was passed in or not.
16351 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16352 (struct regcache): New `register_status' field.
16353 (supply_register_zeroed): Declare.
16354 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16355 supply_register_zeroed, rather than passing a NULL buffer to
16356 supply_register.
16357 * tracepoint.c (fetch_traceframe_registers): Update comment.
16358
85724a0e
PA
163592011-01-28 Pedro Alves <pedro@codesourcery.com>
16360
16361 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16362 buffer explicit.
16363
d08aafef
PA
163642011-01-25 Pedro Alves <pedro@codesourcery.com>
16365
16366 * server.h (decode_xfer_write): Change prototype.
16367 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16368 and don't extract the annex here.
16369 * server.c (decode_xfer_read): Remove `annex' parameter,
16370 and don't extract the annex here.
16371 (decode_xfer): New.
16372 (struct qxfer): New.
16373 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16374 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16375 (handle_qxfer_statictrace): New functions, abstracted out from
16376 handle_query, and made to use the struct qxfer interface.
16377 (handle_threads_qxfer_proper): Rename to ...
16378 (handle_qxfer_threads_proper): ... this.
16379 (handle_threads_qxfer): Rename to ...
16380 (handle_qxfer_threads): ... this. Adjust.
16381 (qxfer_packets): New array.
16382 (handle_qxfer): New function.
16383 (handle_query): Use handle_qxfer.
16384
493e2a69
MS
163852011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16386
16387 * gdbreplay.c: Shorten lines of >= 80 columns.
16388 * linux-low.c: Ditto.
16389 * linux-ppc-low.c: Ditto.
16390 * linux-s390-low.c: Ditto.
16391 * linux-sparc-low.c: Ditto.
16392 * linux-x86-low.c: Ditto.
16393 * linux-xtensa-low.c: Ditto.
16394 * mem-break.c: Ditto.
16395 * nto-low.c: Ditto.
16396 * regcache.h: Ditto.
16397 * remote-utils.c: Ditto.
16398 * server.c: Ditto.
16399 * server.h: Ditto.
16400 * thread-db.c: Ditto.
16401 * tracepoint.c: Ditto.
16402 * utils.c: Ditto.
16403 * win32-low.h: Ditto.
16404
44944448
JB
164052011-01-05 Joel Brobecker <brobecker@adacore.com>
16406
16407 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16408 update.
16409
71ce852c
JB
164102011-01-01 Joel Brobecker <brobecker@adacore.com>
16411
16412 * server.c (gdbserver_version): Update copyright year in version
16413 output.
16414 * gdbreplay.c (gdbreplay_version): Ditto.
16415
eb826dc6
MF
164162010-12-29 Jie Zhang <jie.zhang@analog.com>
16417
16418 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16419 * linux-bfin-low.c: New file.
16420 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16421 PT_DATA_ADDR for BFIN targets.
16422 * Makefile.in (SFILES): Add linux-bfin-low.c.
16423 (clean): Remove reg-bfin.c.
16424 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16425 * README: Mention supported Blackfin targets.
16426
39ab222a
MF
164272010-12-23 Mike Frysinger <vapier@gentoo.org>
16428
16429 * .gitignore: New file.
16430
a1f2ce7d
MF
164312010-11-16 Mike Frysinger <vapier@gentoo.org>
16432
16433 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16434
f474844c
JZ
164352010-10-22 Jie Zhang <jie@codesourcery.com>
16436
16437 * Makefile.in: Add FLAGS_TO_PASS variable.
16438 (install): Remove dependency of install-only and recursively
16439 invoke make for install-only.
16440
f1048712
DE
164412010-10-04 Doug Evans <dje@google.com>
16442
16443 * Makefile.in (uninstall): Use $(DESTDIR).
16444
b53a1623
PA
164452010-09-24 Pedro Alves <pedro@codesourcery.com>
16446
e6ee044d
PA
16447 PR gdb/11842
16448
b53a1623
PA
16449 * linux-x86-low.c (compat_siginfo_from_siginfo)
16450 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16451 si_code is < 0. Check for si_code == SI_TIMER before checking for
16452 si_code < 0.
16453
fa1bd1e4
JB
164542010-09-13 Joel Brobecker <brobecker@adacore.com>
16455
16456 * lynx-i386-low.c: New file.
16457 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16458
47fac8f8
JB
164592010-09-13 Joel Brobecker <brobecker@adacore.com>
16460
16461 * lynx-low.c (ptrace_request_to_str): Remove handling for
16462 request values that have been removed in LynxOS 5.x.
16463
1adfc54d
JB
164642010-09-13 Joel Brobecker <brobecker@adacore.com>
16465
16466 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16467 <ptrace.h>
16468
c2a66c29
NS
164692010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16470
16471 * configure.ac: Add --enable-inprocess-agent option.
16472 * configure: Rebuilt.
16473
32fcada3
YQ
164742010-09-06 Yao Qi <yao@codesourcery.com>
16475
16476 * linux-low.c (linux_kill): Remove unused variable.
16477 (linux_stabilize_threads): Likewise.
16478 * server.c (start_inferior): Likewise.
16479 (queue_stop_reply_callback): Likewise.
16480 * tracepoint.c (do_action_at_tracepoint): Likewise.
16481
0cccb683
YQ
164822010-09-06 Yao Qi <yao@codesourcery.com>
16483
16484 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16485 on return.
16486
423ec54c
JK
164872010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16488
16489 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16490
12ac6819
PA
164912010-09-06 Pedro Alves <pedro@codesourcery.com>
16492
16493 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16494 "$(IPA_DEPFILES)".
16495
8ed54b31
JB
164962010-09-01 Joel Brobecker <brobecker@adacore.com>
16497
16498 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16499 gdbserver/lynx-ppc-low.c: New files.
16500 * Makefile.in (lynx_low_h): New variable.
16501 (lynx-low.o, lynx-ppc-low.o): New rules.
16502 * configure.ac: On LynxOS, link with -lnetinet.
16503 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16504 * configure: regenerate.
16505
bb0116a4
JB
165062010-09-01 Joel Brobecker <brobecker@adacore.com>
16507
16508 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16509 * configure.ac: Add check for vasprintf and vsnprintf.
16510 * configure, config.in: Regenerate.
16511 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16512
a778ab81 165132010-09-01 Joel Brobecker <brobecker@adacore.com>
16514
16515 * gdbreplay.c: Move include of alloca.h up, next to include of
16516 malloc.h.
16517 * server.h: Add include of malloc.h.
16518 * mem-break.c: Remove include of malloc.h.
16519 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16520
8b034a19 165212010-09-01 Joel Brobecker <brobecker@adacore.com>
16522
16523 * Makefile.in (memmem.o): Build with -Wno-error.
16524
165252010-09-01 Joel Brobecker <brobecker@adacore.com>
16526
16527 * utils.c (xsnprintf): Make non-static.
16528 * server.h: Add xsnprintf declaration.
16529 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16530 replace calls to snprintf by calls to xsnprintf throughout.
16531
165322010-09-01 Joel Brobecker <brobecker@adacore.com>
16533
16534 * configure.ac: Add configure check for alloca.
16535 * configure, config.in: Regenerate.
16536 * server.h: Include alloca.h if it exists.
16537 * gdbreplay.c: Include alloca.h if it exists.
16538
1a981360
PA
165392010-08-28 Pedro Alves <pedro@codesourcery.com>
16540
16541 * linux-low.c (__SIGRTMIN): Define if not already defined.
16542 (linux_create_inferior): Check for __ANDROID__ rather than
16543 __SIGRTMIN.
16544 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16545 are already deferred.
16546 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16547 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16548 stopped and already has a pending signal to report.
16549 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16550 a pending signal to report or is moving out of a jump pad.
16551 (linux_init_signals): Check for __ANDROID__ rather than
16552 __SIGRTMIN.
16553
b4d51a55
PA
165542010-08-28 Pedro Alves <pedro@codesourcery.com>
16555
16556 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16557 debug_threads check. Avoid a linear search when not doing debug
16558 output.
16559
ec48365d
PA
165602010-08-27 Pedro Alves <pedro@codesourcery.com>
16561
16562 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16563 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16564 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16565 (process_event): Change local fd's type to gdb_fildes_t.
16566 (create_file_handler): Adjust prototype.
16567 (delete_file_handler): Adjust prototype.
16568 (handle_file_event): Adjust prototype. Use pfildes.
16569 (create_file_event): Adjsut prototype.
16570 * remote-utils.c (remote_desc, listen_desc): Change type to
16571 gdb_fildes_t.
16572 * server.h: New gdb_fildes_t typedef.
16573 [USE_WIN32API]: Include winsock2.h.
16574 (delete_file_handler, add_file_handler): Adjust prototypes.
16575 (pfildes): Declare.
16576 * utils.c (pfildes): New.
16577
854d88f0
PA
165782010-08-27 Pedro Alves <pedro@codesourcery.com>
16579
16580 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16581 * configure: Regenerate.
16582
0146f85b
PA
165832010-08-27 Pedro Alves <pedro@codesourcery.com>
16584
16585 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16586 (linux_done_accessing_memory): ... this.
16587 (linux_target_ops): Adjust.
16588 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16589 * nto-low.c (nto_target_ops): Adjust comment.
16590 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16591 * spu-low.c (spu_target_ops): Adjust comment.
16592 * target.h (target_ops): Rename unprepare_to_access_memory field
16593 to done_accessing_memory.
16594 (unprepare_to_access_memory): Rename to ...
16595 (done_accessing_memory): ... this.
16596
90d74c30
PA
165972010-08-26 Pedro Alves <pedro@codesourcery.com>
16598
16599 * linux-low.c (linux_prepare_to_access_memory): New.
16600 (linux_unprepare_to_access_memory): New.
16601 (linux_target_ops): Install them.
16602 * server.c (read_memory): Rename to ...
16603 (gdb_read_memory): ... this. Use
16604 prepare_to_access_memory/prepare_to_access_memory.
16605 (write_memory): Rename to ...
16606 (gdb_write_memory): ... this. Use
16607 prepare_to_access_memory/prepare_to_access_memory.
16608 (handle_search_memory_1): Adjust.
16609 (process_serial_event): Adjust.
16610 * target.h (struct target_ops): New fields
16611 prepare_to_access_memory and unprepare_to_access_memory.
16612 (prepare_to_access_memory, unprepare_to_access_memory): New.
16613 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16614 prepare_to_access_memory/prepare_to_access_memory.
16615 * nto-low.c (nto_target_ops): Adjust.
16616 * spu-low.c (spu_target_ops): Adjust.
16617 * win32-low.c (win32_target_ops): Adjust.
16618
fd467969
PA
166192010-08-26 Pedro Alves <pedro@codesourcery.com>
16620
16621 * Makefile.in (WARN_CFLAGS): Get it from configure.
16622 (WERROR_CFLAGS): New.
16623 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16624 * configure.ac: Introduce --enable-werror, which adds -Werror to
16625 the compiler command line. Enabled by default. Disable with
16626 --disable-werror. Add -Wdeclaration-after-statement
16627 Wpointer-arith and -Wformat-nonliteral to warning flags.
16628 * configure: Regenerate.
16629
331e2f5f
PA
166302010-08-26 Pedro Alves <pedro@codesourcery.com>
16631
16632 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16633
e581f2b4
PA
166342010-08-26 Pedro Alves <pedro@codesourcery.com>
16635
16636 * gdbreplay.c (remote_error): New.
16637 (gdbchar): New.
16638 (expect): Use gdbchar. Check for error reading from GDB.
16639 Clarify sync error output.
16640 (play): Check for errors writing to GDB.
16641 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16642 * remote-utils.c (getpkt): Check for errors writing to the remote
16643 descriptor.
16644
3c11dd79
PA
166452010-08-25 Pedro Alves <pedro@codesourcery.com>
16646
16647 * linux-low.c (linux_wait_1): Move non-debugging code out of
16648 `debug_threads' control.
16649
d20a8ad9
PA
166502010-08-25 Pedro Alves <pedro@codesourcery.com>
16651
16652 * linux-low.c (linux_wait_1): Don't set last_status here.
16653 * server.c (push_event, queue_stop_reply_callback): Assert we're
16654 not pushing a TARGET_WAITKIND_IGNORE event.
16655 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16656 (myresume, handle_target_event): Set the thread's last_resume_kind
16657 and last_status from the target returned status.
16658
964e4306
PA
166592010-08-25 Pedro Alves <pedro@codesourcery.com>
16660
16661 PR threads/10729
16662
16663 * linux-x86-low.c (update_debug_registers_callback): New.
16664 (i386_dr_low_set_addr): Use it.
16665 (i386_dr_low_get_addr): New.
16666 (i386_dr_low_set_control): Use update_debug_registers_callback.
16667 (i386_dr_low_get_control): New.
16668 (i386_dr_low_get_status): Adjust.
16669 * linux-low.c (linux_stop_lwp): New.
16670 * linux-low.h (linux_stop_lwp): Declare.
16671
16672 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16673 argument instead of a i386_debug_reg_state.
16674 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16675 a i386_debug_reg_state.
16676 (i386_insert_aligned_watchpoint): Adjust.
16677 (i386_remove_aligned_watchpoint): Adjust.
16678 (i386_low_stopped_data_address): Read the debug registers from the
16679 inferior instead of from the mirrors.
16680 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16681 (i386_dr_low_get_addr): Declare.
16682 (i386_dr_low_get_control): Declare.
16683 (i386_dr_low_get_status): Change prototype.
16684
16685 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16686 (i386_dr_low_get_addr): New.
16687 (i386_dr_low_get_control): New.
16688 (i386_dr_low_get_status): Adjust prototype. Return
16689 dr_status_mirror.
16690 (i386_initial_stuff): Clear dr_status_mirror and
16691 dr_control_mirror.
16692 (i386_get_thread_context): Adjust.
16693 (i386_set_thread_context): Adjust.
16694 (i386_thread_added): Adjust.
16695
5f21a75b
PA
166962010-08-24 Pedro Alves <pedro@codesourcery.com>
16697
16698 * linux-low.h (linux_thread_area): Delete declaration.
16699
3e4c1235
TS
167002010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16701
16702 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16703 after its termination.
16704
1971b033
PA
167052010-08-09 Pedro Alves <pedro@codesourcery.com>
16706
16707 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16708 (gdb_wants_all_stopped): Delete.
16709 (linux_wait_1): Don't call them.
16710 * server.c (handle_v_cont): Tag all threads as want-stopped.
16711 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16712 stopped as "client-wants-stopped".
16713
310444ac
PA
167142010-07-31 Pedro Alves <pedro@codesourcery.com>
16715
16716 * Makefile.in (signals_h): New.
16717 (server_h): Depend on it.
16718 (server.o): Don't depend on $(signals_def).
16719 (signals.o): Depend on $(signals_def).
16720
a19cae16
JK
167212010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16722
16723 * Makefile.in (signals_def): New.
16724 (server_h): Append include/gdb/signals.h and signals_def.
16725 (server.o): Append signals_def.
16726
30d50328
JK
167272010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16728
16729 * server.c (handle_target_event): Use target_signal_to_host for
16730 resume_info.sig initialization.
16731 * target.h (struct thread_resume) <sig>: New comment.
16732
5c3216e2
OS
167332010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16734
c6f46ca0
OS
16735 * server.c (handle_query): strcpy() the returned string from paddress()
16736 instead of sprintf().
5c3216e2
OS
16737 * utils.c (paddress): Return phex_nz().
16738
6bd31874
JB
167392010-07-07 Joel Brobecker <brobecker@adacore.com>
16740
16741 * server.c (handle_v_cont): Call mourn_inferior if process
16742 just exited.
16743 (myresume): Likewise.
16744
0fb4aa4b
PA
167452010-07-01 Pedro Alves <pedro@codesourcery.com>
16746
16747 Static tracepoints, and integration with UST.
16748
16749 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16750 * mem-break.c (uninsert_all_breakpoints)
16751 (reinsert_all_breakpoints): New.
16752 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16753 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16754 (gdb_agent_ust_loaded, helper_thread_id)
16755 (gdb_agent_helper_thread_id): New macros.
16756 (struct ipa_sym_addresses): Add addr_ust_loaded,
16757 addr_helper_thread_id, addr_cmd_buf.
16758 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16759 (in_process_agent_loaded_ust): New.
16760 (write_e_ust_not_loaded): New.
16761 (maybe_write_ipa_ust_not_loaded): New.
16762 (struct collect_static_trace_data_action): New.
16763 (enum tracepoint_type) <static_tracepoint>: New.
16764 (struct tracepoint) <handle>: Mention static tracepoints.
16765 (struct static_tracepoint_ctx): New.
16766 (CMD_BUF_SIZE): New.
16767 (add_tracepoint_action): Handle static tracepoint actions.
16768 (unprobe_marker_at): New.
16769 (clear_installed_tracepoints): Handle static tracepoints.
16770 (cmd_qtdp): Handle static tracepoints.
16771 (probe_marker_at): New.
16772 (cmd_qtstart): Handle static tracepoints.
16773 (response_tracepoint): Handle static tracepoints.
16774 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16775 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16776 (get_context_regcache): Handle static tracepoints.
16777 (do_action_at_tracepoint): Handle static tracepoint actions.
16778 (traceframe_find_block_type): Handle static trace data blocks.
16779 (traceframe_read_sdata): New.
16780 (download_tracepoints): Download static tracepoint actions.
16781 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16782 (GDB_PROBE_NAME): New.
16783 (ust_ops): New.
16784 (GET_UST_SYM): New.
16785 (USTF): New.
16786 (dlsym_ust): New.
16787 (ust_marker_to_static_tracepoint): New.
16788 (gdb_probe): New.
16789 (collect_ust_data_at_tracepoint): New.
16790 (gdb_ust_probe): New.
16791 (UNIX_PATH_MAX, SOCK_DIR): New.
16792 (gdb_ust_connect_sync_socket): New.
16793 (resume_thread, stop_thread): New.
16794 (run_inferior_command): New.
16795 (init_named_socket): New.
16796 (gdb_ust_socket_init): New.
16797 (cstr_to_hexstr): New.
16798 (next_st): New.
16799 (first_marker, next_marker): New.
16800 (response_ust_marker): New.
16801 (cmd_qtfstm, cmd_qtsstm): New.
16802 (unprobe_marker_at, probe_marker_at): New.
16803 (cmd_qtstmat, gdb_ust_thread): New.
16804 (gdb_ust_init): New.
16805 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16806 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16807 (ST_REGENTRY): New.
16808 (x86_64_st_collect_regmap): New.
16809 (X86_64_NUM_ST_COLLECT_GREGS): New.
16810 (AMD64_RIP_REGNUM): New.
16811 (supply_static_tracepoint_registers): New.
16812 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16813 (ST_REGENTRY): New.
16814 (i386_st_collect_regmap): New.
16815 (i386_NUM_ST_COLLECT_GREGS): New.
16816 (supply_static_tracepoint_registers): New.
16817 * server.c (handle_query): Handle qXfer:statictrace:read.
16818 <qSupported>: Report support for StaticTracepoints, and
16819 qXfer:statictrace:read features.
16820 * server.h (traceframe_read_sdata)
16821 (supply_static_tracepoint_registers): Declare.
16822 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16823 (unpack_varlen_hex): Include in IPA build.
16824 * Makefile.in (ustlibs, ustinc): New.
16825 (IPA_OBJS): Add remote-utils-ipa.o.
16826 ($(IPA_LIB)): Link -ldl and -lpthread.
16827 (UST_CFLAGS): New.
16828 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16829 * config.in, configure: Regenerate.
16830
9e4344e5
PA
168312010-06-20 Ian Lance Taylor <iant@google.com>
16832 Pedro Alves <pedro@codesourcery.com>
16833
16834 * linux-x86-low.c (always_true): Delete.
16835 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16836 trying to fool the compiler with always_true.
16837
c6beb2cb
PA
168382010-06-20 Pedro Alves <pedro@codesourcery.com>
16839
16840 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16841 conditions in gdbserver.
16842
d2ed6730
UW
168432010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16844
16845 * spu-low.c (spu_read_memory): Wrap around local store limit.
16846 (spu_write_memory): Likewise.
16847
4e29fb54
PA
168482010-06-15 Pedro Alves <pedro@codesourcery.com>
16849
16850 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16851 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16852 LONGEST uses.
16853 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16854 uses.
16855 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16856 uses with LONGEST uses.
16857
6a271cae
PA
168582010-06-14 Stan Shebs <stan@codesourcery.com>
16859 Pedro Alves <pedro@codesourcery.com>
16860
16861 Bytecode compiler.
16862
16863 * linux-x86-low.c: Include limits.h.
16864 (add_insns): New.
16865 (always_true): New.
16866 (EMIT_ASM): New.
16867 (EMIT_ASM32): New.
16868 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16869 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16870 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16871 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16872 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16873 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16874 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16875 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16876 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16877 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16878 (amd64_emit_void_call_2): New.
16879 (amd64_emit_ops): New.
16880 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16881 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16882 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16883 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16884 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16885 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16886 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16887 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16888 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16889 (i386_emit_stack_adjust, i386_emit_int_call_1)
16890 (i386_emit_void_call_2): New.
16891 (i386_emit_ops): New.
16892 (x86_emit_ops): New.
16893 (the_low_target): Install x86_emit_ops.
16894 * server.h (struct emit_ops): New.
16895 (get_raw_reg_func_addr): Declare.
16896 (current_insn_ptr, emit_error): Declare.
16897 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16898 (set_trace_state_variable_value): New defines.
16899 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16900 addr_get_trace_state_variable_value and
16901 addr_set_trace_state_variable_value.
16902 (symbol_list): New fields for get_raw_reg,
16903 get_trace_state_variable_value and set_trace_state_variable_value.
16904 (condfn): New typedef.
16905 (struct tracepoint): New field `compiled_cond'.
16906 (do_action_at_tracepoint): Clear compiled_cond.
16907 (get_trace_state_variable_value, set_trace_state_variable_value):
16908 Export in the IPA.
16909 (condition_true_at_tracepoint): If there's a compiled condition,
16910 run that.
16911 (current_insn_ptr, emit_error): New globals.
16912 (struct bytecode_address): New.
16913 (get_raw_reg_func_addr): New.
16914 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16915 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16916 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16917 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16918 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16919 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16920 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16921 (compile_tracepoint_condition, compile_bytecodes): New.
16922 * target.h (emit_ops): Forward declare.
16923 (struct target_ops): New field emit_ops.
16924 (target_emit_ops): New.
16925 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16926 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16927 * linux-low.c (linux_emit_ops): New.
16928 (linux_target_ops): Install it.
16929 * linux-low.h (struct linux_target_ops): New field emit_ops.
16930
92b72907
UW
169312010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16932
16933 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16934 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16935
fa593d66
PA
169362010-06-01 Pedro Alves <pedro@codesourcery.com>
16937 Stan Shebs <stan@codesourcery.com>
16938
16939 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16940 (all): Depend on $(extra_libraries).
16941 (install-only): Install the IPA.
16942 (IPA_OBJS, IPA_LIB): New.
16943 (clean): Remove the IPA lib.
16944 (IPAGENT_CFLAGS): New.
16945 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16946 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16947 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16948 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16949 * configure.ac: Check for atomic builtins support in the compiler.
16950 (IPA_DEPFILES, extra_libraries): Define.
16951 * configure.srv (ipa_obj): Add description.
16952 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16953 (i[34567]86-*-linux*): Set ipa_obj.
16954 (x86_64-*-linux*): Set ipa_obj.
16955 * linux-low.c (stabilizing_threads): New.
16956 (supports_fast_tracepoints): New.
16957 (linux_detach): Stabilize threads before detaching.
16958 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16959 the lwp is either not stabilizing, or is moving out of a jump pad.
16960 (linux_fast_tracepoint_collecting): New.
16961 (maybe_move_out_of_jump_pad): New.
16962 (enqueue_one_deferred_signal): New.
16963 (dequeue_one_deferred_signal): New.
16964 (linux_wait_for_event_1): If moving out of a jump pad, defer
16965 pending signals to later.
16966 (linux_stabilize_threads): New.
16967 (linux_wait_1): Check if threads need moving out of jump pads, and
16968 do it if so.
16969 (stuck_in_jump_pad_callback): New.
16970 (move_out_of_jump_pad_callback): New.
16971 (lwp_running): New.
16972 (linux_resume_one_lwp): Handle moving out of jump pads.
16973 (linux_set_resume_request): Dequeue deferred signals.
16974 (need_step_over_p): Also step over fast tracepoint jumps.
16975 (start_step_over): Also uninsert fast tracepoint jumps.
16976 (finish_step_over): Also reinsert fast tracepoint jumps.
16977 (linux_install_fast_tracepoint_jump): New.
16978 (linux_target_ops): Install linux_stabilize_threads and
16979 linux_install_fast_tracepoint_jump_pad.
16980 * linux-low.h (linux_target_ops) <get_thread_area,
16981 install_fast_tracepoint_jump_pad>: New fields.
16982 (struct lwp_info) <collecting_fast_tracepoint,
16983 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16984 (linux_get_thread_area): Declare.
16985 * linux-x86-low.c (jump_insn): New.
16986 (x86_get_thread_area): New.
16987 (append_insns): New.
16988 (push_opcode): New.
16989 (amd64_install_fast_tracepoint_jump_pad): New.
16990 (i386_install_fast_tracepoint_jump_pad): New.
16991 (x86_install_fast_tracepoint_jump_pad): New.
16992 (the_low_target): Install x86_get_thread_area and
16993 x86_install_fast_tracepoint_jump_pad.
16994 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16995 (struct fast_tracepoint_jump): New.
16996 (fast_tracepoint_jump_insn): New.
16997 (fast_tracepoint_jump_shadow): New.
16998 (find_fast_tracepoint_jump_at): New.
16999 (fast_tracepoint_jump_here): New.
17000 (delete_fast_tracepoint_jump): New.
17001 (set_fast_tracepoint_jump): New.
17002 (uninsert_fast_tracepoint_jumps_at): New.
17003 (reinsert_fast_tracepoint_jumps_at): New.
17004 (set_breakpoint_at): Use write_inferior_memory.
17005 (uninsert_raw_breakpoint): Use write_inferior_memory.
17006 (check_mem_read): Mask out fast tracepoint jumps.
17007 (check_mem_write): Mask out fast tracepoint jumps.
17008 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17009 (set_fast_tracepoint_jump): Declare.
17010 (delete_fast_tracepoint_jump)
17011 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17012 (reinsert_fast_tracepoint_jumps_at): Declare.
17013 * regcache.c: Don't compile many functions when building the
17014 in-process agent library.
17015 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17016 the register buffer in the heap.
17017 (free_register_cache): If the register buffer isn't owned by the
17018 regcache, don't free it.
17019 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17020 pre-existing register caches.
17021 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17022 type.
17023 (convert_ascii_to_int): : Constify `from' parameter type.
17024 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17025 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17026 the needed buffer in-place.
17027 (relocate_instruction): New.
17028 * server.c (handle_query) <qSymbols>: If the target supports
17029 tracepoints, give it a chance of looking up symbols. Report
17030 support for fast tracepoints.
17031 (handle_status): Stabilize threads.
17032 (process_serial_event): Adjust.
17033 * server.h (struct fast_tracepoint_jump): Forward declare.
17034 (struct process_info) <fast_tracepoint_jumps>: New field.
17035 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17036 (decode_X_packet, decode_M_packet): Adjust.
17037 (relocate_instruction): Declare.
17038 (in_process_agent_loaded): Declare.
17039 (tracepoint_look_up_symbols): Declare.
17040 (struct fast_tpoint_collect_status): Declare.
17041 (fast_tracepoint_collecting): Declare.
17042 (force_unlock_trace_buffer): Declare.
17043 (handle_tracepoint_bkpts): Declare.
17044 (initialize_low_tracepoint)
17045 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17046 * target.h (struct target_ops) <stabilize_threads,
17047 install_fast_tracepoint_jump_pad>: New fields.
17048 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17049 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17050 [HAVE_STDINT_H]: Include stdint.h.
17051 (trace_debug_1): Rename to ...
17052 (trace_vdebug): ... this.
17053 (trace_debug): Rename to ...
17054 (trace_debug_1): ... this. Add `level' parameter.
17055 (trace_debug): New.
17056 (ATTR_USED, ATTR_NOINLINE): New.
17057 (IP_AGENT_EXPORT): New.
17058 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17059 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17060 (about_to_request_buffer_space, trace_buffer_is_full)
17061 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17062 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17063 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17064 (traceframe_write_count, traceframes_created)
17065 (trace_state_variables)
17066 New renaming defines.
17067 (struct ipa_sym_addresses): New.
17068 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17069 (symbol_list): New.
17070 (ipa_sym_addrs): New.
17071 (all_tracepoint_symbols_looked_up): New.
17072 (in_process_agent_loaded): New.
17073 (write_e_ipa_not_loaded): New.
17074 (maybe_write_ipa_not_loaded): New.
17075 (tracepoint_look_up_symbols): New.
17076 (debug_threads) [IN_PROCESS_AGENT]: New.
17077 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17078 (UNKNOWN_SIDE_EFFECTS): New.
17079 (stop_tracing): New.
17080 (flush_trace_buffer): New.
17081 (stop_tracing_bkpt): New.
17082 (flush_trace_buffer_bkpt): New.
17083 (read_inferior_integer): New.
17084 (read_inferior_uinteger): New.
17085 (read_inferior_data_pointer): New.
17086 (write_inferior_data_pointer): New.
17087 (write_inferior_integer): New.
17088 (write_inferior_uinteger): New.
17089 (struct collect_static_trace_data_action): Delete.
17090 (enum tracepoint_type): New.
17091 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17092 <actions_str, step_actions, step_actions_str>: Only include in
17093 GDBserver.
fa593d66
PA
17094 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17095 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17096 (tracepoints): Use IP_AGENT_EXPORT.
17097 (last_tracepoint): Don't include in the IPA.
17098 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17099 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17100 (alloced_trace_state_variables): New.
17101 (trace_state_variables): Use IP_AGENT_EXPORT.
17102 (traceframe_t): Delete unused variable.
17103 (circular_trace_buffer): Don't include in the IPA.
17104 (trace_buffer_start): Delete.
17105 (struct trace_buffer_control): New.
17106 (trace_buffer_free): Delete.
17107 (struct ipa_trace_buffer_control): New.
17108 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17109 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17110 New.
17111 (trace_buffer_ctrl): New.
17112 (TRACE_BUFFER_CTRL_CURR): New.
17113 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17114 Reimplement as macros.
17115 (trace_buffer_wrap): Delete.
17116 (traceframe_write_count, traceframe_read_count)
17117 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17118 (struct tracepoint_hit_ctx) <type>: New field.
17119 (struct fast_tracepoint_ctx): New.
17120 (memory_barrier): New.
17121 (cmpxchg): New.
17122 (record_tracepoint_error): Update atomically in the IPA.
17123 (clear_inferior_trace_buffer): New.
17124 (about_to_request_buffer_space): New.
17125 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17126 updating the same buffer.
17127 (add_tracepoint): Default the tracepoint's type to trap
17128 tracepoint, and orig_size to -1.
17129 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17130 internal variables.
17131 (create_trace_state_variable): New parameter `gdb'. Handle it.
17132 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17133 (cmd_qtdp): Handle fast tracepoints.
17134 (cmd_qtdv): Adjust.
17135 (max_jump_pad_size): New.
17136 (gdb_jump_pad_head): New.
17137 (get_jump_space_head): New.
17138 (claim_jump_space): New.
17139 (sort_tracepoints): New.
17140 (MAX_JUMP_SIZE): New.
17141 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17142 IPA.
17143 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17144 support. Upload fast traceframes, and delete internal IPA
17145 breakpoints.
17146 (stop_tracing_handler): New.
17147 (flush_trace_buffer_handler): New.
17148 (cmd_qtstop): Upload fast tracepoints.
17149 (response_tracepoint): Handle fast tracepoints.
17150 (tracepoint_finished_step): Upload fast traceframes. Set the
17151 tracepoint hit context's tracepoint type.
17152 (handle_tracepoint_bkpts): New.
17153 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17154 type. Add comment about fast tracepoints.
17155 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17156 non-existing action_str field.
17157 (get_context_regcache): Handle fast tracepoints.
17158 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17159 to the regcache.
17160 (fast_tracepoint_from_jump_pad_address): New.
17161 (fast_tracepoint_from_ipa_tpoint_address): New.
17162 (collecting_t): New.
17163 (force_unlock_trace_buffer): New.
17164 (fast_tracepoint_collecting): New.
17165 (collecting): New.
17166 (gdb_collect): New.
17167 (write_inferior_data_ptr): New.
17168 (target_tp_heap): New.
17169 (target_malloc): New.
17170 (download_agent_expr): New.
17171 (UALIGN): New.
17172 (download_tracepoints): New.
17173 (download_trace_state_variables): New.
17174 (upload_fast_traceframes): New.
17175 (IPA_FIRST_TRACEFRAME): New.
17176 (IPA_NEXT_TRACEFRAME_1): New.
17177 (IPA_NEXT_TRACEFRAME): New.
17178 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17179 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17180 (gdb_jump_pad_buffer_end): New.
17181 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17182 (initialize_tracepoint): Adjust.
17183 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17184 buffer. Initialize the low module.
17185 * utils.c (PREFIX, TOOLNAME): New.
17186 (malloc_failure): Use PREFIX.
17187 (error): In the IPA, an error causes an exit.
17188 (fatal, warning): Use PREFIX.
17189 (internal_error): Use TOOLNAME.
17190 (NUMCELLS): Increase to 10.
17191 * configure, config.in: Regenerate.
17192
d149dd1d
PA
171932010-06-01 Pedro Alves <pedro@codesourcery.com>
17194
17195 * server.c (handle_query) <qSupported>: Do two passes over the
17196 qSupported string to avoid nesting strtok.
17197
f6528abd
JK
171982010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17199
17200 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17201 (CDEPS): New.
17202 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17203 -Wl,--dynamic-list.
17204 * configure: Regenerate.
17205 * proc-service.list: New.
17206
ca2a87a0
JK
172072010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17208
17209 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17210 New comment.
17211
363a6e9f
OS
172122010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17213
17214 * gdbreplay.c (remote_open): Check error return from socket() call by
17215 its equality to -1 not by it being negative.
17216 * remote-utils.c (remote_open): Likewise.
17217
d23b6cb1
PA
172182010-05-23 Pedro Alves <pedro@codesourcery.com>
17219
17220 * config.h: Regenerate.
17221
28d3cf85
MK
172222010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17223
17224 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17225 doesn't provide PTRACE_GET_THREAD_AREA.
17226
fea36a59
MK
172272010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17228
17229 * linux-m68k-low.c: Include <asm/ptrace.h>
17230 (ps_get_thread_area): Implement.
17231
24b066ba
DE
172322010-05-03 Doug Evans <dje@google.com>
17233
17234 * event-loop.c (struct callback_event): New struct.
17235 (callback_list): New global.
17236 (append_callback_event, delete_callback_event): New functions.
17237 (process_callback): New function.
17238 (start_event_loop): Call it.
17239 * remote-utils.c (NOT_SCHEDULED): Define.
17240 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17241 moved out of readchar.
17242 (readchar): Rewrite. Call reschedule before returning.
17243 (reset_readchar): New function.
17244 (remote_close): Call it.
17245 (process_remaining, reschedule): New functions.
17246 * server.h (callback_handler_func): New typedef.
17247 (append_callback_event, delete_callback_event): Declare.
17248
9836d6ea
PA
172492010-05-03 Pedro Alves <pedro@codesourcery.com>
17250
17251 * proc-service.c (ps_pglobal_lookup): Use
17252 thread_db_look_up_one_symbol.
17253 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17254 parameter. Use it instead of all_symbols_looked_up.
17255 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17256 field.
17257 (all_symbols_looked_up): Don't declare.
17258 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17259 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17260 field.
17261 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17262 Set all_symbols_looked_up here.
17263 (thread_db_look_up_one_symbol): New.
17264 (thread_db_get_tls_address): Adjust.
17265 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17266 thread_db object on the heap, and tentatively set it in the
17267 process structure.
17268 (thread_db_init): Don't set all_symbols_looked_up here.
17269 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17270
7984d532
PA
172712010-05-03 Pedro Alves <pedro@codesourcery.com>
17272
17273 * linux-low.c (linux_kill, linux_detach): Adjust.
17274 (status_pending_p_callback): Remove redundant statement. Check
17275 for !TARGET_WAITIKIND_IGNORE, instead of
17276 TARGET_WAITKIND_STOPPED.
17277 (handle_tracepoints): Make sure LWP is locked. Adjust.
17278 (linux_wait_for_event_1): Adjust.
17279 (linux_cancel_breakpoints): New.
17280 (unsuspend_one_lwp): New.
17281 (unsuspend_all_lwps): New.
17282 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17283 (send_sigstop_callback): Change return type to int, add new
17284 `except' parameter and handle it.
17285 (suspend_and_send_sigstop_callback): New.
17286 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17287 pass them down. If SUSPEND, also increment the lwp's suspend
17288 count.
17289 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17290 (need_step_over_p): Don't consider suspended LWPs.
17291 (start_step_over): Adjust.
17292 (proceed_one_lwp): Change return type to int, add new `except'
17293 parameter and handle it.
17294 (unsuspend_and_proceed_one_lwp): New.
17295 (proceed_all_lwps): Use find_inferior instead of
17296 for_each_inferior.
17297 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17298 also decrement the suspend count of LWPs. Pass `except' down,
17299 instead of hacking its suspend count.
17300 (linux_pause_all): Add `freeze' parameter. Adjust.
17301 (linux_unpause_all): New.
17302 (linux_target_ops): Install linux_unpause_all.
17303 * server.c (handle_status): Adjust.
17304 * target.h (struct target_ops): New fields `unpause_all' and
17305 `cancel_breakpoints'. Add new parameter to `pause_all'.
17306 (pause_all): Add new `freeze' parameter.
17307 (unpause_all): New.
17308 (cancel_breakpoints): New.
17309 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17310 cancel breakpoints.
17311 (cmd_qtstart): Pause threads.
17312 (stop_tracing): Pause threads, and cancel breakpoints.
17313 * win32-low.c (win32_target_ops): Adjust.
17314
e471f25b
PA
173152010-05-03 Pedro Alves <pedro@codesourcery.com>
17316
17317 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17318 the inferior right away from here...
17319 (linux_wait_1): ... to here, and adjust to check the thread's
17320 last_resume_kind instead of the lwp's step or stop_expected flags.
17321
1915ef4f
PA
173222010-05-02 Pedro Alves <pedro@codesourcery.com>
17323
17324 * README: Use consistent `GDB' and `GDBserver' spellings.
17325
f9e39928
PA
173262010-05-02 Pedro Alves <pedro@codesourcery.com>
17327
17328 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17329 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17330 (linux_detach_one_lwp): Assume the lwp is stopped.
17331 (any_thread_of): Delete.
17332 (linux_detach): Stop all lwps here. Don't blindly delete all
17333 breakpoints.
17334 (delete_lwp_callback): New.
17335 (linux_mourn): Delete all lwps of the process that is gone.
17336 (linux_wait_1): Don't delete the last lwp of the process here.
17337 * mem-break.h (mark_breakpoints_out): Declare.
17338 * mem-break.c (mark_breakpoints_out): New.
17339 (free_all_breakpoints): Use it.
17340 * server.c (handle_target_event): If the process is gone, mark
17341 breakpoints out.
17342 * thread-db.c (struct thread_db) <create_bp>: New field.
17343 (thread_db_enable_reporting): Fix prototype. Store a thread event
17344 breakpoint reference in the thread_db struct.
17345 (thread_db_load_search): Clear the thread_db object.
17346 (try_thread_db_load_1): Ditto.
17347 (switch_to_process): New.
17348 (disable_thread_event_reporting): Use it.
17349 (remove_thread_event_breakpoints): New.
17350 (thread_db_detach, thread_db_mourn): Use it.
17351
1e7fc18c
PA
173522010-05-01 Pedro Alves <pedro@codesourcery.com>
17353
17354 * linux-low.c (linux_enable_event_reporting): New.
17355 (linux_wait_for_event_1, handle_extended_wait): Use it.
17356
02fc4de7
PA
173572010-04-30 Pedro Alves <pedro@codesourcery.com>
17358
17359 * linux-low.c (linux_kill_one_lwp, linux_kill)
17360 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17361 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17362 SIGSTOP even if the LWP is stopped.
17363 (send_sigstop_callback): New.
17364 (stop_all_lwps): Use send_sigstop_callback instead.
17365 (linux_resume_one_thread): Adjust.
17366 (proceed_one_lwp): Still proceed an LWP that the client has
17367 requested to stop, if we haven't reported it as stopped yet. Make
17368 sure that LWPs the client want stopped, have a pending SIGSTOP.
17369
bc3b5632
DE
173702010-04-26 Doug Evans <dje@google.com>
17371
ae1ada35
DE
17372 * server.c (handle_general_set): Make static.
17373
bc3b5632
DE
17374 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17375 Print received char after testing for error/eof instead of before.
17376 (input_interrupt): Tweak comment.
17377
65730243
DE
173782010-04-23 Doug Evans <dje@google.com>
17379
17380 * server.c (start_inferior): Print inferior argv if --debug.
17381
a8ae7dc0
AR
173822010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17383
17384 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17385 * nto-x86-low.c: Include server.h
17386
1c07cc19
PM
173872010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17388
17389 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17390 be consistent with other sources of this directory.
17391 (init_registers_amd64): Correct name of source file of this function
17392 in the comment.
17393
e0a61e09
PM
173942010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17395
17396 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17397 64-bit executables.
17398
54709339
PM
173992010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17400
17401 * win32-i386-low.c: Add 64-bit support.
17402 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17403 (init_registers_amd64): Declare.
17404 (mappings): Add 64-bit version of array.
17405 (init_windows_x86): New function.
17406 (the_low_target): Change init_arch field to init_windows_x86.
17407
e8f0053d
PM
174082010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17409
17410 * win32-low.c: Adapt to support also 64-bit architecture.
17411 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17412 (get_image_name): Use SIZE_T type for local variable `done'.
17413 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17414 (toolhelp_get_dll_name): Idem.
17415 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17416 Use uintptr_t typecast to avoid warning.
17417 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17418 (handle_exception): Use phex_nz to avoid warning.
17419 (win32_wait): Remove unused local variable `process'.
17420
c481e77e
PM
174212010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17422
17423 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17424 `amd64-avx.o'.
17425
12ea4b69
PM
174262010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17427
17428 * configure.ac: Use `ws2_32' library for srv_mingw.
17429 * configure: Regenerate.
17430 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17431 * remote-utils.c: Likewise.
17432
f6d1620c
L
174332010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17434
17435 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17436 if __x86_64__ is defined.
17437
8e642873
PM
174382010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17439
17440 * configure: Regenerate.
17441
711e434b
PM
174422010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17443
17444 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17445 * target.h (target_ops): New get_tib_address field.
17446 * win32-low.h (win32_thread_info): Add thread_local_base field.
17447 * win32-low.c (child_add_thread): Add tlb argument.
17448 Set thread_local_base field to TLB.
17449 (get_child_debug_event): Adapt to child_add_thread change.
17450 (win32_get_tib_address): New function.
17451 (win32_target_ops): Set get_tib_address field to
17452 win32_get_tib_address.
17453 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17454
505106cd
PA
174552010-04-12 Pedro Alves <pedro@codesourcery.com>
17456
505106cd
PA
17457 * linux-low.c (linux_mourn): Also remove the process.
17458 * server.c (handle_target_event): Don't remove the process here.
17459 * nto-low.c (nto_mourn): New.
17460 (nto_target_ops): Install it.
17461 * spu-low.c (spu_mourn): New.
17462 (spu_target_ops): Install it.
17463 * win32-low.c (win32_mourn): New.
17464 (win32_target_ops): Install it.
17465
e8470a06
PA
174662010-04-12 Pedro Alves <pedro@codesourcery.com>
17467
17468 * server.h (buffer_xml_printf): Remove redundant `;'.
17469
45ba0d02
PA
174702010-04-12 Pedro Alves <pedro@codesourcery.com>
17471
17472 * regcache.c (set_register_cache): Invalidate regcaches before
17473 changing the register cache layout.
17474 (regcache_invalidate_one): Allow a NULL regcache.
17475 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17476 regcaches before changing the register cache layout or the target
17477 regsets.
17478
59e04013
L
174792010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17480
17481 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17482 variable warning on Linux/x86-64.
17483
8336d594
PA
174842010-04-11 Pedro Alves <pedro@codesourcery.com>
17485
17486 GDBserver disconnected tracing support.
17487
17488 * linux-low.c (linux_remove_process): Delete.
17489 (add_lwp): Don't set last_resume_kind here.
17490 (linux_kill): Use `mourn'.
17491 (linux_detach): Use `thread_db_detach', and `mourn'.
17492 (linux_mourn): New.
17493 (linux_attach_lwp_1): Adjust comment.
17494 (linux_attach): last_resume_kind moved the thread_info; adjust.
17495 (status_pending_p_callback): Adjust.
17496 (linux_wait_for_event_1): Adjust.
17497 (count_events_callback, select_singlestep_lwp_callback)
17498 (select_event_lwp_callback, cancel_breakpoints_callback)
17499 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17500 (proceed_one_lwp): Adjust.
17501 (linux_async): Add debug output.
17502 (linux_thread_stopped): New.
17503 (linux_pause_all): New.
17504 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17505 linux_pause_all.
17506 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17507 (thread_db_free): Delete declaration.
17508 (thread_db_detach, thread_db_mourn): Declare.
17509 * thread-db.c (thread_db_init): Use thread_db_mourn.
17510 (thread_db_free): Delete, split in two.
17511 (disable_thread_event_reporting): New.
17512 (thread_db_detach): New.
17513 (thread_db_mourn): New.
17514
17515 * server.h (struct thread_info) <last_resume_kind>: New field.
17516 <attached>: Add comment.
17517 <gdb_detached>: New field.
17518 (handler_func): Change return type to int.
17519 (handle_serial_event, handle_target_event): Ditto.
17520 (gdb_connected): Declare.
17521 (tracing): Delete.
17522 (disconnected_tracing): Declare.
17523 (stop_tracing): Declare.
17524
17525 * server.c (handle_query) <qSupported>: Report support for
17526 disconnected tracing.
17527 (queue_stop_reply_callback): Account for running threads.
17528 (gdb_wants_thread_stopped): New.
17529 (gdb_wants_all_threads_stopped): New.
17530 (gdb_reattached_process): New.
17531 (handle_status): Clear the `gdb_detached' flag of all processes.
17532 In all-stop, stop all threads.
17533 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17534 (process_serial_event): If the remote connection breaks, or if an
17535 exit was forced with "monitor exit", force an event loop exit.
17536 Handle disconnected tracing on detach.
17537 (handle_serial_event): Adjust.
17538 (handle_target_event): If GDB isn't connected, forward events back
17539 to the inferior, unless the last process exited, in which case,
17540 exit gdbserver. Adjust interface.
17541
17542 * remote-utils.c (remote_open): Don't block in accept. Instead
17543 register an event loop source on the listen socket file
17544 descriptor. Refactor bits into ...
17545 (listen_desc): ... this new global.
17546 (gdb_connected): ... this new function.
17547 (enable_async_notification): ... this new function.
17548 (handle_accept_event): ... this new function.
17549 (remote_close): Clear remote_desc.
17550
17551 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17552
17553 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17554 New fields.
17555 (mourn_inferior): Define.
17556 (target_process_qsupported): Avoid the dangling else problem.
17557 (thread_stopped): Define.
17558 (pause_all): Define.
17559 (target_waitstatus_to_string): Declare.
17560 * target.c (target_waitstatus_to_string): New.
17561
17562 * tracepoint.c (tracing): Make extern.
17563 (disconnected_tracing): New.
17564 (stop_tracing): Make extern. Handle tracing stops due to GDB
17565 disconnecting.
17566 (cmd_qtdisconnected): New.
17567 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17568 (handle_tracepoint_general_set): Handle QTDisconnected.
17569
17570 * event-loop.c (event_handler_func): Change return type to int.
17571 (process_event): Bail out if the event handler wants the event
17572 loop to stop.
17573 (handle_file_event): Ditto.
17574 (start_event_loop): Bail out if the event handler wants the event
17575 loop to stop.
17576
17577 * nto-low.c (nto_target_ops): Adjust.
17578 * spu-low.c (spu_wait): Don't remove the process here.
17579 (spu_target_ops): Adjust.
17580 * win32-low.c (win32_wait): Don't remove the process here.
17581 (win32_target_ops): Adjust.
17582
5d267c4c
PA
175832010-04-11 Pedro Alves <pedro@codesourcery.com>
17584
17585 * regcache.c (realloc_register_cache): Invalidate inferior's
17586 regcache before recreating it.
17587
623ccd72
PA
175882010-04-09 Pedro Alves <pedro@codesourcery.com>
17589
17590 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17591
219f2f23
PA
175922010-04-09 Stan Shebs <stan@codesourcery.com>
17593 Pedro Alves <pedro@codesourcery.com>
17594
17595 * server.h (LONGEST): New.
17596 (struct thread_info) <while_stepping>: New field.
17597 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17598 Declare.
17599 (initialize_tracepoint, handle_tracepoint_general_set)
17600 (handle_tracepoint_query, tracepoint_finished_step)
17601 (tracepoint_was_hit, release_while_stepping_state_list):
17602 (current_traceframe): Declare.
17603 * server.c (handle_general_set): Handle tracepoint packets.
17604 (read_memory): New.
17605 (write_memory): New.
17606 (handle_search_memory_1): Use read_memory.
17607 (handle_query): Report support for conditional tracepoints, trace
17608 state variables, and tracepoint sources. Handle tracepoint
17609 queries.
17610 (main): Initialize the tracepoints module.
17611 (process_serial_event): Handle traceframe reads/writes.
17612
17613 * linux-low.c (handle_tracepoints): New.
17614 (linux_wait_1): Call it.
17615 (linux_resume_one_lwp): Handle while-stepping.
17616 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17617 (linux_target_ops): Install them.
17618 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17619 New field.
17620 * linux-x86-low.c (x86_supports_tracepoints): New.
17621 (the_low_target). Install it.
17622
17623 * mem-break.h (delete_breakpoint): Declare.
17624 * mem-break.c (delete_breakpoint): Make external.
17625
17626 * target.h (struct target_ops): Add `supports_tracepoints',
17627 `read_pc', and `write_pc' fields.
17628 (target_supports_tracepoints): Define.
17629 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17630 (phex_nz): New.
17631
17632 * regcache.h (struct regcache) <registers_owned>: New field.
17633 (init_register_cache, regcache_cpy): Declare.
17634 (regcache_read_pc, regcache_write_pc): Declare.
17635 (register_cache_size): Declare.
17636 (supply_regblock): Declare.
17637 * regcache.c (init_register_cache): New.
17638 (new_register_cache): Use it.
17639 (regcache_cpy): New.
17640 (register_cache_size): New.
17641 (supply_regblock): New.
17642 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17643
219f2f23
PA
17644 * tracepoint.c: New.
17645
17646 * Makefile.in (OBS): Add tracepoint.o.
17647 (tracepoint.o): New rule.
17648
3a13a53b
L
176492010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17650
17651 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17652 (i386-mmx.o): New.
17653 (i386-mmx.c): Likewise.
17654 (i386-mmx-linux.o): Likewise.
17655 (i386-mmx-linux.c): Likewise.
17656
17657 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17658 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17659 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17660 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17661
17662 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17663 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17664 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17665
1570b33e
L
176662010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17667
17668 * Makefile.in (clean): Updated.
17669 (i386-avx.o): New.
17670 (i386-avx.c): Likewise.
17671 (i386-avx-linux.o): Likewise.
17672 (i386-avx-linux.c): Likewise.
17673 (amd64-avx.o): Likewise.
17674 (amd64-avx.c): Likewise.
17675 (amd64-avx-linux.o): Likewise.
17676 (amd64-avx-linux.c): Likewise.
17677
17678 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17679 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17680 (srv_amd64_regobj): Add amd64-avx.o.
17681 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17682 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17683 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17684 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17685 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17686 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17687 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17688
17689 * i387-fp.c: Include "i386-xstate.h".
17690 (i387_xsave): New.
17691 (i387_cache_to_xsave): Likewise.
17692 (i387_xsave_to_cache): Likewise.
17693 (x86_xcr0): Likewise.
17694
17695 * i387-fp.h (i387_cache_to_xsave): Likewise.
17696 (i387_xsave_to_cache): Likewise.
17697 (x86_xcr0): Likewise.
17698
17699 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17700 * linux-crisv32-low.c (target_regsets): Likewise.
17701 * linux-m68k-low.c (target_regsets): Likewise.
17702 * linux-mips-low.c (target_regsets): Likewise.
17703 * linux-ppc-low.c (target_regsets): Likewise.
17704 * linux-s390-low.c (target_regsets): Likewise.
17705 * linux-sh-low.c (target_regsets): Likewise.
17706 * linux-sparc-low.c (target_regsets): Likewise.
17707 * linux-xtensa-low.c (target_regsets): Likewise.
17708
17709 * linux-low.c: Include <sys/uio.h>.
17710 (regsets_fetch_inferior_registers): Support nt_type.
17711 (regsets_store_inferior_registers): Likewise.
17712 (linux_process_qsupported): New.
17713 (linux_target_ops): Add linux_process_qsupported.
17714
17715 * linux-low.h (regset_info): Add nt_type.
17716 (linux_target_ops): Add process_qsupported.
17717
17718 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17719 and <sys/uio.h>.
17720 (init_registers_i386_avx_linux): New.
17721 (init_registers_amd64_avx_linux): Likewise.
17722 (xmltarget_i386_linux_no_xml): Likewise.
17723 (xmltarget_amd64_linux_no_xml): Likewise.
17724 (PTRACE_GETREGSET): Likewise.
17725 (PTRACE_SETREGSET): Likewise.
17726 (x86_fill_xstateregset): Likewise.
17727 (x86_store_xstateregset): Likewise.
17728 (use_xml): Likewise.
17729 (x86_linux_update_xmltarget): Likewise.
17730 (x86_linux_process_qsupported): Likewise.
17731 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17732 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17733 init_registers_i386_linux here. Call
17734 x86_linux_update_xmltarget.
17735 (the_low_target): Add x86_linux_process_qsupported.
17736
17737 * server.c (handle_query): Call target_process_qsupported.
17738
17739 * target.h (target_ops): Add process_qsupported.
17740 (target_process_qsupported): New.
17741
fc7238bb
PA
177422010-04-03 Pedro Alves <pedro@codesourcery.com>
17743
17744 * inferiors.c (add_thread): Set last_status kind to
17745 TARGET_WAITKIND_IGNORE.
17746 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17747 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17748 (linux_wait_1): Move `thread' local definition to block that uses
17749 it. Don't NULL initialize `event_child'.
17750 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17751 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17752 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17753
bdabb078
PA
177542010-04-01 Pedro Alves <pedro@codesourcery.com>
17755
17756 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17757 an extended waitstatus, or by a watchpoint.
17758 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17759 thread was stepping or has been stopped by a watchpoint.
17760
d3bbe7a0
PA
177612010-04-01 Pedro Alves <pedro@codesourcery.com>
17762
17763 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17764 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17765 of another, then delete the previous, and validate all
17766 breakpoints.
17767 (validate_inserted_breakpoint): New.
17768 (delete_disabled_breakpoints): New.
17769 (validate_breakpoints): New.
17770 (check_mem_read): Validate breakpoints before trusting their
17771 shadow. Delete disabled breakpoints.
17772 (check_mem_write): Validate breakpoints before trusting they
17773 should be inserted. Delete disabled breakpoints.
17774 * mem-break.h (validate_breakpoints):
17775 * server.c (handle_query): Validate breakpoints when we see a
17776 qSymbol query.
17777
8b07ae33
PA
177782010-04-01 Pedro Alves <pedro@codesourcery.com>
17779
17780 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17781 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17782 if we could tell there's a GDB breakpoint at stop_pc.
17783 (need_step_over_p): Don't do a step over if we find a GDB
17784 breakpoint at the resume PC.
17785
17786 * mem-break.c (struct raw_breakpoint): New.
17787 (enum bkpt_type): New type `gdb_breakpoint'.
17788 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17789 fields. New field `raw'.
17790 (find_raw_breakpoint_at): New.
17791 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17792 breakpoint instead.
17793 (set_breakpoint_at): Adjust.
17794 (delete_raw_breakpoint): New.
17795 (release_breakpoint): New.
17796 (delete_breakpoint): Rename to...
17797 (delete_breakpoint_1): ... this. Add proc parameter. Use
17798 release_breakpoint. Return ENOENT.
17799 (delete_breakpoint): Reimplement.
17800 (find_breakpoint_at): Delete.
17801 (find_gdb_breakpoint_at): New.
17802 (delete_breakpoint_at): Delete.
17803 (set_gdb_breakpoint_at): New.
17804 (delete_gdb_breakpoint_at): New.
17805 (gdb_breakpoint_here): New.
17806 (set_reinsert_breakpoint): Use release_breakpoint.
17807 (uninsert_breakpoint): Rename to ...
17808 (uninsert_raw_breakpoint): ... this.
17809 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17810 (reinsert_raw_breakpoint): Change parameter type to
17811 raw_breakpoint.
17812 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17813 instead.
17814 (check_breakpoints): Adjust. Use release_breakpoint.
17815 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17816 (breakpoint_inserted_here): Ditto.
17817 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17818 Don't trust the breakpoint's shadow if it is not inserted.
17819 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17820 (delete_all_breakpoints): Adjust.
17821 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17822 use delete_breakpoint_1.
17823
17824 * mem-break.h (breakpoints_supported): Delete declaration.
17825 (set_gdb_breakpoint_at): Declare.
17826 (gdb_breakpoint_here): Declare.
17827 (delete_breakpoint_at): Delete.
17828 (delete_gdb_breakpoint_at): Declare.
17829
17830 * server.h (struct raw_breakpoint): Forward declare.
17831 (struct process_info): New field `raw_breakpoints'.
17832
17833 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17834 breakpoints.
17835
6bf5e0ba
PA
178362010-03-24 Pedro Alves <pedro@codesourcery.com>
17837
17838 * linux-low.c (status_pending_p_callback): Fix comment.
17839 (linux_wait_for_event_1): Move most of the internal breakpoint
17840 handling from here...
17841 (linux_wait_1): ... to here.
17842 (count_events_callback): New.
17843 (select_singlestep_lwp_callback): New.
17844 (select_event_lwp_callback): New.
17845 (cancel_breakpoints_callback): New.
17846 (select_event_lwp): New.
17847 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17848 priority to all LWPs that have had events that should be reported
17849 to the client. Cancel breakpoints when about to reporting the
17850 event to the client, not while stopping lwps. No longer cancel
17851 finished single-steps here.
17852 (cancel_finished_single_step): Delete.
17853 (cancel_finished_single_steps): Delete.
17854
414a389f
PA
178552010-03-24 Pedro Alves <pedro@codesourcery.com>
17856
17857 * mem-break.c (enum bkpt_type): New.
17858 (struct breakpoint): New field `type'.
17859 (set_breakpoint_at): Change return type to struct breakpoint
17860 pointer. Set type to `other_breakpoint' by default.
17861 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17862 in the breakpoint list.
17863 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17864 (reinsert_breakpoint): Rename to ...
17865 (reinsert_raw_breakpoint): ... this.
17866 (reinsert_breakpoints_at): Adjust.
17867 * mem-break.h (struct breakpoint): Declare.
17868 (set_breakpoint_at): Change return type to struct breakpoint
17869 pointer.
17870
2280c721
PA
178712010-03-24 Pedro Alves <pedro@codesourcery.com>
17872
17873 * server.c (handle_query): Assign, not compare.
17874
d50171e4
PA
178752010-03-24 Pedro Alves <pedro@codesourcery.com>
17876
17877 Teach linux gdbserver to step-over-breakpoints.
17878
17879 * linux-low.c (can_hardware_single_step): New.
17880 (supports_breakpoints): New.
17881 (handle_extended_wait): If stopping threads, read the stop pc of
17882 the new cloned LWP.
17883 (get_pc): New.
17884 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17885 low target doesn't support retrieving the PC.
17886 (add_lwp): Set last_resume_kind to resume_continue.
17887 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17888 (linux_attach): Don't clear stop_expected. Set the lwp's
17889 last_resume_kind to resume_stop.
17890 (linux_detach_one_lwp): Don't check for removed breakpoints.
17891 (check_removed_breakpoint): Delete.
17892 (status_pending_p): Rename to ...
17893 (status_pending_p_callback): ... this. Don't check for removed
17894 breakpoints. Don't consider threads that are stopped from GDB's
17895 perspective.
17896 (linux_wait_for_lwp): Always read the stop_pc here.
17897 (cancel_breakpoint): New.
17898 (step_over_bkpt): New global.
17899 (linux_wait_for_event_1): Implement stepping over breakpoints.
17900 (gdb_wants_lwp_stopped): New.
17901 (gdb_wants_all_stopped): New.
17902 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17903 single-step traps here. Store the thread's last reported target
17904 wait status.
17905 (send_sigstop): Don't clear stop_expected. Always set it,
17906 instead.
17907 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17908 (cancel_finished_single_step): New.
17909 (cancel_finished_single_steps): New.
17910 (wait_for_sigstop): Don't cancel finished single-step traps here.
17911 (linux_resume_one_lwp): Don't check for removed breakpoints.
17912 Don't set `step' on non-hardware step archs.
17913 (linux_set_resume_request): Ignore resume_stop requests if already
17914 stopping or stopped. Set the lwp's last_resume_kind.
17915 (resume_status_pending_p): Don't check for removed breakpoints.
17916 (need_step_over_p): New.
17917 (start_step_over): New.
17918 (finish_step_over): New.
17919 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17920 requests. Clear the thread's last reported target waitstatus.
17921 Don't use the `suspended' flag. Don't consider pending breakpoints.
17922 (linux_resume): Start a step-over if necessary.
17923 (proceed_one_lwp): New.
17924 (proceed_all_lwps): New.
17925 (unstop_all_lwps): New.
17926 * linux-low.h (struct lwp_info): Rewrite comment for the
17927 `suspended' flag. Add the `stop_pc' field. Delete the
17928 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17929 Add `'last_resume_kind' and `need_step_over' fields.
17930 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17931 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17932 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17933 (set_raw_breakpoint_at): New.
17934 (set_breakpoint_at): Rewrite to use it.
17935 (reinsert_breakpoint_handler): Delete.
17936 (set_reinsert_breakpoint): New.
17937 (reinsert_breakpoint_by_bp): Delete.
17938 (delete_reinsert_breakpoints): New.
17939 (uninsert_breakpoint): Rewrite.
17940 (uninsert_breakpoints_at): New.
17941 (reinsert_breakpoint): Rewrite.
17942 (reinsert_breakpoints_at): New.
17943 (check_breakpoints): Rewrite.
17944 (breakpoint_here): New.
17945 (breakpoint_inserted_here): New.
17946 (check_mem_read): Adjust.
17947 * mem-break.h (breakpoints_supported, breakpoint_here)
17948 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17949 (reinsert_breakpoint_by_bp): Delete declaration.
17950 (delete_reinsert_breakpoints): Declare.
17951 (reinsert_breakpoint): Delete declaration.
17952 (reinsert_breakpoints_at): Declare.
17953 (uninsert_breakpoint): Delete declaration.
17954 (uninsert_breakpoints_at): Declare.
17955 (check_breakpoints): Adjust prototype.
17956 * server.h: Adjust include order.
17957 (struct thread_info): Declare here. Add a `last_status' field.
17958
30ba68cb
MS
179592010-03-23 Michael Snyder <msnyder@vmware.com>
17960
17961 * server.c (crc32): New function.
17962 (handle_query): Add handling for 'qCRC:' request.
17963
b9a881c2
PA
179642010-03-23 Pedro Alves <pedro@codesourcery.com>
17965
17966 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17967 lwp had been stopped by a watchpoint.
17968
e92d13d5
PA
179692010-03-16 Pedro Alves <pedro@codesourcery.com>
17970
17971 * server.h (internal_error): Declare.
17972 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17973 * utils.c (internal_error): New function.
17974
64daa791
AS
179752010-03-15 Andreas Schwab <schwab@redhat.com>
17976
17977 * configure.srv: Fix typo setting srv_regobj.
17978
f52cd8cd
PA
179792010-03-15 Pedro Alves <pedro@codesourcery.com>
17980
17981 * linux-low.c (fetch_register): Avoid passing a non string literal
17982 format to `error'.
17983 (usr_store_inferior_registers): Ditto.
17984
93ae6fdc
PA
179852010-03-14 Pedro Alves <pedro@codesourcery.com>
17986
17987 * linux-low.c (linux_write_memory): Bail out early if peeking
17988 memory failed.
17989
c3adc08c
PA
179902010-03-14 Pedro Alves <pedro@codesourcery.com>
17991
17992 * linux-low.h (struct lwp_info): New fields
17993 `stopped_by_watchpoint' and `stopped_data_address'.
17994 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17995 here, and cache them in the lwp object.
17996 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17997 directly.
17998 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17999 field.
18000 (linux_stopped_by_watchpoint): Rewrite.
18001 (linux_stopped_data_address): Rewrite.
18002
bce522a2
PA
180032010-03-06 Simo Melenius <simo.melenius@iki.fi>
18004
18005 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18006 switching the current inferior, not before.
18007
90884b2b
L
180082010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18009
18010 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18011 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18012 i386-linux.c and amd64-linux.c.
18013 (reg-i386.o): Removed.
18014 (reg-i386.c): Likewise.
18015 (reg-i386-linux.o): Likewise.
18016 (reg-i386-linux.c): Likewise.
18017 (reg-x86-64.o): Likewise.
18018 (reg-x86-64.c): Likewise.
18019 (reg-x86-64-linux.o): Likewise.
18020 (reg-x86-64-linux.c): Likewise.
18021 (i386.o): New.
18022 (i386.c): Likewise.
18023 (i386-linux.o): Likewise.
18024 (i386-linux.c): Likewise.
18025 (amd64.o): Likewise.
18026 (amd64.c): Likewise.
18027 (amd64-linux.o): Likewise.
18028 (amd64-linux.c): Likewise.
18029
18030 * configure.srv (srv_i386_regobj): New.
18031 (srv_i386_linux_regobj): Likewise.
18032 (srv_amd64_regobj): Likewise.
18033 (srv_amd64_linux_regobj): Likewise.
18034 (srv_i386_32bit_xmlfiles): Likewise.
18035 (srv_i386_64bit_xmlfiles): Likewise.
18036 (srv_i386_xmlfiles): Likewise.
18037 (srv_amd64_xmlfiles): Likewise.
18038 (srv_i386_linux_xmlfiles): Likewise.
18039 (srv_amd64_linux_xmlfiles): Likewise.
18040 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18041 srv_xmlfiles to $srv_i386_xmlfiles.
18042 (i[34567]86-*-mingw32ce*): Likewise.
18043 (i[34567]86-*-mingw*): Likewise.
18044 (i[34567]86-*-nto*): Likewise.
18045 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18046 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18047 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18048 (x86_64-*-linux*): Likewise.
18049
18050 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18051 (init_registers_amd64_linux): New.
18052 (x86_arch_setup): Replace init_registers_x86_64_linux with
18053 init_registers_amd64_linux.
18054
193f13e6
MK
180552010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18056
18057 * configure.ac: Check for libdl. If it is not available link against
18058 static libthread_db.
18059 * configure: Regenerate.
18060
85d721b8
PA
180612010-02-22 Pedro Alves <pedro@codesourcery.com>
18062
18063 PR9605
18064
18065 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18066 handing a read watchpoint.
18067 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18068
6076632b
DE
180692010-02-12 Doug Evans <dje@google.com>
18070
18071 * linux-low.c (linux_supports_tracefork_flag): Document.
18072 (linux_look_up_symbols): Add comment.
18073
3327ccf7
L
180742010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18075
18076 * regcache.c (supply_register): Clear regcache if buf is NULL.
18077
0718675c 180782010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18079 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18080
18081 * inferiors.c (find_inferior): Add function documentation.
18082 (unloaded_dll): Handle the case where the unloaded dll has not
18083 been previously registered in the dll list.
18084
177321bd
DJ
180852010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18086
18087 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18088 (thumb2_breakpoint): New.
18089 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18090
2b009048
DJ
180912010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18092
18093 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18094 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18095 breakpoints.
18096
3be029c7
PA
180972010-01-21 Pedro Alves <pedro@codesourcery.com>
18098
18099 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18100
18f5de3b
JK
181012010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18102
18103 * linux-s390-low.c (s390_collect_ptrace_register)
18104 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18105
3743bb4f
DE
181062010-01-21 Doug Evans <dje@google.com>
18107
14ce3065
DE
18108 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18109 (PTRACE_ARG4_TYPE): New macro.
18110 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18111 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18112 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18113 (usr_store_inferior_registers): Ditto.
18114 (linux_read_memory, linux_write_memory): Ditto.
18115 (linux_test_for_tracefork): Ditto.
18116
3743bb4f
DE
18117 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18118 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18119
8b315be5
PA
181202010-01-21 Pedro Alves <pedro@codesourcery.com>
18121
18122 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18123 target.
18124
85492558
PA
181252010-01-21 Pedro Alves <pedro@codesourcery.com>
18126
18127 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18128 prototype to take a regcache. Adjust.
18129
442ea881
PA
181302010-01-20 Pedro Alves <pedro@codesourcery.com>
18131
18132 * regcache.h (struct thread_info): Forward declare.
18133 (struct regcache): New.
18134 (new_register_cache): Adjust prototype.
18135 (get_thread_regcache): Declare.
18136 (free_register_cache): Adjust prototype.
18137 (registers_to_string, registers_from_string): Ditto.
18138 (supply_register, supply_register_by_name, collect_register)
18139 (collect_register_as_string, collect_register_by_name): Ditto.
18140 * regcache.c (struct inferior_regcache_data): Delete.
18141 (get_regcache): Rename to ...
18142 (get_thread_regcache): ... this. Adjust. Switch inferior before
18143 fetching registers.
18144 (regcache_invalidate_one): Adjust.
18145 (regcache_invalidate): Fix prototype.
18146 (new_register_cache): Return the new register cache.
18147 (free_register_cache): Change prototype.
18148 (realloc_register_cache): Adjust.
18149 (registers_to_string): Change prototype to take a regcache. Adjust.
18150 (registers_from_string): Ditto.
18151 (register_data): Ditto.
18152 (supply_register): Ditto.
18153 (supply_register_by_name): Ditto.
18154 (collect_register): Ditto.
18155 (collect_register_as_string): Ditto.
18156 (collect_register_by_name): Ditto.
18157 * server.c (process_serial_event): Adjust.
18158 * linux-low.h (regset_fill_func, regset_store_func): Change
18159 prototype.
18160 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18161 Change prototype.
18162 * linux-low.c (get_stop_pc): Adjust.
18163 (check_removed_breakpoint): Adjust.
18164 (linux_wait_for_event): Adjust.
18165 (linux_resume_one_lwp): Adjust.
18166 (fetch_register): Add regcache parameter. Adjust.
18167 (usr_store_inferior_registers): Ditto.
18168 (regsets_fetch_inferior_registers): Ditto.
18169 (regsets_store_inferior_registers): Ditto.
18170 (linux_fetch_registers, linux_store_registers): Ditto.
18171 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18172 regcache. Adjust.
43aaf8b6
PA
18173 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18174 Ditto.
442ea881
PA
18175 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18176 prototype to take a regcache.
18177 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18178 * remote-utils.c (convert_ascii_to_int, outreg)
18179 (prepare_resume_reply): Change prototype to take a regcache.
18180 Adjust.
18181 * target.h (struct target_ops) <fetch_registers, store_registers>:
18182 Change prototype to take a regcache.
18183 (fetch_inferior_registers, store_inferior_registers): Change
18184 prototype to take a regcache. Adjust.
18185 * proc-service.c (ps_lgetregs): Adjust.
18186 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18187 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18188 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18189 take a regcache. Adjust.
18190 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18191 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18192 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18193 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18194 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18195 (cris_cannot_fetch_register):
18196 (cris_breakpoint_at): Change prototype to take a regcache.
18197 Adjust.
18198 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18199 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18200 to take a regcache. Adjust.
18201 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18202 Adjust.
18203 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18204 take a regcache. Adjust.
18205 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18206 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18207 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18208 * linux-mips-low.c (mips_get_pc):
18209 (mips_set_pc): Change prototype to take a regcache. Adjust.
18210 (mips_reinsert_addr): Adjust.
18211 (mips_collect_register): Change prototype to take a regcache.
18212 Adjust.
18213 (mips_supply_register):
18214 (mips_collect_register_32bit, mips_supply_register_32bit)
18215 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18216 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18217 * linux-ppc-low.c (ppc_supply_ptrace_register)
18218 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18219 (parse_spufs_run): Adjust.
18220 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18221 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18222 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18223 take a regcache. Adjust.
18224 * linux-s390-low.c (s390_collect_ptrace_register)
18225 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18226 (s390_set_pc): Change prototype to take a regcache. Adjust.
18227 (s390_arch_setup): Adjust.
18228 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18229 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18230 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18231 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18232 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18233 regcache. Adjust.
18234 (sparc_breakpoint_at): Adjust.
18235 * linux-xtensa-low.c (xtensa_fill_gregset):
18236 (xtensa_store_gregset):
18237 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18238 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18239 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18240 prototype to take a regcache. Adjust.
18241 * win32-arm-low.c (arm_fetch_inferior_register)
18242 (arm_store_inferior_register): Change prototype to take a
18243 regcache. Adjust.
18244 * win32-i386-low.c (i386_fetch_inferior_register)
18245 (i386_store_inferior_register): Change prototype to take a
18246 regcache. Adjust.
18247 * win32-low.c (child_fetch_inferior_registers)
18248 (child_store_inferior_registers): Change prototype to take a
18249 regcache. Adjust.
18250 (win32_wait): Adjust.
18251 (win32_fetch_inferior_registers): Change prototype to take a
18252 regcache. Adjust.
18253 (win32_store_inferior_registers): Adjust.
18254 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18255 store_inferior_register>: Change prototype to take a regcache.
18256
60c3d7b0
DE
182572010-01-20 Doug Evans <dje@google.com>
18258
18259 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18260 #ifdef.
18261 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18262 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18263
dc146f7c
VP
182642010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18265
18266 * linux-low.c (linux_core_of_thread): New.
18267 (compare_ints, show_process, list_threads): New.
18268 (linux_qxfer_osdata): Report threads and cores.
18269 (linux_target_op): Register linux_core_of_thread.
18270 * remote-utils.c (prepare_resume_reply): Report the core.
18271 (buffer_xml_printf): Support %d specifier.
18272 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18273 New.
18274 (handle_query): Handle qXfer:threads. Announce availability
18275 thereof.
18276 * target.h (struct target_ops): New field core_of_thread.
18277
7803799a
UW
182782010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18279
18280 * Makefile.in (clean): Remove new generated files.
18281 (reg-s390.o, reg-s390.c): Remove rules.
18282 (reg-s390x.o, reg-s390x.c): Likewise.
18283 (s390-linux32.o, s390-linux32.c): Add rules.
18284 (s390-linux64.o, s390-linux64.c): Likewise.
18285 (s390x-linux64.o, s390x-linux64.c): Likewise.
18286 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18287 * linux-s390-low.c: Include <elf.h>.
18288 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18289 (init_registers_s390): Remove prototype.
18290 (init_registers_s390x): Likewise.
18291 (init_registers_s390_linux32): Add prototype.
18292 (init_registers_s390_linux64): Likewise.
18293 (init_registers_s390x_linux64): Likewise.
18294 (s390_num_regs_3264): New define.
18295 (s390_regmap_3264): New global variable.
18296 (s390_cannot_fetch_register): Remove obsolete check.
18297 (s390_cannot_store_register): Likewise.
18298 (s390_collect_ptrace_register): Handle upper/lower register halves.
18299 (s390_supply_ptrace_register): Likewise.
18300 (s390_fill_gregset): Update to register number changes.
18301 (s390_get_hwcap): New routine.
18302 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18303 Install appropriate regmap and register set.
18304
6e7ffa39
JB
183052010-01-01 Joel Brobecker <brobecker@adacore.com>
18306
18307 * server.c (gdbserver_version): Update copyright year to 2010.
18308 * gdbreplay.c (gdbreplay_version): Likewise.
18309
957f3f49
DE
183102009-12-28 Doug Evans <dje@google.com>
18311
18312 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18313 elf/external.h. Include <elf.h> instead but only if necessary.
18314
ca5c370d
PA
183152009-12-28 Pedro Alves <pedro@codesourcery.com>
18316
18317 * linux-low.c (linux_remove_process): Remove `detaching'
18318 parameter. Don't release/detach from thread_db here.
18319 (linux_kill): Release/detach from thread_db here, ...
18320 (linux_detach): ... and here, before actually detaching.
18321 (linux_wait_1): ... and here, when a process exits.
18322 * thread-db.c (any_thread_of): New.
18323 (thread_db_free): Switch the current inferior to a thread of the
18324 passed in process.
18325
4ee62156
DE
183262009-12-21 Doug Evans <dje@google.com>
18327
d90e6a88
DE
18328 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18329
c5f62d5f
DE
18330 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18331 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18332 warning ifndef __NR_tkill. Move setting of errno there too.
18333 Delete unnecessary resetting of errno after syscall.
18334 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18335
10e86dd7
DE
18336 * configure.ac: Check for dladdr.
18337 * config.in: Regenerate.
18338 * configure: Regenerate.
18339 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18340 (try_thread_db_load): Update.
18341
4ee62156
DE
18342 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18343
00f515da
DE
183442009-12-18 Doug Evans <dje@google.com>
18345
e9464885
DE
18346 * event-loop.c: Include unistd.h if it exists.
18347
07d4f67e
DE
18348 * linux-low.c (my_waitpid): Move definition away from being in
18349 between linux_tracefork_child/linux_test_for_tracefork.
18350
00f515da
DE
18351 * gdb_proc_service.h (psaddr_t): Fix type.
18352 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18353 signature to match glibc.
18354
1de1badb
DE
183552009-12-16 Doug Evans <dje@google.com>
18356
18357 * linux-low.c (linux_read_memory): Fix argument to read.
18358
aeeb81d1
PA
183592009-11-26 Pedro Alves <pedro@codesourcery.com>
18360
18361 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18362 events, don't leave current_inferior pointing at null.
18363
10357975
PA
183642009-11-26 Pedro Alves <pedro@codesourcery.com>
18365
18366 * win32-low.c (LOG): Delete.
18367 (OUTMSG): Output to stderr.
18368 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18369 on compile time LOG macro.
18370 (win32_wait): Fix debug output.
18371
cf6e3471
PA
183722009-11-26 Pedro Alves <pedro@codesourcery.com>
18373
18374 * win32-low.c (win32_add_one_solib): If the dll name is
18375 "ntdll.dll", prepend the system directory to the dll path.
18376
0c85e18e
MK
183772009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18378
18379 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18380
9ac544ce 183812009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18382 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18383
18384 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18385 * configure.ac: Check for __mcoldfire__ and set
18386 gdb_cv_m68k_is_coldfire.
18387 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18388 reg-cf.o and reg-m68k.o.
18389 * configure: Regenerated.
18390
fd7dd3e6
PA
183912009-11-16 Pedro Alves <pedro@codesourcery.com>
18392
18393 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18394 Pass it to thread_db_free.
18395 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18396 proper `detaching' argument to linux_remove_process.
18397 * linux-low.h (thread_db_free): Add `detaching' parameter.
18398 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18399 to thread_db_free.
18400 (thread_db_free): Add `detaching' parameter. Only
18401 call td_ta_clear_event if detaching from process.
18402
75aa492e
MK
184032009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18404
18405 * thread-db.c (thread_db_free): Fix typo.
18406
21e1bee4
PP
184072009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18408
18409 PR gdb/10838
18410 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18411
8838b45e
NS
184122009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18413
18414 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18415 with an i686 compiler.
18416 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18417 needed.
18418 * configure: Rebuilt.
18419
8a35fb51
SL
184202009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18421
18422 PR gdb/10783
18423
18424 * server.c (handle_search_memory_1): Correct read_addr initialization
18425 in loop for searching subsequent chunks.
18426
96f15937
PP
184272009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18428
18429 * configure.ac: New --with-libthread-db option.
18430 * thread-db.c: Allow direct dependence on libthread_db.
18431 (thread_db_free): Adjust.
18432 * config.in: Regenerate.
18433 * configure: Likewise.
889bf7c5 18434
5f7d1694
PP
184352009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18436
18437 PR gdb/10757
18438 * thread-db.c (attach_thread): New function.
18439 (maybe_attach_thread): Return success/failure.
18440 (find_new_threads_callback): Adjust.
889bf7c5
PA
18441 (thread_db_find_new_threads): Loop until no new threads.
18442
88e3b899
PA
184432009-10-13 Pedro Alves <pedro@codesourcery.com>
18444
18445 * proc-service.c (ps_lgetregs): Formatting.
18446
cdbfd419
PP
184472009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18448
18449 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18450 * configure.ac: Adjust.
18451 * linux-low.h (struct process_info_private): Move members to struct
18452 thread_db.
18453 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18454 * linux-low.c (linux_remove_process): Adjust.
18455 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18456 * server.c (handle_query): Move code ...
18457 (handle_monitor_command): ... here. New function.
18458 * target.h (struct target_ops): New member.
18459 * thread-db.c (struct thread_db): New.
18460 (libthread_db_search_path): New variable.
18461 (thread_db_create_event, thread_db_enable_reporting)
18462 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18463 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18464 (try_thread_db_load_1, dladdr_to_soname): New functions.
18465 (try_thread_db_load, thread_db_load_search): New functions.
18466 (thread_db_init): Search for libthread_db.
18467 (thread_db_free): New function.
18468 (thread_db_handle_monitor_command): Likewise.
18469 * config.in: Regenerate.
18470 * configure: Regenerate.
889bf7c5 18471
4168d2d6
UW
184722009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18473
18474 * spu-low.c (spu_kill): Wait for inferior to terminate.
18475 Call clear_inferiors.
18476 (spu_detach): Call clear_inferiors.
18477
81ecdfbb
RW
184782009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18479
18480 * aclocal.m4: Regenerate.
18481 * config.in: Likewise.
18482 * configure: Likewise.
18483
0b9ff2c0
UW
184842009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18485
18486 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18487 (parse_spufs_run): New function.
18488 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18489 (ppc_breakpoint_at): Handle SPU breakpoints.
18490
efcbbd14
UW
184912009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18492
18493 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18494 (SPUFS_MAGIC): Define.
18495 (spu_enumerate_spu_ids): New function.
18496 (linux_qxfer_spu): New function.
18497 (linux_target_ops): Install linux_qxfer_spu.
18498
f4d9bade
UW
184992009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18500
18501 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18502 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18503 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18504 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18505 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18506 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18507 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18508 (init_registers_powerpc_cell32l): Add prototype.
18509 (init_registers_powerpc_cell64l): Likewise.
18510 (ppc_arch_setup): Detect Cell/B.E. architecture.
18511
96e946ca
RW
185122009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18513
18514 * Makefile.in (datarootdir): New variable.
18515
58d6951d
DJ
185162009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18517
18518 * linux-low.c (linux_write_memory): Update debugging output.
18519 * Makefile.in (clean): Add new descriptions.
18520 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18521 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18522 * configure.srv: Add new files for arm*-*-linux*.
18523 * linux-arm-low.c: Add new declarations.
18524 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18525 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18526 (HWCAP_VFPv3D16): New.
18527 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18528 instead of __IWMMXT__.
18529 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18530 (arm_arch_setup): New.
18531 (target_regsets): Remove #ifdef. Add VFP regset.
18532 (the_low_target): Use arm_arch_setup.
18533
12b42a12
DJ
185342009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18535
18536 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18537 the main thread again.
18538
ac8c974e
AR
185392009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18540
18541 Adding Neutrino gdbserver.
18542 * configure: Regenerated.
18543 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18544 * configure.srv (i[34567]86-*-nto*): New target.
18545 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18546 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18547 (nto_comctrl) [__QNX__]: New function.
18548 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18549
4424e0c3 185502009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18551
18552 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18553 srv_tgtobj.
18554
912cf4ba
PA
185552009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18556 Pedro Alves <pedro@codesourcery.com>
18557
18558 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18559 don't support CONTEXT_EXTENDED_REGISTERS.
18560 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18561 (the_low_target): Install them.
18562 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18563 failing with ERROR_PIPE_NOT_CONNECTED.
18564
aa5ca48f
DE
185652009-06-30 Doug Evans <dje@google.com>
18566 Pierre Muller <muller@ics.u-strasbg.fr>
18567
18568 Add h/w watchpoint support to x86-linux, win32-i386.
18569 * Makefile.in (SFILES): Add i386-low.c
18570 (i386_low_h): Define.
18571 (i386-low.o): Add dependencies.
18572 (linux-x86-low.o): Add i386-low.h dependency.
18573 (win32-i386-low.o): Ditto.
18574 * i386-low.c: New file.
18575 * i386-low.h: New file.
18576 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18577 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18578 * linux-low.c (linux_add_process): Initialize arch_private.
18579 (linux_remove_process): Free arch_private.
18580 (add_lwp): Initialize arch_private.
18581 (delete_lwp): Free arch_private.
18582 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18583 provided.
18584 * linux-low.h (process_info_private): New member arch_private.
18585 (lwp_info): New member arch_private.
18586 (linux_target_ops): New members new_process, new_thread,
18587 prepare_to_resume.
18588 (ptid_of): New macro.
18589 * linux-x86-low.c: Include stddef.h, i386-low.h.
18590 (arch_process_info): New struct.
18591 (arch_lwp_info): New struct.
18592 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18593 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18594 (i386_dr_low_get_status): New function.
18595 (x86_insert_point, x86_remove_point): New functions.
18596 (x86_stopped_by_watchpoint): New function.
18597 (x86_stopped_data_address): New function.
18598 (x86_linux_new_process, x86_linux_new_thread): New functions.
18599 (x86_linux_prepare_to_resume): New function.
18600 (the_low_target): Add entries for insert_point, remove_point,
18601 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18602 prepare_to_resume.
18603 * server.c (debug_hw_points): New global.
18604 (monitor_show_help): Document set debug-hw-points.
18605 (handle_query): Process "set debug-hw-points".
18606 * server.h (debug_hw_points): Declare.
18607 (paddress): Declare.
18608 * utils.c (NUMCELLS, CELLSIZE): New macros.
18609 (get_sell, xsnprintf, paddress): New functions.
18610 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18611 remove_point, stopped_by_watchpoint, stopped_data_address.
18612 * win32-i386-low.c: Include i386-low.h.
18613 (debug_reg_state): Replaces dr.
18614 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18615 (i386_dr_low_get_status): New function.
18616 (i386_insert_point, i386_remove_point): New functions.
18617 (i386_stopped_by_watchpoint): New function.
18618 (i386_stopped_data_address): New function.
18619 (i386_initial_stuff): Update.
18620 (get_thread_context,set_thread_context,i386_thread_added): Update.
18621 (the_low_target): Add entries for insert_point,
18622 remove_point, stopped_by_watchpoint, stopped_data_address.
18623 * win32-low.c (win32_insert_watchpoint): New function.
18624 (win32_remove_watchpoint): New function.
18625 (win32_stopped_by_watchpoint): New function.
18626 (win32_stopped_data_address): New function.
18627 (win32_target_ops): Add entries for insert_watchpoint,
18628 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18629 * win32-low.h (win32_target_ops): New members insert_point,
18630 remove_point, stopped_by_watchpoint, stopped_data_address.
18631
d993e290
PA
186322009-06-25 Pedro Alves <pedro@codesourcery.com>
18633
18634 * server.c (process_serial_event): Re-return unsupported, not
18635 error, if the type isn't recognized. Re-allow supporting only
18636 insert or remove packets. Also call require_running for
18637 breakpoints. Add missing break statement to default case. Tidy.
18638 * target.h (struct target_ops): Rename insert_watchpoint to
18639 insert_point, and remove_watchpoint to remove_point.
18640
18641 * linux-low.h (struct linux_target_ops): Likewise.
18642 * linux-low.c (linux_insert_watchpoint): Rename to ...
18643 (linux_insert_point): ... this. Adjust.
18644 (linux_remove_watchpoint): Rename to ...
18645 (linux_remove_point): ... this. Adjust.
18646 (linux_target_ops): Adjust.
18647 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18648 (cris_insert_point): ... this.
18649 (cris_remove_watchpoint): Rename to ...
18650 (cris_remove_point): ... this.
18651 (the_low_target): Adjust.
18652
0f54c268
PM
186532009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18654
18655 * server.c (handle_v_kill): Pass signal_pid to
18656 kill_inferior if multi_process is zero.
18657
c6314022
AR
186582009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18659
18660 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18661 * target.h (target_ops): Comment for *_watchpoint to make it clear
18662 the functions can get types '0' and '1'.
18663
4463ce24
AR
186642009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18665
18666 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18667 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18668 * regcache.c (get_regcache): Likewise.
18669 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18670 * win32-low.c (child_fetch_inferior_registers): Remove check for
18671 regno 0.
18672
cf8fd78b
PA
186732009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18674 Pedro Alves <pedro@codesourcery.com>
18675
18676 * target.h (struct target_ops) <supports_multi_process>: New
18677 callback.
18678 (target_supports_multi_process): New.
18679 * server.c (handle_query): Even if GDB reports support, only
18680 enable multi-process if the target also supports it. Report
18681 multi-process support only if the target backend supports it.
18682 * linux-low.c (linux_supports_multi_process): New function.
18683 (linux_target_ops): Install it as target_supports_multi_process
18684 callback.
18685
47c0c975
DE
186862009-05-24 Doug Evans <dje@google.com>
18687
e09875d4
DE
18688 Global renaming of find_thread_pid to find_thread_ptid.
18689 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18690 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18691 All callers updated.
18692
e27d73f6
DE
18693 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18694 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18695 directly.
18696
47c0c975
DE
18697 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18698 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18699 (linux_resume_one_lwp): Ditto.
18700
2acc282a
DE
187012009-05-23 Doug Evans <dje@google.com>
18702
18703 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18704 from struct inferior_list_entry * to struct lwp_info *.
18705 All callers updated.
18706
9f1036c1
DE
187072009-05-13 Doug Evans <dje@google.com>
18708
18709 * linux-x86-low.c: Don't include assert.h.
18710 (x86_siginfo_fixup): Use fatal, not assert.
18711 (x86_arch_setup): Fix comment.
18712
d0722149
DE
187132009-05-12 Doug Evans <dje@google.com>
18714
18715 Biarch support for i386/amd64 gdbserver.
18716 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18717 Add linux-x86-low.c.
18718 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18719 (linux-x86-low.o): Add.
18720 * linux-x86-64-low.c: Delete.
18721 * linux-i386-low.c: Delete.
18722 * linux-x86-low.c: New file.
18723 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18724 linux-x86-low.o.
18725 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18726 linux-x86-low.o.
18727 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18728 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18729 (linux_child_pid_to_exec_file): New function.
18730 (elf_64_header_p, elf_64_file_p): New functions.
18731 (siginfo_fixup): New function.
18732 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18733 give target a chance to convert layout.
18734 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18735 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18736
fdeb2a12
DE
187372009-05-07 Doug Evans <dje@google.com>
18738
18739 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18740 (regsets_store_inferior_registers): Ditto.
18741
a6dbe5df
PA
187422009-05-06 Pedro Alves <pedro@codesourcery.com>
18743
18744 PR server/10048
18745
18746 * linux-low.c (must_set_ptrace_flags): Delete.
18747 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18748 of the global.
18749 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18750 `lwp->must_set_ptrace_flags' instead.
ba42693b 18751 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18752 (linux_wait_1): ... not here.
18753
5091eb23
DE
187542009-04-30 Doug Evans <dje@google.com>
18755
9f767825
DE
18756 * inferiors.c (started_inferior_callback): New function.
18757 (attached_inferior_callback): New function.
18758 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18759 * server.c (print_started_pid, print_attached_pid): New functions.
18760 (detach_or_kill_for_exit): New function.
18761 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18762 * server.h (have_started_inferiors_p): Declare.
18763 (have_attached_inferiors_p): Declare.
18764
5091eb23
DE
18765 * inferiors.c (remove_process): Fix memory leak, free process.
18766 * linux-low.c (linux_remove_process): New function.
18767 (linux_kill): Call it instead of remove_process.
18768 (linux_detach, linux_wait_1): Ditto.
18769
155c8968
PA
187702009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18771
18772 * configure.srv: Add x86 Windows CE target.
18773
7fe519cb
UW
187742009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18775
18776 * inferiors.c (get_thread_process): Make global.
18777 * server.h (get_thread_process): Add prototype.
18778 * thread-db.c (find_one_thread): Use get_thread_process
18779 instead of current_process.
18780 (thread_db_get_tls_address): Do not crash if called when
18781 thread layer is not yet initialized.
18782
5472f405
UW
187832009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18784
18785 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18786 * spu-low.c (current_tid): Rename to ...
18787 (current_ptid): ... this.
18788 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18789 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18790 ptid_get_lwp (current_ptid) instead of current_tid.
18791 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18792 instead of current_tid. Use find_process_pid to verify pid
18793 argument is valid. Pass proper argument to remove_process.
18794 (spu_thread_alive): Compare current_ptid instead of current_tid.
18795 (spu_resume): Likewise.
18796
55ac2b99
PA
187972009-04-02 Pedro Alves <pedro@codesourcery.com>
18798
18799 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18800 variable.
18801
95954743
PA
188022009-04-01 Pedro Alves <pedro@codesourcery.com>
18803
18804 Implement the multiprocess extensions, and add linux multiprocess
18805 support.
18806
18807 * server.h (ULONGEST): Declare.
18808 (struct ptid, ptid_t): New.
18809 (minus_one_ptid, null_ptid): Declare.
18810 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18811 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18812 (struct inferior_list_entry): Change `id' type from unsigned from
18813 to ptid_t.
18814 (struct sym_cache, struct breakpoint, struct
18815 process_info_private): Forward declare.
18816 (struct process_info): Declare.
18817 (current_process): Declare.
18818 (all_processes): Declare.
18819 (initialize_inferiors): Declare.
18820 (add_thread): Adjust to use ptid_t.
18821 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18822 (add_process, remove_process, find_thread_pid): Declare.
18823 (find_inferior_id): Adjust to use ptid_t.
18824 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18825 (multi_process): Declare.
18826 (push_event): Adjust to use ptid_t.
18827 (read_ptid, write_ptid): Declare.
18828 (prepare_resume_reply): Adjust to use ptid_t.
18829 (clear_symbol_cache): Declare.
18830 * inferiors.c (all_processes): New.
18831 (null_ptid, minus_one_ptid): New.
18832 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18833 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18834 (add_thread): Change unsigned long to ptid. Remove gdb_id
18835 parameter. Adjust.
18836 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18837 (gdb_id_to_thread): Rename to ...
18838 (find_thread_pid): ... this. Change unsigned long to ptid.
18839 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18840 (loaded_dll, pull_pid_from_list): Adjust.
18841 (add_process, remove_process, find_process_pid)
18842 (get_thread_process, current_process, initialize_inferiors): New.
18843 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18844 (struct target_waitstatus) <related_pid>: Ditto.
18845 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18846 return type to int.
18847 (struct target_ops) <join>: Add `pid' argument.
18848 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18849 (struct target_ops) <wait>: Add `ptid' field. Change return type
18850 to ptid.
18851 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18852 (mywait): Add `ptid' argument. Change return type to ptid_t.
18853 (target_pid_to_str): Declare.
18854 * target.c (set_desired_inferior): Adjust to use ptids.
18855 (mywait): Add new `ptid' argument. Adjust.
18856 (target_pid_to_str): New.
18857 * mem-break.h (free_all_breakpoints): Declare.
18858 * mem-break.c (breakpoints): Delelete.
18859 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18860 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18861 to use per-process breakpoint list.
18862 (free_all_breakpoints): New.
18863 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18864 (symbol_cache, all_symbols_looked_up): Delete.
18865 (hexchars): New.
18866 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18867 read_ptid): New.
18868 (prepare_resume_reply): Change ptid argument's type from unsigned
18869 long to ptid_t. Adjust. Implement W;process and X;process.
18870 (free_sym_cache, clear_symbol_cache): New.
18871 (look_up_one_symbol): Adjust to per-process symbol cache. *
18872 * server.c (cont_thread, general_thread, step_thread): Change type
18873 to ptid_t.
18874 (attached): Delete.
18875 (multi_process): New.
18876 (last_ptid): Change type to ptid_t.
18877 (struct vstop_notif) <ptid>: Change type to ptid_t.
18878 (queue_stop_reply, push_event): Change `ptid' argument's type to
18879 ptid_t.
18880 (discard_queued_stop_replies): Add `pid' argument.
18881 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18882 changes. Don't reference the `attached' global.
18883 (attach_inferior): Adjust to mywait interface changes.
18884 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18885 features. Handle and report "multiprocess+". Handle
18886 "qAttached:PID".
18887 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18888 changes.
18889 (handle_v_kill): New.
18890 (handle_v_stopped): Adjust to use target_pid_to_str.
18891 (handle_v_requests): Allow multiple attaches and runs when
18892 multiprocess extensions are in effect. Handle "vKill".
18893 (myresume): Adjust to use ptids.
18894 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18895 (handle_status): Adjust to discard_queued_stop_replies interface
18896 change.
18897 (first_thread_of, kill_inferior_callback)
18898 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18899 (main): Call initialize_inferiors. Adjust to use ptids, killing
18900 and detaching from all inferiors. Handle multiprocess packet
18901 variants.
18902 * linux-low.h: Include gdb_proc_service.h.
18903 (struct process_info_private): New.
18904 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18905 <lwpid_of>: Use ptid_get_lwp.
18906 (get_lwp_thread): Adjust.
18907 (struct lwp_info): Add `dead' member.
18908 (find_lwp_pid): Declare.
18909 * linux-low.c (thread_db_active): Delete.
18910 (new_inferior): Adjust comment.
18911 (inferior_pid): Delete.
18912 (linux_add_process): New.
18913 (handle_extended_wait): Adjust.
18914 (add_lwp): Change unsigned long to ptid.
18915 (linux_create_inferior): Add process to processes table. Adjust
18916 to use ptids. Don't set new_inferior here.
18917 (linux_attach_lwp): Rename to ...
18918 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18919 it. Adjust to use ptids.
18920 (linux_attach_lwp): New.
18921 (linux_attach): Add process to processes table. Don't set
18922 new_inferior here.
18923 (struct counter): New.
18924 (second_thread_of_pid_p, last_thread_of_process_p): New.
18925 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18926 multiple processes.
18927 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18928 processes. Remove process from process table.
18929 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18930 to multiple processes.
18931 (any_thread_of): New.
18932 (linux_detach): Add `pid' argument, and handle it. Remove process
18933 from processes table.
18934 (linux_join): Add `pid' argument. Handle it.
18935 (linux_thread_alive): Change unsighed long argument to ptid_t.
18936 Consider dead lwps as not being alive.
18937 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18938 threads we're not interested in.
18939 (same_lwp, find_lwp_pid): New.
18940 (linux_wait_for_lwp): Change `pid' argument's type from int to
18941 ptid_t. Adjust.
18942 (linux_wait_for_event): Rename to ...
18943 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18944 from int to ptid_t. Adjust.
18945 (linux_wait_for_event): New.
18946 (linux_wait_1): Add `ptid' argument. Change return type to
18947 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18948 that exit from the process table.
18949 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18950 Adjust.
18951 (mark_lwp_dead): New.
18952 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18953 stopping all threads, mark its main lwp as dead.
18954 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18955 ptids.
18956 (fetch_register, usr_store_inferior_registers)
18957 (regsets_fetch_inferior_registers)
18958 (regsets_store_inferior_registers, linux_read_memory)
18959 (linux_write_memory): Inline `inferior_pid'.
18960 (linux_look_up_symbols): Adjust to use per-process
18961 `thread_db_active'.
18962 (linux_request_interrupt): Adjust to use ptids.
18963 (linux_read_auxv): Inline `inferior_pid'.
18964 (initialize_low): Don't reference thread_db_active.
18965 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18966 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18967 (ps_getpid): Return the pid of the current inferior.
18968 * thread-db.c (proc_handle, thread_agent): Delete.
18969 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18970 per-process data.
18971 (find_one_thread): Change argument type to ptid_t. Adjust to
18972 per-process data.
18973 (maybe_attach_thread): Adjust to per-process data and ptids.
18974 (thread_db_find_new_threads): Ditto.
18975 (thread_db_init): Ditto.
18976 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18977 processes table. Adjust to use ptids.
18978 (spu_kill, spu_detach): Adjust interface. Remove process from
18979 processes table.
18980 (spu_join, spu_thread_alive): Adjust interface.
18981 (spu_wait): Adjust interface. Remove process from processes
18982 table. Adjust to use ptids.
18983 * win32-low.c (current_inferior_tid): Delete.
18984 (current_inferior_ptid): New.
18985 (debug_event_ptid): New.
18986 (thread_rec): Take a ptid. Adjust.
18987 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18988 (child_delete_thread): Ditto.
18989 (do_initial_child_stuff): Add `attached' argument. Add process to
18990 processes table.
18991 (child_fetch_inferior_registers, child_store_inferior_registers):
18992 Adjust.
18993 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18994 (win32_attach): Pass 1 to do_initial_child_stuff.
18995 (win32_kill): Adjust interface. Remove process from processes
18996 table.
18997 (win32_detach): Ditto.
18998 (win32_join): Adjust interface.
18999 (win32_thread_alive): Take a ptid.
19000 (win32_resume): Adjust to use ptids.
19001 (get_child_debug_event): Ditto.
19002 (win32_wait): Adjust interface. Remove exiting process from
19003 processes table.
19004
bd99dc85
PA
190052009-04-01 Pedro Alves <pedro@codesourcery.com>
19006
19007 Non-stop mode support.
19008
19009 * server.h (non_stop): Declare.
19010 (gdb_client_data, handler_func): Declare.
19011 (delete_file_handler, add_file_handler, start_event_loop):
19012 Declare.
19013 (handle_serial_event, handle_target_event, push_event)
19014 (putpkt_notif): Declare.
19015 * target.h (enum resume_kind): New.
19016 (struct thread_resume): Replace `step' field by `kind' field.
19017 (TARGET_WNOHANG): Define.
19018 (struct target_ops) <wait>: Add `options' argument.
19019 <supports_non_stop, async, start_non_stop>: New fields.
19020 (target_supports_non_stop, target_async): New.
19021 (start_non_stop): Declare.
19022 (mywait): Add `options' argument.
19023 * target.c (mywait): Add `options' argument. Print child exit
19024 notifications here.
19025 (start_non_stop): New.
19026 * server.c (non_stop, own_buf, mem_buf): New globals.
19027 (struct vstop_notif): New.
19028 (notif_queue): New global.
19029 (queue_stop_reply, push_event, discard_queued_stop_replies)
19030 (send_next_stop_reply): New.
19031 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19032 interface changes.
19033 (attach_inferior): In non-stop mode, don't wait for the target
19034 here.
19035 (handle_general_set): Handle QNonStop.
19036 (handle_query): When handling qC, return the current general
19037 thread, instead of the first thread of the list.
19038 (handle_query): If the backend supports non-stop mode, include
19039 QNonStop+ in the qSupported query response.
19040 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19041 and non-stop mode.
19042 (handle_v_attach, handle_v_run): Handle non-stop mode.
19043 (handle_v_stopped): New.
19044 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19045 (myresume): Adjust to use resume_kind. Handle non-stop.
19046 (queue_stop_reply_callback): New.
19047 (handle_status): Handle non-stop mode.
19048 (main): Clear non_stop flag on reconnection. Use the event-loop.
19049 Refactor serial protocol handling from here ...
19050 (process_serial_event): ... to this new function. When GDB
19051 selects any thread, select one here. In non-stop mode, wait until
19052 GDB acks all pending events before exiting.
19053 (handle_serial_event, handle_target_event): New.
19054 * remote-utils.c (remote_open): Install remote_desc in the event
19055 loop.
19056 (remote_close): Remove remote_desc from the event loop.
19057 (putpkt_binary): Rename to...
19058 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19059 (putpkt_binary): New as wrapper around putpkt_binary_1.
19060 (putpkt_notif): New.
19061 (prepare_resume_reply): In non-stop mode, don't change the
19062 general_thread.
19063 * event-loop.c: New.
19064 * Makefile.in (OBJ): Add event-loop.o.
19065 (event-loop.o): New rule.
19066
19067 * linux-low.h (pid_of): Moved here.
19068 (lwpid_of): New.
19069 (get_lwp_thread): Use lwpid_of.
19070 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19071 * linux-low.c (pid_of): Delete.
19072 (inferior_pid): Use lwpid_of.
19073 (linux_event_pipe): New.
19074 (target_is_async_p): New.
19075 (delete_lwp): New.
19076 (handle_extended_wait): Use lwpid_of.
19077 (add_lwp): Don't set lwpid field.
19078 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19079 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19080 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19081 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19082 first. Adjust to linux_wait_for_event interface changes. Use
19083 lwpid_of.
19084 (linux_detach): Don't delete the main lwp here.
19085 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19086 (status_pending_p): Don't consider explicitly suspended lwps.
19087 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19088 pointer. Add OPTIONS argument. Change return type to int. Use
19089 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19090 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19091 pointer. Add status pointer argument. Return a pid instead of a
19092 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19093 changes. In non-stop mode, don't switch to a random thread.
19094 (linux_wait): Rename to...
19095 (linux_wait_1): ... this. Add target_options argument, and handle
19096 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19097 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19098 clean exit and signal exit code. Don't stop all threads in
19099 non-stop mode. In all-stop mode, only stop all threads when
19100 reporting a stop to GDB. Handle explicit thread stop requests.
19101 (async_file_flush, async_file_mark): New.
19102 (linux_wait): New.
19103 (send_sigstop): Use lwpid_of.
19104 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19105 interface changes. In non-stop mode, don't switch to a random
19106 thread.
19107 (linux_resume_one_lwp): Use lwpid_of.
19108 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19109 (linux_resume_one_thread): ... this. Handle resume_stop. In
19110 non-stop mode, don't look for pending flag in all threads.
19111 (resume_status_pending_p): Don't consider explicitly suspended
19112 threads.
19113 (my_waitpid): Reimplement. Emulate __WALL.
19114 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19115 Use lwpid_of.
19116 (sigchld_handler, linux_supports_non_stop, linux_async)
19117 (linux_start_non_stop): New.
19118 (linux_target_ops): Register linux_supports_non_stop, linux_async
19119 and linux_start_non_stop.
19120 (initialize_low): Install SIGCHLD handler.
19121 * thread-db.c (thread_db_create_event, find_one_thread)
19122 (thread_db_get_tls_address): Use lwpid_of.
19123 * win32-low.c (win32_detach): Adjust to use resume_kind.
19124 (win32_wait): Add `options' argument.
19125 * spu-low.c (spu_resume): Adjust to use resume_kind.
19126 (spu_wait): Add `options' argument.
19127
5b1c542e
PA
191282009-04-01 Pedro Alves <pedro@codesourcery.com>
19129
19130 Decouple target code from remote protocol.
19131
19132 * target.h (enum target_waitkind): New.
19133 (struct target_waitstatus): New.
19134 (struct target_ops) <wait>: Return an unsigned long. Take a
19135 target_waitstatus pointer instead of a char pointer.
19136 (mywait): Likewise.
19137 * target.c (mywait): Change prototype to return an unsigned long.
19138 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19139 * server.h (thread_from_wait, old_thread_from_wait): Delete
19140 declarations.
19141 (prepare_resume_reply): Change prototype to take a
19142 target_waitstatus.
19143 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19144 (last_status, last_ptid): New.
19145 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19146 pid instead of a signal.
19147 (attach_inferior): Remove "status" and "signal" parameters.
19148 Adjust.
19149 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19150 not as an address.
19151 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19152 (handle_v_requests, myresume): Remove "status" and "signal"
19153 parameters. Adjust.
19154 (handle_status): New.
19155 (main): Delete local `status'. Adjust.
19156 * remote-utils.c: Include target.h.
19157 (prepare_resume_reply): Change prototype to take a
19158 target_waitstatus. Adjust.
19159
19160 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19161 interface.
19162 * spu-low.c (spu_wait): Adjust.
19163 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19164 Delete.
19165 (win32_wait): Adjust.
19166
2bd7c093
PA
191672009-04-01 Pedro Alves <pedro@codesourcery.com>
19168
19169 * target.h (struct thread_resume): Delete leave_stopped member.
19170 (struct target_ops): Add a `n' argument to the `resume' callback.
19171 * server.c (start_inferior): Adjust.
19172 (handle_v_cont, myresume): Adjust.
19173 * linux-low.c (check_removed_breakpoint): Adjust to resume
19174 interface change, and to removed leave_stopped field.
19175 (resume_ptr): Delete.
19176 (struct thread_resume_array): New.
19177 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19178 resume interface change.
19179 (linux_continue_one_thread, linux_queue_one_thread)
19180 (resume_status_pending_p): Check if the resume field is NULL
19181 instead of checking the leave_stopped member.
19182 (linux_resume): Adjust to the target resume interface change.
19183 * spu-low.c (spu_resume): Adjust to the target resume interface
19184 change.
19185 * win32-low.c (win32_detach, win32_resume): Ditto.
19186
c35fafde
PA
191872009-04-01 Pedro Alves <pedro@codesourcery.com>
19188
19189 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19190 flag.
19191 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19192 pending.
19193 (linux_continue_one_thread): Only preserve the stepping flag if
19194 there's a pending breakpoint.
19195
0a59d50b
PA
191962009-03-31 Pedro Alves <pedro@codesourcery.com>
19197
19198 * server.c (main): After the inferior having exited, call
19199 remote_close before exiting gdbserver.
19200
f04c6d38
TJB
192012009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19202
19203 Fix size of FPSCR in Power 7 processors.
19204 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19205 (PPC_FEATURE_HAS_DFP): New #define.
19206 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19207 size of the FPSCR.
19208
78e5cee6
PA
192092009-03-23 Pedro Alves <pedro@codesourcery.com>
19210
19211 * server.c (handle_query) Whitespace and formatting.
19212
1b3f6016
PA
192132009-03-22 Pedro Alves <pedro@codesourcery.com>
19214
19215 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19216 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19217 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19218 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19219 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19220 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19221 Makefile.in, configure.ac: Fix whitespace throughout.
19222 * configure: Regenerate.
19223
a07b2135
PA
192242009-03-22 Pedro Alves <pedro@codesourcery.com>
19225
19226 * inferiors.c (find_inferior): Make it safe for the callback
19227 function to delete the currently iterated inferior.
19228
67cc2626
PA
192292009-03-22 Pedro Alves <pedro@codesourcery.com>
19230
19231 * Makefile.in (linuw_low_h): Move higher.
19232 (thread-db.o): Depend on $(linux_low_h).
19233
54a0b537
PA
192342009-03-17 Pedro Alves <pedro@codesourcery.com>
19235
19236 Rename "process" to "lwp" throughout.
19237
19238 * linux-low.c (all_processes): Rename to...
19239 (all_lwps): ... this.
19240 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19241 (add_process): Rename to ...
19242 (add_lwp): ... this. Adjust.
19243 (linux_create_inferior): Adjust.
19244 (linux_attach_lwp): Adjust.
19245 (linux_attach): Adjust.
19246 (linux_kill_one_process): Rename to ...
19247 (linux_kill_one_lwp): ... this. Adjust.
19248 (linux_kill): Adjust.
19249 (linux_detach_one_process): Rename to ...
19250 (linux_detach_one_lwp): ... this. Adjust.
19251 (linux_detach): Adjust.
19252 (check_removed_breakpoint): Adjust.
19253 (status_pending_p): Adjust.
19254 (linux_wait_for_process): Rename to ...
19255 (linux_wait_for_lwp): ... this. Adjust.
19256 (linux_wait_for_event): Adjust.
19257 (send_sigstop): Adjust.
19258 (wait_for_sigstop): Adjust.
19259 (stop_all_processes): Rename to ...
19260 (stop_all_lwps): ... this.
19261 (linux_resume_one_process): Rename to ...
19262 (linux_resume_one_lwp): ... this. Adjust.
19263 (linux_set_resume_request, linux_continue_one_thread)
19264 (linux_queue_one_thread, resume_status_pending_p)
19265 (usr_store_inferior_registers, regsets_store_inferior_registers)
19266 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19267 Adjust.
19268 * linux-low.h (get_process): Rename to ...
19269 (get_lwp): ... this. Adjust.
19270 (get_thread_process): Rename to ...
19271 (get_thread_lwp): ... this. Adjust.
19272 (get_process_thread): Rename to ...
19273 (get_lwp_thread): ... this. Adjust.
19274 (struct process_info): Rename to ...
19275 (struct lwp_info): ... this.
19276 (all_processes): Rename to ...
19277 (all_lwps): ... this.
19278 * proc-service.c (ps_lgetregs): Adjust.
19279 * thread-db.c (thread_db_create_event, find_one_thread)
19280 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19281
0b16c5cf
PA
192822009-03-14 Pedro Alves <pedro@codesourcery.com>
19283
19284 * server.c (handle_query): Handle "qAttached".
19285
32de4b9d
NS
192862009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19287
19288 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19289 GPLv3, update license URL.
19290
2aecd87f
DE
192912009-03-01 Doug Evans <dje@google.com>
19292
93efd302 19293 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19294 (server_h): Add gdb_signals.h.
19295 (signals.o): Update.
19296 * server.h (target_signal_from_host,target_signal_to_host_p)
19297 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19298
86b1f9c5
PM
192992009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19300
19301 * remote-utils.c (getpkt): Also generate remote-debug
19302 information if noack_mode is set.
19303
4aa995e1
PA
193042009-02-06 Pedro Alves <pedro@codesourcery.com>
19305
19306 * server.c (handle_query): Report qXfer:siginfo:read and
19307 qXfer:siginfo:write as supported and handle them.
19308 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19309 * linux-low.c (linux_xfer_siginfo): New.
19310 (linux_target_ops): Set it.
19311
62709adf
PA
193122009-01-26 Pedro Alves <pedro@codesourcery.com>
19313
19314 * server.c (gdbserver_usage): Mention --remote-debug.
19315 (main): Accept '--remote-debug' switch.
19316
aef93bd7
DE
193172009-01-18 Doug Evans <dje@google.com>
19318
19319 * regcache.c (new_register_cache): No need to check result of xcalloc.
19320 * server.c (handle_search_memory): Back out calls to xmalloc,
19321 result is checked and error is returned to user upon failure.
19322 (handle_query): Ditto. Add more checks for result of malloc.
19323 (handle_v_cont): Check result of malloc, report error back to
19324 user upon failure.
19325 (handle_v_run): Ditto. Call freeargv.
19326 * server.h (freeargv): Declare.
19327 * utils.c (freeargv): New fn.
19328
54363045
DE
193292009-01-15 Doug Evans <dje@google.com>
19330
f626972c
DE
19331 * gdbreplay.c (perror_with_name): Make arg const char *.
19332 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19333 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19334 * utils.c (perror_with_name): Make arg const char *.
54363045 19335
18aae699
PA
193362009-01-14 Pedro Alves <pedro@codesourcery.com>
19337
19338 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19339 when handling a EXIT_PROCESS_DEBUG_EVENT.
19340
ff703abe
JB
193412009-01-06 Joel Brobecker <brobecker@adacore.com>
19342
19343 * gdbreplay.c (gdbreplay_version): Update copyright year.
19344 * server.c (gdbserver_version): Likewise.
19345
f21cc1a2 193462009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19347
19348 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19349 (handle_extended_wait): Improve comment.
0e21c1ec 19350
bca929d3
DE
193512008-12-13 Doug Evans <dje@google.com>
19352
19353 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19354 * server.h (ATTR_MALLOC): New macro.
19355 (xmalloc,xcalloc,xstrdup): Declare.
19356 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19357 * inferiors.c: Ditto.
19358 * linux-low.c: Ditto.
19359 * mem-break.c: Ditto.
19360 * regcache.c: Ditto.
19361 * remote-utils.c: Ditto.
19362 * server.c: Ditto.
19363 * target.c: Ditto.
19364 * win32-low.c: Ditto.
19365
97438e3f
DE
193662008-12-12 Doug Evans <dje@google.com>
19367
896c7fbb
DE
19368 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19369 in debugging printf.
19370
97438e3f
DE
19371 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19372
e3b886f8
DE
193732008-12-09 Doug Evans <dje@google.com>
19374
19375 * linux-low.h (struct process_info): Delete member tid, unused.
19376 * thread-db.c (find_one_thread): Update.
19377 (maybe_attach_thread): Update.
19378
07e059b5
VP
193792008-12-02 Pedro Alves <pedro@codesourcery.com>
19380
889bf7c5
PA
19381 * target.h (struct target_ops): Add qxfer_osdata member.
19382 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19383 and dirent.h.
19384 (linux_qxfer_osdata): New functions.
19385 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19386 callback.
19387 * server.c (handle_query): Handle "qXfer:osdata:read:".
19388 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19389 (buffer_xml_printf): New functions.
19390 * server.h (struct buffer): New.
19391 (buffer_grow_str, buffer_grow_str0): New macros.
19392 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19393 (buffer_xml_printf): Declare.
07e059b5 19394
4cab47ab
DE
193952008-11-24 Doug Evans <dje@google.com>
19396
19397 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19398
f142445f
DJ
193992008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19400
19401 * server.c (handle_v_run): Always use the supplied argument list.
19402
d0107bb6 194032008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19404
d0107bb6
BW
19405 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19406 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19407
2c4ad781
TJB
194082008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19409
19410 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19411 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19412 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19413 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19414 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19415 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19416 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19417 XML target descriptions.
19418 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19419 when inferior is running on an ISA 2.05 or later processor. Add
19420 special case to return offset for full 64-bit slot of FPSCR when
19421 in 32-bits.
19422
dfb64f85
DJ
194232008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19424
19425 * Makefile.in (SFILES, clean): Added sparc64 files.
19426 (reg-sparc64.o, reg-sparc64.c): New.
19427 * configure.srv (sparc*-*-linux*): New configuration.
19428 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19429 syscall arguments for SPARC.
19430 (regsets_store_inferior_registers): Likewise.
19431 * linux-sparc-low.c: New file.
19432
66b6e1dd
DE
194332008-10-21 Doug Evans <dje@google.com>
19434
19435 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19436 (READLINE_DIR,READLINE_DEP): Delete.
19437 (INTERNAL_CFLAGS): Update.
19438 (LINTFLAGS): Update.
19439
9b710a42
PA
194402008-10-10 Pedro Alves <pedro@codesourcery.com>
19441
19442 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19443 whole argv from the last run, not just argv[0].
19444
5822d809
PA
194452008-09-08 Pedro Alves <pedro@codesourcery.com>
19446
19447 * regcache.c (new_register_cache): Return NULL if the register
19448 cache size isn't known yet.
19449 (free_register_cache): Avoid dereferencing a NULL regcache.
19450
74aac56f
DJ
194512008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19452
19453 * configure.srv: Merge MIPS and MIPS64.
19454
400b20f5
MR
194552008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19456
19457 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19458
677c5bb1
LM
194592008-08-18 Luis Machado <luisgpm@br.ibm.com>
19460
19461 * Makefile.in: Add required vsx dependencies.
19462
19463 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19464 Declare init_registers_powerpc_vsx32l.
19465 Declare init_registers_powerpc_vsx64l.
19466 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19467 (ppc_arch_setup): Check for VSX in hwcap.
19468 (ppc_fill_vsxregset): New function.
19469 (ppc_store_vsxregset): New function.
19470 Add new VSX entry in regset_info target_regsets.
19471
19472 * configure.srv: Add new VSX dependencies.
19473
a6f3e723
SL
194742008-08-12 Pedro Alves <pedro@codesourcery.com>
19475
19476 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19477 (remote_open): Set or clear transport_is_reliable.
19478 (putpkt_binary): Don't expect acks in noack mode.
19479 (getpkt): Don't send ack/nac in noack mode.
19480 * server.c (handle_general_set): Handle QStartNoAckMode.
19481 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19482 qSupported.
19483 (main): Reset noack_mode on every connection.
19484 * server.h (noack_mode): Declare.
19485
a417dc56
RW
194862008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19487
19488 * Makefile.in (GDBREPLAY_OBS): New variable.
19489 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19490
3221518c
UW
194912008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19492 Daniel Jacobowitz <dan@codesourcery.com>
19493
19494 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19495 (usr_store_inferior_registers): Likewise.
19496 (regsets_store_inferior_registers): Likewise.
19497
ec56be1b
PA
194982008-07-31 Rolf Jansen <rj@surtec.com>
19499 Pedro Alves <pedro@codesourcery.com>
19500
19501 * configure.ac: Check for memmem declaration.
19502 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19503 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19504 (disable_packet_qfThreadInfo): Unconditionally compile.
19505 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19506 * configure, config.in: Regenerate.
19507
2fe5e3ff
DE
195082008-07-28 Doug Kwan <dougkwan@google.com>
19509
19510 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19511 (linux_write_memory): Remove declaration of errno.
19512
836acd6d
UW
195132008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19514
19515 * linux-low.c (handle_extended_wait): Do not use "status"
19516 variable uninitialized.
19517
aeba519e
PA
195182008-07-07 Pedro Alves <pedro@codesourcery.com>
19519
19520 * server.c (handle_v_attach): Inhibit reporting dll changes.
19521
db42f210
PA
195222008-06-27 Pedro Alves <pedro@codesourcery.com>
19523
19524 * remote-utils.c (prepare_resume_reply): If requested, don't
19525 output "thread:TID" in the T stop reply.
19526
19527 * server.c (disable_packet_vCont, disable_packet_Tthread)
19528 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19529 (handle_query): If requested, disable support for qC, qfThreadInfo
19530 and qsThreadInfo.
19531 (handle_v_requests): If requested, disable support for vCont.
19532 (gdbserver_show_disableable): New.
19533 (main): Handle --disable-packet and --disable-packet=LIST.
19534
19535 * server.h (disable_packet_vCont, disable_packet_Tthread)
19536 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19537
8e4c5421
CD
195382008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19539
19540 * server.c (gdbserver_usage): Mention --version.
19541
6e23a804
DJ
195422008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19543
19544 * Makefile.in (gdbreplay.o): New rule.
19545
90aa6a40
JM
195462008-06-06 Joseph Myers <joseph@codesourcery.com>
19547
19548 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19549 message, not gdbserver.
19550
c16158bc 195512008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19552 Nathan Sidwell <nathan@codesourcery.com>
19553 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19554
19555 * acinclude.m4: Include ../../config/acx.m4.
19556 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19557 * configure, config.in: Regenerate.
19558 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19559 * server.c (gdbserver_version): Print PKGVERSION.
19560 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19561 (main): Adjust gdbserver_usage calls.
19562 * gdbreplay.c (version, host_name): Add declarations.
19563 (gdbreplay_version, gdbreplay_usage): New.
19564 (main): Accept --version and --help options.
19565
aeb75bf5
DJ
195662008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19567
19568 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19569 (arm_breakpoint_at): Handle Thumb.
19570 (the_low_target): Add comment.
19571
76b233dd
UW
195722008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19573
19574 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19575
08388c79
DE
195762008-05-09 Doug Evans <dje@google.com>
19577
a3c83fae
DE
19578 * server.h (decode_search_memory_packet): Declare.
19579 * remote-utils.c (decode_search_memory_packet): New fn.
19580 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19581 (handle_search_memory): New fn.
19582 (handle_query): Process qSearch:memory packets.
19583
bb9c3d36
UW
195842008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19585
19586 * regcache.c (registers_length): Remove.
19587 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19588 full register packet.
19589 * regcache.h (registers_length): Remove prototype.
19590 * server.h (PBUFSIZ): Define to 16384.
19591
7284e1be
UW
195922008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19593
19594 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19595 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19596 powerpc-64l.o, and powerpc-altivec64l.o.
19597 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19598 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19599 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19600 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19601 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19602 to srv_xmlfiles.
19603
19604 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19605 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19606 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19607 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19608 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19609 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19610 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19611 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19612 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19613 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19614 (clean): Update.
19615
19616 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19617 (init_registers_powerpc_32l): ... this new prototype.
19618 (init_registers_powerpc_32): Remove, replace by ...
19619 (init_registers_powerpc_altivec32l): ... this new prototype.
19620 (init_registers_powerpc_e500): Remove, replace by ...
19621 (init_registers_powerpc_e500l): ... this new prototype.
19622 (init_registers_ppc64): Remove, replace by ...
19623 (init_registers_powerpc_64l): ... this new prototype.
19624 (init_registers_powerpc_64): Remove, replace by ...
19625 (init_registers_powerpc_altivec64l): ... this new prototype.
19626 (ppc_num_regs): Set to 73.
19627 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19628 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19629 (ppc_cannot_store_register): Handle orig_r3 and trap.
19630 (ppc_arch_setup): Update init_registers_... calls.
19631 (ppc_fill_gregset): Handle orig_r3 and trap.
19632
19633 * inferiors.c (clear_inferiors): Reset current_inferior.
19634
fdc59709
PB
196352008-04-23 Paolo Bonzini <bonzini@gnu.org>
19636
889bf7c5
PA
19637 * acinclude.m4: Add override.m4.
19638 * configure: Regenerate.
fdc59709 19639
c9b2f845
UW
196402008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19641
19642 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19643 initial call to init_register_ppc64.
19644
550512b8
UW
196452008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19646
43aaf8b6
PA
19647 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19648 single powerpc*-*-linux* case.
550512b8
UW
19649 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19650
b6430ec3
UW
196512008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19652
19653 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19654 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19655 from reg_xmlfiles.
19656 * linux-ppc-low.c: Include <elf.h>.
19657 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19658 (ppc_hwcap): New global variable.
19659 (ppc_regmap): Remove __SPE__ #ifdef sections.
19660 (ppc_regmap_e500): New global variable.
19661 (ppc_cannot_store_register): Update __SPE__ special case.
19662 (ppc_get_hwcap): New function.
19663 (ppc_arch_setup): Use it to determine whether inferior supports
19664 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19665 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19666 Do not access registers if target does not support AltiVec.
19667 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19668 Do not access registers if target does not support SPE.
19669 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19670
52fa2412
UW
196712008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19672
19673 * linux-low.c (disabled_regsets, num_regsets): New.
19674 (use_regsets_p): Delete.
19675 (linux_wait_for_process): Clear disabled_regsets.
19676 (regsets_fetch_inferior_registers): Check and set it.
19677 (regsets_store_inferior_registers): Likewise.
19678 (linux_fetch_registers, linux_store_registers): Do not use
19679 use_regsets_p.
19680 (initialize_low): Allocate disabled_regsets.
19681
e28b3332
DJ
196822008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19683
19684 * Makefile.in (LIBOBJS): New.
19685 (OBS): Use LIBOBJS.
19686 (memmem.o): New rule.
19687 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19688 * configure: Regenerated.
19689
4536995d
UW
196902008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19691
19692 * server.c (handle_query): Never return "unsupported" for
19693 qXfer:features:read queries.
19694
221c031f
UW
196952008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19696
19697 * server.c (get_features_xml): Fix inverted condition.
19698 (handle_query): Always support qXfer:feature:read.
19699
ccd213ac
DJ
197002008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19701
19702 * server.c (wrapper_argv): New.
19703 (start_inferior): Handle wrapper_argv. If set, expect an extra
19704 trap.
19705 (gdbserver_usage): Document --wrapper.
19706 (main): Parse --wrapper.
19707
6fe305f7
UW
197082008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19709
19710 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19711 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19712 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19713 (ppc_set_pc): Likewise.
19714 (ppc_arch_setup): New function.
19715 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19716 of collect_register.
889bf7c5 19717 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19718
5b0a002e
UW
197192008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19720
19721 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19722 instead of linux-ppc64-low.o.
19723 * linux-ppc64-low.c: Remove file.
19724 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19725 (linux-ppc64-low.o): Remove rule.
19726
19727 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19728 (init_registers_powerpc_64): Likewise.
19729 (ppc_regmap): Conditionally define depending on __powerpc64__.
19730 (ppc_cannot_store_register): Do not special-case "fpscr" when
19731 compiled on __powerpc64__.
19732 (ppc_collect_ptrace_register): New function.
19733 (ppc_supply_ptrace_register): New function.
19734 (ppc_breakpoint): Change type to "unsigned int".
19735 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19736 (the_low_target): Conditionally provide initializers for the
889bf7c5 19737 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19738 collect_ptrace_register and supply_ptrace_register members.
19739
9b4b61c8
UW
197402008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19741
19742 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19743 * server.c (gdbserver_xmltarget): Define.
19744 (get_features_xml): Use it to replace "target.xml" and arch_string.
19745
19746 * configure.srv: Remove srv_xmltarget. Add XML files that were
19747 mentioned there to srv_xmlfiles instead. Remove conditional tests
19748 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19749 srv_xmlfiles and srv_regobj to include all possible choices.
19750 * configure.ac (srv_xmltarget): Remove.
19751 (srv_xmlfiles): Do not add "target.xml".
19752 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19753 checks for supplementary target information.
19754 * configure: Regenerate.
19755 * Makefile.in (XML_TARGET): Remove.
19756 (target.xml): Remove rule.
19757 (clean): Do not clean up target.xml.
19758 (.PRECIOUS): Do not mention target.xml.
19759
19760 * target.h (struct target_ops): Remove arch_string member.
19761 * linux-low.c (linux_arch_string): Remove.
19762 (linux_target_ops): Remove arch_string initializer.
19763 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19764 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19765 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19766 * spu-low.c (spu_arch_string): Remove.
19767 (spu_target_ops): Remove arch_string initializer.
19768 * win32-low.c (win32_arch_string): Remove.
19769 (win32_target_ops): Remove arch_string initializer.
19770 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19771 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19772 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19773
ee1a7ae4
UW
197742008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19775
19776 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19777 by collect_ptrace_register and supply_ptrace_register hooks.
19778 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19779 instead of checking for the_low_target.left_pad_xfer.
19780 (usr_store_inferior_registers): Use collect_ptrace_register callback
19781 instead of checking for the_low_target.left_pad_xfer.
19782
19783 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19784 (s390_supply_ptrace_register): Likewise.
19785 (s390_fill_gregset): Call s390_collect_ptrace_register.
19786 (the_low_target): Update.
19787
19788 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19789 (ppc_supply_ptrace_register): Likewise.
19790 (the_low_target): Update.
19791
19792 * linux-i386-low.c (the_low_target): Update.
19793 * linux-x86-64-low.c (the_low_target): Update.
19794
d61ddec4
UW
197952008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19796
19797 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19798 reg-s390.o and reg-s390x.o.
19799
19800 * linux-low.c (new_inferior): New global variable.
19801 (linux_create_inferior, linux_attach): Set it.
19802 (linux_wait_for_process): Call the_low_target.arch_setup after the
19803 target has stopped for the first time.
19804 (initialize_low): Do not call the_low_target.arch_setup.
19805
19806 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19807 (s390_set_pc): Likewise.
19808 (s390_arch_setup): New function.
19809 (the_low_target): Use s390_arch_setup as arch_setup routine.
19810
19811 * regcache.c (realloc_register_cache): New function.
19812 (set_register_cache): Call it for each existing regcache.
19813
d05b4ac3
UW
198142008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19815
19816 * server.h (init_registers): Remove prototype.
19817
19818 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19819 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19820 instead of init_registers ().
19821 * linux-arm-low.c (init_registers_arm): Add prototype.
19822 (init_registers_arm_with_iwmmxt): Likewise.
19823 (the_low_target): Add initializer for arch_setup field.
19824 * linux-cris-low.c (init_registers_cris): Add prototype.
19825 (the_low_target): Add initializer for arch_setup field.
19826 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19827 (the_low_target): Add initializer for arch_setup field.
19828 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19829 (the_low_target): Add initializer for arch_setup field.
19830 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19831 (the_low_target): Add initializer for arch_setup field.
19832 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19833 (the_low_target): Add initializer for arch_setup field.
19834 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19835 (the_low_target): Add initializer for arch_setup field.
19836 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19837 (init_registers_mips64_linux): Likewise.
19838 (the_low_target): Add initializer for arch_setup field.
19839 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19840 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19841 (the_low_target): Add initializer for arch_setup field.
19842 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19843 (init_registers_powerpc_64): Likewise.
19844 (the_low_target): Add initializer for arch_setup field.
19845 * linux-s390-low.c (init_registers_s390): Add prototype.
19846 (init_registers_s390x): Likewise.
19847 (the_low_target): Add initializer for arch_setup field.
19848 * linux-sh-low.c (init_registers_sh): Add prototype.
19849 (the_low_target): Add initializer for arch_setup field.
19850 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19851 (the_low_target): Add initializer for arch_setup field.
19852 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19853 (the_low_target): Add initializer for arch_setup field.
19854
19855 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19856 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19857 instead of init_registers ().
19858 * win32-arm-low.c (init_registers_arm): Add prototype.
19859 (the_low_target): Add initializer for arch_setup field.
19860 * win32-i386-low.c (init_registers_i386): Add prototype.
19861 (the_low_target): Add initializer for arch_setup field.
19862
19863 * spu-low.c (init_registers_spu): Add prototype.
19864 (initialize_low): Call initialie_registers_spu () instead of
19865 initialize_registers ().
19866
fd96d250
PA
198672008-02-19 Pedro Alves <pedro@codesourcery.com>
19868
19869 * server.c (handle_v_requests): When handling the vRun and vAttach
19870 packets, if already debugging a process, don't kill it. Return an
19871 error instead.
19872
d41b6bb4
DJ
198732008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19874
19875 * server.c (handle_query): Correct length check.
19876
5ac588cf
PA
198772008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19878
19879 * win32-low.c (do_initial_child_stuff): Add process handle
19880 parameter. Set current_process_handle and current_process_id from the
19881 parameters. Clear globals.
19882 (win32_create_inferior): Don't set current_process_handle and
19883 current_process_id here. Instead pass them on the call to
19884 do_initial_child_stuff.
19885 (win32_attach): Likewise.
19886 (win32_clear_inferiors): New.
19887 (win32_kill): Don't close the current process handle or the
19888 current thread handle here. Instead call win32_clear_inferiors.
19889 (win32_detach): Don't open a new handle to the process. Call
19890 win32_clear_inferiors.
19891 (win32_join): Don't rely on current_process_handle; open a new
19892 handle using the process id.
19893 (win32_wait): Call win32_clear_inferiors when the inferior process
19894 has exited.
19895
ecd7ecbc
DJ
198962008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19897
19898 * server.c (monitor_show_help): Add "exit".
19899
1525d545
MG
199002008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19901
ecd7ecbc 19902 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
19903 (clean): Add reg-xtensa.c.
19904 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
19905 * configure.srv (xtensa*-*-linux*) New target.
19906 * linux-xtensa-low.c: New.
19907 * xtensa-xtregs.c: New.
1525d545 19908
59a016f0
PA
199092008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19910
19911 * hostio.c: Don't include errno.h.
19912 (errno_to_fileio_errno): Move to hostio-errno.
19913 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19914 error number outputting to the target->hostio_last_error callback.
19915 (hostio_packet_error): Use FILEIO_EINVAL directly.
19916 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19917 calls to hostio_error.
19918 * hostio-errno.c: New.
19919 * server.h (hostio_last_error_from_errno): Declare.
19920 * target.h (target_ops): Add hostio_last_error member.
19921 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19922 as hostio_last_error handler.
889bf7c5 19923 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
19924 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19925 (wince_hostio_last_error): New functions.
19926 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19927 as hostio_last_error handler.
19928 (win32_target_ops) [!_WIN32_WCE]: Register
19929 hostio_last_error_from_errno as hostio_last_error handler.
19930 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19931 (hostio-errno.o): New rule.
19932 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19933 * configure.srv (srv_hostio_err_objs): New variable. Default to
19934 hostio-errno.o.
19935 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19936 * configure: Regenerate.
19937
2d717e4f
DJ
199382008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19939
19940 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19941 (linux_kill, linux_detach): Clean up the process list.
19942 * remote-utils.c (remote_open): Improve port number parsing.
19943 (putpkt_binary, input_interrupt): Only send interrupts if the target
19944 is running.
19945 * server.c (extended_protocol): Make static.
19946 (attached): Define earlier.
19947 (exit_requested, response_needed, program_argv): New variables.
19948 (target_running): New.
19949 (start_inferior): Clear attached here.
19950 (attach_inferior): Set attached here.
19951 (require_running): Define.
19952 (handle_query): Use require_running and target_running. Implement
19953 "monitor exit".
19954 (handle_v_attach, handle_v_run): New.
19955 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19956 (gdbserver_usage): Update.
19957 (main): Redo argument parsing. Handle --debug and --multi. Handle
19958 --attach along with other options or after the port. Save
19959 program_argv. Support no initial program. Resynchronize
19960 communication with GDB after an error. Handle "monitor exit".
19961 Use require_running and target_running. Always allow the extended
19962 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19963 restart in extended mode.
19964 * README: Refer to the GDB manual. Update --attach usage.
19965
7407e2de
AS
199662007-12-20 Andreas Schwab <schwab@suse.de>
19967
19968 * linux-low.c (STACK_SIZE): Define.
19969 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19970 (linux_test_for_tracefork): Likewise.
19971
b65d95c5
DJ
199722007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19973
19974 * linux-low.c (linux_wait_for_event): Update messages. Do not
19975 reinsert auto-delete breakpoints.
19976 * mem-break.c (struct breakpoint): Change return type of handler to
19977 int.
19978 (set_breakpoint_at): Update handler type.
19979 (reinsert_breakpoint_handler): Return 1 instead of calling
19980 delete_breakpoint.
19981 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19982 setting a new one.
19983 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19984 * mem-break.h (set_breakpoint_at): Update handler type.
19985 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19986 * win32-low.c (auto_delete_breakpoint): New.
19987 (get_child_debug_event): Use it.
19988
4e799345
DJ
199892007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19990
19991 * configure.ac: Check for pread and pwrite.
19992 * hostio.c (handle_pread): Fall back to lseek and read.
19993 (handle_pwrite): Fall back to lseek and write.
19994 * config.in, configure: Regenerated.
19995
27524b67
DJ
199962007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19997
19998 * server.c (myresume): Add own_buf argument.
19999 (main): Update calls.
20000
a20d5e98
DJ
200012007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20002
20003 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20004 * remote-utils.c (remote_open): Do not call disable_async_io.
20005 (block_async_io): Delete.
20006 (unblock_async_io): Make static.
20007 (initialize_async_io): New.
20008 * server.c (handle_v_cont): Handle async I/O here.
20009 (myresume): Likewise. Move other common resume tasks here...
20010 (main): ... from here. Call initialize_async_io. Disable async
20011 I/O before the main loop.
20012 * server.h (initialize_async_io): Declare.
20013 (block_async_io, unblock_async_io): Delete prototypes.
20014 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20015
b79d787e
DJ
200162007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20017
20018 * remote-utils.c (readchar): Allow binary data in received messages.
20019
d97903b2
PA
200202007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20021
20022 * win32-low.c (attaching): New global.
20023 (win32_create_inferior): Clear the `attaching' global.
20024 (win32_attach): Set the `attaching' global.
20025 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20026 attaching. Only set a breakpoint at the entry point if not
20027 attaching.
20028
311de423
PA
200292007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20030
20031 * server.c (main): Don't report dll events on the initial
20032 connection on attaches.
20033
6c2d16d2
PA
200342007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20035
20036 * server.c (main): Relax numerical bases supported for the pid of
20037 the --attach command line argument.
20038
5ca906e6
PA
200392007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20040
20041 * win32-low.c (win32_attach): Call OpenProcess before
20042 DebugActiveProcess, not after. Add last error output to error
20043 call.
20044
9c6c8194
PA
200452007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20046
20047 * win32-low.c (win32_get_thread_context)
20048 (win32_set_thread_context): New functions.
20049 (thread_rec): Use win32_get_thread_context.
20050 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20051 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20052 field.
20053
4d5d1aaa
PA
200542007-12-03 Leo Zayas
20055 Pedro Alves <pedro_alves@portugalmail.pt>
20056
20057 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20058 global variables.
20059 (child_add_thread): Minor cleanup.
20060 (child_continue): Resume artificially suspended threads before
20061 calling ContinueDebugEvent.
20062 (suspend_one_thread): New.
20063 (fake_breakpoint_event): New.
20064 (get_child_debug_event): Change return type to int. Check here if
20065 gdb sent an interrupt request. If a soft interrupt was requested,
20066 fake a breakpoint event. Return 0 if there is no event to handle,
20067 and 1 otherwise.
20068 (win32_wait): Don't check here if gdb sent an interrupt request.
20069 Ensure there is a valid event to handle.
20070 (win32_request_interrupt): Add soft interruption method as last
20071 resort.
20072
c436e841
PA
200732007-12-03 Leo Zayas
20074 Pedro Alves <pedro_alves@portugalmail.pt>
20075
20076 * win32-low.h (win32_thread_info): Add descriptions to the
20077 structure members. Replace `suspend_count' counter by a
20078 `suspended' flag.
20079 * win32-low.c (thread_rec): Update condition of when to get the
20080 context from the inferior. Rely on ContextFlags being set if it
20081 has already been retrieved. Only suspend the inferior thread if
20082 we haven't already. Warn if that fails.
20083 (continue_one_thread): s/suspend_count/suspended/. Only call
20084 ResumeThread once. Warn if that fails.
20085
e7b5fa67
PA
200862007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20087
20088 * win32-low.c (win32_wait): Don't read from the inferior when it
20089 has already exited.
20090
a385171d
PA
200912007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20092
20093 * Makefile.in (win32_low_h): New variable.
20094 (win32-low.o): Add dependency on $(win32_low_h).
20095 (win32-arm-low.o, win32-i386-low.o): New rules.
20096
f80c84b3
DJ
200972007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20098
20099 * hostio.c: Correct copyright year.
20100
a6b151f1
DJ
201012007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20102
20103 * Makefile.in (OBS): Add hostio.o.
20104 (hostio.o): New rule.
20105 * server.h (handle_vFile): Declare.
20106 * hostio.c: New file.
20107 * server.c (handle_v_requests): Take packet_len and new_packet_len
20108 for binary packets. Call handle_vFile.
20109 (main): Update call to handle_v_requests.
20110
f9387fc3
DJ
201112007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20112
20113 * linux-low.c: Include <sched.h>.
20114
51c2684e
DJ
201152007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20116
20117 * linux-low.c (linux_tracefork_grandchild): New.
20118 (linux_tracefork_child): Use clone.
20119 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20120
75f83163
JB
201212007-10-31 Joel Brobecker <brobecker@adacore.com>
20122
20123 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20124
da5898ce
DJ
201252007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20126
20127 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20128
24a09b5f
DJ
201292007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20130
20131 * inferiors.c (change_inferior_id): Delete.
20132 (add_pid_to_list, pull_pid_from_list): New.
20133 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20134 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20135 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20136 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20137 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20138 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20139 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20140 (using_threads): Always set to 1.
20141 (handle_extended_wait): New.
20142 (add_process): Do not set TID.
20143 (linux_create_inferior): Set must_set_ptrace_flags.
20144 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20145 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20146 (linux_thread_alive): Rename TID argument to LWPID.
20147 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20148 (linux_wait_for_event): Do not use TID or check using_threads. Update
20149 call to dead_thread_notify. Call handle_extended_wait.
20150 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20151 (send_sigstop): Delete sigstop_sent.
20152 (wait_for_sigstop): Avoid TID.
20153 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20154 (linux_test_for_tracefork): New.
20155 (linux_lookup_signals): Use thread_db_active and
20156 linux_supports_tracefork_flag.
20157 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20158 * linux-low.h (get_process_thread): Avoid TID.
20159 (struct process_ifo): Move thread_known and tid to the end. Remove
20160 sigstop_sent.
20161 (linux_attach_lwp, thread_db_init): Update prototypes.
20162 * server.h (change_inferior_id): Delete prototype.
20163 (add_pid_to_list, pull_pid_from_list): New prototypes.
20164 * thread-db.c (thread_db_use_events): New.
20165 (find_first_thread): Rename to...
20166 (find_one_thread): ...this. Update callers and messages. Do not
20167 call fatal. Check thread_db_use_events. Do not call
20168 change_inferior_id or new_thread_notify.
20169 (maybe_attach_thread): Update. Do not call new_thread_notify.
20170 (thread_db_init): Set thread_db_use_events. Check use_events.
20171 * utils.c (fatal, warning): Correct message prefix.
20172
30ed0a8f
DJ
201732007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20174
20175 * Makefile.in (clean): Remove new files.
20176 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20177 (powerpc-64.o, powerpc-64.c): New rules.
20178 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20179 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20180 with SPE.
20181 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20182 SPE targets.
20183 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20184 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20185 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20186 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20187 (target_regsets): Add AltiVec and SPE register sets.
20188 * configure.ac: Check for AltiVec and SPE.
20189 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20190 (ppc_fill_vrregset, ppc_store_vrregset): New.
20191 (target_regsets): Add AltiVec register set.
20192 * configure: Regenerated.
20193
fd462a61
DJ
201942007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20195
20196 * linux-low.c (O_LARGEFILE): Define.
20197 (linux_read_memory): Use /proc/PID/mem.
20198 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20199 * configure, config.in: Regenerated.
20200
69f223ed
DJ
202012007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20202
20203 * linux-low.c (linux_wait_for_event): Do not pass signals while
20204 single-stepping.
20205
aec18585
PA
202062007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20207
20208 * win32-low.c (create_process): New.
20209 (win32_create_inferior): Use create_process instead of
20210 CreateProcess. If create_process failed retry appending an ".exe"
20211 suffix. Store the GetLastError result immediatelly after
20212 create_process calls and use it on the call to error.
20213
34d86ddd
PA
202142007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20215
20216 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20217
5a0e3bd0
JB
202182007-08-23 Joel Brobecker <brobecker@adacore.com>
20219
20220 * configure.ac: Switch license to GPLv3.
20221
f88c79e6
MS
202222007-08-01 Michael Snyder <msnyder@access-company.com>
20223
20224 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20225
6b3d9b83
PA
202262007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20227
20228 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20229 typedef.
20230 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20231 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20232 CloseToolhelp32Snapshot.
20233 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20234 CloseToolhelp32Snapshot.
20235
c588c53c
MS
202362007-07-27 Michael Snyder <michael.snyder@access-company.com>
20237
20238 * server.c (main): Check for inferior exit before main loop.
20239
aa0403d9
PA
202402007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20241
20242 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20243 instead of on tmp_desc.
20244
255e7678
DJ
202452007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20246 Daniel Jacobowitz <dan@codesourcery.com>
20247
20248 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20249 (add_thread): Minor cleanups.
20250 (clear_inferiors): Move lower in the file. Clear the DLL
20251 list.
20252 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20253 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20254 (xml_escape_text): New.
20255 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20256 for qSupported.
20257 (handle_v_cont): Report errors.
20258 (gdbserver_version): Update.
20259 (main): Correct size of own_buf. Do not report initial DLL events.
20260 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20261 (unloaded_dll, xml_escape_text): New.
20262 * win32-low.c (enum target_waitkind): Update comments.
20263 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20264 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20265 (win32_EnumProcessModules, win32_GetModuleInformation)
20266 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20267 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20268 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20269 (win32_Module32First, win32_Module32Next, load_toolhelp)
20270 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20271 (get_child_debug_event): Handle DLL events.
20272 (win32_wait): Likewise.
20273
0d37add9
DJ
202742007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20275
20276 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20277 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20278
45e2715e
PA
202792007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20280
20281 * win32-low.c (handle_output_debug_string): Ignore event if not
20282 waiting.
20283
c5674cf1
PA
202842007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20285
20286 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20287
2bbe3cc1
DJ
202882007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20289
20290 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20291
ae13219e
DJ
202922007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20293
20294 * inferiors.c (change_inferior_id): Add comment.
20295 * linux-low.c (check_removed_breakpoint): Add an early
20296 prototype. Improve debug output.
20297 (linux_attach): Doc update.
20298 (linux_detach_one_process, linux_detach): Clean up before releasing
20299 each process.
20300 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20301 * linux-low.h (struct process_info): Doc improvement.
20302 * mem-break.c (delete_all_breakpoints): New.
20303 * mem-break.h (delete_all_breakpoints): New prototype.
20304 * thread-db.c (find_first_thread): New.
20305 (thread_db_create_event): Call it instead of
20306 thread_db_find_new_threads. Clean up unused variables.
20307 (maybe_attach_thread): Remove first thread handling.
20308 (thread_db_find_new_threads): Use find_first_thread.
20309 (thread_db_get_tls_address): Likewise.
20310
4105de34
DJ
203112007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20312
20313 * thread-db.c (thread_db_find_new_threads): Add prototype.
20314 (thread_db_create_event): Check for the main thread before adding
20315 a new thread.
20316 (maybe_attach_thread): Only enable event reporting if TID == 0.
20317 (thread_db_get_tls_address): Check for new threads.
20318
2b876972
DJ
203192007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20320
20321 * linux-low.c (linux_create_inferior): Try execv before execvp.
20322 * spu-low.c (spu_create_inferior): Likewise.
20323
7a245884
DJ
203242007-06-13 Mike Frysinger <vapier@gentoo.org>
20325
20326 * linux-low.c (linux_create_inferior): Change execv to execvp.
20327 * spu-low.c (spu_create_inferior): Likewies.
20328
117ce543
DJ
203292007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20330
20331 * Makefile.in (clean): Clean new files instead of deleted ones.
20332 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20333 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20334 rules.
20335 * configure.srv: Specify XML files and new regformats for MIPS and
20336 MIPS64 GNU/Linux.
20337 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20338 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20339 an entry for the restart register.
20340 (mips_cannot_fetch_register, mips_cannot_store_register)
20341 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20342 register names to match the XML descriptions.
20343 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20344 restart register instead of $0.
20345
0e7f50da
UW
203462007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20347 Markus Deuling <deuling@de.ibm.com>
20348
20349 * remote-utils.c (decode_xfer_write): New function.
20350 * server.h (decode_xfer_write): Add prototype.
20351 * server.c (handle_query): Add PACKET_LEN argument. Support
20352 qXfer:spu:read and qXfer:spu:write packets.
20353 (main): Pass packet_len to handle_query.
20354 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20355 * target.h (target_ops): Add qxfer_spu.
20356
374c1d38
UW
203572007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20358
20359 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20360 accessing non-seekable spufs files.
20361
bb63802a
UW
203622007-05-16 Markus Deuling <deuling@de.ibm.com>
20363
889bf7c5 20364 * server.c (handle_query): Add reply for qC packet.
bb63802a 20365
7390519e
PA
203662007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20367 Leo Zayas <lerele@champenstudios@com>
20368
20369 * server.h (check_remote_input_interrupt_request): New function.
20370 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20371 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20372 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20373 (check_remote_input_interrupt_request): New function.
20374 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20375 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20376 winapi_GenerateConsoleCtrlEvent): New typedefs.
20377 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20378 to 250 ms.
20379 (win32_wait): Check for remote interrupt request
20380 with check_remote_input_interrupt_request.
20381 (win32_request_interrupt): New function.
20382 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20383
34b34921
PA
203842007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20385
20386 * win32-low.c (debug_registers_changed,
20387 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20388 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20389 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20390 (thread_rec): Get context using the low target.
20391 (child_add_thread): Call thread_added on the low target,
20392 which does the same thing.
20393 (regptr): Delete.
20394 (do_initial_child_stuff): Remove debug registers references.
20395 Set context using the low target. Resume threads after
20396 setting the contexts.
20397 (child_continue): Remove dead variable. Remove debug
20398 registers references.
20399 (child_fetch_inferior_registers): Go through the low target.
20400 (do_child_store_inferior_registers): Remove.
20401 (child_store_inferior_registers): Go through the low target.
20402 (win32_resume): Remove debug registers references.
20403 Set context using the low target.
20404 (handle_exception): Change return type to void. Don't record
20405 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20406 first chance exception.
889bf7c5 20407 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20408 goto loop. Always return after waiting for debug event.
20409 (win32_wait): Convert to switch statement. Handle spurious
20410 events.
20411
20412 * win32-i386-low.c (debug_registers_changed,
20413 debug_registers_used): New.
20414 (initial_stuff): Rename to ...
20415 (i386_initial_stuff): ... this. Clear debug registers
20416 state variables.
20417 (store_debug_registers): Delete.
20418 (i386_get_thread_context): New.
20419 (load_debug_registers): Delete.
20420 (i386_set_thread_context): New.
20421 (i386_thread_added): New.
20422 (single_step): Rename to ...
20423 (i386_single_step): ... this.
20424 (do_fetch_inferior_registers): Rename to ...
20425 (i386_fetch_inferior_register): ... this.
20426 (i386_store_inferior_register): New.
20427 (the_low_target): Adapt to new interface.
20428
20429 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20430 (arm_get_thread_context): New.
20431 (arm_set_thread_context): New.
20432 (regptr): New.
20433 (do_fetch_inferior_registers): Rename to ...
20434 (arm_fetch_inferior_register): ... this.
20435 (arm_store_inferior_register): New.
20436 (arm_wince_breakpoint): Reimplement as unsigned long.
20437 (arm_wince_breakpoint_len): Define.
20438 (the_low_target): Adapt to new interface.
20439
20440 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20441 load_debug_registers. Add get_thread_context, set_thread_context,
20442 thread_added and store_inferior_register. Rename
20443 fetch_inferior_registers to fetch_inferior_register.
20444 (regptr): Remove declaration.
20445
dd6953e1
PA
204462007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20447
20448 * linux-low.c (linux_detach): Change return type to int. Return 0.
20449 * spu-low.c (spu_detach): Likewise.
20450
444d6139
PA
204512007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20452
20453 * target.h (target_ops): Change return type of detach to int.
20454 Add join.
20455 (join_inferior): New.
20456 * server.c (main): Don't skip detach support on mingw32.
20457 If the inferior doesn't support detaching return error.
20458 Call join_inferior instead of using waitpid.
20459 * linux-low.c (linux_join): New.
20460 (linux_target_op): Add linux_join.
20461 * spu-low.c (spu_join): New.
20462 (spu_target_ops): Add spu_join.
20463 * win32-low.c (win32_detach): Adapt to new interface.
20464 Reopen current_process_handle before detaching. Issue a child
20465 resume before detaching.
20466 (win32_join): New.
20467 (win32_target_op): Add win32_join.
20468
1d5315fe
PA
204692007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20470
20471 * win32-low.c (win32-attach): Fix return value.
20472 * target.h (target_ops): Describe ATTACH return values.
20473
bf914831
PA
204742007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20475
20476 * win32-low.c (GETPROCADDRESS): Define.
20477 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20478 (winapi_DebugSetProcessKillOnExit): Likewise.
20479 (win32_create_inferior): Force usage of ansi CreateProcessA.
20480 (win32_attach): Use GETPROCADDRESS.
20481 (win32_detach): Likewise.
20482
f72f3e60
PA
204832007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20484
20485 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20486
ed50f18f
PA
204872007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20488
20489 * win32-low.c: Commit leftover changes from 2007-03-29.
20490
0c2ead7e
DJ
204912007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20492
20493 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20494 fields short instead of int. Add explicit padding.
20495 (i387_cache_to_fsave): Remove unnecessary casts.
20496 (i387_fsave_to_cache): Doc fix.
20497 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20498
73725ff3
DJ
204992007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20500
20501 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20502 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20503
d99f33d8
PA
205042007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20505
20506 * configure.srv (arm*-*-mingw32ce*): Move near the other
20507 arm targets.
20508
68070c10
PA
205092007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20510
2482afc6 20511 * configure.ac: Add errno checking.
68070c10
PA
20512 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20513 sys/file.h and malloc.h.
20514 (AC_CHECK_DECLS): Add perror.
20515 (srv_mingwce): Handle.
2482afc6 20516 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20517 win32-i386-low.o to srv_tgtobj.
20518 (i[34567]86-*-mingw*): Likewise.
20519 (arm*-*-mingw32ce*): Add case.
20520 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20521 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20522 [__MINGW32CE__] (strerror): New function.
20523 [__MINGW32CE__] (errno): Define to GetLastError.
20524 [__MINGW32CE__] (COUNTOF): New macro.
20525 (remote_open): Remove extra close call.
20526 * mem-break.c (delete_breakpoint_at): New function.
20527 * mem-break.h (delete_breakpoint_at): Declare.
20528 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20529 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20530 [USE_WIN32API] (read, write): Add char* casts.
20531 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20532 * server.h: Include wincecompat.h on Windows CE.
20533 [HAVE_ERRNO_H]: Check.
20534 (perror): Declare if not declared.
20535 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20536 (perror_with_name): Remove errno declaration.
20537 * wincecompat.h: New.
20538 * wincecompat.c: New.
20539 * win32-low.h: New.
20540 * win32-arm-low.c: New.
20541 * win32-i386-low.c: New.
20542 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20543 (OUTMSG2): Make it safe.
20544 (_T): New macro.
20545 (COUNTOF): New macro.
20546 (NUM_REGS): Get it from the low target.
20547 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20548 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20549 (thread_rec): Let low target handle debug registers.
20550 (child_add_thread): Likewise.
20551 (child_init_thread_list): Likewise.
20552 (continue_one_thread): Likewise.
20553 (regptr): New.
20554 (do_child_fetch_inferior_registers): Move to ...
20555 * win32-i386-low.c: ... here, and rename to ...
20556 (do_fetch_inferior_registers): ... this.
889bf7c5 20557 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20558 Go through the low target.
20559 (do_child_store_inferior_registers): Use regptr.
20560 (strwinerror): New function.
20561 (win32_create_inferior): Handle Windows CE.
20562 Use strwinerror instead of strerror on Windows error
20563 codes. Add program to the error output.
20564 Don't close the main thread handle on Windows CE.
20565 (win32_attach): Use coredll.dll on Windows CE.
20566 (win32_kill): Close current process and current
20567 thread handles.
20568 (win32_detach): Use coredll.dll on Windows CE.
20569 (win32_resume): Let low target handle debug registers, and
20570 step request.
20571 (handle_exception): Add/Remove initial breakpoint. Avoid
20572 non-existant WSTOPSIG on Windows CE.
20573 (win32_read_inferior_memory): Cast to remove warning.
20574 (win32_arch_string): Go through the low target.
20575 (initialize_low): Call set_breakpoint_data with the low
20576 target's breakpoint.
20577 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20578 FOP_REGNUM, mappings): Move to ...
20579 * win32-i386-low.c: ... here.
20580 * win32-low.c (win32_thread_info): Move to ...
20581 * win32-low.h: ... here.
20582 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20583 win32-arm-low.c and wincecompat.c.
20584 (all:): Add $EXEEXT.
20585 (install-only:): Likewise.
20586 (gdbserver:): Likewise.
20587 (gdbreplay:): Likewise.
20588 * config.in: Regenerate.
20589 * configure: Regenerate.
20590
41093d81
PA
205912007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20592
20593 * win32-low.c: Rename typedef thread_info to
20594 win32_thread_info throughout.
20595
544afa54
PA
205962007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20597
20598 * win32-i386-low.c: Rename to ...
20599 * win32-low.c: ... this.
20600 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20601 * Makefile.in: Likewise.
20602
bce7165d
PA
206032007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20604
20605 * remote-utils.c (monitor_output): Constify msg parameter.
20606 * server.h (monitor_output): Likewise.
20607 * win32-i386-low.c (handle_output_debug_string): New.
20608 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20609 handle_output_debug_string.
20610 (get_child_debug_event): Likewise.
20611
506c7aa0
DJ
206122007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20613
20614 * server.c (main): Correct strtoul check.
20615
42c81e2a
DJ
206162007-03-27 Jon Ringle <jon@ringle.org>
20617
20618 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20619
9453113a
DJ
206202007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20621
20622 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20623
64a69107
DJ
206242007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20625
20626 * terminal.h: Check HAVE_SGTTY_H.
20627
206282007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20629
20630 * remote-utils.c (remote_open): Print out the assigned port number.
20631
c74d0ad8
DJ
206322007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20633
20634 * remote-utils.c (monitor_output): New function.
20635 * server.c (debug_threads): Define here.
20636 (monitor_show_help): New function.
20637 (handle_query): Handle qRcmd.
20638 (main): Do not handle 'd' packet.
20639 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20640 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20641 of debug_threads.
20642
de7c3b4a
PA
206432007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20644
20645 * Makefile.in (EXEEXT): New.
20646 (clean): Use $(EXEEXT).
20647
ef57601b
PA
206482007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20649
20650 * target.h (target_ops): Rename send_signal to request_interrupt,
20651 and remove enum target_signal parameter.
20652 * linux-low.c (linux_request_interrupt): Rename from
20653 linux_send_signal, and always send SIGINT.
20654 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20655 and always send SIGINT.
20656 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20657 of send_signal.
20658 (input_interrupt): Likewise.
20659
820f2bda
PA
206602007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20661
20662 * server.c (get_features_xml): Check if target implemented
20663 arch_string.
20664 * win32-i386-low.c (win32_arch_string): New.
20665 (win32_target_ops): Add win32_arch_string as arch_string member.
20666
ab39bf24
UW
206672007-02-22 Markus Deuling <deuling@de.ibm.com>
20668
20669 * spu-low.c (spu_arch_string): New.
20670 (spu_target_ops): Add spu_arch_string.
20671
61ff6e04
DJ
206722007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20673
20674 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20675 * configure.ac: Do not check for terminal.h.
20676 * configure, config.in: Regenerated.
20677
fb1e4ffc
DJ
206782007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20679
20680 * Makefile.in (OBS): Add $(XML_BUILTIN).
20681 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20682 (clean): Update.
20683 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20684 (arm-with-iwmmxt.c): New.
20685 * config.in, configure: Regenerate.
20686 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20687 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20688 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20689 (arm*-*-linux*): Add iWMMXt and regset support.
20690 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20691 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20692 (arm_store_wmmxregset, target_regsets): New.
20693 * server.c (get_features_xml): Take annex argument. Check builtin
20694 XML documents.
20695 (handle_query): Handle multiple annexes.
20696
0f48aa01
DJ
206972007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20698
20699 * remote-utils.c [USE_WIN32API] (read, write): Define.
20700 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20701 write.
20702
23181151
DJ
207032007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20704
20705 * linux-i386-low.c (the_low_target): Set arch_string.
20706 * linux-x86-64-low.c (the_low_target): Likewise.
20707 * linux-low.c (linux_arch_string): New.
20708 (linux_target_ops): Add it.
20709 * linux-low.h (struct linux_target_ops): Add arch_string.
20710 * server.c (write_qxfer_response): Use const void * for DATA.
20711 (get_features_xml): New.
20712 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20713 * target.h (struct target_ops): Add arch_string method.
20714
9d606399
DJ
207152007-01-03 Denis Pilat <denis.pilat@st.com>
20716 Daniel Jacobowitz <dan@codesourcery.com>
20717
20718 * linux-low.c (linux_kill): Handle being called with no threads.
20719 * win32-i386-low.c (win32_kill): Likewise.
20720 (get_child_debug_event): Clear current_process_handle.
20721
207222006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20723 Daniel Jacobowitz <dan@codesourcery.com>
20724
20725 * remote-utils.c (remote_open): Check the type of specified
20726 serial port devices before opening them.
20727 * server.c (main): Kill the inferior if an error occurs during
20728 the first remote_open.
20729
a5e13d24
DJ
207302006-12-05 Markus Deuling <deuling@de.ibm.com>
20731
20732 * README: Update supported targets.
20733
186947f7
DJ
207342006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20735
20736 * Makefile.in (clean): Remove reg-mips64.c.
20737 (reg-mips64.c, reg-mips64.o): New rules.
20738 * configure.srv: Handle mips64. Include regset support for mips.
20739 * linux-mips-low.c (union mips_register): New.
20740 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20741 (mips_breakpoint, mips_breakpoint_at): Use int.
20742 (mips_collect_register, mips_supply_register)
20743 (mips_collect_register_32bit, mips_supply_register_32bit)
20744 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20745 (mips_store_fpregset, target_regsets): New.
20746 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20747
a13e2c95
UW
207482006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20749
20750 * configure.srv: Add target "spu*-*-*".
20751 * Makefile.in (clean): Remove reg-spu.c.
20752 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20753 * spu-low.c: New file.
20754
cb7283db
DJ
207552006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20756
20757 * configure.ac: Correct td_thr_tls_get_addr test.
20758 * configure: Regenerated.
20759
89be2091
DJ
207602006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20761
20762 * linux-low.c (linux_wait_for_event): Reformat. Use the
20763 pass_signals array.
20764 * remote-utils.c (decode_address_to_semicolon): New.
20765 * server.c (pass_signals, handle_general_set): New.
20766 (handle_query): Mention QPassSignals for qSupported.
20767 (main): Call handle_general_set.
20768 * server.h (pass_signals, decode_address_to_semicolon): New.
20769
000ef4f0
DJ
207702006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20771
20772 * server.c (handle_query): Correct error handling for read_auxv.
20773
b7149293
UW
207742005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20775
20776 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20777 and srv_linux_thread_db to yes.
20778 * linux-s390-low.c (s390_fill_gregset): New function.
20779 (target_regsets): Define data structure.
20780
dae5f5cf
DJ
207812006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20782
20783 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20784 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20785 * config.in, configure: Regenerated.
20786 * inferiors.c (gdb_id_to_thread): New function.
20787 (gdb_id_to_thread_id): Use it.
20788 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20789 * linux-low.h (struct process_info): Add th member.
20790 (thread_db_get_tls_address): New prototype.
20791 * remote-utils.c (decode_address): Make non-static.
20792 * server.c (handle_query): Handle qGetTLSAddr.
20793 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20794 * target.h (struct target_ops): Add get_tls_address.
20795 * thread-db.c (maybe_attach_thread): Save the thread handle.
20796 (thread_db_get_tls_address): New.
20797
32ca6d61
DJ
207982006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20799
20800 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20801 (linux_resume_one_process): Take a siginfo_t *. Update all
20802 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20803 (struct pending_signals): Add a siginfo_t.
20804 (linux_wait_for_process): Always set last_status.
20805 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20806 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20807 * linux-low.h (struct process_info): Add last_status.
20808
5ffff7c1
DJ
208092006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20810
20811 * remote-utils.c (try_rle): New function.
20812 (putpkt_binary): Use it.
20813
8695c747
DJ
208142006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20815
20816 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20817 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20818 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20819 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20820 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20821 point registers.
20822
290fadea
RS
208232006-08-08 Richard Sandiford <richard@codesourcery.com>
20824
20825 * server.c (terminal_fd): New variable.
20826 (old_foreground_pgrp): Likewise.
20827 (restore_old_foreground_pgrp): New function.
20828 (start_inferior): Record the terminal file descriptor in terminal_fd
20829 and its original foreground group in old_foreground_pgrp. Register
20830 restore_old_foreground_pgrp with atexit().
20831
9f2e1e63
DJ
208322006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20833
20834 * server.c (handle_query): Correct qPart to qXfer.
20835
b80864fb
DJ
208362006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20837
20838 * configure.ac: Check for more headers which are missing on
20839 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20840 * configure.srv: Add Cygwin and mingw32.
20841 * remote-utils.c: Don't include headers unconditionally which
20842 are missing on mingw32. Include <winsock.h> for mingw32.
20843 (remote_open): Adjust for mingw32 support. Flush
20844 standard error after writing to it.
20845 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20846 (unblock_async_io, enable_async_io, disable_async_io)
20847 (readchar, getpkt): Update for Winsock support.
20848 (prepare_resume_reply): Expect a protocol signal number.
20849 * server.c: Disable <sys/wait.h> on mingw32.
20850 (start_inferior): Adjust for mingw32 support. Flush
20851 standard error after writing to it.
20852 (attach_inferior): Likewise. Use protocol signal
20853 numbers.
20854 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20855 and names.
20856 * win32-i386-low.c: New file.
20857 * Makefile.in (XM_CLIBS): Set.
20858 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20859 (win32-i386-low.o): New dependency rule.
20860 * linux-low.c (linux_wait): Use target signal numbers.
20861 * target.h (struct target_ops): Doc fix.
20862 * server.h (target_signal_to_name): New prototype.
20863 * gdbreplay.c: Don't include headers unconditionally which
20864 are missing on mingw32. Include <winsock.h> for mingw32.
20865 (remote_close, remote_open): Adjust for Winsock support.
20866 * configure, config.in: Regenerated.
20867
0876f84a
DJ
208682006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20869
20870 * server.c (decode_xfer_read, write_qxfer_response): New.
20871 (handle_query): Take a packet length argument. Handle
20872 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20873 the qSupported response.
20874 (main): Update call to handle_query.
20875
01f9e8fa
DJ
208762006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20877
20878 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20879 (putpkt_binary): Renamed from putpkt and adjusted for binary
20880 data.
20881 (putpkt): New wrapper for putpkt_binary.
20882 (readchar): Don't mask off the high bit.
20883 (decode_X_packet): New function.
20884 * server.c (main): Call putpkt_binary if a handler sets the packet
20885 length. Save the length of the incoming packet. Handle 'X'.
20886 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20887
be2a5f71
DJ
208882006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20889
20890 * server.c (handle_query): Handle qSupported.
20891
ea025f5f
DJ
208922006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20893
20894 * remote-utils.c (all_symbols_looked_up): New variable.
20895 (look_up_one_symbol): Check it.
20896 * server.h (look_up_one_symbol): New declaration.
20897 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20898
9308fc88
DJ
208992006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20900
20901 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 20902 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
20903 (PTRACE_GET_THREAD_AREA): Define.
20904 (ps_get_thread_area): New function.
20905
52fb6437
NS
209062006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20907
20908 * configure.srv (m68k*-*-uclinux*): New target.
20909 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20910 (linux_resume_one_process): Remove extraneous cast.
20911 (linux_read_offsets): New.
20912 (linux_target_op): Add linux_read_offsets on mmuless systems.
20913 * server.c (handle_query): Add qOffsets logic.
20914 * target.h (struct target_ops): Add read_offsets.
20915
21b0f40c
DJ
209162006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20917
20918 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20919 (PTRACE_GET_THREAD_AREA): Define.
20920 (ps_get_thread_area): New function.
20921 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20922 (linux-x86-64-low.o): Update.
20923
0050a760
DJ
209242006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20925
20926 * configure.ac: Remove checks for prfpregset_t.
20927 * gdb_proc_service.h: New file.
20928 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20929 new "gdb_proc_service.h".
20930 * proc-service.c: Likewise.
20931 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20932 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20933 * Makefile.in (gdb_proc_service_h): Updated.
20934 * configure, config.in: Regenerated.
20935
b92a518e
DJ
209362006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20937
20938 * remote-utils.c (prepare_resume_reply): Move declaration
20939 of gdb_id_from_wait to the top of the block.
20940
545587ee
DJ
209412006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20942
20943 * linux-low.c (regsets_store_inferior_registers): Read the regset
20944 from the target before filling it.
20945
9db87ebd
DJ
209462006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20947
20948 * server.c (attach_inferior): Return SIGTRAP for a successful
20949 attach.
20950
dd24457d
DJ
209512006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20952
20953 * Makefile.in (OBS): Add version.o.
20954 (STAGESTUFF): Delete.
20955 (version.o): Add dependencies.
20956 (version.c): Replace rule.
20957 (clean): Remove version.c.
20958 * server.c (gdbserver_version): New.
20959 (gdbserver_usage): Use printf.
20960 (main): Handle --version and --help.
20961 * server.h (version, host_name): Add declarations.
20962
6f0f660e
EZ
209632005-12-23 Eli Zaretskii <eliz@gnu.org>
20964
889bf7c5
PA
20965 * linux-arm-low.c:
20966 * linux-arm-low.c:
20967 * inferiors.c:
20968 * i387-fp.h:
20969 * i387-fp.c:
20970 * gdbreplay.c:
20971 * regcache.c:
20972 * proc-service.c:
20973 * mem-break.h:
20974 * mem-break.c:
20975 * linux-x86-64-low.c:
20976 * linux-sh-low.c:
20977 * linux-s390-low.c:
20978 * linux-ppc64-low.c:
20979 * linux-ppc-low.c:
20980 * linux-mips-low.c:
20981 * linux-m68k-low.c:
20982 * linux-m32r-low.c:
20983 * linux-low.h:
20984 * linux-low.c:
20985 * linux-ia64-low.c:
20986 * linux-i386-low.c:
20987 * linux-crisv32-low.c:
20988 * thread-db.c:
20989 * terminal.h:
20990 * target.h:
20991 * target.c:
20992 * server.h:
20993 * server.c:
20994 * remote-utils.c:
20995 * regcache.h:
20996 * utils.c:
20997 * Makefile.in:
20998 * configure.ac:
6f0f660e
EZ
20999 * gdbserver.1: Add (C) after Copyright. Update the FSF
21000 address.
21001
9d1fb177
DJ
210022005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21003
21004 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21005 (arm_breakpoint_at): Recognize both breakpoints.
21006 (the_low_target): Use the correct breakpoint instruction.
21007
011a70c2
DJ
210082005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21009
21010 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21011 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21012 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21013 (the_low_target): Update.
21014
7fb85e41
AS
210152005-10-25 Andreas Schwab <schwab@suse.de>
21016
21017 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21018
21019 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21020 (ia64_num_regs): Reduce to 462.
21021
3db0444b
DJ
210222005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21023
21024 * acinclude.m4: Correct quoting.
21025 * aclocal.m4: Regenerated.
21026
21027 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21028 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21029 (thread_db_init): Call thread_db_err_str.
21030 * configure.ac: Check for TD_VERSION.
21031 * config.in, configure: Regenerated.
21032
bee0189a
DJ
210332005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21034
21035 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21036
e9d25b98
DJ
210372005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21038
21039 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21040 is not available. Define HAVE_PTRACE_GETREGS if it is.
21041 * config.in, configure: Regenerated.
21042 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21043 * linux-i386-low.c, linux-m68k-low.c: Update to use
21044 HAVE_PTRACE_GETREGS.
21045 * linux-low.c (regsets_fetch_inferior_registers)
21046 (regsets_store_inferior_registers): Only return 0 if we processed
21047 GENERAL_REGS.
21048 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21049 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21050
a06660f7
DJ
210512005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21052
21053 * inferiors.c (struct thread_info): Add gdb_id.
21054 (add_thread): Add gdb_id argument.
21055 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21056 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21057 calls to add_thread.
21058 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21059 * server.c (handle_query): Use thread_to_gdb_id.
21060 (handle_v_cont, main): Use gdb_id_to_thread_id.
21061 * server.h (add_thread): Update prototype.
21062 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21063 prototypes.
21064
5a1f5858
DJ
210652005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21066
21067 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21068 left-padded registers.
21069 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21070 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21071
e122f1f5
SE
210722005-07-01 Steve Ellcey <sje@cup.hp.com>
21073
21074 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21075 * configure: Regenerate.
21076 * config.in: Regenerate.
21077 * server.h (NEED_DECLARATION_STRERROR):
21078 Replace with !HAVE_DECL_STRERROR.
21079
d592fa2f
DJ
210802005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21081
21082 * linux-low.c (linux_wait, linux_send_signal): Don't test
21083 an unsigned long variable for > 0 if it could be MAX_ULONG.
21084 * server.c (myresume): Likewise.
21085 * target.c (set_desired_inferior): Likewise.
21086
ccbd4912
MK
210872005-06-13 Mark Kettenis <kettenis@gnu.org>
21088
21089 * configure.ac: Simplify and improve check for socklen_t.
21090 * configure, config.in: Regenerate.
21091
f450004a
DJ
210922005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21093
21094 * acconfig.h: Remove.
21095 * configure.ac: Add a test for socklen_t. Use three-argument
21096 AC_DEFINE throughout.
21097 * config.in: Regenerated using autoheader 2.59.
21098 * configure: Regenerated.
21099
21100 * gdbreplay.c (socklen_t): Provide a default.
21101 (remote_open): Use socklen_t.
21102 * remote-utils.c (socklen_t): Provide a default.
21103 (remote_open): Use socklen_t.
21104 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21105 unsigned char.
21106
21107 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21108 char for buffers.
21109 * linux-low.c (linux_read_memory, linux_write_memory)
21110 (linux_read_auxv): Likewise.
21111 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21112 (check_mem_write): Likewise.
21113 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21114 Likewise.
21115 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21116 (registers_from_string, register_data): Likewise.
21117 * server.c (handle_query, main): Likewise.
21118 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21119 (decode_M_packet): Likewise.
21120 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21121 * target.h (struct target_ops): Update read_memory, write_memory,
21122 and read_auxv.
21123 (read_inferior_memory, write_inferior_memory): Update.
21124 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21125 to unsigned char *.
21126 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21127 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21128 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21129 linux-s390-low.c, linux-sh-low.c: Update for changes in
21130 read_inferior_memory and the_low_target->breakpoint.
21131
eee84df1
DJ
211322005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21133
21134 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21135 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21136 * configure.srv: Add powerpc64-*-linux*.
21137 * linux-ppc64-low.c: New file.
21138
45b134e5
OF
211392005-05-23 Orjan Friberg <orjanf@axis.com>
21140
21141 * linux-cris-low.c: New file with support for CRIS.
21142 * linux-crisv32-low.c: Ditto for CRISv32.
21143 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21144 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21145 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21146 reg-crisv32.o, and reg-crisv32.c to make rules.
21147 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21148 recognized targets.
21149
48d93c75
UW
211502005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21151
21152 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21153 of sizeof (PTRACE_XFER_TYPE).
21154 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21155
e013ee27
OF
211562005-05-12 Orjan Friberg <orjanf@axis.com>
21157
889bf7c5 21158 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21159 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21160 pointers for hardware watchpoint support.
21161 * linux-low.h (struct linux_target_ops): Ditto.
21162 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21163 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21164 to linux_target_ops.
21165 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21166 reply packet.
21167 * server.c (main): Recognize 'Z' and 'z' packets.
21168
b0ded00b
UW
211692005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21170
21171 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21172 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21173 (the_low_target): Add new members.
21174
8643e2ad
DJ
211752005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21176
21177 * proc-service.c (ps_lgetregs): Search all_processes instead of
21178 all_threads.
21179
fc620387
DJ
211802005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21181
21182 * server.c (start_inferior): Change return type to int.
21183 (attach_inferior): Change sigptr to int *.
21184 (handle_v_cont, handle_v_requests): Change signal to int *.
21185 (main): Change signal to int.
21186
211872005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21188
21189 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21190 * configure.srv: Add m32r*-*-linux*.
21191 * linux-m32r-low.c: New file.
21192
e0e76420
DJ
211932005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21194
21195 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21196
a1928bad
DJ
211972005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21198
21199 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21200 Take unsigned long arguments for PIDs.
21201 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21202 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21203 (wait_for_sigstop, linux_resume_one_process)
21204 (regsets_fetch_inferior_registers, linux_send_signal)
21205 (linux_read_auxv): Likewise. Update the types of variables holding
21206 PIDs. Update format string specifiers.
21207 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21208 * remote-utils.c (prepare_resume_reply): Likewise.
21209 * server.c (cont_thread, general_thread, step_thread)
21210 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21211 unsigned long.
21212 (handle_query): Update format specifiers.
21213 (handle_v_cont, main): Use strtoul for thread IDs.
21214 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21215 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21216 (general_thread, step_thread, thread_from_wait)
21217 (old_thread_from_wait): Update.
21218 * target.h (struct thread_resume): Use unsigned long for THREAD.
21219 (struct target_ops): Use unsigned long for arguments to attach and
21220 thread_alive.
21221
dcdb98d2
DJ
212222005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21223
21224 * acinclude.m4: Include bfd/bfd.m4 directly.
21225 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21226 <agriffis@toolchain.org>.
21227 * aclocal.m4, configure: Regenerated.
21228
bec39cab
AC
212292005-01-07 Andrew Cagney <cagney@gnu.org>
21230
21231 * configure.ac: Rename configure.in, require autoconf 2.59.
21232 * configure: Re-generate.
21233
434c4c77
DJ
212342004-12-08 Daniel Jacobowitz <dan@debian.org>
21235
21236 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21237 LIBS when finished.
21238 * aclocal.m4: Regenerated.
21239 * configure: Regenerated.
21240
db1d3e1b
AS
212412004-11-21 Andreas Schwab <schwab@suse.de>
21242
21243 * linux-m68k-low.c (m68k_num_gregs): Define.
21244 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21245 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21246 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21247 (m68k_breakpoint_at): New. Add to the_low_target.
21248
21249 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21250 srv_linux_thread_db to yes.
21251
43360365
JB
212522004-10-20 Joel Brobecker <brobecker@gnat.com>
21253
21254 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21255 (ARCH_SET_FS): Likewise.
21256 (ARCH_GET_FS): Likewise.
21257 (ARCH_GET_GS): Likewise.
21258
fd500816
DJ
212592004-10-16 Daniel Jacobowitz <dan@debian.org>
21260
21261 * linux-i386-low.c (ps_get_thread_area): New.
21262 * linux-x86-64-low.c (ps_get_thread_area): New.
21263 * linux-low.c: Include <sys/syscall.h>.
21264 (linux_kill_one_process): Don't kill the first thread here.
21265 (linux_kill): Kill the first thread here.
21266 (kill_lwp): New function.
21267 (send_sigstop, linux_send_signal): Use it.
21268 * proc-service.c: Clean up #ifdefs.
21269 (fpregset_info): Delete.
21270 (ps_lgetregs): Update and enable implementation.
21271 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21272 implementations.
21273 * remote-utils.c (struct sym_cache, symbol_cache): New.
21274 (input_interrupt): Print a clearer message.
21275 (async_io_enabled): New variable.
21276 (enable_async_io, disable_async_io): Use it. Update comments.
21277 (look_up_one_symbol): Use the symbol cache.
21278 * thread-db.c (thread_db_look_up_symbols): New function.
21279 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21280
f6de3c42
DJ
212812004-10-16 Daniel Jacobowitz <dan@debian.org>
21282
21283 * configure.in: Test for -rdynamic.
21284 * configure: Regenerated.
21285 * Makefile (INTERNAL_LDFLAGS): New.
21286 (gdbserver, gdbreplay): Use it.
21287
2c0fc042
AC
212882004-09-02 Andrew Cagney <cagney@gnu.org>
21289
21290 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21291
075b3282
DJ
212922004-03-23 Daniel Jacobowitz <drow@mvista.com>
21293
21294 * linux-low.c (linux_wait): Clear all_processes list also.
21295
fa6a77dc
DJ
212962004-03-12 Daniel Jacobowitz <drow@mvista.com>
21297
21298 * linux-low.c: Include <errno.h>. Remove extern declaration of
21299 errno.
21300
6d782a97
DJ
213012004-03-12 Daniel Jacobowitz <drow@mvista.com>
21302
21303 * gdbreplay.c, server.h, utils.c: Update copyright years.
21304
3a7fb99b
DJ
213052004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21306
21307 * server.c (main): Print child status or termination signal from
21308 variable 'signal', not 'sig'.
21309
c3e735a6
DJ
213102004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21311
21312 * linux-low.c (linux_read_memory): Change return type to
21313 int. Check for and return error from ptrace().
21314 * target.c (read_inferior_memory): Change return type to int. Pass
21315 back return status from the_target->read_memory().
21316 * target.h (struct target_ops): Adapt *read_memory() prototype.
21317 Update comment.
21318 (read_inferior_memory): Adapt prototype.
21319 * server.c (main): Return an error packet if
21320 read_inferior_memory() returns an error.
21321
a59d1c82
DJ
213222004-03-04 Daniel Jacobowitz <drow@mvista.com>
21323
21324 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21325 Unify with other clean targets.
21326
dc3f8883
DJ
213272004-02-29 Daniel Jacobowitz <drow@mvista.com>
21328
21329 * server.c (handle_v_cont): Call set_desired_inferior.
21330
89a208da
DJ
213312004-02-29 Daniel Jacobowitz <drow@mvista.com>
21332
21333 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21334
62ea82f5
DJ
213352004-02-29 Daniel Jacobowitz <drow@mvista.com>
21336
21337 * linux-low.c (linux_wait): Unblock async I/O.
21338 (linux_resume): Block and enable async I/O.
21339 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21340 * server.h (block_async_io, unblock_async_io): Add prototypes.
21341
6910d122
DJ
213422004-02-29 Daniel Jacobowitz <drow@mvista.com>
21343
21344 * remote-utils.c (remote_open): Print a status notice after
21345 opening a TCP port.
21346 * server.c (attach_inferior): Print a status notice after
21347 attaching.
21348
213492004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21350
21351 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21352
c89dc5d4
DJ
213532004-02-26 Daniel Jacobowitz <drow@mvista.com>
21354
21355 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21356 error packet.
21357 * server.c, target.h: Update copyright years.
21358
4b8dad4a
RM
213592004-02-25 Roland McGrath <roland@redhat.com>
21360
21361 * target.h (struct target_ops): New member `read_auxv'.
21362 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21363 * linux-low.c (linux_read_auxv): New function.
21364 (linux_target_ops): Initialize `read_auxv' member to that.
21365
d7446758
JB
213662004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21367
21368 Committed by Jim Blandy <jimb@redhat.com>.
21369
21370 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21371 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21372 instead of GPR_SIZE to distiguish s390 and s390x targets.
21373
5544ad89
DJ
213742004-01-31 Daniel Jacobowitz <drow@mvista.com>
21375
21376 * linux-low.c: Update copyright year.
21377 (check_removed_breakpoint): Clear pending_is_breakpoint.
21378 (linux_set_resume_request, linux_queue_one_thread)
21379 (resume_status_pending_p): New functions.
21380 (linux_continue_one_thread): Use process->resume.
21381 (linux_resume): Only resume threads if there are no pending events.
21382 * linux-low.h (struct process_info): Add resume request
21383 pointer.
21384
2a68b70e
DJ
213852004-01-30 Daniel Jacobowitz <drow@mvista.com>
21386
21387 * regcache.c (new_register_cache): Clear the allocated register
21388 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21389
64386c31
DJ
213902003-10-13 Daniel Jacobowitz <drow@mvista.com>
21391
21392 * linux-low.c (linux_resume): Take a struct thread_resume *
21393 argument.
21394 (linux_wait): Update call.
21395 (resume_ptr): New static variable.
21396 (linux_continue_one_thread): Renamed from
21397 linux_continue_one_process. Use resume_ptr.
21398 (linux_resume): Use linux_continue_one_thread.
21399 * server.c (handle_v_cont, handle_v_requests): New functions.
21400 (myresume): New function.
21401 (main): Handle 'v' case.
21402 * target.h (struct thread_resume): New type.
21403 (struct target_ops): Change argument of "resume" to struct
21404 thread_resume *.
21405 (myresume): Delete macro.
21406
c938e9b0
L
214072003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21408
21409 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21410 (uninstall): Support DESTDIR.
21411
7f313d07
BC
21412Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21413
21414 * configure.srv: Add xscale*linux copy of arm*linux entry.
21415
3b2fc2ea
DJ
214162003-07-24 Daniel Jacobowitz <drow@mvista.com>
21417
21418 * linux-arm-low.c (arm_reinsert_addr): New function.
21419 (the_low_target): Add arm_reinsert_addr.
21420
1c0a559e
MK
214212003-07-08 Mark Kettenis <kettenis@gnu.org>
21422
21423 * mem-break.c: Remove whitespace at end of file.
21424
43d5792c
DJ
214252003-06-28 Daniel Jacobowitz <drow@mvista.com>
21426
21427 * configure.in: Check whether we need to prototype strerror.
21428 * server.h: Optionally prototype strerror.
21429 * gdbreplay.c (perror_with_name): Use strerror.
21430 * linux-low.c (linux_attach_lwp): Use strerror.
21431 * utils.c (perror_with_name): Use strerror.
21432 * config.in, configure: Regenerated.
21433
c8a86edf
DJ
214342003-06-28 Daniel Jacobowitz <drow@mvista.com>
21435
21436 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21437 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21438
73d37363
DJ
214392003-06-20 Daniel Jacobowitz <drow@mvista.com>
21440
21441 * Makefile.in (SFILES): Update.
21442 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21443 low-sun3.c: Remove files.
21444
6ad8ae5c
DJ
214452003-06-17 Daniel Jacobowitz <drow@mvista.com>
21446
21447 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21448 (linux_detach_one_process, linux_detach): New functions.
21449 (linux_target_ops): Add linux_detach.
21450 * server.c (main): Handle 'D' packet.
21451 * target.h (struct target_ops): Add "detach" member.
21452 (detach_inferior): Define.
21453
1581182a
MK
214542003-06-13 Mark Kettenis <kettenis@gnu.org>
21455
21456 From Kelley Cook <kelleycook@wideopenwest.com>:
21457 * configure.srv: Accept i[34567]86 variants.
21458
e5379b03
DJ
214592003-06-05 Daniel Jacobowitz <drow@mvista.com>
21460
21461 * linux-low.c (linux_wait_for_event): Correct comment typos.
21462 (linux_resume_one_process): Call check_removed_breakpoint.
21463 (linux_send_signal): New function.
21464 (linux_target_ops): Add linux_send_signal.
21465 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21466 of kill.
21467 * target.h (struct target_ops): Add send_signal.
21468
2ff29de4
JB
214692003-05-29 Jim Blandy <jimb@redhat.com>
21470
21471 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21472 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21473 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21474 away part of the register's value.
21475
254787d4
DJ
214762003-03-26 Daniel Jacobowitz <drow@mvista.com>
21477
21478 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21479 (linux_wait_for_event, linux_init_signals): Likewise.
21480
94e10508
DJ
214812003-03-17 Daniel Jacobowitz <drow@mvista.com>
21482
21483 * configure.in: Check for stdlib.h.
21484 * configure: Regenerated.
21485 * config.in: Regenerated.
21486
4c0711e0
DJ
214872003-01-04 Andreas Schwab <schwab@suse.de>
21488
21489 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21490
ef66e766
AC
214912003-01-02 Andrew Cagney <ac131313@redhat.com>
21492
21493 * Makefile.in: Remove obsolete code.
21494
a1358604
DJ
214952002-11-20 Daniel Jacobowitz <drow@mvista.com>
21496
21497 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21498 defined(PT_FPR0_HI).
21499
23ce3b1c
DJ
215002002-11-17 Stuart Hughes <seh@zee2.com>
21501
21502 * linux-arm-low.c (arm_num_regs): Increase.
21503 (arm_regmap): Include status register.
21504
215052002-11-17 Daniel Jacobowitz <drow@mvista.com>
21506
21507 * linux-low.c (register_addr): Remove incorrect -1 check.
21508
a9fa9f7d
DJ
215092002-08-29 Daniel Jacobowitz <drow@mvista.com>
21510
21511 * linux-low.c (linux_create_inferior): Call setpgid. Return
21512 the new PID.
21513 (unstopped_p, linux_signal_pid): Remove.
21514 (linux_target_ops): Remove linux_signal_pid.
21515 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21516 global instead of target method.
21517 * target.h (struct target_ops): Remove signal_pid. Update comment
21518 for create_inferior.
21519 * server.c (signal_pid): New variable.
21520 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21521 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21522 (attach_inferior): Set signal_pid.
21523
17574093
DJ
215242002-08-23 Daniel Jacobowitz <drow@mvista.com>
21525
21526 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21527
215282002-08-20 Jim Blandy <jimb@redhat.com>
21529
21530 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21531 default for this.
21532
215332002-08-01 Andrew Cagney <cagney@redhat.com>
21534
21535 * Makefile.in: Make chill references obsolete.
21536
215372002-07-24 Kevin Buettner <kevinb@redhat.com>
21538
21539 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21540 * configure: Regenerate.
21541 * config.in: Regenerate.
21542
215432002-07-09 David O'Brien <obrien@FreeBSD.org>
21544
21545 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21546 (perror_with_name, remote_close, remote_open, expect, play): Static.
21547
215482002-07-04 Michal Ludvig <mludvig@suse.cz>
21549
4b8dad4a 21550 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21551 byte offsets instead of an array of indexes.
21552 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21553
215542002-06-13 Daniel Jacobowitz <drow@mvista.com>
21555
21556 * regcache.c: Add comment.
21557
215582002-06-11 Daniel Jacobowitz <drow@mvista.com>
21559
21560 * thread-db.c: New file.
21561 * proc-service.c: New file.
21562 * acinclude.m4: New file.
21563 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21564 proc-service.o, and thread-db.o.
21565 (linux-low.o): Add USE_THREAD_DB.
21566 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21567 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21568 * aclocal.m4: Regenerated.
21569 * config.in: Regenerated.
21570 * configure: Regenerated.
21571 * configure.in: Check for proc_service.h, sys/procfs.h,
21572 thread_db.h, and linux/elf.h headrs.
21573 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21574 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21575 Check for -lthread_db and thread support.
21576 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21577 PowerPC, and SuperH.
21578 * i387-fp.c: Constify arguments.
21579 * i387-fp.h: Likewise.
21580 * inferiors.c: (struct thread_info): Renamed from
21581 `struct inferior_info'. Remove PID member. Use generic inferior
21582 list header. All uses updated.
21583 (inferiors, signal_pid): Removed.
21584 (all_threads): New variable.
21585 (get_thread): Define.
21586 (add_inferior_to_list): New function.
21587 (for_each_inferior): New function.
21588 (change_inferior_id): New function.
21589 (add_inferior): Removed.
21590 (remove_inferior): New function.
21591 (add_thread): New function.
21592 (free_one_thread): New function.
21593 (remove_thread): New function.
21594 (clear_inferiors): Use for_each_inferior and free_one_thread.
21595 (find_inferior): New function.
21596 (find_inferior_id): New function.
21597 (inferior_target_data): Update argument type.
21598 (set_inferior_target_data): Likewise.
21599 (inferior_regcache_data): Likewise.
21600 (set_inferior_regcache_data): Likewise.
21601 * linux-low.c (linux_bp_reinsert): Remove.
21602 (all_processes, stopping_threads, using_thrads)
21603 (struct pending_signals, debug_threads, pid_of): New.
21604 (inferior_pid): Replace with macro.
21605 (struct inferior_linux_data): Remove.
21606 (get_stop_pc, add_process): New functions.
21607 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21608 Use add_process and add_thread.
21609 (linux_attach_lwp): New function, based on old linux_attach. Use
21610 add_process and add_thread. Set stop_expected for new threads.
21611 (linux_attach): New function.
21612 (linux_kill_one_process): New function.
21613 (linux_kill): Kill all LWPs.
21614 (linux_thread_alive): Use find_inferior_id.
21615 (check_removed_breakpoints, status_pending_p): New functions.
21616 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21617 Update. Use WNOHANG. Wait for cloned processes also. Update process
21618 struct for the found process.
21619 (linux_wait_for_event): New function.
21620 (linux_wait): Use it. Support LWPs.
21621 (send_sigstop, wait_for_sigstop, stop_all_processes)
21622 (linux_resume_one_process, linux_continue_one_process): New functions.
21623 (linux_resume): Support LWPs.
21624 (REGISTER_RAW_SIZE): Remove.
21625 (fetch_register): Use register_size instead. Call supply_register.
21626 (usr_store_inferior_registers): Likewise. Call collect_register.
21627 Fix recursive case.
21628 (regsets_fetch_inferior_registers): Improve error message.
21629 (regsets_store_inferior_registers): Add debugging.
21630 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21631 (unstopped_p, linux_signal_pid): New functions.
21632 (linux_target_ops): Add linux_signal_pid.
21633 (linux_init_signals): New function.
21634 (initialize_low): Call it. Initialize using_threads.
21635 * regcache.c (inferior_regcache_data): Add valid
21636 flag.
21637 (get_regcache): Fetch registers lazily. Add fetch argument
21638 and update all callers.
21639 (regcache_invalidate_one, regcache_invalidate): New
21640 functions.
21641 (new_register_cache): Renamed from create_register_cache.
21642 Return the new regcache.
21643 (free_register_cache): Change argument to a void *.
21644 (registers_to_string, registers_from_string): Call get_regcache
21645 with fetch flag set.
21646 (register_data): Make static. Pass fetch flag to get_regcache.
21647 (supply_register): Call get_regcache with fetch flag clear.
21648 (collect_register): Call get_regcache with fetch flag set.
21649 (collect_register_as_string): New function.
21650 * regcache.h: Update.
21651 * remote-utils.c (putpkt): Flush after debug output and use
21652 stderr.
21653 Handle input interrupts while waiting for an ACK.
21654 (input_interrupt): Use signal_pid method.
21655 (getpkt): Flush after debug output and use stderr.
21656 (outreg): Use collect_register_as_string.
21657 (new_thread_notify, dead_thread_notify): New functions.
21658 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21659 and general_thread.
21660 (look_up_one_symbol): Flush after debug output.
21661 * server.c (step_thread, server_waiting): New variables.
21662 (start_inferior): Don't use signal_pid. Update call to mywait.
21663 (attach_inferior): Update call to mywait.
21664 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21665 (main): Don't fetch/store registers explicitly. Use
21666 set_desired_inferior. Support proposed ``Hs'' packet. Update
21667 calls to mywait.
21668 * server.h: Update.
21669 (struct inferior_list, struct_inferior_list_entry): New.
21670 * target.c (set_desired_inferior): New.
21671 (write_inferior_memory): Constify.
21672 (mywait): New function.
21673 * target.h: Update.
21674 (struct target_ops): New signal_pid method.
21675 (mywait): Removed macro, added prototype.
21676
21677 * linux-low.h (regset_func): Removed.
21678 (regset_fill_func, regset_store_func): New.
21679 (enum regset_type): New.
21680 (struct regset_info): Add type field. Use new operation types.
21681 (struct linux_target_ops): stop_pc renamed to get_pc.
21682 Add decr_pc_after_break and breakpoint_at.
21683 (get_process, get_thread_proess, get_process_thread)
21684 (strut process_info, all_processes, linux_attach_lwp)
21685 (thread_db_init): New.
21686
21687 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21688 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21689 (the_low_target): Add new members.
21690 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21691 (i386_store_fpxregset): Constify.
21692 (target_regsets): Add new kind identifier.
21693 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21694 (i386_set_pc): Add debugging.
21695 (i386_breakpoint_at): New function.
21696 (the_low_target): Add new members.
21697 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21698 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21699 (mips_breakpoint_at): New.
21700 (the_low_target): Add new members.
21701 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21702 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21703 (the_low_target): Add new members.
21704 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21705 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21706 (the_low_target): Add new members.
21707 * linux-x86-64-low.c (target_regsets): Add new kind
21708 identifier.
21709
217102002-05-15 Daniel Jacobowitz <drow@mvista.com>
21711
21712 From Martin Pool <mbp@samba.org>:
21713 * server.c (gdbserver_usage): New function.
21714 (main): Call it.
21715
217162002-05-14 Daniel Jacobowitz <drow@mvista.com>
21717
21718 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21719 stop_at -> stop_pc.
21720
217212002-05-04 Andrew Cagney <ac131313@redhat.com>
21722
21723 * Makefile.in: Remove obsolete code.
21724
217252002-04-24 Michal Ludvig <mludvig@suse.cz>
21726
21727 * linux-low.c (regsets_fetch_inferior_registers),
21728 (regsets_store_inferior_registers): Removed cast to int from
21729 ptrace() calls.
21730 * regcache.h: Added declaration of struct inferior_info.
21731
217322002-04-20 Daniel Jacobowitz <drow@mvista.com>
21733
21734 * inferiors.c (struct inferior_info): Add regcache_data.
21735 (add_inferior): Call create_register_cache.
21736 (clear_inferiors): Call free_register_cache.
21737 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21738 * regcache.c (struct inferior_regcache_data): New.
21739 (registers): Remove.
21740 (get_regcache): New function.
21741 (create_register_cache, free_register_cache): New functions.
21742 (set_register_cache): Don't initialize the register cache here.
21743 (registers_to_string, registers_from_string, register_data): Call
21744 get_regcache.
21745 * regcache.h: Add prototypes.
21746 * server.h: Likewise.
21747
217482002-04-20 Daniel Jacobowitz <drow@mvista.com>
21749
21750 * mem-break.c: New file.
21751 * mem-break.h: New file.
21752 * Makefile.in: Add mem-break.o rule; update server.h
21753 dependencies.
21754 * inferiors.c (struct inferior_info): Add target_data
21755 member.
21756 (clear_inferiors): Free target_data member if set.
21757 (inferior_target_data, set_inferior_target_data): New functions.
21758 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21759 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21760 * linux-low.c (linux_bp_reinsert): New variable.
21761 (struct inferior_linux_data): New.
21762 (linux_create_inferior): Use set_inferior_target_data.
21763 (linux_attach): Likewise. Call add_inferior.
21764 (linux_wait_for_one_inferior): New function.
21765 (linux_wait): Call it.
21766 (linux_write_memory): Add const.
21767 (initialize_low): Call set_breakpoint_data.
21768 * linux-low.h (struct linux_target_ops): Add breakpoint
21769 handling members.
21770 * server.c (attach_inferior): Remove extra add_inferior
21771 call.
21772 * server.h: Include mem-break.h. Update inferior.c
21773 prototypes.
21774 * target.c (read_inferior_memory)
21775 (write_inferior_memory): New functions.
21776 * target.h (read_inferior_memory)
21777 (write_inferior_memory): Change macros to prototypes.
21778 (struct target_ops): Update comments. Add const to write_memory
21779 definition.
21780
217812002-04-11 Daniel Jacobowitz <drow@mvista.com>
21782
21783 * linux-low.c (usr_store_inferior_registers): Support
21784 registers which are allowed to fail to store.
21785 * linux-low.h (linux_target_ops): Likewise.
21786 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21787 (ppc_cannot_store_register): FPSCR may not be storable.
21788
217892002-04-09 Daniel Jacobowitz <drow@mvista.com>
21790
21791 * server.h: Include <string.h> if HAVE_STRING_H.
21792 * ChangeLog: Correct paths in last ChangeLog entry.
21793
217942002-04-09 Daniel Jacobowitz <drow@mvista.com>
21795
21796 * linux-low.h: Remove obsolete prototypes.
21797 (struct linux_target_ops): New.
21798 (extern the_low_target): New.
21799 * linux-low.c (num_regs, regmap): Remove declarations.
21800 (register_addr): Use the_low_target explicitly.
21801 (fetch_register): Likewise.
21802 (usr_fetch_inferior_registers): Likewise.
21803 (usr_store_inferior_registers): Likewise.
21804 * linux-arm-low.c (num_regs): Remove.
21805 (arm_num_regs): Define.
21806 (arm_regmap): Renamed from regmap, made static.
21807 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21808 made static.
21809 (arm_cannot_store_register): Renamed from cannot_store_register,
21810 made static.
21811 (the_low_target): New.
21812 * linux-i386-low.c (num_regs): Remove.
21813 (i386_num_regs): Define.
21814 (i386_regmap): Renamed from regmap, made static.
21815 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21816 made static.
21817 (i386_cannot_store_register): Renamed from cannot_store_register,
21818 made static.
21819 (the_low_target): New.
21820 * linux-ia64-low.c (num_regs): Remove.
21821 (ia64_num_regs): Define.
21822 (ia64_regmap): Renamed from regmap, made static.
21823 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21824 made static.
21825 (ia64_cannot_store_register): Renamed from cannot_store_register,
21826 made static.
21827 (the_low_target): New.
21828 * linux-m68k-low.c (num_regs): Remove.
21829 (m68k_num_regs): Define.
21830 (m68k_regmap): Renamed from regmap, made static.
21831 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21832 made static.
21833 (m68k_cannot_store_register): Renamed from cannot_store_register,
21834 made static.
21835 (the_low_target): New.
21836 * linux-mips-low.c (num_regs): Remove.
21837 (mips_num_regs): Define.
21838 (mips_regmap): Renamed from regmap, made static.
21839 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21840 made static.
21841 (mips_cannot_store_register): Renamed from cannot_store_register,
21842 made static.
21843 (the_low_target): New.
21844 * linux-ppc-low.c (num_regs): Remove.
21845 (ppc_num_regs): Define.
21846 (ppc_regmap): Renamed from regmap, made static.
21847 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21848 made static.
21849 (ppc_cannot_store_register): Renamed from cannot_store_register,
21850 made static.
21851 (the_low_target): New.
21852 * linux-s390-low.c (num_regs): Remove.
21853 (s390_num_regs): Define.
21854 (s390_regmap): Renamed from regmap, made static.
21855 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21856 made static.
21857 (s390_cannot_store_register): Renamed from cannot_store_register,
21858 made static.
21859 (the_low_target): New.
21860 * linux-sh-low.c (num_regs): Remove.
21861 (sh_num_regs): Define.
21862 (sh_regmap): Renamed from regmap, made static.
21863 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21864 made static.
21865 (sh_cannot_store_register): Renamed from cannot_store_register,
21866 made static.
21867 (the_low_target): New.
21868 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21869 (the_low_target): New.
21870
218712002-04-09 Daniel Jacobowitz <drow@mvista.com>
21872
21873 * Makefile.in: Add stamp-h target.
21874 * configure.in: Create stamp-h.
21875 * configure: Regenerated.
21876
218772002-04-09 Daniel Jacobowitz <drow@mvista.com>
21878
21879 * inferiors.c: New file.
21880 * target.c: New file.
21881 * target.h: New file.
21882 * Makefile.in: Add target.o and inferiors.o. Update
21883 dependencies.
21884 * linux-low.c (inferior_pid): New static variable,
21885 moved from server.c.
21886 (linux_create_inferior): Renamed from create_inferior.
21887 Call add_inferior. Return 0 on success instead of a PID.
21888 (linux_attach): Renamed from myattach.
21889 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21890 (linux_thread_alive): Renamed from mythread_alive.
21891 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21892 child dies.
21893 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21894 (regsets_store_inferior_registers): Correct error message.
21895 Add missing ``return 0''.
21896 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21897 (linux_store_registers): Renamed from store_inferior_registers.
21898 (linux_read_memory): Renamed from read_inferior_memory.
21899 (linux_write_memory): Renamed from write_inferior_memory.
21900 (linux_target_ops): New structure.
21901 (initialize_low): Call set_target_ops ().
21902 * remote-utils.c (unhexify): New function.
21903 (hexify): New function.
21904 (input_interrupt): Send signals to ``signal_pid''.
21905 * server.c (inferior_pid): Remove.
21906 (start_inferior): Update create_inferior call.
21907 (attach_inferior): Call add_inferior.
21908 (handle_query): New function.
21909 (main): Call handle_query for `q' packets.
21910 * server.h: Include "target.h". Remove obsolete prototypes.
21911 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21912
219132002-04-09 Daniel Jacobowitz <drow@mvista.com>
21914
21915 * Makefile.in: Add WARN_CFLAGS. Update configury
21916 dependencies.
21917 * configure.in: Check for <string.h>
21918 * configure: Regenerate.
21919 * config.in: Regenerate.
21920 * gdbreplay.c: Include needed system headers.
21921 (remote_open): Remove strchr prototype.
21922 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21923 * regcache.c (supply_register): Change buf argument to const void *.
21924 (supply_register_by_name): Likewise.
21925 (collect_register): Change buf argument to void *.
21926 (collect_register_by_name): Likewise.
21927 * regcache.h: Add missing prototypes.
21928 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21929 * server.c (handle_query): New function.
21930 (attached): New static variable, moved out of main.
21931 (main): Quiet longjmp clobber warnings.
21932 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21933 * utils.c (error): Remove NORETURN.
21934 (fatal): Likewise.