1 2020-04-08 Tom Tromey <tromey@adacore.com>
3 * win32-i386-low.c (update_debug_registers)
4 (i386_prepare_to_resume, i386_thread_added): Update.
6 2020-04-08 Tom Tromey <tromey@adacore.com>
8 * win32-low.c (child_add_thread): Use new.
9 (delete_thread_info): Use delete.
11 2020-04-08 Tom Tromey <tromey@adacore.com>
13 * win32-low.h (struct windows_thread_info): Remove.
15 2020-04-08 Tom Tromey <tromey@adacore.com>
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):
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):
32 * win32-arm-low.c (arm_get_thread_context)
33 (arm_fetch_inferior_register, arm_store_inferior_register):
36 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
60 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
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.
82 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
84 Turn the 'get_syscall_trapinfo' linux target op into a method
85 of process_stratum_target.
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.
99 Update the callers below.
101 (linux_process_target::wait_1)
102 (linux_process_target::supports_catch_syscall)
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.
126 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
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
143 Update the callers below.
145 (linux_process_target::single_step)
146 (linux_process_target::resume_one_lwp_throw)
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):
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):
178 (the_low_target): Remove the op field.
180 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
182 Turn the 'supports_range_stepping' linux target op into a method
183 of linux_process_target.
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):
189 (linux_process_target::supports_range_stepping): Update the call
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.
213 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
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.
248 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
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.
309 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
311 Turn the 'get_thread_area' linux target op into a method of
312 process_stratum_target.
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.
325 Update the caller below.
327 (linux_process_target::stabilize_threads)
329 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
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>:
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>:
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>:
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.
359 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
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>:
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>:
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>:
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.
398 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
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
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.
425 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
427 Turn the 'prepare_to_resume' linux target op into a method of
428 linux_process_target.
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):
435 Update the callers below:
437 (linux_process_target::resume_one_lwp_throw)
438 (linux_process_target::low_prepare_to_resume)
440 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
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>:
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>:
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.
469 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
475 * linux-low.h (struct linux_target_ops): Remove the ops.
476 (class linux_process_target) <add_linux_process>
481 <check_zombie_leaders>
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.
510 Update the callers below.
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)
520 * linux-x86-low.cc (class x86_target) <low_new_process>
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>
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>
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>
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.
591 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
593 Turn the 'siginfo_fixup' linux target op into a method of
594 linux_process_target.
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.
624 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
626 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
627 linux target ops into methods of linux_process_target.
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.
635 Update the callers below.
637 (linux_process_target::fetch_register)
638 (linux_process_target::store_register)
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.
681 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
683 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
684 target ops into methods of linux_process_target.
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.
742 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
744 Turn the 'insert_point' and 'remove_point' linux target ops into
745 methods of linux_process_target.
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.
807 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
813 * linux-low.cc (linux_process_target::supports_z_point_type):
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>:
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>:
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>:
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>:
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>:
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.
861 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
863 Turn the 'breakpoint_at' linux target op into a method of
864 linux_process_target.
866 * linux-low.h (struct linux_target_ops): Remove the op.
867 (class linux_process_target) <low_breakpoint_at>: Declare.
869 Update the callers below:
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)
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.
968 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
970 Turn the 'decr_pc_after_break' linux_target_ops field into
971 a method of linux_process_target.
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
977 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
978 New method implementation.
980 Update the users below.
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>:
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>:
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>:
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>:
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.
1015 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
1023 * linux-low.h (struct linux_target_ops): Remove the ops.
1024 (class linux_process_target) <supports_software_single_step>:
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.
1031 Update the callers below.
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)
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.
1065 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
1071 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
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>:
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>:
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>:
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>:
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>:
1106 (ia64_target::sw_breakpoint_from_kind): Define.
1107 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
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>:
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>:
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>:
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>:
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>:
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>:
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>:
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>:
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>:
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>:
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.
1168 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
1175 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
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.
1216 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1218 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1219 of linux_process_target.
1221 * linux-low.h (struct linux_target_ops): Remove the ops.
1222 (class linux_process_target) <low_supports_breakpoints>
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.
1230 Update the callers below.
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)
1242 * linux-x86-low.cc (class linux_process_target)
1243 <low_supports_breakpoints>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
1399 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1401 Turn some more static methods in linux-low into private methods
1402 of linux_process_target.
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):
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.
1434 Update the calls/references to the above functions below.
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)
1447 * linux-low.h (class linux_process_target)
1450 <thread_still_has_status_pending>
1451 <status_pending_p_callback>
1452 <resume_stopped_resumed_lwps>
1453 <install_software_single_step_breakpoints>
1455 <resume_one_lwp_throw>
1457 <resume_status_pending>
1458 <thread_needs_step_over>
1461 <unsuspend_and_proceed_one_lwp>: Declare.
1463 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1465 Turn the 'fetch_register' linux target op into a method of
1466 linux_process_target.
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>:
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>:
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>:
1498 (riscv_fetch_register): Turn into...
1499 (riscv_target::low_fetch_register): ...this.
1500 (the_low_target): Remove the op field.
1502 Update the callers below.
1504 * linux-low.cc (linux_process_target::fetch_registers)
1505 (linux_process_target::low_fetch_register)
1507 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1509 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1510 linux target ops into methods of linux_process_target.
1512 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1513 (class linux_process_target) <fetch_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,
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.
1675 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1677 Turn the 'regs_info' linux target op into a method of
1678 linux_process_target.
1680 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1681 (class linux_process_target) <get_regs_info>: Define.
1683 Update the callers below.
1685 * linux-low.cc (linux_process_target::fetch_registers)
1686 (linux_process_target::store_registers)
1687 * proc-service.cc (gregset_info)
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>:
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>:
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>:
1769 (xtensa_regs_info): Turn into ...
1770 (xtensa_target::get_regs_info): ...this.
1771 (the_low_target): Remove the op field.
1773 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1775 Turn the 'arch_setup' linux target op into a method of
1776 linux_process_target.
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.
1785 Update the callers below.
1787 (linux_process_target::handle_extended_wait)
1788 (linux_process_target::post_create_inferior)
1789 (linux_process_target::filter_event)
1791 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
1887 (xtensa_arch_setup): Turn into ...
1888 (xtensa_target::low_arch_setup): ...this.
1889 (the_low_target): Remove the op field.
1891 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1893 * linux-low.h (the_linux_target): New extern declaration.
1894 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
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.
1955 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1957 Turn some static functions in linux-low.cc into private methods of
1958 linux_process_target.
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.
1988 * linux-low.h (class linux_process_target)
1989 <handle_extended_wait>
1990 <maybe_move_out_of_jump_pad>
1992 <wait_for_event_filtered>
1996 <move_out_of_jump_pad>
1999 <complete_ongoing_step_over>
2001 <unstop_all_lwps>: Declare.
2003 Update the callers below.
2005 * linux-low.cc (linux_process_target::attach): Update.
2006 (linux_process_target::stabilize_threads): Ditto.
2007 (linux_process_target::wait): Ditto.
2009 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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
2016 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2018 * config.in: Re-generate.
2019 * configure: Re-generate.
2021 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2023 * regcache.cc (find_register_by_number): Update.
2024 * tdesc.cc (init_target_desc): Likewise.
2025 * tdesc.h (target_desc::reg_defs): Likewise.
2027 2020-03-12 Tom Tromey <tom@tromey.com>
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
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.
2041 2020-03-12 Tom Tromey <tom@tromey.com>
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
2048 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2049 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2051 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2053 * acinclude.m4: Update path to selftest.m4.
2055 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2057 * configure.ac: Don't source bfd/development.sh, move
2058 GDB_AC_COMMON higher.
2059 * configure: Re-generate.
2061 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2063 * configure: Re-generate.
2065 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2067 * configure: Re-generate.
2069 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2071 * .dir-locals.el: New file.
2073 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2075 * .gitattributes: New file.
2077 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
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.
2085 2020-02-21 Tom Tromey <tom@tromey.com>
2087 * Makefile.in (mostlyclean): New target.
2089 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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
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.
2115 Replace 'the_target->pt' with 'the_target' in the uses below.
2117 * hostio.cc (hostio_error)
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)
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)
2132 (linux_process_target::breakpoint_kind_from_pc)
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)
2149 (insert_memory_breakpoint)
2150 (set_raw_breakpoint_at)
2151 (delete_raw_breakpoint)
2153 (uninsert_raw_breakpoint)
2154 (reinsert_raw_breakpoint)
2155 (validate_inserted_breakpoint)
2156 * regcache.cc (regcache_read_pc)
2158 * remote-utils.cc (putpkt_binary_1)
2161 (prepare_resume_reply)
2162 * server.cc (handle_general_set)
2165 (handle_qxfer_exec_file)
2166 (handle_qxfer_libraries_svr4)
2167 (handle_qxfer_osdata)
2168 (handle_qxfer_siginfo)
2169 (handle_qxfer_fdpic)
2173 (queue_stop_reply_callback)
2175 * target.cc (prepare_to_access_memory)
2176 (done_accessing_memory)
2177 (read_inferior_memory)
2178 (target_write_memory)
2179 (target_stop_and_wait)
2181 (target_mourn_inferior)
2182 (target_continue_no_signal)
2184 (target_supports_multi_process)
2187 (target_create_inferior)
2188 (target_post_create_inferior)
2190 (target_supports_fork_events)
2191 (target_supports_vfork_events)
2192 (target_supports_exec_events)
2193 (target_handle_new_gdb_connection)
2196 (fetch_inferior_registers)
2197 (store_inferior_registers)
2199 (target_supports_non_stop)
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)
2209 (target_unpause_all)
2210 (target_stabilize_threads)
2211 (target_install_fast_tracepoint_jump_pad)
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)
2233 Rename target op default definitions listed below.
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.
2382 2020-02-20 Pedro Alves <palves@redhat.com>
2384 * target.cc (set_target_ops): Simply copy the given target pointer
2385 instead of creating a copy of the pointed object.
2387 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2389 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
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.
2397 Update the derived classes and callers below.
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.
2407 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2409 Turn process_stratum_target's supports_catch_syscall op into a
2410 method of process_target.
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.
2417 Update the derived classes and callers below.
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.
2427 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2429 Turn process_stratum_target's supports_software_single_step op
2430 into a method of process_target.
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.
2437 Update the derived classes and callers below.
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.
2447 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2449 Turn process_stratum_target's thread_name and thread_handle ops
2450 into methods of process_target.
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.
2459 Update the derived classes and callers below.
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.
2469 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
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.
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.
2484 Update the derived classes and callers below.
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.
2509 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2511 Turn process_stratum_target's multifs_open, multifs_readlink,
2512 multifs_unlink ops into methods of process_target.
2514 * target.h (struct process_stratum_target): Remove the target ops.
2515 (class process_target): Add the target ops. Also add
2517 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2519 (process_target::supports_multifs): Define.
2520 (process_target::multifs_open): Define.
2521 (process_target::multifs_readlink): Define.
2522 (process_target::multifs_unlink): Define.
2524 Update the derived classes and callers below.
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.
2540 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2542 Turn process_stratum_target's pid_to_exec_file op into a method
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.
2551 Update the derived classes and callers below.
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.
2563 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2565 Turn process_stratum_target's supports_range_stepping op into a
2566 method of process_target.
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.
2573 Update the derived classes and callers below.
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.
2583 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2585 Turn process_stratum_target's btrace-related ops (enable_btrace,
2586 disable_btrace, read_btrace, read_btrace_conf) into methods of
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.
2600 Update the derived classes and callers below.
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.
2616 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2618 Turn process_stratum_target's supports_agent op into a method of
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.
2626 Update the derived classes and callers below.
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.
2636 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2638 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2639 method of process_target.
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.
2647 Update the derived classes and callers below.
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.
2660 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2662 Turn process_stratum_target's supports_disable_randomization op
2663 into a method of process_target.
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.
2670 Update the derived classes and callers below.
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.
2680 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2682 Turn process_stratum_target's emit_ops op into a method of
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.
2690 Update the derived classes and callers below.
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.
2700 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2702 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2703 and get_min_fast_tracepoint_insn_len ops into methods of
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
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.
2718 Update the derived classes and callers below.
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.
2732 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2734 Turn process_stratum_target's stabilize_threads op into a
2735 method of process_target.
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.
2742 Update the derived classes and callers below.
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.
2756 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2758 Turn process_stratum_target's pause_all and unpause_all ops
2759 into methods of process_target.
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.
2770 Update the derived classes and callers below.
2772 * server.cc (handle_status): Update.
2773 * tracepoint.cc (clear_installed_tracepoints): 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.
2792 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2794 Turn process_stratum_target's get_tib_address op into a method of
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.
2803 Update the derived classes and callers below.
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.
2815 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2817 Turn process_stratum_target's thread_stopped op into a method of
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.
2828 Update the derived classes and callers below.
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.
2840 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2842 Turn process_stratum_target's read_pc and write_pc ops into
2843 methods of process_target.
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.
2850 Update the derived classes and callers below.
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.
2864 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2866 Turn process_stratum_target's supports_tracepoints op into a
2867 method of process_target.
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.
2874 Update the derived classes and callers below.
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.
2884 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2886 Turn process_stratum_target's process_qsupported op into a method
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.
2894 Update the derived classes and callers below.
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.
2904 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2906 Turn process_stratum_target's read_loadmap op into a method of
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.
2915 Update the derived classes and callers below.
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.
2928 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2930 Turn process_stratum_target's core_of_thread op into a method of
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.
2938 Update the derived classes and callers below.
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.
2947 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2949 Turn process_stratum_target's handle_monitor_command op into a
2950 method of process_target.
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.
2957 Update the derived classes and callers below.
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.
2967 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2969 Turn process_stratum_target's handle_new_gdb_connection op into a
2970 method of process_target.
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.
2977 Update the derived classes and callers below.
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.
2987 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2989 Turn process_stratum_target's supports_fork_events,
2990 supports_vfork_events, and supports_exec_events ops into methods
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.
3002 Update the derived classes and callers below.
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.
3016 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3018 Turn process_stratum_target's supports_multi_process op into a
3019 method of process_target.
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.
3026 Update the derived classes and callers below.
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.
3036 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3038 Turn process_stratum_target's supports_non_stop, async, and
3039 start_non_stop ops into methods of process_target.
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.
3051 Update the derived classes and callers below.
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
3067 * win32-low.cc (win32_target_ops): Update.
3069 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3071 Turn process_stratum_target's qxfer_siginfo op into a method of
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.
3080 Update the derived classes and callers below.
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.
3093 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3095 Turn process_stratum_target's qxfer_osdata op into a method of
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.
3104 Update the derived classes and callers below.
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.
3117 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3119 Turn process_stratum_target's hostio_last_error op into a
3120 method of process_target.
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.
3127 Update the derived classes and callers below.
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.
3139 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3141 Turn process_stratum_target's get_tls_address op into a method of
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.
3150 Update the derived classes and callers below.
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.
3161 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3163 Turn process_stratum_target's read_offsets op into a method of
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.
3172 Update the derived classes and callers below.
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.
3185 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3187 Turn process_stratum_target's stopped_by_watchpoint and
3188 stopped_data_address ops into methods of process_target.
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.
3195 Update the derived classes and callers below.
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.
3218 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3220 Turn process_stratum_target's supports_hardware_single_step op into
3221 a method of process_target.
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.
3230 Update the derived classes and callers below.
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.
3246 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3248 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3249 ops into methods of process_target.
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.
3258 Update the derived classes and callers below.
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.
3270 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3272 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3273 ops into methods of process_target.
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.
3282 Update the derived classes and callers below.
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.
3294 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3296 Turn process_stratum_target's insert_point and remove_point ops
3297 into methods of process_target.
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.
3304 Update the derived classes and callers below.
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.
3330 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3332 Turn process_stratum_target's supports_z_point_type op into a
3333 method of process_target.
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.
3339 Update the derived classes and callers below.
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.
3356 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3358 Turn process_stratum_target's read_auxv op into a method of
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.
3367 Update the derived classes and callers below.
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.
3384 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3386 Turn process_stratum_target's request_interrupt op into a method of
3389 * target.h (struct process_stratum_target): Remove the target op.
3390 (class process_target): Add the target op.
3392 Update the derived classes and callers below.
3394 * remote-utils.cc (putpkt_binary_1): Update.
3395 (input_interrupt): 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.
3415 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3417 Turn process_stratum_target's look_up_symbols op into a method of
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.
3424 Update the derived classes and callers below.
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.
3435 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3437 Turn process_stratum_target's read_memory and write_memory
3438 ops into methods of process_target.
3440 * target.h (struct process_stratum_target): Remove the target ops.
3441 (class process_target): Add the target ops.
3443 Update the derived classes and callers below.
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
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.
3493 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3495 Turn process_stratum_target's prepare_to_access_memory and
3496 done_accessing_memory ops into methods of process_target.
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.
3505 Update the derived classes and callers below.
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.
3517 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3519 Turn process_stratum_target's fetch_registers and store_registers
3520 ops into methods of process_target.
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.
3527 Update the derived classes and callers below.
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.
3554 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3556 Turn process_stratum_target's wait op into a method of
3559 * target.h (struct process_stratum_target): Remove the target op.
3560 (class process_target): Add the target op.
3562 Update the derived classes and callers below.
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.
3583 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3585 Turn process_stratum_target's resume op into a method of
3588 * target.h (struct process_stratum_target): Remove the target op.
3589 (class process_target): Add the target op.
3591 Update the derived classes and callers below.
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.
3616 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3618 Turn process_stratum_target's thread_alive op into a method of
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.
3625 Update the derived classes and callers below.
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.
3645 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3647 Turn process_stratum_target's join op into a method of
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.
3654 Update the derived classes and callers below.
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.
3672 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3674 Turn process_stratum_target's mourn op into a method of
3677 * target.h (struct process_stratum_target): Remove the target op.
3678 (class process_target): Add the target op.
3680 Update the derived classes and callers below.
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.
3703 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3705 Turn process_stratum_target's detach op into a method of
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.
3712 Update the derived classes and callers below.
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.
3731 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3733 Turn process_stratum_target's kill op into a method of
3736 * target.h (struct process_stratum_target): Remove the target op.
3737 (class process_target): Add the target op.
3739 Update the derived classes and callers below.
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.
3759 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3761 Turn process_stratum_target's attach op into a method of
3764 * target.h (struct process_stratum_target): Remove the target op.
3765 (class process_target): Add the target op.
3766 (myattach): Update the macro.
3768 Update the derived classes and callers below.
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.
3787 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3789 Turn process_stratum_target's post_create_inferior op into a method
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.
3797 Update the derived classes and callers below.
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.
3807 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3809 Turn process_stratum_target's create_inferior op into a method of
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.
3817 Update the derived classes and callers below.
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.
3839 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3841 * target.h (class process_target): New class definition.
3842 (struct process_stratum_target) <pt>: New field with type
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*
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*
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*
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*
3861 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3863 * configure: Regenerate.
3865 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3866 Andrew Burgess <andrew.burgess@embecosm.com>
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):
3875 2020-02-14 Tom Tromey <tom@tromey.com>
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.
3885 (generated_files): Update.
3886 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3887 * configure: Rebuild.
3888 * configure.ac: Don't configure gnulib or libiberty.
3891 2020-02-14 Eli Zaretskii <eliz@gnu.org>
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.
3898 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
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.
3905 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3907 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3909 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3911 * win32-low.c (win32_create_inferior): Set signal_pid.
3913 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3914 Pedro Alves <palves@redhat.com>
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.
3920 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3922 * configure: Re-generate.
3924 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3926 * configure: Re-generate.
3928 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3930 * acinclude.m4: Update warning.m4 path.
3932 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3934 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3935 (handle_exception): Set siginfo_er.
3936 (win32_xfer_siginfo): New function.
3938 2020-02-07 Tom Tromey <tom@tromey.com>
3939 Pedro Alves <palves@redhat.com>
3941 * README: Update build documentation.
3942 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
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.
3955 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3957 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3959 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3961 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3962 assignment instead of srv_linux_obj.
3964 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3966 * server.c (handle_qxfer_libraries): Write segment-address with
3969 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
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.
3977 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
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.
3983 (nat/%.o): ... this pattern rule.
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.
3991 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3993 * Makefile.in (TAGS): Remove config files from the recipe.
3995 2020-01-14 Tom Tromey <tom@tromey.com>
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
4002 2020-01-14 Tom Tromey <tom@tromey.com>
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.
4015 2020-01-14 Tom Tromey <tom@tromey.com>
4017 * configure.ac (LIBS): Use WIN32APILIBS.
4018 (USE_WIN32API): Don't define.
4019 * configure: Rebuild.
4021 2020-01-14 Tom Tromey <tom@tromey.com>
4023 * configure: Rebuild.
4025 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4027 * Makefile.in (%-generated.c): Remove rule for files from
4030 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4032 * configure: Re-generate.
4034 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4036 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
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.
4042 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
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
4051 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4053 * inferiors.c: Include gdbsupport/common-inferior.h.
4055 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4057 * hostio-errno.c: Include hostio.h.
4059 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4061 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4064 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4066 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4067 * linux-arm-tdesc.h: Include arch/arm.h.
4069 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4071 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4073 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4075 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4076 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4078 2020-01-10 Pedro Alves <palves@redhat.com>
4080 * fork-child.c (post_fork_inferior): Pass target down to
4082 * inferiors.c (switch_to_thread): Add process_stratum_target
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
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.
4100 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4101 Pedro Alves <palves@redhat.com>
4103 * win32-low.c (get_child_debug_event): Extract the fatal exception
4104 from the exit status and convert to the equivalent Posix signal
4106 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4107 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4109 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4111 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4113 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4115 * server.c (gdbserver_version): Change copyright year to 2020.
4116 * gdbreplay.c (gdbreplay_version): Likewise.
4118 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4120 * configure: Regenerate.
4121 * configure.ac: Quote variable arguments of test.
4123 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4125 * Makefile.in: Fix build with GNU Make 3.81
4127 2019-12-16 Tom Tromey <tromey@adacore.com>
4129 * server.c (get_exec_file): Constify result.
4131 2019-12-10 Christian Biesinger <cbiesinger@google.com>
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
4143 (gdb_agent_helper_thread): Likewise.
4144 * utils.c (perror_with_name): Likewise.
4146 2019-11-26 Tom Tromey <tom@tromey.com>
4148 * configure, config.in: Rebuild.
4150 2019-11-26 Tom Tromey <tom@tromey.com>
4152 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4153 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4155 * configure, config.in: Rebuild.
4157 2019-11-26 Tom Tromey <tom@tromey.com>
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.
4165 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4167 * debug.c (debug_set_output): Call safe_strerror instead of
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.
4184 2019-11-20 Luis Machado <luis.machado@linaro.org>
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.
4191 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4193 * Makefile.in: Add safe-strerror.c.
4194 * configure: Regenerate.
4195 * configure.ac: Don't source common.host.
4197 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4199 * config.in: Regenerate.
4200 * configure: Regenerate.
4202 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4204 * ax.c (ax_printf): Handle size_t_arg.
4206 2019-11-06 Christian Biesinger <cbiesinger@google.com>
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.
4216 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4218 * configure: Regenerate.
4219 * configure.ac: Remove check for strerror_r.
4221 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4223 * config.in: Regenerate.
4224 * configure: Regenerate.
4225 * configure.ac: Also check for strerror_r.
4227 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4229 * ax.h (debug_agent): Remove duplicate declaration.
4231 2019-10-26 Tom de Vries <tdevries@suse.de>
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.
4240 * tracepoint.c: Same.
4241 * win32-low.c: Same.
4243 2019-10-25 Tom Tromey <tromey@adacore.com>
4245 * utils.c (xstrdup): Remove.
4247 2019-10-23 Tom Tromey <tom@tromey.com>
4249 * configure, config.in: Rebuild.
4251 2019-10-23 Tom Tromey <tom@tromey.com>
4253 * configure: Rebuild.
4254 * acinclude.m4: Use m4_include, not sinclude.
4256 2019-10-17 Tom Tromey <tromey@adacore.com>
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
4264 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4266 * server.c: Include xml-builtin.h.
4267 (get_xml_features): Don't declare xml_builtins here.
4269 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4271 * Makefile.in: Remove references to vec-ipa.o.
4273 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4275 * Makefile.in: Remove references to vec.c.
4277 2019-10-02 Christian Biesinger <cbiesinger@google.com>
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.
4305 2019-10-02 Tom Tromey <tromey@adacore.com>
4307 * Makefile.in (SFILES): Add common-inferior.c.
4308 (OBS): Add common-inferior.o.
4309 * server.c (startup_with_shell): Don't define.
4311 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4313 * linux-low.c (linux_low_read_btrace): Update for change to
4316 2019-09-20 Christian Biesinger <cbiesinger@google.com>
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
4323 * nto-low.c: Likewise.
4324 * remote-utils.c: Likewise.
4325 * thread-db.c: Likewise.
4327 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
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.
4336 * spu-low.c: Remove file.
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.
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.
4367 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4369 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4370 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4371 * config.in: Regenerate.
4372 * configure: Regenerate.
4374 2019-08-15 Tom Tromey <tromey@adacore.com>
4376 * target.c (target_write_memory): Use gdb::byte_vector.
4378 2019-08-15 Tom Tromey <tromey@adacore.com>
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):
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.
4408 2019-08-15 Tom Tromey <tromey@adacore.com>
4410 * target.c (write_inferior_memory): Use std::vector.
4412 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4415 * configure.ac: Drop enable-libmcheck support.
4416 * configure, config.in: Rebuild.
4417 * acinclude.m4: Don't include it.
4419 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4421 * configure.srv: Remove Arm xml files.
4423 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4425 * configure.srv: Add new files. Remove xml generated files.
4426 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
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.
4443 2019-07-10 Alan Hayward <alan.hayward@arm.com>
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.
4450 2019-07-09 Tom Tromey <tom@tromey.com>
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.
4469 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4471 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4473 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4475 2019-07-04 Alan Hayward <alan.hayward@arm.com>
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.
4487 2019-06-20 Tom de Vries <tdevries@suse.de>
4489 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4490 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4492 2019-06-19 Tom de Vries <tdevries@suse.de>
4494 * debug.h (debug_write): Change return type to ssize_t.
4495 * debug.c (debug_write): Same.
4497 2019-06-14 Tom Tromey <tom@tromey.com>
4499 * configure.ac: Use new path to gnulib.
4500 * configure: Rebuild.
4501 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4504 2019-06-11 Tom Tromey <tom@tromey.com>
4506 * Makefile.in (SFILES): Add alloc.c.
4508 (IPA_OBJS): Add alloc-ipa.o.
4509 (alloc-ipa.o): New target.
4510 (%.o: ../%.c): New pattern rule.
4512 2019-06-10 Tom Tromey <tromey@adacore.com>
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
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
4522 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4523 end warning with a newline.
4525 2019-06-04 Pedro Alves <palves@redhat.com>
4527 * server.c (captured_main): Use make_unique_xstrdup.
4529 2019-06-02 Tom Tromey <tom@tromey.com>
4531 * gdbreplay.c (fromhex): Remove.
4532 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4534 2019-05-29 Tom Tromey <tromey@adacore.com>
4536 * configure: Rebuild.
4538 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4540 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4541 sign extension code on 32-bit builds.
4543 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4546 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4548 2019-04-19 Tom Tromey <tom@tromey.com>
4550 * server.c (struct vstop_notif): Derive from notif_event.
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
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.
4571 2019-04-17 Alan Hayward <alan.hayward@arm.com>
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.
4578 2019-04-17 Alan Hayward <alan.hayward@arm.com>
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.
4587 2019-04-17 Alan Hayward <alan.hayward@arm.com>
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.
4597 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4599 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4600 when using a 64-bit gdbserver.
4602 2019-04-09 Tom Tromey <tromey@adacore.com>
4604 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4606 2019-04-08 Tom Tromey <tom@tromey.com>
4608 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4610 (linux_resume_one_lwp): Likewise.
4612 2019-04-08 Tom Tromey <tom@tromey.com>
4614 * gdbreplay.c: Update.
4615 * linux-low.c: Update.
4618 2019-04-08 Tom Tromey <tom@tromey.com>
4620 * server.c: Use C++ exception handling.
4621 * linux-low.c: Use C++ exception handling.
4622 * gdbreplay.c: Use C++ exception handling.
4624 2019-04-08 Tom Tromey <tom@tromey.com>
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.
4631 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
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.
4640 2019-04-05 Tom Tromey <tromey@adacore.com>
4642 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4645 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4647 * linux-low.c (AT_HWCAP2): Add define if not already included.
4649 2019-03-26 Alan Hayward <alan.hayward@arm.com>
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.
4665 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4666 Jiong Wang <jiong.wang@arm.com>
4668 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4669 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4671 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4673 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4674 Jiong Wang <jiong.wang@arm.com>
4676 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4677 (aarch64_get_hwcap): New function.
4678 (aarch64_arch_setup): Read APIA hwcap.
4680 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4681 Jiong Wang <jiong.wang@arm.com>
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.
4691 2019-03-12 John Baldwin <jhb@FreeBSD.org>
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.
4699 2019-03-12 Tom Tromey <tromey@adacore.com>
4701 * linux-low.c (iterate_over_lwps): Update.
4703 2019-03-06 Tom Tromey <tom@tromey.com>
4705 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4706 (captured_main): Use SCOPE_EXIT.
4708 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4710 * configure.srv: Use '$enable_unittest' instead of '$development'
4711 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4714 2019-02-27 Tom Tromey <tromey@adacore.com>
4716 * gdbreplay.c (logchar): Handle \r\n.
4718 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4720 * linux-low.c (linux_attach): Add process before lwp.
4721 * server.c (attach_inferior): Check if already attached.
4723 2019-02-07 Tom Tromey <tom@tromey.com>
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.
4756 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4759 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4760 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4762 2019-01-25 Tom Tromey <tom@tromey.com>
4764 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4766 2019-01-25 Tom Tromey <tom@tromey.com>
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.
4797 (enum gdb_agent_op): Fix common/ includes.
4799 2019-01-21 Tom Tromey <tom@tromey.com>
4801 * tracepoint.c: Fix includes.
4802 * remote-utils.c: Fix includes.
4803 * linux-x86-low.c: Fix includes.
4805 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4807 * gdbreplay.c (gdbreplay_version): Update copyright year in
4809 * server.c (gdbserver_version): Likewise.
4811 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4813 * linux-low.c (add_lwp): Switch ordering.
4815 2018-11-29 Tom Tromey <tom@tromey.com>
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
4823 * lynx-low.c (lynx_join): Take pid, not process.
4824 * linux-low.c (linux_join): Take pid, not process.
4826 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4828 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4829 (aarch64_cannot_fetch_register): Likewise.
4830 (struct linux_target_ops): Update references.
4832 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4834 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4836 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
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.
4871 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
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.
4881 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
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.
4906 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4907 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
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.
4939 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4941 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4943 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4944 Simon Marchi <simark@simark.ca>
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
4952 * server.c (captured_main): Update message informing that
4953 selftests have been disabled.
4955 2018-10-04 Tom Tromey <tom@tromey.com>
4957 * configure: Rebuild.
4959 2018-10-04 Tom Tromey <tom@tromey.com>
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".
4968 2018-10-01 Gary Benson <gbenson@redhat.com>
4970 * gdb_proc_service.h: Moved common code to
4971 common/gdb_proc_service.h.
4973 2018-10-01 Gary Benson <gbenson@redhat.com>
4975 * gdb_proc_service.h: Synchronize comments and whitespace with
4976 GDB's version of this file.
4978 2018-09-25 Tom Tromey <tom@tromey.com>
4980 * configure: Rebuild.
4981 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4983 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4985 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4986 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4987 ($(IPA_LIB)): Sort IPA_OBJS.
4989 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4991 * Makefile.in: Remove references to $(ADD_DEPS).
4993 2018-09-16 Tom Tromey <tom@tromey.com>
4995 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4997 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5000 2018-09-05 Tom Tromey <tom@tromey.com>
5002 * configure: Rebuild.
5004 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5007 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5009 2018-08-27 Tom Tromey <tom@tromey.com>
5012 * configure: Rebuild.
5014 2018-08-27 Tom Tromey <tom@tromey.com>
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.
5022 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5026 * server.h (struct client_state) <disable_randomization>:
5029 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5031 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5033 (mips_supply_ptrace_register): Likewise.
5035 2018-07-22 Tom Tromey <tom@tromey.com>
5037 * configure: Rebuild.
5039 2018-07-22 Tom Tromey <tom@tromey.com>
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.
5050 2018-07-13 Pedro Alves <palves@redhat.com>
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
5065 (kill_inferior): Likewise.
5067 2018-07-13 Pedro Alves <palves@redhat.com>
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
5079 (detach_inferior, join_inferior): Rename 'pid' parameter to
5082 2018-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>
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
5093 * remote-utils.c: Include 'netstuff.h', 'filestuff.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
5101 2018-07-11 Pedro Alves <palves@redhat.com>
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.
5114 2018-07-11 Pedro Alves <palves@redhat.com>
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.
5122 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5123 Pedro Alves <palves@redhat.com>
5125 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5127 2018-07-03 Tom Tromey <tom@tromey.com>
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.
5135 * spu-low.c: Update.
5137 * win32-low.c: Update.
5139 2018-07-03 Tom Tromey <tom@tromey.com>
5143 2018-07-03 Tom Tromey <tom@tromey.com>
5145 * linux-low.c: Update.
5147 2018-07-03 Tom Tromey <tom@tromey.com>
5151 2018-07-03 Tom Tromey <tom@tromey.com>
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.
5159 * spu-low.c: Update.
5161 * thread-db.c: Update.
5163 2018-07-03 Tom Tromey <tom@tromey.com>
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.
5172 * spu-low.c: Update.
5174 * tracepoint.c: Update.
5176 2018-07-03 Tom Tromey <tom@tromey.com>
5178 * linux-low.c: Update.
5179 * linux-ppc-low.c: Update.
5180 * linux-x86-low.c: Update.
5181 * proc-service.c: Update.
5183 * spu-low.c: Update.
5184 * thread-db.c: Update.
5185 * win32-low.c: Update.
5187 2018-07-03 Tom Tromey <tom@tromey.com>
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.
5197 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5199 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5200 parameter in call to 'amd64_create_target_description'.
5202 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5204 * x86-tdesc.h: Remove executable permission flag.
5206 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5208 * configure.ac: Remove AC_PREREQ, add missing quoting.
5209 * configure: Re-generate.
5210 * config.in: Re-generate.
5211 * aclocal.m4: Re-generate.
5213 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5215 * tracepoint.h (current_traceframe): Remove declaration.
5217 2018-06-18 Alan Hayward <alan.hayward@arm.com>
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.
5225 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5227 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5229 2018-06-11 Alan Hayward <alan.hayward@arm.com>
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
5236 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5238 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5240 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5242 * server.h (PBUFSIZ): Increase size
5244 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5246 * regcache.c (regcache::raw_compare): New function.
5247 * regcache.h (regcache::raw_compare): New declaration.
5249 2018-06-11 Alan Hayward <alan.hayward@arm.com>
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.
5261 2018-06-09 Tom Tromey <tom@tromey.com>
5263 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5265 (event_queue): Use std::queue.
5266 (gdb_event_xfree): Remove.
5267 (initialize_event_loop, process_event, wait_for_event): Update.
5269 2018-06-08 Stan Cox <scox@redhat.com>
5271 * win32-low.c (win32_create_inferior): last_ptid and last_status
5272 moved to client_state.
5274 2018-06-08 Pedro Alves <palves@redhat.com>
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.
5288 2018-06-08 Tom Tromey <tom@tromey.com>
5290 * linux-low.c (linux_low_read_btrace): Update.
5292 2018-06-04 Stan Cox <scox@redhat.com>
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.
5306 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5307 linux-low.c, remote-utils.h, target.c: Use client_state.
5309 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5311 * configure.srv: Add new c/h file.
5313 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5315 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5318 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5320 * gdb.arch/mips-fpregset-core.exp: New test.
5321 * gdb.arch/mips-fpregset-core.c: New test source.
5323 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5326 * hostio.c (require_int): Do not report overflow for integers
5327 between 0xfffffff and 0x7fffffff.
5329 2018-05-22 Maciej W. Rozycki <macro@mips.com>
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
5335 (the_low_target): Wire them.
5337 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
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
5347 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
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.
5353 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
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
5365 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5367 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5368 wordsize of the inferior. Call ppc_linux_target_wordsize.
5370 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
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
5388 (ppc_arch_setup): Remove target description matching code. Fill a
5389 ppc_linux_features struct and call ppc_linux_match_description
5392 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5394 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5395 width of the requested register exceeds the width of the
5397 (mips_cannot_store_register): Likewise.
5399 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5401 * linux-mips-low.c (mips_fetch_register): New function. Update
5403 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5404 (the_low_target): Wire `mips_fetch_register'.
5406 2018-05-10 Joel Brobecker <brobecker@adacore.com>
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
5415 2018-05-10 Tom Tromey <tom@tromey.com>
5417 * configure: Rebuild.
5419 2018-05-10 Joel Brobecker <brobecker@adacore.com>
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.
5444 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5447 * win32-low.c (win32_create_inferior): Add call to my_wait
5448 setting last_status global.
5450 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5453 * win32-low.c (create_process): Only call gdb_tilde_expand if
5454 inferior_cwd is not NULL.
5456 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
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
5466 2018-05-07 Tom Tromey <tom@tromey.com>
5468 * configure: Rebuild.
5470 2018-05-04 Tom Tromey <tom@tromey.com>
5472 * configure: Rebuild.
5474 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5475 Pedro Alves <palves@redhat.com>
5477 * linux-aarch64-low.c (aarch64_stopped_data_address):
5480 2018-04-27 Tom Tromey <tom@tromey.com>
5482 * configure: Rebuild.
5484 2018-04-23 Tom Tromey <tom@tromey.com>
5486 * configure: Rebuild.
5488 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5490 * Makefile.in (depcomp): Add "..".
5491 (all_deps_files): New and use it.
5493 2018-04-18 Alan Hayward <alan.hayward@arm.com>
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.
5507 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5509 * tdesc.c: Remove xml parameter.
5511 2018-04-18 Alan Hayward <alan.hayward@arm.com>
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.
5520 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5522 * tdesc.c (tdesc_architecture_name): Add new function.
5523 (tdesc_osabi_name): Likewise.
5524 (tdesc_get_features_xml): Use new functions.
5526 2018-04-18 Alan Hayward <alan.hayward@arm.com>
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.
5538 2018-04-18 Alan Hayward <alan.hayward@arm.com>
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.
5547 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5549 * Makefile.in: Add common/tdesc.c
5550 * tdesc.c (init_target_desc): init all reg_defs from register
5552 (tdesc_create_reg): Create tdesc_reg.
5553 * tdesc.h (tdesc_feature): Add register vector.
5555 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
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
5561 (tdesc_get_features_xml): Likewise.
5562 (tdesc_create_feature): Likewise.
5564 2018-03-26 Alan Hayward <alan.hayward@arm.com>
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.
5576 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5578 * regcache.c (find_register_by_number): Make static.
5579 (find_regno): Use find_register_by_number
5580 * regcache.h (struct reg): Remove declaration.
5582 2018-03-23 Alan Hayward <alan.hayward@arm.com>
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.
5589 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5591 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5593 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5595 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
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.
5601 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
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
5608 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
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.
5617 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
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.
5630 2018-03-14 Tom Tromey <tom@tromey.com>
5633 * ax.c (ax_printf): Special case for NULL.
5635 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5637 * linux-low.c (linux_qxfer_libraries_svr4): Use
5638 xml_escape_text_append.
5640 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5642 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5644 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5646 * server.c (handle_general_set): Remove unnecessary xstrdup.
5648 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
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.
5655 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
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.
5664 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5666 * server.c (captured_main): Change order of error message printed
5667 when the current working directory cannot be found.
5669 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
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
5676 (handle_v_run): Likewise.
5677 (captured_main): Likewise.
5678 (process_serial_event): Likewise.
5680 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
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".
5687 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5689 * tdesc.c: Use common/tdesc.h.
5690 * tdesc.h: Likewise.
5692 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5693 Simon Marchi <simon.marchi@ericsson.com>
5695 * Makefile.in: Switch order of make rules.
5697 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5699 * Makefile.in: Add common directory in build.
5700 * configure.ac: Add common reference.
5701 * configure: Regenerate.
5703 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
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.
5713 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5715 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5716 (handle_btrace_disable): Change return type to void. Use exceptions
5718 (handle_btrace_general_set): Catch exception and copy message to
5721 2018-02-08 Tom Tromey <tom@tromey.com>
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
5730 2018-02-08 Tom Tromey <tom@tromey.com>
5732 * mem-break.c (set_raw_breakpoint_at): Use
5733 gdb::unique_xmalloc_ptr.
5735 2018-01-30 Pedro Alves <palves@redhat.com>
5738 * target.c (target_terminal::terminal_state): Rename to ...
5739 (target_terminal::m_terminal_state): ... this.
5741 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5743 * linux-low.c (handle_extended_wait): Surround call to
5744 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5746 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5748 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5749 linux_ptrace_attach_fail_reason_string now returning an
5751 (linux_attach): Likewise.
5752 * thread-db.c (attach_thread): Likewise.
5754 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
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.
5761 2018-01-16 Yao Qi <yao.qi@linaro.org>
5764 * linux-low.c (fetch_register): Call supply_register instead of
5767 2018-01-08 Yao Qi <yao.qi@linaro.org>
5768 Simon Marchi <simon.marchi@ericsson.com>
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
5777 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5779 * server.c (parse_debug_format_options): Return std::string.
5780 (handle_monitor_command, captured_main): Adjust.
5782 2018-01-05 Pedro Alves <palves@redhat.com>
5785 * server.c (captured_main): Pass quiet=false to
5786 save_original_signals_state.
5788 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5790 * gdbreplay.c (gdbreplay_version): Update copyright year in
5792 * server.c (gdbserver_version): Likewise.
5794 2017-12-08 Tom Tromey <tom@tromey.com>
5796 * ax.c (ax_printf): Update.
5798 2017-12-07 Yao Qi <yao.qi@linaro.org>
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.
5809 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
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.
5817 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5819 * regcache.c (registers_to_string): Remove unused variable.
5821 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
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.
5828 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
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
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.
5845 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5847 * inferiors.h (find_inferior): Remove.
5848 * inferiors.c (find_inferior): Remove.
5850 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5852 * linux-low.c (resume_status_pending_p): Update comment.
5853 (need_step_over_p): Update comment.
5855 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5857 * linux-low.c (proceed_one_lwp): Return void, change parameter
5859 (unsuspend_and_proceed_one_lwp): Likewise.
5860 (proceed_all_lwps): Use for_each_thread.
5861 (unstop_all_lwps): Likewise.
5863 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5865 * linux-low.c (linux_resume_one_thread): Return void, take
5867 (linux_resume): Use for_each_thread.
5869 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
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
5876 (suspend_and_send_sigstop): ... this.
5877 (stop_all_lwps): Use for_each_thread.
5879 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5881 * linux-low.c (lwp_running): Return bool, remove unused
5883 (linux_stabilize_threads): Use find_thread.
5885 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
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.
5892 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5894 * linux-low.c (not_stopped_callback): Return bool, take filter
5896 (linux_wait_for_event_filtered): Use find_thread.
5897 (linux_wait_1): Likewise.
5899 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5901 * linux-low.c (same_lwp): Remove.
5902 (find_lwp_pid): Use find_thread.
5904 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5906 * linux-low.c (delete_lwp_callback): Remove.
5907 (linux_mourn): Use for_each_thread.
5909 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
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.
5915 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5917 * linux-low.c (struct counter): Remove.
5918 (second_thread_of_pid_p): Remove.
5919 (last_thread_of_process_p): Use find_thread.
5921 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
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.
5930 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5932 * inferiors.c (find_inferior_id): Remove.
5933 (find_thread_ptid): Move implemention from find_inferior_id to
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.
5945 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
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.
5951 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5953 * lynx.low (lynx_delete_thread_callback): Remove.
5954 (lynx_mourn): Use for_each_thread.
5956 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5958 * regcache.c (regcache_invalidate_one): Remove.
5959 (regcache_invalidate_pid): use for_each_thread.
5961 2017-11-26 Tom Tromey <tom@tromey.com>
5963 * linux-low.c (linux_create_inferior): Update.
5965 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5967 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5969 2017-11-24 Alan Hayward <alan.hayward@arm.com>
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.
5976 2017-11-24 Alan Hayward <alan.hayward@arm.com>
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.
5983 2017-11-24 Alan Hayward <alan.hayward@arm.com>
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.
5989 2017-11-24 Alan Hayward <alan.hayward@arm.com>
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.
6000 2017-11-24 Yao Qi <yao.qi@linaro.org>
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.
6008 2017-11-22 Yao Qi <yao.qi@linaro.org>
6010 * remote-utils.c (prepare_resume_reply): Use memcpy.
6012 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
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.
6018 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6020 * linux-low.c (need_step_over_p): Return bool, remove dummy
6022 (linux_resume, proceed_all_lwps): Use find_thread.
6024 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6026 * linux-low.c (resume_status_pending_p): Return bool, remove
6028 (linux_resume): Use find_thread.
6030 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6032 * linux-low.c (struct thread_resume_array): Remove.
6033 (linux_set_resume_request): Return void, take arguments
6035 (linux_resume): Use for_each_thread.
6037 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6039 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6040 return bool, remove data argument.
6041 (linux_stabilize_threads): Use find_thread.
6043 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6045 * linux-low.c (unsuspend_one_lwp): Remove.
6046 (unsuspend_all_lwps): Use for_each_thread, inline code from
6049 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
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.
6056 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
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.
6062 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
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.
6069 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6071 * win32-low.c (continue_one_thread): Return void, take argument
6073 (child_continue): Use for_each_thread.
6075 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6077 * win32-i386-low.c (update_debug_registers_callback): Rename
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.
6082 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6084 * inferiors.h (struct process_info): Add constructor, initialize
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.
6093 2017-11-16 Pedro Alves <palves@redhat.com>
6095 * remote-utils.c (remote_close): Block SIGIO signals instead of
6096 uninstalling the SIGIO handler.
6098 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6100 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6102 2017-11-16 Yao Qi <yao.qi@linaro.org>
6104 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6105 (tic6x_store_gregset): Likewise.
6106 (tic6x_usrregs_info): Move it up.
6108 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6110 * Makefile.in: Update arch rules.
6111 * configure.srv: Explicitly mark arch/ files.
6113 2017-11-13 Andreas Schwab <schwab@suse.de>
6115 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6117 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6119 2017-11-06 Pedro Alves <palves@redhat.com>
6121 * config.in, configure: Regenerate.
6123 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
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.
6130 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6132 * server.c (struct visit_actioned_threads_data): Remove.
6133 (visit_actioned_threads): Change prototype to take arguments
6135 (resume): Use find_thread instead of find_inferior.
6137 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6139 * server.c (queue_stop_reply_callback): Change prototype, return
6141 (find_status_pending_thread_callback): Remove.
6142 (handle_status): Replace find_inferior with find_thread and
6145 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6147 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6149 (aarch64_store_gregset): Likewise.
6150 (aarch64_fill_fpregset): Likewise.
6151 (aarch64_store_fpregset): Likewise.
6153 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
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.
6160 2017-10-17 Yao Qi <yao.qi@linaro.org>
6162 * Makefile.in: Remove one rule.
6163 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6165 2017-10-17 Yao Qi <yao.qi@linaro.org>
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.
6170 2017-10-17 Yao Qi <yao.qi@linaro.org>
6172 * configure.srv: Rename arm.o with arch/arm.o.
6174 2017-10-17 Yao Qi <yao.qi@linaro.org>
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.
6187 2017-10-16 Yao Qi <yao.qi@linaro.org>
6189 * configure: Regenerated.
6191 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
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
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):
6214 (clear_inferiors, get_thread_process): Update.
6215 * gdbthread.h: Include <list>.
6216 (struct thread_info) <entry>: Remove 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
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):
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):
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.
6260 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6262 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6263 * inferiors.h: Include <list>.
6264 (struct process_info) <entry>: Remove 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.
6296 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
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.
6315 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6317 * linux-low.h (struct linux_target_ops) <delete_process>: New
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.
6338 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6340 * linux-aarch64-low.c (the_low_target): Add thread delete
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
6348 * linux-low.h (struct linux_target_ops) <delete_thread>: New
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.
6361 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6363 * win32-low.c: Include "common-inferior.h".
6365 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
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
6373 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6375 * inferiors.c (current_inferior_cwd): New global variable.
6376 (get_inferior_cwd): New function.
6377 * inferiors.h (struct process_info) <cwd>: New field.
6379 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6381 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6382 (OBS): Add gdb_tilde_expand.o.
6384 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6386 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6387 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6389 2017-09-29 Pedro Alves <palves@redhat.com>
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):
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.
6404 2017-09-29 Pedro Alves <palves@redhat.com>
6406 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6409 2017-09-29 Pedro Alves <palves@redhat.com>
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.
6419 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
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.
6428 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
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):
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
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
6445 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6446 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6448 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6450 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6452 2017-09-21 Kevin Buettner <kevinb@redhat.com>
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
6459 * target.h (struct target_ops): Add new function pointer,
6461 (target_thread_handle): Define.
6462 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6464 (thread_db_thread_handle): New function.
6466 2017-09-21 Kevin Buettner <kevinb@redhat.com>
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.
6472 2017-09-21 Pedro Alves <palves@redhat.com>
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
6479 * target.h (set_desired_thread): Remove 'use_general' parameter.
6481 2017-09-20 Tom Tromey <tom@tromey.com>
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.
6490 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
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.
6496 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
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.
6502 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
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.
6509 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
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.
6528 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
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):
6536 * nto-low.c (nto_fetch_registers, nto_store_registers,
6537 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6539 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
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.
6546 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6548 * server.c (handle_detach): New function.
6549 (process_serial_event): Move code out, call handle_detach.
6551 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
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.
6558 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6560 * linux-low.c (linux_set_resume_request): Remove unused
6563 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
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.
6580 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6582 * regcache.c (get_thread_regcache): Guard calls to "memset"
6585 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6587 * linux-low.c (handle_extended_wait): Use
6588 "allocate_target_description" instead of "XNEW".
6589 * linux-x86-low.c (initialize_low_arch): Likewise.
6591 2017-09-05 Yao Qi <yao.qi@linaro.org>
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.
6606 2017-09-05 Yao Qi <yao.qi@linaro.org>
6608 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6609 i386/amd64-XXX-linux from it.
6611 2017-09-05 Yao Qi <yao.qi@linaro.org>
6613 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6615 (ipa_amd64_linux_regobj): Remove.
6616 (ipa_x32_linux_regobj): Remove.
6618 2017-09-05 Yao Qi <yao.qi@linaro.org>
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.
6643 2017-09-05 Yao Qi <yao.qi@linaro.org>
6645 * configure.srv (srv_i386_linux_xmlfiles): Remove
6646 i386/i386-XXX-linux.xml from it.
6648 2017-09-05 Yao Qi <yao.qi@linaro.org>
6650 * configure.srv: Set srv_i386_linux_regobj empty if $development
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.
6659 2017-09-05 Yao Qi <yao.qi@linaro.org>
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.
6672 2017-09-05 Yao Qi <yao.qi@linaro.org>
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
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.
6691 2017-09-05 Yao Qi <yao.qi@linaro.org>
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 !=.
6699 2017-09-05 Yao Qi <yao.qi@linaro.org>
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.
6717 2017-09-05 Yao Qi <yao.qi@linaro.org>
6719 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6722 2017-09-05 Yao Qi <yao.qi@linaro.org>
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
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.
6742 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6744 * Makefile.in (.SECONDARY): Define target.
6746 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6748 * linux-low.c (linux_wait_1): Adjust.
6749 * server.c (queue_stop_reply_callback): Adjust.
6751 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
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.
6758 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
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.
6784 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6786 * inferiors.c (set_inferior_target_data): Remove.
6787 * inferiors.h (set_inferior_target_data): Remove.
6789 2017-08-18 Yao Qi <yao.qi@linaro.org>
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.
6797 2017-08-09 Yao Qi <yao.qi@linaro.org>
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.
6811 2017-08-09 Yao Qi <yao.qi@linaro.org>
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.
6818 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6820 * tracepoint.h (enum class fast_tpoint_collect_result): New
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.
6836 2017-07-10 Yao Qi <yao.qi@linaro.org>
6838 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6840 2017-06-29 Yao Qi <yao.qi@linaro.org>
6842 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6844 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6846 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6848 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6850 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
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.
6862 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6864 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6865 usage of "register" keyword.
6867 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6869 * configure: Re-generate.
6871 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6873 * configure: Re-generate.
6875 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6877 * Makefile.in (COMPILE.pre): Add "-x c++".
6879 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6881 * fork-child.c: Conditionally include <signal.h>.
6883 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6885 * server.c (handle_general_set): Handle new packet
6886 "QStartupWithShell".
6887 (handle_query): Add "QStartupWithShell" to the list of supported
6889 (gdbserver_usage): Add help text explaining the
6890 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6892 (captured_main): Recognize and act upon the presence of the new
6895 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6896 Pedro Alves <palves@redhat.com>
6898 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6899 * configure: Regenerate.
6900 * configure.srv (srv_linux_obj): Add "fork-child.o" and
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"
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
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
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
6943 (captured_main): Likewise. Initialize environment variable. Call
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".
6964 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6966 * inferiors.c (switch_to_thread): New function.
6968 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6970 * Makefile.in (SFILE): Add "common/job-control.c".
6971 (OBS): Add "job-control.o".
6973 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6975 * Makefile: Remove "@host_makefile_frag@".
6977 2017-05-05 Pedro Alves <palves@redhat.com>
6979 * configure: Regenerate.
6981 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6983 * configure: Regenerate.
6985 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
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):
6992 * linux-low.h (install_software_single_step_breakpoints):
6995 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6997 * remote-utils.c: Include "gdb_termios.h" instead of
6999 * terminal.h: Delete file.
7001 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
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.
7010 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7012 * server.c (handle_v_cont): Initialize thread_resume::thread
7015 2017-04-05 Pedro Alves <palves@redhat.com>
7017 * configure: Regenerate.
7019 2017-04-05 Pedro Alves <palves@redhat.com>
7021 * gdbreplay.c (sync_error): Constify.
7022 * linux-x86-low.c (push_opcode): Constify.
7024 2017-04-05 Pedro Alves <palves@redhat.com>
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.
7030 2017-04-05 Pedro Alves <palves@redhat.com>
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.
7036 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7038 * Makefile.in (clean): Clear .deps.
7040 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
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.
7052 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7054 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7055 (xtensa_fill_gregset): Call collect_register_by_name for
7057 (xtensa_store_gregset): Call supply_register_by_name for
7060 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
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.
7067 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
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.
7077 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
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.
7086 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
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.
7142 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
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.
7150 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
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.
7169 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
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.
7197 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7199 * Makefile.in (%.o: ../target/%.c): New rule.
7200 (waitstatus.o: ../target/waitstatus.c): Remove.
7202 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
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.
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.
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.
7276 (reg-sparc64.c): Remove.
7277 (reg-spu.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.
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.
7300 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7302 * Makefile.in (SFILES): Add "common/environ.c".
7303 (OBJS): Add "common/environ.h".
7305 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
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.
7312 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7314 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7316 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7317 (get_next_pcs_syscall_next_pc): Likewise.
7319 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7321 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7322 * nto-x86-low.c: Likewise.
7324 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7326 * Makefile.in: Include disable-implicit-rules.mk.
7328 2016-11-23 Pedro Alves <palves@redhat.com>
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
7337 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7339 * Makefile.in: Fix whitespace formatting.
7341 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7343 * Makefile.in (SFILES, OBS): Flatten list and order
7346 2016-11-23 Pedro Alves <palves@redhat.com>
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):
7353 2016-11-23 Pedro Alves <palves@redhat.com>
7355 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
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
7364 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7366 * Makefile.in (.c.o): Replace rule with ...
7367 (%.o: %.c): ... this one.
7369 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7371 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7372 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7374 * configure.ac: Remove checks for the make program.
7375 * configure: Re-generate.
7377 2016-10-28 Pedro Alves <palves@redhat.com>
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.
7386 2016-10-27 Yao Qi <yao.qi@linaro.org>
7388 * linux-low.c (linux_supports_range_stepping): Return true if
7389 can_software_single_step return true.
7391 2016-10-27 Yao Qi <yao.qi@linaro.org>
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.
7398 2016-10-27 Yao Qi <yao.qi@linaro.org>
7400 * linux-low.c (linux_wait_1): If single-step breakpoints are
7401 inserted, remove them.
7403 2016-10-26 Pedro Alves <palves@redhat.com>
7405 * linux-low.c (handle_extended_wait): Link parent/child fork
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):
7413 (handle_v_requests) <vCont>: Don't call require_running.
7414 * server.h (in_queued_stop_replies): New declaration.
7416 2016-10-24 Yao Qi <yao.qi@linaro.org>
7419 * linux-aarch64-low.c (append_insns): Cast the return value to
7422 2016-10-10 Yao Qi <yao.qi@linaro.org>
7424 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7426 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7428 * target.c (target_supports_multi_process): New function, moved
7430 * target.h (target_supports_multi_process): ... here. Remove
7433 2016-10-05 Tom Tromey <tom@tromey.com>
7436 * tracepoint.c (handle_tracepoint_bkpts): Check
7437 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7439 2016-10-05 Yao Qi <yao.qi@linaro.org>
7441 * configure.srv: Update the path of arm-*.xml files.
7443 2016-10-05 Terry Guo <terry.guo@arm.com>
7444 Yao Qi <yao.qi@linaro.org>
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.
7453 2016-09-30 Yao Qi <yao.qi@linaro.org>
7456 * target.c (target_stop_and_wait): Don't call
7457 target_continue_no_signal, use resume_stop instead.
7459 2016-09-26 Yao Qi <yao.qi@linaro.org>
7461 * linux-low.c (linux_wait_1): Call debug_exit.
7463 2016-09-23 Pedro Alves <palves@redhat.com>
7465 * Makefile.in (SFILES): Add common/new-op.c.
7466 (OBS): Add common/new-op.o.
7467 (new-op.o): New rule.
7469 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7471 * .gitinore: Ignore more files.
7473 2016-09-21 Yao Qi <yao.qi@linaro.org>
7475 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7478 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7480 * server.c (start_inferior): Call target_mourn_inferior instead of
7481 mourn_inferior; pass ptid_t argument to it.
7483 (handle_target_event): Likewise.
7484 * target.c (target_mourn_inferior): New function.
7485 * target.h (mourn_inferior): Delete macro.
7487 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7489 * linux-low.c (lwp_is_stepping): New function.
7491 2016-09-06 Carl Love <cel@us.ibm.com>
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.
7497 2016-09-06 Carl Love <cel@us.ibm.com>
7499 * server.c (start_inferior): Do not call
7500 function target_post_create_inferior () if the
7501 inferior process has already exited.
7503 2016-09-05 Pedro Alves <palves@redhat.com>
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.
7512 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7515 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7516 call writing data to own_buf.
7518 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7520 * target.c (mywait): Call target_wait instead of
7522 (target_wait): New function.
7524 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7526 * server.c (start_inferior): New variable 'ptid'. Replace calls
7527 to the_target->resume by target_continue{,_no_signal}, depending
7529 * target.c (target_stop_and_wait): Call target_continue_no_signal
7530 instead of the_target->resume.
7531 (target_continue): New function.
7533 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7535 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7537 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7540 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
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.
7552 2016-08-19 Pedro Alves <palves@redhat.com>
7554 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7556 2016-08-19 Pedro Alves <palves@redhat.com>
7558 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7559 comment. Use memcpy instead of casting through unsigned long.
7561 2016-08-19 Pedro Alves <palves@redhat.com>
7563 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7564 allocating around 0x80000000.
7566 2016-08-19 Pedro Alves <palves@redhat.com>
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
7576 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7578 * configure: Regenerate.
7580 2016-08-09 Pedro Alves <palves@redhat.com>
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.
7593 2016-08-05 Pedro Alves <palves@redhat.com>
7595 * configure: Regenerate.
7597 2016-08-04 Yao Qi <yao.qi@linaro.org>
7599 * linux-low.c (regsets_fetch_inferior_registers): Check
7600 errno is ESRCH or not.
7602 2016-08-02 Yao Qi <yao.qi@linaro.org>
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.
7610 2016-07-26 Pedro Alves <palves@redhat.com>
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.
7617 2016-07-26 Pedro Alves <palves@redhat.com>
7619 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7622 2016-07-21 Tom Tromey <tom@tromey.com>
7624 * configure: Rebuild.
7626 2016-07-21 Yao Qi <yao.qi@linaro.org>
7628 * mem-break.c (find_gdb_breakpoint): Cast bp to
7629 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7631 2016-07-21 Yao Qi <yao.qi@linaro.org>
7633 * server.c (handle_v_requests): Support s and S actions
7634 if target_supports_software_single_step return true.
7636 2016-07-21 Yao Qi <yao.qi@linaro.org>
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,
7642 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7644 (proceed_one_lwp): If resume request is resume_step, install
7645 reinsert breakpoints and call maybe_hw_step.
7647 2016-07-21 Yao Qi <yao.qi@linaro.org>
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.
7654 2016-07-21 Yao Qi <yao.qi@linaro.org>
7656 * linux-low.c (linux_resume_one_thread): Call
7657 enqueue_pending_signal.
7659 2016-07-21 Yao Qi <yao.qi@linaro.org>
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
7668 2016-07-21 Yao Qi <yao.qi@linaro.org>
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.
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.
7684 2016-07-21 Yao Qi <yao.qi@linaro.org>
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
7691 * mem-break.h (clone_all_breakpoints): Update declaration.
7693 2016-07-21 Yao Qi <yao.qi@linaro.org>
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 *'.
7724 2016-07-21 Yao Qi <yao.qi@linaro.org>
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.
7732 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7734 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7736 (nios2_store_gregset): Likewise.
7738 2016-07-01 Pedro Alves <palves@redhat.com>
7739 Antoine Tremblay <antoine.tremblay@ericsson.com>
7741 * linux-low.c: Change interface to take the target lwp_info
7742 pointer directly and return void. Handle detaching from a zombie
7744 (linux_detach_lwp_callback): New function.
7745 (linux_detach): Detach from the leader thread after detaching from
7748 2016-06-28 Yao Qi <yao.qi@linaro.org>
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.
7758 2016-06-28 Yao Qi <yao.qi@linaro.org>
7760 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7761 (the_low_target): Install arm_get_syscall_trapinfo.
7763 2016-06-28 Yao Qi <yao.qi@linaro.org>
7765 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7767 (the_low_target): Install aarch64_get_syscall_trapinfo.
7769 2016-06-28 Yao Qi <yao.qi@linaro.org>
7771 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
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
7778 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
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.
7795 2016-06-17 Yao Qi <yao.qi@linaro.org>
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.
7806 2016-06-17 Yao Qi <yao.qi@linaro.org>
7808 * linux-low.c (handle_extended_wait): If the parent is doing
7809 step-over, remove the reinsert breakpoints from the forked child.
7811 2016-06-17 Yao Qi <yao.qi@linaro.org>
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.
7817 2016-06-17 Yao Qi <yao.qi@linaro.org>
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.
7824 2016-06-17 Yao Qi <yao.qi@linaro.org>
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.
7834 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7836 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7838 2016-05-17 Yao Qi <yao.qi@linaro.org>
7840 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7841 instead of find_inferior.
7843 2016-05-05 Yao Qi <yao.qi@linaro.org>
7845 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7846 Initialize res to zero.
7848 2016-05-05 Yao Qi <yao.qi@linaro.org>
7850 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7853 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
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.
7859 2016-04-28 Par Olsson <par.olsson@windriver.com>
7860 Simon Marchi <simon.marchi@ericsson.com>
7862 * tracepoint.c (write_inferior_int8): New function.
7863 (cmd_qtenable_disable): Write enable flag using
7864 write_inferior_int8.
7866 2016-04-25 Yao Qi <yao.qi@linaro.org>
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.
7872 2016-04-25 Yao Qi <yao.qi@linaro.org>
7874 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7875 return instead of error.
7877 2016-04-22 Yao Qi <yao.qi@linaro.org>
7879 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7882 2016-04-22 Yao Qi <yao.qi@linaro.org>
7884 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7885 signal when stepping over breakpoint with software single
7888 2016-04-21 Pedro Alves <palves@redhat.com>
7890 * linux-s390-low.c (s390_collect_ptrace_register)
7891 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7893 (s390_check_regset): Use void * instead of gdb_byte *.
7895 2016-04-20 Pedro Alves <palves@redhat.com>
7897 * configure: Renegerate.
7899 2016-04-20 Yao Qi <yao.qi@linaro.org>
7901 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7902 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7904 (arm_store_gregset): Likewise.
7906 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
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
7939 2016-04-18 Pedro Alves <palves@redhat.com>
7941 * configure: Regenerate.
7943 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7945 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7946 (aarch64_emit_sub): Likewise.
7948 2016-04-12 Pedro Alves <palves@redhat.com>
7950 * utils.c (prepare_to_throw_exception): Delete.
7952 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7954 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7956 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7958 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7960 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
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.
7966 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
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
7975 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7976 Marcin Kościelnicki <koriakin@0x04.net>
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.
8063 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8064 Marcin Kościelnicki <koriakin@0x04.net>
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
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.
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
8131 * linux-ppc-tdesc.h: New file.
8133 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
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.
8147 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
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.
8176 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8178 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8180 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8182 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
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.
8190 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
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.
8271 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
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.
8332 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8334 * linux-s390-low.c (s390_supports_tracepoints): New function.
8335 (struct linux_target_ops): Fill supports_tracepoints hook.
8337 2016-03-18 Yao Qi <yao.qi@linaro.org>
8339 * linux-low.c (lwp_signal_can_be_delivered): New function.
8340 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8342 2016-03-18 Yao Qi <yao.qi@linaro.org>
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.
8349 2016-03-18 Yao Qi <yao.qi@linaro.org>
8351 * linux-low.c (linux_low_filter_event): Remove redundant
8352 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8354 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8356 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8357 (struct linux_target_ops): Wire in the above.
8359 2016-03-03 Yao Qi <yao.qi@linaro.org>
8361 * linux-low.c: Update comments to start_step_over.
8363 2016-03-03 Yao Qi <yao.qi@linaro.org>
8366 * linux-low.c (handle_extended_wait): Set child suspended
8367 if event_lwp->bp_reinsert isn't zero.
8369 2016-03-02 Yao Qi <yao.qi@linaro.org>
8371 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8372 enqueue_pending_signal.
8374 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8376 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8379 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
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.
8396 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
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.
8433 * tracepoint.h (get_ipa_tdesc): New prototype.
8434 (ipa_tdesc): Remove.
8436 2016-02-24 Pedro Alves <palves@redhat.com>
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.
8446 (linux_wait_1): Update comments.
8448 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
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.
8455 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8457 * linux-s390-low.c (s390_supports_z_point_type): New function.
8458 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8460 2016-02-16 Yao Qi <yao.qi@linaro.org>
8462 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8463 PC. Get pc from regcache_read_pc.
8465 2016-02-12 Yao Qi <yao.qi@linaro.org>
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.
8471 2016-02-12 Yao Qi <yao.qi@linaro.org>
8473 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8474 arm_linux_get_next_pcs_fixup.
8476 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
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.
8488 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8489 Marcin Kościelnicki <koriakin@0x04.net>
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.
8503 2016-02-10 Yao Qi <yao.qi@linaro.org>
8505 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8507 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8509 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8511 * configure: Regenerate.
8513 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
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>:
8521 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8523 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8525 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8527 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
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.
8540 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8542 * server.c (skip_to_semicolon): Remove.
8543 (process_point_options): Use strchrnul instead of
8546 2016-01-26 Yao Qi <yao.qi@linaro.org>
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
8554 2016-01-26 Yao Qi <yao.qi@linaro.org>
8556 * linux-low.c (install_software_single_step_breakpoints): Call
8557 regcache_read_pc instead of get_pc.
8559 2016-01-26 Yao Qi <yao.qi@linaro.org>
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
8566 (disable_async_io): Don't ignore SIGIO. Block it instead.
8567 (initialize_async_io): Install SIGIO handler. Don't call
8570 2016-01-26 Yao Qi <yao.qi@linaro.org>
8572 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8573 first character is '\003', call *the_target->request_interrupt.
8575 2016-01-25 Yao Qi <yao.qi@linaro.org>
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.
8582 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8584 * gdb.trace/pending.exp: Fix expected message on continue.
8586 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
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)
8592 2016-01-21 Pedro Alves <palves@redhat.com>
8594 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8595 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8596 * configure: Regenerate.
8598 2016-01-21 Yao Qi <yao.qi@linaro.org>
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.
8605 2016-01-18 Yao Qi <yao.qi@linaro.org>
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):
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
8615 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8616 (the_low_target): Use linux_get_pc_64bit and
8619 2016-01-18 Yao Qi <yao.qi@linaro.org>
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
8625 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8626 (the_low_target): Use linux_get_pc_32bit and
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
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
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
8642 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8643 (the_low_target): Use linux_get_pc_32bit and
8645 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8646 (the_low_target): Use linux_get_pc_32bit and
8648 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8649 (the_low_target): Use linux_get_pc_32bit and
8651 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8652 (the_low_target): Use linux_get_pc_32bit and
8655 2016-01-18 Gary Benson <gbenson@redhat.com>
8657 * configure.ac (AC_FUNC_FORK): New check.
8658 * config.in: Regenerate.
8659 * configure: Likewise.
8661 2016-01-14 Yao Qi <yao.qi@linaro.org>
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.
8668 2016-01-12 Josh Stone <jistone@redhat.com>
8669 Philippe Waroquiers <philippe.waroquiers@skynet.be>
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.
8698 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8700 * acinclude.m4: Include new ../warning.m4 file.
8701 * configure: Regenerated.
8702 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8704 2016-01-12 Mike Frysinger <vapier@gentoo.org>
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.
8717 2016-01-12 Pedro Alves <palves@redhat.com>
8719 Remove use of the registered trademark symbol throughout.
8721 2016-01-08 Yao Qi <yao.qi@linaro.org>
8723 * remote-utils.c (getpkt): If c is '\003', call target hook
8726 2016-01-06 Yao Qi <yao.qi@linaro.org>
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.
8740 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8742 * gdbreplay.c (gdbreplay_version): Change copyright year in
8744 * server.c (gdbserver_version): Likewise.
8746 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8748 * server.c (crc32_table): Delete.
8749 (crc32): Use libiberty's xcrc32 function.
8751 2015-12-22 Joel Brobecker <brobecker@adacore.com>
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.
8757 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8759 * target.c (thread_search_callback): Add check that
8760 the thread_stopped target callback is not NULL before
8763 2015-12-21 Yao Qi <yao.qi@linaro.org>
8765 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8768 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8770 * server.c (handle_query): Call target_supports_software_single_step.
8772 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8774 * linux-low.c (single_step): New function.
8775 (linux_resume_one_lwp_throw): Call single_step.
8776 (start_step_over): Likewise.
8778 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
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,
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>:
8811 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8812 * server.h: Include gdb_vecs.h.
8814 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
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
8821 (regcache_raw_read_unsigned): New function.
8822 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8823 register_status enum.
8825 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
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
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.
8843 2015-12-17 Pedro Alves <palves@redhat.com>
8845 * linux-low.c (linux_kill_one_lwp): Remove references to
8847 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8849 (linux_init_signals): Delete.
8850 (initialize_low): Adjust.
8851 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8853 2015-12-16 Pedro Alves <palves@redhat.com>
8855 * configure.ac (compiler warning flags): When testing a
8856 -Wno-foo option, check whether -Wfoo works instead.
8857 * configure: Regenerate.
8859 2015-12-11 Don Breazeal <donb@codesourcery.com>
8861 * server.c (process_serial_event): Don't exit from gdbserver
8862 in remote mode if there are still active inferiors.
8864 2015-12-11 Yao Qi <yao.qi@linaro.org>
8866 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8867 arm_breakpoint_at if the process is 32-bit.
8869 2015-12-11 Yao Qi <yao.qi@linaro.org>
8871 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8874 2015-12-07 Yao Qi <yao.qi@linaro.org>
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.
8912 2015-08-04 Yao Qi <yao.qi@linaro.org>
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.
8919 2015-12-04 Josh Stone <jistone@redhat.com>
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.
8937 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8939 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8941 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
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.
8956 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
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
8972 (remove_thread_event_breakpoints): Remove function.
8973 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8975 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8977 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
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>:
8985 * linux-crisv32-low.c (cris_supports_hardware_single_step):
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>:
9007 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9008 (struct linux_target_ops) <tile_supports_hardware_single_step>:
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):
9014 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9015 * target.h (struct target_ops): <supports_software_single_step>:
9017 (target_supports_software_single_step): New macro.
9019 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
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.
9025 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
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>:
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.
9040 2015-11-30 Pedro Alves <palves@redhat.com>
9042 * linux-low.c (linux_resume): Wake up the event loop before
9045 2015-11-30 Pedro Alves <palves@redhat.com>
9047 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9049 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
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.
9058 2015-11-30 Pedro Alves <palves@redhat.com>
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.
9074 2015-11-30 Pedro Alves <palves@redhat.com>
9076 * linux-low.c (thread_still_has_status_pending_p): Don't check
9078 (lwp_resumed): New function.
9079 (status_pending_p_callback): Return early if the LWP is not
9080 supposed to be resumed.
9082 2015-11-30 Pedro Alves <palves@redhat.com>
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.
9103 2015-11-30 Pedro Alves <palves@redhat.com>
9105 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9106 the thread's last_resume_kind was resume_stop.
9108 2015-11-30 Pedro Alves <palves@redhat.com>
9110 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9113 2015-11-30 Pedro Alves <palves@redhat.com>
9115 * server.c (handle_v_requests): Handle vCtrlC.
9117 2015-11-30 Pedro Alves <palves@redhat.com>
9119 * gdbthread.h (find_any_thread_of_pid): Declare.
9120 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9122 * server.c (handle_query): If current_thread is NULL, look for
9123 another thread of the selected process.
9125 2015-11-26 Daniel Colascione <dancol@dancol.org>
9126 Simon Marchi <simon.marchi@ericsson.com>
9128 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9129 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9131 * target.h (struct target_ops) <thread_name>: New field.
9132 (target_thread_name): New macro.
9134 2015-11-23 Joel Brobecker <brobecker@adacore.com>
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.
9144 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9146 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9147 and Elf64_auxv_t if the target is Android.
9149 2015-11-22 Doug Evans <xdje42@gmail.com>
9151 * target.h: #include <sys/types.h>.
9153 2015-11-19 Pedro Alves <palves@redhat.com>
9155 * linux-low.c (linux_process_qsupported): Change prototype.
9157 * linux-low.h (struct linux_target_ops) <process_qsupported>:
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
9164 * target.h (struct target_ops) <process_qsupported>: Change
9166 (target_process_qsupported): Adjust.
9168 2015-11-19 Pedro Alves <palves@redhat.com>
9170 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9172 * configure: Regenerate.
9174 2015-11-19 Pedro Alves <palves@redhat.com>
9176 * configure: Regenerate.
9178 2015-11-19 Yao Qi <yao.qi@linaro.org>
9180 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9183 2015-11-19 Yao Qi <yao.qi@linaro.org>
9185 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9186 (struct aarch64_operand): Move enum out.
9188 2015-11-19 Yao Qi <yao.qi@linaro.org>
9190 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9191 struct user_fpsimd_state *.
9192 (aarch64_store_fpregset): Likewise.
9194 2015-11-19 Yao Qi <yao.qi@linaro.org>
9196 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9197 struct user_pt_regs *.
9198 (aarch64_store_gregset): Likewise.
9200 2015-11-18 Pedro Alves <palves@redhat.com>
9202 * Makefile.in (all_object_files): Add $IPA_OBJS.
9204 2015-11-17 Pedro Alves <palves@redhat.com>
9206 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9207 GDB_SIGNAL_0 and gdb_signal_to_string.
9209 2015-11-17 Pedro Alves <palves@redhat.com>
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.
9217 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
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.
9224 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9226 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9229 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9231 * linux-mips-low.c (mips_linux_new_thread): Change type of
9232 watch_type to enum target_hw_bp_type.
9234 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9236 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9237 Change return type to arm_hwbp_type.
9239 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
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.
9246 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9248 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9250 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
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.
9260 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9262 * linux-ppc-low.c (ppc_usrregs_info): Remove
9263 forward-declaration.
9264 (ppc_arch_setup): Move lower in file.
9266 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9268 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9269 (ps_pdwrite): Likewise.
9271 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9273 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9274 to after assert checks.
9276 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9278 * proc-service.c (ps_pdread): Add/adjust casts.
9279 (ps_pdwrite): Add/adjust casts.
9281 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9283 * server.c (handle_search_memory_1): Cast return value of
9286 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9288 * server.c (write_qxfer_response): Change type of data to
9291 2015-10-29 Pedro Alves <palves@redhat.com>
9293 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9295 2015-10-29 Pedro Alves <palves@redhat.com>
9297 * tracepoint.c (clear_installed_tracepoints): Add casts.
9299 2015-10-29 Pedro Alves <palves@redhat.com>
9301 * server.c (handle_v_cont, process_serial_event): Add enum
9302 gdb_signal casts to signal parsing code.
9304 2015-10-29 Pedro Alves <palves@redhat.com>
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.
9322 2015-10-29 Pedro Alves <palves@redhat.com>
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.
9340 2015-10-26 Doug Evans <dje@google.com>
9342 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9344 2015-10-26 Doug Evans <dje@google.com>
9346 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9348 2015-10-26 Doug Evans <dje@google.com>
9350 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9352 (attach_thread, find_new_threads_callback): Ditto.
9354 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9356 * mem-break.h (set_breakpoint_data): Remove.
9358 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
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.
9370 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
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.
9377 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
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.
9383 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9385 * linux-arm-low.c (arm_supports_z_point_type): Add software
9388 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
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.
9394 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
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.
9403 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9405 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
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.
9436 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
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>:
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.
9527 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9529 * linux-cris-low.c (cris_get_pc): Remove void arg.
9531 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9533 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9536 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
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.
9543 2015-10-15 Yao Qi <yao.qi@linaro.org>
9545 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9547 (aarch64_remove_point): Likewise.
9548 * regcache.c (regcache_register_size): New function.
9550 2015-10-12 Yao Qi <yao.qi@linaro.org>
9552 * linux-aarch64-low.c: Update all callers as emit_load_store
9553 is renamed to aarch64_emit_load_store.
9555 2015-10-12 Yao Qi <yao.qi@linaro.org>
9557 * linux-aarch64-low.c: Update all callers of function renaming
9558 from emit_insn to aarch64_emit_insn.
9560 2015-10-12 Yao Qi <yao.qi@linaro.org>
9562 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9563 arch/aarch64-insn.h.
9564 (struct aarch64_memory_operand): 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.
9572 2015-10-12 Yao Qi <yao.qi@linaro.org>
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.
9580 2015-10-12 Yao Qi <yao.qi@linaro.org>
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.
9593 (aarch64_relocate_instruction): Use visitor.
9595 2015-10-12 Yao Qi <yao.qi@linaro.org>
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.
9602 2015-10-12 Yao Qi <yao.qi@linaro.org>
9604 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9605 argument insn. Remove local variable insn. Don't call
9607 (aarch64_install_fast_tracepoint_jump_pad): Call
9610 2015-09-30 Yao Qi <yao.qi@linaro.org>
9612 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9613 (emit_load_store_pair): Likewise.
9615 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
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.
9633 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9635 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
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.
9681 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
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>,
9687 (enum aarch64_condition_codes): New enum.
9688 (w0): New static global.
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.
9768 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9770 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9771 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9773 * linux-aarch64-ipa.c: New file.
9774 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.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.
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.
9835 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9837 * Makefile.in (aarch64-insn.o): New rule.
9838 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9840 2015-09-21 Yao Qi <yao.qi@linaro.org>
9842 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9844 2015-09-21 Yao Qi <yao.qi@linaro.org>
9846 * tracepoint.c (max_jump_pad_size): Remove.
9848 2015-09-18 Yao Qi <yao.qi@linaro.org>
9850 * linux-aarch64-low.c: Don't include sys/uio.h.
9851 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9853 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9855 * tracepoint.c (eval_result_type): Change prototype.
9856 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9858 2015-09-15 Pedro Alves <palves@redhat.com>
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.
9864 2015-09-15 Pedro Alves <palves@redhat.com>
9867 * remote-utils.c (prepare_resume_reply): Merge
9868 TARGET_WAITKIND_VFORK_DONE switch case with the
9869 TARGET_WAITKIND_FORKED case.
9871 2015-09-15 Yao Qi <yao.qi@linaro.org>
9873 * server.c (handle_query): Check string comparison using
9874 "else if" instead of "if".
9876 2015-09-15 Yao Qi <yao.qi@linaro.org>
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.
9885 2015-09-15 Yao Qi <yao.qi@linaro.org>
9887 * linux-low.c (linux_supports_conditional_breakpoints): Rename
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.
9905 2015-09-15 Yao Qi <yao.qi@linaro.org>
9907 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9909 (struct linux_target_ops the_low_target): Install
9910 aarch64_linux_siginfo_fixup.
9912 2015-09-11 Don Breazeal <donb@codesourcery.com>
9913 Luis Machado <lgustavo@codesourcery.com>
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
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
9941 (target_supports_exec_events): New macro.
9942 * win32-low.c (win32_target_ops) <supports_exec_events>:
9943 Initialize new member.
9945 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9947 * linux-low.c (linux_low_enable_btrace): Remove.
9948 (linux_target_ops): Replace linux_low_enable_btrace with
9949 linux_enable_btrace.
9951 2015-09-03 Yao Qi <yao.qi@linaro.org>
9953 * linux-aarch64-low.c (aarch64_insert_point): Call
9954 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9957 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9959 * linux-low.c (check_stopped_by_breakpoint): Use
9960 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9962 2015-08-27 Pedro Alves <palves@redhat.com>
9964 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9966 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9968 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9969 the XNEW-family equivalent.
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.
10022 2015-08-25 Yao Qi <yao.qi@linaro.org>
10024 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10026 2015-08-25 Yao Qi <yao.qi@linaro.org>
10028 * Makefile.in (aarch64-linux.o): New rule.
10029 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
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.
10035 2015-08-25 Yao Qi <yao.qi@linaro.org>
10037 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10038 lwp_arch_private_info and ptid_of_lwp.
10040 2015-08-25 Yao Qi <yao.qi@linaro.org>
10042 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10043 Find proc_info by find_process_pid. All callers updated.
10045 2015-08-25 Yao Qi <yao.qi@linaro.org>
10047 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10049 (debug_reg_change_callback): Remove.
10050 (aarch64_notify_debug_reg_change): Remove.
10052 2015-08-25 Yao Qi <yao.qi@linaro.org>
10054 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10055 Call current_lwp_ptid.
10057 2015-08-25 Yao Qi <yao.qi@linaro.org>
10059 * linux-aarch64-low.c (debug_reg_change_callback): Use
10062 2015-08-25 Yao Qi <yao.qi@linaro.org>
10064 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10066 2015-08-25 Yao Qi <yao.qi@linaro.org>
10068 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10070 2015-08-25 Yao Qi <yao.qi@linaro.org>
10072 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10075 2015-08-25 Yao Qi <yao.qi@linaro.org>
10077 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
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.
10085 2015-08-24 Pedro Alves <palves@redhat.com>
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.
10092 2015-08-24 Pedro Alves <palves@redhat.com>
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.
10099 2015-08-24 Pedro Alves <palves@redhat.com>
10101 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10104 2015-08-21 Pedro Alves <palves@redhat.com>
10106 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10107 instead of literal 1.
10109 2015-08-21 Pedro Alves <palves@redhat.com>
10111 * tdesc.c (default_description): Explicitly zero-initialize.
10113 2015-08-21 Pedro Alves <palves@redhat.com>
10116 * inferiors.c (remove_thread): Discard any pending stop reply for
10118 * server.c (remove_all_on_match_pid): Rename to ...
10119 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10121 (discard_queued_stop_replies): Change parameter to a ptid. Now
10123 (handle_v_kill, kill_inferior_callback, captured_main)
10124 (process_serial_event): Adjust.
10125 * server.h (discard_queued_stop_replies): Declare.
10127 2015-08-21 Pedro Alves <palves@redhat.com>
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
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
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.
10158 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10160 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10161 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10163 (ps_get_thread_area): New function.
10165 2015-08-19 Gary Benson <gbenson@redhat.com>
10167 * hostio.c (handle_pread): Do not attempt to read more data
10168 than hostio_reply_with_data can fit in a packet.
10170 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10172 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10174 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10176 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10178 2015-08-06 Pedro Alves <palves@redhat.com>
10180 * tracepoint.c (expr_eval_result): Now an int.
10182 2015-08-06 Pedro Alves <palves@redhat.com>
10184 * gdbthread.h (struct regcache): Forward declare.
10185 (struct thread_info) <regcache_data>: Now a struct regcache
10187 * inferiors.c (inferior_regcache_data)
10188 (set_inferior_regcache_data): Now work with struct regcache
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
10197 2015-08-06 Pedro Alves <palves@redhat.com>
10199 * server.c (captured_main): On error, print the exception message
10200 to stderr, and if run_once is set, throw a quit.
10202 2015-08-06 Pedro Alves <palves@redhat.com>
10204 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10205 the current thread.
10207 2015-08-06 Pedro Alves <palves@redhat.com>
10209 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10210 reading beyond the passed in buffer length.
10212 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10214 * tracepoint.c (symbol_list) <required>: Remove.
10216 2015-08-06 Pedro Alves <palves@redhat.com>
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
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
10240 2015-08-06 Pedro Alves <palves@redhat.com>
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
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
10254 2015-08-06 Pedro Alves <palves@redhat.com>
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.
10260 2015-08-04 Yao Qi <yao.qi@linaro.org>
10262 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10263 if current_thread is 32 bit.
10265 2015-08-04 Yao Qi <yao.qi@linaro.org>
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.
10272 2015-08-04 Yao Qi <yao.qi@linaro.org>
10274 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10275 both aarch64 and aarch32.
10276 (aarch64_set_pc): Likewise.
10278 2015-08-04 Yao Qi <yao.qi@linaro.org>
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.
10291 2015-08-04 Yao Qi <yao.qi@linaro.org>
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.
10309 2015-08-04 Yao Qi <yao.qi@linaro.org>
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.
10315 2015-08-04 Pedro Alves <palves@redhat.com>
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
10320 (disable_thread_event_reporting): Cast result of dlsym to
10321 destination function pointer type.
10322 (thread_db_mourn): Use td_ta_delete_ftype.
10324 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10326 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10328 (CDX_BREAKPOINT): Define for R2.
10329 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10330 (the_low_target): Add comments.
10332 2015-07-30 Yao Qi <yao.qi@linaro.org>
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.
10338 2015-07-30 Yao Qi <yao.qi@linaro.org>
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.
10346 2015-07-30 Yao Qi <yao.qi@linaro.org>
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.
10352 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10354 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10355 ptrace's 4th parameter.
10357 2015-07-27 Yao Qi <yao.qi@linaro.org>
10359 * configure.srv (case aarch64*-*-linux*): Don't set
10362 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10364 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
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.
10379 2015-07-24 Pedro Alves <palves@redhat.com>
10381 * config.in: Regenerate.
10382 * configure: Regenerate.
10384 2015-07-24 Pedro Alves <palves@redhat.com>
10386 * acinclude.m4: Include ../ptrace.m4.
10387 * configure.ac: Call GDB_AC_PTRACE.
10388 * config.in, configure: Regenerate.
10390 2015-07-24 Yao Qi <yao.qi@linaro.org>
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.
10398 2015-07-24 Yao Qi <yao.qi@linaro.org>
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.
10417 2015-07-24 Yao Qi <yao.qi@linaro.org>
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.
10424 2015-07-24 Yao Qi <yao.qi@linaro.org>
10426 * server.c (start_inferior): Code refactor.
10428 2015-07-24 Yao Qi <yao.qi@linaro.org>
10430 * server.c (process_serial_event): Set general_thread.
10432 2015-07-21 Yao Qi <yao.qi@linaro.org>
10434 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10435 aarch64_linux_get_debug_reg_capacity.
10437 2015-07-17 Yao Qi <yao.qi@linaro.org>
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.
10467 2015-07-17 Yao Qi <yao.qi@linaro.org>
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.
10477 2015-07-17 Yao Qi <yao.qi@linaro.org>
10479 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10481 (aarch64_handle_unaligned_watchpoint): Likewise.
10483 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
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
10490 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10491 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
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.
10506 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10507 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
10513 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10515 * Makefile.in (OBS): Add gdb_regex.o.
10516 (gdb_regex.o): New.
10517 * config.in: Rebuilt.
10518 * configure: Rebuilt.
10520 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10521 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
10528 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10530 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10531 function, return 1.
10532 (the_low_target): Install it.
10534 2015-07-14 Pedro Alves <palves@redhat.com>
10536 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10537 Instead, ignore ECHILD, and throw an error for other errnos.
10539 2015-07-10 Pedro Alves <palves@redhat.com>
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.
10545 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
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.
10552 2015-07-09 Yao Qi <yao.qi@linaro.org>
10554 * linux-aarch64-low.c (aarch64_regmap): Remove.
10555 (aarch64_usrregs_info): Remove.
10556 (regs_info): Set field usrregs to NULL.
10558 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
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".
10568 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10570 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10573 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
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
10580 2015-06-24 Gary Benson <gbenson@redhat.com>
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.
10590 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10592 * server.c (write_qxfer_response): Update call to
10593 remote_escape_output.
10595 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10596 Jan Kratochvil <jan.kratochvil@redhat.com>
10598 Merge multiple hex conversions.
10599 * gdbreplay.c (tohex): Rename to 'fromhex'.
10600 (logchar): Use fromhex.
10602 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10604 * server.c (handle_qxfer_libraries): Set `version' attribute for
10607 2015-06-10 Gary Benson <gbenson@redhat.com>
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
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.
10627 2015-06-10 Gary Benson <gbenson@redhat.com>
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.
10636 2015-06-09 Gary Benson <gbenson@redhat.com>
10638 * hostio.c (handle_open): Process mode argument with
10639 fileio_to_host_mode.
10641 2015-06-01 Yao Qi <yao.qi@linaro.org>
10643 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10644 * linux-x86-low.c: Likewise.
10646 2015-05-28 Don Breazeal <donb@codesourcery.com>
10648 * linux-low.c (handle_extended_wait): Initialize
10649 thread_info.last_resume_kind for new fork children.
10651 2015-05-15 Pedro Alves <palves@redhat.com>
10653 * target.h (target_handle_new_gdb_connection): Rewrite using if
10654 wrapped in do/while.
10656 2015-05-14 Joel Brobecker <brobecker@adacore.com>
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):
10663 2015-05-12 Don Breazeal <donb@codesourcery.com>
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
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
10674 2015-05-12 Don Breazeal <donb@codesourcery.com>
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
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.
10691 2015-05-12 Don Breazeal <donb@codesourcery.com>
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>:
10715 (target_handle_new_gdb_connection): New macro.
10716 * win32-low.c: Initialize new structure member.
10718 2015-05-12 Don Breazeal <donb@codesourcery.com>
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.
10726 2015-05-12 Don Breazeal <donb@codesourcery.com>
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
10734 * server.c (report_fork_events, report_vfork_events):
10736 (handle_query): Add new features to qSupported packet and
10738 (captured_main): Initialize new global variables.
10739 * target.h (struct target_ops) <supports_fork_events>:
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
10747 2015-05-12 Gary Benson <gbenson@redhat.com>
10749 * server.c (handle_qxfer_exec_file): Use current process
10752 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
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.
10759 2015-05-08 Yao Qi <yao.qi@linaro.org>
10761 * linux-low.c (linux_supports_conditional_breakpoints): New
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>:
10773 (target_supports_conditional_breakpoints): New macro.
10775 2015-05-06 Pedro Alves <palves@redhat.com>
10778 * server.c (start_inferior): If the process exits, mourn it.
10780 2015-04-21 Gary Benson <gbenson@redhat.com>
10782 * hostio.c (fileio_open_flags_to_host): Factored out to
10783 fileio_to_host_openflags in common/fileio.c. Single use
10786 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10788 * linux-xtensa-low.c (xtensa_fill_gregset)
10789 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10792 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10794 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10795 (regs_info): Replace usrregs pointer with NULL.
10797 2015-04-17 Gary Benson <gbenson@redhat.com>
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.
10805 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10807 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10809 2015-04-09 Gary Benson <gbenson@redhat.com>
10811 * hostio-errno.c (errno_to_fileio_error): Remove function.
10812 Update caller to use remote_fileio_to_fio_error.
10814 2015-04-09 Yao Qi <yao.qi@linaro.org>
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
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.
10824 2015-04-01 Pedro Alves <palves@redhat.com>
10825 Cleber Rosa <crosa@redhat.com>
10827 * server.c (gdbserver_usage): Reorganize and extend the usage
10830 2015-03-24 Pedro Alves <palves@redhat.com>
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.
10837 2015-03-24 Gary Benson <gbenson@redhat.com>
10839 * linux-x86-low.c (x86_linux_new_thread): Moved to
10841 (x86_linux_prepare_to_resume): Likewise.
10843 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
10859 2015-03-24 Gary Benson <gbenson@redhat.com>
10861 * linux-x86-low.c (x86_linux_update_debug_registers):
10862 New function, factored out from...
10863 (x86_linux_prepare_to_resume): ...this.
10865 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
10877 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
10883 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
10897 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
10911 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
10920 2015-03-24 Gary Benson <gbenson@redhat.com>
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
10930 2015-03-24 Gary Benson <gbenson@redhat.com>
10932 * linux-low.h (linux_stop_lwp): Remove declaration.
10934 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
10946 2015-03-24 Gary Benson <gbenson@redhat.com>
10948 * linux-x86-low.c (x86_debug_reg_state): New function.
10949 (x86_linux_prepare_to_resume): Use the above.
10951 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
10959 2015-03-20 Pedro Alves <palves@redhat.com>
10961 * tracepoint.c (cmd_qtstatus): Make "str" const.
10963 2015-03-20 Pedro Alves <palves@redhat.com>
10965 * server.c (handle_general_set): Make "req_str" const.
10967 2015-03-19 Pedro Alves <palves@redhat.com>
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
10977 2015-03-19 Pedro Alves <palves@redhat.com>
10979 * linux-low.c (count_events_callback, select_event_lwp_callback):
10980 No longer check whether the thread has resume_stop as last resume
10983 2015-03-19 Pedro Alves <palves@redhat.com>
10985 * linux-low.c (count_events_callback, select_event_lwp_callback):
10986 Use the lwp's status_pending_p field, not the thread's.
10988 2015-03-19 Pedro Alves <palves@redhat.com>
10990 * linux-low.c (select_event_lwp_callback): Update comments to
10991 no longer mention SIGTRAP.
10993 2015-03-18 Gary Benson <gbenson@redhat.com>
10995 * server.c (handle_query): Do not report vFile:fstat as supported.
10997 2015-03-11 Gary Benson <gbenson@redhat.com>
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.
11005 2015-03-11 Gary Benson <gbenson@redhat.com>
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.
11015 2015-03-09 Pedro Alves <palves@redhat.com>
11017 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11018 'struct sockaddr' pointer in 'accept' call.
11020 2015-03-09 Pedro Alves <palves@redhat.com>
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>
11032 (init_named_socket, gdb_agent_helper_thread): Use union
11035 2015-03-07 Pedro Alves <palves@redhat.com>
11037 * configure.ac (build_warnings): Move
11038 -Wdeclaration-after-statement to the C-specific set.
11039 * configure: Regenerate.
11041 2015-03-07 Pedro Alves <palves@redhat.com>
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>
11051 (init_named_socket, gdb_agent_helper_thread): Use union
11054 2015-03-07 Pedro Alves <palves@redhat.com>
11056 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11059 2015-03-06 Yao Qi <yao.qi@linaro.org>
11061 * linux-aarch64-low.c (aarch64_insert_point): Use
11062 show_debug_regs as a boolean.
11063 (aarch64_remove_point): Likewise.
11065 2015-03-05 Pedro Alves <palves@redhat.com>
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.
11074 2015-03-04 Pedro Alves <palves@redhat.com>
11076 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11077 Decide whether a breakpoint triggered based on the SIGTRAP's
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.
11081 (linux_low_filter_event): Check for breakpoints before checking
11083 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
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.
11091 2015-03-04 Pedro Alves <palves@redhat.com>
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.
11106 2015-03-04 Pedro Alves <palves@redhat.com>
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.
11118 2015-03-04 Yao Qi <yao.qi@linaro.org>
11120 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11122 2015-03-03 Gary Benson <gbenson@redhat.com>
11124 * hostio.c (handle_vFile): Fix prefix lengths.
11126 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11128 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11131 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
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
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
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.
11157 2015-03-01 Pedro Alves <palves@redhat.com>
11159 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11162 2015-02-27 Pedro Alves <palves@redhat.com>
11164 * linux-x86-low.c (u_debugreg_offset): New function.
11165 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11167 2015-02-27 Pedro Alves <palves@redhat.com>
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.
11178 2015-02-27 Pedro Alves <palves@redhat.com>
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):
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.
11229 2015-02-27 Tom Tromey <tromey@redhat.com>
11230 Pedro Alves <palves@redhat.com>
11232 Rename symbols whose names are reserved C++ keywords throughout.
11234 2015-02-27 Pedro Alves <palves@redhat.com>
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.
11251 2015-02-27 Pedro Alves <palves@redhat.com>
11253 * acinclude.m4: Include libiberty.m4.
11254 * configure.ac: Call libiberty_INIT.
11255 * config.in, configure: Regenerate.
11257 2015-02-26 Pedro Alves <palves@redhat.com>
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.
11264 2015-02-23 Pedro Alves <palves@redhat.com>
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.
11272 2015-02-23 Pedro Alves <palves@redhat.com>
11274 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11276 (x86_fill_gregset, x86_store_gregset): Use it when handling
11279 2015-02-20 Pedro Alves <palves@redhat.com>
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.
11285 2015-02-20 Pedro Alves <palves@redhat.com>
11287 * linux-low.c (status_pending_p_callback): Use ptid_match.
11289 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
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.
11296 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11298 PR breakpoints/15956
11299 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11301 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
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.
11308 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
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 ¤t_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.
11325 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
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.
11335 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
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.
11344 2015-02-06 Pedro Alves <palves@redhat.com>
11346 * thread-db.c (find_new_threads_callback): Add debug output.
11348 2015-02-04 Pedro Alves <palves@redhat.com>
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.
11354 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
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.
11365 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
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.
11373 2015-01-14 Yao Qi <yao@codesourcery.com>
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
11384 2015-01-14 Yao Qi <yao@codesourcery.com>
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.
11394 2015-01-10 Joel Brobecker <brobecker@adacore.com>
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.
11400 2015-01-09 Pedro Alves <palves@redhat.com>
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
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):
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.
11455 2015-01-09 Pedro Alves <palves@redhat.com>
11457 * thread-db.c (find_new_threads_callback): Ignore thread if the
11458 kernel thread ID is -1.
11460 2015-01-09 Pedro Alves <palves@redhat.com>
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.
11470 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11472 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11473 * server.c (gdbserver_version): Likewise.
11475 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
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
11482 2014-12-16 Joel Brobecker <brobecker@adacore.com>
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.
11488 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
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.
11497 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11499 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11500 Remove FIXME comment about assumption about N.
11502 2014-12-13 Joel Brobecker <brobecker@adacore.com>
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.
11508 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
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.
11515 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
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.
11524 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
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.
11531 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11533 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11534 while-loop as for-loop.
11535 (regsets_store_inferior_registers): Likewise.
11537 2014-11-28 Yao Qi <yao@codesourcery.com>
11539 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11540 * config.in, configure: Re-generate.
11541 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11544 2014-11-21 Yao Qi <yao@codesourcery.com>
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.
11554 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11556 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11557 corresponding ERRNO check in same block.
11559 2014-11-12 Pedro Alves <palves@redhat.com>
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.
11566 2014-11-12 Pedro Alves <palves@redhat.com>
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.
11571 2014-11-12 Pedro Alves <palves@redhat.com>
11573 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11574 the process group instead of to a specific LWP.
11576 2014-10-15 Pedro Alves <palves@redhat.com>
11579 * win32-arm-low.c (arm_set_thread_context): Remove current_event
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
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
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
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
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.
11617 2014-10-08 Gary Benson <gbenson@redhat.com>
11619 * server.h: Do not include common-exceptions.h.
11621 2014-10-08 Gary Benson <gbenson@redhat.com>
11623 * server.h: Do not include cleanups.h.
11625 2014-09-30 James Hogan <james.hogan@imgtec.com>
11627 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11628 mips64-dsp-linux.c.
11630 2014-09-23 Yao Qi <yao@codesourcery.com>
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.
11638 2014-09-19 Don Breazeal <donb@codesourcery.com>
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.
11645 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11647 * Makefile.in (CPPFLAGS): Define.
11648 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11649 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11651 2014-09-16 Gary Benson <gbenson@redhat.com>
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
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
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
11680 (handle_serial_event): Likewise.
11681 (handle_target_event): Likewise.
11683 2014-09-12 Tom Tromey <tromey@redhat.com>
11684 Gary Benson <gbenson@redhat.com>
11686 * regcache.h: Include common-regcache.h.
11687 (regcache_read_pc): Don't declare.
11688 * regcache.c (get_thread_regcache_for_ptid): New function.
11690 2014-09-11 Tom Tromey <tromey@redhat.com>
11691 Gary Benson <gbenson@redhat.com>
11693 * symbol.c: New file.
11694 * Makefile.in (SFILES): Add symbol.c.
11695 (OBS): Add symbol.o.
11697 2014-09-11 Gary Benson <gbenson@redhat.com>
11699 * target.c (target_stop_ptid, target_continue_ptid): New
11702 2014-09-11 Tom Tromey <tromey@redhat.com>
11703 Gary Benson <gbenson@redhat.com>
11705 * target.h: Include target/target.h.
11706 * target.c (target_read_memory, target_read_uint32)
11707 (target_write_memory): New functions.
11709 2014-09-11 Gary Benson <gbenson@redhat.com>
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.
11717 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11719 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11720 endianness into account.
11721 (ppc_supply_ptrace_register): Likewise.
11723 2014-09-03 James Hogan <james.hogan@imgtec.com>
11725 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11726 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11728 2014-09-03 Gary Benson <gbenson@redhat.com>
11730 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11731 ALL_DEBUG_ADDRESS_REGISTERS.
11733 2014-09-02 Gary Benson <gbenson@redhat.com>
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.
11742 2014-09-02 Gary Benson <gbenson@redhat.com>
11744 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11745 (x86_linux_new_thread): Likewise.
11747 2014-08-29 Gary Benson <gbenson@redhat.com>
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.
11760 2014-08-29 Gary Benson <gbenson@redhat.com>
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.
11767 2014-08-29 Gary Benson <gbenson@redhat.com>
11769 * config.in: Regenerate.
11770 * configure: Likewise.
11772 2014-08-29 Gary Benson <gbenson@redhat.com>
11774 * Makefile.in (SFILES): Add common/cleanups.c.
11776 (cleanups.o): New rule.
11778 2014-08-29 Gary Benson <gbenson@redhat.com>
11780 * utils.c (internal_vwarning): New function.
11782 2014-08-28 Gary Benson <gbenson@redhat.com>
11784 * utils.h (fatal): Remove declaration.
11785 * utils.c (fatal): Remove function.
11787 2014-08-28 Gary Benson <gbenson@redhat.com>
11789 * tracepoint.c (gdb_agent_init): Replace fatal with
11791 (initialize_tracepoint): Likewise.
11793 2014-08-28 Gary Benson <gbenson@redhat.com>
11795 * remote-utils.c (remote_prepare): Replace fatal with error.
11797 2014-08-28 Gary Benson <gbenson@redhat.com>
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.
11803 2014-08-28 Gary Benson <gbenson@redhat.com>
11805 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11807 (i386_dr_low_get_addr): Remove vague comment.
11808 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11811 2014-08-28 Gary Benson <gbenson@redhat.com>
11813 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11814 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11816 (linux_resume_one_lwp): Likewise.
11817 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
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
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.
11841 2014-08-19 Tom Tromey <tromey@redhat.com>
11842 Gary Benson <gbenson@redhat.com>
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.
11851 2014-08-19 Gary Benson <gbenson@redhat.com>
11853 * utils.h: Do not include print-utils.h.
11855 2014-08-19 Tom Tromey <tromey@redhat.com>
11856 Gary Benson <gbenson@redhat.com>
11858 * server.h: Add static assertion.
11859 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11861 2014-08-19 Tom Tromey <tromey@redhat.com>
11862 Gary Benson <gbenson@redhat.com>
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.
11877 2014-08-07 Gary Benson <gbenson@redhat.com>
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.
11891 2014-08-07 Gary Benson <gbenson@redhat.com>
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.
11901 2014-08-07 Gary Benson <gbenson@redhat.com>
11903 * server.h: Do not include gdb_assert.h.
11905 2014-08-07 Gary Benson <gbenson@redhat.com>
11907 * server.h: Do not include common-utils.h.
11909 2014-08-07 Gary Benson <gbenson@redhat.com>
11911 * server.h: Do not include ptid.h.
11912 * notif.h: Likewise.
11914 2014-08-07 Gary Benson <gbenson@redhat.com>
11916 * server.h: Do not include gdb_locale.h.
11918 2014-08-07 Gary Benson <gbenson@redhat.com>
11920 * server.h: Do not include gdb/signals.h.
11921 * win32-low.c: Likewise.
11923 2014-08-07 Gary Benson <gbenson@redhat.com>
11925 * server.h: Do not include pathmax.h.
11927 2014-08-07 Gary Benson <gbenson@redhat.com>
11929 * server.h: Do not include libiberty.h.
11930 * linux-bfin-low.c: Likewise.
11932 2014-08-07 Gary Benson <gbenson@redhat.com>
11934 * server.h: Do not include ansidecl.h.
11936 2014-08-07 Gary Benson <gbenson@redhat.com>
11938 * linux-x86-low.c: Do not include stddef.h.
11939 * lynx-ppc-low.c: Likewise.
11940 * tracepoint.c: Likewise.
11942 2014-08-07 Gary Benson <gbenson@redhat.com>
11944 * server.h: Do not include stdarg.h.
11945 * nto-low.c: Likewise.
11947 2014-08-07 Gary Benson <gbenson@redhat.com>
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.
11957 2014-08-07 Gary Benson <gbenson@redhat.com>
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.
11966 2014-08-06 Gary Benson <gbenson@redhat.com>
11968 * regcache.c (init_register_cache): Move conditionals inside if.
11970 2014-08-06 Gary Benson <gbenson@redhat.com>
11972 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11974 2014-07-31 Gary Benson <gbenson@redhat.com>
11976 * ax.h: Do not include server.h.
11977 * gdbthread.h: Likewise.
11978 * lynx-low.h: Likewise.
11979 * notif.h: Likewise.
11981 2014-07-30 Gary Benson <gbenson@redhat.com>
11983 * server.h: Include common-defs.h.
11984 Do not include config.h or build-gnulib-gdbserver/config.h.
11986 2014-07-30 Gary Benson <gbenson@redhat.com>
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.
11993 2014-07-24 Tom Tromey <tromey@redhat.com>
11994 Gary Benson <gbenson@redhat.com>
11996 * server.h (CORE_ADDR): Now unsigned.
11998 2014-07-16 Pedro Alves <palves@redhat.com>
12000 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12002 2014-07-15 Pedro Alves <palves@redhat.com>
12004 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12007 2014-07-11 Pedro Alves <palves@redhat.com>
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.
12013 2014-06-23 Pedro Alves <palves@redhat.com>
12015 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12016 before setting DR0..DR3.
12018 2014-06-20 Gary Benson <gbenson@redhat.com>
12020 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12021 * configure: Regenerated.
12022 * config.in: Likewise.
12024 2014-06-20 Gary Benson <gbenson@redhat.com>
12026 * Makefile.in (SFILES): Update locations for files moved
12027 from common to nat.
12028 (object file files): Reordered.
12030 2014-06-20 Gary Benson <gbenson@redhat.com>
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.
12055 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12057 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12058 * Makefile.in (AR, AR_FLAGS): Define.
12059 * configure: Regenerate.
12061 2014-06-19 Gary Benson <gbenson@redhat.com>
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.
12104 2014-06-19 Gary Benson <gbenson@redhat.com>
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.
12111 (i386_dr_insert_aligned_watchpoint): Renamed to
12112 i386_insert_aligned_watchpoint and made static.
12114 (i386_dr_remove_aligned_watchpoint): Renamed to
12115 i386_remove_aligned_watchpoint and made static.
12117 (i386_dr_update_inferior_debug_regs): Renamed to
12118 i386_update_inferior_debug_regs and made static.
12121 2014-06-18 Gary Benson <gbenson@redhat.com>
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.
12130 2014-06-17 Gary Benson <gbenson@redhat.com>
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.
12146 2014-06-18 Gary Benson <gbenson@redhat.com>
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.
12163 (i386_insert_aligned_watchpoint): Renamed to
12164 i386_dr_insert_aligned_watchpoint and made nonstatic.
12166 (i386_remove_aligned_watchpoint): Renamed to
12167 i386_dr_remove_aligned_watchpoint and made nonstatic.
12169 (i386_update_inferior_debug_regs): Renamed to
12170 i386_dr_update_inferior_debug_regs and made nonstatic.
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.
12183 2014-06-18 Gary Benson <gbenson@redhat.com>
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.
12189 2014-06-18 Gary Benson <gbenson@redhat.com>
12191 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12194 2014-06-18 Gary Benson <gbenson@redhat.com>
12196 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12197 instead of fatal and error.
12198 (i386_handle_nonaligned_watchpoint): Likewise.
12200 2014-06-18 Gary Benson <gbenson@redhat.com>
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.
12207 2014-06-18 Gary Benson <gbenson@redhat.com>
12209 * i386-low.h: Comment changes.
12210 * i386-low.c: Likewise.
12212 2014-06-18 Gary Benson <gbenson@redhat.com>
12214 * i386-low.c: Whitespace changes.
12216 2014-06-12 Tom Tromey <tromey@redhat.com>
12218 * utils.c (freeargv): Remove.
12220 2014-06-12 Tom Tromey <tromey@redhat.com>
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
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
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
12241 2014-06-05 Joel Brobecker <brobecker@adacore.com>
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.
12248 2014-06-02 Pedro Alves <palves@redhat.com>
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
12254 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
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.
12260 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12262 * linux-aarch64-low.c (asm/ptrace.h): Include.
12264 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
12271 2014-05-20 Pedro Alves <palves@redhat.com>
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
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
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
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.
12425 2014-05-20 Pedro Alves <palves@redhat.com>
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
12447 (mips_insert_point, mips_remove_point): Use
12448 Z_packet_to_target_hw_bp_type.
12450 2014-05-20 Pedro Alves <palves@redhat.com>
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
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
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.
12471 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12473 * configure.ac: Only use -Werror by default when DEVELOPMENT
12475 * configure: Regenerate.
12477 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
12483 2014-04-28 Yao Qi <yao@codesourcery.com>
12485 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12488 2014-04-25 Pedro Alves <palves@redhat.com>
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
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.
12507 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12508 Walfred Tedeschi <walfred.tedeschi@intel.com>
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
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
12549 (initialize_low_arch): Add code to initialize AVX512 registers.
12551 2014-04-23 Pedro Alves <palves@redhat.com>
12553 * mem-break.c (find_gdb_breakpoint_at): Make static.
12554 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12556 2014-04-23 Pedro Alves <palves@redhat.com>
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
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
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.
12575 2014-04-23 Pedro Alves <palves@redhat.com>
12577 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12579 2014-04-10 Pedro Alves <palves@redhat.com>
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.
12589 2014-04-09 Pedro Alves <palves@redhat.com>
12591 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12594 2014-02-27 Pedro Alves <palves@redhat.com>
12597 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12599 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12601 (last_thread_of_process_p): Take a PID argument instead of a
12603 (linux_wait_for_lwp): Delete.
12604 (num_lwps, check_zombie_leaders, not_stopped_callback): New
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.
12622 2014-02-26 Joel Brobecker <brobecker@adacore.com>
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):
12629 (handle_load_dll): Add function description.
12630 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12632 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12634 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
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.
12643 2014-02-26 Joel Brobecker <brobecker@adacore.com>
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.
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.
12660 2014-02-20 Doug Evans <dje@google.com>
12662 Remove global all_lwps.
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
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
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,
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,
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
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
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.
12768 (get_thread_lwp): Update.
12769 (struct lwp_info): Delete member "entry". Simplify comment for
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
12782 (mips_stopped_data_address): Ditto.
12783 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
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.
12801 2014-02-20 Doug Evans <dje@google.com>
12803 * inferiors.c (get_first_inferior): Fix buglet.
12805 2014-02-19 Doug Evans <dje@google.com>
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".
12815 2014-02-19 Doug Evans <dje@google.com>
12817 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12818 All callers updated.
12820 2014-02-19 Doug Evans <dje@google.com>
12822 * inferiors.c (add_thread): Fix whitespace.
12824 2014-02-19 Doug Evans <dje@google.com>
12826 * dll.c (clear_dlls): Replace accessing list implemention details
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
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.
12872 2014-02-19 Doug Evans <dje@google.com>
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.
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.
12900 2014-02-19 Tom Tromey <tromey@redhat.com>
12902 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12904 (target_supports_btrace): Update.
12906 2014-02-14 Yao Qi <yao@codesourcery.com>
12908 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12909 (rsp-low-ipa.o): New target.
12911 2014-02-12 Tom Tromey <tromey@redhat.com>
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.
12919 2014-02-12 Tom Tromey <tromey@redhat.com>
12921 * server.c (handle_query, handle_v_run): Use hex2bin, not
12923 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12925 2014-02-12 Tom Tromey <tromey@redhat.com>
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):
12931 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12933 * server.c (process_serial_event): Likewise.
12934 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12935 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12937 2014-02-12 Tom Tromey <tromey@redhat.com>
12939 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12940 bin2hex, not hexify.
12941 * tracepoint.c (cmd_qtstatus): Likewise.
12943 2014-02-12 Tom Tromey <tromey@redhat.com>
12945 * remote-utils.c (monitor_output): Pass explicit length to
12948 2014-02-12 Tom Tromey <tromey@redhat.com>
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
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
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.
12966 2014-02-12 Tom Tromey <tromey@redhat.com>
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.
12978 2014-02-06 Tom Tromey <tromey@redhat.com>
12980 * Makefile.in (SFILES): Fix indentation.
12982 2014-02-05 Doug Evans <dje@google.com>
12984 * linux-low.c (linux_wait_for_event): Improve comment.
12985 (linux_wait_1): Keep current_inferior in sync with event_child.
12987 2014-01-22 Doug Evans <dje@google.com>
12989 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12991 2014-01-22 Doug Evans <dje@google.com>
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
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.
13034 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13036 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13039 2014-01-17 Pedro Alves <palves@redhat.com>
13042 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13043 defined after including gdb_proc_service.h.
13045 2014-01-16 Doug Evans <dje@google.com>
13047 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13048 (match_dll): Use it.
13050 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
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
13058 (linux_low_disable_btrace): New.
13060 2014-01-15 Doug Evans <dje@google.com>
13062 * inferiors.c (thread_id_to_gdb_id): Delete.
13063 * inferiors.h (thread_id_to_gdb_id): Delete.
13065 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13067 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13068 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13071 2014-01-08 Pedro Alves <palves@redhat.com>
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.
13077 2014-01-08 Pedro Alves <palves@redhat.com>
13079 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13080 * server.c (visit_actioned_threads, handle_pending_status): New
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
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.
13095 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13097 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13098 * gdbreplay.c (gdbreplay_version): Likewise.
13100 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13102 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13103 iov.iov_len with the real length in use.
13105 2013-12-13 Joel Brobecker <brobecker@adacore.com>
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.
13113 2013-12-13 Pedro Alves <palves@redhat.com>
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.
13128 2013-12-11 Yao Qi <yao@codesourcery.com>
13130 * notif.c (handle_notif_ack): Return 0 if no notification
13133 2013-11-20 Doug Evans <dje@google.com>
13135 * linux-low.c (linux_set_resume_request): Fix comment.
13137 2013-11-20 Doug Evans <dje@google.com>
13139 * linux-low.c (resume_status_pending_p): Tweak comment.
13141 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
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
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.
13164 2013-11-18 Tom Tromey <tromey@redhat.com>
13166 * configure: Rebuild.
13167 * configure.ac: Don't check for stdlib.h.
13168 * gdbreplay.c: Unconditionally include stdlib.h.
13170 2013-11-18 Tom Tromey <tromey@redhat.com>
13172 * config.in: Rebuild.
13173 * configure: Rebuild.
13174 * configure.ac: Don't use AC_HEADER_DIRENT.
13176 2013-11-18 Tom Tromey <tromey@redhat.com>
13178 * server.h: Don't check HAVE_STRING_H.
13179 * gdbreplay.c: Don't check HAVE_STRING_H.
13180 * configure: Rebuild.
13182 2013-11-18 Tom Tromey <tromey@redhat.com>
13184 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13187 2013-11-08 Tom Tromey <tromey@redhat.com>
13189 * configure, config.in: Rebuild.
13190 * configure.ac: Remove unused configury.
13192 2013-11-08 Tom Tromey <tromey@redhat.com>
13194 * acinclude.m4: Include common.m4, codeset.m4.
13195 * configure, config.in: Rebuild.
13196 * configure.ac: Use GDB_AC_COMMON.
13198 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
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'.
13204 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13207 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13210 2013-10-02 Pedro Alves <palves@redhat.com>
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
13217 2013-10-01 Joel Brobecker <brobecker@adacore.com>
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.
13223 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13225 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13226 * config.in, configure: Regenerated.
13228 2013-09-18 Yao Qi <yao@codesourcery.com>
13231 * server.c (start_inferior): Clear 'resume_info'.
13233 2013-09-16 Jiong Wang <jiwang@tilera.com>
13235 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13238 2013-09-16 Jiong Wang <jiwang@tilera.com>
13240 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13241 linux-tile-low.o to srv_tgtobj.
13243 2013-09-16 Will Newton <will.newton@linaro.org>
13245 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13248 2013-09-06 Pedro Alves <palves@redhat.com>
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.
13257 2013-09-06 Pedro Alves <palves@redhat.com>
13259 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13260 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13262 2013-09-06 Pedro Alves <palves@redhat.com>
13264 * linux-amd64-ipa.c: Include tracepoint.h.
13265 * linux-i386-ipa.c: Include tracepoint.h.
13267 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13269 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13270 (ps_get_thread_area): New function.
13272 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13274 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13275 (initialize_low_arch): Call init_registers_crisv32 rather than
13276 init_register_crisv32.
13278 2013-09-05 Pedro Alves <palves@redhat.com>
13280 * server.h (handle_vFile, hostio_last_error_from_errno): Move
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.
13286 2013-09-05 Pedro Alves <palves@redhat.com>
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.
13294 2013-09-05 Pedro Alves <palves@redhat.com>
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".
13302 2013-09-05 Pedro Alves <palves@redhat.com>
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.
13315 2013-09-05 Pedro Alves <palves@redhat.com>
13317 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13321 2013-09-05 Pedro Alves <palves@redhat.com>
13323 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
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.
13345 2013-09-05 Pedro Alves <palves@redhat.com>
13347 * server.h (perror_with_name, error, fatal, warning, paddress)
13348 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13350 * utils.h: New file.
13352 2013-09-05 Pedro Alves <palves@redhat.com>
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.
13370 2013-09-05 Pedro Alves <palves@redhat.com>
13372 * server.h (_): Delete.
13374 2013-09-02 Pedro Alves <palves@redhat.com>
13376 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13377 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13379 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13381 2013-09-02 Pierre Muller <muller@sourceware.org>
13383 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13384 or WriteProcessMemory complete successfully and handle
13385 ERROR_PARTIAL_COPY error.
13387 2013-09-02 Pedro Alves <palves@redhat.com>
13389 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13390 error instead of EIO.
13392 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
13404 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
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.
13431 2013-08-21 Pedro Alves <palves@redhat.com>
13433 * config.in: Renegerate.
13435 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
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.
13450 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
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
13457 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13458 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13460 2013-07-27 Jie Zhang <jie@codesourcery.com>
13461 Daniel Jacobowitz <dan@codesourcery.com>
13462 Yao Qi <yao@codesourcery.com>
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
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
13475 (mips_remove_point, mips_stopped_by_watchpoint): New
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.
13481 2013-07-27 Yao Qi <yao@codesourcery.com>
13483 * i386-low.c: Include break-common.h.
13484 (enum target_hw_bp_type): Remove.
13486 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
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.
13501 2013-07-04 Yao Qi <yao@codesourcery.com>
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.
13510 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
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).
13517 2013-07-03 Pedro Alves <palves@redhat.com>
13519 * Makefile.in (config.status): Depend on development.sh.
13520 * acinclude.m4: Include libmcheck.m4.
13521 * configure: Regenerate.
13523 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
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.
13531 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13533 * notif.h (notif_event): Add a dummy member to avoid compiler
13536 2013-07-01 Pedro Alves <palves@redhat.com>
13538 * hostio.c (HOSTIO_PATH_MAX): Define.
13539 (require_filename, handle_open, handle_unlink, handle_readlink):
13542 2013-07-01 Pedro Alves <palves@redhat.com>
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
13548 * win32-low.c: Don't include sys/param.h.
13549 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13551 2013-07-01 Pedro Alves <palves@redhat.com>
13553 * event-loop.c: Don't check HAVE_UNISTD_H before including
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.
13561 2013-06-28 Tom Tromey <tromey@redhat.com>
13563 * Makefile.in (version.c): Use version.in, not
13566 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
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).
13573 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13575 Fix trace-status to output user name without trailing colon.
13576 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13578 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
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.
13584 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13586 * tracepoint.c (build_traceframe_info_xml): Output trace state
13587 variables present in the trace buffer.
13589 2013-06-24 Tom Tromey <tromey@redhat.com>
13591 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
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.
13599 2013-06-12 Pedro Alves <palves@redhat.com>
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.
13605 2013-06-11 Pedro Alves <palves@redhat.com>
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
13612 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13615 2013-06-11 Pedro Alves <palves@redhat.com>
13617 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13620 2013-06-11 Pedro Alves <palves@redhat.com>
13622 * linux-x86-low.c (initialize_low_arch): Call
13623 init_registers_x32_avx_linux.
13625 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13627 Fix compatibility with Android Bionic.
13628 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13631 2013-06-07 Pedro Alves <palves@redhat.com>
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
13639 * linux-low.c (new_inferior): Delete.
13640 (disabled_regsets, num_regsets): Delete.
13641 (linux_add_process): Adjust to set the new per-process
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.
13651 (linux_register_in_regsets): New regs_info parameter. Adjust to
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
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
13678 * i387-fp.h (num_xmm_registers): Delete.
13679 * inferiors.c (add_thread): Don't install the thread's regcache
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
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
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
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
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
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
13754 (target_regsets): Rename to ...
13755 (x86_regsets): ... this.
13756 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
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):
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):
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
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):
13861 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13862 (arm_read_description): New, with bits factored from
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
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.
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.
13945 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
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'.
13984 2013-06-04 Gary Benson <gbenson@redhat.com>
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.
13993 2013-05-31 Doug Evans <dje@google.com>
13996 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13997 64 bits in 64-cross-32 environment.
13999 2013-05-28 Pedro Alves <palves@redhat.com>
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
14008 2013-05-24 Pedro Alves <palves@redhat.com>
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.
14014 2013-05-23 Yao Qi <yao@codesourcery.com>
14015 Pedro Alves <palves@redhat.com>
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
14035 * target.h (struct thread_resume) <step_range_start,
14036 step_range_end>: New fields.
14037 (struct target_ops) <supports_range_stepping>:
14039 (target_supports_range_stepping): New macro.
14041 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14043 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14044 confusion in comment.
14046 2013-05-17 Joel Brobecker <brobecker@adacore.com>
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.
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.
14061 2013-05-17 Yao Qi <yao@codesourcery.com>
14063 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14066 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
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.
14076 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14077 Andrew Jenner <andrew@codesourcery.com>
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.
14085 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14087 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14089 2013-04-25 Hui Zhu <hui@codesourcery.com>
14092 * ax.c (ax_printf): Add fflush.
14094 2013-04-22 Tom Tromey <tromey@redhat.com>
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.
14102 2013-04-17 Pedro Alves <palves@redhat.com>
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.
14110 2013-04-16 Pedro Alves <palves@redhat.com>
14112 * linux-low.h (struct lwp_info) <thread_known>: Move under
14113 the USE_THREAD_DB #ifdef.
14115 2013-04-16 Pedro Alves <palves@redhat.com>
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
14124 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14126 * Makefile.in (install-only): Fix make install regression.
14128 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14130 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14131 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14133 * gdbserver.1: Remove.
14135 2013-03-22 Pedro Alves <palves@redhat.com>
14137 * linux-low.c (handle_extended_wait): Don't call
14138 linux_enable_event_reporting.
14140 2013-03-15 Tony Theodore <tonyt@logyst.com>
14143 * Makefile.in (SHELL): Use @SHELL@.
14145 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14147 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14150 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14152 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14153 Remove extraneous NULL element.
14155 2013-03-13 Yao Qi <yao@codesourcery.com>
14157 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14158 'V' block in trace frame.
14160 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
14188 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14190 * server.c (handle_qxfer): Preserve error message if -3 is
14192 (qxfer): Document the -3 return value.
14194 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14196 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14197 (linux_btrace_h): New variable.
14198 (linux-btrace.o): New rule.
14200 2013-03-08 Stan Shebs <stan@codesourcery.com>
14201 Hafiz Abid Qadeer <abidh@codesourcery.com>
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
14215 2013-03-07 Yao Qi <yao@codesourcery.com>
14217 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14218 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14220 (cmd_qtsp): Adjust condition. Do post increment.
14221 Set cur_action and cur_step_action back to 0.
14223 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14226 * linux-low.c (linux_write_memory): Return early success if LEN is
14229 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14231 * configure.srv: Add x86_64-*-cygwin* as target.
14233 2013-02-28 Tom Tromey <tromey@redhat.com>
14235 * configure.ac: Invoke AC_SYS_LARGEFILE.
14236 * configure, config.in: Rebuild.
14238 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14240 * win32-low.c: Throughout, fix format strings and casts of
14241 printf-like functions to avoid type related warnings on all
14243 (get_child_debug_event): Print dwDebugEventCode as hex since
14244 that's how it's usually documented.
14246 2013-02-28 Yao Qi <yao@codesourcery.com>
14248 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14251 2013-02-27 Jiong Wang <jiwang@tilera.com>
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
14260 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14261 (tile_store_gregset): Likewise.
14263 2013-02-27 Yao Qi <yao@codesourcery.com>
14265 * server.c (process_point_options): Print debug message when
14266 debug_threads is true.
14268 2013-02-26 Yao Qi <yao@codesourcery.com>
14270 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14272 2013-02-19 Pedro Alves <palves@redhat.com>
14273 Kai Tietz <ktietz@redhat.com>
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.
14281 2013-02-18 Yao Qi <yao@codesourcery.com>
14283 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14285 2013-02-14 Pedro Alves <palves@redhat.com>
14289 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14290 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14292 2013-02-14 Pedro Alves <palves@redhat.com>
14294 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14296 2013-02-14 Pedro Alves <palves@redhat.com>
14298 * tracepoint.c (save_string): Delete.
14299 (add_tracepoint_action): Use savestring instead of save_string.
14301 2013-02-12 Pedro Alves <palves@redhat.com>
14303 * linux-xtensa-low.c: Ditto.
14304 * xtensa-xtregs.c: Ditto.
14306 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14308 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14311 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
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.
14317 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14319 * linux-aarch64-low.c (ps_get_thread_area): Replace
14320 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14322 2013-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>
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.
14332 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14334 * linux-low.c (handle_extended_wait, linux_create_inferior)
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.
14343 2013-01-25 Yao Qi <yao@codesourcery.com>
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.
14357 2013-01-18 Yao Qi <yao@codesourcery.com>
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.
14375 2013-01-16 Yao Qi <yao@codesourcery.com>
14377 * linux-low.c (linux_resume_one_lwp): Don't check
14378 'lwp->bp_reinsert != 0'.
14380 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14381 Pedro Alves <palves@redhat.com>
14383 * lynx-low.c (ptrace_request_to_str): Define a temporary
14384 macro and use it to simplify this function's implementation.
14386 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14388 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14391 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14393 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14395 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14397 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14399 2013-01-07 Joel Brobecker <brobecker@adacore.com>
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.
14409 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14411 * lynx-low.c (lynx_resume): Delete variable ret.
14413 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14415 * gdbreplay.c (gdbreplay_version): Update copyright year.
14416 * server.c (gdbserver_version): Likewise.
14418 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14420 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14423 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14425 * lynx-low.c (ptrace_request_to_str): Add handling for
14426 PTRACE_GETTRACESIG.
14428 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14430 * lynx-low.c (lynx_attach): Delete variable new_process.
14432 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14434 * lynx-low.c (lynx_create_inferior): Delete variable
14437 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14439 * lynx-low.c (ptrace_request_to_str): Do not handle
14440 PTRACE_GETTHREADLIST if this macro does not exist.
14442 2012-12-15 Yao Qi <yao@codesourcery.com>
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.
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.
14467 2012-12-10 Tom Tromey <tromey@redhat.com>
14469 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14470 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
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.
14516 2012-12-05 Tom Tromey <tromey@redhat.com>
14519 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14521 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14523 * configure.ac: Check for linux/perf_event.h.
14524 * config.in: Regenerated.
14525 * configure: Regenerated.
14527 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14529 * hostio.c (handle_readlink): Decrease buffer size
14530 parameter passed to readlink by one byte.
14532 2012-11-26 Yao Qi <yao@codesourcery.com>
14534 * configure.ac (build_warnings): Append '-Wempty-body'.
14535 * configure: Regenerated.
14536 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14539 2012-11-15 Pierre Muller <muller@sourceware.org>
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>
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.
14553 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14555 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14556 (various make rules): Remove -DGDBSERVER
14558 2012-11-09 Yao Qi <yao@codesourcery.com>
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.
14567 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14569 * server.c (handle_search_memory_1): Include access length in
14572 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14574 * linux-crisv32-low.c: Fix compile errors.
14576 2012-09-04 Yao Qi <yao@codesourcery.com>
14578 * tracepoint.c (cmd_qtsv): Adjust debug message.
14579 Don't check CUR_TPOINT.
14581 2012-08-28 Yao Qi <yao@codesourcery.com>
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
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'.
14592 2012-08-23 Yao Qi <yao@codesourcery.com>
14594 * server.h: Remove declaration of 'xsnprintf'.
14596 2012-08-22 Keith Seitz <keiths@redhat.com>
14598 * server.h: Include build-gnulib-gbserver/config.h.
14599 * gdbreplay.c: Likewise.
14601 2012-08-08 Doug Evans <dje@google.com>
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".
14612 * configure.ac: Add check for strstr.
14613 * config.in: Regenerate.
14614 * configure: Regenerate.
14616 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14618 * hostio.c (handle_pread): If pread fails, fall back to attempting
14620 (handle_pwrite): Likewise for pwrite.
14622 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
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.
14628 2012-07-31 Pedro Alves <palves@redhat.com>
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.
14634 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14636 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14637 to 4-byte-align HW breakpoint addresses for Thumb.
14639 2012-07-27 Yao Qi <yao@codesourcery.com>
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.
14656 2012-07-27 Yao Qi <yao@codesourcery.com>
14658 * server.c (process_point_options): Stop at 'X' when parsing.
14660 2012-07-19 Michael Eager <eager@eagercon.com>
14662 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
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.
14668 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14670 * gdbserver/linux-low.c (initialize_low): Call
14671 linux_ptrace_init_warnings.
14673 2012-07-02 Doug Evans <dje@google.com>
14675 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14678 2012-07-02 Stan Shebs <stan@codesourcery.com>
14680 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14681 (ax.o): Add it to build rule.
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
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
14702 * ax.c: Include format.h.
14703 (ax_printf): New function.
14704 (gdb_eval_agent_expr): Add printf opcode.
14706 2012-06-13 Yao Qi <yao@codesourcery.com>
14708 * server.c (start_inferior): Remove duplicated writes to fields
14709 'last_resume_kind' and 'last_status' of 'current_inferior'.
14711 2012-06-12 Yao Qi <yao@codesourcery.com>
14712 Pedro Alves <palves@redhat.com>
14714 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14716 * server.c (handle_v_cont): Extend comment.
14718 2012-06-11 Yao Qi <yao@codesourcery.com>
14720 * linux-low.c (linux_attach): Add 'static'.
14722 2012-06-06 Yao Qi <yao@codesourcery.com>
14724 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14726 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14728 Fix gcc -flto compilation warning.
14729 * server.c (main): Make variable multi_mode and attach volatile.
14731 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14733 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14734 if the platform doesn't know about it.
14736 2012-05-30 Jeff Kenton <jkenton@tilera.com>
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.
14743 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14745 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14747 2012-05-24 Pedro Alves <palves@redhat.com>
14751 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14753 2012-05-24 Pedro Alves <palves@redhat.com>
14757 Replace target_signal with gdb_signal throughout.
14759 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14761 * linux-low.c (linux_store_registers): Avoid the copying sequence
14762 when no data has been retrieved by ptrace.
14764 2012-05-22 Will Deacon <will.deacon@arm.com>
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
14771 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
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.
14777 2012-05-11 Yao Qi <yao@codesourcery.com>
14778 Pedro Alves <palves@redhat.com>
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
14790 2012-04-29 Yao Qi <yao@codesourcery.com>
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.
14801 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
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.
14817 2012-04-20 Pedro Alves <palves@redhat.com>
14819 * configure: Regenerate.
14821 2012-04-19 Pedro Alves <palves@redhat.com>
14823 * Makefile.in (GNULIB_BUILDDIR): New.
14824 (LIBGNU, INCGNU, GNULIB_H): Adjust.
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.
14830 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14831 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
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
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.
14845 2012-04-19 Pedro Alves <palves@redhat.com>
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.
14855 2012-04-19 Pedro Alves <palves@redhat.com>
14857 * Makefile.in (generated_files): New.
14858 (server_h): Remove the explicit dependency on config.h, and depend
14859 on $generated_files.
14861 2012-04-19 Pedro Alves <palves@redhat.com>
14863 * Makefile.in (INCGNU): Add -Ignulib.
14865 2012-04-19 Pedro Alves <palves@redhat.com>
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.
14873 2012-04-19 Pedro Alves <palves@redhat.com>
14875 * config.in: Regenerate.
14877 2012-04-19 Pedro Alves <palves@redhat.com>
14879 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14880 * server.h (memmem): Remove declaration.
14881 * config.in: Regenerate.
14882 * configure: Regenerate.
14884 2012-04-19 Yao Qi <yao@codesourcery.com>
14886 * Makefile.in (SFILES): Add common/vec.c.
14890 2012-04-19 Yao Qi <yao@codesourcery.com>
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.
14897 2012-04-18 Pedro Alves <palves@redhat.com>
14899 * aclocal.m4: Regenerate.
14900 * configure: Regenerate.
14902 2012-04-16 Yao Qi <yao@codesourcery.com>
14904 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14905 duplicated on address.
14907 2012-04-16 Yao Qi <yao@codesourcery.com>
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'.
14918 (tracepoint_send_agent): New.
14919 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14921 2012-04-16 Yao Qi <yao@codesourcery.com>
14923 * tracepoint.c (download_tracepoints): Moved to ...
14924 (cmd_qtstart): ... here.
14926 2012-04-14 Yao Qi <yao@codesourcery.com>
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.
14936 2012-04-14 Yao Qi <yao@codesourcery.com>
14938 Import gnulib module inttypes.
14939 * aclocal.m4, config.in, configure: Regenerated.
14941 2012-04-14 Yao Qi <yao@codesourcery.com>
14943 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14944 Makefile and config.status at last.
14946 2012-04-13 Yao Qi <yao@codesourcery.com>
14948 * tracepoint.c: Include stdint.h unconditionally.
14950 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
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.
14958 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14960 * Makefile.in (clean): Also remove x32.c x32-linux.c
14961 x32-avx.c x32-avx-linux.c.
14962 (x32.o): New target.
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.
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.
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.
14983 2012-04-13 Pedro Alves <palves@redhat.com>
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
14991 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
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.
15002 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15005 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
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.
15012 2012-04-12 Yao Qi <yao@codesourcery.com>
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.
15026 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15028 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15030 2012-04-05 Pedro Alves <palves@redhat.com>
15032 -Werror=strict-aliasing
15034 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15037 2012-04-04 Pedro Alves <palves@redhat.com>
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.
15043 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15045 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
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.
15052 2012-03-29 Pedro Alves <palves@redhat.com>
15054 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15055 Correct ptrace arguments.
15057 2012-03-28 Pedro Alves <palves@redhat.com>
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
15066 * linux-low.c (linux_fetch_registers): Try the
15067 the_low_target.fetch_register hook first.
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.
15084 2012-03-26 Pedro Alves <palves@redhat.com>
15086 * server.c (handle_qxfer_libraries): Don't bail early if
15087 the_target->qxfer_libraries_svr4 is not NULL.
15089 2012-03-26 Pedro Alves <palves@redhat.com>
15091 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15093 2012-03-23 Pedro Alves <palves@redhat.com>
15095 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15096 "library-list-svr4" element's start tag when the the DSO list is
15099 2012-03-23 Pedro Alves <palves@redhat.com>
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
15105 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15107 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
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
15116 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15118 * .gitignore: Ignore more files.
15120 2012-03-19 Pedro Alves <palves@redhat.com>
15121 Jan Kratochvil <jan.kratochvil@redhat.com>
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
15128 2012-03-15 Yao Qi <yao@codesourcery.com>
15130 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15132 (cmd_qtdp): ... here.
15134 2012-03-15 Yao Qi <yao@codesourcery.com>
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.
15146 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15148 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15149 linux_ptrace_attach_warnings.
15151 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
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
15160 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15162 2012-03-08 Yao Qi <yao@codesourcery.com>
15163 Pedro Alves <palves@redhat.com>
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.
15171 2012-03-07 Pedro Alves <palves@redhat.com>
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
15177 * server.c (program_signals, program_signals_p): New.
15178 (handle_general_set): Handle QProgramSignals.
15179 * server.h (program_signals, program_signals_p): Declare.
15181 2012-03-05 Pedro Alves <palves@redhat.com>
15182 Jan Kratochvil <jan.kratochvil@redhat.com>
15184 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15187 2012-03-03 Yao Qi <yao@codesourcery.com>
15189 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15190 agent_look_up_symbols.
15192 2012-03-03 Yao Qi <yao@codesourcery.com>
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
15201 2012-03-03 Yao Qi <yao@codesourcery.com>
15203 * tracepoint.c (gdb_agent_capability): New global.
15204 (in_process_agent_loaded_ust): Renamed to
15205 `in_process_agent_supports_ust'.
15207 (in_process_agent_supports_ust): Call agent_capability_check.
15208 (clear_installed_tracepoints): Assert that agent supports
15211 2012-03-03 Yao Qi <yao@codesourcery.com>
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.
15222 2012-03-03 Yao Qi <yao@codesourcery.com>
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
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.
15243 2012-03-02 Pedro Alves <palves@redhat.com>
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.
15253 2012-03-02 Yao Qi <yao@codesourcery.com>
15255 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15258 2012-03-02 Yao Qi <yao@codesourcery.com>
15260 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15261 `stop_pc' and `tpoint'. Update caller.
15263 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
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
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
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
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
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
15313 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15314 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15316 2012-02-29 Yao Qi <yao@codesourcery.com>
15317 Pedro Alves <palves@redhat.com>
15319 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15320 `step_over_finished' is true.
15322 2012-02-27 Pedro Alves <palves@redhat.com>
15324 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15325 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15327 2012-02-27 Pedro Alves <palves@redhat.com>
15330 * linux-low.c (pid_is_stopped): New.
15331 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15333 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15335 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15338 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15340 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15342 2012-02-24 Luis Machado <lgustavo@codesourcery>
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.
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
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.
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.
15368 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15369 (need_step_over_p): Take target-side breakpoint condition into
15372 2012-02-24 Luis Machado <lgustavo@codesourcery>
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.
15380 * ax.h: New include file.
15381 * ax.c: New source file.
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
15389 (unparse_agent_expr) Rename to ...
15390 (gdb_unparse_agent_expr): ... this, make it non-static and move
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
15411 (eval_tracepoint_agent_expr): New function.
15412 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15414 (current_insn_ptr, emit_error, struct bytecode_address): Move to
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 (...).
15431 * Makefile.in: Update ax.c and IPA dependencies.
15433 2012-02-24 Pedro Alves <palves@redhat.com>
15435 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15436 (cmd_bigqtbuffer_circular): ... this. Only handle
15437 'QTBuffer:circular:'.
15438 (handle_tracepoint_general_set): Adjust.
15440 2012-02-16 Yao Qi <yao@codesourcery.com>
15442 * inferiors.c: Move code to ...
15443 * dll.c: .... here. New.
15444 * server.h: Declare clear_dlls.
15445 * Makefile.in (SFILES): Add dll.c.
15449 2012-02-11 Yao Qi <yao@codesourcery.com>
15451 * server.c: (handle_monitor_command): Add a new parameter
15453 (handle_query): Update caller.
15455 2012-02-09 Joel Brobecker <brobecker@adacore.com>
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
15462 2012-02-02 Pedro Alves <palves@redhat.com>
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.
15470 2012-02-02 Pedro Alves <palves@redhat.com>
15472 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15475 2012-01-27 Pedro Alves <palves@redhat.com>
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.
15486 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
15493 2012-01-23 Pedro Alves <palves@redhat.com>
15495 * server.c (main): Avoid yet another case of infinite loop while
15496 detaching/killing after a longjmp.
15498 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15501 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15503 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15505 * hostio.c (handle_readlink): New function.
15506 (handle_vFile): Call it to handle "vFile:readlink" packets.
15508 2012-01-20 Pedro Alves <palves@redhat.com>
15509 Ulrich Weigand <ulrich.weigand@linaro.org>
15511 * server.c (handle_v_requests): Only support vAttach and vRun to
15512 start multiple processes when in extended protocol mode.
15514 2012-01-17 Pedro Alves <palves@redhat.com>
15516 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15517 memalign plus mprotect to allocate the scratch buffer.
15519 2012-01-13 Pedro Alves <palves@redhat.com>
15521 * server.c (attach_inferior): Clear `cont_thread'.
15523 2012-01-13 Pedro Alves <palves@redhat.com>
15525 * server.c (main): Avoid infinite loop while detaching/killing
15528 2012-01-09 Doug Evans <dje@google.com>
15530 * server.c (start_inferior): Set last_ptid in --wrapper case.
15532 2012-01-06 Yao Qi <yao@codesourcery.com>
15534 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15536 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15538 2012-01-04 Yao Qi <yao@codesourcery.com>
15540 * tracepoint.c (cmd_qtdp): Print debug message
15541 for static tracepoint.
15543 2012-01-04 Yao Qi <yao@codesourcery.com>
15545 * tracepoint.c (trace_vdebug): Differentiate debug message
15546 between gdbserver and IPA.
15548 2012-01-03 Yao Qi <yao@codesourcery.com>
15550 * tracepoint.c (tracepoint_was_hit): Don't collect for
15553 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15555 * terminal.h: Reformat copyright header.
15557 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15559 * server.c (gdbserver_version): Update copyright year.
15560 * gdbreplay.c (gdbreplay_version): Likewise.
15562 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15564 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15567 2011-12-18 Hui Zhu <teawater@gmail.com>
15568 * linux-low.c (linux_create_inferior): Save return value to ret.
15570 2011-12-18 Hui Zhu <teawater@gmail.com>
15572 * linux-low.c (linux_create_inferior): Save return value to ret.
15574 2011-12-16 Doug Evans <dje@google.com>
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.
15590 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15591 in debugging output.
15593 2011-12-15 Yao Qi <yao@codesourcery.com>
15595 * tracepoint.c: Include sys/syscall.h.
15596 (gdb_ust_thread): Remove preprocessor conditional.
15598 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15600 * linux-low.c (linux_detach_one_lwp): Call
15601 the_low_target.prepare_to_resume before detaching.
15603 2011-12-14 Yao Qi <yao@codesourcery.com>
15605 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15608 2011-12-14 Yao Qi <yao@codesourcery.com>
15610 * i386-low.c (i386_low_stopped_data_address): Initialize local
15611 variable `control'.
15613 2011-12-13 Pedro Alves <pedro@codesourcery.com>
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.
15622 2011-12-13 Yao Qi <yao@codesourcery.com>
15624 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15626 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15628 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15630 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15631 Print new debug message for such case.
15633 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
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
15648 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15650 * linux-low.c (fetch_register, store_register): Make code
15651 consistent, fix formatting.
15653 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15655 * linux-low.c (usr_store_inferior_registers): Factor out code
15656 to handle individual registers into...
15657 (store_register): ... this new function.
15659 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
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.
15670 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.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
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.
15696 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15697 Jan Kratochvil <jan.kratochvil@redhat.com>
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):
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.
15713 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
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.
15721 2011-11-24 Stan Shebs <stan@codesourcery.com>
15723 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15725 2011-11-17 Stan Shebs <stan@codesourcery.com>
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.
15742 2011-11-14 Stan Shebs <stan@codesourcery.com>
15743 Kwok Cheung Yeung <kcy@codesourcery.com>
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
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
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
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.
15793 2011-11-14 Yao Qi <yao@codesourcery.com>
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.
15802 2011-11-14 Yao Qi <yao@codesourcery.com>
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.
15809 (download_tracepoints): Move some code to ...
15810 (download_tracepoint_1): ... here. New.
15812 2011-11-08 Yao Qi <yao@codesourcery.com>
15814 * remote-utils.c (relocate_instruction): A comment fix.
15816 2011-11-07 Joel Brobecker <brobecker@adacore.com>
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.
15827 2011-11-05 Yao Qi <yao@codesourcery.com>
15829 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15830 address as TPOINT's.
15832 2011-11-02 Stan Shebs <stan@codesourcery.com>
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.
15838 2011-11-02 Yao Qi <yao@codesourcery.com>
15840 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15842 2011-11-02 Yao Qi <yao@codesourcery.com>
15844 * target.h: Fix a typo in comment.
15846 2011-10-31 Pedro Alves <pedro@codesourcery.com>
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
15854 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
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.
15874 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15876 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
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.
15887 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
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.
15899 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
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.
15931 2011-09-15 Stan Shebs <stan@codesourcery.com>
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.
15959 2011-09-08 Stan Shebs <stan@codesourcery.com>
15961 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15962 (i386_emit_epilogue): Restore %ebx.
15964 2011-08-31 Jie Zhang <jzhang918@gmail.com>
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.
15971 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
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.
15979 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15981 * configure.srv: Add linux-procfs.o dependencies.
15983 2011-08-14 Yao Qi <yao@codesourcery.com>
15985 * target.h (struct target_ops): Fix indent.
15986 * win32-low.c (win32_target_ops): Fix comment.
15988 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
15989 Yao Qi <yao@codesourcery.com>
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.
15999 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16000 Yao Qi <yao@codesourcery.com>
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.
16008 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16011 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16013 * win32-low.c: Include <stdint.h>.
16015 2011-07-22 Pedro Alves <pedro@codesourcery.com>
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.
16027 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
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
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
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.
16066 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16068 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16071 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16073 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16075 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16077 2011-05-26 Yao Qi <yao@codesourcery.com>
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.
16083 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16085 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16086 __FILE__ and __LINE__ to internal_error.
16088 2011-05-13 Doug Evans <dje@google.com>
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.
16096 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16098 * server.c (handle_query): Add EnableDisableTracepoints to the list
16099 of supported features.
16100 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
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
16109 (gdb_probe): Skip data collection if static tracepoint is disabled.
16111 2011-05-10 Doug Evans <dje@google.com>
16113 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16115 2011-05-04 Doug Evans <dje@google.com>
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
16123 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16125 * README: Don't mention xscale*-*-linux*.
16126 * configure.srv (xscale*-*-linux*): Don't handle target.
16128 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16130 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
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.
16136 2011-04-26 Yao Qi <yao@codesourcery.com>
16138 * linux-low.c: Move common macros to linux-ptrace.h.
16139 Include linux-ptrace.h.
16140 * Makefile.in (linux_ptrace_h): New.
16141 (linux-low.o): Depends on linux-ptrace.h.
16143 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
16156 2011-04-19 Tom Tromey <tromey@redhat.com>
16158 * win32-low.c (handle_load_dll): Remove duplicate "the".
16160 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
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
16168 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16170 * gdbserver/server.h (Macro _): Define it if not available.
16172 2011-03-14 Michael Snyder <msnyder@vmware.com>
16174 * hostio.c (handle_close): Remove unnecessary null test.
16176 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16178 * Makefile.in (maintainer-clean realclean distclean): Remove
16179 "make ... subdir_do" command.
16181 2011-03-10 Michael Snyder <msnyder@vmware.com>
16183 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16185 * server.c (handle_v_run): Free alloced buffer on early return.
16187 2011-03-09 Yao Qi <yao@codesourcery.com>
16190 2011-03-04 Yao Qi <yao@codesourcery.com>
16192 * Makefile.in: Remove GNU make feature --directory.
16194 2011-03-05 Yao Qi <yao@codesourcery.com>
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.
16201 2011-02-11 Yao Qi <yao@codesourcery.com>
16203 * configure.ac: Call AC_PROG_RANLIB.
16204 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16205 * configure: Regenerate.
16207 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16209 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16211 2011-03-06 Yao Qi <yao@codesourcery.com>
16213 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16215 2011-03-05 Yao Qi <yao@codesourcery.com>
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.
16222 2011-03-04 Yao Qi <yao@codesourcery.com>
16224 * Makefile.in: Remove GNU make feature --directory.
16226 2011-03-04 Michael Snyder <msnyder@vmware.com>
16228 * server.c (queue_stop_reply): Call xmalloc not malloc.
16230 2011-03-02 Michael Snyder <msnyder@vmware.com>
16232 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16234 2011-02-28 Michael Snyder <msnyder@vmware.com>
16236 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16237 (cmd_qtframe): Ditto.
16238 (cmd_qtbuffer): Ditto.
16239 (cmd_bigqtbuffer): Ditto.
16241 * utils.c (decimal2str): Initialize 'width' to nine, then
16242 don't mess with it.
16244 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16246 * hostio.c (require_data): Free *data, not data.
16248 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16250 * hostio.c (require_data): Use free, not xfree.
16252 2011-02-27 Michael Snyder <msnyder@vmware.com>
16254 * server.c (handle_query): Discard unused value.
16256 * hostio.c (require_data): Free malloc memory before returning
16259 2011-02-26 Michael Snyder <msnyder@vmware.com>
16261 * linux-low.c (list_threads): Call closedir for dirent.
16263 2011-02-27 Michael Snyder <msnyder@vmware.com>
16265 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16266 a case statement falls through.
16268 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16270 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16273 2011-02-26 Michael Snyder <msnyder@vmware.com>
16275 * utils.c (decimal2str): Eliminate dead code and dead param.
16276 (pulongest): Drop dead param from call to decimal2str.
16279 2011-02-24 Joel Brobecker <brobecker@adacore.com>
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.
16286 2011-02-21 Hui Zhu <teawater@gmail.com>
16288 * tracepoint.c (tp_printf): New function.
16289 (eval_agent_expr): Handle gdb_agent_op_printf.
16291 2011-02-18 Tom Tromey <tromey@redhat.com>
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.
16298 2011-02-18 Tom Tromey <tromey@redhat.com>
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
16306 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16308 * aclocal.m4: Regenerated with aclocal-1.11.1.
16310 2011-02-14 Pedro Alves <pedro@codesourcery.com>
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,
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.
16325 2011-02-11 Yao Qi <yao@codesourcery.com>
16327 * configure.ac: Call AC_PROG_RANLIB.
16328 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16329 * configure: Regenerate.
16331 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16333 * server.c (gdb_read_memory): Change return semantics to allow
16335 (handle_search_memory_1): Adjust.
16336 (process_serial_event) <'m' packet>: Handle partial transfers.
16337 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16339 2011-01-28 Pedro Alves <pedro@codesourcery.com>
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
16357 * tracepoint.c (fetch_traceframe_registers): Update comment.
16359 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16361 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16364 2011-01-25 Pedro Alves <pedro@codesourcery.com>
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.
16385 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
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.
16400 * thread-db.c: Ditto.
16401 * tracepoint.c: Ditto.
16403 * win32-low.h: Ditto.
16405 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16407 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16410 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16412 * server.c (gdbserver_version): Update copyright year in version
16414 * gdbreplay.c (gdbreplay_version): Ditto.
16416 2010-12-29 Jie Zhang <jie.zhang@analog.com>
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.
16427 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16429 * .gitignore: New file.
16431 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16433 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16435 2010-10-22 Jie Zhang <jie@codesourcery.com>
16437 * Makefile.in: Add FLAGS_TO_PASS variable.
16438 (install): Remove dependency of install-only and recursively
16439 invoke make for install-only.
16441 2010-10-04 Doug Evans <dje@google.com>
16443 * Makefile.in (uninstall): Use $(DESTDIR).
16445 2010-09-24 Pedro Alves <pedro@codesourcery.com>
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
16454 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16456 * lynx-i386-low.c: New file.
16457 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16459 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16461 * lynx-low.c (ptrace_request_to_str): Remove handling for
16462 request values that have been removed in LynxOS 5.x.
16464 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16466 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16469 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16471 * configure.ac: Add --enable-inprocess-agent option.
16472 * configure: Rebuilt.
16474 2010-09-06 Yao Qi <yao@codesourcery.com>
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.
16482 2010-09-06 Yao Qi <yao@codesourcery.com>
16484 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16487 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16489 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16491 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16493 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16496 2010-09-01 Joel Brobecker <brobecker@adacore.com>
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.
16506 2010-09-01 Joel Brobecker <brobecker@adacore.com>
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.
16513 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16515 * gdbreplay.c: Move include of alloca.h up, next to include of
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.
16521 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16523 * Makefile.in (memmem.o): Build with -Wno-error.
16525 2010-09-01 Joel Brobecker <brobecker@adacore.com>
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.
16532 2010-09-01 Joel Brobecker <brobecker@adacore.com>
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.
16539 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16541 * linux-low.c (__SIGRTMIN): Define if not already defined.
16542 (linux_create_inferior): Check for __ANDROID__ rather than
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
16554 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16556 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16557 debug_threads check. Avoid a linear search when not doing debug
16560 2010-08-27 Pedro Alves <pedro@codesourcery.com>
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
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.
16578 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16580 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16581 * configure: Regenerate.
16583 2010-08-27 Pedro Alves <pedro@codesourcery.com>
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.
16597 2010-08-26 Pedro Alves <pedro@codesourcery.com>
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.
16619 2010-08-26 Pedro Alves <pedro@codesourcery.com>
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.
16630 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16632 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16634 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16636 * gdbreplay.c (remote_error): 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
16645 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16647 * linux-low.c (linux_wait_1): Move non-debugging code out of
16648 `debug_threads' control.
16650 2010-08-25 Pedro Alves <pedro@codesourcery.com>
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.
16659 2010-08-25 Pedro Alves <pedro@codesourcery.com>
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.
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.
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
16690 (i386_initial_stuff): Clear dr_status_mirror and
16692 (i386_get_thread_context): Adjust.
16693 (i386_set_thread_context): Adjust.
16694 (i386_thread_added): Adjust.
16696 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16698 * linux-low.h (linux_thread_area): Delete declaration.
16700 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16702 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16703 after its termination.
16705 2010-08-09 Pedro Alves <pedro@codesourcery.com>
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".
16714 2010-07-31 Pedro Alves <pedro@codesourcery.com>
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).
16721 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16723 * Makefile.in (signals_def): New.
16724 (server_h): Append include/gdb/signals.h and signals_def.
16725 (server.o): Append signals_def.
16727 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
16733 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16735 * server.c (handle_query): strcpy() the returned string from paddress()
16736 instead of sprintf().
16737 * utils.c (paddress): Return phex_nz().
16739 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16741 * server.c (handle_v_cont): Call mourn_inferior if process
16743 (myresume): Likewise.
16745 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16747 Static tracepoints, and integration with UST.
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.
16784 (GET_UST_SYM): New.
16787 (ust_marker_to_static_tracepoint): 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.
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.
16828 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16829 * config.in, configure: Regenerate.
16831 2010-06-20 Ian Lance Taylor <iant@google.com>
16832 Pedro Alves <pedro@codesourcery.com>
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.
16838 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16840 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16841 conditions in gdbserver.
16843 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16845 * spu-low.c (spu_read_memory): Wrap around local store limit.
16846 (spu_write_memory): Likewise.
16848 2010-06-15 Pedro Alves <pedro@codesourcery.com>
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
16853 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16855 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16856 uses with LONGEST uses.
16858 2010-06-14 Stan Shebs <stan@codesourcery.com>
16859 Pedro Alves <pedro@codesourcery.com>
16863 * linux-x86-low.c: Include limits.h.
16865 (always_true): 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):
16909 (condition_true_at_tracepoint): If there's a compiled condition,
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.
16931 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
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.
16936 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16937 Stan Shebs <stan@codesourcery.com>
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
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
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'.
17092 <actions_str, step_actions, step_actions_str>: Only include in
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):
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.
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
17143 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17144 support. Upload fast traceframes, and delete internal IPA
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
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.
17166 (gdb_collect): New.
17167 (write_inferior_data_ptr): New.
17168 (target_tp_heap): New.
17169 (target_malloc): New.
17170 (download_agent_expr): 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.
17193 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17195 * server.c (handle_query) <qSupported>: Do two passes over the
17196 qSupported string to avoid nesting strtok.
17198 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17200 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17202 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17203 -Wl,--dynamic-list.
17204 * configure: Regenerate.
17205 * proc-service.list: New.
17207 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17209 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17212 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
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.
17218 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17220 * config.h: Regenerate.
17222 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17224 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17225 doesn't provide PTRACE_GET_THREAD_AREA.
17227 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17229 * linux-m68k-low.c: Include <asm/ptrace.h>
17230 (ps_get_thread_area): Implement.
17232 2010-05-03 Doug Evans <dje@google.com>
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.
17249 2010-05-03 Pedro Alves <pedro@codesourcery.com>
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
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
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
17268 (thread_db_init): Don't set all_symbols_looked_up here.
17269 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17271 2010-05-03 Pedro Alves <pedro@codesourcery.com>
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
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
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.
17315 2010-05-03 Pedro Alves <pedro@codesourcery.com>
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.
17322 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17324 * README: Use consistent `GDB' and `GDBserver' spellings.
17326 2010-05-02 Pedro Alves <pedro@codesourcery.com>
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
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
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.
17352 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17354 * linux-low.c (linux_enable_event_reporting): New.
17355 (linux_wait_for_event_1, handle_extended_wait): Use it.
17357 2010-04-30 Pedro Alves <pedro@codesourcery.com>
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.
17370 2010-04-26 Doug Evans <dje@google.com>
17372 * server.c (handle_general_set): Make static.
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.
17378 2010-04-23 Doug Evans <dje@google.com>
17380 * server.c (start_inferior): Print inferior argv if --debug.
17382 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17384 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17385 * nto-x86-low.c: Include server.h
17387 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
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
17394 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17396 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17397 64-bit executables.
17399 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
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.
17408 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
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'.
17421 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17423 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17426 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
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.
17433 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17435 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17436 if __x86_64__ is defined.
17438 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17440 * configure: Regenerate.
17442 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
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.
17455 2010-04-12 Pedro Alves <pedro@codesourcery.com>
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.
17466 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17468 * server.h (buffer_xml_printf): Remove redundant `;'.
17470 2010-04-12 Pedro Alves <pedro@codesourcery.com>
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
17479 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17481 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17482 variable warning on Linux/x86-64.
17484 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17486 GDBserver disconnected tracing support.
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
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.
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.
17522 (disconnected_tracing): Declare.
17523 (stop_tracing): Declare.
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.
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.
17551 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17553 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
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.
17562 * tracepoint.c (tracing): Make extern.
17563 (disconnected_tracing): New.
17564 (stop_tracing): Make extern. Handle tracing stops due to GDB
17566 (cmd_qtdisconnected): New.
17567 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17568 (handle_tracepoint_general_set): Handle QTDisconnected.
17570 * event-loop.c (event_handler_func): Change return type to int.
17571 (process_event): Bail out if the event handler wants the event
17573 (handle_file_event): Ditto.
17574 (start_event_loop): Bail out if the event handler wants the event
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.
17583 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17585 * regcache.c (realloc_register_cache): Invalidate inferior's
17586 regcache before recreating it.
17588 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17590 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17592 2010-04-09 Stan Shebs <stan@codesourcery.com>
17593 Pedro Alves <pedro@codesourcery.com>
17595 * server.h (LONGEST): New.
17596 (struct thread_info) <while_stepping>: New field.
17597 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
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
17610 (main): Initialize the tracepoints module.
17611 (process_serial_event): Handle traceframe reads/writes.
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>:
17620 * linux-x86-low.c (x86_supports_tracepoints): New.
17621 (the_low_target). Install it.
17623 * mem-break.h (delete_breakpoint): Declare.
17624 * mem-break.c (delete_breakpoint): Make external.
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)
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.
17644 * tracepoint.c: New.
17646 * Makefile.in (OBS): Add tracepoint.o.
17647 (tracepoint.o): New rule.
17649 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17651 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17653 (i386-mmx.c): Likewise.
17654 (i386-mmx-linux.o): Likewise.
17655 (i386-mmx-linux.c): Likewise.
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.
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.
17666 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17668 * Makefile.in (clean): Updated.
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.
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.
17689 * i387-fp.c: Include "i386-xstate.h".
17691 (i387_cache_to_xsave): Likewise.
17692 (i387_xsave_to_cache): Likewise.
17693 (x86_xcr0): Likewise.
17695 * i387-fp.h (i387_cache_to_xsave): Likewise.
17696 (i387_xsave_to_cache): Likewise.
17697 (x86_xcr0): Likewise.
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.
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.
17715 * linux-low.h (regset_info): Add nt_type.
17716 (linux_target_ops): Add process_qsupported.
17718 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.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.
17737 * server.c (handle_query): Call target_process_qsupported.
17739 * target.h (target_ops): Add process_qsupported.
17740 (target_process_qsupported): New.
17742 2010-04-03 Pedro Alves <pedro@codesourcery.com>
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.
17754 2010-04-01 Pedro Alves <pedro@codesourcery.com>
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.
17761 2010-04-01 Pedro Alves <pedro@codesourcery.com>
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
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
17778 2010-04-01 Pedro Alves <pedro@codesourcery.com>
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.
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
17812 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
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.
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.
17830 * server.h (struct raw_breakpoint): Forward declare.
17831 (struct process_info): New field `raw_breakpoints'.
17833 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17836 2010-03-24 Pedro Alves <pedro@codesourcery.com>
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.
17855 2010-03-24 Pedro Alves <pedro@codesourcery.com>
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
17871 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17873 * server.c (handle_query): Assign, not compare.
17875 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17877 Teach linux gdbserver to step-over-breakpoints.
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.
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
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
17905 (send_sigstop): Don't clear stop_expected. Always set it,
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.
17959 2010-03-23 Michael Snyder <msnyder@vmware.com>
17961 * server.c (crc32): New function.
17962 (handle_query): Add handling for 'qCRC:' request.
17964 2010-03-23 Pedro Alves <pedro@codesourcery.com>
17966 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17967 lwp had been stopped by a watchpoint.
17969 2010-03-16 Pedro Alves <pedro@codesourcery.com>
17971 * server.h (internal_error): Declare.
17972 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17973 * utils.c (internal_error): New function.
17975 2010-03-15 Andreas Schwab <schwab@redhat.com>
17977 * configure.srv: Fix typo setting srv_regobj.
17979 2010-03-15 Pedro Alves <pedro@codesourcery.com>
17981 * linux-low.c (fetch_register): Avoid passing a non string literal
17983 (usr_store_inferior_registers): Ditto.
17985 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17987 * linux-low.c (linux_write_memory): Bail out early if peeking
17990 2010-03-14 Pedro Alves <pedro@codesourcery.com>
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
17998 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18000 (linux_stopped_by_watchpoint): Rewrite.
18001 (linux_stopped_data_address): Rewrite.
18003 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18005 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18006 switching the current inferior, not before.
18008 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
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.
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.
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.
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.
18055 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18057 * configure.ac: Check for libdl. If it is not available link against
18058 static libthread_db.
18059 * configure: Regenerate.
18061 2010-02-22 Pedro Alves <pedro@codesourcery.com>
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.
18069 2010-02-12 Doug Evans <dje@google.com>
18071 * linux-low.c (linux_supports_tracefork_flag): Document.
18072 (linux_look_up_symbols): Add comment.
18074 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18076 * regcache.c (supply_register): Clear regcache if buf is NULL.
18078 2010-02-02 Nicolas Roche <roche@sourceware.org>
18079 Joel Brobecker <brobecker@adacore.com>
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.
18085 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18087 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18088 (thumb2_breakpoint): New.
18089 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18091 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18093 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18094 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18097 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18099 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18101 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18103 * linux-s390-low.c (s390_collect_ptrace_register)
18104 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18106 2010-01-21 Doug Evans <dje@google.com>
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.
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.
18120 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18122 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18125 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18127 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18128 prototype to take a regcache. Adjust.
18130 2010-01-20 Pedro Alves <pedro@codesourcery.com>
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
18160 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
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
18173 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
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.
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.
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):
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.
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.
18217 * linux-ppc-low.c (ppc_supply_ptrace_register)
18218 (ppc_supply_ptrace_register): Ditto.
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
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
18244 * win32-i386-low.c (i386_fetch_inferior_register)
18245 (i386_store_inferior_register): Change prototype to take a
18247 * win32-low.c (child_fetch_inferior_registers)
18248 (child_store_inferior_registers): Change prototype to take a
18250 (win32_wait): Adjust.
18251 (win32_fetch_inferior_registers): Change prototype to take a
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.
18257 2010-01-20 Doug Evans <dje@google.com>
18259 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18261 (linux_wait_for_event1, linux_init_signals): Ditto.
18262 (W_STOPCODE): Provide definition if missing.
18264 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
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):
18274 (handle_query): Handle qXfer:threads. Announce availability
18276 * target.h (struct target_ops): New field core_of_thread.
18278 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
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.
18305 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18307 * server.c (gdbserver_version): Update copyright year to 2010.
18308 * gdbreplay.c (gdbreplay_version): Likewise.
18310 2009-12-28 Doug Evans <dje@google.com>
18312 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18313 elf/external.h. Include <elf.h> instead but only if necessary.
18315 2009-12-28 Pedro Alves <pedro@codesourcery.com>
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
18326 2009-12-21 Doug Evans <dje@google.com>
18328 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
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.
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.
18342 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18344 2009-12-18 Doug Evans <dje@google.com>
18346 * event-loop.c: Include unistd.h if it exists.
18348 * linux-low.c (my_waitpid): Move definition away from being in
18349 between linux_tracefork_child/linux_test_for_tracefork.
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.
18355 2009-12-16 Doug Evans <dje@google.com>
18357 * linux-low.c (linux_read_memory): Fix argument to read.
18359 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18361 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18362 events, don't leave current_inferior pointing at null.
18364 2009-11-26 Pedro Alves <pedro@codesourcery.com>
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.
18372 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18374 * win32-low.c (win32_add_one_solib): If the dll name is
18375 "ntdll.dll", prepend the system directory to the dll path.
18377 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18379 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18381 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18382 Vladimir Prus <vladimir@codesourcery.com>
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.
18391 2009-11-16 Pedro Alves <pedro@codesourcery.com>
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
18400 (thread_db_free): Add `detaching' parameter. Only
18401 call td_ta_clear_event if detaching from process.
18403 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18405 * thread-db.c (thread_db_free): Fix typo.
18407 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18410 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18412 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
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
18418 * configure: Rebuilt.
18420 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18424 * server.c (handle_search_memory_1): Correct read_addr initialization
18425 in loop for searching subsequent chunks.
18427 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
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.
18435 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18438 * thread-db.c (attach_thread): New function.
18439 (maybe_attach_thread): Return success/failure.
18440 (find_new_threads_callback): Adjust.
18441 (thread_db_find_new_threads): Loop until no new threads.
18443 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18445 * proc-service.c (ps_lgetregs): Formatting.
18447 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
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
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.
18472 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18474 * spu-low.c (spu_kill): Wait for inferior to terminate.
18475 Call clear_inferiors.
18476 (spu_detach): Call clear_inferiors.
18478 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18480 * aclocal.m4: Regenerate.
18481 * config.in: Likewise.
18482 * configure: Likewise.
18484 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
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.
18491 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
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.
18499 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
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.
18512 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18514 * Makefile.in (datarootdir): New variable.
18516 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
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.
18534 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18536 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18537 the main thread again.
18539 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
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.
18550 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18552 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18555 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18556 Pedro Alves <pedro@codesourcery.com>
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.
18565 2009-06-30 Doug Evans <dje@google.com>
18566 Pierre Muller <muller@ics.u-strasbg.fr>
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
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,
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,
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.
18632 2009-06-25 Pedro Alves <pedro@codesourcery.com>
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.
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.
18653 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18655 * server.c (handle_v_kill): Pass signal_pid to
18656 kill_inferior if multi_process is zero.
18658 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
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'.
18664 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
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
18673 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18674 Pedro Alves <pedro@codesourcery.com>
18676 * target.h (struct target_ops) <supports_multi_process>: New
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
18686 2009-05-24 Doug Evans <dje@google.com>
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.
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)
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.
18701 2009-05-23 Doug Evans <dje@google.com>
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.
18707 2009-05-13 Doug Evans <dje@google.com>
18709 * linux-x86-low.c: Don't include assert.h.
18710 (x86_siginfo_fixup): Use fatal, not assert.
18711 (x86_arch_setup): Fix comment.
18713 2009-05-12 Doug Evans <dje@google.com>
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
18725 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
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.
18737 2009-05-07 Doug Evans <dje@google.com>
18739 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18740 (regsets_store_inferior_registers): Ditto.
18742 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18746 * linux-low.c (must_set_ptrace_flags): Delete.
18747 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18749 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18750 `lwp->must_set_ptrace_flags' instead.
18751 (linux_wait_for_event_1): Set ptrace options here.
18752 (linux_wait_1): ... not here.
18754 2009-04-30 Doug Evans <dje@google.com>
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.
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.
18770 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18772 * configure.srv: Add x86 Windows CE target.
18774 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
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.
18783 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
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.
18797 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18799 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18802 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18804 Implement the multiprocess extensions, and add linux multiprocess
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
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
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
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.
18866 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
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
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
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
18887 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
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
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
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
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
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.
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
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
18971 (find_one_thread): Change argument type to ptid_t. Adjust to
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
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
18991 (child_fetch_inferior_registers, child_store_inferior_registers):
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
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
19005 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19007 Non-stop mode support.
19009 * server.h (non_stop): Declare.
19010 (gdb_client_data, handler_func): Declare.
19011 (delete_file_handler, add_file_handler, start_event_loop):
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
19033 (attach_inferior): In non-stop mode, don't wait for the target
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
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
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
19063 * event-loop.c: New.
19064 * Makefile.in (OBJ): Add event-loop.o.
19065 (event-loop.o): New rule.
19067 * linux-low.h (pid_of): Moved here.
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.
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
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.
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
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
19113 (my_waitpid): Reimplement. Emulate __WALL.
19114 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
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.
19128 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19130 Decouple target code from remote protocol.
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
19141 (prepare_resume_reply): Change prototype to take a
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.
19149 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
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.
19160 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19162 * spu-low.c (spu_wait): Adjust.
19163 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19165 (win32_wait): Adjust.
19167 2009-04-01 Pedro Alves <pedro@codesourcery.com>
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
19185 * win32-low.c (win32_detach, win32_resume): Ditto.
19187 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19189 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19191 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19193 (linux_continue_one_thread): Only preserve the stepping flag if
19194 there's a pending breakpoint.
19196 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19198 * server.c (main): After the inferior having exited, call
19199 remote_close before exiting gdbserver.
19201 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
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
19209 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19211 * server.c (handle_query) Whitespace and formatting.
19213 2009-03-22 Pedro Alves <pedro@codesourcery.com>
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.
19224 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19226 * inferiors.c (find_inferior): Make it safe for the callback
19227 function to delete the currently iterated inferior.
19229 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19231 * Makefile.in (linuw_low_h): Move higher.
19232 (thread-db.o): Depend on $(linux_low_h).
19234 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19236 Rename "process" to "lwp" throughout.
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):
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.
19282 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19284 * server.c (handle_query): Handle "qAttached".
19286 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19288 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19289 GPLv3, update license URL.
19291 2009-03-01 Doug Evans <dje@google.com>
19293 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
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.
19299 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19301 * remote-utils.c (getpkt): Also generate remote-debug
19302 information if noack_mode is set.
19304 2009-02-06 Pedro Alves <pedro@codesourcery.com>
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.
19312 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19314 * server.c (gdbserver_usage): Mention --remote-debug.
19315 (main): Accept '--remote-debug' switch.
19317 2009-01-18 Doug Evans <dje@google.com>
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
19325 (handle_v_run): Ditto. Call freeargv.
19326 * server.h (freeargv): Declare.
19327 * utils.c (freeargv): New fn.
19329 2009-01-15 Doug Evans <dje@google.com>
19331 * gdbreplay.c (perror_with_name): Make arg const char *.
19332 * server.h (target_signal_to_name): Make return type const char *.
19333 * thread-db.c (thread_db_err_str): Make return type const char *.
19334 * utils.c (perror_with_name): Make arg const char *.
19336 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19338 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19339 when handling a EXIT_PROCESS_DEBUG_EVENT.
19341 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19343 * gdbreplay.c (gdbreplay_version): Update copyright year.
19344 * server.c (gdbserver_version): Likewise.
19346 2009-01-05 Doug Evans <dje@google.com>
19348 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19349 (handle_extended_wait): Improve comment.
19351 2008-12-13 Doug Evans <dje@google.com>
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.
19364 * win32-low.c: Ditto.
19366 2008-12-12 Doug Evans <dje@google.com>
19368 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19369 in debugging printf.
19371 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19373 2008-12-09 Doug Evans <dje@google.com>
19375 * linux-low.h (struct process_info): Delete member tid, unused.
19376 * thread-db.c (find_one_thread): Update.
19377 (maybe_attach_thread): Update.
19379 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19381 * target.h (struct target_ops): Add qxfer_osdata member.
19382 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19384 (linux_qxfer_osdata): New functions.
19385 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
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.
19395 2008-11-24 Doug Evans <dje@google.com>
19397 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19399 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19401 * server.c (handle_v_run): Always use the supplied argument list.
19403 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19405 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19406 (xtensa_regmap_table): Add entry for scompare1.
19408 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
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
19423 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
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.
19433 2008-10-21 Doug Evans <dje@google.com>
19435 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19436 (READLINE_DIR,READLINE_DEP): Delete.
19437 (INTERNAL_CFLAGS): Update.
19438 (LINTFLAGS): Update.
19440 2008-10-10 Pedro Alves <pedro@codesourcery.com>
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].
19445 2008-09-08 Pedro Alves <pedro@codesourcery.com>
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.
19451 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19453 * configure.srv: Merge MIPS and MIPS64.
19455 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19457 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19459 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19461 * Makefile.in: Add required vsx dependencies.
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.
19472 * configure.srv: Add new VSX dependencies.
19474 2008-08-12 Pedro Alves <pedro@codesourcery.com>
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
19483 (main): Reset noack_mode on every connection.
19484 * server.h (noack_mode): Declare.
19486 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19488 * Makefile.in (GDBREPLAY_OBS): New variable.
19489 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19491 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19492 Daniel Jacobowitz <dan@codesourcery.com>
19494 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19495 (usr_store_inferior_registers): Likewise.
19496 (regsets_store_inferior_registers): Likewise.
19498 2008-07-31 Rolf Jansen <rj@surtec.com>
19499 Pedro Alves <pedro@codesourcery.com>
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.
19508 2008-07-28 Doug Kwan <dougkwan@google.com>
19510 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19511 (linux_write_memory): Remove declaration of errno.
19513 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19515 * linux-low.c (handle_extended_wait): Do not use "status"
19516 variable uninitialized.
19518 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19520 * server.c (handle_v_attach): Inhibit reporting dll changes.
19522 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19524 * remote-utils.c (prepare_resume_reply): If requested, don't
19525 output "thread:TID" in the T stop reply.
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
19531 (handle_v_requests): If requested, disable support for vCont.
19532 (gdbserver_show_disableable): New.
19533 (main): Handle --disable-packet and --disable-packet=LIST.
19535 * server.h (disable_packet_vCont, disable_packet_Tthread)
19536 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19538 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19540 * server.c (gdbserver_usage): Mention --version.
19542 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19544 * Makefile.in (gdbreplay.o): New rule.
19546 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19548 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19549 message, not gdbserver.
19551 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19552 Nathan Sidwell <nathan@codesourcery.com>
19553 Joseph Myers <joseph@codesourcery.com>
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.
19566 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19568 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19569 (arm_breakpoint_at): Handle Thumb.
19570 (the_low_target): Add comment.
19572 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19574 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19576 2008-05-09 Doug Evans <dje@google.com>
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.
19581 (handle_search_memory): New fn.
19582 (handle_query): Process qSearch:memory packets.
19584 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
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.
19592 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
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
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.
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.
19633 * inferiors.c (clear_inferiors): Reset current_inferior.
19635 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19637 * acinclude.m4: Add override.m4.
19638 * configure: Regenerate.
19640 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19642 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19643 initial call to init_register_ppc64.
19645 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19647 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19648 single powerpc*-*-linux* case.
19649 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19651 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19653 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19654 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
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.
19671 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
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
19680 (initialize_low): Allocate disabled_regsets.
19682 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
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.
19690 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19692 * server.c (handle_query): Never return "unsupported" for
19693 qXfer:features:read queries.
19695 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19697 * server.c (get_features_xml): Fix inverted condition.
19698 (handle_query): Always support qXfer:feature:read.
19700 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19702 * server.c (wrapper_argv): New.
19703 (start_inferior): Handle wrapper_argv. If set, expect an extra
19705 (gdbserver_usage): Document --wrapper.
19706 (main): Parse --wrapper.
19708 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
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.
19717 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19719 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
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.
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
19737 arch_setup member depending on __powerpc64__. Install
19738 collect_ptrace_register and supply_ptrace_register members.
19740 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
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.
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.
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.
19774 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
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.
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.
19788 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19789 (ppc_supply_ptrace_register): Likewise.
19790 (the_low_target): Update.
19792 * linux-i386-low.c (the_low_target): Update.
19793 * linux-x86-64-low.c (the_low_target): Update.
19795 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19797 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19798 reg-s390.o and reg-s390x.o.
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.
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.
19811 * regcache.c (realloc_register_cache): New function.
19812 (set_register_cache): Call it for each existing regcache.
19814 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19816 * server.h (init_registers): Remove prototype.
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.
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.
19863 * spu-low.c (init_registers_spu): Add prototype.
19864 (initialize_low): Call initialie_registers_spu () instead of
19865 initialize_registers ().
19867 2008-02-19 Pedro Alves <pedro@codesourcery.com>
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
19873 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19875 * server.c (handle_query): Correct length check.
19877 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
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
19896 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19898 * server.c (monitor_show_help): Add "exit".
19900 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19902 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19903 (clean): Add reg-xtensa.c.
19904 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19905 * configure.srv (xtensa*-*-linux*) New target.
19906 * linux-xtensa-low.c: New.
19907 * xtensa-xtregs.c: New.
19909 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
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.
19923 * spu-low.c (spu_target_ops): Likewise.
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
19935 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19936 * configure: Regenerate.
19938 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
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
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
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.
19966 2007-12-20 Andreas Schwab <schwab@suse.de>
19968 * linux-low.c (STACK_SIZE): Define.
19969 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19970 (linux_test_for_tracefork): Likewise.
19972 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
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
19978 (set_breakpoint_at): Update handler type.
19979 (reinsert_breakpoint_handler): Return 1 instead of calling
19981 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
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.
19989 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
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.
19996 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19998 * server.c (myresume): Add own_buf argument.
19999 (main): Update calls.
20001 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
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.
20016 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20018 * remote-utils.c (readchar): Allow binary data in received messages.
20020 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
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
20029 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20031 * server.c (main): Don't report dll events on the initial
20032 connection on attaches.
20034 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20036 * server.c (main): Relax numerical bases supported for the pid of
20037 the --attach command line argument.
20039 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20041 * win32-low.c (win32_attach): Call OpenProcess before
20042 DebugActiveProcess, not after. Add last error output to error
20045 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
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'
20054 2007-12-03 Leo Zayas
20055 Pedro Alves <pedro_alves@portugalmail.pt>
20057 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
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,
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
20073 2007-12-03 Leo Zayas
20074 Pedro Alves <pedro_alves@portugalmail.pt>
20076 * win32-low.h (win32_thread_info): Add descriptions to the
20077 structure members. Replace `suspend_count' counter by a
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.
20086 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20088 * win32-low.c (win32_wait): Don't read from the inferior when it
20089 has already exited.
20091 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
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.
20097 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20099 * hostio.c: Correct copyright year.
20101 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
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.
20111 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20113 * linux-low.c: Include <sched.h>.
20115 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
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.
20121 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20123 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20125 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20127 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20129 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
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
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.
20173 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
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*
20181 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
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.
20194 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
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.
20201 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20203 * linux-low.c (linux_wait_for_event): Do not pass signals while
20206 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
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.
20214 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20216 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20218 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20220 * configure.ac: Switch license to GPLv3.
20222 2007-08-01 Michael Snyder <msnyder@access-company.com>
20224 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20226 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20228 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
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.
20236 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20238 * server.c (main): Check for inferior exit before main loop.
20240 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20242 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20243 instead of on tmp_desc.
20245 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20246 Daniel Jacobowitz <dan@codesourcery.com>
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
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
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.
20274 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20276 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20277 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20279 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20281 * win32-low.c (handle_output_debug_string): Ignore event if not
20284 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20286 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20288 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20290 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20292 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
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
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.
20311 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20313 * thread-db.c (thread_db_find_new_threads): Add prototype.
20314 (thread_db_create_event): Check for the main thread before adding
20316 (maybe_attach_thread): Only enable event reporting if TID == 0.
20317 (thread_db_get_tls_address): Check for new threads.
20319 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20321 * linux-low.c (linux_create_inferior): Try execv before execvp.
20322 * spu-low.c (spu_create_inferior): Likewise.
20324 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20326 * linux-low.c (linux_create_inferior): Change execv to execvp.
20327 * spu-low.c (spu_create_inferior): Likewies.
20329 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
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
20335 * configure.srv: Specify XML files and new regformats for MIPS and
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.
20346 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20347 Markus Deuling <deuling@de.ibm.com>
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.
20357 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20359 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20360 accessing non-seekable spufs files.
20362 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20364 * server.c (handle_query): Add reply for qC packet.
20366 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20367 Leo Zayas <lerele@champenstudios@com>
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.
20375 * win32-low.c (winapi_DebugBreakProcess,
20376 winapi_GenerateConsoleCtrlEvent): New typedefs.
20377 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
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.
20384 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
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.
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.
20407 (get_child_debug_event): Change return type to void. Remove
20408 goto loop. Always return after waiting for debug event.
20409 (win32_wait): Convert to switch statement. Handle spurious
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
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.
20429 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20430 (arm_get_thread_context): New.
20431 (arm_set_thread_context): 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.
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.
20446 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20448 * linux-low.c (linux_detach): Change return type to int. Return 0.
20449 * spu-low.c (spu_detach): Likewise.
20451 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20453 * target.h (target_ops): Change return type of detach to int.
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.
20467 (win32_target_op): Add win32_join.
20469 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20471 * win32-low.c (win32-attach): Fix return value.
20472 * target.h (target_ops): Describe ATTACH return values.
20474 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
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.
20483 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20485 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20487 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20489 * win32-low.c: Commit leftover changes from 2007-03-29.
20491 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
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.
20499 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20501 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20502 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20504 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20506 * configure.srv (arm*-*-mingw32ce*): Move near the other
20509 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20511 * configure.ac: Add errno checking.
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.
20516 * configure.srv (i[34567]86-*-cygwin*): Add
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.
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.
20554 (do_child_fetch_inferior_registers): Move to ...
20555 * win32-i386-low.c: ... here, and rename to ...
20556 (do_fetch_inferior_registers): ... this.
20557 * win32-low.c (child_fetch_inferior_registers):
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
20568 (win32_detach): Use coredll.dll on Windows CE.
20569 (win32_resume): Let low target handle debug registers, and
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.
20591 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20593 * win32-low.c: Rename typedef thread_info to
20594 win32_thread_info throughout.
20596 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
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.
20603 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
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.
20612 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20614 * server.c (main): Correct strtoul check.
20616 2007-03-27 Jon Ringle <jon@ringle.org>
20618 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20620 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20622 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20624 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20626 * terminal.h: Check HAVE_SGTTY_H.
20628 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20630 * remote-utils.c (remote_open): Print out the assigned port number.
20632 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
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
20643 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20645 * Makefile.in (EXEEXT): New.
20646 (clean): Use $(EXEEXT).
20648 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
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
20658 (input_interrupt): Likewise.
20660 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20662 * server.c (get_features_xml): Check if target implemented
20664 * win32-i386-low.c (win32_arch_string): New.
20665 (win32_target_ops): Add win32_arch_string as arch_string member.
20667 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20669 * spu-low.c (spu_arch_string): New.
20670 (spu_target_ops): Add spu_arch_string.
20672 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20674 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20675 * configure.ac: Do not check for terminal.h.
20676 * configure, config.in: Regenerated.
20678 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20680 * Makefile.in (OBS): Add $(XML_BUILTIN).
20681 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
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
20695 (handle_query): Handle multiple annexes.
20697 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20699 * remote-utils.c [USE_WIN32API] (read, write): Define.
20700 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20703 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
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.
20715 2007-01-03 Denis Pilat <denis.pilat@st.com>
20716 Daniel Jacobowitz <dan@codesourcery.com>
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.
20722 2006-12-30 Denis PILAT <denis.pilat@st.com>
20723 Daniel Jacobowitz <dan@codesourcery.com>
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.
20730 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20732 * README: Update supported targets.
20734 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
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.
20748 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
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.
20755 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20757 * configure.ac: Correct td_thr_tls_get_addr test.
20758 * configure: Regenerated.
20760 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
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.
20770 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20772 * server.c (handle_query): Correct error handling for read_auxv.
20774 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
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.
20781 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
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.
20798 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
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.
20809 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20811 * remote-utils.c (try_rle): New function.
20812 (putpkt_binary): Use it.
20814 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
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
20823 2006-08-08 Richard Sandiford <richard@codesourcery.com>
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().
20832 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20834 * server.c (handle_query): Correct qPart to qXfer.
20836 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
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
20854 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
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.
20868 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
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.
20876 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20878 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20879 (putpkt_binary): Renamed from putpkt and adjusted for binary
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.
20888 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20890 * server.c (handle_query): Handle qSupported.
20892 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
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.
20899 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20901 * Makefile.in (linux-arm-low.o): Update dependencies.
20902 * linux-arm-low.c: Include "gdb_proc_service.h".
20903 (PTRACE_GET_THREAD_AREA): Define.
20904 (ps_get_thread_area): New function.
20906 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
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.
20916 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
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.
20924 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
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.
20936 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20938 * remote-utils.c (prepare_resume_reply): Move declaration
20939 of gdb_id_from_wait to the top of the block.
20941 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20943 * linux-low.c (regsets_store_inferior_registers): Read the regset
20944 from the target before filling it.
20946 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20948 * server.c (attach_inferior): Return SIGTRAP for a successful
20951 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
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.
20963 2005-12-23 Eli Zaretskii <eliz@gnu.org>
20975 * linux-x86-64-low.c:
20977 * linux-s390-low.c:
20978 * linux-ppc64-low.c:
20980 * linux-mips-low.c:
20981 * linux-m68k-low.c:
20982 * linux-m32r-low.c:
20985 * linux-ia64-low.c:
20986 * linux-i386-low.c:
20987 * linux-crisv32-low.c:
20999 * gdbserver.1: Add (C) after Copyright. Update the FSF
21002 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
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.
21008 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
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.
21015 2005-10-25 Andreas Schwab <schwab@suse.de>
21017 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21019 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21020 (ia64_num_regs): Reduce to 462.
21022 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21024 * acinclude.m4: Correct quoting.
21025 * aclocal.m4: Regenerated.
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.
21033 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21035 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21037 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
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
21048 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21049 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21051 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
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
21065 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
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.
21072 2005-07-01 Steve Ellcey <sje@cup.hp.com>
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.
21080 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
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.
21087 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21089 * configure.ac: Simplify and improve check for socklen_t.
21090 * configure, config.in: Regenerate.
21092 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
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.
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
21107 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
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):
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,
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.
21132 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
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.
21139 2005-05-23 Orjan Friberg <orjanf@axis.com>
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.
21145 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
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.
21150 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
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.
21156 2005-05-12 Orjan Friberg <orjanf@axis.com>
21158 * target.h (struct target_ops): Add insert_watchpoint,
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
21167 * server.c (main): Recognize 'Z' and 'z' packets.
21169 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
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.
21175 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21177 * proc-service.c (ps_lgetregs): Search all_processes instead of
21180 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
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.
21187 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
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.
21193 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21195 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21197 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
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
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
21222 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
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.
21229 2005-01-07 Andrew Cagney <cagney@gnu.org>
21231 * configure.ac: Rename configure.in, require autoconf 2.59.
21232 * configure: Re-generate.
21234 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21236 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21237 LIBS when finished.
21238 * aclocal.m4: Regenerated.
21239 * configure: Regenerated.
21241 2004-11-21 Andreas Schwab <schwab@suse.de>
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.
21249 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21250 srv_linux_thread_db to yes.
21252 2004-10-20 Joel Brobecker <brobecker@gnat.com>
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.
21259 2004-10-16 Daniel Jacobowitz <dan@debian.org>
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
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.
21281 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21283 * configure.in: Test for -rdynamic.
21284 * configure: Regenerated.
21285 * Makefile (INTERNAL_LDFLAGS): New.
21286 (gdbserver, gdbreplay): Use it.
21288 2004-09-02 Andrew Cagney <cagney@gnu.org>
21290 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21292 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21294 * linux-low.c (linux_wait): Clear all_processes list also.
21296 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21298 * linux-low.c: Include <errno.h>. Remove extern declaration of
21301 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21303 * gdbreplay.c, server.h, utils.c: Update copyright years.
21305 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21307 * server.c (main): Print child status or termination signal from
21308 variable 'signal', not 'sig'.
21310 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
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.
21318 (read_inferior_memory): Adapt prototype.
21319 * server.c (main): Return an error packet if
21320 read_inferior_memory() returns an error.
21322 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21324 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21325 Unify with other clean targets.
21327 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21329 * server.c (handle_v_cont): Call set_desired_inferior.
21331 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21333 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21335 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
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.
21342 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
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
21349 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21351 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21353 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21355 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21357 * server.c, target.h: Update copyright years.
21359 2004-02-25 Roland McGrath <roland@redhat.com>
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.
21366 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21368 Committed by Jim Blandy <jimb@redhat.com>.
21370 * linux-s390-low.c (s390_num_regs): Update.
21371 (s390_regmap): Remove control registers. Use __s390x__ predefine
21372 instead of GPR_SIZE to distiguish s390 and s390x targets.
21374 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
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
21385 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21387 * regcache.c (new_register_cache): Clear the allocated register
21388 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21390 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21392 * linux-low.c (linux_resume): Take a struct thread_resume *
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
21405 (myresume): Delete macro.
21407 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21409 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21410 (uninstall): Support DESTDIR.
21412 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21414 * configure.srv: Add xscale*linux copy of arm*linux entry.
21416 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21418 * linux-arm-low.c (arm_reinsert_addr): New function.
21419 (the_low_target): Add arm_reinsert_addr.
21421 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21423 * mem-break.c: Remove whitespace at end of file.
21425 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
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.
21434 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21436 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21437 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21439 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
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.
21445 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
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.
21454 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21456 From Kelley Cook <kelleycook@wideopenwest.com>:
21457 * configure.srv: Accept i[34567]86 variants.
21459 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
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
21467 * target.h (struct target_ops): Add send_signal.
21469 2003-05-29 Jim Blandy <jimb@redhat.com>
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.
21476 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21478 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21479 (linux_wait_for_event, linux_init_signals): Likewise.
21481 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21483 * configure.in: Check for stdlib.h.
21484 * configure: Regenerated.
21485 * config.in: Regenerated.
21487 2003-01-04 Andreas Schwab <schwab@suse.de>
21489 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21491 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21493 * Makefile.in: Remove obsolete code.
21495 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21497 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21498 defined(PT_FPR0_HI).
21500 2002-11-17 Stuart Hughes <seh@zee2.com>
21502 * linux-arm-low.c (arm_num_regs): Increase.
21503 (arm_regmap): Include status register.
21505 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21507 * linux-low.c (register_addr): Remove incorrect -1 check.
21509 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21511 * linux-low.c (linux_create_inferior): Call setpgid. Return
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
21521 gdbserver. Set the child to be the foreground process group.
21522 (attach_inferior): Set signal_pid.
21524 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21526 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21528 2002-08-20 Jim Blandy <jimb@redhat.com>
21530 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21533 2002-08-01 Andrew Cagney <cagney@redhat.com>
21535 * Makefile.in: Make chill references obsolete.
21537 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21539 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21540 * configure: Regenerate.
21541 * config.in: Regenerate.
21543 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21545 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21546 (perror_with_name, remote_close, remote_open, expect, play): Static.
21548 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21550 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21551 byte offsets instead of an array of indexes.
21552 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21554 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21556 * regcache.c: Add comment.
21558 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
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
21637 (get_regcache): Fetch registers lazily. Add fetch argument
21638 and update all callers.
21639 (regcache_invalidate_one, regcache_invalidate): New
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
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
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.
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.
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
21710 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21712 From Martin Pool <mbp@samba.org>:
21713 * server.c (gdbserver_usage): New function.
21716 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21718 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21719 stop_at -> stop_pc.
21721 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21723 * Makefile.in: Remove obsolete code.
21725 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21727 * linux-low.c (regsets_fetch_inferior_registers),
21728 (regsets_store_inferior_registers): Removed cast to int from
21730 * regcache.h: Added declaration of struct inferior_info.
21732 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
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
21745 * regcache.h: Add prototypes.
21746 * server.h: Likewise.
21748 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21750 * mem-break.c: New file.
21751 * mem-break.h: New file.
21752 * Makefile.in: Add mem-break.o rule; update server.h
21754 * inferiors.c (struct inferior_info): Add target_data
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
21770 * server.c (attach_inferior): Remove extra add_inferior
21772 * server.h: Include mem-break.h. Update inferior.c
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
21781 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
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.
21789 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21791 * server.h: Include <string.h> if HAVE_STRING_H.
21792 * ChangeLog: Correct paths in last ChangeLog entry.
21794 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
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,
21809 (arm_cannot_store_register): Renamed from cannot_store_register,
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,
21817 (i386_cannot_store_register): Renamed from cannot_store_register,
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,
21825 (ia64_cannot_store_register): Renamed from cannot_store_register,
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,
21833 (m68k_cannot_store_register): Renamed from cannot_store_register,
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,
21841 (mips_cannot_store_register): Renamed from cannot_store_register,
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,
21849 (ppc_cannot_store_register): Renamed from cannot_store_register,
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,
21857 (s390_cannot_store_register): Renamed from cannot_store_register,
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,
21865 (sh_cannot_store_register): Renamed from cannot_store_register,
21867 (the_low_target): New.
21868 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21869 (the_low_target): New.
21871 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21873 * Makefile.in: Add stamp-h target.
21874 * configure.in: Create stamp-h.
21875 * configure: Regenerated.
21877 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
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
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
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.
21913 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21915 * Makefile.in: Add WARN_CFLAGS. Update configury
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.