1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 Turn the 'breakpoint_at' linux target op into a method of
6 * linux-low.h (struct linux_target_ops): Remove the op.
7 (class linux_process_target) <low_breakpoint_at>: Declare.
9 Update the callers below:
11 * linux-low.cc (linux_process_target::save_stop_reason)
12 (linux_process_target::thread_still_has_status_pending)
13 (linux_process_target::wait_1)
15 * linux-x86-low.cc (class x86_target)
16 <low_breakpoint_at>: Declare.
17 (x86_breakpoint_at): Turn into...
18 (x86_target::low_breakpoint_at): ...this.
19 (the_low_target): Remove the op field.
20 * linux-aarch64-low.cc (class aarch64_target)
21 <low_breakpoint_at>: Declare.
22 (aarch64_breakpoint_at): Turn into...
23 (aarch64_target::low_breakpoint_at): ...this.
24 (the_low_target): Remove the op field.
25 * linux-arm-low.cc (class arm_target)
26 <low_breakpoint_at>: Declare.
27 (arm_target::low_breakpoint_at): Define.
28 (the_low_target): Remove the op field.
29 * linux-bfin-low.cc (class bfin_target)
30 <low_breakpoint_at>: Declare.
31 (bfin_breakpoint_at): Turn into...
32 (bfin_target::low_breakpoint_at): ...this.
33 (the_low_target): Remove the op field.
34 * linux-cris-low.cc (class cris_target)
35 <low_breakpoint_at>: Declare.
36 (cris_breakpoint_at): Turn into...
37 (cris_target::low_breakpoint_at): ...this.
38 (the_low_target): Remove the op field.
39 * linux-crisv32-low.cc (class crisv32_target)
40 <low_breakpoint_at>: Declare.
41 (crisv32_breakpoint_at): Turn into...
42 (crisv32_target::low_breakpoint_at): ...this.
43 (the_low_target): Remove the op field.
44 * linux-ia64-low.cc (class ia64_target)
45 <low_breakpoint_at>: Declare.
46 (ia64_target::low_breakpoint_at): Define.
47 * linux-m32r-low.cc (class m32r_target)
48 <low_breakpoint_at>: Declare.
49 (m32r_breakpoint_at): Turn into...
50 (m32r_target::low_breakpoint_at): ...this.
51 (the_low_target): Remove the op field.
52 * linux-m68k-low.cc (class m68k_target)
53 <low_breakpoint_at>: Declare.
54 (m68k_breakpoint_at): Turn into...
55 (m68k_target::low_breakpoint_at): ...this.
56 (the_low_target): Remove the op field.
57 * linux-mips-low.cc (class mips_target)
58 <low_breakpoint_at>: Declare.
59 (mips_breakpoint_at): Turn into...
60 (mips_target::low_breakpoint_at): ...this.
61 (the_low_target): Remove the op field.
62 * linux-nios2-low.cc (class nios2_target)
63 <low_breakpoint_at>: Declare.
64 (nios2_breakpoint_at): Turn into...
65 (nios2_target::low_breakpoint_at): ...this.
66 (the_low_target): Remove the op field.
67 * linux-ppc-low.cc (class ppc_target)
68 <low_breakpoint_at>: Declare.
69 (ppc_breakpoint_at): Turn into...
70 (ppc_target::low_breakpoint_at): ...this.
71 (the_low_target): Remove the op field.
72 * linux-riscv-low.cc (class riscv_target)
73 <low_breakpoint_at>: Declare.
74 (riscv_breakpoint_at): Turn into...
75 (riscv_target::low_breakpoint_at): ...this.
76 (the_low_target): Remove the op field.
77 * linux-s390-low.cc (class s390_target)
78 <low_breakpoint_at>: Declare.
79 (s390_breakpoint_at): Turn into...
80 (s390_target::low_breakpoint_at): ...this.
81 (the_low_target): Remove the op field.
82 * linux-sh-low.cc (class sh_target)
83 <low_breakpoint_at>: Declare.
84 (sh_breakpoint_at): Turn into...
85 (sh_target::low_breakpoint_at): ...this.
86 (the_low_target): Remove the op field.
87 * linux-sparc-low.cc (class sparc_target)
88 <low_breakpoint_at>: Declare.
89 (sparc_breakpoint_at): Turn into...
90 (sparc_target::low_breakpoint_at): ...this.
91 (the_low_target): Remove the op field.
92 * linux-tic6x-low.cc (class tic6x_target)
93 <low_breakpoint_at>: Declare.
94 (tic6x_breakpoint_at): Turn into...
95 (tic6x_target::low_breakpoint_at): ...this.
96 (the_low_target): Remove the op field.
97 * linux-tile-low.cc (class tile_target)
98 <low_breakpoint_at>: Declare.
99 (tile_breakpoint_at): Turn into...
100 (tile_target::low_breakpoint_at): ...this.
101 (the_low_target): Remove the op field.
102 * linux-xtensa-low.cc (class xtensa_target)
103 <low_breakpoint_at>: Declare.
104 (xtensa_breakpoint_at): Turn into...
105 (xtensa_target::low_breakpoint_at): ...this.
106 (the_low_target): Remove the op field.
108 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
110 Turn the 'decr_pc_after_break' linux_target_ops field into
111 a method of linux_process_target.
113 * linux-low.h (struct linux_target_ops)
114 <decr_pc_after_break>: Remove.
115 (class linux_process_target) <low_decr_pc_after_break>: New method
117 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
118 New method implementation.
120 Update the users below.
122 (linux_process_target::save_stop_reason)
123 (linux_process_target::wait_1)
124 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
126 (x86_target::low_decr_pc_after_break): New method implementation.
127 (the_low_target): Remove the field.
128 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
130 (bfin_target::low_decr_pc_after_break): New method implementation.
131 (the_low_target): Remove the field.
132 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
134 (m68k_target::low_decr_pc_after_break): New method implementation.
135 (the_low_target): Remove the field.
136 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
138 (s390_target::low_decr_pc_after_break): New method implementation.
139 (the_low_target): Remove the field.
140 * linux-aarch64-low.cc (the_low_target): Remove the field.
141 * linux-arm-low.cc (the_low_target): Remove the field.
142 * linux-cris-low.cc (the_low_target): Remove the field.
143 * linux-crisv32-low.cc (the_low_target): Remove the field.
144 * linux-m32r-low.cc (the_low_target): Remove the field.
145 * linux-mips-low.cc (the_low_target): Remove the field.
146 * linux-nios2-low.cc (the_low_target): Remove the field.
147 * linux-ppc-low.cc (the_low_target): Remove the field.
148 * linux-riscv-low.cc (the_low_target): Remove the field.
149 * linux-sh-low.cc (the_low_target): Remove the field.
150 * linux-sparc-low.cc (the_low_target): Remove the field.
151 * linux-tic6x-low.cc (the_low_target): Remove the field.
152 * linux-tile-low.cc (the_low_target): Remove the field.
153 * linux-xtensa-low.cc (the_low_target): Remove the field.
155 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
157 Remove the 'supports_software_single_step' linux target op and let
158 the concrete linux target define it by overriding the op in
159 process_stratum_target.
160 Turn the 'get_next_pcs' linux target op into a method of
161 linux_process_target.
163 * linux-low.h (struct linux_target_ops): Remove the ops.
164 (class linux_process_target) <supports_software_single_step>:
166 <low_get_next_pcs>: Declare.
167 * linux-low.cc (can_software_single_step): Remove.
168 (linux_process_target::low_get_next_pcs): Define.
169 (linux_process_target::supports_software_single_step): Remove.
171 Update the callers below.
173 (linux_process_target::handle_extended_wait)
174 (linux_process_target::wait_1)
175 (linux_process_target::install_software_single_step_breakpoints)
176 (linux_process_target::single_step)
177 (linux_process_target::thread_needs_step_over)
178 (linux_process_target::proceed_one_lwp)
179 (linux_process_target::supports_range_stepping)
181 * linux-x86-low.cc (the_low_target): Remove the op field.
182 * linux-aarch64-low.cc (the_low_target): Ditto.
183 * linux-bfin-low.cc (the_low_target): Ditto.
184 * linux-cris-low.cc (the_low_target): Ditto.
185 * linux-crisv32-low.cc (the_low_target): Ditto.
186 * linux-m32r-low.cc (the_low_target): Ditto.
187 * linux-m68k-low.cc (the_low_target): Ditto.
188 * linux-mips-low.cc (the_low_target): Ditto.
189 * linux-nios2-low.cc (the_low_target): Ditto.
190 * linux-ppc-low.cc (the_low_target): Ditto.
191 * linux-riscv-low.cc (the_low_target): Ditto.
192 * linux-s390-low.cc (the_low_target): Ditto.
193 * linux-sh-low.cc (the_low_target): Ditto.
194 * linux-sparc-low.cc (the_low_target): Ditto.
195 * linux-tic6x-low.cc (the_low_target): Ditto.
196 * linux-tile-low.cc (the_low_target): Ditto.
197 * linux-xtensa-low.cc (the_low_target): Ditto.
198 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
199 <supports_software_single_step>: Declare.
200 (arm_target::supports_software_single_step): Define.
201 (arm_gdbserver_get_next_pcs): Turn into...
202 (arm_target::low_get_next_pcs): ...this.
203 (the_low_target): Remove the op field.
205 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
207 Remove the 'sw_breakpoint_from_kind' linux target op, and let
208 the concrete linux target define it by overriding the op
209 in process_stratum_target.
211 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
213 * linux-low.h (struct linux_target_ops): Remove the op.
214 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
215 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
217 (x86_sw_breakpoint_from_kind): Turn into...
218 (x86_target::sw_breakpoint_from_kind): ...this.
219 (the_low_target): Remove the op field.
220 * linux-aarch64-low.cc (class aarch64_target)
221 <sw_breakpoint_from_kind>: Declare.
222 (aarch64_sw_breakpoint_from_kind): Turn into...
223 (aarch64_target::sw_breakpoint_from_kind): ...this.
224 (the_low_target): Remove the op field.
225 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
227 (arm_target::sw_breakpoint_from_kind): Define.
228 (the_low_target): Remove the op field.
229 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
231 (bfin_sw_breakpoint_from_kind): Turn into...
232 (bfin_target::sw_breakpoint_from_kind): ...this.
233 (the_low_target): Remove the op field.
234 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
236 (cris_sw_breakpoint_from_kind): Turn into...
237 (cris_target::sw_breakpoint_from_kind): ...this.
238 (the_low_target): Remove the op field.
239 * linux-crisv32-low.cc (class crisv32_target)
240 <sw_breakpoint_from_kind>: Declare.
241 (cris_sw_breakpoint_from_kind): Turn into...
242 (crisv32_target::sw_breakpoint_from_kind): ...this.
243 (the_low_target): Remove the op field.
244 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
246 (ia64_target::sw_breakpoint_from_kind): Define.
247 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
249 (m32r_sw_breakpoint_from_kind): Turn into...
250 (m32r_target::sw_breakpoint_from_kind): ...this.
251 (the_low_target): Remove the op field.
252 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
254 (m68k_sw_breakpoint_from_kind): Turn into...
255 (m68k_target::sw_breakpoint_from_kind): ...this.
256 (the_low_target): Remove the op field.
257 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
259 (mips_sw_breakpoint_from_kind): Turn into...
260 (mips_target::sw_breakpoint_from_kind): ...this.
261 (the_low_target): Remove the op field.
262 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
264 (nios2_sw_breakpoint_from_kind): Turn into...
265 (nios2_target::sw_breakpoint_from_kind): ...this.
266 (the_low_target): Remove the op field.
267 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
269 (ppc_sw_breakpoint_from_kind): Turn into...
270 (ppc_target::sw_breakpoint_from_kind): ...this.
271 (the_low_target): Remove the op field.
272 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
274 (riscv_sw_breakpoint_from_kind): Turn into...
275 (riscv_target::sw_breakpoint_from_kind): ...this.
276 (the_low_target): Remove the op field.
277 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
279 (s390_sw_breakpoint_from_kind): Turn into...
280 (s390_target::sw_breakpoint_from_kind): ...this.
281 (the_low_target): Remove the op field.
282 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
284 (sh_sw_breakpoint_from_kind): Turn into...
285 (sh_target::sw_breakpoint_from_kind): ...this.
286 (the_low_target): Remove the op field.
287 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
289 (sparc_sw_breakpoint_from_kind): Turn into...
290 (sparc_target::sw_breakpoint_from_kind): ...this.
291 (the_low_target): Remove the op field.
292 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
294 (tic6x_sw_breakpoint_from_kind): Turn into...
295 (tic6x_target::sw_breakpoint_from_kind): ...this.
296 (the_low_target): Remove the op field.
297 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
299 (tile_sw_breakpoint_from_kind): Turn into...
300 (tile_target::sw_breakpoint_from_kind): ...this.
301 (the_low_target): Remove the op field.
302 * linux-xtensa-low.cc (class xtensa_target)
303 <sw_breakpoint_from_kind>: Declare.
304 (xtensa_sw_breakpoint_from_kind): Turn into...
305 (xtensa_target::sw_breakpoint_from_kind): ...this.
306 (the_low_target): Remove the op field.
308 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
310 Remove the 'breakpoint_kind_from_pc' and
311 'breakpoint_kind_from_current_state' linux target ops, and let the
312 concrete linux target define them by overriding the ops of
313 process_stratum_target.
315 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
317 (linux_process_target::breakpoint_kind_from_current_state): Remove.
318 * linux-low.h (struct linux_target_ops): Remove ops.
319 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
320 <breakpoint_kind_from_current_state>: Remove.
321 * linux-x86-low.cc (the_low_target): Remove the op fields.
322 * linux-bfin-low.cc (the_low_target): Ditto.
323 * linux-cris-low.cc (the_low_target): Ditto.
324 * linux-crisv32-low.cc (the_low_target): Ditto.
325 * linux-m32r-low.cc (the_low_target): Ditto.
326 * linux-m68k-low.cc (the_low_target): Ditto.
327 * linux-mips-low.cc (the_low_target): Ditto.
328 * linux-nios2-low.cc (the_low_target): Ditto.
329 * linux-ppc-low.cc (the_low_target): Ditto.
330 * linux-s390-low.cc (the_low_target): Ditto.
331 * linux-sh-low.cc (the_low_target): Ditto.
332 * linux-sparc-low.cc (the_low_target): Ditto.
333 * linux-tic6x-low.cc (the_low_target): Ditto.
334 * linux-tile-low.cc (the_low_target): Ditto.
335 * linux-xtensa-low.cc (the_low_target): Ditto.
336 * linux-aarch64-low.cc (class aarch64_target)
337 <breakpoint_kind_from_pc>
338 <breakpoint_kind_from_current_state>: Declare.
339 (aarch64_breakpoint_kind_from_pc): Turn into...
340 (aarch64_target::breakpoint_kind_from_pc): ...this.
341 (aarch64_breakpoint_kind_from_current_state): Turn into...
342 (aarch64_target::breakpoint_kind_from_current_state): ...this.
343 (the_low_target): Remove the op fields.
344 * linux-arm-low.cc (class arm_target):
345 <breakpoint_kind_from_pc>
346 <breakpoint_kind_from_current_state>: Declare.
347 (arm_target::breakpoint_kind_from_pc): Define.
348 (arm_target::breakpoint_kind_from_current_state): Define.
349 (the_low_target): Remove the op fields.
350 * linux-riscv-low.cc (class riscv_target):
351 <breakpoint_kind_from_pc>: Declare.
352 (riscv_breakpoint_kind_from_pc): Turn into...
353 (riscv_target::breakpoint_kind_from_pc): ...this.
354 (the_low_target): Remove the op fields.
356 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
358 Turn the 'get_pc' and 'set_pc' linux target ops into methods
359 of linux_process_target.
361 * linux-low.h (struct linux_target_ops): Remove the ops.
362 (class linux_process_target) <low_supports_breakpoints>
364 <low_set_pc>: Declare.
365 * linux-low.cc (supports_breakpoints): Turn into...
366 (linux_process_target::low_supports_breakpoints): ...this.
367 (linux_process_target::low_get_pc): Define.
368 (linux_process_target::low_set_pc): Define.
370 Update the callers below.
372 (linux_process_target::get_pc)
373 (linux_process_target::save_stop_reason)
374 (linux_process_target::maybe_move_out_of_jump_pad)
375 (linux_process_target::wait_1)
376 (linux_process_target::resume_one_lwp_throw)
377 (linux_process_target::resume)
378 (linux_process_target::proceed_all_lwps)
379 (linux_process_target::read_pc)
380 (linux_process_target::write_pc)
382 * linux-x86-low.cc (class linux_process_target)
383 <low_supports_breakpoints>
385 <low_set_pc>: Declare.
386 (x86_target::low_supports_breakpoints): Define.
387 (x86_get_pc): Turn into...
388 (x86_target::low_get_pc): ...this.
389 (x86_set_pc): Turn into...
390 (x86_target::low_set_pc): ...this.
391 (the_low_target): Remove the op fields.
392 * linux-arm-low.cc (class arm_target)
393 <low_supports_breakpoints>
395 <low_set_pc>: Declare.
396 (arm_target::low_supports_breakpoints)
397 (arm_target::low_get_pc)
398 (arm_target::low_set_pc): Define.
399 (the_low_target): Remove the op fields.
400 * linux-bfin-low.cc (class bfin_target)
401 <low_supports_breakpoints>
403 <low_set_pc>: Declare.
404 (bfin_target::low_supports_breakpoints)
405 (bfin_target::low_get_pc)
406 (bfin_target::low_set_pc): Define.
407 (the_low_target): Remove the op fields.
408 * linux-cris-low.cc (class cris_target)
409 <low_supports_breakpoints>
411 <low_set_pc>: Declare.
412 (cris_target::low_supports_breakpoints)
413 (cris_target::low_get_pc)
414 (cris_target::low_set_pc): Define.
415 (the_low_target): Remove the op fields.
416 * linux-crisv32-low.cc (class crisv32_target)
417 <low_supports_breakpoints>
419 <low_set_pc>: Declare.
420 (crisv32_target::low_supports_breakpoints)
421 (crisv32_target::low_get_pc)
422 (crisv32_target::low_set_pc): Define.
423 (the_low_target): Remove the op fields.
424 * linux-m32r-low.cc (class m32r_target)
425 <low_supports_breakpoints>
427 <low_set_pc>: Declare.
428 (m32r_target::low_supports_breakpoints)
429 (m32r_target::low_get_pc)
430 (m32r_target::low_set_pc): Define.
431 (the_low_target): Remove the op fields.
432 * linux-m68k-low.cc (class m68k_target)
433 <low_supports_breakpoints>
435 <low_set_pc>: Declare.
436 (m68k_target::low_supports_breakpoints)
437 (m68k_target::low_get_pc)
438 (m68k_target::low_set_pc): Define.
439 (the_low_target): Remove the op fields.
440 * linux-nios2-low.cc (class nios2_target)
441 <low_supports_breakpoints>
443 <low_set_pc>: Declare.
444 (nios2_target::low_supports_breakpoints)
445 (nios2_target::low_get_pc)
446 (nios2_target::low_set_pc): Define.
447 (the_low_target): Remove the op fields.
448 * linux-sh-low.cc (class sh_target)
449 <low_supports_breakpoints>
451 <low_set_pc>: Declare.
452 (sh_target::low_supports_breakpoints)
453 (sh_target::low_get_pc)
454 (sh_target::low_set_pc): Define.
455 (the_low_target): Remove the op fields.
456 * linux-xtensa-low.cc (class xtensa_target)
457 <low_supports_breakpoints>
459 <low_set_pc>: Declare.
460 (xtensa_target::low_supports_breakpoints)
461 (xtensa_target::low_get_pc)
462 (xtensa_target::low_set_pc): Define.
463 (the_low_target): Remove the op fields.
464 * linux-sparc-low.cc (class sparc_target)
465 <low_supports_breakpoints>
466 <low_get_pc>: Declare.
467 (sparc_target::low_supports_breakpoints)
468 (sparc_target::low_get_pc): Define.
469 (the_low_target): Remove the op fields.
470 * linux-tile-low.cc (class tile_target)
471 <low_supports_breakpoints>
473 <low_set_pc>: Declare.
474 (tile_target::low_supports_breakpoints)
475 (tile_target::low_get_pc)
476 (tile_target::low_set_pc): Define.
477 (the_low_target): Remove the op fields.
478 * linux-aarch64-low.cc (class aarch64_target)
479 <low_supports_breakpoints>
481 <low_set_pc>: Declare.
482 (aarch64_target::low_supports_breakpoints): Define.
483 (aarch64_get_pc): Turn into...
484 (aarch64_target::low_get_pc): ...this.
485 (aarch64_set_pc): Turn into...
486 (aarch64_target::low_set_pc): ...this.
487 (the_low_target): Remove the op fields.
488 * linux-mips-low.cc (class mips_target)
489 <low_supports_breakpoints>
491 <low_set_pc>: Declare.
492 (mips_target::low_supports_breakpoints): Define.
493 (mips_get_pc): Turn into...
494 (mips_target::low_get_pc): ...this.
495 (mips_set_pc): Turn into...
496 (mips_target::low_set_pc): ...this.
497 (the_low_target): Remove the op fields.
498 * linux-ppc-low.cc (class ppc_target)
499 <low_supports_breakpoints>
501 <low_set_pc>: Declare.
502 (ppc_target::low_supports_breakpoints): Define.
503 (ppc_get_pc): Turn into...
504 (ppc_target::low_get_pc): ...this.
505 (ppc_set_pc): Turn into...
506 (ppc_target::low_set_pc): ...this.
507 (the_low_target): Remove the op fields.
508 * linux-riscv-low.cc (class riscv_target)
509 <low_supports_breakpoints>
511 <low_set_pc>: Declare.
512 (riscv_target::low_supports_breakpoints): Define.
513 (riscv_get_pc): Turn into...
514 (riscv_target::low_get_pc): ...this.
515 (riscv_set_pc): Turn into...
516 (riscv_target::low_set_pc): ...this.
517 (the_low_target): Remove the op fields.
518 * linux-s390-low.cc (class s390_target)
519 <low_supports_breakpoints>
521 <low_set_pc>: Declare.
522 (s390_target::low_supports_breakpoints): Define.
523 (s390_get_pc): Turn into...
524 (s390_target::low_get_pc): ...this.
525 (s390_set_pc): Turn into...
526 (s390_target::low_set_pc): ...this.
527 (the_low_target): Remove the op fields.
528 * linux-tic6x-low.cc (class tic6x_target)
529 <low_supports_breakpoints>
531 <low_set_pc>: Declare.
532 (tic6x_target::low_supports_breakpoints): Define.
533 (tic6x_get_pc): Turn into...
534 (tic6x_target::low_get_pc): ...this.
535 (tic6x_set_pc): Turn into...
536 (tic6x_target::low_set_pc): ...this.
537 (the_low_target): Remove the op fields.
539 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
541 Turn some more static methods in linux-low into private methods
542 of linux_process_target.
544 * linux-low.cc (get_pc): Turn into...
545 (linux_process_target::get_pc): ...this.
546 (save_stop_reason): Turn into...
547 (linux_process_target::save_stop_reason): ...this.
548 (thread_still_has_status_pending_p): Turn into...
549 (linux_process_target::thread_still_has_status_pending): ...this.
550 (status_pending_p_callback): Turn into...
551 (linux_process_target::status_pending_p_callback): ...this.
552 (resume_stopped_resumed_lwps): Turn into...
553 (linux_process_target::resume_stopped_resumed_lwps): ...this.
554 (install_software_single_step_breakpoints): Turn into...
555 (linux_process_target::install_software_single_step_breakpoints):
557 (single_step): Turn into...
558 (linux_process_target::single_step): ...this.
559 (linux_resume_one_lwp_throw): Turn into...
560 (linux_process_target::resume_one_lwp_throw): ...this.
561 (linux_resume_one_lwp): Turn into...
562 (linux_process_target::resume_one_lwp): ...this.
563 (resume_status_pending_p): Turn into...
564 (linux_process_target::resume_status_pending): ...this.
565 (need_step_over_p): Turn into...
566 (linux_process_target::thread_needs_step_over): ...this.
567 (linux_resume_one_thread): Turn into...
568 (linux_process_target::resume_one_thread): ...this.
569 (proceed_one_lwp): Turn into...
570 (linux_process_target::proceed_one_lwp): ...this.
571 (unsuspend_and_proceed_one_lwp): Turn into...
572 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
574 Update the calls/references to the above functions below.
576 (linux_process_target::handle_extended_wait)
577 (linux_process_target::filter_event)
578 (linux_process_target::wait_for_event_filtered)
579 (linux_process_target::wait_1)
580 (linux_process_target::move_out_of_jump_pad)
581 (linux_process_target::start_step_over)
582 (linux_process_target::resume)
583 (linux_process_target::proceed_all_lwps)
584 (regsets_store_inferior_registers)
585 (linux_process_target::store_register)
587 * linux-low.h (class linux_process_target)
590 <thread_still_has_status_pending>
591 <status_pending_p_callback>
592 <resume_stopped_resumed_lwps>
593 <install_software_single_step_breakpoints>
595 <resume_one_lwp_throw>
597 <resume_status_pending>
598 <thread_needs_step_over>
601 <unsuspend_and_proceed_one_lwp>: Declare.
603 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
605 Turn the 'fetch_register' linux target op into a method of
606 linux_process_target.
608 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
609 (class linux_process_target) <low_fetch_register>: Declare.
610 * linux-x86-low.cc (the_low_target)
611 * linux-aarch64-low.cc (the_low_target)
612 * linux-arm-low.cc (the_low_target)
613 * linux-bfin-low.cc (the_low_target)
614 * linux-cris-low.cc (the_low_target)
615 * linux-crisv32-low.cc (the_low_target)
616 * linux-m32r-low.cc (the_low_target)
617 * linux-m68k-low.cc (the_low_target)
618 * linux-nios2-low.cc (the_low_target)
619 * linux-ppc-low.cc (the_low_target)
620 * linux-s390-low.cc (the_low_target)
621 * linux-sh-low.cc (the_low_target)
622 * linux-sparc-low.cc (the_low_target)
623 * linux-tic6x-low.cc (the_low_target)
624 * linux-tile-low.cc (the_low_target)
625 * linux-xtensa-low.cc (the_low_target): Remove the op field.
626 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
628 (ia64_fetch_register): Turn into...
629 (ia64_target::low_fetch_register): ...this.
630 (the_low_target): Remove the op field.
631 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
633 (mips_fetch_register): Turn into...
634 (mips_target::low_fetch_register): ...this.
635 (the_low_target): Remove the op field.
636 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
638 (riscv_fetch_register): Turn into...
639 (riscv_target::low_fetch_register): ...this.
640 (the_low_target): Remove the op field.
642 Update the callers below.
644 * linux-low.cc (linux_process_target::fetch_registers)
645 (linux_process_target::low_fetch_register)
647 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
649 Turn the 'cannot_fetch_register' and 'cannot_store_register'
650 linux target ops into methods of linux_process_target.
652 * linux-low.h (struct linux_target_ops): Remove the low target ops.
653 (class linux_process_target) <fetch_register>
655 <usr_fetch_inferior_registers>
656 <usr_store_inferior_registers>
657 <low_cannot_fetch_register>
658 <low_cannot_fetch_register> Declare.
659 * linux-low.cc (fetch_register): Turn into...
660 (linux_process_target::fetch_register): ...this.
661 (store_register): Turn into ...
662 (linux_process_target::store_register): ...this.
663 (usr_fetch_inferior_registers): Turn into...
664 (linux_process_target::usr_fetch_inferior_registers): ...this.
665 (usr_store_inferior_registers): Turn into...
666 (linux_process_target::usr_store_inferior_registers): ...this.
667 * linux-x86-low.cc (class x86_target)
668 <low_cannot_fetch_register>
669 <low_cannot_store_register>: Declare.
670 (x86_cannot_store_register): Turn into...
671 (x86_target::low_cannot_store_register): ...this.
672 (x86_cannot_fetch_register): Turn into...
673 (x86_target::low_cannot_fetch_register): ...this.
674 (the_low_target): Remove the target op fields.
675 * linux-aarch64-low.cc (class aarch64_target)
676 <low_cannot_fetch_register>
677 <low_cannot_store_register>: Declare.
678 (aarch64_target::low_cannot_fetch_register)
679 (aarch64_target::low_cannot_store_register): Define.
680 (the_low_target): Remove the op fields.
681 * linux-arm-low.cc (class arm_target)
682 <low_cannot_fetch_register>
683 <low_cannot_store_register>: Declare.
684 (arm_cannot_fetch_register): Turn into...
685 (arm_target::low_cannot_fetch_register): ...this.
686 (arm_cannot_store_register): Turn into...
687 (arm_target::low_cannot_store_register): ...this.
688 (the_low_target): Remove the op fields.
689 * linux-bfin-low.cc (class bfin_target)
690 <low_cannot_fetch_register>
691 <low_cannot_store_register>: Declare.
692 (bfin_cannot_fetch_register): Turn into...
693 (bfin_target::low_cannot_fetch_register): ...this.
694 (bfin_cannot_store_register): Turn into...
695 (bfin_target::low_cannot_store_register): ...this.
696 (the_low_target): Remove the op fields.
697 * linux-cris-low.cc (class cris_target)
698 <low_cannot_fetch_register>
699 <low_cannot_store_register>: Declare.
700 (cris_cannot_fetch_register): Turn into...
701 (cris_target::low_cannot_fetch_register): ...this.
702 (cris_cannot_store_register): Turn into...
703 (cris_target::low_cannot_store_register): ...this.
704 (the_low_target): Remove the op fields.
705 * linux-crisv32-low.cc (class crisv32_target)
706 <low_cannot_fetch_register>
707 <low_cannot_store_register>: Declare.
708 (crisv32_target::low_cannot_fetch_register)
709 (crisv32_target::low_cannot_store_register): Define.
710 (the_low_target): Remove the op fields.
711 * linux-ia64-low.cc (class ia64_target)
712 <low_cannot_fetch_register>
713 <low_cannot_store_register>: Declare.
714 (ia64_cannot_fetch_register): Turn into...
715 (ia64_target::low_cannot_fetch_register): ...this.
716 (ia64_cannot_store_register): Turn into...
717 (ia64_target::low_cannot_store_register): ...this.
718 (the_low_target): Remove the op fields.
719 * linux-m32r-low.cc (class m32r_target)
720 <low_cannot_fetch_register>
721 <low_cannot_store_register>: Declare.
722 (m32r_cannot_fetch_register): Turn into...
723 (m32r_target::low_cannot_fetch_register): ...this.
724 (m32r_cannot_store_register): Turn into...
725 (m32r_target::low_cannot_store_register): ...this.
726 (the_low_target): Remove the op fields.
727 * linux-m68k-low.cc (class m68k_target)
728 <low_cannot_fetch_register>
729 <low_cannot_store_register>: Declare.
730 (m68k_cannot_fetch_register): Turn into...
731 (m68k_target::low_cannot_fetch_register): ...this.
732 (m68k_cannot_store_register): Turn into...
733 (m68k_target::low_cannot_store_register): ...this.
734 (the_low_target): Remove the op fields.
735 * linux-mips-low.cc (class mips_target)
736 <low_cannot_fetch_register>
737 <low_cannot_store_register>: Declare.
738 (mips_cannot_fetch_register): Turn into...
739 (mips_target::low_cannot_fetch_register): ...this.
740 (mips_cannot_store_register): Turn into...
741 (mips_target::low_cannot_store_register): ...this.
742 (get_usrregs_info): Inline at the call sites in
743 low_cannot_fetch_register and low_cannot_store_register,
745 (the_low_target): Remove the op fields.
746 * linux-nios2-low.cc (class nios2_target)
747 <low_cannot_fetch_register>
748 <low_cannot_store_register>: Declare.
749 (nios2_cannot_fetch_register): Turn into...
750 (nios2_target::low_cannot_fetch_register): ...this.
751 (nios2_cannot_store_register): Turn into...
752 (nios2_target::low_cannot_store_register): ...this.
753 (the_low_target): Remove the op fields.
754 * linux-ppc-low.cc (class ppc_target)
755 <low_cannot_fetch_register>
756 <low_cannot_store_register>: Declare.
757 (ppc_cannot_fetch_register): Turn into...
758 (ppc_target::low_cannot_fetch_register): ...this.
759 (ppc_cannot_store_register): Turn into...
760 (ppc_target::low_cannot_store_register): ...this.
761 (the_low_target): Remove the op fields.
762 * linux-riscv-low.cc (class riscv_target)
763 <low_cannot_fetch_register>
764 <low_cannot_store_register>: Declare.
765 (riscv_target::low_cannot_fetch_register)
766 (riscv_target::low_cannot_store_register): Define.
767 (the_low_target): Remove the op fields.
768 * linux-s390-low.cc (class s390_target)
769 <low_cannot_fetch_register>
770 <low_cannot_store_register>: Declare.
771 (s390_cannot_fetch_register): Turn into...
772 (s390_target::low_cannot_fetch_register): ...this.
773 (s390_cannot_store_register): Turn into...
774 (s390_target::low_cannot_store_register): ...this.
775 (the_low_target): Remove the op fields.
776 * linux-sh-low.cc (class sh_target)
777 <low_cannot_fetch_register>
778 <low_cannot_store_register>: Declare.
779 (sh_cannot_fetch_register): Turn into...
780 (sh_target::low_cannot_fetch_register): ...this.
781 (sh_cannot_store_register): Turn into...
782 (sh_target::low_cannot_store_register): ...this.
783 (the_low_target): Remove the op fields.
784 * linux-sparc-low.cc (class sparc_target)
785 <low_cannot_fetch_register>
786 <low_cannot_store_register>: Declare.
787 (sparc_cannot_fetch_register): Turn into...
788 (sparc_target::low_cannot_fetch_register): ...this.
789 (sparc_cannot_store_register): Turn into...
790 (sparc_target::low_cannot_store_register): ...this.
791 (the_low_target): Remove the op fields.
792 * linux-tic6x-low.cc (class tic6x_target)
793 <low_cannot_fetch_register>
794 <low_cannot_store_register>: Declare.
795 (tic6x_cannot_fetch_register): Turn into...
796 (tic6x_target::low_cannot_fetch_register): ...this.
797 (tic6x_cannot_store_register): Turn into...
798 (tic6x_target::low_cannot_store_register): ...this.
799 (the_low_target): Remove the op fields.
800 * linux-tile-low.cc (class tile_target)
801 <low_cannot_fetch_register>
802 <low_cannot_store_register>: Declare.
803 (tile_cannot_fetch_register): Turn into...
804 (tile_target::low_cannot_fetch_register): ...this.
805 (tile_cannot_store_register): Turn into...
806 (tile_target::low_cannot_store_register): ...this.
807 (the_low_target): Remove the op fields.
808 * linux-xtensa-low.cc (class xtensa_target)
809 <low_cannot_fetch_register>
810 <low_cannot_store_register>: Declare.
811 (xtensa_target::low_cannot_fetch_register)
812 (xtensa_target::low_cannot_store_register): Define.
813 (the_low_target): Remove the op fields.
815 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
817 Turn the 'regs_info' linux target op into a method of
818 linux_process_target.
820 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
821 (class linux_process_target) <get_regs_info>: Define.
823 Update the callers below.
825 * linux-low.cc (linux_process_target::fetch_registers)
826 (linux_process_target::store_registers)
827 * proc-service.cc (gregset_info)
829 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
830 (x86_linux_regs_info): Turn into ...
831 (x86_target::get_regs_info): ...this.
832 (the_low_target): Remove the op field.
833 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
835 (aarch64_regs_info): Turn into ...
836 (aarch64_target::get_regs_info): ...this.
837 (the_low_target): Remove the op field.
838 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
839 (arm_regs_info): Turn into ...
840 (arm_target::get_regs_info): ...this.
841 (the_low_target): Remove the op field.
842 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
843 (bfin_regs_info): Turn into ...
844 (bfin_target::get_regs_info): ...this.
845 (the_low_target): Remove the op field.
846 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
847 (cris_regs_info): Turn into ...
848 (cris_target::get_regs_info): ...this.
849 (the_low_target): Remove the op field.
850 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
852 (crisv32_regs_info): Turn into ...
853 (crisv32_target::get_regs_info): ...this.
854 (the_low_target): Remove the op field.
855 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
856 (ia64_regs_info): Turn into ...
857 (ia64_target::get_regs_info): ...this.
858 (the_low_target): Remove the op field.
859 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
860 (m32r_regs_info): Turn into ...
861 (m32r_target::get_regs_info): ...this.
862 (the_low_target): Remove the op field.
863 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
864 (m68k_regs_info): Turn into ...
865 (m68k_target::get_regs_info): ...this.
866 (the_low_target): Remove the op field.
867 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
868 (mips_regs_info): Turn into ...
869 (mips_target::get_regs_info): ...this.
870 (the_low_target): Remove the op field.
871 (get_usrregs_info): Update the call to the op.
872 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
873 (nios2_regs_info): Turn into ...
874 (nios2_target::get_regs_info): ...this.
875 (the_low_target): Remove the op field.
876 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
877 (ppc_regs_info): Turn into ...
878 (ppc_target::get_regs_info): ...this.
879 (the_low_target): Remove the op field.
880 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
881 (riscv_regs_info): Turn into ...
882 (riscv_target::get_regs_info): ...this.
883 (the_low_target): Remove the op field.
884 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
885 (s390_regs_info): Turn into ...
886 (s390_target::get_regs_info): ...this.
887 (the_low_target): Remove the op field.
888 (s390_collect_ptrace_register)
889 (s390_supply_ptrace_register)
890 (s390_fill_gregset): Update the call to the op.
891 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
892 (sh_regs_info): Turn into ...
893 (sh_target::get_regs_info): ...this.
894 (the_low_target): Remove the op field.
895 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
896 (sparc_regs_info): Turn into ...
897 (sparc_target::get_regs_info): ...this.
898 (the_low_target): Remove the op field.
899 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
900 (tic6x_regs_info): Turn into ...
901 (tic6x_target::get_regs_info): ...this.
902 (the_low_target): Remove the op field.
903 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
904 (tile_regs_info): Turn into ...
905 (tile_target::get_regs_info): ...this.
906 (the_low_target): Remove the op field.
907 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
909 (xtensa_regs_info): Turn into ...
910 (xtensa_target::get_regs_info): ...this.
911 (the_low_target): Remove the op field.
913 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
915 Turn the 'arch_setup' linux target op into a method of
916 linux_process_target.
918 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
919 (class linux_process_target) <arch_setup_thread>
920 <low_arch_setup>: New declarations.
921 * linux-low.cc (linux_arch_setup): Delete.
922 (linux_arch_setup_thread): Turn into...
923 (linux_process_target::arch_setup_thread): ... this.
925 Update the callers below.
927 (linux_process_target::handle_extended_wait)
928 (linux_process_target::post_create_inferior)
929 (linux_process_target::filter_event)
931 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
933 (x86_linux_update_xmltarget): Turn into...
934 (x86_target::update_xmltarget): ...this.
935 (x86_linux_process_qsupported): Update the call to
936 x86_linux_update_xmltarget.
937 (x86_arch_setup): Turn into ...
938 (x86_target::low_arch_setup): ...this.
939 (the_low_target): Remove the op field.
940 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
942 (aarch64_arch_setup): Turn into ...
943 (aarch64_target::low_arch_setup): ...this.
944 (the_low_target): Remove the op field.
945 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
947 (arm_arch_setup): Turn into ...
948 (arm_target::low_arch_setup): ...this.
949 (the_low_target): Remove the op field.
950 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
952 (bfin_arch_setup): Turn into ...
953 (bfin_target::low_arch_setup): ...this.
954 (the_low_target): Remove the op field.
955 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
957 (cris_arch_setup): Turn into ...
958 (cris_target::low_arch_setup): ...this.
959 (the_low_target): Remove the op field.
960 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
962 (crisv32_arch_setup): Turn into ...
963 (crisv32_target::low_arch_setup): ...this.
964 (the_low_target): Remove the op field.
965 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
967 (ia64_arch_setup): Turn into ...
968 (ia64_target::low_arch_setup): ...this.
969 (the_low_target): Remove the op field.
970 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
972 (m32r_arch_setup): Turn into ...
973 (m32r_target::low_arch_setup): ...this.
974 (the_low_target): Remove the op field.
975 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
977 (m68k_arch_setup): Turn into ...
978 (m68k_target::low_arch_setup): ...this.
979 (the_low_target): Remove the op field.
980 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
982 (mips_arch_setup): Turn into ...
983 (mips_target::low_arch_setup): ...this.
984 (the_low_target): Remove the op field.
985 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
987 (nios2_arch_setup): Turn into ...
988 (nios2_target::low_arch_setup): ...this.
989 (the_low_target): Remove the op field.
990 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
992 (ppc_arch_setup): Turn into ...
993 (ppc_target::low_arch_setup): ...this.
994 (the_low_target): Remove the op field.
995 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
997 (riscv_arch_setup): Turn into ...
998 (riscv_target::low_arch_setup): ...this.
999 (the_low_target): Remove the op field.
1000 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1002 (s390_arch_setup): Turn into ...
1003 (s390_target::low_arch_setup): ...this.
1004 (the_low_target): Remove the op field.
1005 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1007 (sh_arch_setup): Turn into ...
1008 (sh_target::low_arch_setup): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1012 (sparc_arch_setup): Turn into ...
1013 (sparc_target::low_arch_setup): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1017 (tic6x_arch_setup): Turn into ...
1018 (tic6x_target::low_arch_setup): ...this.
1019 (the_low_target): Remove the op field.
1020 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1022 (tile_arch_setup): Turn into ...
1023 (tile_target::low_arch_setup): ...this.
1024 (the_low_target): Remove the op field.
1025 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1027 (xtensa_arch_setup): Turn into ...
1028 (xtensa_target::low_arch_setup): ...this.
1029 (the_low_target): Remove the op field.
1031 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1033 * linux-low.h (the_linux_target): New extern declaration.
1034 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1036 (the_linux_target): Remove.
1037 * linux-x86-low.cc (class x86_target): New class.
1038 (the_x86_target): New static object.
1039 (the_linux_target): Define as pointer to the_x86_target.
1040 * linux-aarch64-low.cc (class aarch64_target): New class.
1041 (the_aarch64_target): New static object.
1042 (the_linux_target): Define as pointer to the_aarch64_target.
1043 * linux-arm-low.cc (class arm_target): New class.
1044 (the_arm_target): New static object.
1045 (the_linux_target): Define as pointer to the_arm_target.
1046 * linux-bfin-low.cc (class bfin_target): New class.
1047 (the_bfin_target): New static object.
1048 (the_linux_target): Define as pointer to the_bfin_target.
1049 * linux-cris-low.cc (class cris_target): New class.
1050 (the_cris_target): New static object.
1051 (the_linux_target): Define as pointer to the_cris_target.
1052 * linux-crisv32-low.cc (class crisv32_target): New class.
1053 (the_crisv32_target): New static object.
1054 (the_linux_target): Define as pointer to the_crisv32_target.
1055 * linux-ia64-low.cc (class ia64_target): New class.
1056 (the_ia64_target): New static object.
1057 (the_linux_target): Define as pointer to the_ia64_target.
1058 * linux-m32r-low.cc (class m32r_target): New class.
1059 (the_m32r_target): New static object.
1060 (the_linux_target): Define as pointer to the_m32r_target.
1061 * linux-m68k-low.cc (class m68k_target): New class.
1062 (the_m68k_target): New static object.
1063 (the_linux_target): Define as pointer to the_m68k_target.
1064 * linux-mips-low.cc (class mips_target): New class.
1065 (the_mips_target): New static object.
1066 (the_linux_target): Define as pointer to the_mips_target.
1067 * linux-nios2-low.cc (class nios2_target): New class.
1068 (the_nios2_target): New static object.
1069 (the_linux_target): Define as pointer to the_nios2_target.
1070 * linux-ppc-low.cc (class ppc_target): New class.
1071 (the_ppc_target): New static object.
1072 (the_linux_target): Define as pointer to the_ppc_target.
1073 * linux-riscv-low.cc (class riscv_target): New class.
1074 (the_riscv_target): New static object.
1075 (the_linux_target): Define as pointer to the_riscv_target.
1076 * linux-s390-low.cc (class s390_target): New class.
1077 (the_s390_target): New static object.
1078 (the_linux_target): Define as pointer to the_s390_target.
1079 * linux-sh-low.cc (class sh_target): New class.
1080 (the_sh_target): New static object.
1081 (the_linux_target): Define as pointer to the_sh_target.
1082 * linux-sparc-low.cc (class sparc_target): New class.
1083 (the_sparc_target): New static object.
1084 (the_linux_target): Define as pointer to the_sparc_target.
1085 * linux-tic6x-low.cc (class tic6x_target): New class.
1086 (the_tic6x_target): New static object.
1087 (the_linux_target): Define as pointer to the_tic6x_target.
1088 * linux-tile-low.cc (class tile_target): New class.
1089 (the_tile_target): New static object.
1090 (the_linux_target): Define as pointer to the_tile_target.
1091 * linux-xtensa-low.cc (class xtensa_target): New class.
1092 (the_xtensa_target): New static object.
1093 (the_linux_target): Define as pointer to the_xtensa_target.
1095 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1097 Turn some static functions in linux-low.cc into private methods of
1098 linux_process_target.
1100 * linux-low.cc (handle_extended_wait): Turn into ...
1101 (linux_process_target::handle_extended_wait): ...this. Call
1102 'mourn' on 'this' object instead of 'the_target'.
1103 (maybe_move_out_of_jump_pad): Turn into...
1104 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1105 (linux_low_filter_event): Turn into...
1106 (linux_process_target::filter_event): ...this.
1107 (linux_wait_for_event_filtered): Turn into...
1108 (linux_process_target::wait_for_event_filtered): ...this.
1109 (linux_wait_for_event): Turn into...
1110 (linux_process_target::wait_for_event): ...this.
1111 (linux_wait_1): Turn into...
1112 (linux_process_target::wait_1): ...this.
1113 (wait_for_sigstop): Turn into...
1114 (linux_process_target::wait_for_sigstop): ...this.
1115 (move_out_of_jump_pad_callback): Turn into...
1116 (linux_process_target::move_out_of_jump_pad): ...this.
1117 (stop_all_lwps): Turn into...
1118 (linux_process_target::stop_all_lwps): ...this.
1119 (start_step_over): Turn into...
1120 (linux_process_target::start_step_over): ...this.
1121 (complete_ongoing_step_over): Turn into...
1122 (linux_process_target::complete_ongoing_step_over): ...this.
1123 (proceed_all_lwps): Turn into...
1124 (linux_process_target::proceed_all_lwps): ...this.
1125 (unstop_all_lwps): Turn into...
1126 (linux_process_target::unstop_all_lwps): ...this.
1128 * linux-low.h (class linux_process_target)
1129 <handle_extended_wait>
1130 <maybe_move_out_of_jump_pad>
1132 <wait_for_event_filtered>
1136 <move_out_of_jump_pad>
1139 <complete_ongoing_step_over>
1141 <unstop_all_lwps>: Declare.
1143 Update the callers below.
1145 * linux-low.cc (linux_process_target::attach): Update.
1146 (linux_process_target::stabilize_threads): Ditto.
1147 (linux_process_target::wait): Ditto.
1149 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1151 * linux-low.h (struct linux_target_ops): Update the comment for
1152 'cannot_store_register' to return 0 or 1.
1153 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1156 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
1158 * config.in: Re-generate.
1159 * configure: Re-generate.
1161 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1163 * regcache.cc (find_register_by_number): Update.
1164 * tdesc.cc (init_target_desc): Likewise.
1165 * tdesc.h (target_desc::reg_defs): Likewise.
1167 2020-03-12 Tom Tromey <tom@tromey.com>
1169 * configure: Rebuild.
1170 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1171 (WIN32APILIBS): New subst.
1172 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1174 (gdbsupport/%.o): Remove target.
1175 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1176 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1177 (WIN32APILIBS): New variable.
1178 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1179 (gdbreplay$(EXEEXT)): Likewise.
1181 2020-03-12 Tom Tromey <tom@tromey.com>
1183 * config.in, configure: Rebuild.
1184 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1185 * acinclude.m4: Include gettext-sister.m4.
1186 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1188 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1189 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1191 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1193 * acinclude.m4: Update path to selftest.m4.
1195 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1197 * configure.ac: Don't source bfd/development.sh, move
1198 GDB_AC_COMMON higher.
1199 * configure: Re-generate.
1201 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1203 * configure: Re-generate.
1205 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
1207 * configure: Re-generate.
1209 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1211 * .dir-locals.el: New file.
1213 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1215 * .gitattributes: New file.
1217 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1219 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1220 reply into an S reply.
1221 * server.cc (disable_packet_T): New global.
1222 (captured_main): Set new global when appropriate.
1223 * server.h (disable_packet_T): Declare.
1225 2020-02-21 Tom Tromey <tom@tromey.com>
1227 * Makefile.in (mostlyclean): New target.
1229 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1231 * target.h (struct process_stratum_target): Remove.
1232 (class process_target): Rename to ...
1233 (class process_stratum_target): ... this.
1234 * linux-low.h (class linux_process_target): Derive from
1235 'process_stratum_target'.
1236 * linux-low.cc (linux_target_ops): Remove.
1237 (initialize_low): Set the_target to the singleton instance of
1238 linux_process_target.
1239 * lynx-low.h (class lynx_process_target): Derive from
1240 'process_stratum_target'.
1241 * lynx-low.cc (lynx_target_ops): Remove.
1242 (initialize_low): Set the_target to the singleton instance of
1243 lynx_process_target.
1244 * nto-low.h (class nto_process_target): Derive from
1245 'process_stratum_target'.
1246 * nto-low.cc (nto_target_ops): Remove.
1247 (initialize_low): Set the_target to the singleton instance of
1249 * win32-low.h (class win32_process_target): Derive from
1250 'process_stratum_target'.
1251 * win32-low.cc (win32_target_ops): Remove.
1252 (initialize_low): Set the_target to the singleton instance of
1253 win32_process_target.
1255 Replace 'the_target->pt' with 'the_target' in the uses below.
1257 * hostio.cc (hostio_error)
1262 * linux-aarch32-low.cc (arm_breakpoint_at)
1263 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1264 * linux-arm-low.cc (arm_sigreturn_next_pc)
1266 (arm_get_syscall_trapinfo)
1267 * linux-cris-low.cc (cris_breakpoint_at)
1268 * linux-crisv32-low.cc (cris_breakpoint_at)
1269 * linux-low.cc (handle_extended_wait)
1272 (linux_process_target::breakpoint_kind_from_pc)
1274 * linux-m32r-low.cc (m32r_breakpoint_at)
1275 * linux-mips-low.cc (mips_breakpoint_at)
1276 * linux-nios2-low.cc (nios2_breakpoint_at)
1277 * linux-ppc-low.cc (ppc_breakpoint_at)
1278 * linux-s390-low.cc (s390_get_hwcap)
1279 * linux-sh-low.cc (sh_breakpoint_at)
1280 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1281 (sparc_store_gregset_from_stack)
1282 (sparc_breakpoint_at)
1283 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1284 * linux-tile-low.cc (tile_breakpoint_at)
1285 * linux-x86-low.cc (x86_breakpoint_at)
1286 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1287 * mem-break.cc (bp_size)
1289 (insert_memory_breakpoint)
1290 (set_raw_breakpoint_at)
1291 (delete_raw_breakpoint)
1293 (uninsert_raw_breakpoint)
1294 (reinsert_raw_breakpoint)
1295 (validate_inserted_breakpoint)
1296 * regcache.cc (regcache_read_pc)
1298 * remote-utils.cc (putpkt_binary_1)
1301 (prepare_resume_reply)
1302 * server.cc (handle_general_set)
1305 (handle_qxfer_exec_file)
1306 (handle_qxfer_libraries_svr4)
1307 (handle_qxfer_osdata)
1308 (handle_qxfer_siginfo)
1309 (handle_qxfer_fdpic)
1313 (queue_stop_reply_callback)
1315 * target.cc (prepare_to_access_memory)
1316 (done_accessing_memory)
1317 (read_inferior_memory)
1318 (target_write_memory)
1319 (target_stop_and_wait)
1321 (target_mourn_inferior)
1322 (target_continue_no_signal)
1324 (target_supports_multi_process)
1327 (target_create_inferior)
1328 (target_post_create_inferior)
1330 (target_supports_fork_events)
1331 (target_supports_vfork_events)
1332 (target_supports_exec_events)
1333 (target_handle_new_gdb_connection)
1336 (fetch_inferior_registers)
1337 (store_inferior_registers)
1339 (target_supports_non_stop)
1341 (target_process_qsupported)
1342 (target_supports_catch_syscall)
1343 (target_get_ipa_tdesc_idx)
1344 (target_supports_tracepoints)
1345 (target_supports_fast_tracepoints)
1346 (target_get_min_fast_tracepoint_insn_len)
1347 (target_thread_stopped)
1349 (target_unpause_all)
1350 (target_stabilize_threads)
1351 (target_install_fast_tracepoint_jump_pad)
1353 (target_supports_disable_randomization)
1354 (target_supports_agent)
1355 (target_enable_btrace)
1356 (target_disable_btrace)
1357 (target_read_btrace)
1358 (target_read_btrace_conf)
1359 (target_supports_range_stepping)
1360 (target_supports_stopped_by_sw_breakpoint)
1361 (target_stopped_by_sw_breakpoint)
1362 (target_supports_stopped_by_hw_breakpoint)
1363 (target_supports_hardware_single_step)
1364 (target_stopped_by_hw_breakpoint)
1365 (target_breakpoint_kind_from_pc)
1366 (target_breakpoint_kind_from_current_state)
1367 (target_supports_software_single_step)
1368 (target_core_of_thread)
1369 (target_thread_name)
1370 (target_thread_handle)
1371 * win32-low.cc (do_initial_child_stuff)
1373 Rename target op default definitions listed below.
1375 * target.cc (process_target::post_create_inferior): Rename as ...
1376 (process_stratum_target::post_create_inferior): ... this.
1377 (process_target::prepare_to_access_memory): Rename as ...
1378 (process_stratum_target::prepare_to_access_memory): ... this.
1379 (process_target::done_accessing_memory): Rename as ...
1380 (process_stratum_target::done_accessing_memory): ... this.
1381 (process_target::look_up_symbols): Rename as ...
1382 (process_stratum_target::look_up_symbols): ... this.
1383 (process_target::supports_read_auxv): Rename as ...
1384 (process_stratum_target::supports_read_auxv): ... this.
1385 (process_target::read_auxv): Rename as ...
1386 (process_stratum_target::read_auxv): ... this.
1387 (process_target::supports_z_point_type): Rename as ...
1388 (process_stratum_target::supports_z_point_type): ... this.
1389 (process_target::insert_point): Rename as ...
1390 (process_stratum_target::insert_point): ... this.
1391 (process_target::remove_point): Rename as ...
1392 (process_stratum_target::remove_point): ... this.
1393 (process_target::stopped_by_sw_breakpoint): Rename as ...
1394 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
1395 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
1396 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
1397 (process_target::stopped_by_hw_breakpoint): Rename as ...
1398 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
1399 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
1400 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
1401 (process_target::supports_hardware_single_step): Rename as ...
1402 (process_stratum_target::supports_hardware_single_step): ... this.
1403 (process_target::stopped_by_watchpoint): Rename as ...
1404 (process_stratum_target::stopped_by_watchpoint): ... this.
1405 (process_target::stopped_data_address): Rename as ...
1406 (process_stratum_target::stopped_data_address): ... this.
1407 (process_target::supports_read_offsets): Rename as ...
1408 (process_stratum_target::supports_read_offsets): ... this.
1409 (process_target::read_offsets): Rename as ...
1410 (process_stratum_target::read_offsets): ... this.
1411 (process_target::supports_get_tls_address): Rename as ...
1412 (process_stratum_target::supports_get_tls_address): ... this.
1413 (process_target::get_tls_address): Rename as ...
1414 (process_stratum_target::get_tls_address): ... this.
1415 (process_target::hostio_last_error): Rename as ...
1416 (process_stratum_target::hostio_last_error): ... this.
1417 (process_target::supports_qxfer_osdata): Rename as ...
1418 (process_stratum_target::supports_qxfer_osdata): ... this.
1419 (process_target::qxfer_osdata): Rename as ...
1420 (process_stratum_target::qxfer_osdata): ... this.
1421 (process_target::supports_qxfer_siginfo): Rename as ...
1422 (process_stratum_target::supports_qxfer_siginfo): ... this.
1423 (process_target::qxfer_siginfo): Rename as ...
1424 (process_stratum_target::qxfer_siginfo): ... this.
1425 (process_target::supports_non_stop): Rename as ...
1426 (process_stratum_target::supports_non_stop): ... this.
1427 (process_target::async): Rename as ...
1428 (process_stratum_target::async): ... this.
1429 (process_target::start_non_stop): Rename as ...
1430 (process_stratum_target::start_non_stop): ... this.
1431 (process_target::supports_multi_process): Rename as ...
1432 (process_stratum_target::supports_multi_process): ... this.
1433 (process_target::supports_fork_events): Rename as ...
1434 (process_stratum_target::supports_fork_events): ... this.
1435 (process_target::supports_vfork_events): Rename as ...
1436 (process_stratum_target::supports_vfork_events): ... this.
1437 (process_target::supports_exec_events): Rename as ...
1438 (process_stratum_target::supports_exec_events): ... this.
1439 (process_target::handle_new_gdb_connection): Rename as ...
1440 (process_stratum_target::handle_new_gdb_connection): ... this.
1441 (process_target::handle_monitor_command): Rename as ...
1442 (process_stratum_target::handle_monitor_command): ... this.
1443 (process_target::core_of_thread): Rename as ...
1444 (process_stratum_target::core_of_thread): ... this.
1445 (process_target::supports_read_loadmap): Rename as ...
1446 (process_stratum_target::supports_read_loadmap): ... this.
1447 (process_target::read_loadmap): Rename as ...
1448 (process_stratum_target::read_loadmap): ... this.
1449 (process_target::process_qsupported): Rename as ...
1450 (process_stratum_target::process_qsupported): ... this.
1451 (process_target::supports_tracepoints): Rename as ...
1452 (process_stratum_target::supports_tracepoints): ... this.
1453 (process_target::read_pc): Rename as ...
1454 (process_stratum_target::read_pc): ... this.
1455 (process_target::write_pc): Rename as ...
1456 (process_stratum_target::write_pc): ... this.
1457 (process_target::supports_thread_stopped): Rename as ...
1458 (process_stratum_target::supports_thread_stopped): ... this.
1459 (process_target::thread_stopped): Rename as ...
1460 (process_stratum_target::thread_stopped): ... this.
1461 (process_target::supports_get_tib_address): Rename as ...
1462 (process_stratum_target::supports_get_tib_address): ... this.
1463 (process_target::get_tib_address): Rename as ...
1464 (process_stratum_target::get_tib_address): ... this.
1465 (process_target::pause_all): Rename as ...
1466 (process_stratum_target::pause_all): ... this.
1467 (process_target::unpause_all): Rename as ...
1468 (process_stratum_target::unpause_all): ... this.
1469 (process_target::stabilize_threads): Rename as ...
1470 (process_stratum_target::stabilize_threads): ... this.
1471 (process_target::supports_fast_tracepoints): Rename as ...
1472 (process_stratum_target::supports_fast_tracepoints): ... this.
1473 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
1474 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
1475 (process_target::emit_ops): Rename as ...
1476 (process_stratum_target::emit_ops): ... this.
1477 (process_target::supports_disable_randomization): Rename as ...
1478 (process_stratum_target::supports_disable_randomization): ... this.
1479 (process_target::supports_qxfer_libraries_svr4): Rename as ...
1480 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
1481 (process_target::qxfer_libraries_svr4): Rename as ...
1482 (process_stratum_target::qxfer_libraries_svr4): ... this.
1483 (process_target::supports_agent): Rename as ...
1484 (process_stratum_target::supports_agent): ... this.
1485 (process_target::enable_btrace): Rename as ...
1486 (process_stratum_target::enable_btrace): ... this.
1487 (process_target::disable_btrace): Rename as ...
1488 (process_stratum_target::disable_btrace): ... this.
1489 (process_target::read_btrace): Rename as ...
1490 (process_stratum_target::read_btrace): ... this.
1491 (process_target::read_btrace_conf): Rename as ...
1492 (process_stratum_target::read_btrace_conf): ... this.
1493 (process_target::supports_range_stepping): Rename as ...
1494 (process_stratum_target::supports_range_stepping): ... this.
1495 (process_target::supports_pid_to_exec_file): Rename as ...
1496 (process_stratum_target::supports_pid_to_exec_file): ... this.
1497 (process_target::pid_to_exec_file): Rename as ...
1498 (process_stratum_target::pid_to_exec_file): ... this.
1499 (process_target::supports_multifs): Rename as ...
1500 (process_stratum_target::supports_multifs): ... this.
1501 (process_target::multifs_open): Rename as ...
1502 (process_stratum_target::multifs_open): ... this.
1503 (process_target::multifs_unlink): Rename as ...
1504 (process_stratum_target::multifs_unlink): ... this.
1505 (process_target::multifs_readlink): Rename as ...
1506 (process_stratum_target::multifs_readlink): ... this.
1507 (process_target::breakpoint_kind_from_pc): Rename as ...
1508 (process_stratum_target::breakpoint_kind_from_pc): ... this.
1509 (process_target::breakpoint_kind_from_current_state): Rename as ...
1510 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
1511 (process_target::thread_name): Rename as ...
1512 (process_stratum_target::thread_name): ... this.
1513 (process_target::thread_handle): Rename as ...
1514 (process_stratum_target::thread_handle): ... this.
1515 (process_target::supports_software_single_step): Rename as ...
1516 (process_stratum_target::supports_software_single_step): ... this.
1517 (process_target::supports_catch_syscall): Rename as ...
1518 (process_stratum_target::supports_catch_syscall): ... this.
1519 (process_target::get_ipa_tdesc_idx): Rename as ...
1520 (process_stratum_target::get_ipa_tdesc_idx): ... this.
1522 2020-02-20 Pedro Alves <palves@redhat.com>
1524 * target.cc (set_target_ops): Simply copy the given target pointer
1525 instead of creating a copy of the pointed object.
1527 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1529 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
1532 * target.h (struct process_stratum_target): Remove the target op.
1533 (class process_target): Add the target op.
1534 (target_get_ipa_tdesc_idx): Update the macro.
1535 * target.cc (process_target::get_ipa_tdesc_idx): Define.
1537 Update the derived classes and callers below.
1539 * linux-low.cc (linux_target_ops): Update.
1540 (linux_get_ipa_tdesc_idx): Turn into ...
1541 (linux_process_target::get_ipa_tdesc_idx): ... this.
1542 * linux-low.h (class linux_process_target): Update.
1543 * lynx-low.cc (lynx_target_ops): Update.
1544 * nto-low.cc (nto_target_ops): Update.
1545 * win32-low.cc (win32_target_ops): Update.
1547 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1549 Turn process_stratum_target's supports_catch_syscall op into a
1550 method of process_target.
1552 * target.h (struct process_stratum_target): Remove the target op.
1553 (class process_target): Add the target op.
1554 (target_supports_catch_syscall): Update the macro.
1555 * target.cc (process_target::supports_catch_syscall): Define.
1557 Update the derived classes and callers below.
1559 * linux-low.cc (linux_target_ops): Update.
1560 (linux_supports_catch_syscall): Turn into ...
1561 (linux_process_target::supports_catch_syscall): ... this.
1562 * linux-low.h (class linux_process_target): Update.
1563 * lynx-low.cc (lynx_target_ops): Update.
1564 * nto-low.cc (nto_target_ops): Update.
1565 * win32-low.cc (win32_target_ops): Update.
1567 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1569 Turn process_stratum_target's supports_software_single_step op
1570 into a method of process_target.
1572 * target.h (struct process_stratum_target): Remove the target op.
1573 (class process_target): Add the target op.
1574 (target_supports_software_single_step): Update the macro.
1575 * target.cc (process_target::supports_software_single_step): Define.
1577 Update the derived classes and callers below.
1579 * linux-low.cc (linux_target_ops): Update.
1580 (linux_supports_software_single_step): Turn into ...
1581 (linux_process_target::supports_software_single_step): ... this.
1582 * linux-low.h (class linux_process_target): Update.
1583 * lynx-low.cc (lynx_target_ops): Update.
1584 * nto-low.cc (nto_target_ops): Update.
1585 * win32-low.cc (win32_target_ops): Update.
1587 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1589 Turn process_stratum_target's thread_name and thread_handle ops
1590 into methods of process_target.
1592 * target.h (struct process_stratum_target): Remove the target ops.
1593 (class process_target): Add the target ops.
1594 (target_thread_name): Update the macro.
1595 (target_thread_handle): Update the macro.
1596 * target.cc (process_target::thread_name): Define.
1597 (process_target::thread_handle): Define.
1599 Update the derived classes and callers below.
1601 * linux-low.cc (linux_target_ops): Update.
1602 (linux_process_target::thread_name): Define.
1603 (linux_process_target::thread_handle): Define.
1604 * linux-low.h (class linux_process_target): Update.
1605 * lynx-low.cc (lynx_target_ops): Update.
1606 * nto-low.cc (nto_target_ops): Update.
1607 * win32-low.cc (win32_target_ops): Update.
1609 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1611 Turn process_stratum_target's breakpoint_kind_from_pc,
1612 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
1613 ops into methods of process_target.
1615 * target.h (struct process_stratum_target): Remove the target op.
1616 (class process_target): Add the target op.
1617 (target_breakpoint_kind_from_pc): Update the macro.
1618 (target_breakpoint_kind_from_current_state): Update the macro.
1619 (default_breakpoint_kind_from_pc): Remove declaration.
1620 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
1621 (process_target::breakpoint_kind_from_pc): ... this.
1622 (process_target::breakpoint_kind_from_current_state): Define.
1624 Update the derived classes and callers below.
1626 * mem-break.cc (bp_size): Update.
1627 (bp_opcode): Update.
1628 * linux-low.cc (linux_target_ops): Update.
1629 (linux_wait_1): Update.
1630 (linux_breakpoint_kind_from_pc): Turn into ...
1631 (linux_process_target::breakpoint_kind_from_pc): ... this.
1632 (linux_sw_breakpoint_from_kind): Turn into ...
1633 (linux_process_target::sw_breakpoint_from_kind): ... this.
1634 (linux_breakpoint_kind_from_current_state): Turn into ...
1635 (linux_process_target::breakpoint_kind_from_current_state): ... this.
1636 * linux-low.h (class linux_process_target): Update.
1637 * lynx-low.cc (lynx_target_ops): Update.
1638 (lynx_process_target::sw_breakpoint_from_kind): Define.
1639 * lynx-low.h (class lynx_process_target): Update.
1640 * nto-low.cc (nto_target_ops): Update.
1641 (nto_sw_breakpoint_from_kind): Turn into ...
1642 (nto_process_target::sw_breakpoint_from_kind): ... this.
1643 * nto-low.h (class nto_process_target): Update.
1644 * win32-low.cc (win32_target_ops): Update.
1645 (win32_sw_breakpoint_from_kind): Turn into ...
1646 (win32_process_target::sw_breakpoint_from_kind): ... this.
1647 * win32-low.h (class win32_process_target): Update.
1649 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1651 Turn process_stratum_target's multifs_open, multifs_readlink,
1652 multifs_unlink ops into methods of process_target.
1654 * target.h (struct process_stratum_target): Remove the target ops.
1655 (class process_target): Add the target ops. Also add
1657 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
1659 (process_target::supports_multifs): Define.
1660 (process_target::multifs_open): Define.
1661 (process_target::multifs_readlink): Define.
1662 (process_target::multifs_unlink): Define.
1664 Update the derived classes and callers below.
1666 * hostio.cc (handle_setfs): Update.
1667 (handle_open): Update.
1668 (handle_unlink): Update.
1669 (handle_readlink): Update.
1670 * linux-low.cc (linux_target_ops): Update.
1671 (linux_process_target::supports_multifs): Define.
1672 (linux_process_target::multifs_open): Define.
1673 (linux_process_target::multifs_readlink): Define.
1674 (linux_process_target::multifs_unlink): Define.
1675 * linux-low.h (class linux_process_target): Update.
1676 * lynx-low.cc (lynx_target_ops): Update.
1677 * nto-low.cc (nto_target_ops): Update.
1678 * win32-low.cc (win32_target_ops): Update.
1680 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1682 Turn process_stratum_target's pid_to_exec_file op into a method
1685 * target.h (struct process_stratum_target): Remove the target op.
1686 (class process_target): Add the target op. Also add
1687 'supports_pid_to_exec_file'.
1688 * target.cc (process_target::pid_to_exec_file): Define.
1689 (process_target::supports_pid_to_exec_file): Define.
1691 Update the derived classes and callers below.
1693 * server.cc (handle_qxfer_exec_file): Update.
1694 (handle_query): Update.
1695 * linux-low.cc (linux_target_ops): Update.
1696 (linux_process_target::supports_pid_to_exec_file): Define.
1697 (linux_process_target::pid_to_exec_file): Define.
1698 * linux-low.h (class linux_process_target): Update.
1699 * lynx-low.cc (lynx_target_ops): Update.
1700 * nto-low.cc (nto_target_ops): Update.
1701 * win32-low.cc (win32_target_ops): Update.
1703 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1705 Turn process_stratum_target's supports_range_stepping op into a
1706 method of process_target.
1708 * target.h (struct process_stratum_target): Remove the target op.
1709 (class process_target): Add the target op.
1710 (target_supports_range_stepping): Update the macro.
1711 * target.cc (process_target::supports_range_stepping): Define.
1713 Update the derived classes and callers below.
1715 * linux-low.cc (linux_target_ops): Update.
1716 (linux_supports_range_stepping): Turn into ...
1717 (linux_process_target::supports_range_stepping): ... this.
1718 * linux-low.h (class linux_process_target): Update.
1719 * lynx-low.cc (lynx_target_ops): Update.
1720 * nto-low.cc (nto_target_ops): Update.
1721 * win32-low.cc (win32_target_ops): Update.
1723 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1725 Turn process_stratum_target's btrace-related ops (enable_btrace,
1726 disable_btrace, read_btrace, read_btrace_conf) into methods of
1729 * target.h (struct process_stratum_target): Remove the target ops.
1730 (class process_target): Add the target ops.
1731 (target_enable_btrace): Update.
1732 (target_disable_btrace): Update.
1733 (target_read_btrace): Update.
1734 (target_read_btrace_conf): Update.
1735 * target.cc (process_target::enable_btrace): Define.
1736 (process_target::disable_btrace): Define.
1737 (process_target::read_btrace): Define.
1738 (process_target::read_btrace_conf): Define.
1740 Update the derived classes and callers below.
1742 * linux-low.cc (linux_target_ops): Update.
1743 (linux_process_target:enable_btrace): Define as a wrapper around
1744 linux_enable_btrace.
1745 (linux_low_disable_btrace): Turn into ...
1746 (linux_process_target::disable_btrace): ... this.
1747 (linux_low_read_btrace): Turn into ...
1748 (linux_process_target::read_btrace): ... this.
1749 (linux_low_btrace_conf): Turn into ...
1750 (linux_process_target::read_btrace_conf): ... this.
1751 * linux-low.h (class linux_process_target): Update.
1752 * lynx-low.cc (lynx_target_ops): Update.
1753 * nto-low.cc (nto_target_ops): Update.
1754 * win32-low.cc (win32_target_ops): Update.
1756 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1758 Turn process_stratum_target's supports_agent op into a method of
1761 * target.h (struct process_stratum_target): Remove the target op.
1762 (class process_target): Add the target op.
1763 (target_supports_agent): Update the macro.
1764 * target.cc (process_target::supports_agent): Define.
1766 Update the derived classes and callers below.
1768 * linux-low.cc (linux_target_ops): Update.
1769 (linux_supports_agent): Turn into ...
1770 (linux_process_target::supports_agent): ... this.
1771 * linux-low.h (class linux_process_target): Update.
1772 * lynx-low.cc (lynx_target_ops): Update.
1773 * nto-low.cc (nto_target_ops): Update.
1774 * win32-low.cc (win32_target_ops): Update.
1776 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1778 Turn process_stratum_target's qxfer_libraries_svr4 op into a
1779 method of process_target.
1781 * target.h (struct process_stratum_target): Remove the target op.
1782 (class process_target): Add the target op. Also add
1783 'supports_qxfer_libraries_svr4'.
1784 * target.cc (process_target::qxfer_libraries_svr4): Define.
1785 (process_target::supports_qxfer_libraries_svr4): Define.
1787 Update the derived classes and callers below.
1789 * server.cc (handle_qxfer_libraries_svr4): Update.
1790 (handle_query): Update.
1791 * linux-low.cc (linux_target_ops): Update.
1792 (linux_process_target::supports_qxfer_libraries_svr4): Define.
1793 (linux_qxfer_libraries_svr4): Turn into ...
1794 (linux_process_target::qxfer_libraries_svr4): ... this.
1795 * linux-low.h (class linux_process_target): Update.
1796 * lynx-low.cc (lynx_target_ops): Update.
1797 * nto-low.cc (nto_target_ops): Update.
1798 * win32-low.cc (win32_target_ops): Update.
1800 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1802 Turn process_stratum_target's supports_disable_randomization op
1803 into a method of process_target.
1805 * target.h (struct process_stratum_target): Remove the target op.
1806 (class process_target): Add the target op.
1807 (target_supports_disable_randomization): Update the macro.
1808 * target.cc (process_target::supports_disable_randomization): Define.
1810 Update the derived classes and callers below.
1812 * linux-low.cc (linux_target_ops): Update.
1813 (linux_supports_disable_randomization): Turn into ...
1814 (linux_process_target::supports_disable_randomization): ... this.
1815 * linux-low.h (class linux_process_target): Update.
1816 * lynx-low.cc (lynx_target_ops): Update.
1817 * nto-low.cc (nto_target_ops): Update.
1818 * win32-low.cc (win32_target_ops): Update.
1820 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1822 Turn process_stratum_target's emit_ops op into a method of
1825 * target.h (struct process_stratum_target): Remove the target op.
1826 (class process_target): Add the target op.
1827 (target_emit_ops): Update the macro.
1828 * target.cc (process_target::emit_ops): Define.
1830 Update the derived classes and callers below.
1832 * linux-low.cc (linux_target_ops): Update.
1833 (linux_emit_ops): Turn into ...
1834 (linux_process_target::emit_ops): ... this.
1835 * linux-low.h (class linux_process_target): Update.
1836 * lynx-low.cc (lynx_target_ops): Update.
1837 * nto-low.cc (nto_target_ops): Update.
1838 * win32-low.cc (win32_target_ops): Update.
1840 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1842 Turn process_stratum_target's install_fast_tracepoint_jump_pad
1843 and get_min_fast_tracepoint_insn_len ops into methods of
1846 * target.h (struct process_stratum_target): Remove the target ops.
1847 (class process_target): Add the target ops. Also add
1848 'supports_fast_tracepoints'.
1849 (target_supports_fast_tracepoints): Update the macro.
1850 (target_get_min_fast_tracepoint_insn_len): Update the macro.
1851 (install_fast_tracepoint_jump_pad): Update and rename the macro
1853 (target_install_fast_tracepoint_jump_pad): ... this.
1854 * target.cc (process_target::supports_fast_tracepoints): Define.
1855 (process_target::install_fast_tracepoint_jump_pad): Define.
1856 (process_target::get_min_fast_tracepoint_insn_len): Define.
1858 Update the derived classes and callers below.
1860 * tracepoint.cc (install_fast_tracepoint): Update.
1861 * linux-low.cc (linux_target_ops): Update.
1862 (linux_process_target::supports_fast_tracepoints): Define.
1863 (linux_install_fast_tracepoint_jump_pad): Turn into ...
1864 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
1865 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
1866 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
1867 * linux-low.h (class linux_process_target): Update.
1868 * lynx-low.cc (lynx_target_ops): Update.
1869 * nto-low.cc (nto_target_ops): Update.
1870 * win32-low.cc (win32_target_ops): Update.
1872 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1874 Turn process_stratum_target's stabilize_threads op into a
1875 method of process_target.
1877 * target.h (struct process_stratum_target): Remove the target op.
1878 (class process_target): Add the target op.
1879 (target_stabilize_threads): Update the macro.
1880 * target.cc (process_target::stabilize_threads): Define.
1882 Update the derived classes and callers below.
1884 * server.cc (handle_status): Update.
1885 * tracepoint.cc (cmd_qtdp): Update.
1886 (cmd_qtstart): Update.
1887 * linux-low.cc (linux_target_ops): Update.
1888 (linux_stabilize_threads): Turn into ...
1889 (linux_process_target::stabilize_threads): ... this.
1890 (linux_wait_1): Update.
1891 * linux-low.h (class linux_process_target): Update.
1892 * lynx-low.cc (lynx_target_ops): Update.
1893 * nto-low.cc (nto_target_ops): Update.
1894 * win32-low.cc (win32_target_ops): Update.
1896 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1898 Turn process_stratum_target's pause_all and unpause_all ops
1899 into methods of process_target.
1901 * target.h (struct process_stratum_target): Remove the target ops.
1902 (class process_target): Add the target ops.
1903 (pause_all): Update the macro and rename to...
1904 (target_pause_all): ... this.
1905 (unpause_all): Update the macro and rename to...
1906 (target_unpause_all): ... this.
1907 * target.cc (process_target::pause_all): Define.
1908 (process_target::unpause_all): Define.
1910 Update the derived classes and callers below.
1912 * server.cc (handle_status): Update.
1913 * tracepoint.cc (clear_installed_tracepoints): Update.
1915 (cmd_qtstart): Update.
1916 (stop_tracing): Update.
1917 (cmd_qtstatus): Update.
1918 (upload_fast_traceframes): Update.
1919 (run_inferior_command): Update.
1920 * linux-low.cc (linux_target_ops): Update.
1921 (linux_pause_all): Turn into ...
1922 (linux_process_target::pause_all): ... this.
1923 (linux_unpause_all): Turn into ...
1924 (linux_process_target::unpause_all): ... this.
1925 (linux_process_target::prepare_to_access_memory): Update.
1926 (linux_process_target::done_accessing_memory): Update.
1927 * linux-low.h (class linux_process_target): Update.
1928 * lynx-low.cc (lynx_target_ops): Update.
1929 * nto-low.cc (nto_target_ops): Update.
1930 * win32-low.cc (win32_target_ops): Update.
1932 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1934 Turn process_stratum_target's get_tib_address op into a method of
1937 * target.h (struct process_stratum_target): Remove the target op.
1938 (class process_target): Add the target op. Also add
1939 'supports_get_tib_address'.
1940 * target.cc (process_target::get_tib_address): Define.
1941 (process_target::supports_get_tib_address): Define.
1943 Update the derived classes and callers below.
1945 * server.cc (handle_query): Update.
1946 * linux-low.cc (win32_target_ops): Update.
1947 * lynx-low.cc (lynx_target_ops): Update.
1948 * nto-low.cc (nto_target_ops): Update.
1949 * win32-low.cc (win32_target_ops): Update.
1950 (win32_process_target::supports_get_tib_address): Define.
1951 (win32_get_tib_address): Turn into ...
1952 (win32_process_target::get_tib_address): ... this.
1953 * win32-low.h (class win32_process_target): Update.
1955 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1957 Turn process_stratum_target's thread_stopped op into a method of
1960 * target.h (struct process_stratum_target): Remove the target op.
1961 (class process_target): Add the target op. Also add
1962 'supports_thread_stopped'.
1963 (target_thread_stopped): Update the macro.
1964 * target.cc (process_target::thread_stopped): Define.
1965 (process_target::supports_thread_stopped): Define.
1966 (prepare_to_access_memory): Update.
1968 Update the derived classes and callers below.
1970 * server.cc (queue_stop_reply_callback): Update.
1971 * linux-low.cc (linux_target_ops): Update.
1972 (linux_process_target::supports_thread_stopped): Define.
1973 (linux_thread_stopped): Turn into ...
1974 (linux_process_target::thread_stopped): ... this.
1975 * linux-low.h (class linux_process_target): Update.
1976 * lynx-low.cc (lynx_target_ops): Update.
1977 * nto-low.cc (nto_target_ops): Update.
1978 * win32-low.cc (win32_target_ops): Update.
1980 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1982 Turn process_stratum_target's read_pc and write_pc ops into
1983 methods of process_target.
1985 * target.h (struct process_stratum_target): Remove the target ops.
1986 (class process_target): Add the target ops.
1987 * target.cc (process_target::read_pc): Define.
1988 (process_target::write_pc): Define.
1990 Update the derived classes and callers below.
1992 * regcache.cc (regcache_read_pc): Update.
1993 (regcache_write_pc): Update.
1994 * linux-low.cc (linux_target_ops): Update.
1995 (linux_read_pc): Turn into ...
1996 (linux_process_target::read_pc): ... this.
1997 (linux_write_pc): Turn into ...
1998 (linux_process_target::write_pc): ... this.
1999 * linux-low.h (class linux_process_target): Update.
2000 * lynx-low.cc (lynx_target_ops): Update.
2001 * nto-low.cc (nto_target_ops): Update.
2002 * win32-low.cc (win32_target_ops): Update.
2004 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2006 Turn process_stratum_target's supports_tracepoints op into a
2007 method of process_target.
2009 * target.h (struct process_stratum_target): Remove the target op.
2010 (class process_target): Add the target op.
2011 (target_supports_tracepoints): Update the macro.
2012 * target.cc (process_target::supports_tracepoints): Define.
2014 Update the derived classes and callers below.
2016 * linux-low.cc (linux_target_ops): Update.
2017 (linux_supports_tracepoints): Turn into ...
2018 (linux_process_target::supports_tracepoints): ... this.
2019 * linux-low.h (class linux_process_target): Update.
2020 * lynx-low.cc (lynx_target_ops): Update.
2021 * nto-low.cc (nto_target_ops): Update.
2022 * win32-low.cc (win32_target_ops): Update.
2024 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2026 Turn process_stratum_target's process_qsupported op into a method
2029 * target.h (struct process_stratum_target): Remove the target op.
2030 (class process_target): Add the target op.
2031 (target_process_qsupported): Update the macro.
2032 * target.cc (process_target::process_qsupported): Define.
2034 Update the derived classes and callers below.
2036 * linux-low.cc (linux_target_ops): Update.
2037 (linux_process_qsupported): Turn into ...
2038 (linux_process_target::process_qsupported): ... this.
2039 * linux-low.h (class linux_process_target): Update.
2040 * lynx-low.cc (lynx_target_ops): Update.
2041 * nto-low.cc (nto_target_ops): Update.
2042 * win32-low.cc (win32_target_ops): Update.
2044 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2046 Turn process_stratum_target's read_loadmap op into a method of
2049 * target.h (struct process_stratum_target): Remove the target op.
2050 (class process_target): Add the target op. Also add
2051 'supports_read_loadmap'.
2052 * target.cc (process_target::read_loadmap): Define.
2053 (process_target::supports_read_loadmap): Define.
2055 Update the derived classes and callers below.
2057 * server.cc (handle_qxfer_fdpic): Update.
2058 (handle_query): Update.
2059 * linux-low.cc (linux_target_ops): Update.
2060 (linux_process_target::supports_read_loadmap): Define.
2061 (linux_read_loadmap): Turn into ...
2062 (linux_process_target::read_loadmap): ... this.
2063 * linux-low.h (class linux_process_target): Update.
2064 * lynx-low.cc (lynx_target_ops): Update.
2065 * nto-low.cc (nto_target_ops): Update.
2066 * win32-low.cc (win32_target_ops): Update.
2068 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2070 Turn process_stratum_target's core_of_thread op into a method of
2073 * target.h (struct process_stratum_target): Remove the target op.
2074 (class process_target): Add the target op.
2075 (target_core_of_thread): Update the macro.
2076 * target.cc (process_target::core_of_thread): Define.
2078 Update the derived classes and callers below.
2080 * linux-low.cc (linux_target_ops): Update.
2081 (linux_process_target::core_of_thread): Define.
2082 * linux-low.h (class linux_process_target): Update.
2083 * lynx-low.cc (lynx_target_ops): Update.
2084 * nto-low.cc (nto_target_ops): Update.
2085 * win32-low.cc (win32_target_ops): Update.
2087 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2089 Turn process_stratum_target's handle_monitor_command op into a
2090 method of process_target.
2092 * target.h (struct process_stratum_target): Remove the target op.
2093 (class process_target): Add the target op.
2094 (target_handle_monitor_command): Update the macro.
2095 * target.cc (process_target::handle_monitor_command): Define.
2097 Update the derived classes and callers below.
2099 * server.cc (handle_query): Update.
2100 * linux-low.cc (linux_target_ops): Update.
2101 (linux_process_target::handle_monitor_command): Define.
2102 * linux-low.h (class linux_process_target): Update.
2103 * lynx-low.cc (lynx_target_ops): Update.
2104 * nto-low.cc (nto_target_ops): Update.
2105 * win32-low.cc (win32_target_ops): Update.
2107 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2109 Turn process_stratum_target's handle_new_gdb_connection op into a
2110 method of process_target.
2112 * target.h (struct process_stratum_target): Remove the target op.
2113 (class process_target): Add the target op.
2114 (target_handle_new_gdb_connection): Update the macro.
2115 * target.cc (process_target::handle_new_gdb_connection): Define.
2117 Update the derived classes and callers below.
2119 * linux-low.cc (linux_target_ops): Update.
2120 (linux_handle_new_gdb_connection): Turn into ...
2121 (linux_process_target::handle_new_gdb_connection): ... this.
2122 * linux-low.h (class linux_process_target): Update.
2123 * lynx-low.cc (lynx_target_ops): Update.
2124 * nto-low.cc (nto_target_ops): Update.
2125 * win32-low.cc (win32_target_ops): Update.
2127 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2129 Turn process_stratum_target's supports_fork_events,
2130 supports_vfork_events, and supports_exec_events ops into methods
2133 * target.h (struct process_stratum_target): Remove the target ops.
2134 (class process_target): Add the target ops.
2135 (target_supports_fork_events): Update the macro.
2136 (target_supports_vfork_events): Update the macro.
2137 (target_supports_exec_events): Update the macro.
2138 * target.cc (process_target::supports_fork_events): Define.
2139 (process_target::supports_vfork_events): Define.
2140 (process_target::supports_exec_events): Define.
2142 Update the derived classes and callers below.
2144 * linux-low.cc (linux_target_ops): Update.
2145 (linux_supports_fork_events): Turn into ...
2146 (linux_process_target::supports_fork_events): ... this.
2147 (linux_supports_vfork_events): Turn into ...
2148 (linux_process_target::supports_vfork_events): ... this.
2149 (linux_supports_exec_events): Turn into ...
2150 (linux_process_target::supports_exec_events): ... this.
2151 * linux-low.h (class linux_process_target): Update.
2152 * lynx-low.cc (lynx_target_ops): Update.
2153 * nto-low.cc (nto_target_ops): Update.
2154 * win32-low.cc (win32_target_ops): Update.
2156 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2158 Turn process_stratum_target's supports_multi_process op into a
2159 method of process_target.
2161 * target.h (struct process_stratum_target): Remove the target op.
2162 (class process_target): Add the target op.
2163 * target.cc (process_target::supports_multi_process): Define.
2164 (target_supports_multi_process): Update.
2166 Update the derived classes and callers below.
2168 * linux-low.cc (linux_target_ops): Update.
2169 (linux_supports_multi_process): Turn into ...
2170 (linux_process_target::supports_multi_process): ... this.
2171 * linux-low.h (class linux_process_target): Update.
2172 * lynx-low.cc (lynx_target_ops): Update.
2173 * nto-low.cc (nto_target_ops): Update.
2174 * win32-low.cc (win32_target_ops): Update.
2176 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2178 Turn process_stratum_target's supports_non_stop, async, and
2179 start_non_stop ops into methods of process_target.
2181 * target.h (struct process_stratum_target): Remove the target ops.
2182 (class process_target): Add the target ops.
2183 (target_supports_non_stop): Update the macro.
2184 (target_async): Update the macro.
2185 (start_non_stop): Remove declaration.
2186 * target.cc (process_target::supports_non_stop): Define.
2187 (process_target::async): Define.
2188 (process_target::start_non_stop): Define.
2189 (start_non_stop): Remove.
2191 Update the derived classes and callers below.
2193 * server.cc (handle_qxfer_siginfo): Update.
2194 (handle_query): Update.
2195 * linux-low.cc (linux_target_ops): Update.
2196 (linux_supports_non_stop): Turn into ...
2197 (linux_process_target::supports_non_stop): ... this.
2198 (linux_async): Turn into ...
2199 (linux_process_target::async): ... this.
2200 (linux_start_non_stop): Turn into ...
2201 (linux_process_target::start_non_stop): ... this.
2202 * linux-low.h (class linux_process_target): Update.
2203 * lynx-low.cc (lynx_target_ops): Update.
2204 * nto-low.cc (nto_target_ops): Update.
2205 (nto_supports_non_stop): Remove; rely on the default behavior
2207 * win32-low.cc (win32_target_ops): Update.
2209 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2211 Turn process_stratum_target's qxfer_siginfo op into a method of
2214 * target.h (struct process_stratum_target): Remove the target op.
2215 (class process_target): Add the target op. Also add
2216 'supports_qxfer_siginfo'.
2217 * target.cc (process_target::qxfer_siginfo): Define.
2218 (process_target::supports_qxfer_siginfo): Define.
2220 Update the derived classes and callers below.
2222 * server.cc (handle_qxfer_siginfo): Update.
2223 (handle_query): Update.
2224 * linux-low.cc (linux_target_ops): Update.
2225 (linux_process_target::supports_qxfer_siginfo): Define.
2226 (linux_xfer_siginfo): Turn into ...
2227 (linux_process_target::qxfer_siginfo): ... this.
2228 * linux-low.h (class linux_process_target): Update.
2229 * lynx-low.cc (lynx_target_ops): Update.
2230 * nto-low.cc (nto_target_ops): Update.
2231 * win32-low.cc (win32_target_ops): Update.
2233 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2235 Turn process_stratum_target's qxfer_osdata op into a method of
2238 * target.h (struct process_stratum_target): Remove the target op.
2239 (class process_target): Add the target op. Also add
2240 'supports_qxfer_osdata'.
2241 * target.cc (process_target::qxfer_osdata): Define.
2242 (process_target::supports_qxfer_osdata): Define.
2244 Update the derived classes and callers below.
2246 * server.cc (handle_qxfer_osdata): Update.
2247 (handle_query): Update.
2248 * linux-low.cc (linux_target_ops): Update.
2249 (linux_process_target::supports_qxfer_osdata): Define.
2250 (linux_qxfer_osdata): Turn into ...
2251 (linux_process_target::qxfer_osdata): ... this.
2252 * linux-low.h (class linux_process_target): Update.
2253 * lynx-low.cc (lynx_target_ops): Update.
2254 * nto-low.cc (nto_target_ops): Update.
2255 * win32-low.cc (win32_target_ops): Update.
2257 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2259 Turn process_stratum_target's hostio_last_error op into a
2260 method of process_target.
2262 * target.h (struct process_stratum_target): Remove the target op.
2263 (class process_target): Add the target op.
2264 * target.cc: Add "hostio.h" to includes.
2265 (process_target::hostio_last_error): Define.
2267 Update the derived classes and callers below.
2269 * hostio.cc (hostio_error): Update.
2270 * linux-low.cc: Remove "hostio.h" from includes.
2271 (linux_target_ops): Update.
2272 * lynx-low.cc (lynx_target_ops): Update.
2273 * nto-low.cc (nto_target_ops): Update.
2274 * win32-low.h (class win32_process_target): Update.
2275 * win32-low.cc (win32_target_ops): Update.
2276 (wince_hostio_last_error): Turn into ...
2277 (win32_process_target::hostio_last_error): ... this.
2279 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2281 Turn process_stratum_target's get_tls_address op into a method of
2284 * target.h (struct process_stratum_target): Remove the target op.
2285 (class process_target): Add the target op. Also add
2286 'supports_get_tls_address'.
2287 * target.cc (process_target::get_tls_address): Define.
2288 (process_target::supports_get_tls_address): Define.
2290 Update the derived classes and callers below.
2292 * server.cc (handle_query): Update.
2293 * linux-low.cc (linux_target_ops): Update.
2294 (linux_process_target::supports_get_tls_address): Define.
2295 (linux_process_target::get_tls_address): Define.
2296 * linux-low.h (class linux_process_target): Update.
2297 * lynx-low.cc (lynx_target_ops): Update.
2298 * nto-low.cc (nto_target_ops): Update.
2299 * win32-low.cc (win32_target_ops): Update.
2301 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2303 Turn process_stratum_target's read_offsets op into a method of
2306 * target.h (struct process_stratum_target): Remove the target op.
2307 (class process_target): Add the target op. Also add
2308 'supports_read_offsets'.
2309 * target.cc (process_target::read_offsets): Define.
2310 (process_target::supports_read_offsets): Define.
2312 Update the derived classes and callers below.
2314 * server.cc (handle_query): Update.
2315 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2316 (linux_target_ops): Update.
2317 (linux_process_target::supports_read_offsets): Define.
2318 (linux_read_offsets): Turn into ...
2319 (linux_process_target::read_offsets): ... this.
2320 * linux-low.h (class linux_process_target): Update.
2321 * lynx-low.cc (lynx_target_ops): Update.
2322 * nto-low.cc (nto_target_ops): Update.
2323 * win32-low.cc (win32_target_ops): Update.
2325 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2327 Turn process_stratum_target's stopped_by_watchpoint and
2328 stopped_data_address ops into methods of process_target.
2330 * target.h (struct process_stratum_target): Remove the target ops.
2331 (class process_target): Add the target ops.
2332 * target.cc (process_target::stopped_by_watchpoint): Define.
2333 (process_target::stopped_data_address): Define.
2335 Update the derived classes and callers below.
2337 * remote-utils.cc (prepare_resume_reply): Update.
2338 * linux-low.cc (linux_target_ops): Update.
2339 (linux_stopped_by_watchpoint): Turn into ...
2340 (linux_process_target::stopped_by_watchpoint): ... this.
2341 (linux_stopped_data_address): Turn into ...
2342 (linux_process_target::stopped_data_address): ... this.
2343 * linux-low.h (class linux_process_target): Update.
2344 * lynx-low.cc (lynx_target_ops): Update.
2345 * nto-low.cc (nto_target_ops): Update.
2346 (nto_stopped_by_watchpoint): Turn into ...
2347 (nto_process_target::stopped_by_watchpoint): ... this.
2348 (nto_stopped_data_address): Turn into ...
2349 (nto_process_target::stopped_data_address): ... this.
2350 * nto-low.h (class nto_process_target): Update.
2351 * win32-low.cc (win32_target_ops): Update.
2352 (win32_stopped_by_watchpoint): Turn into ...
2353 (win32_process_target::stopped_by_watchpoint): ... this.
2354 (win32_stopped_data_address): Turn into ...
2355 (win32_process_target::stopped_data_address): ... this.
2356 * win32-low.h (class win32_process_target): Update.
2358 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2360 Turn process_stratum_target's supports_hardware_single_step op into
2361 a method of process_target.
2363 * target.h (struct process_stratum_target): Remove the target op.
2364 (class process_target): Add the target op.
2365 (target_supports_hardware_single_step): Update the macro.
2366 (target_can_do_hardware_single_step): Remove declaration.
2367 * target.cc (process_target::supports_hardware_single_step): Define.
2368 (target_can_do_hardware_single_step): Remove.
2370 Update the derived classes and callers below.
2372 * linux-low.h (class linux_process_target): Update.
2373 * linux-low.cc (linux_target_ops): Update.
2374 (linux_supports_hardware_single_step): Turn into ...
2375 (linux_process_target::supports_hardware_single_step): ... this.
2376 * lynx-low.h (class lynx_process_target): Update.
2377 * lynx-low.cc (lynx_target_ops): Update.
2378 (lynx_process_target::supports_hardware_single_step): Define.
2379 * nto-low.h (class nto_process_target): Update.
2380 * nto-low.cc (nto_target_ops): Update.
2381 (nto_process_target::supports_hardware_single_step): Define.
2382 * win32-low.h (class win32_process_target): Update.
2383 * win32-low.cc (win32_target_ops): Update.
2384 (win32_process_target::supports_hardware_single_step): Define.
2386 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2388 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
2389 ops into methods of process_target.
2391 * target.h (struct process_stratum_target): Remove the target ops.
2392 (class process_target): Add the target ops.
2393 (target_stopped_by_hw_breakpoint): Update the macro.
2394 (target_supports_stopped_by_hw_breakpoint): Update the macro.
2395 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
2396 (process_target::supports_stopped_by_hw_breakpoint): Define.
2398 Update the derived classes and callers below.
2400 * linux-low.cc (linux_target_ops): Update.
2401 (linux_stopped_by_hw_breakpoint): Turn into ...
2402 (linux_process_target::stopped_by_hw_breakpoint): ... this.
2403 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
2404 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
2405 * linux-low.h (class linux_process_target): Update.
2406 * lynx-low.cc (lynx_target_ops): Update.
2407 * nto-low.cc (nto_target_ops): Update.
2408 * win32-low.cc (win32_target_ops): Update.
2410 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2412 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
2413 ops into methods of process_target.
2415 * target.h (struct process_stratum_target): Remove the target ops.
2416 (class process_target): Add the target ops.
2417 (target_stopped_by_sw_breakpoint): Update the macro.
2418 (target_supports_stopped_by_sw_breakpoint): Update the macro.
2419 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
2420 (process_target::supports_stopped_by_sw_breakpoint): Define.
2422 Update the derived classes and callers below.
2424 * linux-low.cc (linux_target_ops): Update.
2425 (linux_stopped_by_sw_breakpoint): Turn into ...
2426 (linux_process_target::stopped_by_sw_breakpoint): ... this.
2427 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
2428 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
2429 * linux-low.h (class linux_process_target): Update.
2430 * lynx-low.cc (lynx_target_ops): Update.
2431 * nto-low.cc (nto_target_ops): Update.
2432 * win32-low.cc (win32_target_ops): Update.
2434 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2436 Turn process_stratum_target's insert_point and remove_point ops
2437 into methods of process_target.
2439 * target.h (struct process_stratum_target): Remove the target ops.
2440 (class process_target): Add the target ops.
2441 * target.cc (process_target::insert_point): Define.
2442 (process_target::remove_point): Define.
2444 Update the derived classes and callers below.
2446 * mem-break.cc (set_raw_breakpoint_at): Update.
2447 (delete_raw_breakpoint): Update.
2448 (uninsert_raw_breakpoint): Update.
2449 (reinsert_raw_breakpoint): Update.
2450 * linux-low.cc (linux_target_ops): Update.
2451 (linux_insert_point): Turn into ...
2452 (linux_process_target::insert_point): ... this.
2453 (linux_remove_point): Turn into ...
2454 (linux_process_target::remove_point): ... this.
2455 * linux-low.h (class linux_process_target): Update.
2456 * lynx-low.cc (lynx_target_ops): Update.
2457 * nto-low.cc (nto_target_ops): Update.
2458 (nto_insert_point): Turn into ...
2459 (nto_process_target::insert_point): ... this.
2460 (nto_remove_point): Turn into ...
2461 (nto_process_target::remove_point): ... this.
2462 * nto-low.h (class nto_process_target): Update.
2463 * win32-low.cc (win32_target_ops): Update.
2464 (win32_insert_point): Turn into ...
2465 (win32_process_target::insert_point): ... this.
2466 (win32_remove_point): Turn into ...
2467 (win32_process_target::remove_point): ... this.
2468 * win32-low.h (class win32_process_target): Update.
2470 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2472 Turn process_stratum_target's supports_z_point_type op into a
2473 method of process_target.
2475 * target.h (struct process_stratum_target): Remove the target op.
2476 (class process_target): Add the target op.
2477 * target.cc (process_target::supports_z_point_type): Define.
2479 Update the derived classes and callers below.
2481 * mem-break.cc (z_type_supported): Update.
2482 * linux-low.cc (linux_target_ops): Update.
2483 (linux_supports_z_point_type): Turn into ...
2484 (linux_process_target::supports_z_point_type): ... this.
2485 * linux-low.h (class linux_process_target): Update.
2486 * lynx-low.cc (lynx_target_ops): Update.
2487 * nto-low.cc (nto_target_ops): Update.
2488 (nto_supports_z_point_type): Turn into ...
2489 (nto_process_target::supports_z_point_type): ... this.
2490 * nto-low.h (class nto_process_target): Update.
2491 * win32-low.cc (win32_target_ops): Update.
2492 (win32_supports_z_point_type): Turn into ...
2493 (win32_process_target::supports_z_point_type): ... this.
2494 * win32-low.h (class win32_process_target): Update.
2496 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2498 Turn process_stratum_target's read_auxv op into a method of
2501 * target.h (class process_stratum_target): Remove the target op.
2502 (struct process_target): Add the target op. Also add
2503 'supports_read_auxv'.
2504 * target.cc (process_target::read_auxv): Define.
2505 (process_target::supports_read_auxv): Define.
2507 Update the derived classes and callers below.
2509 * server.cc (handle_qxfer_auxv): Update.
2510 (handle_query): Update.
2511 * linux-low.cc (linux_target_ops): Update.
2512 (linux_process_target::supports_read_auxv): Define.
2513 (linux_read_auxv): Turn into ...
2514 (linux_process_target::read_auxv): ... this.
2515 * linux-low.h (class linux_process_target): Update.
2516 * lynx-low.cc (lynx_target_ops): Update.
2517 * nto-low.cc (nto_target_ops): Update.
2518 (nto_process_target::supports_read_auxv): Define.
2519 (nto_read_auxv): Turn into ...
2520 (nto_process_target::read_auxv): ... this.
2521 * nto-low.h (class nto_process_target): Update.
2522 * win32-low.cc (win32_target_ops): Update.
2524 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2526 Turn process_stratum_target's request_interrupt op into a method of
2529 * target.h (struct process_stratum_target): Remove the target op.
2530 (class process_target): Add the target op.
2532 Update the derived classes and callers below.
2534 * remote-utils.cc (putpkt_binary_1): Update.
2535 (input_interrupt): Update.
2537 * server.cc (handle_v_requests): Update.
2538 * linux-low.cc (linux_target_ops): Update.
2539 (linux_request_interrupt): Turn into ...
2540 (linux_process_target::request_interrupt): ... this.
2541 * linux-low.h (class linux_process_target): Update.
2542 * lynx-low.cc (lynx_target_ops): Update.
2543 (lynx_request_interrupt): Turn into ...
2544 (lynx_process_target::request_interrupt): ... this.
2545 * lynx-low.h (class lynx_process_target): Update.
2546 * nto-low.cc (nto_target_ops): Update.
2547 (nto_request_interrupt): Turn into ...
2548 (nto_process_target::request_interrupt): ... this.
2549 * nto-low.h (class nto_process_target): Update.
2550 * win32-low.cc (win32_target_ops): Update.
2551 (win32_request_interrupt): Turn into ...
2552 (win32_process_target::request_interrupt): ... this.
2553 * win32-low.h (class win32_process_target): Update.
2555 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2557 Turn process_stratum_target's look_up_symbols op into a method of
2560 * target.h (struct process_stratum_target): Remove the target op.
2561 (class process_target): Add the target op.
2562 * target.cc (process_target::look_up_symbols): Define.
2564 Update the derived classes and callers below.
2566 * server.cc (handle_query): Update.
2567 * linux-low.cc (linux_target_ops): Update.
2568 (linux_look_up_symbols): Turn into ...
2569 (linux_process_target::look_up_symbols): ... this.
2570 * linux-low.h (class linux_process_target): Update.
2571 * lynx-low.cc (lynx_target_ops): Update.
2572 * nto-low.cc (nto_target_ops): Update.
2573 * win32-low.cc (win32_target_ops): Update.
2575 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2577 Turn process_stratum_target's read_memory and write_memory
2578 ops into methods of process_target.
2580 * target.h (struct process_stratum_target): Remove the target ops.
2581 (class process_target): Add the target ops.
2583 Update the derived classes and callers below.
2585 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
2586 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
2587 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
2588 (arm_get_syscall_trapinfo): Update.
2589 * linux-cris-low.cc (cris_breakpoint_at): Update.
2590 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
2591 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
2592 * linux-mips-low.cc (mips_breakpoint_at): Update.
2593 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
2594 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
2595 * linux-sh-low.cc (sh_breakpoint_at): Update.
2596 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
2597 (sparc_store_gregset_from_stack): Update.
2598 (sparc_breakpoint_at): Update.
2599 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
2600 * linux-tile-low.cc (tile_breakpoint_at): Update.
2601 * linux-x86-low.cc (x86_breakpoint_at): Update.
2602 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
2603 * mem-brea.cc (insert_memory_breakpoint): Update.
2604 (validate_inserted_breakpoint): Update.
2605 * target.cc (read_inferior_memory): Update.
2606 (target_write_memory): Update.
2607 * linux-low.cc (linux_target_ops): Update.
2608 (linux_read_memory): Make a wrapper around the read_memory target
2610 (linux_process_target::read_memory): Rename from linux_read_memory.
2611 (linux_write_memory): Turn into ...
2612 (linux_process_target::write_memory): ... this.
2613 * linux-low.h (class linux_process_target): Update.
2614 * lynx-low.cc (lynx_target_ops): Update.
2615 (lynx_read_memory): Turn into ...
2616 (lynx_process_target::read_memory): ... this.
2617 (lynx_write_memory): Turn into ...
2618 (lynx_process_target::write_memory): ... this.
2619 * lynx-low.h (class lynx_process_target): Update.
2620 * nto-low.cc (nto_target_ops): Update.
2621 (nto_read_memory): Turn into ...
2622 (nto_process_target::read_memory): ... this.
2623 (nto_write_memory): Turn into ...
2624 (nto_process_target::write_memory): ... this.
2625 * nto-low.h (class nto_process_target): Update.
2626 * win32-low.cc (win32_target_ops): Update.
2627 (win32_read_inferior_memory): Turn into ...
2628 (win32_process_target::read_memory): ... this.
2629 (win32_write_inferior_memory): Turn into ...
2630 (win32_process_target::write_memory): ... this.
2631 * win32-low.h (class win32_process_target): Update.
2633 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2635 Turn process_stratum_target's prepare_to_access_memory and
2636 done_accessing_memory ops into methods of process_target.
2638 * target.h (struct process_stratum_target): Remove the target ops.
2639 (class process_target): Add the target ops.
2640 * target.cc (process_target::prepare_to_access_memory): Define.
2641 (process_target::done_accessing_memory): Define.
2642 (prepare_to_access_memory): Update.
2643 (done_accessing_memory): Update.
2645 Update the derived classes and callers below.
2647 * linux-low.cc (linux_target_ops): Update.
2648 (linux_prepare_to_access_memory): Turn into ...
2649 (linux_process_target::prepare_to_access_memory): ... this.
2650 (linux_done_accessing_memory): Turn into ...
2651 (linux_process_target::done_accessing_memory): ... this.
2652 * linux-low.h (class linux_process_target): Update.
2653 * lynx-low.cc (lynx_target_ops): Update.
2654 * nto-low.cc (nto_target_ops): Update.
2655 * win32-low.cc (win32_target_ops): Update.
2657 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2659 Turn process_stratum_target's fetch_registers and store_registers
2660 ops into methods of process_target.
2662 * target.h (struct process_stratum_target): Remove the target ops.
2663 (class process_target): Add the target ops.
2664 (fetch_inferior_registers): Update the macro.
2665 (store_inferior_registers): Update the macro.
2667 Update the derived classes and callers below.
2669 * linux-low.cc (linux_target_ops): Update.
2670 (linux_fetch_registers): Turn into ...
2671 (linux_process_target::fetch_registers): ... this.
2672 (linux_store_registers): Turn into ...
2673 (linux_process_target::store_registers): ... this.
2674 * linux-low.h (class linux_process_target): Update.
2675 * lynx-low.cc (lynx_target_ops): Update.
2676 (lynx_fetch_registers): Turn into ...
2677 (lynx_process_target::fetch_registers): ... this.
2678 (lynx_store_registers): Turn into ...
2679 (lynx_process_target::store_registers): ... this.
2680 * lynx-low.h (class lynx_process_target): Update.
2681 * nto-low.cc (nto_target_ops): Update.
2682 (nto_fetch_registers): Turn into ...
2683 (nto_process_target::fetch_registers): ... this.
2684 (nto_store_registers): Turn into ...
2685 (nto_process_target::store_registers): ... this.
2686 * nto-low.h (class nto_process_target): Update.
2687 * win32-low.cc (win32_target_ops): Update.
2688 (win32_fetch_inferior_registers): Turn into ...
2689 (win32_process_target::fetch_registers): ... this.
2690 (win32_store_inferior_registers): Turn into ...
2691 (win32_process_target::store_registers): ... this.
2692 * win32-low.h (class win32_process_target): Update.
2694 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2696 Turn process_stratum_target's wait op into a method of
2699 * target.h (struct process_stratum_target): Remove the target op.
2700 (class process_target): Add the target op.
2702 Update the derived classes and callers below.
2704 * target.cc (target_wait): Update.
2705 * linux-low.cc (linux_target_ops): Update.
2706 (linux_wait): Turn into ...
2707 (linux_process_target::wait): ... this.
2708 * linux-low.h (class linux_process_target): Update.
2709 * lynx-low.cc (lynx_target_ops): Update.
2710 (lynx_wait): Turn into ...
2711 (lynx_process_target::wait): ... this.
2712 * lynx-low.h (class lynx_process_target): Update.
2713 * nto-low.cc (nto_target_ops): Update.
2714 (nto_wait): Turn into ...
2715 (nto_process_target::wait): ... this.
2716 * nto-low.h (class nto_process_target): Update.
2717 * win32-low.cc (win32_target_ops): Update.
2718 (win32_wait): Turn into ...
2719 (win32_process_target::wait): ... this.
2720 (do_initial_child_stuff): Update.
2721 * win32-low.h (class win32_process_target): Update.
2723 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2725 Turn process_stratum_target's resume op into a method of
2728 * target.h (struct process_stratum_target): Remove the target op.
2729 (class process_target): Add the target op.
2731 Update the derived classes and callers below.
2733 * server.cc (resume): Update.
2734 * target.cc (target_stop_and_wait): Update.
2735 (target_continue_no_signal): Update.
2736 (target_continue): Update.
2737 * linux-low.cc (linux_target_ops): Update.
2738 (linux_resume): Turn into ...
2739 (linux_process_target::resume): ... this.
2740 * linux-low.h (class linux_process_target): Update.
2741 * lynx-low.cc (lynx_target_ops): Update.
2742 (lynx_resume): Turn into ...
2743 (lynx_process_target::resume): ... this.
2744 * lynx-low.h (class lynx_process_target): Update.
2745 * nto-low.cc (nto_target_ops): Update.
2746 (nto_resume): Turn into ...
2747 (nto_process_target::resume): ... this.
2748 * nto-low.h (class nto_process_target): Update.
2749 * win32-low.cc (win32_target_ops): Update.
2750 (win32_resume): Turn into ...
2751 (win32_process_target::resume): ... this.
2752 (win32_process_target::detach): Update.
2753 (do_initial_child_stuff): Update.
2754 * win32-low.h (class win32_process_target): Update.
2756 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2758 Turn process_stratum_target's thread_alive op into a method of
2761 * target.h (struct process_stratum_target): Remove the target op.
2762 (class process_target): Add the target op.
2763 (mythread_alive): Update the macro.
2765 Update the derived classes and callers below.
2767 * linux-low.cc (linux_target_ops): Update.
2768 (linux_thread_alive): Turn into ...
2769 (linux_process_target::thread_alive): ... this.
2770 (wait_for_sigstop): Update.
2771 * linux-low.h (class linux_process_target): Update.
2772 * lynx-low.cc (lynx_target_ops): Update.
2773 (lynx_thread_alive): Turn into ...
2774 (lynx_process_target::thread_alive): ... this.
2775 * lynx-low.h (class lynx_process_target): Update.
2776 * nto-low.cc (nto_target_ops): Update.
2777 (nto_thread_alive): Turn into ...
2778 (nto_process_target::thread_alive): ... this.
2779 * nto-low.h (class nto_process_target): Update.
2780 * win32-low.cc (win32_target_ops): Update.
2781 (win32_thread_alive): Turn into ...
2782 (win32_process_target::thread_alive): ... this.
2783 * win32-low.h (class win32_process_target): Update.
2785 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2787 Turn process_stratum_target's join op into a method of
2790 * target.h (struct process_stratum_target): Remove the target op.
2791 (class process_target): Add the target op.
2792 (join_inferior): Update the macro.
2794 Update the derived classes and callers below.
2796 * linux-low.cc (linux_target_ops): Update.
2797 (linux_join): Turn into ...
2798 (linux_process_target::join): ... this.
2799 * linux-low.h (class linux_process_target): Update.
2800 * lynx-low.cc (lynx_target_ops): Update.
2801 (lynx_join): Turn into ...
2802 (lynx_process_target::join): ... this.
2803 * lynx-low.h (class lynx_process_target): Update.
2804 * nto-low.cc (nto_target_ops): Update.
2805 (nto_process_target::join): Define.
2806 * nto-low.h (class nto_process_target): Update.
2807 * win32-low.cc (win32_target_ops): Update.
2808 (win32_join): Turn into ...
2809 (win32_process_target::join): ... this.
2810 * win32-low.h (class win32_process_target): Update.
2812 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2814 Turn process_stratum_target's mourn op into a method of
2817 * target.h (struct process_stratum_target): Remove the target op.
2818 (class process_target): Add the target op.
2820 Update the derived classes and callers below.
2822 * target.cc (target_mourn_inferior): Update.
2823 * linux-low.cc (linux_target_ops): Update.
2824 (linux_mourn): Turn into ...
2825 (linux_process_target::mourn): ... this.
2826 (handle_extended_wait): Update.
2827 (linux_process_target::kill): Update.
2828 (linux_process_target::detach): Update.
2829 * linux-low.h (class linux_process_target): Update.
2830 * lynx-low.cc (lynx_target_ops): Update.
2831 (lynx_mourn): Turn into ...
2832 (lynx_process_target::mourn): ... this.
2833 * lynx-low.h (class lynx_process_target): Update.
2834 * nto-low.cc (nto_target_ops): Update.
2835 (nto_mourn): Turn into ...
2836 (nto_process_target::mourn): ... this.
2837 * nto-low.h (class nto_process_target): Update.
2838 * win32-low.cc (win32_target_ops): Update.
2839 (win32_mourn): Turn into ...
2840 (win32_process_target::mourn): ... this.
2841 * win32-low.h (class win32_process_target): Update.
2843 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2845 Turn process_stratum_target's detach op into a method of
2848 * target.h (struct process_stratum_target): Remove the target op.
2849 (class process_target): Add the target op.
2850 (detach_inferior): Update the macro.
2852 Update the derived classes and callers below.
2854 * linux-low.cc (linux_target_ops): Update.
2855 (linux_detach): Turn into ...
2856 (linux_process_target::detach): ... this.
2857 * linux-low.h (class linux_process_target): Update.
2858 * lynx-low.cc (lynx_target_ops): Update.
2859 (lynx_detach): Turn into ...
2860 (lynx_process_target::detach): ... this.
2861 * lynx-low.h (class lynx_process_target): Update.
2862 * nto-low.cc (nto_target_ops): Update.
2863 (nto_detach): Turn into ...
2864 (nto_process_target::detach): ... this.
2865 * nto-low.h (class nto_process_target): Update.
2866 * win32-low.cc (win32_target_ops): Update.
2867 (win32_detach): Turn into ...
2868 (win32_process_target::detach): ... this.
2869 * win32-low.h (class win32_process_target): Update.
2871 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2873 Turn process_stratum_target's kill op into a method of
2876 * target.h (struct process_stratum_target): Remove the target op.
2877 (class process_target): Add the target op.
2879 Update the derived classes and callers below.
2881 * target.cc (kill_inferior): Update.
2882 * linux-low.cc (linux_target_ops): Update.
2883 (linux_kill): Turn into ...
2884 (linux_process_target::kill): ... this.
2885 * linux-low.h (class linux_process_target): Update.
2886 * lynx-low.cc (lynx_target_ops): Update.
2887 (lynx_kill): Turn into ...
2888 (lynx_process_target::kill): ... this.
2889 * lynx-low.h (class lynx_process_target): Update.
2890 * nto-low.cc (nto_target_ops): Update.
2891 (nto_kill): Turn into ...
2892 (nto_process_target::kill): ... this.
2893 * nto-low.h (class nto_process_target): Update.
2894 * win32-low.cc (win32_target_ops): Update.
2895 (win32_kill): Turn into ...
2896 (win32_process_target::kill): ... this.
2897 * win32-low.h (class win32_process_target): Update.
2899 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2901 Turn process_stratum_target's attach op into a method of
2904 * target.h (struct process_stratum_target): Remove the target op.
2905 (class process_target): Add the target op.
2906 (myattach): Update the macro.
2908 Update the derived classes and callers below.
2910 * linux-low.cc (linux_target_ops): Update.
2911 (linux_attach): Turn into ...
2912 (linux_process_target::attach): ... this.
2913 * linux-low.h (class linux_process_target): Update.
2914 * lynx-low.cc (lynx_target_ops): Update.
2915 (lynx_attach): Turn into ...
2916 (lynx_process_target::attach): ... this.
2917 * lynx-low.h (class lynx_process_target): Update.
2918 * nto-low.cc (nto_target_ops): Update.
2919 (nto_attach): Turn into ...
2920 (nto_process_target::attach): ... this.
2921 * nto-low.h (class nto_process_target): Update.
2922 * win32-low.cc (win32_target_ops): Update.
2923 (win32_attach): Turn into ...
2924 (win32_process_target::attach): ... this.
2925 * win32-low.h (class win32_process_target): Update.
2927 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2929 Turn process_stratum_target's post_create_inferior op into a method
2932 * target.h (struct process_stratum_target): Remove the target op.
2933 (class process_target): Add the target op.
2934 (target_post_create_inferior): Update the macro.
2935 * target.cc (process_target::post_create_inferior): Define.
2937 Update the derived classes and callers below.
2939 * linux-low.cc (linux_target_ops): Update.
2940 (linux_post_create_inferior): Turn into ...
2941 (linux_process_target::post_create_inferior): ... this.
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 create_inferior op into a method of
2952 * target.h (struct process_stratum_target): Remove the target op.
2953 (class process_target): Add the target op.
2954 (create_inferior): Rename the macro to ...
2955 (target_create_inferior): ... this.
2957 Update the derived classes and callers below.
2959 * server.cc (handle_v_run): Update.
2960 (captured_main): Update.
2961 (process_serial_event): Update.
2962 * linux-low.cc (linux_target_ops): Update.
2963 (linux_create_inferior): Turn into ...
2964 (linux_process_target::create_inferior): ... this.
2965 * linux-low.h (class linux_process_target): Update.
2966 * lynx-low.cc (lynx_target_ops): Update.
2967 (lynx_create_inferior): Turn into ...
2968 (lynx_process_target::create_inferior): ... this.
2969 * lynx-low.h (class lynx_process_target): Update.
2970 * nto-low.cc (nto_target_ops): Update.
2971 (nto_create_inferior): Turn into ...
2972 (nto_process_target::create_inferior): ... this.
2973 * nto-low.h (class nto_process_target): Update.
2974 * win32-low.cc (win32_target_ops): Update.
2975 (win32_create_inferior): Turn into ...
2976 (win32_process_target::create_inferior): ... this.
2977 * win32-low.h (class win32_process_target): Update.
2979 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2981 * target.h (class process_target): New class definition.
2982 (struct process_stratum_target) <pt>: New field with type
2984 * linux-low.h (class linux_process_target): Define as a derived
2985 class of 'process_target'.
2986 * linux-low.cc (linux_target_ops): Add a linux_process_target*
2988 * lynx-low.h (class lynx_process_target): Define as a derived
2989 class of 'process_target'.
2990 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
2992 * nto-low.h (class nto_process_target): Define as a derived
2993 class of 'process_target'.
2994 * nto-low.cc (nto_target_ops): Add an nto_process_target*
2996 * win32-low.h (class win32_process_target): Define as a derived
2997 class of 'process_target'.
2998 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3001 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3003 * configure: Regenerate.
3005 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3006 Andrew Burgess <andrew.burgess@embecosm.com>
3008 * linux-riscv-low.cc: New file.
3009 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3010 and nat/riscv-linux-tdesc.c.
3011 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3012 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3015 2020-02-14 Tom Tromey <tom@tromey.com>
3017 * acinclude.m4: Don't include acx_configure_dir.m4.
3018 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3019 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3020 (all, install-only, uninstall, clean-info, clean)
3021 (maintainer-clean): Don't recurse.
3022 (subdir_do, all-lib): Remove.
3023 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3025 (generated_files): Update.
3026 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3027 * configure: Rebuild.
3028 * configure.ac: Don't configure gnulib or libiberty.
3031 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3033 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3034 preparing the command line for CreateProcess.
3035 (win32_create_inferior): Reflect the program name in debugging
3036 output that shows the process and its command line.
3038 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3040 * Makefile.in: Rename source files from .c to .cc.
3041 * %.c: Rename to %.cc.
3042 * configure.ac: Rename server.c to server.cc.
3043 * configure: Re-generate.
3045 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3047 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3049 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3051 * win32-low.c (win32_create_inferior): Set signal_pid.
3053 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3054 Pedro Alves <palves@redhat.com>
3056 Skip building gdbserver in a cross-configuration.
3057 * configure.srv: Set $gdbserver_host depending on whether $target
3058 is $host. Use $gdbserver_host instead of $host.
3060 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3062 * configure: Re-generate.
3064 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3066 * configure: Re-generate.
3068 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3070 * acinclude.m4: Update warning.m4 path.
3072 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3074 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3075 (handle_exception): Set siginfo_er.
3076 (win32_xfer_siginfo): New function.
3078 2020-02-07 Tom Tromey <tom@tromey.com>
3079 Pedro Alves <palves@redhat.com>
3081 * README: Update build documentation.
3082 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3084 * configure.ac: Update paths.
3085 * configure: Rebuild.
3086 * acinclude.m4: Update paths.
3087 * Makefile.in: Update include paths.
3088 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3089 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3090 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3091 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3092 (%-generated.c): Update paths.
3093 * Move entire directory from ../gdb/gdbserver.
3095 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3097 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3099 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3101 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3102 assignment instead of srv_linux_obj.
3104 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3106 * server.c (handle_qxfer_libraries): Write segment-address with
3109 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
3111 * Makefile.in (install-strip): New target.
3112 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3113 * aclocal.m4: Regenerate.
3114 * configure: Regenerate.
3115 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3117 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3119 * Makefile.in (SFILES): Adjust paths to point to real files.
3120 (OBS): Move waitstatus.o to target/waitstatus.o.
3121 (TAGS): Transform paths appropriately.
3123 (nat/%.o): ... this pattern rule.
3125 (target/%.o): ... this pattern rule.
3126 * configure.srv: Adjust paths throughout to include nat/ prefix
3127 with the revant files.
3128 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3129 * configure: Regenerate.
3131 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3133 * Makefile.in (TAGS): Remove config files from the recipe.
3135 2020-01-14 Tom Tromey <tom@tromey.com>
3137 * configure: Rebuild.
3138 * configure.ac: Remove any checks that were added to common.m4.
3139 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3142 2020-01-14 Tom Tromey <tom@tromey.com>
3144 * server.h: Include config.h.
3145 * gdbreplay.c: Include config.h.
3146 * configure: Rebuild.
3147 * configure.ac: Don't source common.host.
3148 * acinclude.m4: Update path.
3149 * Makefile.in (INCSUPPORT): New variable.
3150 (INCLUDE_CFLAGS): Add INCSUPPORT.
3151 (SFILES): Update paths.
3152 (version-generated.c): Update path to create-version.sh.
3153 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3155 2020-01-14 Tom Tromey <tom@tromey.com>
3157 * configure.ac (LIBS): Use WIN32APILIBS.
3158 (USE_WIN32API): Don't define.
3159 * configure: Rebuild.
3161 2020-01-14 Tom Tromey <tom@tromey.com>
3163 * configure: Rebuild.
3165 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3167 * Makefile.in (%-generated.c): Remove rule for files from
3170 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3172 * configure: Re-generate.
3174 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3176 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3178 * tracepoint.c (stop_tracing, flush_trace_buffer,
3179 about_to_request_buffer_space, get_trace_state_variable_value,
3180 set_trace_state_variable_value, gdb_collect): Add declaration.
3182 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3184 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3185 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3186 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3187 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3188 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3191 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3193 * inferiors.c: Include gdbsupport/common-inferior.h.
3195 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3197 * hostio-errno.c: Include hostio.h.
3199 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3201 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3204 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3206 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3207 * linux-arm-tdesc.h: Include arch/arm.h.
3209 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3211 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3213 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3215 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3216 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3218 2020-01-10 Pedro Alves <palves@redhat.com>
3220 * fork-child.c (post_fork_inferior): Pass target down to
3222 * inferiors.c (switch_to_thread): Add process_stratum_target
3224 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3225 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3226 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3227 * remote-utils.c (prepare_resume_reply): Pass the target to
3229 * target.c (the_target): Now a process_stratum_target.
3230 (done_accessing_memory): Pass the target to switch_to_thread.
3231 (set_target_ops): Ajust to use process_stratum_target.
3232 * target.h (struct target_ops): Rename to ...
3233 (struct process_stratum_target): ... this.
3234 (the_target, set_target_ops): Adjust.
3235 (prepare_to_access_memory): Adjust comment.
3236 * win32-low.c (child_xfer_memory): Adjust to use
3237 process_stratum_target.
3238 (win32_target_ops): Now a process_stratum_target.
3240 2020-01-06 Eli Zaretskii <eliz@gnu.org>
3241 Pedro Alves <palves@redhat.com>
3243 * win32-low.c (get_child_debug_event): Extract the fatal exception
3244 from the exit status and convert to the equivalent Posix signal
3246 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3247 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3249 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
3251 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3253 2020-01-01 Joel Brobecker <brobecker@adacore.com>
3255 * server.c (gdbserver_version): Change copyright year to 2020.
3256 * gdbreplay.c (gdbreplay_version): Likewise.
3258 2019-12-19 Christian Biesinger <cbiesinger@google.com>
3260 * configure: Regenerate.
3261 * configure.ac: Quote variable arguments of test.
3263 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3265 * Makefile.in: Fix build with GNU Make 3.81
3267 2019-12-16 Tom Tromey <tromey@adacore.com>
3269 * server.c (get_exec_file): Constify result.
3271 2019-12-10 Christian Biesinger <cbiesinger@google.com>
3273 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3274 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3275 * config.in: Regenerate.
3276 * configure: Regenerate.
3277 * configure.ac: Don't check for strerror.
3278 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3279 Call safe_strerror instead of strerror.
3280 * server.h (strerror): Remove this now-unnecessary declaration.
3281 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3283 (gdb_agent_helper_thread): Likewise.
3284 * utils.c (perror_with_name): Likewise.
3286 2019-11-26 Tom Tromey <tom@tromey.com>
3288 * configure, config.in: Rebuild.
3290 2019-11-26 Tom Tromey <tom@tromey.com>
3292 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3293 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3295 * configure, config.in: Rebuild.
3297 2019-11-26 Tom Tromey <tom@tromey.com>
3299 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3300 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3301 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3302 * acinclude.m4: Include ax_pthread.m4.
3303 * config.in, configure: Rebuild.
3305 2019-11-26 Christian Biesinger <cbiesinger@google.com>
3307 * debug.c (debug_set_output): Call safe_strerror instead of
3309 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3310 (linux_kill_one_lwp): Likewise.
3311 (linux_detach_one_lwp): Likewise.
3312 (linux_wait_for_event_filtered): Likewise.
3313 (store_register): Likewise.
3314 * lynx-low.c (lynx_attach): Likewise.
3315 * mem-break.c (insert_memory_breakpoint): Likewise.
3316 (remove_memory_breakpoint): Likewise.
3317 (delete_fast_tracepoint_jump): Likewise.
3318 (set_fast_tracepoint_jump): Likewise.
3319 (uninsert_fast_tracepoint_jumps_at): Likewise.
3320 (reinsert_fast_tracepoint_jumps_at): Likewise.
3321 * nto-low.c (nto_xfer_memory): Likewise.
3322 (nto_resume): Likewise.
3324 2019-11-20 Luis Machado <luis.machado@linaro.org>
3326 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
3327 instead of register count.
3328 * tdesc.c (tdesc_contains_feature): New function.
3329 * tdesc.h (tdesc_contains_feature): New prototype.
3331 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3333 * Makefile.in: Add safe-strerror.c.
3334 * configure: Regenerate.
3335 * configure.ac: Don't source common.host.
3337 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3339 * config.in: Regenerate.
3340 * configure: Regenerate.
3342 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
3344 * ax.c (ax_printf): Handle size_t_arg.
3346 2019-11-06 Christian Biesinger <cbiesinger@google.com>
3348 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
3349 * mi/mi-main.c (output_cores): Likewise.
3350 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
3351 (linux_xfer_osdata_modules): Likewise.
3352 * remote.c (register_remote_support_xml): Likewise.
3353 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
3354 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
3356 2019-11-01 Christian Biesinger <cbiesinger@google.com>
3358 * configure: Regenerate.
3359 * configure.ac: Remove check for strerror_r.
3361 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3363 * config.in: Regenerate.
3364 * configure: Regenerate.
3365 * configure.ac: Also check for strerror_r.
3367 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3369 * ax.h (debug_agent): Remove duplicate declaration.
3371 2019-10-26 Tom de Vries <tdevries@suse.de>
3373 * linux-aarch64-low.c: Fix typos in comments.
3374 * linux-arm-low.c: Same.
3375 * linux-low.c: Same.
3376 * linux-ppc-low.c: Same.
3377 * proc-service.c: Same.
3380 * tracepoint.c: Same.
3381 * win32-low.c: Same.
3383 2019-10-25 Tom Tromey <tromey@adacore.com>
3385 * utils.c (xstrdup): Remove.
3387 2019-10-23 Tom Tromey <tom@tromey.com>
3389 * configure, config.in: Rebuild.
3391 2019-10-23 Tom Tromey <tom@tromey.com>
3393 * configure: Rebuild.
3394 * acinclude.m4: Use m4_include, not sinclude.
3396 2019-10-17 Tom Tromey <tromey@adacore.com>
3398 * configure: Rebuild.
3399 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3400 in AC_CONFIG_FILES invocation.
3401 * Makefile.in (stamp-h, Makefile): Use new-style config.status
3404 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3406 * server.c: Include xml-builtin.h.
3407 (get_xml_features): Don't declare xml_builtins here.
3409 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3411 * Makefile.in: Remove references to vec-ipa.o.
3413 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3415 * Makefile.in: Remove references to vec.c.
3417 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3419 * server.c (server_waiting): Change to bool.
3420 (extended_protocol): Likewise.
3421 (response_needed): Likewise.
3422 (exit_requested): Likewise.
3423 (run_once): Likewise.
3424 (report_no_resumed): Likewise.
3425 (non_stop): Likewise.
3426 (disable_packet_vCont): Likewise.
3427 (disable_packet_Tthread): Likewise.
3428 (disable_packet_qC): Likewise.
3429 (disable_packet_qfThreadInfo): Likewise.
3430 (handle_general_set): Update.
3431 (handle_detach): Update.
3432 (handle_monitor_command): Update.
3433 (handle_query): Update.
3434 (captured_main): Update.
3435 (process_serial_event): Update.
3436 * server.h (server_waiting): Change to bool.
3437 (disable_packet_vCont): Likewise.
3438 (disable_packet_Tthread): Likewise.
3439 (disable_packet_qC): Likewise.
3440 (disable_packet_qfThreadInfo): Likewise.
3441 (run_once): Likewise.
3442 (non_stop): Likewise.
3443 * target.c (target_stop_and_wait): Update.
3445 2019-10-02 Tom Tromey <tromey@adacore.com>
3447 * Makefile.in (SFILES): Add common-inferior.c.
3448 (OBS): Add common-inferior.o.
3449 * server.c (startup_with_shell): Don't define.
3451 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3453 * linux-low.c (linux_low_read_btrace): Update for change to
3456 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3458 * debug.c (debug_threads): Remove comment in favor of the header.
3459 * debug.h (using_threads): Add declaration.
3460 (debug_threads): Add comment.
3461 * linux-aarch64-low.c: Include debug.h and remove declaration of
3463 * nto-low.c: Likewise.
3464 * remote-utils.c: Likewise.
3465 * thread-db.c: Likewise.
3467 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3469 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
3470 and powerpc-cell64l-ipa.o.
3471 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
3472 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
3473 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
3476 * spu-low.c: Remove file.
3478 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
3479 (parse_spufs_run): Remove.
3480 (ppc_get_pc): Remove Cell/B.E. support.
3481 (ppc_set_pc): Likewise.
3482 (ppc_breakpoint_at): Likewise.
3483 (ppc_arch_setup): Likewise.
3484 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
3485 tdesc_powerpc_cell32l.
3486 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
3487 or init_registers_powerpc_cell32l.
3488 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
3489 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
3490 or init_registers_powerpc_cell32l.
3491 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
3492 (init_registers_powerpc_cell32l): Remove prototype.
3493 (init_registers_powerpc_cell64l): Likewise.
3495 * target.h (struct target_ops): Remove qxfer_spu member.
3496 * server.c (handle_qxfer_spu): Remove.
3497 (qxfer_packets): Remove entry for "spu".
3498 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
3499 * linux-low.c (SPUFS_MAGIC): Remove.
3500 (spu_enumerate_spu_ids): Remove.
3501 (linux_qxfer_spu): Remove.
3502 (linux_target_ops): Remove qxfer_spu member.
3503 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
3504 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
3505 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
3507 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3509 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
3510 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
3511 * config.in: Regenerate.
3512 * configure: Regenerate.
3514 2019-08-15 Tom Tromey <tromey@adacore.com>
3516 * target.c (target_write_memory): Use gdb::byte_vector.
3518 2019-08-15 Tom Tromey <tromey@adacore.com>
3520 * tracepoint.c (write_inferior_data_pointer)
3521 (write_inferior_integer, write_inferior_int8)
3522 (write_inferior_uinteger, m_tracepoint_action_download)
3523 (r_tracepoint_action_download, x_tracepoint_action_download)
3524 (l_tracepoint_action_download, clear_inferior_trace_buffer)
3525 (download_agent_expr, download_tracepoint_1)
3526 (download_trace_state_variables, upload_fast_traceframes): Update.
3527 * server.c (gdb_write_memory): Update.
3528 * remote-utils.c (relocate_instruction): Update.
3529 * proc-service.c (ps_pdwrite): Update.
3530 * mem-break.c (remove_memory_breakpoint)
3531 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
3532 (uninsert_fast_tracepoint_jumps_at)
3533 (reinsert_fast_tracepoint_jumps_at): Update.
3534 * linux-x86-low.c (append_insns)
3535 (i386_install_fast_tracepoint_jump_pad)
3536 (amd64_write_goto_address, i386_write_goto_address): Update.
3537 * linux-s390-low.c (append_insns, s390_write_goto_address):
3539 * linux-ppc-low.c (ppc_relocate_instruction)
3540 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
3541 (ppc_write_goto_address): Update.
3542 * linux-aarch64-low.c (append_insns): Update.
3543 * target.h (struct target_ops): Update.
3544 (write_inferior_memory): Don't declare.
3545 * target.c (target_write_memory): Rename from
3546 write_inferior_memory. Remove old target_write_memory.
3548 2019-08-15 Tom Tromey <tromey@adacore.com>
3550 * target.c (write_inferior_memory): Use std::vector.
3552 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3555 * configure.ac: Drop enable-libmcheck support.
3556 * configure, config.in: Rebuild.
3557 * acinclude.m4: Don't include it.
3559 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3561 * configure.srv: Remove Arm xml files.
3563 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3565 * configure.srv: Add new files. Remove xml generated files.
3566 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
3568 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
3569 * linux-aarch32-tdesc.c: New file.
3570 * linux-aarch32-tdesc.h: New file.
3571 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
3572 * linux-arm-low.c (init_registers_arm, tdesc_arm)
3573 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
3574 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
3575 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
3576 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
3577 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
3578 (arm_read_description): Call arm_linux_read_description.
3579 (initialize_low_arch): Don't init registers.
3580 * linux-arm-tdesc.c: New file.
3581 * linux-arm-tdesc.h: New file.
3583 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3585 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
3586 Move counter inside for.
3587 (arm_read_description): Check ptrace earlier.
3588 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
3590 2019-07-09 Tom Tromey <tom@tromey.com>
3592 * configure: Rebuild.
3593 * configure.ac: Change common to gdbsupport.
3594 * acinclude.m4: Change common to gdbsupport.
3595 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
3596 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
3597 common to gdbsupport.
3598 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
3599 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
3600 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
3601 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
3602 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
3603 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
3604 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
3605 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
3606 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
3607 common to gdbsupport.
3609 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3611 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
3613 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
3615 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3617 * configure.srv: Remove legacy xml.
3618 * linux-aarch64-low.c (initialize_low_arch): Remove
3619 initialize_low_tdesc call.
3620 * linux-aarch64-tdesc-selftest.c: Remove file.
3621 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
3622 * linux-x86-low.c (initialize_low_arch): Remove
3623 initialize_low_tdesc call.
3624 * linux-x86-tdesc-selftest.c: Remove file.
3625 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
3627 2019-06-20 Tom de Vries <tdevries@suse.de>
3629 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
3630 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
3632 2019-06-19 Tom de Vries <tdevries@suse.de>
3634 * debug.h (debug_write): Change return type to ssize_t.
3635 * debug.c (debug_write): Same.
3637 2019-06-14 Tom Tromey <tom@tromey.com>
3639 * configure.ac: Use new path to gnulib.
3640 * configure: Rebuild.
3641 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
3644 2019-06-11 Tom Tromey <tom@tromey.com>
3646 * Makefile.in (SFILES): Add alloc.c.
3648 (IPA_OBJS): Add alloc-ipa.o.
3649 (alloc-ipa.o): New target.
3650 (%.o: ../%.c): New pattern rule.
3652 2019-06-10 Tom Tromey <tromey@adacore.com>
3654 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
3655 end warning with a newline.
3656 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
3658 * thread-db.c (attach_thread): Don't end warning with a newline.
3659 (thread_db_notice_clone): Likewise.
3660 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
3662 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
3663 end warning with a newline.
3665 2019-06-04 Pedro Alves <palves@redhat.com>
3667 * server.c (captured_main): Use make_unique_xstrdup.
3669 2019-06-02 Tom Tromey <tom@tromey.com>
3671 * gdbreplay.c (fromhex): Remove.
3672 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
3674 2019-05-29 Tom Tromey <tromey@adacore.com>
3676 * configure: Rebuild.
3678 2019-05-06 Kevin Buettner <kevinb@redhat.com>
3680 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
3681 sign extension code on 32-bit builds.
3683 2019-05-03 Eli Zaretskii <eliz@gnu.org>
3686 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
3688 2019-04-19 Tom Tromey <tom@tromey.com>
3690 * server.c (struct vstop_notif): Derive from notif_event.
3692 (queue_stop_reply): Update.
3693 (remove_all_on_match_ptid): Change type. Rewrite.
3694 (discard_queued_stop_replies): Rewrite.
3695 (in_queued_stop_replies_ptid): Change type.
3696 (in_queued_stop_replies): Rewrite.
3697 (notif_stop): Update.
3698 (queue_stop_reply_callback): Update.
3699 (captured_main): Don't call initialize_notif.
3700 (push_stop_notification): Update.
3701 * notif.c (notif_write_event, handle_notif_ack)
3702 (notif_event_enque, notif_push): Update.
3703 (notif_event_xfree, initialize_notif): Remove.
3704 * notif.h (struct notif_event): Include <list>, not
3706 (struct notif_server) <queue>: Now a std::list.
3707 (notif_event_p): Remove typedef.
3708 (initialize_notif): Don't declare.
3709 (struct notif_event): Add virtual destructor.
3711 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3713 * ax.c (ax_vdebug): Call debug_printf.
3714 * debug.c (debug_write): New function.
3715 * debug.h (debug_write): New declaration.
3716 * linux-low.c (sigchld_handler): Call debug_write.
3718 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3720 * debug.c (debug_set_output): New function.
3721 (debug_vprintf): Send output to debug_file.
3722 (debug_flush): Likewise.
3723 * debug.h (debug_set_output): New declaration.
3724 * server.c (handle_monitor_command): Add debug-file option.
3725 (captured_main): Likewise.
3727 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3729 * debug.c (remote_debug): Add definition.
3730 * debug.h (remote_debug): Add declaration.
3731 * hostio.c (remote_debug): Remove declaration.
3732 * remote-utils.c (struct ui_file): Likewise.
3733 (remote_debug): Likewise.
3734 * remote-utils.h (remote_debug): Likewise,
3735 * server.c (remote_debug): Remove definition.
3737 2019-04-10 Kevin Buettner <kevinb@redhat.com>
3739 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
3740 when using a 64-bit gdbserver.
3742 2019-04-09 Tom Tromey <tromey@adacore.com>
3744 * linux-low.c (select_event_lwp): Use find_thread_in_random.
3746 2019-04-08 Tom Tromey <tom@tromey.com>
3748 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
3750 (linux_resume_one_lwp): Likewise.
3752 2019-04-08 Tom Tromey <tom@tromey.com>
3754 * gdbreplay.c: Update.
3755 * linux-low.c: Update.
3758 2019-04-08 Tom Tromey <tom@tromey.com>
3760 * server.c: Use C++ exception handling.
3761 * linux-low.c: Use C++ exception handling.
3762 * gdbreplay.c: Use C++ exception handling.
3764 2019-04-08 Tom Tromey <tom@tromey.com>
3766 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
3767 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
3768 (captured_main, main): Update.
3769 * gdbreplay.c (main): Update.
3771 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3773 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
3774 value in argument pointer, return 1 if the entry is found and 0
3775 otherwise. Move comment.
3776 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
3777 * linux-low.h (linux_get_auxv): Declare.
3778 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
3780 2019-04-05 Tom Tromey <tromey@adacore.com>
3782 * server.c (gdbserver_usage): Use upper-case for metasyntactic
3785 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3787 * linux-low.c (AT_HWCAP2): Add define if not already included.
3789 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3791 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
3792 (aarch64_arch_setup): Call linux_get_hwcap.
3793 * linux-arm-low.c (arm_get_hwcap): Remove function.
3794 (arm_read_description): Call linux_get_hwcap.
3795 * linux-low.c (linux_get_auxv): New function.
3796 (linux_get_hwcap): Likewise.
3797 (linux_get_hwcap2): Likewise.
3798 * linux-low.h (linux_get_hwcap): New declaration.
3799 (linux_get_hwcap2): Likewise.
3800 * linux-ppc-low.c (ppc_get_auxv): Remove function.
3801 (ppc_arch_setup): Call linux_get_hwcap.
3802 * linux-s390-low.c (s390_get_hwcap): Remove function.
3803 (s390_arch_setup): Call linux_get_hwcap.
3805 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3806 Jiong Wang <jiong.wang@arm.com>
3808 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
3809 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
3811 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
3813 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3814 Jiong Wang <jiong.wang@arm.com>
3816 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
3817 (aarch64_get_hwcap): New function.
3818 (aarch64_arch_setup): Read APIA hwcap.
3820 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3821 Jiong Wang <jiong.wang@arm.com>
3823 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
3824 (initialize_low_tracepoint): Likewise.
3825 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
3826 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
3827 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
3828 (aarch64_linux_read_description): Likewise.
3829 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
3831 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3833 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
3834 i386_create_target_description for 'segments' parameter.
3835 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
3836 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3837 * win32-i386-low.c (i386_arch_setup): Likewise.
3839 2019-03-12 Tom Tromey <tromey@adacore.com>
3841 * linux-low.c (iterate_over_lwps): Update.
3843 2019-03-06 Tom Tromey <tom@tromey.com>
3845 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
3846 (captured_main): Use SCOPE_EXIT.
3848 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
3850 * configure.srv: Use '$enable_unittest' instead of '$development'
3851 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
3854 2019-02-27 Tom Tromey <tromey@adacore.com>
3856 * gdbreplay.c (logchar): Handle \r\n.
3858 2019-02-07 Alan Hayward <alan.hayward@arm.com>
3860 * linux-low.c (linux_attach): Add process before lwp.
3861 * server.c (attach_inferior): Check if already attached.
3863 2019-02-07 Tom Tromey <tom@tromey.com>
3865 * x86-tdesc.h: Rename include guard.
3866 * x86-low.h: Add include guard.
3867 * wincecompat.h: Rename include guard.
3868 * win32-low.h: Add include guard.
3869 * utils.h: Rename include guard.
3870 * tracepoint.h: Rename include guard.
3871 * tdesc.h: Rename include guard.
3872 * target.h: Rename include guard.
3873 * server.h: Rename include guard.
3874 * remote-utils.h: Rename include guard.
3875 * regcache.h: Rename include guard.
3876 * nto-low.h: Rename include guard.
3877 * notif.h: Add include guard.
3878 * mem-break.h: Rename include guard.
3879 * lynx-low.h: Add include guard.
3880 * linux-x86-tdesc.h: Add include guard.
3881 * linux-s390-tdesc.h: Add include guard.
3882 * linux-ppc-tdesc-init.h: Add include guard.
3883 * linux-low.h: Add include guard.
3884 * linux-aarch64-tdesc.h: Add include guard.
3885 * linux-aarch32-low.h: Add include guard.
3886 * inferiors.h: Rename include guard.
3887 * i387-fp.h: Rename include guard.
3888 * hostio.h: Rename include guard.
3889 * gdbthread.h: Rename include guard.
3890 * gdb_proc_service.h: Rename include guard.
3891 * event-loop.h: Rename include guard.
3892 * dll.h: Rename include guard.
3893 * debug.h: Rename include guard.
3894 * ax.h: Rename include guard.
3896 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
3899 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
3900 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
3902 2019-01-25 Tom Tromey <tom@tromey.com>
3904 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
3906 2019-01-25 Tom Tromey <tom@tromey.com>
3908 * win32-low.c: Fix common/ includes.
3909 * win32-i386-low.c: Fix common/ includes.
3910 * tracepoint.c: Fix common/ includes.
3911 * thread-db.c: Fix common/ includes.
3912 * target.h: Fix common/ includes.
3913 * symbol.c: Fix common/ includes.
3914 * spu-low.c: Fix common/ includes.
3915 * server.h: Fix common/ includes.
3916 * server.c: Fix common/ includes.
3917 * remote-utils.c: Fix common/ includes.
3918 * regcache.h: Fix common/ includes.
3919 * regcache.c: Fix common/ includes.
3920 * nto-x86-low.c: Fix common/ includes.
3921 * notif.h: Fix common/ includes.
3922 * mem-break.h: Fix common/ includes.
3923 * lynx-low.c: Fix common/ includes.
3924 * lynx-i386-low.c: Fix common/ includes.
3925 * linux-x86-tdesc-selftest.c: Fix common/ includes.
3926 * linux-x86-low.c: Fix common/ includes.
3927 * linux-low.c: Fix common/ includes.
3928 * inferiors.h: Fix common/ includes.
3929 * i387-fp.c: Fix common/ includes.
3930 * hostio.c: Fix common/ includes.
3931 * hostio-errno.c: Fix common/ includes.
3932 * gdbthread.h: Fix common/ includes.
3933 * gdbreplay.c: Fix common/ includes.
3934 * fork-child.c: Fix common/ includes.
3935 * event-loop.c: Fix common/ includes.
3937 (enum gdb_agent_op): Fix common/ includes.
3939 2019-01-21 Tom Tromey <tom@tromey.com>
3941 * tracepoint.c: Fix includes.
3942 * remote-utils.c: Fix includes.
3943 * linux-x86-low.c: Fix includes.
3945 2019-01-01 Joel Brobecker <brobecker@adacore.com>
3947 * gdbreplay.c (gdbreplay_version): Update copyright year in
3949 * server.c (gdbserver_version): Likewise.
3951 2018-12-05 Alan Hayward <alan.hayward@arm.com>
3953 * linux-low.c (add_lwp): Switch ordering.
3955 2018-11-29 Tom Tromey <tom@tromey.com>
3957 * win32-low.c (win32_join): Take pid, not process.
3958 * target.h (struct target_ops) <join>: Change argument type.
3959 (join_inferior): Change argument name.
3960 * spu-low.c (spu_join): Take pid, not process.
3961 * server.c (handle_detach): Preserve pid before destroying
3963 * lynx-low.c (lynx_join): Take pid, not process.
3964 * linux-low.c (linux_join): Take pid, not process.
3966 2018-11-23 Alan Hayward <alan.hayward@arm.com>
3968 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
3969 (aarch64_cannot_fetch_register): Likewise.
3970 (struct linux_target_ops): Update references.
3972 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3974 * linux-ppc-low.c: Include nat/linux-ptrace.h.
3976 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3978 * configure.srv (ipa_ppc_linux_regobj): Add
3979 powerpc-isa207-htm-vsx32l-ipa.o and
3980 powerpc-isa207-htm-vsx64l-ipa.o.
3981 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
3982 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
3983 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
3984 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
3985 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
3986 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
3987 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
3988 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
3989 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3990 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
3991 (init_registers_powerpc_isa207_htm_vsx32l)
3992 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
3993 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
3994 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
3995 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
3996 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
3997 (ppc_store_tm_ctarregset): New functions.
3998 (ppc_regsets): Add entries for HTM regsets.
3999 (ppc_arch_setup): Set htm in features struct when needed. Set
4000 sizes for the HTM regsets.
4001 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4002 (initialize_low_arch): Call
4003 init_registers_powerpc_isa207_htm_vsx32l and
4004 init_registers_powerpc_isa207_htm_vsx64l.
4005 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4006 PPC_TDESC_ISA207_HTM_VSX.
4007 (initialize_low_tracepoint): Call
4008 init_registers_powerpc_isa207_htm_vsx32l and
4009 init_registers_powerpc_isa207_htm_vsx64l.
4011 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4013 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4014 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4015 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4016 (ppc_store_pmuregset): New functions.
4017 (ppc_regsets): Add entries for ebb and pmu regsets.
4018 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4019 pmu regsets are available. Set sizes for these regsets.
4021 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4023 * configure.srv (ipa_ppc_linux_regobj): Add
4024 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4025 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4026 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4027 rs6000/powerpc-isa207-vsx32l.xml, and
4028 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4029 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4030 <PPC_TDESC_ISA207_VSX>: New enum value.
4031 (init_registers_powerpc_isa207_vsx32l): Declare.
4032 (init_registers_powerpc_isa207_vsx64l): Declare.
4033 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4034 (ppc_store_tarregset): New function.
4035 (ppc_regsets): Add entry for the TAR regset.
4036 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4037 size for the TAR regsets.
4038 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4039 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4040 and init_registers_powerpc_isa207_vsx64l.
4041 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4042 (initialize_low_tracepoint): Call
4043 init_registers_powerpc_isa207_vsx32l and
4044 init_registers_powerpc_isa207_vsx64l.
4046 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4047 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4049 * configure.srv (ipa_ppc_linux_regobj): Add
4050 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4051 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4052 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4053 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4054 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4055 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4056 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4057 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4058 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4059 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4060 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4061 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4062 (ppc_hwcap): Add comment.
4063 (ppc_hwcap2): New global.
4064 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4065 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4066 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4067 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4068 when needed. Set sizes for the the DSCR and PPR regsets.
4069 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4070 (initialize_low_arch): Call
4071 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4072 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4073 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4074 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4075 (initialize_low_tracepoint): Call
4076 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4077 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4079 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4081 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4083 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4084 Simon Marchi <simark@simark.ca>
4086 * acinclude.m4: Include "../selftest.m4".
4087 * configure: Regenerate.
4088 * configure.ac: Use "GDB_AC_SELFTEST".
4089 * configure.srv: Use "$enable_unittests" instead of
4090 "$development" when checking whether unit tests have been
4092 * server.c (captured_main): Update message informing that
4093 selftests have been disabled.
4095 2018-10-04 Tom Tromey <tom@tromey.com>
4097 * configure: Rebuild.
4099 2018-10-04 Tom Tromey <tom@tromey.com>
4101 * server.c (handle_status): Rename inner "thread".
4102 (process_serial_event): Declare "res" in 'm' case.
4103 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4104 (iterate_over_lwps): Rename inner "thread".
4105 (linux_qxfer_libraries_svr4): Rename inner "len".
4106 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4108 2018-10-01 Gary Benson <gbenson@redhat.com>
4110 * gdb_proc_service.h: Moved common code to
4111 common/gdb_proc_service.h.
4113 2018-10-01 Gary Benson <gbenson@redhat.com>
4115 * gdb_proc_service.h: Synchronize comments and whitespace with
4116 GDB's version of this file.
4118 2018-09-25 Tom Tromey <tom@tromey.com>
4120 * configure: Rebuild.
4121 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4123 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4125 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4126 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4127 ($(IPA_LIB)): Sort IPA_OBJS.
4129 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4131 * Makefile.in: Remove references to $(ADD_DEPS).
4133 2018-09-16 Tom Tromey <tom@tromey.com>
4135 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4137 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4140 2018-09-05 Tom Tromey <tom@tromey.com>
4142 * configure: Rebuild.
4144 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4147 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4149 2018-08-27 Tom Tromey <tom@tromey.com>
4152 * configure: Rebuild.
4154 2018-08-27 Tom Tromey <tom@tromey.com>
4156 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4157 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4158 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4159 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4160 (s390x_emit_stack_adjust): Add casts to unsigned char.
4162 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4166 * server.h (struct client_state) <disable_randomization>:
4169 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4171 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4173 (mips_supply_ptrace_register): Likewise.
4175 2018-07-22 Tom Tromey <tom@tromey.com>
4177 * configure: Rebuild.
4179 2018-07-22 Tom Tromey <tom@tromey.com>
4181 * win32-low.c (win32_create_inferior): Remove unused variables.
4182 * gdbreplay.c (remote_open): Remove unused variable.
4183 * remote-utils.c (remote_prepare): Remove unused variable.
4184 * x86-tdesc.h (X86_TDESC_H): Define.
4185 (amd64_expedite_regs): Define conditionally.
4186 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4187 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4188 * remote-utils.c (readchar): Remove unused variable.
4190 2018-07-13 Pedro Alves <palves@redhat.com>
4192 * linux-low.c (linux_kill): Change parameter to process_info
4193 pointer instead of pid. Adjust.
4194 * lynx-low.c (lynx_kill): Likewise.
4195 * nto-low.c (nto_kill): Likewise.
4196 * spu-low.c (spu_kill): Likewise.
4197 * win32-low.c (win32_kill): Likewise.
4198 * server.c (handle_v_kill, kill_inferior_callback)
4199 (detach_or_kill_for_exit): Adjust.
4200 * target.c (kill_inferior): Change parameter to process_info
4201 pointer instead of pid. Adjust.
4202 * target.h (struct target_ops) <kill>: Change parameter to
4203 process_info pointer instead of pid. Adjust all implementations
4205 (kill_inferior): Likewise.
4207 2018-07-13 Pedro Alves <palves@redhat.com>
4209 * linux-low.c (linux_detach, linux_join): Change parameter to
4210 process_info pointer instead of pid. Adjust.
4211 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4212 * nto-low.c (nto_detach): Likewise.
4213 * spu-low.c (spu_detach, spu_join): Likewise.
4214 * win32-low.c (win32_detach, win32_join): Likewise.
4215 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4216 * target.h (struct target_ops) <detach, join>: Change parameter to
4217 process_info pointer instead of pid. Adjust all implementations
4219 (detach_inferior, join_inferior): Rename 'pid' parameter to
4222 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4223 Jan Kratochvil <jan.kratochvil@redhat.com>
4224 Paul Fertser <fercerpav@gmail.com>
4225 Tsutomu Seki <sekiriki@gmail.com>
4227 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4228 (OBS): Add 'common/netstuff.o'.
4229 (GDBREPLAY_OBS): Likewise.
4230 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4231 (remote_open): Implement support for IPv6
4233 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4235 (handle_accept_event): Accept connections from IPv6 sources.
4236 (remote_prepare): Handle IPv6-style hostnames; implement
4237 support for IPv6 connections.
4238 (remote_open): Implement support for printing connections from
4241 2018-07-11 Pedro Alves <palves@redhat.com>
4244 * mem-break.c (any_persistent_commands): Add process_info
4245 parameter and use it instead of relying on the current process.
4246 Change return type to bool.
4247 * mem-break.h (any_persistent_commands): Add process_info
4248 parameter and change return type to bool.
4249 * server.c (handle_detach): Remove require_running_or_return call.
4250 Look up the process_info for the process we're about to detach.
4251 If not found, return back error to GDB. Adjust
4252 any_persistent_commands call to pass down a process pointer.
4254 2018-07-11 Pedro Alves <palves@redhat.com>
4256 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4257 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4258 instead of collect_register_by_name.
4259 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4260 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4262 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4263 Pedro Alves <palves@redhat.com>
4265 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4267 2018-07-03 Tom Tromey <tom@tromey.com>
4269 * linux-low.c: Update.
4270 * lynx-low.c: Update.
4271 * mem-break.c: Update.
4272 * nto-low.c: Update.
4273 * remote-utils.c: Update.
4275 * spu-low.c: Update.
4277 * win32-low.c: Update.
4279 2018-07-03 Tom Tromey <tom@tromey.com>
4283 2018-07-03 Tom Tromey <tom@tromey.com>
4285 * linux-low.c: Update.
4287 2018-07-03 Tom Tromey <tom@tromey.com>
4291 2018-07-03 Tom Tromey <tom@tromey.com>
4293 * linux-low.c: Update.
4294 * linux-mips-low.c: Update.
4295 * lynx-low.c: Update.
4296 * nto-low.c: Update.
4297 * remote-utils.c: Update.
4299 * spu-low.c: Update.
4301 * thread-db.c: Update.
4303 2018-07-03 Tom Tromey <tom@tromey.com>
4305 * linux-low.c: Update.
4306 * linux-mips-low.c: Update.
4307 * lynx-low.c: Update.
4308 * mem-break.c: Update.
4309 * nto-low.c: Update.
4310 * remote-utils.c: Update.
4312 * spu-low.c: Update.
4314 * tracepoint.c: Update.
4316 2018-07-03 Tom Tromey <tom@tromey.com>
4318 * linux-low.c: Update.
4319 * linux-ppc-low.c: Update.
4320 * linux-x86-low.c: Update.
4321 * proc-service.c: Update.
4323 * spu-low.c: Update.
4324 * thread-db.c: Update.
4325 * win32-low.c: Update.
4327 2018-07-03 Tom Tromey <tom@tromey.com>
4329 * linux-low.c: Update.
4330 * lynx-low.c: Update.
4331 * nto-low.c: Update.
4332 * remote-utils.c: Update.
4333 * spu-low.c: Update.
4334 * thread-db.c: Update.
4335 * win32-low.c: Update.
4337 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4339 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
4340 parameter in call to 'amd64_create_target_description'.
4342 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4344 * x86-tdesc.h: Remove executable permission flag.
4346 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4348 * configure.ac: Remove AC_PREREQ, add missing quoting.
4349 * configure: Re-generate.
4350 * config.in: Re-generate.
4351 * aclocal.m4: Re-generate.
4353 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
4355 * tracepoint.h (current_traceframe): Remove declaration.
4357 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4359 * linux-aarch64-low.c (is_sve_tdesc): New function.
4360 (aarch64_sve_regs_copy_to_regcache): Likewise.
4361 (aarch64_sve_regs_copy_from_regcache): Likewise.
4362 (aarch64_regs_info): Add SVE checks.
4363 (initialize_low_arch): Initialize SVE.
4365 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4367 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
4369 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4371 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
4372 (initialize_low_tracepoint): Likewise
4373 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
4374 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
4376 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
4378 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
4380 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4382 * server.h (PBUFSIZ): Increase size
4384 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4386 * regcache.c (regcache::raw_compare): New function.
4387 * regcache.h (regcache::raw_compare): New declaration.
4389 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4391 * regcache.c (new_register_cache): Use new.
4392 (free_register_cache): Use delete.
4393 (register_data): Use const.
4394 (supply_register): Move body inside regcache.
4395 (regcache::raw_supply): New override function.
4396 (collect_register): Move body inside regcache.
4397 (regcache::raw_collect): New override function.
4398 (regcache::get_register_status): New override function.
4399 * regcache.h (struct regcache): Inherit from reg_buffer_common.
4401 2018-06-09 Tom Tromey <tom@tromey.com>
4403 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
4405 (event_queue): Use std::queue.
4406 (gdb_event_xfree): Remove.
4407 (initialize_event_loop, process_event, wait_for_event): Update.
4409 2018-06-08 Stan Cox <scox@redhat.com>
4411 * win32-low.c (win32_create_inferior): last_ptid and last_status
4412 moved to client_state.
4414 2018-06-08 Pedro Alves <palves@redhat.com>
4416 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
4417 common/common-exceptions.o, common/common-utils.o,
4418 common/errors.o, common/print-utils.o and utils.o.
4419 * gdbreplay.c: Include "common-defs.h" instead of the two
4420 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
4421 string.h or alloca.h.
4422 (perror_with_name): Delete.
4423 (remote_open): Use xstrdup instead of strdup.
4424 (main): Rename to ...
4425 (captured_main): ... this.
4428 2018-06-08 Tom Tromey <tom@tromey.com>
4430 * linux-low.c (linux_low_read_btrace): Update.
4432 2018-06-04 Stan Cox <scox@redhat.com>
4434 * server.h (struct client_state): New.
4435 * server.c (cont_thread, general_thread, multi_process)
4436 (report_fork_events, report_vfork_events, report_exec_events)
4437 (report_thread_events, swbreak_feature, hwbreak_feature)
4438 (vCont_supported, disable_randomization, pass_signals)
4439 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
4440 Moved to client_state.
4441 * remote-utils.c (remote_debug, noack_mode)
4442 (transport_is_reliable): Moved to client_state.
4443 * tracepoint.c (current_traceframe): Moved to client_state.
4446 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
4447 linux-low.c, remote-utils.h, target.c: Use client_state.
4449 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4451 * configure.srv: Add new c/h file.
4453 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4455 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
4458 2018-05-25 Maciej W. Rozycki <macro@mips.com>
4460 * gdb.arch/mips-fpregset-core.exp: New test.
4461 * gdb.arch/mips-fpregset-core.c: New test source.
4463 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
4466 * hostio.c (require_int): Do not report overflow for integers
4467 between 0xfffffff and 0x7fffffff.
4469 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4471 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
4472 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
4473 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
4475 (the_low_target): Wire them.
4477 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4479 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
4480 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
4481 mode. Call collect_register_by_name with vscr using
4482 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
4483 (ppc_store_vrregset): Add and set vscr_offset variable as in
4484 ppc_fill_vrregset. Call supply_register_by_name with vscr using
4487 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4489 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4490 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
4491 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
4493 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4495 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
4496 (ppc_store_vsxregset): Likewise.
4497 (ppc_fill_vrregset): Likewise.
4498 (ppc_store_vrregset): Likewise.
4499 (ppc_fill_evrregset): Likewise.
4500 (ppc_store_evrregset): Likewise.
4501 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
4502 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
4505 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4507 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
4508 wordsize of the inferior. Call ppc_linux_target_wordsize.
4510 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4512 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
4513 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
4514 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
4515 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4516 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4517 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4518 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4519 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4520 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4521 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4522 (tdesc_powerpc_e500l): Remove.
4523 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
4524 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
4525 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
4526 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
4528 (ppc_arch_setup): Remove target description matching code. Fill a
4529 ppc_linux_features struct and call ppc_linux_match_description
4532 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4534 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
4535 width of the requested register exceeds the width of the
4537 (mips_cannot_store_register): Likewise.
4539 2018-05-21 Maciej W. Rozycki <macro@mips.com>
4541 * linux-mips-low.c (mips_fetch_register): New function. Update
4543 (mips_store_gregset): Supply 0 rather than $restart for $zero.
4544 (the_low_target): Wire `mips_fetch_register'.
4546 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4548 * lynx-i386-low.c (LYNXOS_178): New macro.
4549 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
4550 the layout on LynxOS-178.
4551 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
4552 handle floating point registers that are not supported by
4555 2018-05-10 Tom Tromey <tom@tromey.com>
4557 * configure: Rebuild.
4559 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4562 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
4563 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
4564 Use it to set the expedite_regs field in the given tdesc.
4565 * x86-tdesc.h: New file.
4566 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
4567 Adjust following the addition of the new expedite_regs parameter
4568 to init_target_desc.
4569 * linux-tic6x-low.c (tic6x_read_description): Likewise.
4570 * linux-x86-tdesc.c: #include "x86-tdesc.h".
4571 (i386_linux_read_description, amd64_linux_read_description):
4572 Adjust following the addition of the new expedite_regs parameter
4573 to init_target_desc.
4574 * lynx-i386-low.c: #include "x86-tdesc.h".
4575 (lynx_i386_arch_setup): Adjust following the addition of the new
4576 expedite_regs parameter to init_target_desc.
4577 * nto-x86-low.c: #include "x86-tdesc.h".
4578 (nto_x86_arch_setup): Adjust following the addition of the new
4579 expedite_regs parameter to init_target_desc.
4580 * win32-i386-low.c: #include "x86-tdesc.h".
4581 (i386_arch_setup): Adjust following the addition of the new
4582 expedite_regs parameter to init_target_desc.
4584 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4587 * win32-low.c (win32_create_inferior): Add call to my_wait
4588 setting last_status global.
4590 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4593 * win32-low.c (create_process): Only call gdb_tilde_expand if
4594 inferior_cwd is not NULL.
4596 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4598 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
4599 registers to the cache if their values have changed.
4600 (i387_xsave_to_cache): Provide default values for x87 control
4601 registers when these features are available, but disabled.
4602 * regcache.c (supply_register_by_name_zeroed): New function.
4603 * regcache.h (supply_register_by_name_zeroed): Declare new
4606 2018-05-07 Tom Tromey <tom@tromey.com>
4608 * configure: Rebuild.
4610 2018-05-04 Tom Tromey <tom@tromey.com>
4612 * configure: Rebuild.
4614 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4615 Pedro Alves <palves@redhat.com>
4617 * linux-aarch64-low.c (aarch64_stopped_data_address):
4620 2018-04-27 Tom Tromey <tom@tromey.com>
4622 * configure: Rebuild.
4624 2018-04-23 Tom Tromey <tom@tromey.com>
4626 * configure: Rebuild.
4628 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
4630 * Makefile.in (depcomp): Add "..".
4631 (all_deps_files): New and use it.
4633 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4635 * configure.srv (aarch64*-*-linux*): Don't include xml.
4636 (i[34567]86-*-cygwin*): Likewise.
4637 (i[34567]86-*-linux*): Likewise.
4638 (i[34567]86-*-lynxos*): Likewise.
4639 (i[34567]86-*-mingw32ce*): Likewise.
4640 (i[34567]86-*-mingw*): Likewise.
4641 (i[34567]86-*-nto*): Likewise.
4642 (tic6x-*-uclinux): Likewise.
4643 (x86_64-*-linux*): Likewise.
4644 (x86_64-*-mingw*): Likewise.
4645 (x86_64-*-cygwin*): Likewise.
4647 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4649 * tdesc.c: Remove xml parameter.
4651 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4653 * server.c (get_features_xml): Remove cast.
4654 * tdesc.c (void target_desc::accept): Fill in function.
4655 (tdesc_get_features_xml): Remove old xml creation.
4656 (print_xml_feature::visit_pre): Add xml vistor.
4657 * tdesc.h (struct target_desc): Make xmltarget mutable.
4658 (tdesc_get_features_xml): Remove declaration.
4660 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4662 * tdesc.c (tdesc_architecture_name): Add new function.
4663 (tdesc_osabi_name): Likewise.
4664 (tdesc_get_features_xml): Use new functions.
4666 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4668 * tdesc.c (tdesc_create_flags): Remove.
4669 (tdesc_add_flag): Likewise.
4670 (tdesc_named_type): Likewise.
4671 (tdesc_create_union): Likewise.
4672 (tdesc_create_struct): Likewise.
4673 (tdesc_create_vector): Likewise.
4674 (tdesc_add_bitfield): Likewise.
4675 (tdesc_add_field): Likewise.
4676 (tdesc_set_struct_size): Likewise.
4678 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4680 * tdesc.c (~target_desc): Remove implictly deleted items.
4681 (init_target_desc): Iterate all features.
4682 (tdesc_get_features_xml): Use vector.
4683 (tdesc_create_feature): Create feature.
4684 * tdesc.h (tdesc_feature) Remove
4685 (target_desc): Add features.
4687 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4689 * Makefile.in: Add common/tdesc.c
4690 * tdesc.c (init_target_desc): init all reg_defs from register
4692 (tdesc_create_reg): Create tdesc_reg.
4693 * tdesc.h (tdesc_feature): Add register vector.
4695 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4697 * tdesc.h (struct target_desc) <features>: Change type to
4698 std::vector<std::string>.
4699 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
4701 (tdesc_get_features_xml): Likewise.
4702 (tdesc_create_feature): Likewise.
4704 2018-03-26 Alan Hayward <alan.hayward@arm.com>
4706 * regcache.c (find_register_by_number): Return a ref.
4707 (find_regno): Use references.
4708 (register_size): Likewise.
4709 (register_data): Likewise.
4710 * tdesc.c (target_desc::~target_desc): Remove free calls.
4711 (target_desc::operator==): Use std::vector compare.
4712 (init_target_desc): Use reference.
4713 (tdesc_create_reg): Use reg constructors.
4714 * tdesc.h (struct target_desc): Replace pointer with object.
4716 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4718 * regcache.c (find_register_by_number): Make static.
4719 (find_regno): Use find_register_by_number
4720 * regcache.h (struct reg): Remove declaration.
4722 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4724 * tdesc.c (target_desc::~target_desc): Move to here.
4725 (target_desc::operator==): Likewise.
4726 * tdesc.h (target_desc::~target_desc): Move from here.
4727 (target_desc::operator==): Likewise.
4729 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
4731 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
4733 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4735 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
4737 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
4738 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
4739 and init_registers_s390_gs_linux64.
4741 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4743 * linux-s390-low.c (s390_fill_gs): Remove function.
4744 (s390_fill_gsbc): Remove function.
4745 (s390_regsets): Set fill functions for the guarded storage regsets
4748 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4750 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
4751 the word size. Add comment.
4752 (s390_get_wordsize): New function.
4753 (s390_arch_setup): No longer select a temporary tdesc to fetch the
4754 pswm with it. Instead, use s390_get_wordsize to determine the
4755 word size first and derive the correct tdesc from that directly.
4757 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
4759 * Makefile.in: Include silent-rules.mk.
4760 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
4761 (COMPILE): Add ECHO_CXX.
4762 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4763 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4764 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
4765 (version-generated.c): Add ECHO_GEN.
4766 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
4767 (IPAGENT_COMPILE): Add ECHO_CXX.
4768 (%-generated.c): Add ECHO_REGDAT.
4770 2018-03-14 Tom Tromey <tom@tromey.com>
4773 * ax.c (ax_printf): Special case for NULL.
4775 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4777 * linux-low.c (linux_qxfer_libraries_svr4): Use
4778 xml_escape_text_append.
4780 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4782 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
4784 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4786 * server.c (handle_general_set): Remove unnecessary xstrdup.
4788 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4790 * server.c (parse_debug_format_options): Adjust to
4791 delim_string_to_char_ptr_vec changes.
4792 * thread-db.c (thread_db_load_search): Adjust to
4793 dirnames_to_char_ptr_vec changes.
4795 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
4797 * target.h (target_enable_btrace, target_disable_btrace)
4798 (target_read_btrace, target_read_btrace_conf): Turn macro into
4799 inline function. Throw error if target method is not defined.
4800 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
4801 check for btrace target method. Be prepared to handle exceptions
4802 from btrace target methods.
4804 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4806 * server.c (captured_main): Change order of error message printed
4807 when the current working directory cannot be found.
4809 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4811 * server.c: Include "filenames.h" and "pathstuff.h".
4812 (program_name): Delete variable.
4813 (program_path): New anonymous class.
4814 (get_exec_wrapper): Use "program_path" instead of
4816 (handle_v_run): Likewise.
4817 (captured_main): Likewise.
4818 (process_serial_event): Likewise.
4820 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4822 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
4823 (OBJS): Add "pathstuff.o".
4824 * server.c (current_directory): New global variable.
4825 (captured_main): Initialize "current_directory".
4827 2018-02-26 Alan Hayward <alan.hayward@arm.com>
4829 * tdesc.c: Use common/tdesc.h.
4830 * tdesc.h: Likewise.
4832 2018-02-20 Alan Hayward <alan.hayward@arm.com>
4833 Simon Marchi <simon.marchi@ericsson.com>
4835 * Makefile.in: Switch order of make rules.
4837 2018-02-19 Alan Hayward <alan.hayward@arm.com>
4839 * Makefile.in: Add common directory in build.
4840 * configure.ac: Add common reference.
4841 * configure: Regenerate.
4843 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4845 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
4846 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
4847 * spu-low.c (spu_target_ops): Likewise.
4848 * win32-low.c (win32_target_ops): Likewise.
4849 * server.c (supported_btrace_packets): Report packets unconditionally.
4850 * target.h (target_ops) <supports_btrace>: Remove.
4851 (target_supports_btrace): Remove.
4853 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4855 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
4856 (handle_btrace_disable): Change return type to void. Use exceptions
4858 (handle_btrace_general_set): Catch exception and copy message to
4861 2018-02-08 Tom Tromey <tom@tromey.com>
4863 * linux-low.c (install_software_single_step_breakpoints): Use
4864 make_scoped_restore.
4865 * inferiors.c (make_cleanup_restore_current_thread): Remove.
4866 (do_restore_current_thread_cleanup): Remove.
4867 * gdbthread.h (make_cleanup_restore_current_thread): Don't
4870 2018-02-08 Tom Tromey <tom@tromey.com>
4872 * mem-break.c (set_raw_breakpoint_at): Use
4873 gdb::unique_xmalloc_ptr.
4875 2018-01-30 Pedro Alves <palves@redhat.com>
4878 * target.c (target_terminal::terminal_state): Rename to ...
4879 (target_terminal::m_terminal_state): ... this.
4881 2018-01-19 James Clarke <jrtc27@jrtc27.com>
4883 * linux-low.c (handle_extended_wait): Surround call to
4884 thread_db_notice_clone with #ifdef USE_THREAD_DB.
4886 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
4888 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
4889 linux_ptrace_attach_fail_reason_string now returning an
4891 (linux_attach): Likewise.
4892 * thread-db.c (attach_thread): Likewise.
4894 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
4897 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
4898 checking for fs_base/gs_base fields in struct user_regs_struct.
4899 * configure: Regenerate.
4901 2018-01-16 Yao Qi <yao.qi@linaro.org>
4904 * linux-low.c (fetch_register): Call supply_register instead of
4907 2018-01-08 Yao Qi <yao.qi@linaro.org>
4908 Simon Marchi <simon.marchi@ericsson.com>
4910 * Makefile.in (OBS): Remove selftest.o.
4911 * configure.ac: Set srv_selftest_objs if $development is true.
4912 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
4913 * configure: Re-generated.
4914 * server.c (captured_main): Wrap variable selftest_filter with
4917 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4919 * server.c (parse_debug_format_options): Return std::string.
4920 (handle_monitor_command, captured_main): Adjust.
4922 2018-01-05 Pedro Alves <palves@redhat.com>
4925 * server.c (captured_main): Pass quiet=false to
4926 save_original_signals_state.
4928 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4930 * gdbreplay.c (gdbreplay_version): Update copyright year in
4932 * server.c (gdbserver_version): Likewise.
4934 2017-12-08 Tom Tromey <tom@tromey.com>
4936 * ax.c (ax_printf): Update.
4938 2017-12-07 Yao Qi <yao.qi@linaro.org>
4940 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
4941 aarch64_linux_read_description.
4942 * linux-amd64-ipa.c (idx2mask): New array.
4943 (get_ipa_tdesc): Move idx2mask out.
4944 (initialize_low_tracepoint): Initialize target descriptions.
4945 * linux-i386-ipa.c (idx2mask): New array.
4946 (get_ipa_tdesc): Move idx2mask out.
4947 (initialize_low_tracepoint): Initialize target descriptions.
4949 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
4951 * tdesc.c (struct tdesc_type): Change return type.
4952 (tdesc_add_flag): Change parameter type.
4953 (tdesc_add_bitfield): Likewise.
4954 (tdesc_add_field): Likewise.
4955 (tdesc_set_struct_size): Likewise.
4957 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
4959 * regcache.c (registers_to_string): Remove unused variable.
4961 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4963 * inferiors.c (for_each_inferior_with_data): Remove.
4964 * inferiors.h (for_each_inferior_with_data): Remove.
4965 * server.c (handle_qxfer_threads_worker): Change parameter type.
4966 (handle_qxfer_threads_proper): Use for_each_thread.
4968 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4970 * inferiors.c (for_each_inferior): Remove.
4971 (clear_inferiors): Use for_each_thread.
4972 * inferiors.h (for_each_inferior): Remove.
4973 * linux-low.c (linux_wait_for_event_filtered): Use
4975 (linux_stabilize_threads): Likewise.
4976 * regcache.c (regcache_release): Likewise.
4977 * server.c (gdb_wants_all_threads_stopped): Likewise.
4978 (clear_pending_status_callback): Remove.
4979 (handle_status): Use for_each_thread.
4980 (captured_main): Likewise.
4981 * win32-low.c (child_init_thread_list): Likewise.
4982 (win32_clear_inferiors): Likewise.
4983 (fake_breakpoint_event): Likewise.
4985 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4987 * inferiors.h (find_inferior): Remove.
4988 * inferiors.c (find_inferior): Remove.
4990 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4992 * linux-low.c (resume_status_pending_p): Update comment.
4993 (need_step_over_p): Update comment.
4995 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4997 * linux-low.c (proceed_one_lwp): Return void, change parameter
4999 (unsuspend_and_proceed_one_lwp): Likewise.
5000 (proceed_all_lwps): Use for_each_thread.
5001 (unstop_all_lwps): Likewise.
5003 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5005 * linux-low.c (linux_resume_one_thread): Return void, take
5007 (linux_resume): Use for_each_thread.
5009 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5011 * linux-low.c (send_sigstop_callback): Return void, change
5012 parameter type. Rename to...
5013 (send_sigstop): ... this.
5014 (suspend_and_send_sigstop_callback): Return void, change parameter
5016 (suspend_and_send_sigstop): ... this.
5017 (stop_all_lwps): Use for_each_thread.
5019 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5021 * linux-low.c (lwp_running): Return bool, remove unused
5023 (linux_stabilize_threads): Use find_thread.
5025 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5027 * linux-low.c (select_singlestep_lwp_callback): Remove.
5028 (count_events_callback): Remove.
5029 (select_event_lwp_callback): Remove.
5030 (select_event_lwp): Use find_thread/for_each_thread.
5032 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5034 * linux-low.c (not_stopped_callback): Return bool, take filter
5036 (linux_wait_for_event_filtered): Use find_thread.
5037 (linux_wait_1): Likewise.
5039 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5041 * linux-low.c (same_lwp): Remove.
5042 (find_lwp_pid): Use find_thread.
5044 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5046 * linux-low.c (delete_lwp_callback): Remove.
5047 (linux_mourn): Use for_each_thread.
5049 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5051 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5052 args parameter, don't check for pid.
5053 (linux_detach): Use for_each_thread.
5055 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5057 * linux-low.c (struct counter): Remove.
5058 (second_thread_of_pid_p): Remove.
5059 (last_thread_of_process_p): Use find_thread.
5061 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5063 * inferiors.c (find_inferior_in_random): Remove.
5064 * inferiors.h (find_inferior_in_random): Remove.
5065 * linux-low.c (status_pending_p_callback): Return bool, accept
5066 parameter ptid directly.
5067 (linux_wait_for_event_filtered): Use find_thread_in_random.
5068 (linux_wait_1): Likewise.
5070 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5072 * inferiors.c (find_inferior_id): Remove.
5073 (find_thread_ptid): Move implemention from find_inferior_id to
5075 * inferiors.h (find_inferior_id): Remove.
5076 * server.c (handle_status): Use find_thread_ptid.
5077 (process_serial_event): Likewise.
5078 * thread-db.c (find_one_thread): Likewise.
5079 (thread_db_thread_handle): Likewise.
5080 * win32-low.c (thread_rec): Likewise.
5081 (child_delete_thread): Likewise.
5082 (win32_thread_alive): Likewise.
5083 (get_child_debug_event): Likewise.
5085 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5087 * linux-mips-low.c (update_watch_registers_callback): Return
5088 void, remove pid_p parameter, don't check for pid.
5089 (mips_insert_point, mips_remove_point): Use for_each_thread.
5091 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5093 * lynx.low (lynx_delete_thread_callback): Remove.
5094 (lynx_mourn): Use for_each_thread.
5096 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5098 * regcache.c (regcache_invalidate_one): Remove.
5099 (regcache_invalidate_pid): use for_each_thread.
5101 2017-11-26 Tom Tromey <tom@tromey.com>
5103 * linux-low.c (linux_create_inferior): Update.
5105 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5107 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5109 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5111 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5112 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5113 * linux-aarch64-tdesc-selftest.c: New file.
5114 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5116 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5118 * configure.srv: Add new file.
5119 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5120 * linux-aarch64-tdesc-selftest.c: New file.
5121 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5123 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5125 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5126 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5127 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5129 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5131 * configure.srv: Add new files.
5132 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5133 aarch64_linux_read_description.
5134 * linux-aarch64-low.c (aarch64_linux_read_description):
5135 Merge with aarch64_arch_setup.
5136 (aarch64_arch_setup): Call aarch64_linux_read_description.
5137 * linux-aarch64-tdesc.c: New file.
5138 * linux-aarch64-tdesc.h: New file.
5140 2017-11-24 Yao Qi <yao.qi@linaro.org>
5142 * configure.srv: Set $srv_regobj for tic6x-linux.
5143 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5144 (tic6x_read_description): Move some code to tic6x_arch_setup.
5145 (tic6x_tdesc_test): New function.
5146 (initialize_low_arch): Call selftests::register_test.
5148 2017-11-22 Yao Qi <yao.qi@linaro.org>
5150 * remote-utils.c (prepare_resume_reply): Use memcpy.
5152 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5154 * linux-low.c (kill_one_lwp_callback): Return void, take
5155 argument directly, don't filter on pid.
5156 (linux_kill): Use for_each_thread.
5158 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5160 * linux-low.c (need_step_over_p): Return bool, remove dummy
5162 (linux_resume, proceed_all_lwps): Use find_thread.
5164 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5166 * linux-low.c (resume_status_pending_p): Return bool, remove
5168 (linux_resume): Use find_thread.
5170 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5172 * linux-low.c (struct thread_resume_array): Remove.
5173 (linux_set_resume_request): Return void, take arguments
5175 (linux_resume): Use for_each_thread.
5177 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5179 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5180 return bool, remove data argument.
5181 (linux_stabilize_threads): Use find_thread.
5183 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5185 * linux-low.c (unsuspend_one_lwp): Remove.
5186 (unsuspend_all_lwps): Use for_each_thread, inline code from
5189 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5191 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5192 * linux-low.c (struct iterate_over_lwps_args): Remove.
5193 (iterate_over_lwps_filter): Remove.
5194 (iterate_over_lwps): Use find_thread.
5196 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5198 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5199 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5200 code from reset_lwp_ptrace_options_callback.
5202 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5204 * linux-arm-low.c (struct update_registers_data): Remove.
5205 (update_registers_callback): Return void, take arguments
5206 directly, don't check thread's pid.
5207 (arm_insert_point, arm_remove_point): Use for_each_thread.
5209 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5211 * win32-low.c (continue_one_thread): Return void, take argument
5213 (child_continue): Use for_each_thread.
5215 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5217 * win32-i386-low.c (update_debug_registers_callback): Rename
5219 (update_debug_registers): ... this, return void, remove pid_p arg.
5220 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5222 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5224 * inferiors.h (struct process_info): Add constructor, initialize
5226 <syscalls_to_catch>: Change type to std::vector<int>.
5227 * inferiors.c (add_process): Allocate process_info with new.
5228 (remove_process): Free process_info with delete.
5229 * linux-low.c (handle_extended_wait): Adjust.
5230 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5231 * server.c (handle_general_set): Adjust.
5233 2017-11-16 Pedro Alves <palves@redhat.com>
5235 * remote-utils.c (remote_close): Block SIGIO signals instead of
5236 uninstalling the SIGIO handler.
5238 2017-11-16 Alan Hayward <alan.hayward@arm.com>
5240 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5242 2017-11-16 Yao Qi <yao.qi@linaro.org>
5244 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5245 (tic6x_store_gregset): Likewise.
5246 (tic6x_usrregs_info): Move it up.
5248 2017-11-15 Alan Hayward <alan.hayward@arm.com>
5250 * Makefile.in: Update arch rules.
5251 * configure.srv: Explicitly mark arch/ files.
5253 2017-11-13 Andreas Schwab <schwab@suse.de>
5255 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5257 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5259 2017-11-06 Pedro Alves <palves@redhat.com>
5261 * config.in, configure: Regenerate.
5263 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5265 * target.c (struct thread_search): Remove.
5266 (thread_search_callback): Remove.
5267 (prepare_to_access_memory): Use for_each_thread instead of
5268 find_inferior. Inline code from thread_search_callback.
5270 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5272 * server.c (struct visit_actioned_threads_data): Remove.
5273 (visit_actioned_threads): Change prototype to take arguments
5275 (resume): Use find_thread instead of find_inferior.
5277 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5279 * server.c (queue_stop_reply_callback): Change prototype, return
5281 (find_status_pending_thread_callback): Remove.
5282 (handle_status): Replace find_inferior with find_thread and
5285 2017-10-25 Alan Hayward <alan.hayward@arm.com>
5287 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5289 (aarch64_store_gregset): Likewise.
5290 (aarch64_fill_fpregset): Likewise.
5291 (aarch64_store_fpregset): Likewise.
5293 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5295 * gdbthread.h (find_thread, for_each_thread): New functions.
5296 * inferiors.c (thread_of_pid): Remove.
5297 (find_any_thread_of_pid): Use find_thread.
5298 * linux-low.c (num_lwps): Use for_each_thread.
5300 2017-10-17 Yao Qi <yao.qi@linaro.org>
5302 * Makefile.in: Remove one rule.
5303 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5305 2017-10-17 Yao Qi <yao.qi@linaro.org>
5307 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5308 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5310 2017-10-17 Yao Qi <yao.qi@linaro.org>
5312 * configure.srv: Rename arm.o with arch/arm.o.
5314 2017-10-17 Yao Qi <yao.qi@linaro.org>
5316 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5317 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5318 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
5319 (arch-i386.o, arch-amd64.o): Remove rules.
5320 (arch/%.o): New rule.
5321 Update POSTCOMPILE and COMPILE.pre.
5322 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5323 * configure: Re-generated.
5324 * configure.srv: Replace arch-i386.o with arch/i386.o.
5325 Replace arch-amd64.o with arch/amd64.o.
5327 2017-10-16 Yao Qi <yao.qi@linaro.org>
5329 * configure: Regenerated.
5331 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5333 * inferiors.h: (struct inferior_list): Remove.
5334 (struct inferior_list_entry); Remove.
5335 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
5336 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
5337 get_first_inferior): Remove.
5338 (for_each_inferior, for_each_inferior_with_data, find_inferior,
5339 find_inferior_id, find_inferior_in_random): Change signature.
5340 * inferiors.c (all_threads): Change type to
5341 std::list<thread_info *>.
5342 (get_thread): Remove macro.
5343 (find_inferior, find_inferior_id): Change signature, implement
5345 (find_inferior_in_random): Change signature, implement using
5346 find_thread_in_random.
5347 (for_each_inferior, for_each_inferior_with_data): Change
5348 signature, implement using for_each_thread.
5349 (add_inferior_to_list, remove_inferior): Remove.
5350 (add_thread, get_first_thread, thread_of_pid,
5351 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
5352 (get_first_inferior, one_inferior_p, clear_inferior_list):
5354 (clear_inferiors, get_thread_process): Update.
5355 * gdbthread.h: Include <list>.
5356 (struct thread_info) <entry>: Remove field.
5358 (all_threads): Change type to std::list<thread_info *>.
5359 (get_first_inferior): Add doc.
5360 (find_thread, for_each_thread, find_thread_in_random): New
5362 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
5363 * linux-arm-low.c (update_registers_callback): Update.
5364 * linux-low.c (second_thread_of_pid_p): Update.
5365 (kill_one_lwp_callback, linux_detach_lwp_callback,
5366 delete_lwp_callback, status_pending_p_callback, same_lwp,
5367 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
5368 iterate_over_lwps, not_stopped_callback,
5369 resume_stopped_resumed_lwps, count_events_callback,
5370 select_singlestep_lwp_callback, select_event_lwp_callback,
5371 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
5372 suspend_and_send_sigstop_callback, wait_for_sigstop,
5373 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
5374 lwp_running, linux_set_resume_request, resume_status_pending_p,
5375 need_step_over_p, start_step_over, linux_resume_one_thread,
5376 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
5377 reset_lwp_ptrace_options_callback): Update.
5378 * linux-mips-low.c (update_watch_registers_callback): Update.
5379 * regcache.c (regcache_invalidate_one, regcache_invalidate):
5381 (free_register_cache_thread_one): Remove.
5382 (regcache_release): Update.
5383 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
5384 handle_qxfer_threads_worker): Update.
5385 (handle_query): Update, use list iterator.
5386 (visit_actioned_threads, handle_pending_status,
5387 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
5388 clear_pending_status_callback, set_pending_status_callback,
5389 find_status_pending_thread_callback, handle_status,
5390 process_serial_event): Update.
5391 * target.c (thread_search_callback): Update.
5392 * thread-db.c (thread_db_get_tls_address): Update.
5393 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
5395 * win32-i386-low.c (update_debug_registers_callback): Update.
5396 * win32-low.c (delete_thread_info, child_delete_thread,
5397 continue_one_thread, suspend_one_thread,
5398 get_child_debug_event): Adjust.
5400 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5402 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
5403 * inferiors.h: Include <list>.
5404 (struct process_info) <entry>: Remove field.
5406 (pid_of): Change macro to function.
5407 (ptid_of, lwpid_of): Remove macro.
5408 (all_processes): Change type to std::list<process_info *>.
5409 (ALL_PROCESSES): Remove macro.
5410 (for_each_process, find_process): New function.
5411 * inferiors.c (all_processes): Change type to
5412 std::list<process_info *>.
5413 (find_thread_process): Adjust.
5414 (add_process): Likewise.
5415 (remove_process): Likewise.
5416 (find_process_pid): Likewise.
5417 (get_first_process): Likewise.
5418 (started_inferior_callback): Remove.
5419 (have_started_inferiors_p): Adjust.
5420 (attached_inferior_callback): Remove.
5421 (have_attached_inferiors_p): Adjust.
5422 * linux-low.c (check_zombie_leaders): Likewise.
5423 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
5424 (x86_linux_update_xmltarget): Adjust.
5425 * server.c (handle_query): Likewise.
5426 (gdb_reattached_process): Remove.
5427 (handle_status): Adjust.
5428 (kill_inferior_callback): Likewise.
5429 (detach_or_kill_inferior): Remove.
5430 (print_started_pid): Likewise.
5431 (print_attached_pid): Likewise.
5432 (detach_or_kill_for_exit): Update.
5433 (process_serial_event): Likewise.
5434 * linux-arm-low.c (arm_new_fork): Likewise.
5436 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5438 * dll.h: Include <list>.
5439 (struct dll_info): Add constructor.
5440 <entry>: Remove field.
5441 (all_dlls): Change type to std::list<dll_info>.
5442 * dll.c: Include <algorithm>.
5443 (get_dll): Remove macro.
5444 (all_dlls): Change type to std::list<dll_info *>.
5445 (free_one_dll): Remove.
5446 (match_dll): Likewise.
5447 (loaded_dll): Adjust.
5448 (unloaded_dll): Adjust to all_dlls type change, use
5449 std::find_if. Inline code from match_dll.
5450 (clear_dlls): Adjust to all_dlls type change.
5451 * server.c (emit_dll_description): Remove.
5452 (handle_qxfer_libraries): Adjust to all_dlls type change,
5453 integrate emit_dll_description's functionality.
5455 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5457 * linux-low.h (struct linux_target_ops) <delete_process>: New
5459 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
5460 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
5461 (struct linux_target_ops): Add delete_process callback.
5462 * linux-arm-low.c (arm_delete_process): New.
5463 (struct linux_target_ops): Add delete_process callback.
5464 * linux-bfin-low.c (struct linux_target_ops): Likewise.
5465 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
5466 * linux-m32r-low.c (struct linux_target_ops): Likewise.
5467 * linux-mips-low.c (mips_linux_delete_process): New.
5468 (struct linux_target_ops): Add delete_process callback.
5469 * linux-ppc-low.c (struct linux_target_ops): Likewise.
5470 * linux-s390-low.c (struct linux_target_ops): Likewise.
5471 * linux-sh-low.c (struct linux_target_ops): Likewise.
5472 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
5473 * linux-tile-low.c (struct linux_target_ops): Likewise.
5474 * linux-x86-low.c (x86_linux_delete_process): New.
5475 (struct linux_target_ops): Add delete_process callback.
5476 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
5478 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5480 * linux-aarch64-low.c (the_low_target): Add thread delete
5482 * linux-arm-low.c (arm_delete_thread): New function.
5483 (the_low_target): Add thread delete callback.
5484 * linux-bfin-low.c (the_low_target): Likewise.
5485 * linux-crisv32-low.c (the_low_target): Likewise.
5486 * linux-low.c (delete_lwp): Invoke delete_thread callback if
5488 * linux-low.h (struct linux_target_ops) <delete_thread>: New
5490 * linux-m32r-low.c (the_low_target): Add thread delete callback.
5491 * linux-mips-low.c (mips_linux_delete_thread): New function.
5492 (the_low_target): Add thread delete callback.
5493 * linux-ppc-low.c (the_low_target): Likewise.
5494 * linux-s390-low.c (the_low_target): Likewise.
5495 * linux-sh-low.c (the_low_target): Likewise.
5496 * linux-tic6x-low.c (the_low_target): Likewise.
5497 * linux-tile-low.c (the_low_target): Likewise.
5498 * linux-x86-low.c (the_low_target): Likewise.
5499 * linux-xtensa-low.c (the_low_target): Likewise.
5501 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
5503 * win32-low.c: Include "common-inferior.h".
5505 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5507 * inferiors.c (set_inferior_cwd): New function.
5508 * server.c (handle_general_set): Handle QSetWorkingDir packet.
5509 (handle_query): Inform that QSetWorkingDir is supported.
5510 * win32-low.c (create_process): Pass the inferior's cwd to
5513 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5515 * inferiors.c (current_inferior_cwd): New global variable.
5516 (get_inferior_cwd): New function.
5517 * inferiors.h (struct process_info) <cwd>: New field.
5519 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5521 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
5522 (OBS): Add gdb_tilde_expand.o.
5524 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
5526 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
5527 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5529 2017-09-29 Pedro Alves <palves@redhat.com>
5531 * ax.c (gdb_parse_agent_expr): Constify.
5532 * ax.h (gdb_parse_agent_expr): Constify.
5533 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5535 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
5536 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
5537 * remote-utils.h (read_ptid): Constify.
5538 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
5539 (process_point_options, process_serial_event): Constify.
5540 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
5541 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
5542 (cmd_qtbuffer): Constify.
5544 2017-09-29 Pedro Alves <palves@redhat.com>
5546 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
5549 2017-09-29 Pedro Alves <palves@redhat.com>
5551 * linux-low.c (handle_extended_wait): Pass parent thread instead
5552 of process to thread_db_notice_clone.
5553 * linux-low.h (thread_db_notice_clone): Replace parent process
5554 parameter with parent thread parameter.
5555 * thread-db.c (find_one_thread): Add comment.
5556 (thread_db_notice_clone): Replace parent process parameter with
5557 parent thread parameter. Temporarily switch to the parent thread.
5559 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
5561 * gdbthread.h: Include "common-gdbthread.h".
5562 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
5563 "if" when validating the ptid.
5564 * remote-utils.c: Include "gdbthread.h".
5565 (prepare_resume_reply): Use "switch_to_thread".
5566 * target.c (done_accessing_memory): Likewise.
5568 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5570 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
5571 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
5572 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
5573 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
5574 s390x-gs-linux64-ipa.o to ipa_obj.
5575 * linux-s390-low.c (HWCAP_S390_GS): New define.
5576 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
5578 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
5579 (s390_arch_setup): Check for guarded-storage support and choose
5581 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
5582 init_registers_s390x_gs_linux64.
5583 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
5585 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
5586 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
5588 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
5590 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
5592 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5594 * linux-low.h (struct lwp_info): Add new field, thread_handle.
5595 (thread_db_thread_handle): Declare.
5596 * linux-low.c (linux_target_ops): Initialize thread_handle.
5597 * server.c (handle_qxfer_threads_worker): Add support for
5599 * target.h (struct target_ops): Add new function pointer,
5601 (target_thread_handle): Define.
5602 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
5604 (thread_db_thread_handle): New function.
5606 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5608 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
5609 * linux-low.h (thread_db_notice_clone): Declare.
5610 * thread-db.c (thread_db_notice_clone): New function.
5612 2017-09-21 Pedro Alves <palves@redhat.com>
5614 * server.c (gdb_read_memory, handle_status, process_serial_event)
5615 (handle_serial_event, handle_target_event): Adjust to
5616 set_desired_thread prototype change.
5617 * target.c (set_desired_thread): Remove 'use_general' parameter
5619 * target.h (set_desired_thread): Remove 'use_general' parameter.
5621 2017-09-20 Tom Tromey <tom@tromey.com>
5623 * target.c (target_terminal::terminal_state): Define.
5624 (target_terminal::init): Rename from target_terminal_init.
5625 (target_terminal::inferior): Rename from
5626 target_terminal_inferior.
5627 (target_terminal::ours): Rename from target_terminal_ours.
5628 (target_terminal::ours_for_output, target_terminal::info): New.
5630 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5632 * server.c (accumulate_file_name_length): Remove.
5633 (emit_dll_description): Adjust to std::string change.
5634 (handle_qxfer_libraries): Use std::string to hold document.
5636 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5638 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
5639 return type of xml_escape_text.
5640 * server.c (emit_dll_description): Likewise.
5642 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5644 * server.c (captured_main): Accept argument for --selftest.
5645 Update run_tests call.
5646 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
5647 when registering selftests.
5649 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
5651 * regcache.c (get_thread_regcache): Update code to use "std::vector"
5652 instead of "VEC" for "target_desc.reg_defs".
5653 (regcache_cpy): Likewise.
5654 (registers_to_string): Likewise.
5655 (registers_from_string): Likewise.
5656 (find_regno): Likewise.
5657 (supply_regblock): Likewise.
5658 (regcache_raw_read_unsigned): Likewise.
5659 * tdesc.c (init_target_desc): Likewise.
5660 (tdesc_create_reg): Likewise.
5661 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
5662 (struct target_desc) <reg_defs>: Convert to "std::vector".
5663 (target_desc): Do not initialize "reg_defs".
5664 (~target_desc): Update code to use "std::vector" instead of "VEC"
5665 for "target_desc.reg_defs".
5666 (operator==): Likewise.
5668 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5670 * inferiors.h (thread_to_gdb_id): Remove.
5671 * inferiors.c (thread_to_gdb_id): Remove.
5672 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
5673 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
5674 lynx_store_registers, lynx_read_memory, lynx_write_memory):
5676 * nto-low.c (nto_fetch_registers, nto_store_registers,
5677 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
5679 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5681 * inferiors.h (gdb_id_to_thread_id): Remove.
5682 * inferiors.c (gdb_id_to_thread_id): Remove.
5683 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
5684 removal. Move pid declaration closer to where it's used.
5686 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5688 * server.c (handle_detach): New function.
5689 (process_serial_event): Move code out, call handle_detach.
5691 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5693 * server.c (require_running): Rename to ...
5694 (require_running_or_return): ... this ...
5695 (require_running_or_break): ... and this.
5696 (handle_query, process_serial_event): Adjust.
5698 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5700 * linux-low.c (linux_set_resume_request): Remove unused
5703 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5705 * server.c (first_thread_of): Remove.
5706 (process_serial_event): Replace usage of first_thread_of with
5707 find_any_thread_of_pid.
5708 * tracepoint.c (same_process_p): Remove.
5709 (gdb_agent_about_to_close): Replace usage of same_process_p with
5710 find_any_thread_of_pid.
5711 * linux-x86-low.c (same_process_callback): Remove.
5712 (x86_arch_setup_process_callback): Replace usage of
5713 same_process_callback with find_any_thread_of_pid.
5714 * thread-db.c (any_thread_of): Remove.
5715 (switch_to_process): Replace usage of any_thread_of with
5716 find_any_thread_of_pid.
5717 * inferiors.c (thread_pid_matches_callback): Remove.
5718 (find_thread_process): Adjust to use find_any_thread_of_pid.
5720 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5722 * regcache.c (get_thread_regcache): Guard calls to "memset"
5725 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5727 * linux-low.c (handle_extended_wait): Use
5728 "allocate_target_description" instead of "XNEW".
5729 * linux-x86-low.c (initialize_low_arch): Likewise.
5731 2017-09-05 Yao Qi <yao.qi@linaro.org>
5733 * configure.srv (srv_i386_regobj): Remove.
5734 (srv_amd64_regobj): Remove.
5735 (srv_regobj): Set it to "" for x86 non-linux targets.
5736 * linux-x86-tdesc.c (i386_linux_read_description):
5737 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
5738 (init_registers_i386): Remove the declaration.
5739 (tdesc_i386): Remove the declaration.
5740 (lynx_i386_arch_setup): Call i386_create_target_description.
5741 * nto-x86-low.c: Likewise.
5742 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
5743 [!__x86_64__]: include arch/i386.h.
5744 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
5746 2017-09-05 Yao Qi <yao.qi@linaro.org>
5748 * configure.srv (srv_amd64_linux_xmlfiles): Remove
5749 i386/amd64-XXX-linux from it.
5751 2017-09-05 Yao Qi <yao.qi@linaro.org>
5753 * configure.srv: Empty srv_amd64_linux_regobj if $development is
5755 (ipa_amd64_linux_regobj): Remove.
5756 (ipa_x32_linux_regobj): Remove.
5758 2017-09-05 Yao Qi <yao.qi@linaro.org>
5760 * Makefile.in (arch-amd64.o): New rule.
5761 * configure.srv: Append arch-amd64.o.
5762 * linux-amd64-ipa.c: Include common/x86-xstate.h.
5763 (get_ipa_tdesc): Call amd64_linux_read_description.
5764 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
5765 and init_registers_amd64_XXX.
5766 * linux-x86-low.c (x86_linux_read_description): Call
5767 amd64_linux_read_description.
5768 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
5769 (initialize_low_arch): Don't call init_registers_x32_XXX and
5770 init_registers_amd64_XXX.
5771 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
5772 and tdesc_amd64_XXX.
5773 [__x86_64__] (amd64_tdesc_test): New function.
5774 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
5775 and init_registers_amd64_XXX.
5776 * linux-x86-tdesc.c: Include arch/amd64.h.
5777 (xcr0_to_tdesc_idx): New function.
5778 (i386_linux_read_description): New function.
5779 (amd64_get_ipa_tdesc_idx): New function.
5780 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
5781 (amd64_get_ipa_tdesc): Declare.
5783 2017-09-05 Yao Qi <yao.qi@linaro.org>
5785 * configure.srv (srv_i386_linux_xmlfiles): Remove
5786 i386/i386-XXX-linux.xml from it.
5788 2017-09-05 Yao Qi <yao.qi@linaro.org>
5790 * configure.srv: Set srv_i386_linux_regobj empty if $development
5792 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
5793 initialize_low_tdesc.
5794 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
5795 with #if initialize_low_tdesc.
5796 * linux-x86-tdesc-selftest.c: New file.
5797 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
5799 2017-09-05 Yao Qi <yao.qi@linaro.org>
5801 * Makefile.in (arch-i386.o): New rule.
5802 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
5803 (x86_64-*-linux*): Likewise.
5804 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
5805 include arch/i386.h.
5806 (i386_linux_read_description): Remove code and call
5807 i386_create_target_description.
5808 * tdesc.c (allocate_target_description): New function.
5809 * tdesc.h (set_tdesc_architecture): Remove declaration.
5810 (set_tdesc_osabi): Likewise.
5812 2017-09-05 Yao Qi <yao.qi@linaro.org>
5814 * linux-x86-tdesc.c: Don't include <inttypes.h>.
5815 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
5816 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
5818 * server.c (get_features_xml): Call tdesc_get_features_xml.
5819 * tdesc.c (set_tdesc_architecture): New function.
5820 (set_tdesc_osabi): New function.
5821 (tdesc_get_features_xml): New function.
5822 (tdesc_create_feature): Add an argument.
5823 * tdesc.h (struct target_desc) <features>: New field.
5824 <arch, osabi>: New field.
5825 (~target_desc): xfree features, arch, and osabi.
5826 (target_desc::oerator==): Don't compare .xmltarget.
5827 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
5828 (set_tdesc_osabi): Likewise.
5829 (tdesc_get_features_xml): Likewise.
5831 2017-09-05 Yao Qi <yao.qi@linaro.org>
5833 * linux-x86-tdesc.c: Include selftest.h.
5834 (i386_tdesc_test): New function.
5835 (initialize_low_tdesc): Call selftests::register_test.
5836 * tdesc.h: Include regdef.h.
5837 (target_desc): Override operator == and !=.
5839 2017-09-05 Yao Qi <yao.qi@linaro.org>
5841 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
5842 (ipa_obj): Likewise.
5843 * linux-i386-ipa.c: Include common/x86-xstate.h
5844 (get_ipa_tdesc): Call i386_linux_read_description.
5845 (initialize_low_tracepoint): Don't call init_registers_XXX
5846 functions, call initialize_low_tdesc instead.
5847 * linux-x86-low.c (x86_linux_read_description): Call
5848 i386_linux_read_description.
5849 (initialize_low_arch): Don't call init_registers_i386_XXX
5850 functions, call initialize_low_tdesc.
5851 * linux-x86-tdesc.c: New file.
5852 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
5853 (i386_get_ipa_tdesc_idx): Declare.
5854 (i386_get_ipa_tdesc): Declare.
5855 (initialize_low_tdesc): Declare.
5857 2017-09-05 Yao Qi <yao.qi@linaro.org>
5859 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
5862 2017-09-05 Yao Qi <yao.qi@linaro.org>
5864 * Makefile.in (IPA_OBJS): Add vec-ipa.o
5865 * regcache.c (get_thread_regcache): Use VEC_length.
5866 (init_register_cache): Likewise.
5867 (regcache_cpy): Likewise.
5868 (registers_to_string): Iterate reg_defs via VEC_iterate.
5869 (find_regno): Likewise.
5870 (find_register_by_number): Use VEC_index.
5871 (register_size): Call find_register_by_number.
5872 (register_data): Call find_register_by_number.
5873 (supply_regblock): Use VEC_length.
5874 (regcache_raw_read_unsigned): Likewise.
5875 * tdesc.c (init_target_desc): Iterate reg_defs via
5877 (default_description): Update initializer.
5878 (copy_target_description): Don't update field num_registers.
5879 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
5880 <num_registers>: Remove.
5882 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5884 * Makefile.in (.SECONDARY): Define target.
5886 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5888 * linux-low.c (linux_wait_1): Adjust.
5889 * server.c (queue_stop_reply_callback): Adjust.
5891 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5893 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
5894 QEnvironmentUnset and QEnvironmentReset packets.
5895 (handle_query): Inform remote that QEnvironmentHexEncoded,
5896 QEnvironmentUnset and QEnvironmentReset are supported.
5898 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
5900 * inferiors.h (inferior_target_data): Rename to ...
5901 (thread_target_data): ... this.
5902 (inferior_regcache_data): Rename to ...
5903 (thread_regcache_data): ... this.
5904 (set_inferior_regcache_data): Rename to ...
5905 (set_thread_regcache_data): ... this.
5906 * inferiors.c (inferior_target_data): Rename to ...
5907 (thread_target_data): ... this.
5908 (inferior_regcache_data): Rename to ...
5909 (thread_regcache_data): ... this.
5910 (set_inferior_regcache_data): Rename to ...
5911 (set_thread_regcache_data): ... this.
5912 (free_one_thread): Update.
5913 * linux-low.h (get_thread_lwp): Update.
5914 * regcache.c (get_thread_regcache): Update.
5915 (regcache_invalidate_thread): Update.
5916 (free_register_cache_thread): Update.
5917 * win32-i386-low.c (update_debug_registers_callback): Update.
5918 (win32_get_current_dr): Update.
5919 * win32-low.c (thread_rec): Update.
5920 (delete_thread_info): Update.
5921 (continue_one_thread): Update.
5922 (suspend_one_thread): Update.
5924 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
5926 * inferiors.c (set_inferior_target_data): Remove.
5927 * inferiors.h (set_inferior_target_data): Remove.
5929 2017-08-18 Yao Qi <yao.qi@linaro.org>
5931 * Makefile.in (OBS): Add selftest.o.
5932 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
5933 * configure, config.in: Re-generated.
5934 * server.c: Include common/sefltest.h.
5935 (captured_main): Handle option --selftest.
5937 2017-08-09 Yao Qi <yao.qi@linaro.org>
5939 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
5940 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
5941 i386-avx-mpx.o and i386-mmx.o.
5942 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
5943 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
5944 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
5945 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
5946 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
5947 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
5948 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
5949 i386/amd64-avx-mpx.xml.
5951 2017-08-09 Yao Qi <yao.qi@linaro.org>
5953 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
5954 and x32-avx-avx512.o.
5955 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
5956 i386/x32-avx-avx512.xml.
5958 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
5960 * tracepoint.h (enum class fast_tpoint_collect_result): New
5962 (fast_tracepoint_collecting): Change return type to
5963 fast_tpoint_collect_result.
5964 * tracepoint.c (fast_tracepoint_collecting): Likewise.
5965 * linux-low.h: Include tracepoint.h.
5966 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
5967 fast_tpoint_collect_result.
5968 * linux-low.c (handle_tracepoints): Adjust.
5969 (linux_fast_tracepoint_collecting): Change return type to
5970 fast_tpoint_collect_result.
5971 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
5972 linux_wait_1, stuck_in_jump_pad_callback,
5973 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
5974 proceed_one_lwp): Adjust to type change.
5976 2017-07-10 Yao Qi <yao.qi@linaro.org>
5978 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
5980 2017-06-29 Yao Qi <yao.qi@linaro.org>
5982 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
5984 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
5986 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
5988 * Makefile.in (IPA_OBJS): Sort and format one item per line.
5990 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5992 * linux-low.c (linux_create_inferior): Adjust code to access the
5993 environment information via 'gdb_environ' class.
5994 * lynx-low.c (lynx_create_inferior): Likewise.
5995 * server.c (our_environ): Make it an instance of 'gdb_environ'.
5996 (get_environ): Return a pointer to 'our_environ'.
5997 (captured_main): Initialize 'our_environ'.
5998 * server.h (get_environ): Adjust prototype.
5999 * spu-low.c (spu_create_inferior): Adjust code to access the
6000 environment information via 'gdb_environ' class.
6002 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6004 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6005 usage of "register" keyword.
6007 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6009 * configure: Re-generate.
6011 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6013 * configure: Re-generate.
6015 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6017 * Makefile.in (COMPILE.pre): Add "-x c++".
6019 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6021 * fork-child.c: Conditionally include <signal.h>.
6023 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6025 * server.c (handle_general_set): Handle new packet
6026 "QStartupWithShell".
6027 (handle_query): Add "QStartupWithShell" to the list of supported
6029 (gdbserver_usage): Add help text explaining the
6030 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6032 (captured_main): Recognize and act upon the presence of the new
6035 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6036 Pedro Alves <palves@redhat.com>
6038 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6039 * configure: Regenerate.
6040 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6042 (i[34567]86-*-lynxos*): Likewise.
6043 (spu*-*-*): Likewise.
6044 * fork-child.c: New file.
6045 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6047 (linux_ptrace_fun): New function.
6048 (linux_create_inferior): Adjust function prototype to reflect
6049 change on "target.h". Adjust function code to use
6051 (linux_request_interrupt): Delete "signal_pid".
6052 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6053 (lynx_ptrace_fun): New function.
6054 (lynx_create_inferior): Adjust function prototype to reflect
6055 change on "target.h". Adjust function code to use
6057 * nto-low.c (nto_create_inferior): Adjust function prototype and
6058 code to reflect change on "target.h". Update comments.
6059 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6060 "common-terminal.h" and "environ.h".
6061 (terminal_fd): Moved to fork-child.c.
6062 (old_foreground_pgrp): Likewise.
6063 (restore_old_foreground_pgrp): Likewise.
6064 (last_status): Make it global.
6065 (last_ptid): Likewise.
6066 (our_environ): New variable.
6067 (startup_with_shell): Likewise.
6068 (program_name): Likewise.
6069 (program_argv): Rename to...
6070 (program_args): ...this.
6071 (wrapper_argv): New variable.
6072 (start_inferior): Delete function.
6073 (get_exec_wrapper): New function.
6074 (get_exec_file): Likewise.
6075 (get_environ): Likewise.
6076 (prefork_hook): Likewise.
6077 (post_fork_inferior): Likewise.
6078 (postfork_hook): Likewise.
6079 (postfork_child_hook): Likewise.
6080 (handle_v_run): Update code to deal with arguments coming from the
6081 remote host. Update calls from "start_inferior" to
6083 (captured_main): Likewise. Initialize environment variable. Call
6085 * server.h (post_fork_inferior): New prototype.
6086 (get_environ): Likewise.
6087 (last_status): Declare.
6088 (last_ptid): Likewise.
6089 (signal_pid): Likewise.
6090 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6091 (spu_ptrace_fun): New function.
6092 (spu_create_inferior): Adjust function prototype to reflect change
6093 on "target.h". Adjust function code to use "fork_inferior".
6094 * target.c (target_terminal_init): New function.
6095 (target_terminal_inferior): Likewise.
6096 (target_terminal_ours): Likewise.
6097 * target.h: Include <vector>.
6098 (struct target_ops) <create_inferior>: Update prototype.
6099 (create_inferior): Update macro.
6100 * utils.c (gdb_flush_out_err): New function.
6101 * win32-low.c (win32_create_inferior): Adjust function prototype
6102 and code to reflect change on "target.h".
6104 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6106 * inferiors.c (switch_to_thread): New function.
6108 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6110 * Makefile.in (SFILE): Add "common/job-control.c".
6111 (OBS): Add "job-control.o".
6113 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6115 * Makefile: Remove "@host_makefile_frag@".
6117 2017-05-05 Pedro Alves <palves@redhat.com>
6119 * configure: Regenerate.
6121 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6123 * configure: Regenerate.
6125 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6127 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6128 software_single_step change of return type to
6129 std::vector<CORE_ADDR>.
6130 * linux-low.c (install_software_single_step_breakpoints):
6132 * linux-low.h (install_software_single_step_breakpoints):
6135 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6137 * remote-utils.c: Include "gdb_termios.h" instead of
6139 * terminal.h: Delete file.
6141 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6143 * server.c: Include <vector>.
6144 <program_argv, wrapper_argv>: Convert to std::vector.
6145 (start_inferior): Rewrite function to use C++.
6146 (handle_v_run): Likewise. Update code that calculates the argv
6147 based on the vRun packet; use C++.
6148 (captured_main): Likewise.
6150 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6152 * server.c (handle_v_cont): Initialize thread_resume::thread
6155 2017-04-05 Pedro Alves <palves@redhat.com>
6157 * configure: Regenerate.
6159 2017-04-05 Pedro Alves <palves@redhat.com>
6161 * gdbreplay.c (sync_error): Constify.
6162 * linux-x86-low.c (push_opcode): Constify.
6164 2017-04-05 Pedro Alves <palves@redhat.com>
6166 * win32-low.c (get_child_debug_event)
6167 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6168 Report TARGET_WAITKIND_SPURIOUS instead.
6170 2017-04-05 Pedro Alves <palves@redhat.com>
6172 * remote-utils.c (remote_prepare, remote_open): Constify.
6173 * remote-utils.h (remote_prepare, remote_open): Constify.
6174 * server.c (captured_main): Constify 'port' handling.
6176 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6178 * Makefile.in (clean): Clear .deps.
6180 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6182 * .gitignore: Remove generated files, replace with wildcard.
6183 * (clean): Replace removal of generated files with wildcard.
6184 (version.c): Replace with...
6185 (version-generated.c): ...this.
6186 (xml-builtin.c): Replace with...
6187 (xml-builtin-generated.c): ...this.
6188 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6189 (%.c: *regformats*): Replace with...
6190 (%-generated.c: *regformats*): ...this.
6192 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6194 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6195 (xtensa_fill_gregset): Call collect_register_by_name for
6197 (xtensa_store_gregset): Call supply_register_by_name for
6200 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6202 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6203 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6204 (xtensa_store_gregset): Call supply_register for all registers in
6205 a0_regnum..a0_regnum + C0_NREGS range.
6207 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6209 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6210 (ax-ipa.o: ax.c): Remove.
6211 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6212 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6213 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6214 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6215 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6217 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6219 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6220 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6221 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6222 (errors-ipa.o: ../common/errors.c): Remove.
6223 (format-ipa.o: ../common/format.c): Remove.
6224 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6226 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6228 * Makefile.in (%-ipa.o: %.c): New rule.
6229 (tracepoint-ipa.o: tracepoint.c): Remove.
6230 (utils-ipa.o: utils.c): Remove.
6231 (remote-utils-ipa.o: remote-utils.c): Remove.
6232 (regcache-ipa.o: regcache.c): Remove.
6233 (i386-linux-ipa.o: i386-linux.c): Remove.
6234 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6235 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6236 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6237 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6238 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6239 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6240 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6241 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6242 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6243 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6244 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6245 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6246 (aarch64-ipa.o: aarch64.c): Remove.
6247 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6248 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6249 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6250 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6251 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6252 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6253 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6254 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6255 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6256 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6257 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6258 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6259 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6260 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6261 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6262 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6263 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6264 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6265 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6266 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6267 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6268 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6269 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6270 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6271 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6272 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6273 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6274 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6275 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6276 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6277 (tdesc-ipa.o: tdesc.c): Remove.
6278 (x32-linux-ipa.o: x32-linux.c): Remove.
6279 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6280 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6282 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6284 * Makefile.in (%.o: ../arch/%.c): New rule.
6285 (arm.o: ../arch/arm.c): Remove.
6286 (arm-linux.o: ../arch/arm-linux.c): Remove.
6287 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6288 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6290 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6292 * Makefile.in (%.o: ../nat/%.c): New rule.
6293 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6294 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6295 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6296 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6297 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6298 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6299 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6300 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6301 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6302 (linux-personality.o: ../nat/linux-personality.c): Remove.
6303 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6304 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6305 (x86-linux.o: ../nat/x86-linux.c): Remove.
6306 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6307 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6309 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6311 * Makefile.in (%.o: ../common/%.c): New rule.
6312 (signals.o: ../common/signals.c): Remove.
6313 (print-utils.o: ../common/print-utils.c): Remove.
6314 (rsp-low.o: ../common/rsp-low.c): Remove.
6315 (common-utils.o: ../common/common-utils.c): Remove.
6316 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6317 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6318 (vec.o: ../common/vec.c): Remove.
6319 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
6320 (xml-utils.o: ../common/xml-utils.c): Remove.
6321 (ptid.o: ../common/ptid.c): Remove.
6322 (buffer.o: ../common/buffer.c): Remove.
6323 (format.o: ../common/format.c): Remove.
6324 (filestuff.o: ../common/filestuff.c): Remove.
6325 (agent.o: ../common/agent.c): Remove.
6326 (errors.o: ../common/errors.c): Remove.
6327 (environ.o: ../common/environ.c): Remove.
6328 (common-debug.o: ../common/common-debug.c): Remove.
6329 (cleanups.o: ../common/cleanups.c): Remove.
6330 (common-exceptions.o: ../common/common-exceptions.c): Remove.
6331 (fileio.o: ../common/fileio.c): Remove.
6332 (common-regcache.o: ../common/common-regcache.c): Remove.
6333 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
6334 (new-op.o: ../common/new-op.c): Remove.
6335 (btrace-common.o: ../common/btrace-common.c): Remove.
6337 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6339 * Makefile.in (%.o: ../target/%.c): New rule.
6340 (waitstatus.o: ../target/waitstatus.c): Remove.
6342 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6345 (%.c: ../regformats/%.dat,
6346 (%.c: ../regformats/arm/%.dat,
6347 (%.c: ../regformats/i386/%.dat,
6348 (%.c: ../regformats/rs6000/%.dat): New rules.
6349 (aarch64.c): Remove.
6350 (reg-arm.c): Remove.
6351 (arm-with-iwmmxt.c): Remove.
6352 (arm-with-vfpv2.c): Remove.
6353 (arm-with-vfpv3.c): Remove.
6354 (arm-with-neon.c): Remove.
6355 (reg-bfin.c): Remove.
6356 (reg-cris.c): Remove.
6357 (reg-crisv32.c): Remove.
6359 (i386-linux.c): Remove.
6360 (i386-avx.c): Remove.
6361 (i386-avx-linux.c): Remove.
6362 (i386-avx-avx512.c): Remove.
6363 (i386-avx-avx512-linux.c): Remove.
6364 (i386-mpx.c): Remove.
6365 (i386-mpx-linux.c): Remove.
6366 (i386-avx-mpx-avx512-pku.c): Remove.
6367 (i386-avx-mpx-avx512-pku-linux.c): Remove.
6368 (i386-avx-mpx.c): Remove.
6369 (i386-avx-mpx-linux.c): Remove.
6370 (i386-mmx.c): Remove.
6371 (i386-mmx-linux.c): Remove.
6372 (reg-ia64.c): Remove.
6373 (reg-m32r.c): Remove.
6374 (reg-m68k.c): Remove.
6376 (mips-linux.c): Remove.
6377 (mips-dsp-linux.c): Remove.
6378 (mips64-linux.c): Remove.
6379 (mips64-dsp-linux.c): Remove.
6380 (nios2-linux.c): Remove.
6381 (powerpc-32.c): Remove.
6382 (powerpc-32l.c): Remove.
6383 (powerpc-altivec32l.c): Remove.
6384 (powerpc-cell32l.c): Remove.
6385 (powerpc-vsx32l.c): Remove.
6386 (powerpc-isa205-32l.c): Remove.
6387 (powerpc-isa205-altivec32l.c): Remove.
6388 (powerpc-isa205-vsx32l.c): Remove.
6389 (powerpc-e500l.c): Remove.
6390 (powerpc-64l.c): Remove.
6391 (powerpc-altivec64l.c): Remove.
6392 (powerpc-cell64l.c): Remove.
6393 (powerpc-vsx64l.c): Remove.
6394 (powerpc-isa205-64l.c): Remove.
6395 (powerpc-isa205-altivec64l.c): Remove.
6396 (powerpc-isa205-vsx64l.c): Remove.
6397 (s390-linux32.c): Remove.
6398 (s390-linux32v1.c): Remove.
6399 (s390-linux32v2.c): Remove.
6400 (s390-linux64.c): Remove.
6401 (s390-linux64v1.c): Remove.
6402 (s390-linux64v2.c): Remove.
6403 (s390-te-linux64.c): Remove.
6404 (s390-vx-linux64.c): Remove.
6405 (s390-tevx-linux64.c): Remove.
6406 (s390x-linux64.c): Remove.
6407 (s390x-linux64v1.c): Remove.
6408 (s390x-linux64v2.c): Remove.
6409 (s390x-te-linux64.c): Remove.
6410 (s390x-vx-linux64.c): Remove.
6411 (s390x-tevx-linux64.c): Remove.
6412 (tic6x-c64xp-linux.c): Remove.
6413 (tic6x-c64x-linux.c): Remove.
6414 (tic6x-c62x-linux.c): Remove.
6416 (reg-sparc64.c): Remove.
6417 (reg-spu.c): Remove.
6419 (amd64-linux.c): Remove.
6420 (amd64-avx.c): Remove.
6421 (amd64-avx-linux.c): Remove.
6422 (amd64-avx-avx512.c): Remove.
6423 (amd64-avx-avx512-linux.c): Remove.
6424 (amd64-mpx.c): Remove.
6425 (amd64-mpx-linux.c): Remove.
6426 (amd64-avx-mpx-avx512-pku.c): Remove.
6427 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
6428 (amd64-avx-mpx.c): Remove.
6429 (amd64-avx-mpx-linux.c): Remove.
6431 (x32-linux.c): Remove.
6432 (x32-avx.c): Remove.
6433 (x32-avx-linux.c): Remove.
6434 (x32-avx-avx512.c): Remove.
6435 (x32-avx-avx512-linux.c): Remove.
6436 (reg-xtensa.c): Remove.
6437 (reg-tilegx.c): Remove.
6438 (reg-tilegx32.c): Remove.
6440 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
6442 * Makefile.in (SFILES): Add "common/environ.c".
6443 (OBJS): Add "common/environ.h".
6445 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6447 * configure.ac: Check if the fs_base and gs_base members of
6448 `struct user_regs_struct' exist.
6449 * config.in: Regenerated.
6450 * configure: Likewise.
6452 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
6454 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
6456 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
6457 (get_next_pcs_syscall_next_pc): Likewise.
6459 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
6461 * win32-i386-low.c: Fix incorrect reference to a couple source files.
6462 * nto-x86-low.c: Likewise.
6464 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
6466 * Makefile.in: Include disable-implicit-rules.mk.
6468 2016-11-23 Pedro Alves <palves@redhat.com>
6470 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
6471 (debug_vprintf): Use std::chrono::steady_clock instead of
6472 gettimeofday. Use '.' instead of ':'.
6473 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
6474 (get_timestamp): Use std::chrono::steady_clock instead of
6477 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6479 * Makefile.in: Fix whitespace formatting.
6481 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6483 * Makefile.in (SFILES, OBS): Flatten list and order
6486 2016-11-23 Pedro Alves <palves@redhat.com>
6488 * event-loop.c (handle_file_event): Use warning.
6489 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
6490 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6493 2016-11-23 Pedro Alves <palves@redhat.com>
6495 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
6497 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
6498 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
6499 debug_printf and debug_flush for debug output.
6500 * server.c (handle_general_set): Likewise.
6501 * thread-db.c (try_thread_db_load): Use debug_printf for debug
6504 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6506 * Makefile.in (.c.o): Replace rule with ...
6507 (%.o: %.c): ... this one.
6509 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6511 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
6512 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
6514 * configure.ac: Remove checks for the make program.
6515 * configure: Re-generate.
6517 2016-10-28 Pedro Alves <palves@redhat.com>
6519 * Makefile.in (CXX_DIALECT): Get from configure.
6520 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
6521 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
6522 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
6523 * config.in: Regenerate.
6524 * configure: Regenerate.
6526 2016-10-27 Yao Qi <yao.qi@linaro.org>
6528 * linux-low.c (linux_supports_range_stepping): Return true if
6529 can_software_single_step return true.
6531 2016-10-27 Yao Qi <yao.qi@linaro.org>
6533 * inferiors.c (find_inferior_in_random): New function.
6534 * inferiors.h (find_inferior_in_random): Declare.
6535 * linux-low.c (linux_wait_for_event_filtered): Call
6536 find_inferior_in_random instead of find_inferior.
6538 2016-10-27 Yao Qi <yao.qi@linaro.org>
6540 * linux-low.c (linux_wait_1): If single-step breakpoints are
6541 inserted, remove them.
6543 2016-10-26 Pedro Alves <palves@redhat.com>
6545 * linux-low.c (handle_extended_wait): Link parent/child fork
6547 (linux_wait_1): Unlink them.
6548 (linux_set_resume_request): Ignore resume requests for
6549 already-resumed and unhandled fork child threads.
6550 * linux-low.h (struct lwp_info) <fork_relative>: New field.
6551 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
6553 (handle_v_requests) <vCont>: Don't call require_running.
6554 * server.h (in_queued_stop_replies): New declaration.
6556 2016-10-24 Yao Qi <yao.qi@linaro.org>
6559 * linux-aarch64-low.c (append_insns): Cast the return value to
6562 2016-10-10 Yao Qi <yao.qi@linaro.org>
6564 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
6566 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
6568 * target.c (target_supports_multi_process): New function, moved
6570 * target.h (target_supports_multi_process): ... here. Remove
6573 2016-10-05 Tom Tromey <tom@tromey.com>
6576 * tracepoint.c (handle_tracepoint_bkpts): Check
6577 ipa_error_tracepoint, not ipa_stopping_tracepoint.
6579 2016-10-05 Yao Qi <yao.qi@linaro.org>
6581 * configure.srv: Update the path of arm-*.xml files.
6583 2016-10-05 Terry Guo <terry.guo@arm.com>
6584 Yao Qi <yao.qi@linaro.org>
6586 * Makefile.in: Adjust the path of rules.
6587 * configure.srv: Update the path of xml files.
6588 * regformats/arm-with-iwmmxt.dat: Regenerated.
6589 * regformats/arm-with-neon.dat: Likewise.
6590 * regformats/arm-with-vfpv2.dat: Likewise.
6591 * regformats/arm-with-vfpv3.dat Likewise.
6593 2016-09-30 Yao Qi <yao.qi@linaro.org>
6596 * target.c (target_stop_and_wait): Don't call
6597 target_continue_no_signal, use resume_stop instead.
6599 2016-09-26 Yao Qi <yao.qi@linaro.org>
6601 * linux-low.c (linux_wait_1): Call debug_exit.
6603 2016-09-23 Pedro Alves <palves@redhat.com>
6605 * Makefile.in (SFILES): Add common/new-op.c.
6606 (OBS): Add common/new-op.o.
6607 (new-op.o): New rule.
6609 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
6611 * .gitinore: Ignore more files.
6613 2016-09-21 Yao Qi <yao.qi@linaro.org>
6615 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
6618 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
6620 * server.c (start_inferior): Call target_mourn_inferior instead of
6621 mourn_inferior; pass ptid_t argument to it.
6623 (handle_target_event): Likewise.
6624 * target.c (target_mourn_inferior): New function.
6625 * target.h (mourn_inferior): Delete macro.
6627 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
6629 * linux-low.c (lwp_is_stepping): New function.
6631 2016-09-06 Carl Love <cel@us.ibm.com>
6633 * server.c (start_inferior): Fixed comment, requested comment change
6634 didn't get updated correctly. Removed reference to ptrace () call as
6635 it is only true on Linux systems.
6637 2016-09-06 Carl Love <cel@us.ibm.com>
6639 * server.c (start_inferior): Do not call
6640 function target_post_create_inferior () if the
6641 inferior process has already exited.
6643 2016-09-05 Pedro Alves <palves@redhat.com>
6645 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
6646 (COMPILE.pre, CC_LD): Use CXX directly.
6647 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
6648 * acinclude.m4: Don't include build-with-cxx.m4.
6649 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
6650 * configure: Regenerate.
6652 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
6655 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
6656 call writing data to own_buf.
6658 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6660 * target.c (mywait): Call target_wait instead of
6662 (target_wait): New function.
6664 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6666 * server.c (start_inferior): New variable 'ptid'. Replace calls
6667 to the_target->resume by target_continue{,_no_signal}, depending
6669 * target.c (target_stop_and_wait): Call target_continue_no_signal
6670 instead of the_target->resume.
6671 (target_continue): New function.
6673 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6675 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
6677 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6680 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
6682 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
6683 * linux-arm-low.c (ps_get_thread_area): Likewise.
6684 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
6685 * linux-m68k-low.c (ps_get_thread_area): Likewise.
6686 * linux-mips-low.c (ps_get_thread_area): Likewise.
6687 * linux-nios2-low.c (ps_get_thread_area): Likewise.
6688 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
6689 * linux-x86-low.c (ps_get_thread_area): Likewise.
6690 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
6692 2016-08-19 Pedro Alves <palves@redhat.com>
6694 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
6696 2016-08-19 Pedro Alves <palves@redhat.com>
6698 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
6699 comment. Use memcpy instead of casting through unsigned long.
6701 2016-08-19 Pedro Alves <palves@redhat.com>
6703 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
6704 allocating around 0x80000000.
6706 2016-08-19 Pedro Alves <palves@redhat.com>
6709 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
6710 (x32-avx512-linux-ipa.o): New rules.
6711 * configure.ac (x86_64-*-linux*): New x32 check.
6712 * configure.srv (ipa_x32_linux_regobj): New.
6713 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
6714 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
6716 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
6718 * configure: Regenerate.
6720 2016-08-09 Pedro Alves <palves@redhat.com>
6723 * Makefile.in (OBS): Add signals-state-save-restore.o.
6724 (signals-state-save-restore.o): New rule.
6725 * config.in: Regenerate.
6726 * configure: Regenerate.
6727 * linux-low.c: Include "signals-state-save-restore.h".
6728 (linux_create_inferior): Call
6729 restore_original_signals_state.
6730 * server.c: Include "dispositions-save-restore.h".
6731 (captured_main): Call save_original_signals_state.
6733 2016-08-05 Pedro Alves <palves@redhat.com>
6735 * configure: Regenerate.
6737 2016-08-04 Yao Qi <yao.qi@linaro.org>
6739 * linux-low.c (regsets_fetch_inferior_registers): Check
6740 errno is ESRCH or not.
6742 2016-08-02 Yao Qi <yao.qi@linaro.org>
6744 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
6745 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
6746 (thread_db_load_search): Update.
6747 (try_thread_db_load_1): Don't look for td_ta_event_addr,
6748 td_ta_set_event and td_ta_event_getmsg.
6750 2016-07-26 Pedro Alves <palves@redhat.com>
6753 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
6754 of unsigned long for 64-bit registers and use uint32_t instead of
6755 unsigned int for 32-bit registers.
6757 2016-07-26 Pedro Alves <palves@redhat.com>
6759 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
6762 2016-07-21 Tom Tromey <tom@tromey.com>
6764 * configure: Rebuild.
6766 2016-07-21 Yao Qi <yao.qi@linaro.org>
6768 * mem-break.c (find_gdb_breakpoint): Cast bp to
6769 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
6771 2016-07-21 Yao Qi <yao.qi@linaro.org>
6773 * server.c (handle_v_requests): Support s and S actions
6774 if target_supports_software_single_step return true.
6776 2016-07-21 Yao Qi <yao.qi@linaro.org>
6778 * linux-low.c (resume_stopped_resumed_lwps): If resume request
6779 is resume_step, call maybe_hw_step.
6780 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
6782 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
6784 (proceed_one_lwp): If resume request is resume_step, install
6785 reinsert breakpoints and call maybe_hw_step.
6787 2016-07-21 Yao Qi <yao.qi@linaro.org>
6789 * linux-low.c (proceed_one_lwp): Declare.
6790 (linux_resume_one_thread): Remove local variable 'step'.
6791 Lift code enqueue signal. Call proceed_one_lwp instead of
6792 linux_resume_one_lwp.
6794 2016-07-21 Yao Qi <yao.qi@linaro.org>
6796 * linux-low.c (linux_resume_one_thread): Call
6797 enqueue_pending_signal.
6799 2016-07-21 Yao Qi <yao.qi@linaro.org>
6801 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6802 * inferiors.c (do_restore_current_thread_cleanup): New function.
6803 (make_cleanup_restore_current_thread): Likewise.
6804 * linux-low.c (install_software_single_step_breakpoints): Call
6805 make_cleanup_restore_current_thread. Switch current_thread to
6808 2016-07-21 Yao Qi <yao.qi@linaro.org>
6810 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
6811 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
6812 (clone_one_breakpoint): Likewise.
6813 (delete_reinsert_breakpoints): Change parameter to thread.
6815 (has_reinsert_breakpoints): Likewise.
6816 (uninsert_reinsert_breakpoints): Likewise.
6817 (reinsert_reinsert_breakpoints): Likewise.
6818 * mem-break.h (set_reinsert_breakpoint): Update declaration.
6819 (delete_reinsert_breakpoints): Likewise.
6820 (reinsert_reinsert_breakpoints): Likewise.
6821 (uninsert_reinsert_breakpoints): Likewise.
6822 (has_reinsert_breakpoints): Likewise.
6824 2016-07-21 Yao Qi <yao.qi@linaro.org>
6826 * inferiors.c (get_thread_process): Make parameter const.
6827 * inferiors.h (get_thread_process): Update declaration.
6828 * mem-break.c (clone_all_breakpoints): Remove all parameters.
6829 Add new parameters child_thread and parent_thread. Callers
6831 * mem-break.h (clone_all_breakpoints): Update declaration.
6833 2016-07-21 Yao Qi <yao.qi@linaro.org>
6835 * mem-break.c (struct breakpoint) <cond_list>: Remove.
6836 <command_list, handler>: Remove.
6837 (struct gdb_breakpoint): New.
6838 (struct other_breakpoint): New.
6839 (struct reinsert_breakpoint): New.
6840 (is_gdb_breakpoint): New function.
6841 (any_persistent_commands): Update command_list if
6842 is_gdb_breakpoint returns true.
6843 (set_breakpoint): Create breakpoints according to their types.
6844 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
6845 (set_gdb_breakpoint_1): Likewise.
6846 (set_gdb_breakpoint): Likewise.
6847 (clear_breakpoint_conditions): Change parameter type to
6848 'struct gdb_breakpoint *'.
6849 (clear_breakpoint_commands): Likewise.
6850 (clear_breakpoint_conditions_and_commands): Likewise.
6851 (add_condition_to_breakpoint): Likewise.
6852 (add_breakpoint_condition): Likewise.
6853 (add_commands_to_breakpoint): Likewise.
6854 (check_breakpoints): Check other_breakpoint.
6855 (clone_one_breakpoint): Clone breakpopint according to its type.
6856 * mem-break.h (struct gdb_breakpoint): Declare.
6857 (set_gdb_breakpoint): Update declaration.
6858 (clear_breakpoint_conditions_and_commands): Likewise.
6859 (add_breakpoint_condition): Likewise.
6860 (add_breakpoint_commands): Likewise.
6861 * server.c (process_point_options): Change parameter type to
6862 'struct gdb_breakpoint *'.
6864 2016-07-21 Yao Qi <yao.qi@linaro.org>
6866 * mem-break.c (set_breakpoint_at): Rename it to ...
6867 (set_breakpoint_type_at): ... it.
6868 (set_breakpoint_at): Call set_breakpoint_type_at.
6869 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
6870 * mem-break.h (set_breakpoint_at): Update comments.
6872 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
6874 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
6876 (nios2_store_gregset): Likewise.
6878 2016-07-01 Pedro Alves <palves@redhat.com>
6879 Antoine Tremblay <antoine.tremblay@ericsson.com>
6881 * linux-low.c: Change interface to take the target lwp_info
6882 pointer directly and return void. Handle detaching from a zombie
6884 (linux_detach_lwp_callback): New function.
6885 (linux_detach): Detach from the leader thread after detaching from
6888 2016-06-28 Yao Qi <yao.qi@linaro.org>
6890 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
6891 for variable new_offset.
6892 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6893 (aarch64_ftrace_insn_reloc_cb): Likewise.
6894 (aarch64_ftrace_insn_reloc_tb): Likewise.
6895 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
6896 PRIx64 instead of PRIx32.
6898 2016-06-28 Yao Qi <yao.qi@linaro.org>
6900 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
6901 (the_low_target): Install arm_get_syscall_trapinfo.
6903 2016-06-28 Yao Qi <yao.qi@linaro.org>
6905 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
6907 (the_low_target): Install aarch64_get_syscall_trapinfo.
6909 2016-06-28 Yao Qi <yao.qi@linaro.org>
6911 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
6913 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
6914 Remove parameter sysno.
6915 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
6918 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6920 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
6921 (s390_emit_ne_goto): Likewise.
6922 (s390_emit_lt_goto): Likewise.
6923 (s390_emit_le_goto): Likewise.
6924 (s390_emit_gt_goto): Likewise.
6925 (s390_emit_ge_goto): Likewise.
6926 (s390x_emit_eq_goto): Likewise.
6927 (s390x_emit_ne_goto): Likewise.
6928 (s390x_emit_lt_goto): Likewise.
6929 (s390x_emit_le_goto): Likewise.
6930 (s390x_emit_gt_goto): Likewise.
6931 (s390x_emit_ge_goto): Likewise.
6932 (s390_emit_ops_impl): Mark variable static.
6933 (s390x_emit_ops): Likewise.
6935 2016-06-17 Yao Qi <yao.qi@linaro.org>
6937 * linux-low.c (handle_extended_wait): Call
6938 uninsert_reinsert_breakpoints for the parent process. Remove
6939 reinsert breakpoints from the child process. Reinsert them to
6940 the parent process when vfork is done.
6941 * mem-break.c (uninsert_reinsert_breakpoints): New function.
6942 (reinsert_reinsert_breakpoints): New function.
6943 * mem-break.h (uninsert_reinsert_breakpoints): Declare
6944 (reinsert_reinsert_breakpoints): Declare.
6946 2016-06-17 Yao Qi <yao.qi@linaro.org>
6948 * linux-low.c (handle_extended_wait): If the parent is doing
6949 step-over, remove the reinsert breakpoints from the forked child.
6951 2016-06-17 Yao Qi <yao.qi@linaro.org>
6953 * linux-low.c (unsuspend_all_lwps): Declare.
6954 (linux_low_filter_event): If thread exited, call finish_step_over.
6955 If step-over is finished, unsuspend other threads.
6957 2016-06-17 Yao Qi <yao.qi@linaro.org>
6959 * linux-low.c (linux_resume_one_lwp_throw): Assert
6960 has_reinsert_breakpoints returns false.
6961 * mem-break.c (delete_disabled_breakpoints): Assert
6962 bp type isn't reinsert_breakpoint.
6964 2016-06-17 Yao Qi <yao.qi@linaro.org>
6966 * linux-low.c (maybe_hw_step): New function.
6967 (linux_resume_one_lwp_throw): Call maybe_hw_step.
6968 (finish_step_over): Switch current_thread to lwp temporarily,
6969 and assert has_reinsert_breakpoints returns true.
6970 (proceed_one_lwp): Call maybe_hw_step.
6971 * mem-break.c (has_reinsert_breakpoints): New function.
6972 * mem-break.h (has_reinsert_breakpoints): Declare.
6974 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
6976 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
6978 2016-05-17 Yao Qi <yao.qi@linaro.org>
6980 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
6981 instead of find_inferior.
6983 2016-05-05 Yao Qi <yao.qi@linaro.org>
6985 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
6986 Initialize res to zero.
6988 2016-05-05 Yao Qi <yao.qi@linaro.org>
6990 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
6993 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6995 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
6996 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
6997 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6999 2016-04-28 Par Olsson <par.olsson@windriver.com>
7000 Simon Marchi <simon.marchi@ericsson.com>
7002 * tracepoint.c (write_inferior_int8): New function.
7003 (cmd_qtenable_disable): Write enable flag using
7004 write_inferior_int8.
7006 2016-04-25 Yao Qi <yao.qi@linaro.org>
7008 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7009 (need_step_over_p): Return zero if the LWP has pending signals
7010 can be delivered on software single step target.
7012 2016-04-25 Yao Qi <yao.qi@linaro.org>
7014 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7015 return instead of error.
7017 2016-04-22 Yao Qi <yao.qi@linaro.org>
7019 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7022 2016-04-22 Yao Qi <yao.qi@linaro.org>
7024 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7025 signal when stepping over breakpoint with software single
7028 2016-04-21 Pedro Alves <palves@redhat.com>
7030 * linux-s390-low.c (s390_collect_ptrace_register)
7031 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7033 (s390_check_regset): Use void * instead of gdb_byte *.
7035 2016-04-20 Pedro Alves <palves@redhat.com>
7037 * configure: Renegerate.
7039 2016-04-20 Yao Qi <yao.qi@linaro.org>
7041 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7042 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7044 (arm_store_gregset): Likewise.
7046 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7048 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7049 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7050 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7051 (amd64-avx-mpx-linux.c): New rules.
7052 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7053 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7054 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7055 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7056 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7057 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7058 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7059 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7060 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7061 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7062 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7063 * linux-x86-low.c (x86_linux_read_description): Add case for
7064 X86_XSTATE_AVX_MPX_MASK.
7065 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7066 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7067 init_registers_i386_avx_mpx_linux.
7068 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7069 (initialize_low_tracepoint): Call
7070 init_registers_i386_avx_mpx_linux.
7071 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7072 (initialize_low_tracepoint): Call
7073 init_registers_amd64_avx_mpx_linux.
7074 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7075 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7076 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7079 2016-04-18 Pedro Alves <palves@redhat.com>
7081 * configure: Regenerate.
7083 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7085 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7086 (aarch64_emit_sub): Likewise.
7088 2016-04-12 Pedro Alves <palves@redhat.com>
7090 * utils.c (prepare_to_throw_exception): Delete.
7092 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7094 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7096 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7098 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7100 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7102 * linux-aarch64-ipa.c: Add <elf.h> include.
7103 * linux-ppc-ipa.c: Add <elf.h> include.
7104 * linux-s390-ipa.c: Add <elf.h> include.
7106 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7108 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7109 (get_raw_reg_ptr): Likewise.
7110 (get_trace_state_variable_value_ptr): Likewise.
7111 (set_trace_state_variable_value_ptr): Likewise.
7112 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7115 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7116 Marcin Kościelnicki <koriakin@0x04.net>
7119 * linux-ppc-low.c (emit_insns): New function.
7120 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7121 (ppc_emit_prologue): New function.
7122 (ppc_emit_epilogue): New function.
7123 (ppc_emit_add): New function.
7124 (ppc_emit_sub): New function.
7125 (ppc_emit_mul): New function.
7126 (ppc_emit_lsh): New function.
7127 (ppc_emit_rsh_signed): New function.
7128 (ppc_emit_rsh_unsigned): New function.
7129 (ppc_emit_ext): New function.
7130 (ppc_emit_zero_ext): New function.
7131 (ppc_emit_log_not): New function.
7132 (ppc_emit_bit_and): New function.
7133 (ppc_emit_bit_or): New function.
7134 (ppc_emit_bit_xor): New function.
7135 (ppc_emit_bit_not): New function.
7136 (ppc_emit_equal): New function.
7137 (ppc_emit_less_signed): New function.
7138 (ppc_emit_less_unsigned): New function.
7139 (ppc_emit_ref): New function.
7140 (ppc_emit_const): New function.
7141 (ppc_emit_reg): New function.
7142 (ppc_emit_pop): New function.
7143 (ppc_emit_stack_flush): New function.
7144 (ppc_emit_swap): New function.
7145 (ppc_emit_stack_adjust): New function.
7146 (ppc_emit_call): New function.
7147 (ppc_emit_int_call_1): New function.
7148 (ppc_emit_void_call_2): New function.
7149 (ppc_emit_if_goto): New function.
7150 (ppc_emit_goto): New function.
7151 (ppc_emit_eq_goto): New function.
7152 (ppc_emit_ne_goto): New function.
7153 (ppc_emit_lt_goto): New function.
7154 (ppc_emit_le_goto): New function.
7155 (ppc_emit_gt_goto): New function.
7156 (ppc_emit_ge_goto): New function.
7157 (ppc_write_goto_address): New function.
7158 (ppc_emit_ops_impl): New static variable.
7159 (ppc64v1_emit_prologue): New function.
7160 (ppc64v2_emit_prologue): New function.
7161 (ppc64_emit_epilogue): New function.
7162 (ppc64_emit_add): New function.
7163 (ppc64_emit_sub): New function.
7164 (ppc64_emit_mul): New function.
7165 (ppc64_emit_lsh): New function.
7166 (ppc64_emit_rsh_signed): New function.
7167 (ppc64_emit_rsh_unsigned): New function.
7168 (ppc64_emit_ext): New function.
7169 (ppc64_emit_zero_ext): New function.
7170 (ppc64_emit_log_not): New function.
7171 (ppc64_emit_bit_and): New function.
7172 (ppc64_emit_bit_or): New function.
7173 (ppc64_emit_bit_xor): New function.
7174 (ppc64_emit_bit_not): New function.
7175 (ppc64_emit_equal): New function.
7176 (ppc64_emit_less_signed): New function.
7177 (ppc64_emit_less_unsigned): New function.
7178 (ppc64_emit_ref): New function.
7179 (ppc64_emit_const): New function.
7180 (ppc64v1_emit_reg): New function.
7181 (ppc64v2_emit_reg): New function.
7182 (ppc64_emit_pop): New function.
7183 (ppc64_emit_stack_flush): New function.
7184 (ppc64_emit_swap): New function.
7185 (ppc64v1_emit_call): New function.
7186 (ppc64v2_emit_call): New function.
7187 (ppc64v1_emit_int_call_1): New function.
7188 (ppc64v2_emit_int_call_1): New function.
7189 (ppc64v1_emit_void_call_2): New function.
7190 (ppc64v2_emit_void_call_2): New function.
7191 (ppc64_emit_if_goto): New function.
7192 (ppc64_emit_eq_goto): New function.
7193 (ppc64_emit_ne_goto): New function.
7194 (ppc64_emit_lt_goto): New function.
7195 (ppc64_emit_le_goto): New function.
7196 (ppc64_emit_gt_goto): New function.
7197 (ppc64_emit_ge_goto): New function.
7198 (ppc64v1_emit_ops_impl): New static variable.
7199 (ppc64v2_emit_ops_impl): New static variable.
7200 (ppc_emit_ops): New function.
7201 (linux_low_target): Wire in ppc_emit_ops.
7203 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7204 Marcin Kościelnicki <koriakin@0x04.net>
7207 * Makefile.in: Add powerpc-*-ipa.o
7208 * configure.srv: Add ipa_obj for powerpc*-linux.
7209 * linux-ppc-ipa.c: New file.
7210 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7212 (PPC_FIELD): New macro.
7213 (PPC_SEXT): New macro.
7214 (PPC_OP6): New macro.
7215 (PPC_BO): New macro.
7216 (PPC_LI): New macro.
7217 (PPC_BD): New macro.
7218 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7219 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7220 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7221 (ppc_get_thread_area): New function.
7222 (is_elfv2_inferior): New function.
7223 (gen_ds_form): New function.
7224 (GEN_STD): New macro.
7225 (GEN_STDU): New macro.
7226 (GEN_LD): New macro.
7227 (GEN_LDU): New macro.
7228 (gen_d_form): New function.
7229 (GEN_ADDI): New macro.
7230 (GEN_ADDIS): New macro.
7231 (GEN_LI): New macro.
7232 (GEN_LIS): New macro.
7233 (GEN_ORI): New macro.
7234 (GEN_ORIS): New macro.
7235 (GEN_LWZ): New macro.
7236 (GEN_STW): New macro.
7237 (GEN_STWU): New macro.
7238 (gen_xfx_form): New function.
7239 (GEN_MFSPR): New macro.
7240 (GEN_MTSPR): New macro.
7241 (GEN_MFCR): New macro.
7242 (GEN_MTCR): New macro.
7243 (GEN_SYNC): New macro.
7244 (GEN_LWSYNC): New macro.
7245 (gen_x_form): New function.
7246 (GEN_OR): New macro.
7247 (GEN_MR): New macro.
7248 (GEN_LWARX): New macro.
7249 (GEN_STWCX): New macro.
7250 (GEN_CMPW): New macro.
7251 (gen_md_form): New function.
7252 (GEN_RLDICL): New macro.
7253 (GEN_RLDICR): New macro.
7254 (gen_i_form): New function.
7256 (GEN_BL): New macro.
7257 (gen_b_form): New function.
7258 (GEN_BNE): New macro.
7259 (GEN_LOAD): New macro.
7260 (GEN_STORE): New macro.
7261 (gen_limm): New function.
7262 (gen_atomic_xchg): New function.
7263 (gen_call): New function.
7264 (ppc_relocate_instruction): New function.
7265 (ppc_install_fast_tracepoint_jump_pad): New function.
7266 (ppc_get_min_fast_tracepoint_insn_len): New function.
7267 (ppc_get_ipa_tdesc_idx): New function.
7268 (the_low_target): Wire in the new functions.
7269 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7271 * linux-ppc-tdesc.h: New file.
7273 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7275 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7276 (alloc_jump_pad_buffer): New function.
7277 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7278 (alloc_jump_pad_buffer): New function.
7279 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7280 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7281 (alloc_jump_pad_buffer): New function.
7282 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7283 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7284 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7285 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7287 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7289 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7290 * linux-amd64-ipa.c: Likewise.
7291 * linux-i386-ipa.c: Likewise.
7292 * linux-s390-ipa.c: Likewise.
7293 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7294 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7295 set_trace_state_variable_value_ptr.
7296 (struct ipa_sym_addresses): Likewise.
7297 (symbol_list): Likewise.
7298 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7299 accessing gdb_collect directly.
7300 (gdb_collect_ptr_type): New typedef.
7301 (get_raw_reg_ptr_type): New typedef.
7302 (get_trace_state_variable_value_ptr_type): New typedef.
7303 (set_trace_state_variable_value_ptr_type): New typedef.
7304 (gdb_collect_ptr): New global.
7305 (get_raw_reg_ptr): New global.
7306 (get_trace_state_variable_value_ptr): New global.
7307 (set_trace_state_variable_value_ptr): New global.
7308 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7309 accessing get_raw_reg directly.
7310 (get_get_tsv_func_addr): Likewise for
7311 get_trace_state_variable_value_ptr.
7312 (get_set_tsv_func_addr): Likewise for
7313 set_trace_state_variable_value_ptr.
7314 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7316 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7318 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
7320 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7322 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
7324 (relocate_instruction): Remove own_buf.
7325 * server.c (own_buf): Make global.
7326 (handle_v_requests): Make global.
7327 * server.h (own_buf): New declaration.
7328 (handle_v_requests): New prototype.
7330 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7333 * linux-s390-low.c (add_insns): New function.
7334 (s390_emit_prologue): New function.
7335 (s390_emit_epilogue): New function.
7336 (s390_emit_add): New function.
7337 (s390_emit_sub): New function.
7338 (s390_emit_mul): New function.
7339 (s390_emit_lsh): New function.
7340 (s390_emit_rsh_signed): New function.
7341 (s390_emit_rsh_unsigned): New function.
7342 (s390_emit_ext): New function.
7343 (s390_emit_log_not): New function.
7344 (s390_emit_bit_and): New function.
7345 (s390_emit_bit_or): New function.
7346 (s390_emit_bit_xor): New function.
7347 (s390_emit_bit_not): New function.
7348 (s390_emit_equal): New function.
7349 (s390_emit_less_signed): New function.
7350 (s390_emit_less_unsigned): New function.
7351 (s390_emit_ref): New function.
7352 (s390_emit_if_goto): New function.
7353 (s390_emit_goto): New function.
7354 (s390_write_goto_address): New function.
7355 (s390_emit_litpool): New function.
7356 (s390_emit_const): New function.
7357 (s390_emit_call): New function.
7358 (s390_emit_reg): New function.
7359 (s390_emit_pop): New function.
7360 (s390_emit_stack_flush): New function.
7361 (s390_emit_zero_ext): New function.
7362 (s390_emit_swap): New function.
7363 (s390_emit_stack_adjust): New function.
7364 (s390_emit_set_r2): New function.
7365 (s390_emit_int_call_1): New function.
7366 (s390_emit_void_call_2): New function.
7367 (s390_emit_eq_goto): New function.
7368 (s390_emit_ne_goto): New function.
7369 (s390_emit_lt_goto): New function.
7370 (s390_emit_le_goto): New function.
7371 (s390_emit_gt_goto): New function.
7372 (s390_emit_ge_goto): New function.
7373 (s390x_emit_prologue): New function.
7374 (s390x_emit_epilogue): New function.
7375 (s390x_emit_add): New function.
7376 (s390x_emit_sub): New function.
7377 (s390x_emit_mul): New function.
7378 (s390x_emit_lsh): New function.
7379 (s390x_emit_rsh_signed): New function.
7380 (s390x_emit_rsh_unsigned): New function.
7381 (s390x_emit_ext): New function.
7382 (s390x_emit_log_not): New function.
7383 (s390x_emit_bit_and): New function.
7384 (s390x_emit_bit_or): New function.
7385 (s390x_emit_bit_xor): New function.
7386 (s390x_emit_bit_not): New function.
7387 (s390x_emit_equal): New function.
7388 (s390x_emit_less_signed): New function.
7389 (s390x_emit_less_unsigned): New function.
7390 (s390x_emit_ref): New function.
7391 (s390x_emit_if_goto): New function.
7392 (s390x_emit_const): New function.
7393 (s390x_emit_call): New function.
7394 (s390x_emit_reg): New function.
7395 (s390x_emit_pop): New function.
7396 (s390x_emit_stack_flush): New function.
7397 (s390x_emit_zero_ext): New function.
7398 (s390x_emit_swap): New function.
7399 (s390x_emit_stack_adjust): New function.
7400 (s390x_emit_int_call_1): New function.
7401 (s390x_emit_void_call_2): New function.
7402 (s390x_emit_eq_goto): New function.
7403 (s390x_emit_ne_goto): New function.
7404 (s390x_emit_lt_goto): New function.
7405 (s390x_emit_le_goto): New function.
7406 (s390x_emit_gt_goto): New function.
7407 (s390x_emit_ge_goto): New function.
7408 (s390_emit_ops): New function.
7409 (struct linux_target_ops): Fill in emit_ops hook.
7411 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7414 * Makefile.in: Add s390 IPA files.
7415 * configure.srv: Build IPA for s390.
7416 * linux-s390-ipa.c: New file.
7417 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
7418 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
7419 (tdesc_s390_linux32): Likewise.
7420 (init_registers_s390_linux32v1): Likewise.
7421 (tdesc_s390_linux32v1): Likewise.
7422 (init_registers_s390_linux32v2): Likewise.
7423 (tdesc_s390_linux32v2): Likewise.
7424 (init_registers_s390_linux64): Likewise.
7425 (tdesc_s390_linux64): Likewise.
7426 (init_registers_s390_linux64v1): Likewise.
7427 (tdesc_s390_linux64v1): Likewise.
7428 (init_registers_s390_linux64v2): Likewise.
7429 (tdesc_s390_linux64v2): Likewise.
7430 (init_registers_s390_te_linux64): Likewise.
7431 (tdesc_s390_te_linux64): Likewise.
7432 (init_registers_s390_vx_linux64): Likewise.
7433 (tdesc_s390_vx_linux64): Likewise.
7434 (init_registers_s390_tevx_linux64): Likewise.
7435 (tdesc_s390_tevx_linux64): Likewise.
7436 (init_registers_s390x_linux64): Likewise.
7437 (tdesc_s390x_linux64): Likewise.
7438 (init_registers_s390x_linux64v1): Likewise.
7439 (tdesc_s390x_linux64v1): Likewise.
7440 (init_registers_s390x_linux64v2): Likewise.
7441 (tdesc_s390x_linux64v2): Likewise.
7442 (init_registers_s390x_te_linux64): Likewise.
7443 (tdesc_s390x_te_linux64): Likewise.
7444 (init_registers_s390x_vx_linux64): Likewise.
7445 (tdesc_s390x_vx_linux64): Likewise.
7446 (init_registers_s390x_tevx_linux64): Likewise.
7447 (tdesc_s390x_tevx_linux64): Likewise.
7448 (have_hwcap_s390_vx): New static variable.
7449 (s390_arch_setup): Fill have_hwcap_s390_vx.
7450 (s390_get_thread_area): New function.
7451 (s390_ft_entry_gpr_esa): New const.
7452 (s390_ft_entry_gpr_zarch): New const.
7453 (s390_ft_entry_misc): New const.
7454 (s390_ft_entry_fr): New const.
7455 (s390_ft_entry_vr): New const.
7456 (s390_ft_main_31): New const.
7457 (s390_ft_main_64): New const.
7458 (s390_ft_exit_fr): New const.
7459 (s390_ft_exit_vr): New const.
7460 (s390_ft_exit_misc): New const.
7461 (s390_ft_exit_gpr_esa): New const.
7462 (s390_ft_exit_gpr_zarch): New const.
7463 (append_insns): New function.
7464 (s390_relocate_instruction): New function.
7465 (s390_install_fast_tracepoint_jump_pad): New function.
7466 (s390_get_min_fast_tracepoint_insn_len): New function.
7467 (s390_get_ipa_tdesc_idx): New function.
7468 (struct linux_target_ops): Wire in the above functions.
7469 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
7470 * linux-s390-tdesc.h: New file.
7472 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7474 * linux-s390-low.c (s390_supports_tracepoints): New function.
7475 (struct linux_target_ops): Fill supports_tracepoints hook.
7477 2016-03-18 Yao Qi <yao.qi@linaro.org>
7479 * linux-low.c (lwp_signal_can_be_delivered): New function.
7480 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
7482 2016-03-18 Yao Qi <yao.qi@linaro.org>
7484 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
7485 0 if signal is enqueued. Remove 'signal' from one debugging
7486 message. Move one debugging message to some lines below.
7487 Remove code setting 'signal' to 0.
7489 2016-03-18 Yao Qi <yao.qi@linaro.org>
7491 * linux-low.c (linux_low_filter_event): Remove redundant
7492 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
7494 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7496 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
7497 (struct linux_target_ops): Wire in the above.
7499 2016-03-03 Yao Qi <yao.qi@linaro.org>
7501 * linux-low.c: Update comments to start_step_over.
7503 2016-03-03 Yao Qi <yao.qi@linaro.org>
7506 * linux-low.c (handle_extended_wait): Set child suspended
7507 if event_lwp->bp_reinsert isn't zero.
7509 2016-03-02 Yao Qi <yao.qi@linaro.org>
7511 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
7512 enqueue_pending_signal.
7514 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
7516 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
7519 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7521 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
7522 (s390_regmap_3264) [!__s390x__]: New global.
7523 (s390_collect_ptrace_register): Skip map entries containing -1.
7524 (s390_supply_ptrace_register): Ditto.
7525 (s390_fill_gprs_high): New function.
7526 (s390_store_gprs_high): New function.
7527 (s390_regsets): Add NT_S390_HIGH_GPRS.
7528 (s390_get_hwcap): Enable on 31-bit.
7529 (have_hwcap_s390_high_gprs): Enable on 31-bit.
7530 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
7531 Detect NT_S390_HIGH_GPRS.
7532 (s390_usrregs_info_3264): Enable on 31-bit.
7533 (s390_regs_info): Enable regs_info_3264 on 31-bit.
7534 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
7536 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7539 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
7540 * configure.srv: Ditto.
7541 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
7542 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
7543 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
7544 (init_registers_amd64_linux): Remove prototype.
7545 (tdesc_amd64_linux): Remove declaration.
7546 (get_ipa_tdesc): New function.
7547 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7548 initialize remaining tdescs.
7549 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
7550 (init_registers_i386_linux): Remove prototype.
7551 (tdesc_i386_linux): Remove declaration.
7552 (get_ipa_tdesc): New function.
7553 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7554 initialize remaining tdescs.
7555 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
7556 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
7557 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
7558 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
7559 (x86_get_ipa_tdesc_idx): New function.
7560 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
7561 * linux-x86-tdesc.h: New file.
7562 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
7563 (target_get_ipa_tdesc_idx): New macro.
7564 * tracepoint.c (ipa_tdesc_idx): New macro.
7565 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
7566 (symbol_list): Add ipa_tdesc_idx.
7567 (cmd_qtstart): Write ipa_tdesc_idx in the target.
7568 (ipa_tdesc): Remove.
7569 (ipa_tdesc_idx): New variable.
7570 (get_context_regcache): Use get_ipa_tdesc.
7571 (gdb_collect): Ditto.
7573 * tracepoint.h (get_ipa_tdesc): New prototype.
7574 (ipa_tdesc): Remove.
7576 2016-02-24 Pedro Alves <palves@redhat.com>
7578 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
7579 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
7580 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
7581 Factor out common code between the USE_SIGTRAP_SIGINFO and
7582 !USE_SIGTRAP_SIGINFO blocks.
7583 (linux_low_filter_event): Call save_stop_reason instead of
7584 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
7586 (linux_wait_1): Update comments.
7588 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
7590 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
7591 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
7592 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
7593 ppc_insert_point, ppc_remove_point.
7595 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
7597 * linux-s390-low.c (s390_supports_z_point_type): New function.
7598 (struct linux_target_ops): Wire s390_supports_z_point_type in.
7600 2016-02-16 Yao Qi <yao.qi@linaro.org>
7602 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
7603 PC. Get pc from regcache_read_pc.
7605 2016-02-12 Yao Qi <yao.qi@linaro.org>
7607 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
7608 or linux_get_pc_32bit.
7609 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
7611 2016-02-12 Yao Qi <yao.qi@linaro.org>
7613 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
7614 arm_linux_get_next_pcs_fixup.
7616 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7618 * tracepoint.c (x_tracepoint_action_download): Change
7619 write_inferior_data_ptr to write_inferior_data_pointer.
7620 (cmd_qtstart): Likewise.
7621 (write_inferior_data_ptr): Remove.
7622 (download_agent_expr): Change write_inferior_data_ptr to
7623 write_inferior_data_pointer.
7624 (download_tracepoint_1): Likewise.
7625 (download_tracepoint): Likewise.
7626 (download_trace_state_variables): Likewise.
7628 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
7629 Marcin Kościelnicki <koriakin@0x04.net>
7631 * tracepoint.c (struct tracepoint_action_ops): Remove.
7632 (struct tracepoint_action): Remove ops.
7633 (m_tracepoint_action_download, r_tracepoint_action_download)
7634 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
7635 size and offset accordingly.
7636 (m_tracepoint_action_ops, r_tracepoint_action_ops)
7637 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
7638 (tracepoint_action_send, tracepoint_action_download): New functions.
7639 Helpers for trace action handlers.
7640 (add_tracepoint_action): Remove setup actions ops.
7641 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
7643 2016-02-10 Yao Qi <yao.qi@linaro.org>
7645 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
7647 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7649 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7651 * configure: Regenerate.
7653 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7655 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
7656 void * to gdb_byte *.
7657 * linux-low.c (siginfo_fixup): Likewise.
7658 (linux_xfer_siginfo): Likewise.
7659 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
7661 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
7663 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7665 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
7667 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
7669 * linux-x86-low.c [__x86_64__]: Include
7670 "nat/amd64-linux-siginfo.h".
7671 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7672 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7673 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7674 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7675 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7676 (cpt_si_fd, si_timerid, si_overrun): Move from
7677 nat/amd64-linux-siginfo.c.
7678 * Makefile.in (amd64-linux-siginfo.o:): New rule.
7680 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7682 * server.c (skip_to_semicolon): Remove.
7683 (process_point_options): Use strchrnul instead of
7686 2016-01-26 Yao Qi <yao.qi@linaro.org>
7688 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
7689 * linux-low.c (install_software_single_step_breakpoints): Don't
7690 call regcache_read_pc.
7691 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
7694 2016-01-26 Yao Qi <yao.qi@linaro.org>
7696 * linux-low.c (install_software_single_step_breakpoints): Call
7697 regcache_read_pc instead of get_pc.
7699 2016-01-26 Yao Qi <yao.qi@linaro.org>
7701 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
7702 (unblock_async_io): Rename to ...
7703 (block_unblock_async_io): ... it. New function.
7704 (enable_async_io): Don't install SIGIO handler. Unblock it
7706 (disable_async_io): Don't ignore SIGIO. Block it instead.
7707 (initialize_async_io): Install SIGIO handler. Don't call
7710 2016-01-26 Yao Qi <yao.qi@linaro.org>
7712 * remote-utils.c (getpkt): If the buffer isn't empty, and the
7713 first character is '\003', call *the_target->request_interrupt.
7715 2016-01-25 Yao Qi <yao.qi@linaro.org>
7717 * remote-utils.c (new_thread_notify): Remove.
7718 (dead_thread_notify): Likewise.
7719 * remote-utils.h (new_thread_notify): Remove declaration.
7720 (dead_thread_notify): Likewise.
7722 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
7724 * gdb.trace/pending.exp: Fix expected message on continue.
7726 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
7728 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
7729 it works properly on big-endian machines where sizeof (CORE_ADDR)
7732 2016-01-21 Pedro Alves <palves@redhat.com>
7734 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
7735 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
7736 * configure: Regenerate.
7738 2016-01-21 Yao Qi <yao.qi@linaro.org>
7740 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
7741 is_thumb and set it according to CPSR saved on the stack.
7742 (get_next_pcs_syscall_next_pc): Pass is_thumb to
7743 arm_sigreturn_next_pc.
7745 2016-01-18 Yao Qi <yao.qi@linaro.org>
7747 * linux-low.c (linux_set_pc_64bit): New function.
7748 (linux_get_pc_64bit): New function.
7749 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
7751 * linux-sparc-low.c (debug_threads): Remove declaration.
7752 (sparc_get_pc): Remove.
7753 (the_low_target): Use linux_get_pc_64bit instead of
7755 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
7756 (the_low_target): Use linux_get_pc_64bit and
7759 2016-01-18 Yao Qi <yao.qi@linaro.org>
7761 * linux-arm-low.c (debug_threads): Remove declaration.
7762 (arm_get_pc, arm_set_pc): Remove.
7763 (the_low_target): Use linux_get_pc_32bit and
7765 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
7766 (the_low_target): Use linux_get_pc_32bit and
7768 * linux-cris-low.c (debug_threads): Remove declaration.
7769 (cris_get_pc, cris_set_pc,): Remove.
7770 (the_low_target): Use linux_get_pc_32bit and
7772 * linux-crisv32-low.c (debug_threads): Remove declaration.
7773 (cris_get_pc, cris_set_pc): Remove.
7774 (the_low_target): Use linux_get_pc_32bit and
7776 * linux-low.c: Include inttypes.h.
7777 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
7778 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
7779 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
7780 (the_low_target): Use linux_get_pc_32bit and
7782 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
7783 (the_low_target): Use linux_get_pc_32bit and
7785 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
7786 (the_low_target): Use linux_get_pc_32bit and
7788 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
7789 (the_low_target): Use linux_get_pc_32bit and
7791 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
7792 (the_low_target): Use linux_get_pc_32bit and
7795 2016-01-18 Gary Benson <gbenson@redhat.com>
7797 * configure.ac (AC_FUNC_FORK): New check.
7798 * config.in: Regenerate.
7799 * configure: Likewise.
7801 2016-01-14 Yao Qi <yao.qi@linaro.org>
7803 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
7804 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
7805 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
7806 arm_get_next_pcs_ctor.
7808 2016-01-12 Josh Stone <jistone@redhat.com>
7809 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7811 * inferiors.h: Include "gdb_vecs.h".
7812 (struct process_info): Add syscalls_to_catch.
7813 * inferiors.c (remove_process): Free syscalls_to_catch.
7814 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
7815 syscall_return stops.
7816 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
7817 * server.c (handle_general_set): Handle QCatchSyscalls.
7818 (handle_query): Report support for QCatchSyscalls.
7819 * target.h (struct target_ops): Add supports_catch_syscall.
7820 (target_supports_catch_syscall): New macro.
7821 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
7822 (struct lwp_info): Add syscall_state.
7823 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
7824 Maintain syscall_state and syscalls_to_catch across exec.
7825 (get_syscall_trapinfo): New function, proxy to the_low_target.
7826 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
7827 (linux_low_filter_event): Toggle syscall_state entry/return for
7828 syscall traps, and set it ignored for all others.
7829 (gdb_catching_syscalls_p): New function.
7830 (gdb_catch_this_syscall_p): New function.
7831 (linux_wait_1): Handle SYSCALL_SIGTRAP.
7832 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
7833 (linux_supports_catch_syscall): New function.
7834 (linux_target_ops): Install it.
7835 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
7836 (the_low_target): Install it.
7838 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7840 * acinclude.m4: Include new ../warning.m4 file.
7841 * configure: Regenerated.
7842 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
7844 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7846 * ax.c (is_goto_target): Mark static.
7847 * linux-low.c (register_addr): Likewise.
7848 (linux_fetch_registers, linux_store_registers): Likewise.
7849 * mem-break.c (any_persistent_commands): Fix old prototype.
7850 (add_commands_to_breakpoint): Mark static.
7851 * regcache.c (find_register_by_name): Delete unused func.
7852 * remote-utils.c (hex_or_minus_one): Mark static.
7853 * server.c (monitor_show_help): Mark static.
7854 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
7855 handle_v_requests): Likewise.
7857 2016-01-12 Pedro Alves <palves@redhat.com>
7859 Remove use of the registered trademark symbol throughout.
7861 2016-01-08 Yao Qi <yao.qi@linaro.org>
7863 * remote-utils.c (getpkt): If c is '\003', call target hook
7866 2016-01-06 Yao Qi <yao.qi@linaro.org>
7868 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
7869 linux-aarch32-low.c.
7870 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7871 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7872 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7873 (thumb2_breakpoint): Declare.
7874 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
7875 linux-aarch32-low.h.
7876 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7877 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7878 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7880 2016-01-01 Joel Brobecker <brobecker@adacore.com>
7882 * gdbreplay.c (gdbreplay_version): Change copyright year in
7884 * server.c (gdbserver_version): Likewise.
7886 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
7888 * server.c (crc32_table): Delete.
7889 (crc32): Use libiberty's xcrc32 function.
7891 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7893 * lynx-low.c (lynx_delete_thread_callback): New function.
7894 (lynx_mourn): Properly delete our process and all of its
7895 threads. Remove call to clear_inferiors.
7897 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7899 * target.c (thread_search_callback): Add check that
7900 the thread_stopped target callback is not NULL before
7903 2015-12-21 Yao Qi <yao.qi@linaro.org>
7905 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
7908 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7910 * server.c (handle_query): Call target_supports_software_single_step.
7912 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7914 * linux-low.c (single_step): New function.
7915 (linux_resume_one_lwp_throw): Call single_step.
7916 (start_step_over): Likewise.
7918 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7920 * Makefile.in (SFILES): Append arch/arm-linux.c,
7921 arch/arm-get-next-pcs.c.
7922 (arm-linux.o): New rule.
7923 (arm-get-next-pcs.o): New rule.
7924 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
7926 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
7927 to linux-aarch32-low.c.
7928 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7929 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7930 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7931 (thumb2_breakpoint_len): Likewise.
7932 (arm_is_thumb_mode): Make non-static.
7933 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
7934 from linux-aarch32-low.c.
7935 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7936 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7937 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7938 (thumb2_breakpoint_len): Likewise.
7939 (arm_is_thumb_mode): New declaration.
7940 * linux-arm-low.c: Include arch/arm-linux.h
7941 aarch/arm-get-next-pcs.h, sys/syscall.h.
7942 (get_next_pcs_ops): New struct.
7943 (get_next_pcs_addr_bits_remove): New function.
7944 (get_next_pcs_is_thumb): New function.
7945 (get_next_pcs_read_memory_unsigned_integer): Likewise.
7946 (arm_sigreturn_next_pc): Likewise.
7947 (get_next_pcs_syscall_next_pc): Likewise.
7948 (arm_gdbserver_get_next_pcs): Likewise.
7949 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
7951 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
7952 * server.h: Include gdb_vecs.h.
7954 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7956 * Makefile.in (SFILES): Append common/common-regcache.c.
7957 (OBS): Append common-regcache.o.
7958 (common-regcache.o): New rule.
7959 * regcache.c (init_register_cache): Initialize cache to
7961 (regcache_raw_read_unsigned): New function.
7962 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
7963 register_status enum.
7965 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7967 * linux-aarch64-low.c (the_low_targets): Rename
7968 breakpoint_reinsert_addr to get_next_pcs.
7969 * linux-arm-low.c (the_low_targets): Likewise.
7970 * linux-bfin-low.c (the_low_targets): Likewise.
7971 * linux-cris-low.c (the_low_targets): Likewise.
7972 * linux-crisv32-low.c (the_low_targets): Likewise.
7973 * linux-low.c (can_software_single_step): Likewise.
7974 (install_software_single_step_breakpoints): New function.
7975 (start_step_over): Use install_software_single_step_breakpoints.
7976 * linux-low.h: New CORE_ADDR vector.
7977 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
7979 * linux-mips-low.c (the_low_targets): Likewise.
7980 * linux-nios2-low.c (the_low_targets): Likewise.
7981 * linux-sparc-low.c (the_low_targets): Likewise.
7983 2015-12-17 Pedro Alves <palves@redhat.com>
7985 * linux-low.c (linux_kill_one_lwp): Remove references to
7987 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
7989 (linux_init_signals): Delete.
7990 (initialize_low): Adjust.
7991 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
7993 2015-12-16 Pedro Alves <palves@redhat.com>
7995 * configure.ac (compiler warning flags): When testing a
7996 -Wno-foo option, check whether -Wfoo works instead.
7997 * configure: Regenerate.
7999 2015-12-11 Don Breazeal <donb@codesourcery.com>
8001 * server.c (process_serial_event): Don't exit from gdbserver
8002 in remote mode if there are still active inferiors.
8004 2015-12-11 Yao Qi <yao.qi@linaro.org>
8006 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8007 arm_breakpoint_at if the process is 32-bit.
8009 2015-12-11 Yao Qi <yao.qi@linaro.org>
8011 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8014 2015-12-07 Yao Qi <yao.qi@linaro.org>
8016 * configure.srv: Append arm.o to srv_tgtobj for
8017 aarch64*-*-linux* target.
8018 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8019 from linux-arm-low.c.
8020 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8021 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8022 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8023 (thumb2_breakpoint_len): Likewise.
8024 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8025 (arm_breakpoint_kinds): Likewise.
8026 (arm_breakpoint_kind_from_pc): Likewise.
8027 (arm_sw_breakpoint_from_kind): Likewise.
8028 (arm_breakpoint_kind_from_current_state): Likewise.
8029 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8030 (arm_sw_breakpoint_from_kind): Declare.
8031 (arm_breakpoint_kind_from_current_state): Declare.
8032 (arm_breakpoint_at): Declare.
8033 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8034 arm_sw_breakpoint_from_kind if process is 32-bit.
8035 (aarch64_breakpoint_kind_from_pc): New function.
8036 (aarch64_breakpoint_kind_from_current_state): New function.
8037 (the_low_target): Initialize fields breakpoint_kind_from_pc
8038 and breakpoint_kind_from_current_state.
8039 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8040 linux-aarch32-low.c.
8041 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8042 (arm_breakpoint, arm_breakpoint_len): Likewise.
8043 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8044 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8045 (arm_is_thumb_mode): Likewise.
8046 (arm_breakpoint_at): Likewise.
8047 (arm_breakpoint_kind_from_pc): Likewise.
8048 (arm_sw_breakpoint_from_kind): Likewise.
8049 (arm_breakpoint_kind_from_current_state): Likewise.
8052 2015-08-04 Yao Qi <yao.qi@linaro.org>
8054 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8055 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8056 * server.c (extended_protocol): Remove "static".
8057 * server.h (extended_protocol): Declare it.
8059 2015-12-04 Josh Stone <jistone@redhat.com>
8061 * target.h (struct target_ops) <arch_setup>: Rename to ...
8062 (struct target_ops) <post_create_inferior>: ... this.
8063 (target_arch_setup): Rename to ...
8064 (target_post_create_inferior): ... this, calling post_create_inferior.
8065 * server.c (start_inferior): Update target_arch_setup calls to
8066 target_post_create_inferior.
8067 * linux-low.c (linux_low_ptrace_options): Forward declare.
8068 (linux_arch_setup): Update its comment for general use.
8069 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8070 (struct linux_target_ops): Use linux_post_create_inferior.
8071 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8072 to post_create_inferior.
8073 * nto-low.c (struct nto_target_ops): Likewise.
8074 * spu-low.c (struct spu_target_ops): Likewise.
8075 * win32-low.c (struct win32_target_ops): Likewise.
8077 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8079 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8081 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8083 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8084 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8085 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8086 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8087 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8088 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8089 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8090 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8091 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8092 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8093 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8094 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8096 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8098 * linux-low.c (linux_look_up_symbols): Don't call
8099 linux_supports_traceclone.
8100 * linux-low.h (thread_db_init): Remove use_events argument.
8101 * thread-db.c (thread_db_use_event): Remove global variable.
8102 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8103 (struct thread_db) <td_create_bp>: Remove field.
8104 (thread_db_create_event): Remove function.
8105 (thread_db_enable_reporting): Likewise.
8106 (find_one_thread): Don't check for thread_db_use_events.
8107 (attach_thread): Likewise.
8108 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8109 (try_thread_db_load_1): Don't check for thread_db_use_events.
8110 (thread_db_init): Remove use_events argument and thread events
8112 (remove_thread_event_breakpoints): Remove function.
8113 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8115 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8117 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8119 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8120 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8121 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8122 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8123 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8125 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8127 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8128 * linux-low.c (can_hardware_single_step): Use
8129 supports_hardware_single_step.
8130 (can_software_single_step): New function.
8131 (start_step_over): Call can_software_single_step.
8132 (linux_supports_hardware_single_step): New function.
8133 (struct target_ops) <supports_software_single_step>: Initialize.
8134 * linux-low.h (struct linux_target_ops)
8135 <supports_hardware_single_step>: Initialize.
8136 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8137 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8138 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8139 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8140 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8141 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8142 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8143 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8144 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8145 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8147 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8148 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8150 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
8151 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8152 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
8154 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8155 * target.h (struct target_ops): <supports_software_single_step>:
8157 (target_supports_software_single_step): New macro.
8159 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8161 * linux-low.c (linux_wait_1): Fix pc advance condition.
8162 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8163 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8165 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8167 * linux-arm-low.c (arm_is_thumb_mode): New function.
8168 (arm_breakpoint_at): Use arm_is_thumb_mode.
8169 (arm_breakpoint_kind_from_current_state): New function.
8170 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8172 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8173 (linux_breakpoint_kind_from_current_state): New function.
8174 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8175 * linux-low.h (struct linux_target_ops)
8176 <breakpoint_kind_from_current_state>: New field.
8177 * target.h (struct target_ops): Likewise.
8178 (target_breakpoint_kind_from_current_state): New macro.
8180 2015-11-30 Pedro Alves <palves@redhat.com>
8182 * linux-low.c (linux_resume): Wake up the event loop before
8185 2015-11-30 Pedro Alves <palves@redhat.com>
8187 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8189 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8191 * target.c (struct thread_search): New structure.
8192 (thread_search_callback): New function.
8193 (prev_general_thread): New global.
8194 (prepare_to_access_memory, done_accessing_memory): New functions.
8195 * target.h (prepare_to_access_memory, done_accessing_memory):
8196 Replace macros with function declarations.
8198 2015-11-30 Pedro Alves <palves@redhat.com>
8201 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8202 report TARGET_WAITKIND_NO_RESUMED.
8203 * remote-utils.c (prepare_resume_reply): Handle
8204 TARGET_WAITKIND_NO_RESUMED.
8205 * server.c (report_no_resumed): New global.
8206 (handle_query) <qSupported>: Handle "no-resumed+". Report
8207 "no-resumed+" support.
8208 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8209 return error if the client doesn't support no-resumed events.
8210 (push_stop_notification): New function.
8211 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8212 events if the client supports them.
8214 2015-11-30 Pedro Alves <palves@redhat.com>
8216 * linux-low.c (thread_still_has_status_pending_p): Don't check
8218 (lwp_resumed): New function.
8219 (status_pending_p_callback): Return early if the LWP is not
8220 supposed to be resumed.
8222 2015-11-30 Pedro Alves <palves@redhat.com>
8224 * linux-low.c (handle_extended_wait): Assert that the LWP's
8225 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8226 thread create events, leave the new child's status pending.
8227 (linux_low_filter_event): If GDB wants to hear about thread exit
8228 events, leave the LWP marked dead and don't delete it.
8229 (linux_wait_for_event_filtered): Don't check for thread exit.
8230 (filter_exit_event): New function.
8231 (linux_wait_1): Use it, when returning an exit event.
8232 (linux_resume_one_lwp_throw): Assert that the LWP's
8233 waitstatus is TARGET_WAITKIND_IGNORE.
8234 * remote-utils.c (prepare_resume_reply): Handle
8235 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8236 * server.c (report_thread_events): New global.
8237 (handle_general_set): Handle QThreadEvents.
8238 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8239 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8240 TARGET_WAITKIND_THREAD_EXITED.
8241 * server.h (report_thread_events): Declare.
8243 2015-11-30 Pedro Alves <palves@redhat.com>
8245 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8246 the thread's last_resume_kind was resume_stop.
8248 2015-11-30 Pedro Alves <palves@redhat.com>
8250 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8253 2015-11-30 Pedro Alves <palves@redhat.com>
8255 * server.c (handle_v_requests): Handle vCtrlC.
8257 2015-11-30 Pedro Alves <palves@redhat.com>
8259 * gdbthread.h (find_any_thread_of_pid): Declare.
8260 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8262 * server.c (handle_query): If current_thread is NULL, look for
8263 another thread of the selected process.
8265 2015-11-26 Daniel Colascione <dancol@dancol.org>
8266 Simon Marchi <simon.marchi@ericsson.com>
8268 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8269 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8271 * target.h (struct target_ops) <thread_name>: New field.
8272 (target_thread_name): New macro.
8274 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8276 * regcache.h (regcache_invalidate_pid): Add declaration.
8277 * regcache.c (regcache_invalidate_pid): New function, extracted
8278 from regcache_invalidate.
8279 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8280 Add trivial documentation comment.
8281 * lynx-low.c: Use regcache_invalidate_pid instead of
8282 regcache_invalidate.
8284 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8286 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8287 and Elf64_auxv_t if the target is Android.
8289 2015-11-22 Doug Evans <xdje42@gmail.com>
8291 * target.h: #include <sys/types.h>.
8293 2015-11-19 Pedro Alves <palves@redhat.com>
8295 * linux-low.c (linux_process_qsupported): Change prototype.
8297 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8299 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8300 and adjust to loop over all features.
8301 * server.c (handle_query) <qSupported>: Adjust to call
8302 target_process_qsupported once, passing it a vector of unprocessed
8304 * target.h (struct target_ops) <process_qsupported>: Change
8306 (target_process_qsupported): Adjust.
8308 2015-11-19 Pedro Alves <palves@redhat.com>
8310 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8312 * configure: Regenerate.
8314 2015-11-19 Pedro Alves <palves@redhat.com>
8316 * configure: Regenerate.
8318 2015-11-19 Yao Qi <yao.qi@linaro.org>
8320 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
8323 2015-11-19 Yao Qi <yao.qi@linaro.org>
8325 * linux-aarch64-low.c (enum aarch64_operand_type): New.
8326 (struct aarch64_operand): Move enum out.
8328 2015-11-19 Yao Qi <yao.qi@linaro.org>
8330 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
8331 struct user_fpsimd_state *.
8332 (aarch64_store_fpregset): Likewise.
8334 2015-11-19 Yao Qi <yao.qi@linaro.org>
8336 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
8337 struct user_pt_regs *.
8338 (aarch64_store_gregset): Likewise.
8340 2015-11-18 Pedro Alves <palves@redhat.com>
8342 * Makefile.in (all_object_files): Add $IPA_OBJS.
8344 2015-11-17 Pedro Alves <palves@redhat.com>
8346 * win32-low.c (win32_resume): Use gdb_signal_from_host,
8347 GDB_SIGNAL_0 and gdb_signal_to_string.
8349 2015-11-17 Pedro Alves <palves@redhat.com>
8351 * win32-low.c (handle_output_debug_string): Remove parameter.
8352 (win32_kill): Remove our_status local and adjust call to
8353 handle_output_debug_string.
8354 (get_child_debug_event): Adjust call to
8355 handle_output_debug_string.
8357 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8359 * linux-mips-low.c (mips_fill_gregset): Add cast.
8360 (mips_store_gregset): Likewise.
8361 (mips_fill_fpregset): Likewise.
8362 (mips_store_fpregset): Likewise.
8364 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8366 * linux-mips-low.c (mips_add_watchpoint): Rename private to
8369 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8371 * linux-mips-low.c (mips_linux_new_thread): Change type of
8372 watch_type to enum target_hw_bp_type.
8374 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8376 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
8377 Change return type to arm_hwbp_type.
8379 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8381 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
8382 (arm_store_gregset): Likewise.
8383 * linux-arm-low.c (arm_get_hwcap): Likewise.
8384 (arm_read_description): Likewise.
8386 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8388 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
8390 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8392 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
8393 (ppc_fill_vsxregset): Likewise.
8394 (ppc_store_vsxregset): Likewise.
8395 (ppc_fill_vrregset): Likewise.
8396 (ppc_store_vrregset): Likewise.
8397 (ppc_fill_evrregset): Likewise.
8398 (ppc_store_evrregset): Likewise.
8400 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8402 * linux-ppc-low.c (ppc_usrregs_info): Remove
8403 forward-declaration.
8404 (ppc_arch_setup): Move lower in file.
8406 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
8408 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
8409 (ps_pdwrite): Likewise.
8411 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
8413 * linux-arm-low.c (arm_new_thread): Move pointer dereference
8414 to after assert checks.
8416 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
8418 * proc-service.c (ps_pdread): Add/adjust casts.
8419 (ps_pdwrite): Add/adjust casts.
8421 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8423 * server.c (handle_search_memory_1): Cast return value of
8426 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8428 * server.c (write_qxfer_response): Change type of data to
8431 2015-10-29 Pedro Alves <palves@redhat.com>
8433 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
8435 2015-10-29 Pedro Alves <palves@redhat.com>
8437 * tracepoint.c (clear_installed_tracepoints): Add casts.
8439 2015-10-29 Pedro Alves <palves@redhat.com>
8441 * server.c (handle_v_cont, process_serial_event): Add enum
8442 gdb_signal casts to signal parsing code.
8444 2015-10-29 Pedro Alves <palves@redhat.com>
8446 * linux-low.h (NULL_REGSET): Define.
8447 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8448 * linux-arm-low.c (arm_regsets): Likewise.
8449 * linux-crisv32-low.c (cris_regsets): Likewise.
8450 * linux-m68k-low.c (m68k_regsets): Likewise.
8451 * linux-mips-low.c (mips_regsets): Likewise.
8452 * linux-nios2-low.c (nios2_regsets): Likewise.
8453 * linux-ppc-low.c (ppc_regsets): Likewise.
8454 * linux-s390-low.c (s390_regsets): Likewise.
8455 * linux-sh-low.c (sh_regsets): Likewise.
8456 * linux-sparc-low.c (sparc_regsets): Likewise.
8457 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8458 * linux-tile-low.c (tile_regsets): Likewise.
8459 * linux-x86-low.c (x86_regsets): Likewise.
8460 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8462 2015-10-29 Pedro Alves <palves@redhat.com>
8464 * linux-low.h (NULL_REGSET): Define.
8465 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8466 * linux-arm-low.c (arm_regsets): Likewise.
8467 * linux-crisv32-low.c (cris_regsets): Likewise.
8468 * linux-m68k-low.c (m68k_regsets): Likewise.
8469 * linux-mips-low.c (mips_regsets): Likewise.
8470 * linux-nios2-low.c (nios2_regsets): Likewise.
8471 * linux-ppc-low.c (ppc_regsets): Likewise.
8472 * linux-s390-low.c (s390_regsets): Likewise.
8473 * linux-sh-low.c (sh_regsets): Likewise.
8474 * linux-sparc-low.c (sparc_regsets): Likewise.
8475 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8476 * linux-tile-low.c (tile_regsets): Likewise.
8477 * linux-x86-low.c (x86_regsets): Likewise.
8478 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8480 2015-10-26 Doug Evans <dje@google.com>
8482 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
8484 2015-10-26 Doug Evans <dje@google.com>
8486 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
8488 2015-10-26 Doug Evans <dje@google.com>
8490 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
8492 (attach_thread, find_new_threads_callback): Ditto.
8494 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8496 * mem-break.h (set_breakpoint_data): Remove.
8498 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8500 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
8501 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8502 (initialize_low): Remove set_breakpoint_data call.
8503 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
8504 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
8505 (initialize_low): Remove set_breakpoint_data call.
8506 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
8507 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8508 (initialize_low): Remove set_breakpoint_data call.
8510 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8512 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
8513 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
8514 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
8515 * target.h (target_breakpoint_kind_from_pc): New macro.
8517 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
8519 * linux-low.c (default_breakpoint_kind_from_pc): New function.
8520 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
8521 the default breakpoint kind.
8523 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8525 * linux-arm-low.c (arm_supports_z_point_type): Add software
8528 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8530 * linux-arm-low.c: Refactor breakpoint definitions.
8531 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
8532 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
8534 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8536 * Makefile.in: Add arm.c/o.
8537 * configure.srv: Likewise.
8538 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
8539 (arm_breakpoint_kind_from_pc): New function.
8540 (arm_sw_breakpoint_from_kind): Return proper kind.
8541 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
8543 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8545 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
8547 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
8548 (struct raw_breakpoint) <size>: Remove.
8549 (struct raw_breakpoint) <kind>: Add.
8550 (bp_size): New function.
8551 (bp_opcode): Likewise.
8552 (find_raw_breakpoint_at): Adjust for kind.
8553 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
8554 (remove_memory_breakpoint): Adjust for kind call bp_size.
8555 (set_raw_breakpoint_at): Adjust for kind.
8556 (set_breakpoint): Likewise.
8557 (set_breakpoint_at): Call breakpoint_kind_from_pc.
8558 (delete_raw_breakpoint): Adjust for kind.
8559 (delete_breakpoint): Likewise.
8560 (find_gdb_breakpoint): Likewise.
8561 (set_gdb_breakpoint_1): Likewise.
8562 (set_gdb_breakpoint): Likewise.
8563 (delete_gdb_breakpoint_1): Likewise.
8564 (delete_gdb_breakpoint): Likewise.
8565 (uninsert_raw_breakpoint): Likewise.
8566 (reinsert_raw_breakpoint): Likewise.
8567 (set_breakpoint_data): Remove.
8568 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
8569 (check_mem_read): Adjust for kind call bp_size.
8570 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
8571 (clone_one_breakpoint): Adjust for kind.
8572 * mem-break.h (set_gdb_breakpoint): Likewise.
8573 (delete_gdb_breakpoint): Likewise.
8574 * server.c (process_serial_event): Likewise.
8576 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8578 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
8579 (struct linux_target_ops) <breakpoint>: Remove.
8580 (struct linux_target_ops) <breakpoint_len>: Remove.
8581 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8582 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8583 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
8584 (arm_sw_breakpoint_from_kind): New function.
8585 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
8586 (struct linux_target_ops) <breakpoint>: Remove.
8587 (struct linux_target_ops) <breakpoint_len>: Remove.
8588 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8589 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8590 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
8591 (struct linux_target_ops) <breakpoint>: Remove.
8592 (struct linux_target_ops) <breakpoint_len>: Remove.
8593 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8594 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8595 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
8596 (struct linux_target_ops) <breakpoint>: Remove.
8597 (struct linux_target_ops) <breakpoint_len>: Remove.
8598 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8599 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8600 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
8601 and sw_breakpoint_from_kind to increment the pc.
8602 (linux_breakpoint_kind_from_pc): New function.
8603 (linux_sw_breakpoint_from_kind): New function.
8604 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
8605 (initialize_low): Call breakpoint_kind_from_pc and
8606 sw_breakpoint_from_kind to replace breakpoint_data/len.
8607 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
8609 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
8610 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
8611 (struct linux_target_ops) <breakpoint>: Remove.
8612 (struct linux_target_ops) <breakpoint_len>: Remove.
8613 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8614 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8615 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
8616 (struct linux_target_ops) <breakpoint>: Remove.
8617 (struct linux_target_ops) <breakpoint_len>: Remove.
8618 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8619 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8620 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
8621 (struct linux_target_ops) <breakpoint>: Remove.
8622 (struct linux_target_ops) <breakpoint_len>: Remove.
8623 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8624 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8625 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
8626 (struct linux_target_ops) <breakpoint>: Remove.
8627 (struct linux_target_ops) <breakpoint_len>: Remove.
8628 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8629 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8630 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
8631 (struct linux_target_ops) <breakpoint>: Remove.
8632 (struct linux_target_ops) <breakpoint_len>: Remove.
8633 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8634 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8635 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
8636 (struct linux_target_ops) <breakpoint>: Remove.
8637 (struct linux_target_ops) <breakpoint_len>: Remove.
8638 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8639 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8640 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
8641 (struct linux_target_ops) <breakpoint>: Remove.
8642 (struct linux_target_ops) <breakpoint_len>: Remove.
8643 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8644 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8645 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
8646 (struct linux_target_ops) <breakpoint>: Remove.
8647 (struct linux_target_ops) <breakpoint_len>: Remove.
8648 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8649 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8650 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
8651 (struct linux_target_ops) <breakpoint>: Remove.
8652 (struct linux_target_ops) <breakpoint_len>: Remove.
8653 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8654 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8655 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
8656 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
8657 (struct linux_target_ops) <breakpoint>: Remove.
8658 (struct linux_target_ops) <breakpoint_len>: Remove.
8659 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8660 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8661 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
8662 (struct linux_target_ops) <breakpoint>: Remove.
8663 (struct linux_target_ops) <breakpoint_len>: Remove.
8664 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8665 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8667 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8669 * linux-cris-low.c (cris_get_pc): Remove void arg.
8671 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8673 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
8676 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8678 * inferiors.c (thread_pid_matches_callback): New function.
8679 (find_thread_process): New function.
8680 (remove_thread): Reset current_thread.
8681 (remove_process): Assert threads have been removed first.
8683 2015-10-15 Yao Qi <yao.qi@linaro.org>
8685 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
8687 (aarch64_remove_point): Likewise.
8688 * regcache.c (regcache_register_size): New function.
8690 2015-10-12 Yao Qi <yao.qi@linaro.org>
8692 * linux-aarch64-low.c: Update all callers as emit_load_store
8693 is renamed to aarch64_emit_load_store.
8695 2015-10-12 Yao Qi <yao.qi@linaro.org>
8697 * linux-aarch64-low.c: Update all callers of function renaming
8698 from emit_insn to aarch64_emit_insn.
8700 2015-10-12 Yao Qi <yao.qi@linaro.org>
8702 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
8703 arch/aarch64-insn.h.
8704 (struct aarch64_memory_operand): Likewise.
8706 (emit_insn): Move to arch/aarch64-insn.c.
8707 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
8708 (emit_load_store): Move to arch/aarch64-insn.c.
8709 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
8710 (can_encode_int32): Remove.
8712 2015-10-12 Yao Qi <yao.qi@linaro.org>
8714 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
8715 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
8716 (aarch64_relocate_instruction): Likewise.
8717 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
8718 (struct aarch64_insn_visitor): Likewise.
8720 2015-10-12 Yao Qi <yao.qi@linaro.org>
8722 * linux-aarch64-low.c (struct aarch64_insn_data): New.
8723 (struct aarch64_insn_visitor): New.
8724 (struct aarch64_insn_relocation_data): New.
8725 (aarch64_ftrace_insn_reloc_b): New function.
8726 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8727 (aarch64_ftrace_insn_reloc_cb): Likewise.
8728 (aarch64_ftrace_insn_reloc_tb): Likewise.
8729 (aarch64_ftrace_insn_reloc_adr): Likewise.
8730 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
8731 (aarch64_ftrace_insn_reloc_others): Likewise.
8733 (aarch64_relocate_instruction): Use visitor.
8735 2015-10-12 Yao Qi <yao.qi@linaro.org>
8737 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
8738 int. Add argument buf.
8739 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
8740 aarch64_relocate_instruction.
8742 2015-10-12 Yao Qi <yao.qi@linaro.org>
8744 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
8745 argument insn. Remove local variable insn. Don't call
8747 (aarch64_install_fast_tracepoint_jump_pad): Call
8750 2015-09-30 Yao Qi <yao.qi@linaro.org>
8752 * linux-aarch64-low.c (emit_movk): Shorten a long line.
8753 (emit_load_store_pair): Likewise.
8755 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8757 * dll.c (match_dll): Add cast(s).
8758 (unloaded_dll): Likewise.
8759 * linux-low.c (second_thread_of_pid_p): Likewise.
8760 (delete_lwp_callback): Likewise.
8761 (count_events_callback): Likewise.
8762 (select_event_lwp_callback): Likewise.
8763 (linux_set_resume_request): Likewise.
8764 * server.c (accumulate_file_name_length): Likewise.
8765 (emit_dll_description): Likewise.
8766 (handle_qxfer_threads_worker): Likewise.
8767 (visit_actioned_threads): Likewise.
8768 * thread-db.c (any_thread_of): Likewise.
8769 * tracepoint.c (same_process_p): Likewise.
8770 (match_blocktype): Likewise.
8771 (build_traceframe_info_xml): Likewise.
8773 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8775 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
8777 (gdb_unparse_agent_expr): Likewise.
8778 * hostio.c (require_data): Likewise.
8779 (handle_pread): Likewise.
8780 * linux-low.c (disable_regset): Likewise.
8781 (fetch_register): Likewise.
8782 (store_register): Likewise.
8783 (get_dynamic): Likewise.
8784 (linux_qxfer_libraries_svr4): Likewise.
8785 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
8786 (set_fast_tracepoint_jump): Likewise.
8787 (uninsert_fast_tracepoint_jumps_at): Likewise.
8788 (reinsert_fast_tracepoint_jumps_at): Likewise.
8789 (validate_inserted_breakpoint): Likewise.
8790 (clone_agent_expr): Likewise.
8791 * regcache.c (init_register_cache): Likewise.
8792 * remote-utils.c (putpkt_binary_1): Likewise.
8793 (decode_M_packet): Likewise.
8794 (decode_X_packet): Likewise.
8795 (look_up_one_symbol): Likewise.
8796 (relocate_instruction): Likewise.
8797 (monitor_output): Likewise.
8798 * server.c (handle_search_memory): Likewise.
8799 (handle_qxfer_exec_file): Likewise.
8800 (handle_qxfer_libraries): Likewise.
8801 (handle_qxfer): Likewise.
8802 (handle_query): Likewise.
8803 (handle_v_cont): Likewise.
8804 (handle_v_run): Likewise.
8805 (captured_main): Likewise.
8806 * target.c (write_inferior_memory): Likewise.
8807 * thread-db.c (try_thread_db_load_from_dir): Likewise.
8808 * tracepoint.c (init_trace_buffer): Likewise.
8809 (add_tracepoint_action): Likewise.
8810 (add_traceframe): Likewise.
8811 (add_traceframe_block): Likewise.
8812 (cmd_qtdpsrc): Likewise.
8813 (cmd_qtdv): Likewise.
8814 (cmd_qtstatus): Likewise.
8815 (response_source): Likewise.
8816 (response_tsv): Likewise.
8817 (cmd_qtnotes): Likewise.
8818 (gdb_collect): Likewise.
8819 (initialize_tracepoint): Likewise.
8821 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8823 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
8824 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
8825 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
8827 (enum aarch64_condition_codes): New enum.
8828 (w0): New static global.
8831 (struct aarch64_memory_operand) <type>: New
8832 MEMORY_OPERAND_POSTINDEX type.
8833 (postindex_memory_operand): New helper function.
8834 (emit_ret): New function.
8835 (emit_load_store_pair): New function, factored out of emit_stp
8836 with support for MEMORY_OPERAND_POSTINDEX.
8837 (emit_stp): Rewrite using emit_load_store_pair.
8838 (emit_ldp): New function.
8839 (emit_load_store): Likewise.
8840 (emit_ldr): Mention post-index instruction in comment.
8841 (emit_ldrh): New function.
8842 (emit_ldrb): New function.
8843 (emit_ldrsw): Mention post-index instruction in comment.
8844 (emit_str): Likewise.
8845 (emit_subs): New function.
8846 (emit_cmp): Likewise.
8847 (emit_and): Likewise.
8848 (emit_orr): Likewise.
8849 (emit_orn): Likewise.
8850 (emit_eor): Likewise.
8851 (emit_mvn): Likewise.
8852 (emit_lslv): Likewise.
8853 (emit_lsrv): Likewise.
8854 (emit_asrv): Likewise.
8855 (emit_mul): Likewise.
8856 (emit_sbfm): Likewise.
8857 (emit_sbfx): Likewise.
8858 (emit_ubfm): Likewise.
8859 (emit_ubfx): Likewise.
8860 (emit_csinc): Likewise.
8861 (emit_cset): Likewise.
8862 (emit_nop): Likewise.
8863 (emit_ops_insns): New helper function.
8864 (emit_pop): Likewise.
8865 (emit_push): Likewise.
8866 (aarch64_emit_prologue): New function.
8867 (aarch64_emit_epilogue): Likewise.
8868 (aarch64_emit_add): Likewise.
8869 (aarch64_emit_sub): Likewise.
8870 (aarch64_emit_mul): Likewise.
8871 (aarch64_emit_lsh): Likewise.
8872 (aarch64_emit_rsh_signed): Likewise.
8873 (aarch64_emit_rsh_unsigned): Likewise.
8874 (aarch64_emit_ext): Likewise.
8875 (aarch64_emit_log_not): Likewise.
8876 (aarch64_emit_bit_and): Likewise.
8877 (aarch64_emit_bit_or): Likewise.
8878 (aarch64_emit_bit_xor): Likewise.
8879 (aarch64_emit_bit_not): Likewise.
8880 (aarch64_emit_equal): Likewise.
8881 (aarch64_emit_less_signed): Likewise.
8882 (aarch64_emit_less_unsigned): Likewise.
8883 (aarch64_emit_ref): Likewise.
8884 (aarch64_emit_if_goto): Likewise.
8885 (aarch64_emit_goto): Likewise.
8886 (aarch64_write_goto_address): Likewise.
8887 (aarch64_emit_const): Likewise.
8888 (aarch64_emit_call): Likewise.
8889 (aarch64_emit_reg): Likewise.
8890 (aarch64_emit_pop): Likewise.
8891 (aarch64_emit_stack_flush): Likewise.
8892 (aarch64_emit_zero_ext): Likewise.
8893 (aarch64_emit_swap): Likewise.
8894 (aarch64_emit_stack_adjust): Likewise.
8895 (aarch64_emit_int_call_1): Likewise.
8896 (aarch64_emit_void_call_2): Likewise.
8897 (aarch64_emit_eq_goto): Likewise.
8898 (aarch64_emit_ne_goto): Likewise.
8899 (aarch64_emit_lt_goto): Likewise.
8900 (aarch64_emit_le_goto): Likewise.
8901 (aarch64_emit_gt_goto): Likewise.
8902 (aarch64_emit_ge_got): Likewise.
8903 (aarch64_emit_ops_impl): New static global variable.
8904 (aarch64_emit_ops): New target function, return
8905 &aarch64_emit_ops_impl.
8906 (struct linux_target_ops): Install it.
8908 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8910 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
8911 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
8913 * linux-aarch64-ipa.c: New file.
8914 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
8916 (aarch64_get_thread_area): New target method.
8917 (extract_signed_bitfield): New helper function.
8918 (aarch64_decode_ldr_literal): New function.
8919 (enum aarch64_opcodes): New enum.
8920 (struct aarch64_register): New struct.
8921 (struct aarch64_operand): New struct.
8922 (x0): New static global.
8931 (aarch64_register): New helper function.
8932 (register_operand): Likewise.
8933 (immediate_operand): Likewise.
8934 (struct aarch64_memory_operand): New struct.
8935 (offset_memory_operand): New helper function.
8936 (preindex_memory_operand): Likewise.
8937 (enum aarch64_system_control_registers): New enum.
8938 (ENCODE): New macro.
8939 (emit_insn): New helper function.
8940 (emit_b): New function.
8941 (emit_bcond): Likewise.
8942 (emit_cb): Likewise.
8943 (emit_tb): Likewise.
8944 (emit_blr): Likewise.
8945 (emit_stp): Likewise.
8946 (emit_ldp_q_offset): Likewise.
8947 (emit_stp_q_offset): Likewise.
8948 (emit_load_store): Likewise.
8949 (emit_ldr): Likewise.
8950 (emit_ldrsw): Likewise.
8951 (emit_str): Likewise.
8952 (emit_ldaxr): Likewise.
8953 (emit_stxr): Likewise.
8954 (emit_stlr): Likewise.
8955 (emit_data_processing_reg): Likewise.
8956 (emit_data_processing): Likewise.
8957 (emit_add): Likewise.
8958 (emit_sub): Likewise.
8959 (emit_mov): Likewise.
8960 (emit_movk): Likewise.
8961 (emit_mov_addr): Likewise.
8962 (emit_mrs): Likewise.
8963 (emit_msr): Likewise.
8964 (emit_sevl): Likewise.
8965 (emit_wfe): Likewise.
8966 (append_insns): Likewise.
8967 (can_encode_int32_in): New helper function.
8968 (aarch64_relocate_instruction): New function.
8969 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
8970 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
8971 (struct linux_target_ops): Install aarch64_get_thread_area,
8972 aarch64_install_fast_tracepoint_jump_pad and
8973 aarch64_get_min_fast_tracepoint_insn_len.
8975 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8977 * Makefile.in (aarch64-insn.o): New rule.
8978 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
8980 2015-09-21 Yao Qi <yao.qi@linaro.org>
8982 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
8984 2015-09-21 Yao Qi <yao.qi@linaro.org>
8986 * tracepoint.c (max_jump_pad_size): Remove.
8988 2015-09-18 Yao Qi <yao.qi@linaro.org>
8990 * linux-aarch64-low.c: Don't include sys/uio.h.
8991 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
8993 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
8995 * tracepoint.c (eval_result_type): Change prototype.
8996 (condition_true_at_tracepoint): Fix argument to compiled_cond.
8998 2015-09-15 Pedro Alves <palves@redhat.com>
9000 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9001 Check whether to report exec events instead of checking whether
9002 multiprocess is enabled.
9004 2015-09-15 Pedro Alves <palves@redhat.com>
9007 * remote-utils.c (prepare_resume_reply): Merge
9008 TARGET_WAITKIND_VFORK_DONE switch case with the
9009 TARGET_WAITKIND_FORKED case.
9011 2015-09-15 Yao Qi <yao.qi@linaro.org>
9013 * server.c (handle_query): Check string comparison using
9014 "else if" instead of "if".
9016 2015-09-15 Yao Qi <yao.qi@linaro.org>
9018 * server.c (vCont_supported): New global variable.
9019 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9020 matches. Append ";vContSupported+" to own_buf.
9021 (handle_v_requests): Append ";s;S" to own_buf if target supports
9022 hardware single step or vCont_supported is false.
9023 (capture_main): Set vCont_supported to zero.
9025 2015-09-15 Yao Qi <yao.qi@linaro.org>
9027 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9029 (linux_supports_hardware_single_step): ... New function.
9030 (linux_target_ops): Update.
9031 * lynx-low.c (lynx_target_ops): Set field
9032 supports_hardware_single_step to target_can_do_hardware_single_step.
9033 * nto-low.c (nto_target_ops): Likewise.
9034 * spu-low.c (spu_target_ops): Likewise.
9035 * win32-low.c (win32_target_ops): Likewise.
9036 * target.c (target_can_do_hardware_single_step): New function.
9037 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9038 Remove. <supports_hardware_single_step>: New field.
9039 (target_supports_conditional_breakpoints): Remove.
9040 (target_supports_hardware_single_step): New macro.
9041 (target_can_do_hardware_single_step): Declare.
9042 * server.c (handle_query): Use target_supports_hardware_single_step
9043 instead of target_supports_conditional_breakpoints.
9045 2015-09-15 Yao Qi <yao.qi@linaro.org>
9047 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9049 (struct linux_target_ops the_low_target): Install
9050 aarch64_linux_siginfo_fixup.
9052 2015-09-11 Don Breazeal <donb@codesourcery.com>
9053 Luis Machado <lgustavo@codesourcery.com>
9055 * linux-low.c (linux_mourn): Static declaration.
9056 (linux_arch_setup): Move in front of
9057 handle_extended_wait.
9058 (linux_arch_setup_thread): New function.
9059 (handle_extended_wait): Handle exec events. Call
9060 linux_arch_setup_thread. Make event_lwp argument a
9061 pointer-to-a-pointer.
9062 (check_zombie_leaders): Do not check stopped threads.
9063 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9064 (linux_low_filter_event): Add lwp and thread for exec'ing
9065 non-leader thread if leader thread has been deleted.
9066 Refactor code into linux_arch_setup_thread and call it.
9067 Pass child lwp pointer by reference to handle_extended_wait.
9068 (linux_wait_for_event_filtered): Update comment.
9069 (linux_wait_1): Prevent clobbering exec event status.
9070 (linux_supports_exec_events): New function.
9071 (linux_target_ops) <supports_exec_events>: Initialize new member.
9072 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9074 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9075 * server.c (report_exec_events): New global variable.
9076 (handle_query): Handle qSupported query for exec-events feature.
9077 (captured_main): Initialize report_exec_events.
9078 * server.h (report_exec_events): Declare new global variable.
9079 * target.h (struct target_ops) <supports_exec_events>: New
9081 (target_supports_exec_events): New macro.
9082 * win32-low.c (win32_target_ops) <supports_exec_events>:
9083 Initialize new member.
9085 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9087 * linux-low.c (linux_low_enable_btrace): Remove.
9088 (linux_target_ops): Replace linux_low_enable_btrace with
9089 linux_enable_btrace.
9091 2015-09-03 Yao Qi <yao.qi@linaro.org>
9093 * linux-aarch64-low.c (aarch64_insert_point): Call
9094 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9097 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9099 * linux-low.c (check_stopped_by_breakpoint): Use
9100 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9102 2015-08-27 Pedro Alves <palves@redhat.com>
9104 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9106 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9108 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9109 the XNEW-family equivalent.
9110 (compile_bytecodes): Likewise.
9111 * dll.c (loaded_dll): Likewise.
9112 * event-loop.c (append_callback_event): Likewise.
9113 (create_file_handler): Likewise.
9114 (create_file_event): Likewise.
9115 * hostio.c (handle_open): Likewise.
9116 * inferiors.c (add_thread): Likewise.
9117 (add_process): Likewise.
9118 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9119 * linux-arm-low.c (arm_new_process): Likewise.
9120 (arm_new_thread): Likewise.
9121 * linux-low.c (add_to_pid_list): Likewise.
9122 (linux_add_process): Likewise.
9123 (handle_extended_wait): Likewise.
9124 (add_lwp): Likewise.
9125 (enqueue_one_deferred_signal): Likewise.
9126 (enqueue_pending_signal): Likewise.
9127 (linux_resume_one_lwp_throw): Likewise.
9128 (linux_resume_one_thread): Likewise.
9129 (linux_read_memory): Likewise.
9130 (linux_write_memory): Likewise.
9131 * linux-mips-low.c (mips_linux_new_process): Likewise.
9132 (mips_linux_new_thread): Likewise.
9133 (mips_add_watchpoint): Likewise.
9134 * linux-x86-low.c (initialize_low_arch): Likewise.
9135 * lynx-low.c (lynx_add_process): Likewise.
9136 * mem-break.c (set_raw_breakpoint_at): Likewise.
9137 (set_breakpoint): Likewise.
9138 (add_condition_to_breakpoint): Likewise.
9139 (add_commands_to_breakpoint): Likewise.
9140 (clone_agent_expr): Likewise.
9141 (clone_one_breakpoint): Likewise.
9142 * regcache.c (new_register_cache): Likewise.
9143 * remote-utils.c (look_up_one_symbol): Likewise.
9144 * server.c (queue_stop_reply): Likewise.
9145 (start_inferior): Likewise.
9146 (queue_stop_reply_callback): Likewise.
9147 (handle_target_event): Likewise.
9148 * spu-low.c (fetch_ppc_memory): Likewise.
9149 (store_ppc_memory): Likewise.
9150 * target.c (set_target_ops): Likewise.
9151 * thread-db.c (thread_db_load_search): Likewise.
9152 (try_thread_db_load_1): Likewise.
9153 * tracepoint.c (add_tracepoint): Likewise.
9154 (add_tracepoint_action): Likewise.
9155 (create_trace_state_variable): Likewise.
9156 (cmd_qtdpsrc): Likewise.
9157 (cmd_qtro): Likewise.
9158 (add_while_stepping_state): Likewise.
9159 * win32-low.c (child_add_thread): Likewise.
9160 (get_image_name): Likewise.
9162 2015-08-25 Yao Qi <yao.qi@linaro.org>
9164 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9166 2015-08-25 Yao Qi <yao.qi@linaro.org>
9168 * Makefile.in (aarch64-linux.o): New rule.
9169 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9171 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9172 (aarch64_init_debug_reg_state): Make it extern.
9173 (aarch64_linux_prepare_to_resume): Remove.
9175 2015-08-25 Yao Qi <yao.qi@linaro.org>
9177 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9178 lwp_arch_private_info and ptid_of_lwp.
9180 2015-08-25 Yao Qi <yao.qi@linaro.org>
9182 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9183 Find proc_info by find_process_pid. All callers updated.
9185 2015-08-25 Yao Qi <yao.qi@linaro.org>
9187 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9189 (debug_reg_change_callback): Remove.
9190 (aarch64_notify_debug_reg_change): Remove.
9192 2015-08-25 Yao Qi <yao.qi@linaro.org>
9194 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9195 Call current_lwp_ptid.
9197 2015-08-25 Yao Qi <yao.qi@linaro.org>
9199 * linux-aarch64-low.c (debug_reg_change_callback): Use
9202 2015-08-25 Yao Qi <yao.qi@linaro.org>
9204 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9206 2015-08-25 Yao Qi <yao.qi@linaro.org>
9208 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9210 2015-08-25 Yao Qi <yao.qi@linaro.org>
9212 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9215 2015-08-25 Yao Qi <yao.qi@linaro.org>
9217 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9219 (debug_reg_change_callback): Remove argument entry and add argument
9220 lwp. Remove local variable thread. Don't print thread id in the
9221 debugging output. Don't check whether pid of thread equals to pid.
9222 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9223 iterate_over_lwps instead find_inferior.
9225 2015-08-24 Pedro Alves <palves@redhat.com>
9227 * inferiors.c (get_first_process): New function.
9228 * inferiors.h (get_first_process): New declaration.
9229 * remote-utils.c (read_ptid): Default to the first process in the
9230 list, instead of to the current thread's process.
9232 2015-08-24 Pedro Alves <palves@redhat.com>
9234 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9235 * event-loop.c: Likewise.
9236 * remote-utils.c: Likewise.
9237 * tracepoint.c: Likewise.
9239 2015-08-24 Pedro Alves <palves@redhat.com>
9241 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9244 2015-08-21 Pedro Alves <palves@redhat.com>
9246 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9247 instead of literal 1.
9249 2015-08-21 Pedro Alves <palves@redhat.com>
9251 * tdesc.c (default_description): Explicitly zero-initialize.
9253 2015-08-21 Pedro Alves <palves@redhat.com>
9256 * inferiors.c (remove_thread): Discard any pending stop reply for
9258 * server.c (remove_all_on_match_pid): Rename to ...
9259 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9261 (discard_queued_stop_replies): Change parameter to a ptid. Now
9263 (handle_v_kill, kill_inferior_callback, captured_main)
9264 (process_serial_event): Adjust.
9265 * server.h (discard_queued_stop_replies): Declare.
9267 2015-08-21 Pedro Alves <palves@redhat.com>
9269 * linux-low.c (wait_for_sigstop): Always switch to no thread
9270 selected if the previously current thread dies.
9271 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9272 process instead of the current thread's.
9273 * remote-utils.c (input_interrupt): Don't check if there's no
9275 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9276 current thread to the general thread fails, error out.
9277 (handle_qxfer_auxv, handle_qxfer_libraries)
9278 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9279 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9280 (handle_query): Check if there's a thread selected instead of
9281 checking whether there's any thread in the thread list.
9282 (handle_qxfer_threads, handle_qxfer_btrace)
9283 (handle_qxfer_btrace_conf): Don't error out early if there's no
9284 thread in the thread list.
9285 (handle_v_cont, myresume): Don't set the current thread to the
9287 (process_serial_event) <Hg handling>: Also set thread_id if the
9288 previous general thread is still alive.
9289 (process_serial_event) <g/G handling>: If setting the current
9290 thread to the general thread fails, error out.
9291 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9292 thread's lwp instead of the current thread's.
9293 * target.c (set_desired_thread): If the desired thread was not
9294 found, leave the current thread pointing to NULL. Return an int
9295 (boolean) indicating success.
9296 * target.h (set_desired_thread): Change return type to int.
9298 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9300 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9301 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9303 (ps_get_thread_area): New function.
9305 2015-08-19 Gary Benson <gbenson@redhat.com>
9307 * hostio.c (handle_pread): Do not attempt to read more data
9308 than hostio_reply_with_data can fit in a packet.
9310 2015-08-18 Joel Brobecker <brobecker@adacore.com>
9312 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9314 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9316 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9318 2015-08-06 Pedro Alves <palves@redhat.com>
9320 * tracepoint.c (expr_eval_result): Now an int.
9322 2015-08-06 Pedro Alves <palves@redhat.com>
9324 * gdbthread.h (struct regcache): Forward declare.
9325 (struct thread_info) <regcache_data>: Now a struct regcache
9327 * inferiors.c (inferior_regcache_data)
9328 (set_inferior_regcache_data): Now work with struct regcache
9330 * inferiors.h (struct regcache): Forward declare.
9331 (inferior_regcache_data, set_inferior_regcache_data): Now work
9332 with struct regcache pointers.
9333 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
9334 (free_register_cache_thread): Remove struct regcache pointer
9337 2015-08-06 Pedro Alves <palves@redhat.com>
9339 * server.c (captured_main): On error, print the exception message
9340 to stderr, and if run_once is set, throw a quit.
9342 2015-08-06 Pedro Alves <palves@redhat.com>
9344 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
9347 2015-08-06 Pedro Alves <palves@redhat.com>
9349 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
9350 reading beyond the passed in buffer length.
9352 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
9354 * tracepoint.c (symbol_list) <required>: Remove.
9356 2015-08-06 Pedro Alves <palves@redhat.com>
9358 * linux-low.c (handle_extended_wait): Set the fork child's suspend
9359 count if stopping and suspending threads.
9360 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
9361 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
9362 (linux_detach): Complete an ongoing step-over.
9363 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
9365 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
9366 (linux_wait_1): If passing a signal to the inferior after
9367 finishing a step-over, unsuspend and re-resume all lwps. If we
9368 see a single-step event but the thread should be continuing, don't
9369 pass the trap to gdb.
9370 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
9371 internal_error instead of gdb_assert.
9372 (enqueue_pending_signal): New function.
9373 (check_ptrace_stopped_lwp_gone): Add debug output.
9374 (start_step_over): Use internal_error instead of gdb_assert.
9375 (complete_ongoing_step_over): New function.
9376 (linux_resume_one_thread): Don't resume a suspended thread.
9377 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
9380 2015-08-06 Pedro Alves <palves@redhat.com>
9382 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
9383 (linux_thread_alive): Use lwp_is_marked_dead.
9384 (extended_event_reported): Delete.
9385 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
9386 instead of extended_event_reported.
9387 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
9389 (lwp_is_marked_dead): New function.
9390 (lwp_running): Use lwp_is_marked_dead.
9391 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
9394 2015-08-06 Pedro Alves <palves@redhat.com>
9396 * linux-low.c (linux_wait_1): Move fork event output out of the
9397 !report_to_gdb check. Pass event_child->waitstatus to
9398 target_waitstatus_to_string instead of ourstatus.
9400 2015-08-04 Yao Qi <yao.qi@linaro.org>
9402 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
9403 if current_thread is 32 bit.
9405 2015-08-04 Yao Qi <yao.qi@linaro.org>
9407 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9408 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9409 * server.c (extended_protocol): Remove "static".
9410 * server.h (extended_protocol): Declare it.
9412 2015-08-04 Yao Qi <yao.qi@linaro.org>
9414 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
9415 both aarch64 and aarch32.
9416 (aarch64_set_pc): Likewise.
9418 2015-08-04 Yao Qi <yao.qi@linaro.org>
9420 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
9421 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
9422 arm-with-neon.xml to srv_xmlfiles.
9423 * linux-aarch64-low.c: Include linux-aarch32-low.h.
9424 (is_64bit_tdesc): New function.
9425 (aarch64_linux_read_description): New function.
9426 (aarch64_arch_setup): Call aarch64_linux_read_description.
9427 (regs_info): Rename to regs_info_aarch64.
9428 (aarch64_regs_info): Return right regs_info.
9429 (initialize_low_arch): Call initialize_low_arch_aarch32.
9431 2015-08-04 Yao Qi <yao.qi@linaro.org>
9433 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
9434 * linux-aarch32-low.c: New file.
9435 * linux-aarch32-low.h: New file.
9436 * linux-arm-low.c (arm_fill_gregset): Move it to
9437 linux-aarch32-low.c.
9438 (arm_store_gregset): Likewise.
9439 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
9440 (arm_store_vfpregset): Call arm_store_vfpregset_num.
9441 (arm_arch_setup): Check if PTRACE_GETREGSET works.
9442 (regs_info): Rename to regs_info_arm.
9443 (arm_regs_info): Return regs_info_aarch32 if
9444 have_ptrace_getregset is 1 and target description is
9445 arm_with_neon or arm_with_vfpv3.
9446 (initialize_low_arch): Don't call init_registers_arm_with_neon.
9447 Call initialize_low_arch_aarch32 instead.
9449 2015-08-04 Yao Qi <yao.qi@linaro.org>
9451 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
9452 * linux-low.c: ... here.
9453 * linux-low.h (have_ptrace_getregset): Declare it.
9455 2015-08-04 Pedro Alves <palves@redhat.com>
9457 * thread-db.c (struct thread_db): Use new typedefs.
9458 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
9460 (disable_thread_event_reporting): Cast result of dlsym to
9461 destination function pointer type.
9462 (thread_db_mourn): Use td_ta_delete_ftype.
9464 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
9466 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
9468 (CDX_BREAKPOINT): Define for R2.
9469 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
9470 (the_low_target): Add comments.
9472 2015-07-30 Yao Qi <yao.qi@linaro.org>
9474 * linux-arm-low.c (arm_hwcap): Remove it.
9475 (arm_read_description): New local variable arm_hwcap. Don't
9476 set arm_hwcap to zero.
9478 2015-07-30 Yao Qi <yao.qi@linaro.org>
9480 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
9481 Use regcache->tdesc instead.
9482 (arm_store_wmmxregset): Likewise.
9483 (arm_fill_vfpregset): Likewise.
9484 (arm_store_vfpregset): Likewise.
9486 2015-07-30 Yao Qi <yao.qi@linaro.org>
9488 * linux-arm-low.c: Include arch/arm.h.
9489 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
9490 (arm_store_gregset): Likewise.
9492 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
9494 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
9495 ptrace's 4th parameter.
9497 2015-07-27 Yao Qi <yao.qi@linaro.org>
9499 * configure.srv (case aarch64*-*-linux*): Don't set
9502 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
9504 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
9506 * linux-arm-low.c: Likewise.
9507 * linux-cris-low.c: Likewise.
9508 * linux-crisv32-low.c: Likewise.
9509 * linux-low.c: Likewise.
9510 * linux-m68k-low.c: Likewise.
9511 * linux-mips-low.c: Likewise.
9512 * linux-nios2-low.c: Likewise.
9513 * linux-s390-low.c: Likewise.
9514 * linux-sparc-low.c: Likewise.
9515 * linux-tic6x-low.c: Likewise.
9516 * linux-tile-low.c: Likewise.
9517 * linux-x86-low.c: Likewise.
9519 2015-07-24 Pedro Alves <palves@redhat.com>
9521 * config.in: Regenerate.
9522 * configure: Regenerate.
9524 2015-07-24 Pedro Alves <palves@redhat.com>
9526 * acinclude.m4: Include ../ptrace.m4.
9527 * configure.ac: Call GDB_AC_PTRACE.
9528 * config.in, configure: Regenerate.
9530 2015-07-24 Yao Qi <yao.qi@linaro.org>
9532 * linux-low.c (linux_create_inferior): Remove setting to
9533 proc->priv->new_inferior.
9534 (linux_attach): Likewise.
9535 (linux_low_filter_event): Likewise.
9536 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
9538 2015-07-24 Yao Qi <yao.qi@linaro.org>
9540 * linux-low.c (linux_arch_setup): New function.
9541 (linux_low_filter_event): If proc->tdesc is NULL and
9542 proc->attached is true, call the_low_target.arch_setup.
9543 Otherwise, keep status pending, and return.
9544 (linux_resume_one_lwp_throw): Don't call get_pc if
9545 thread->while_stepping isn't NULL. Don't call
9546 get_thread_regcache if proc->tdesc is NULL.
9547 (need_step_over_p): Return 0 if proc->tdesc is NULL.
9548 (linux_target_ops): Install arch_setup.
9549 * server.c (start_inferior): Call the_target->arch_setup.
9550 * target.h (struct target_ops) <arch_setup>: New field.
9551 (target_arch_setup): New marco.
9552 * lynx-low.c (lynx_target_ops): Update.
9553 * nto-low.c (nto_target_ops): Update.
9554 * spu-low.c (spu_target_ops): Update.
9555 * win32-low.c (win32_target_ops): Update.
9557 2015-07-24 Yao Qi <yao.qi@linaro.org>
9559 * linux-low.c (linux_add_process): Don't set
9560 proc->priv->new_inferior.
9561 (linux_create_inferior): Set proc->priv->new_inferior to 1.
9562 (linux_attach): Likewise.
9564 2015-07-24 Yao Qi <yao.qi@linaro.org>
9566 * server.c (start_inferior): Code refactor.
9568 2015-07-24 Yao Qi <yao.qi@linaro.org>
9570 * server.c (process_serial_event): Set general_thread.
9572 2015-07-21 Yao Qi <yao.qi@linaro.org>
9574 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
9575 aarch64_linux_get_debug_reg_capacity.
9577 2015-07-17 Yao Qi <yao.qi@linaro.org>
9579 * Makefile.in (aarch64-linux-hw-point.o): New rule.
9580 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
9581 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
9582 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
9583 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
9584 (AARCH64_HWP_ALIGNMENT): Likewise.
9585 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
9586 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
9587 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
9588 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
9589 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
9590 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
9591 (struct aarch64_debug_reg_state): Likewise.
9592 (struct arch_lwp_info): Likewise.
9593 (aarch64_align_watchpoint): Likewise.
9594 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
9595 (aarch64_watchpoint_length): Likewise.
9596 (aarch64_point_encode_ctrl_reg): Likewise
9597 (aarch64_point_is_aligned): Likewise.
9598 (aarch64_align_watchpoint): Likewise.
9599 (aarch64_linux_set_debug_regs):
9600 (aarch64_dr_state_insert_one_point): Likewise.
9601 (aarch64_dr_state_remove_one_point): Likewise.
9602 (aarch64_handle_breakpoint): Likewise.
9603 (aarch64_handle_aligned_watchpoint): Likewise.
9604 (aarch64_handle_unaligned_watchpoint): Likewise.
9605 (aarch64_handle_watchpoint): Likewise.
9607 2015-07-17 Yao Qi <yao.qi@linaro.org>
9609 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
9610 and don't aarch64_get_debug_reg_state. All callers update.
9611 (aarch64_handle_aligned_watchpoint): Likewise.
9612 (aarch64_handle_unaligned_watchpoint): Likewise.
9613 (aarch64_handle_watchpoint): Likewise.
9614 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
9615 (aarch64_remove_point): Likewise.
9617 2015-07-17 Yao Qi <yao.qi@linaro.org>
9619 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
9621 (aarch64_handle_unaligned_watchpoint): Likewise.
9623 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9625 Revert the previous 3 commits:
9626 Move gdb_regex* to common/
9627 Move linux_find_memory_regions_full & co.
9628 gdbserver build-id attribute generator
9630 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9631 Jan Kratochvil <jan.kratochvil@redhat.com>
9633 gdbserver build-id attribute generator.
9634 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
9635 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
9636 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
9638 (get_dynamic): Use find_pdhr to traverse program headers.
9639 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
9640 (compare_mapping_entry_range, struct find_memory_region_callback_data)
9641 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
9642 (get_hex_build_id): New.
9643 (linux_qxfer_libraries_svr4): Add optional build-id attribute
9644 to reply XML document.
9646 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9647 Jan Kratochvil <jan.kratochvil@redhat.com>
9649 * target.c: Include target/target-utils.h and fcntl.h.
9650 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
9651 (target_fileio_read_stralloc): New functions.
9653 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9655 * Makefile.in (OBS): Add gdb_regex.o.
9657 * config.in: Rebuilt.
9658 * configure: Rebuilt.
9660 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9661 Jan Kratochvil <jan.kratochvil@redhat.com>
9663 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
9664 * Makefile.in (OBS): Add target-utils.o.
9665 (linux-maps.o, target-utils.o): New.
9666 * configure.srv (srv_linux_obj): Add linux-maps.o.
9668 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
9670 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
9672 (the_low_target): Install it.
9674 2015-07-14 Pedro Alves <palves@redhat.com>
9676 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
9677 Instead, ignore ECHILD, and throw an error for other errnos.
9679 2015-07-10 Pedro Alves <palves@redhat.com>
9681 * event-loop.c (struct callback_event) <data>: Change type to
9682 gdb_client_data instance instead of gdb_client_data pointer.
9683 (append_callback_event): Adjust.
9685 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
9687 * linux-aarch64-low.c: Add comments for each linux_target_ops
9688 method. Remove comments already covered in target_ops and
9689 linux_target_ops definitions.
9690 (the_low_target): Add comments for each unimplemented method.
9692 2015-07-09 Yao Qi <yao.qi@linaro.org>
9694 * linux-aarch64-low.c (aarch64_regmap): Remove.
9695 (aarch64_usrregs_info): Remove.
9696 (regs_info): Set field usrregs to NULL.
9698 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
9700 * linux-low.c: Include "rsp-low.h"
9701 (linux_low_encode_pt_config, linux_low_encode_raw): New.
9702 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
9703 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
9704 (handle_btrace_enable_pt): New.
9705 (handle_btrace_general_set): Support "pt".
9706 (handle_btrace_conf_general_set): Support "pt:size".
9708 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9710 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
9713 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9715 * linux-aarch64-low.c: Remove comment about endianness.
9716 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
9717 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
9720 2015-06-24 Gary Benson <gbenson@redhat.com>
9722 * linux-i386-ipa.c (stdint.h): Do not include.
9723 * lynx-i386-low.c (stdint.h): Likewise.
9724 * lynx-ppc-low.c (stdint.h): Likewise.
9725 * mem-break.c (stdint.h): Likewise.
9726 * thread-db.c (stdint.h): Likewise.
9727 * tracepoint.c (stdint.h): Likewise.
9728 * win32-low.c (stdint.h): Likewise.
9730 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
9732 * server.c (write_qxfer_response): Update call to
9733 remote_escape_output.
9735 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
9736 Jan Kratochvil <jan.kratochvil@redhat.com>
9738 Merge multiple hex conversions.
9739 * gdbreplay.c (tohex): Rename to 'fromhex'.
9740 (logchar): Use fromhex.
9742 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9744 * server.c (handle_qxfer_libraries): Set `version' attribute for
9747 2015-06-10 Gary Benson <gbenson@redhat.com>
9749 * target.h (struct target_ops) <multifs_open>: New field.
9750 <multifs_unlink>: Likewise.
9751 <multifs_readlink>: Likewise.
9752 * linux-low.c (nat/linux-namespaces.h): New include.
9753 (linux_target_ops): Initialize the_target->multifs_open,
9754 the_target->multifs_unlink and the_target->multifs_readlink.
9755 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
9756 * hostio.c (hostio_fs_pid): New static variable.
9757 (hostio_handle_new_gdb_connection): New function.
9758 (handle_setfs): Likewise.
9759 (handle_open): Use the_target->multifs_open as appropriate.
9760 (handle_unlink): Use the_target->multifs_unlink as appropriate.
9761 (handle_readlink): Use the_target->multifs_readlink as
9763 (handle_vFile): Handle vFile:setfs packets.
9764 * server.c (handle_query): Call hostio_handle_new_gdb_connection
9765 after target_handle_new_gdb_connection.
9767 2015-06-10 Gary Benson <gbenson@redhat.com>
9769 * configure.ac (AC_CHECK_FUNCS): Add setns.
9770 * config.in: Regenerate.
9771 * configure: Likewise.
9772 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
9773 (linux-namespaces.o): New rule.
9774 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
9776 2015-06-09 Gary Benson <gbenson@redhat.com>
9778 * hostio.c (handle_open): Process mode argument with
9779 fileio_to_host_mode.
9781 2015-06-01 Yao Qi <yao.qi@linaro.org>
9783 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9784 * linux-x86-low.c: Likewise.
9786 2015-05-28 Don Breazeal <donb@codesourcery.com>
9788 * linux-low.c (handle_extended_wait): Initialize
9789 thread_info.last_resume_kind for new fork children.
9791 2015-05-15 Pedro Alves <palves@redhat.com>
9793 * target.h (target_handle_new_gdb_connection): Rewrite using if
9794 wrapped in do/while.
9796 2015-05-14 Joel Brobecker <brobecker@adacore.com>
9798 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
9799 * configure, config.in: Regenerate.
9800 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
9803 2015-05-12 Don Breazeal <donb@codesourcery.com>
9805 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
9806 PTRACE_EVENT_VFORK_DONE.
9807 (linux_low_ptrace_options, extended_event_reported): Add vfork
9809 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
9810 and "vforkdone" for RSP 'T' Stop Reply Packet.
9811 * server.h (report_vfork_events): Declare
9814 2015-05-12 Don Breazeal <donb@codesourcery.com>
9816 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
9817 (the_low_target) <new_fork>: Initialize new member.
9818 * linux-arm-low.c (arm_new_fork): New function.
9819 (the_low_target) <new_fork>: Initialize new member.
9820 * linux-low.c (handle_extended_wait): Call new target function
9822 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
9823 * linux-mips-low.c (mips_add_watchpoint): New function
9824 extracted from mips_insert_point.
9825 (the_low_target) <new_fork>: Initialize new member.
9826 (mips_linux_new_fork): New function.
9827 (mips_insert_point): Call mips_add_watchpoint.
9828 * linux-x86-low.c (x86_linux_new_fork): New function.
9829 (the_low_target) <new_fork>: Initialize new member.
9831 2015-05-12 Don Breazeal <donb@codesourcery.com>
9833 * linux-low.c (handle_extended_wait): Implement return value,
9834 rename argument 'event_child' to 'event_lwp', handle
9835 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
9836 (linux_low_ptrace_options): New function.
9837 (linux_low_filter_event): Call linux_low_ptrace_options,
9838 use different argument fo linux_enable_event_reporting,
9839 use return value from handle_extended_wait.
9840 (extended_event_reported): New function.
9841 (linux_wait_1): Call extended_event_reported and set
9842 status to report fork events.
9843 (linux_write_memory): Add pid to debug message.
9844 (reset_lwp_ptrace_options_callback): New function.
9845 (linux_handle_new_gdb_connection): New function.
9846 (linux_target_ops): Initialize new structure member.
9847 * linux-low.h (struct lwp_info) <waitstatus>: New member.
9848 * lynx-low.c: Initialize new structure member.
9849 * remote-utils.c (prepare_resume_reply): Implement stop reason
9850 "fork" for "T" stop message.
9851 * server.c (handle_query): Call handle_new_gdb_connection.
9852 * server.h (report_fork_events): Declare global flag.
9853 * target.h (struct target_ops) <handle_new_gdb_connection>:
9855 (target_handle_new_gdb_connection): New macro.
9856 * win32-low.c: Initialize new structure member.
9858 2015-05-12 Don Breazeal <donb@codesourcery.com>
9860 * mem-break.c (APPEND_TO_LIST): Define macro.
9861 (clone_agent_expr): New function.
9862 (clone_one_breakpoint): New function.
9863 (clone_all_breakpoints): New function.
9864 * mem-break.h: Declare new functions.
9866 2015-05-12 Don Breazeal <donb@codesourcery.com>
9868 * linux-low.c (linux_supports_fork_events): New function.
9869 (linux_supports_vfork_events): New function.
9870 (linux_target_ops): Initialize new structure members.
9871 (initialize_low): Call linux_check_ptrace_features.
9872 * lynx-low.c (lynx_target_ops): Initialize new structure
9874 * server.c (report_fork_events, report_vfork_events):
9876 (handle_query): Add new features to qSupported packet and
9878 (captured_main): Initialize new global variables.
9879 * target.h (struct target_ops) <supports_fork_events>:
9881 <supports_vfork_events>: New member.
9882 (target_supports_fork_events): New macro.
9883 (target_supports_vfork_events): New macro.
9884 * win32-low.c (win32_target_ops): Initialize new structure
9887 2015-05-12 Gary Benson <gbenson@redhat.com>
9889 * server.c (handle_qxfer_exec_file): Use current process
9892 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9894 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
9895 Remove HAVE_PTRACE_GETREGS conditionals.
9896 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
9897 instead of PTRACE_GETREGS and PTRACE_SETREGS.
9899 2015-05-08 Yao Qi <yao.qi@linaro.org>
9901 * linux-low.c (linux_supports_conditional_breakpoints): New
9903 (linux_target_ops): Install new target method.
9904 * lynx-low.c (lynx_target_ops): Install NULL hook for
9905 supports_conditional_breakpoints.
9906 * nto-low.c (nto_target_ops): Likewise.
9907 * spu-low.c (spu_target_ops): Likewise.
9908 * win32-low.c (win32_target_ops): Likewise.
9909 * server.c (handle_query): Check
9910 target_supports_conditional_breakpoints.
9911 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9913 (target_supports_conditional_breakpoints): New macro.
9915 2015-05-06 Pedro Alves <palves@redhat.com>
9918 * server.c (start_inferior): If the process exits, mourn it.
9920 2015-04-21 Gary Benson <gbenson@redhat.com>
9922 * hostio.c (fileio_open_flags_to_host): Factored out to
9923 fileio_to_host_openflags in common/fileio.c. Single use
9926 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9928 * linux-xtensa-low.c (xtensa_fill_gregset)
9929 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
9932 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9934 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
9935 (regs_info): Replace usrregs pointer with NULL.
9937 2015-04-17 Gary Benson <gbenson@redhat.com>
9939 * target.h (struct target_ops) <pid_to_exec_file>: New field.
9940 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
9941 * server.c (handle_qxfer_exec_file): New function.
9942 (qxfer_packets): Add exec-file entry.
9943 (handle_query): Report qXfer:exec-file:read as supported packet.
9945 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
9947 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
9949 2015-04-09 Gary Benson <gbenson@redhat.com>
9951 * hostio-errno.c (errno_to_fileio_error): Remove function.
9952 Update caller to use remote_fileio_to_fio_error.
9954 2015-04-09 Yao Qi <yao.qi@linaro.org>
9956 * linux-low.c (linux_insert_point): Call
9957 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
9958 (linux_remove_point): Call remove_memory_breakpoint if type is
9960 * linux-x86-low.c (x86_insert_point): Don't call
9961 insert_memory_breakpoint.
9962 (x86_remove_point): Don't call remove_memory_breakpoint.
9964 2015-04-01 Pedro Alves <palves@redhat.com>
9965 Cleber Rosa <crosa@redhat.com>
9967 * server.c (gdbserver_usage): Reorganize and extend the usage
9970 2015-03-24 Pedro Alves <palves@redhat.com>
9972 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
9973 output. Also dump TRAP_TRACE.
9974 (linux_low_filter_event): In debug output, distinguish a
9975 resume_stop SIGSTOP from a delayed SIGSTOP.
9977 2015-03-24 Gary Benson <gbenson@redhat.com>
9979 * linux-x86-low.c (x86_linux_new_thread): Moved to
9981 (x86_linux_prepare_to_resume): Likewise.
9983 2015-03-24 Gary Benson <gbenson@redhat.com>
9985 * Makefile.in (x86-linux-dregs.o): New rule.
9986 * configure.srv: Add x86-linux-dregs.o to relevant targets.
9987 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
9988 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9989 (x86_linux_dr_get): Likewise.
9990 (x86_linux_dr_set): Likewise.
9991 (update_debug_registers_callback): Likewise.
9992 (x86_linux_dr_set_addr): Likewise.
9993 (x86_linux_dr_get_addr): Likewise.
9994 (x86_linux_dr_set_control): Likewise.
9995 (x86_linux_dr_get_control): Likewise.
9996 (x86_linux_dr_get_status): Likewise.
9997 (x86_linux_update_debug_registers): Likewise.
9999 2015-03-24 Gary Benson <gbenson@redhat.com>
10001 * linux-x86-low.c (x86_linux_update_debug_registers):
10002 New function, factored out from...
10003 (x86_linux_prepare_to_resume): ...this.
10005 2015-03-24 Gary Benson <gbenson@redhat.com>
10007 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10008 (x86_linux_dr_set): Likewise.
10009 (update_debug_registers_callback): Likewise.
10010 (x86_linux_dr_set_addr): Likewise.
10011 (x86_linux_dr_get_addr): Likewise.
10012 (x86_linux_dr_set_control): Likewise.
10013 (x86_linux_dr_get_control): Likewise.
10014 (x86_linux_dr_get_status): Likewise.
10015 (x86_linux_prepare_to_resume): Likewise.
10017 2015-03-24 Gary Benson <gbenson@redhat.com>
10019 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10020 Use perror_with_name. Pass string through gettext.
10021 (x86_linux_dr_set): Likewise.
10023 2015-03-24 Gary Benson <gbenson@redhat.com>
10025 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10026 (x86_linux_dr_set_addr): ...this.
10027 (x86_dr_low_get_addr): Rename to...
10028 (x86_linux_dr_get_addr): ...this.
10029 (x86_dr_low_set_control): Rename to...
10030 (x86_linux_dr_set_control): ...this.
10031 (x86_dr_low_get_control): Rename to...
10032 (x86_linux_dr_get_control): ...this.
10033 (x86_dr_low_get_status): Rename to...
10034 (x86_linux_dr_get_status): ...this.
10035 (x86_dr_low): Update with new function names.
10037 2015-03-24 Gary Benson <gbenson@redhat.com>
10039 * Makefile.in (x86-linux.o): New rule.
10040 * configure.srv: Add x86-linux.o to relevant targets.
10041 * linux-low.c (lwp_set_arch_private_info): New function.
10042 (lwp_arch_private_info): Likewise.
10043 * linux-x86-low.c: Include nat/x86-linux.h.
10044 (arch_lwp_info): Removed structure.
10045 (update_debug_registers_callback):
10046 Use lwp_set_debug_registers_changed.
10047 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10048 and lwp_set_debug_registers_changed.
10049 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10051 2015-03-24 Gary Benson <gbenson@redhat.com>
10053 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10054 * linux-arm-low.c (arm_new_thread): Likewise.
10055 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10056 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10057 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10058 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10060 2015-03-24 Gary Benson <gbenson@redhat.com>
10062 * linux-low.c (ptid_of_lwp): New function.
10063 (lwp_is_stopped): Likewise.
10064 (lwp_stop_reason): Likewise.
10065 * linux-x86-low.c (update_debug_registers_callback):
10066 Use lwp_is_stopped.
10067 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10070 2015-03-24 Gary Benson <gbenson@redhat.com>
10072 * linux-low.h (linux_stop_lwp): Remove declaration.
10074 2015-03-24 Gary Benson <gbenson@redhat.com>
10076 * linux-low.h: Include nat/linux-nat.h.
10077 * linux-low.c (iterate_over_lwps_args): New structure.
10078 (iterate_over_lwps_filter): New function.
10079 (iterate_over_lwps): Likewise.
10080 * linux-x86-low.c (update_debug_registers_callback):
10081 Update signature to what iterate_over_lwps expects.
10082 Remove PID check that iterate_over_lwps now performs.
10083 (x86_dr_low_set_addr): Use iterate_over_lwps.
10084 (x86_dr_low_set_control): Likewise.
10086 2015-03-24 Gary Benson <gbenson@redhat.com>
10088 * linux-x86-low.c (x86_debug_reg_state): New function.
10089 (x86_linux_prepare_to_resume): Use the above.
10091 2015-03-24 Gary Benson <gbenson@redhat.com>
10093 * linux-low.c (current_lwp_ptid): New function.
10094 * linux-x86-low.c: Include nat/linux-nat.h.
10095 (x86_dr_low_get_addr): Use current_lwp_ptid.
10096 (x86_dr_low_get_control): Likewise.
10097 (x86_dr_low_get_status): Likewise.
10099 2015-03-20 Pedro Alves <palves@redhat.com>
10101 * tracepoint.c (cmd_qtstatus): Make "str" const.
10103 2015-03-20 Pedro Alves <palves@redhat.com>
10105 * server.c (handle_general_set): Make "req_str" const.
10107 2015-03-19 Pedro Alves <palves@redhat.com>
10109 * linux-low.c (linux_resume_one_lwp): Rename to ...
10110 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10111 instead call perror_with_name.
10112 (check_ptrace_stopped_lwp_gone): New function.
10113 (linux_resume_one_lwp): Reimplement as wrapper around
10114 linux_resume_one_lwp_throw that swallows errors if the LWP is
10117 2015-03-19 Pedro Alves <palves@redhat.com>
10119 * linux-low.c (count_events_callback, select_event_lwp_callback):
10120 No longer check whether the thread has resume_stop as last resume
10123 2015-03-19 Pedro Alves <palves@redhat.com>
10125 * linux-low.c (count_events_callback, select_event_lwp_callback):
10126 Use the lwp's status_pending_p field, not the thread's.
10128 2015-03-19 Pedro Alves <palves@redhat.com>
10130 * linux-low.c (select_event_lwp_callback): Update comments to
10131 no longer mention SIGTRAP.
10133 2015-03-18 Gary Benson <gbenson@redhat.com>
10135 * server.c (handle_query): Do not report vFile:fstat as supported.
10137 2015-03-11 Gary Benson <gbenson@redhat.com>
10139 * hostio.c (sys/types.h): New include.
10140 (sys/stat.h): Likewise.
10141 (common-remote-fileio.h): Likewise.
10142 (handle_fstat): New function.
10143 (handle_vFile): Handle vFile:fstat packets.
10145 2015-03-11 Gary Benson <gbenson@redhat.com>
10147 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10148 struct stat.st_blocks and struct stat.st_blksize.
10149 * configure: Regenerate.
10150 * config.in: Likewise.
10151 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10152 (OBS): Add common-remote-fileio.o.
10153 (common-remote-fileio.o): New rule.
10155 2015-03-09 Pedro Alves <palves@redhat.com>
10157 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10158 'struct sockaddr' pointer in 'accept' call.
10160 2015-03-09 Pedro Alves <palves@redhat.com>
10163 2015-03-07 Pedro Alves <palves@redhat.com>
10164 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10165 or <winsock2.h> here. Instead include "gdb_socket.h".
10166 (remote_open): Use union gdb_sockaddr_u.
10167 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10168 or <winsock2.h> here. Instead include "gdb_socket.h".
10169 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10170 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10172 (init_named_socket, gdb_agent_helper_thread): Use union
10175 2015-03-07 Pedro Alves <palves@redhat.com>
10177 * configure.ac (build_warnings): Move
10178 -Wdeclaration-after-statement to the C-specific set.
10179 * configure: Regenerate.
10181 2015-03-07 Pedro Alves <palves@redhat.com>
10183 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10184 or <winsock2.h> here. Instead include "gdb_socket.h".
10185 (remote_open): Use union gdb_sockaddr_u.
10186 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10187 or <winsock2.h> here. Instead include "gdb_socket.h".
10188 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10189 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10191 (init_named_socket, gdb_agent_helper_thread): Use union
10194 2015-03-07 Pedro Alves <palves@redhat.com>
10196 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10199 2015-03-06 Yao Qi <yao.qi@linaro.org>
10201 * linux-aarch64-low.c (aarch64_insert_point): Use
10202 show_debug_regs as a boolean.
10203 (aarch64_remove_point): Likewise.
10205 2015-03-05 Pedro Alves <palves@redhat.com>
10207 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10208 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10209 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10210 * nto-low.c (nto_target_ops): Likewise.
10211 * spu-low.c (spu_target_ops): Likewise.
10212 * win32-low.c (win32_target_ops): Likewise.
10214 2015-03-04 Pedro Alves <palves@redhat.com>
10216 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
10217 Decide whether a breakpoint triggered based on the SIGTRAP's
10219 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10220 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10221 (linux_low_filter_event): Check for breakpoints before checking
10223 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10225 (linux_stopped_by_sw_breakpoint)
10226 (linux_supports_stopped_by_sw_breakpoint)
10227 (linux_stopped_by_hw_breakpoint)
10228 (linux_supports_stopped_by_hw_breakpoint): New functions.
10229 (linux_target_ops): Install new target methods.
10231 2015-03-04 Pedro Alves <palves@redhat.com>
10233 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10234 * server.c (swbreak_feature, hwbreak_feature): New globals.
10235 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10236 (captured_main): Clear swbreak_feature and hwbreak_feature.
10237 * server.h (swbreak_feature, hwbreak_feature): Declare.
10238 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10239 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10240 supports_stopped_by_hw_breakpoint>: New fields.
10241 (target_supports_stopped_by_sw_breakpoint)
10242 (target_stopped_by_sw_breakpoint)
10243 (target_supports_stopped_by_hw_breakpoint)
10244 (target_stopped_by_hw_breakpoint): Declare.
10246 2015-03-04 Pedro Alves <palves@redhat.com>
10248 enum lwp_stop_reason -> enum target_stop_reason
10249 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10250 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10251 (linux_wait_1, stuck_in_jump_pad_callback)
10252 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10253 (linux_stopped_by_watchpoint):
10254 * linux-low.h (enum lwp_stop_reason): Delete.
10255 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10256 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10258 2015-03-04 Yao Qi <yao.qi@linaro.org>
10260 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10262 2015-03-03 Gary Benson <gbenson@redhat.com>
10264 * hostio.c (handle_vFile): Fix prefix lengths.
10266 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10268 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10271 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10273 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10274 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10275 (clean): Add "rm -f" for above C files.
10276 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10277 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10278 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10279 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10280 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10281 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10282 (init_registers_s390x_vx_linux64)
10283 (init_registers_s390x_tevx_linux64)
10284 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10285 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10287 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10288 (s390_store_vxrs_high): New functions.
10289 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10291 (s390_arch_setup): Add logic for selecting one of the new target
10292 descriptions. Activate the new vector regsets if applicable.
10293 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10294 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10295 and init_registers_s390x_tevx_linux64.
10297 2015-03-01 Pedro Alves <palves@redhat.com>
10299 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10302 2015-02-27 Pedro Alves <palves@redhat.com>
10304 * linux-x86-low.c (u_debugreg_offset): New function.
10305 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10307 2015-02-27 Pedro Alves <palves@redhat.com>
10309 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10310 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10311 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10312 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10313 (ps_lsetfpregs, ps_getpid)
10314 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10315 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10316 (ps_lsetxregs, ps_plog): Declare.
10318 2015-02-27 Pedro Alves <palves@redhat.com>
10320 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
10321 IP_AGENT_EXPORT_FUNC.
10322 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
10323 IP_AGENT_EXPORT_FUNC.
10324 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
10325 (IP_AGENT_EXPORT): Delete.
10326 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10327 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10328 (gdb_trampoline_buffer_error, collecting, gdb_collect)
10329 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
10330 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
10331 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
10332 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
10333 (traceframe_read_count, traceframe_write_count)
10334 (traceframes_created, trace_state_variables, get_raw_reg)
10335 (get_trace_state_variable_value, set_trace_state_variable_value)
10336 (ust_loaded, helper_thread_id, cmd_buf): Use
10337 IPA_SYM_EXPORTED_NAME.
10338 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
10339 (tracepoints) Use IP_AGENT_EXPORT_VAR.
10340 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
10341 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10342 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
10343 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
10344 EXTERN_C_PUSH/EXTERN_C_POP.
10345 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
10346 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
10347 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10348 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
10349 (traceframe_write_count, traceframe_read_count)
10350 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
10351 (about_to_request_buffer_space, get_trace_state_variable_value)
10352 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
10353 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
10354 EXTERN_C_PUSH/EXTERN_C_POP.
10355 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
10356 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
10357 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
10358 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10359 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10360 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10361 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
10362 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
10364 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
10365 (IP_AGENT_EXPORT_VAR_DECL): Define.
10366 (tracing): Declare.
10367 (gdb_agent_get_raw_reg): Declare.
10369 2015-02-27 Tom Tromey <tromey@redhat.com>
10370 Pedro Alves <palves@redhat.com>
10372 Rename symbols whose names are reserved C++ keywords throughout.
10374 2015-02-27 Pedro Alves <palves@redhat.com>
10376 * Makefile.in (COMPILER): New, get it from autoconf.
10377 (CXX): Get from autoconf instead.
10378 (COMPILE.pre): Use COMPILER.
10379 (CC-LD): Rename to ...
10380 (CC_LD): ... this. Use COMPILER.
10381 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
10382 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10383 * acinclude.m4: Include build-with-cxx.m4.
10384 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10385 Disable -Werror by default if building in C++ mode.
10386 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10387 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
10388 the C++ compiler. Save/restore CXXFLAGS too.
10389 * configure: Regenerate.
10391 2015-02-27 Pedro Alves <palves@redhat.com>
10393 * acinclude.m4: Include libiberty.m4.
10394 * configure.ac: Call libiberty_INIT.
10395 * config.in, configure: Regenerate.
10397 2015-02-26 Pedro Alves <palves@redhat.com>
10399 * linux-low.c (linux_wait_1): When incrementing the PC past a
10400 program breakpoint always use the_low_target.breakpoint_len as
10401 increment, rather than the maximum between that and
10402 the_low_target.decr_pc_after_break.
10404 2015-02-23 Pedro Alves <palves@redhat.com>
10406 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
10407 thread was doing a step-over; always adjust the PC if
10408 we stepped over a permanent breakpoint.
10409 (linux_wait_1): If we stepped over breakpoint that was on top of a
10410 permanent breakpoint, manually advance the PC past it.
10412 2015-02-23 Pedro Alves <palves@redhat.com>
10414 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
10416 (x86_fill_gregset, x86_store_gregset): Use it when handling
10419 2015-02-20 Pedro Alves <palves@redhat.com>
10421 * thread-db.c: Include "nat/linux-procfs.h".
10422 (thread_db_init): Skip listing new threads if the kernel supports
10423 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
10425 2015-02-20 Pedro Alves <palves@redhat.com>
10427 * linux-low.c (status_pending_p_callback): Use ptid_match.
10429 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10431 PR breakpoints/16812
10432 * linux-low.c (wstatus_maybe_breakpoint): Remove.
10433 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
10434 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
10436 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10438 PR breakpoints/15956
10439 * tracepoint.c (cmd_qtinit): Add check for current_thread.
10441 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10443 * linux-low.c (linux_low_btrace_conf): Print size.
10444 * server.c (handle_btrace_conf_general_set): New.
10445 (hanle_general_set): Call handle_btrace_conf_general_set.
10446 (handle_query): Report Qbtrace-conf:bts:size as supported.
10448 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10450 * linux-low.c (linux_low_enable_btrace): Update parameters.
10451 (linux_low_btrace_conf): New.
10452 (linux_target_ops)<to_btrace_conf>: Initialize.
10453 * server.c (current_btrace_conf): New.
10454 (handle_btrace_enable): Rename to ...
10455 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
10456 to target_enable_btrace. Update comment. Update users.
10457 (handle_qxfer_btrace_conf): New.
10458 (qxfer_packets): Add btrace-conf entry.
10459 (handle_query): Report qXfer:btrace-conf:read as supported packet.
10460 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
10461 (target_ops)<read_btrace_conf>: New.
10462 (target_enable_btrace): Update parameters.
10463 (target_read_btrace_conf): New.
10465 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10467 * server.c (handle_btrace_general_set): Remove call to
10468 target_supports_btrace.
10469 (supported_btrace_packets): New.
10470 (handle_query): Call supported_btrace_packets.
10471 * target.h: include btrace-common.h.
10472 (btrace_target_info): Removed.
10473 (supports_btrace, target_supports_btrace): Update parameters.
10475 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10477 * Makefile.in (SFILES): Add common/btrace-common.c.
10478 (OBS): Add common/btrace-common.o.
10479 (btrace-common.o): Add build rules.
10480 * linux-low: Include btrace-common.h.
10481 (linux_low_read_btrace): Use struct btrace_data. Call
10482 btrace_data_init and btrace_data_fini.
10484 2015-02-06 Pedro Alves <palves@redhat.com>
10486 * thread-db.c (find_new_threads_callback): Add debug output.
10488 2015-02-04 Pedro Alves <palves@redhat.com>
10490 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
10491 (resume_stopped_resumed_lwps): New function.
10492 (linux_wait_for_event_filtered): Use it.
10494 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10496 * Makefile.in (SFILES): Add linux-personality.c.
10497 (linux-personality.o): New rule.
10498 * configure.srv (srv_linux_obj): Add linux-personality.o to the
10499 list of objects to be built.
10500 * linux-low.c: Include nat/linux-personality.h.
10501 (linux_create_inferior): Remove code to disable address space
10502 randomization (moved to ../nat/linux-personality.c). Create
10503 cleanup to disable address space randomization.
10505 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10507 * Makefile.in (posix-strerror.o): New rule.
10508 (mingw-strerror.o): Likewise.
10509 * configure: Regenerated.
10510 * configure.ac: Source file ../common/common.host. Initialize new
10511 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
10513 2015-01-14 Yao Qi <yao@codesourcery.com>
10515 * Makefile.in (SFILES): Add nat/ppc-linux.c.
10516 (ppc-linux.o): New rule.
10517 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
10518 * configure.ac: AC_CHECK_FUNCS(getauxval).
10519 * config.in: Re-generated.
10520 * configure: Re-generated.
10521 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
10522 ppc64_64bit_inferior_p
10524 2015-01-14 Yao Qi <yao@codesourcery.com>
10526 * linux-ppc-low.c: Include "nat/ppc-linux.h".
10527 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
10528 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
10529 (PT_ORIG_R3, PT_TRAP): Likewise.
10530 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10531 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10532 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10534 2015-01-10 Joel Brobecker <brobecker@adacore.com>
10536 * i387-fp.c (i387_cache_to_xsave): In look over
10537 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
10538 zmmh_low_space field by use of zmmh_high_space.
10540 2015-01-09 Pedro Alves <palves@redhat.com>
10542 * linux-low.c (step_over_bkpt): Move higher up in the file.
10543 (handle_extended_wait): Don't store the stop_pc here.
10544 (get_stop_pc): Adjust comments and rename to ...
10545 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10546 stopped for a software breakpoint or hardware breakpoint.
10547 (thread_still_has_status_pending_p): New function.
10548 (status_pending_p_callback): Use
10549 thread_still_has_status_pending_p. If the event is no longer
10550 interesting, resume the LWP.
10551 (handle_tracepoints): Add assert.
10552 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
10553 (wstatus_maybe_breakpoint): New function.
10554 (cancel_breakpoint): Delete function.
10555 (check_stopped_by_watchpoint): New function, factored out from
10556 linux_low_filter_event.
10557 (lp_status_maybe_breakpoint): Delete function.
10558 (linux_low_filter_event): Remove filter_ptid argument.
10559 Leave thread group exits pending here. Store the LWP's stop PC.
10560 Always leave events pending.
10561 (linux_wait_for_event_filtered): Pull all events out of the
10562 kernel, and leave them all pending.
10563 (count_events_callback, select_event_lwp_callback): Consider all
10565 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
10566 (select_event_lwp): Only give preference to the stepping LWP in
10567 all-stop mode. Adjust comments.
10568 (ignore_event): New function.
10569 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
10570 references to cancel_breakpoints. Adjust to renames. Also give
10571 equal priority to all LWPs that have had events in non-stop mode.
10572 If reporting a software breakpoint event, unadjust the LWP's PC.
10573 (linux_wait): If linux_wait_1 returned an ignored event, retry.
10574 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
10576 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
10577 (resume_status_pending_p): Use thread_still_has_status_pending_p.
10578 (linux_stopped_by_watchpoint): Adjust.
10579 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
10580 * linux-low.h (enum lwp_stop_reason): New.
10581 (struct lwp_info) <stop_pc>: Adjust comment.
10582 <stopped_by_watchpoint>: Delete field.
10583 <stop_reason>: New field.
10584 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10585 * mem-break.c (software_breakpoint_inserted_here)
10586 (hardware_breakpoint_inserted_here): New function.
10587 * mem-break.h (software_breakpoint_inserted_here)
10588 (hardware_breakpoint_inserted_here): Declare.
10589 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
10590 (cancel_breakpoints): Delete.
10591 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
10592 (upload_fast_traceframes): Remove references to
10593 cancel_breakpoints.
10595 2015-01-09 Pedro Alves <palves@redhat.com>
10597 * thread-db.c (find_new_threads_callback): Ignore thread if the
10598 kernel thread ID is -1.
10600 2015-01-09 Pedro Alves <palves@redhat.com>
10602 * linux-low.c (linux_attach_fail_reason_string): Move to
10603 nat/linux-ptrace.c, and rename.
10604 (linux_attach_lwp): Update comment.
10605 (attach_proc_task_lwp_callback): New function.
10606 (linux_attach): Adjust to rename and use
10607 linux_proc_attach_tgid_threads.
10608 (linux_attach_fail_reason_string): Delete declaration.
10610 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10612 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
10613 * server.c (gdbserver_version): Likewise.
10615 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
10617 * remote-utils.c: Include ctype.h.
10618 (input_interrupt): Explicitly handle the case when the char
10619 received is the NUL byte. Improve the printing of non-ASCII
10622 2014-12-16 Joel Brobecker <brobecker@adacore.com>
10624 * linux-low.c (linux_low_filter_event): Update call to
10625 linux_enable_event_reporting following the addition of
10626 a new parameter to that function.
10628 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
10631 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
10632 (AARCH64_FPCR_REGNO): Likewise.
10633 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
10634 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
10635 (aarch64_store_fpregset): Likewise.
10637 2014-12-15 Joel Brobecker <brobecker@adacore.com>
10639 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
10640 Remove FIXME comment about assumption about N.
10642 2014-12-13 Joel Brobecker <brobecker@adacore.com>
10644 * configure.ac: If large-file support is disabled in GDBserver,
10645 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
10646 * configure: Regenerate.
10648 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10650 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
10651 warning upon ENODATA from ptrace.
10652 * linux-s390-low.c (s390_store_tdb): New.
10653 (s390_regsets): Add regset for NT_S390_TDB.
10655 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10657 * linux-low.c (regsets_store_inferior_registers): Skip regsets
10658 without a fill_function.
10659 * linux-s390-low.c (s390_fill_last_break): Remove.
10660 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
10661 (s390_arch_setup): Use regset's size instead of fill_function for
10662 loop end condition.
10664 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10666 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
10667 the regset's store function when ptrace returned an error.
10668 * regcache.c (get_thread_regcache): Invalidate register cache
10669 before fetching inferior's registers.
10671 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10673 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
10674 while-loop as for-loop.
10675 (regsets_store_inferior_registers): Likewise.
10677 2014-11-28 Yao Qi <yao@codesourcery.com>
10679 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
10680 * config.in, configure: Re-generate.
10681 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
10684 2014-11-21 Yao Qi <yao@codesourcery.com>
10686 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
10687 (AC_CHECK_HEADERS): Remove malloc.h.
10688 * configure: Re-generated.
10689 * config.in: Re-generated.
10690 * server.h: Don't include alloca.h and malloc.h.
10691 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
10692 Don't include malloc.h.
10694 2014-11-17 Joel Brobecker <brobecker@adacore.com>
10696 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
10697 corresponding ERRNO check in same block.
10699 2014-11-12 Pedro Alves <palves@redhat.com>
10701 * server.c (cont_thread): Update comment.
10702 (start_inferior, attach_inferior): No longer clear cont_thread.
10703 (handle_v_cont): No longer set cont_thread.
10704 (captured_main): Clear cont_thread each time a GDB connects.
10706 2014-11-12 Pedro Alves <palves@redhat.com>
10708 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
10709 thread, and don't resume all threads if the Hc thread has exited.
10711 2014-11-12 Pedro Alves <palves@redhat.com>
10713 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
10714 the process group instead of to a specific LWP.
10716 2014-10-15 Pedro Alves <palves@redhat.com>
10719 * win32-arm-low.c (arm_set_thread_context): Remove current_event
10721 (arm_set_thread_context): Delete.
10722 (the_low_target): Adjust.
10723 * win32-i386-low.c (debug_registers_changed)
10724 (debug_registers_used): Delete.
10725 (update_debug_registers_callback): New function.
10726 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
10727 needing to update their debug registers.
10728 (win32_get_current_dr): New function.
10729 (x86_dr_low_get_addr, x86_dr_low_get_control)
10730 (x86_dr_low_get_status): Fetch the debug register from the thread
10732 (i386_initial_stuff): Adjust.
10733 (i386_get_thread_context): Remove current_event parameter. Don't
10734 clear debug_registers_changed nor copy DR values to
10736 (i386_set_thread_context): Delete.
10737 (i386_prepare_to_resume): New function.
10738 (i386_thread_added): Mark the thread as needing to update irs
10740 (the_low_target): Remove i386_set_thread_context and install
10741 i386_prepare_to_resume.
10742 * win32-low.c (win32_get_thread_context): Adjust.
10743 (win32_set_thread_context): Use SetThreadContext
10745 (win32_prepare_to_resume): New function.
10746 (win32_require_context): New function, factored out from ...
10747 (thread_rec): ... this.
10748 (continue_one_thread): Call win32_prepare_to_resume on each thread
10749 we're about to continue.
10750 (win32_resume): Call win32_prepare_to_resume on the event thread.
10751 * win32-low.h (struct win32_thread_info)
10752 <debug_registers_changed>: New field.
10753 (struct win32_target_ops): Change prototype of set_thread_context,
10754 delete set_thread_context and add prepare_to_resume.
10755 (win32_require_context): New declaration.
10757 2014-10-08 Gary Benson <gbenson@redhat.com>
10759 * server.h: Do not include common-exceptions.h.
10761 2014-10-08 Gary Benson <gbenson@redhat.com>
10763 * server.h: Do not include cleanups.h.
10765 2014-09-30 James Hogan <james.hogan@imgtec.com>
10767 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
10768 mips64-dsp-linux.c.
10770 2014-09-23 Yao Qi <yao@codesourcery.com>
10772 * linux-low.c (lp_status_maybe_breakpoint): New function.
10773 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
10774 (count_events_callback): Likewise.
10775 (select_event_lwp_callback): Likewise.
10776 (cancel_breakpoints_callback): Likewise.
10778 2014-09-19 Don Breazeal <donb@codesourcery.com>
10780 * linux-low.c (handle_extended_wait): Call
10781 linux_ptrace_get_extended_event.
10782 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
10783 linux_is_extended_waitstatus.
10785 2014-09-16 Joel Brobecker <brobecker@adacore.com>
10787 * Makefile.in (CPPFLAGS): Define.
10788 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
10789 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
10791 2014-09-16 Gary Benson <gbenson@redhat.com>
10793 * inferiors.h (current_inferior): Renamed as...
10794 (current_thread): New variable. All uses updated.
10795 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
10796 (maybe_move_out_of_jump_pad): Likewise.
10797 (cancel_breakpoint): Likewise.
10798 (linux_low_filter_event): Likewise.
10799 (wait_for_sigstop): Likewise.
10800 (linux_resume_one_lwp): Likewise.
10801 (need_step_over_p): Likewise.
10802 (start_step_over): Likewise.
10803 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
10804 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
10805 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
10806 and save_inferior as saved_thread.
10807 * regcache.c (get_thread_regcache): Renamed saved_inferior as
10809 (regcache_invalidate_thread): Likewise.
10810 * remote-utils.c (prepare_resume_reply): Likewise.
10811 * thread-db.c (thread_db_get_tls_address): Likewise.
10812 (disable_thread_event_reporting): Likewise.
10813 (remove_thread_event_breakpoints): Likewise.
10814 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
10816 * target.h (set_desired_inferior): Renamed as...
10817 (set_desired_thread): New declaration. All uses updated.
10818 * server.c (myresume): Updated comment to reference thread instead
10820 (handle_serial_event): Likewise.
10821 (handle_target_event): Likewise.
10823 2014-09-12 Tom Tromey <tromey@redhat.com>
10824 Gary Benson <gbenson@redhat.com>
10826 * regcache.h: Include common-regcache.h.
10827 (regcache_read_pc): Don't declare.
10828 * regcache.c (get_thread_regcache_for_ptid): New function.
10830 2014-09-11 Tom Tromey <tromey@redhat.com>
10831 Gary Benson <gbenson@redhat.com>
10833 * symbol.c: New file.
10834 * Makefile.in (SFILES): Add symbol.c.
10835 (OBS): Add symbol.o.
10837 2014-09-11 Gary Benson <gbenson@redhat.com>
10839 * target.c (target_stop_ptid, target_continue_ptid): New
10842 2014-09-11 Tom Tromey <tromey@redhat.com>
10843 Gary Benson <gbenson@redhat.com>
10845 * target.h: Include target/target.h.
10846 * target.c (target_read_memory, target_read_uint32)
10847 (target_write_memory): New functions.
10849 2014-09-11 Gary Benson <gbenson@redhat.com>
10851 * server.h (debug_hw_points): Don't declare.
10852 * server.c (debug_hw_points): Don't define. Replace all uses
10853 with show_debug_regs.
10854 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
10855 all uses with show_debug_regs.
10857 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10859 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
10860 endianness into account.
10861 (ppc_supply_ptrace_register): Likewise.
10863 2014-09-03 James Hogan <james.hogan@imgtec.com>
10865 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
10866 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
10868 2014-09-03 Gary Benson <gbenson@redhat.com>
10870 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
10871 ALL_DEBUG_ADDRESS_REGISTERS.
10873 2014-09-02 Gary Benson <gbenson@redhat.com>
10875 * i386-low.h: Renamed as...
10876 * x86-low.h: New file. All type, function and variable name
10877 prefixes changed from "i386_" to "x86_". All references updated.
10878 * i386-low.c: Renamed as...
10879 * x86-low.c: New file. All type, function and variable name
10880 prefixes changed from "i386_" to "x86_". All references updated.
10882 2014-09-02 Gary Benson <gbenson@redhat.com>
10884 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
10885 (x86_linux_new_thread): Likewise.
10887 2014-08-29 Gary Benson <gbenson@redhat.com>
10889 * server.h (setjmp.h): Do not include.
10890 (toplevel): Do not declare.
10891 (common-exceptions.h): Include.
10892 (cleanups.h): Likewise.
10893 * server.c (toplevel): Do not define.
10894 (exit_code): New static global.
10895 (detach_or_kill_for_exit_cleanup): New function.
10896 (main): New function. Original main renamed to...
10897 (captured_main): New function.
10898 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
10900 2014-08-29 Gary Benson <gbenson@redhat.com>
10902 * Makefile.in (SFILES): Add common/common-exceptions.c.
10903 (OBS): Add common-exceptions.o.
10904 (common-exceptions.o): New rule.
10905 * utils.c (prepare_to_throw_exception): New function.
10907 2014-08-29 Gary Benson <gbenson@redhat.com>
10909 * config.in: Regenerate.
10910 * configure: Likewise.
10912 2014-08-29 Gary Benson <gbenson@redhat.com>
10914 * Makefile.in (SFILES): Add common/cleanups.c.
10916 (cleanups.o): New rule.
10918 2014-08-29 Gary Benson <gbenson@redhat.com>
10920 * utils.c (internal_vwarning): New function.
10922 2014-08-28 Gary Benson <gbenson@redhat.com>
10924 * utils.h (fatal): Remove declaration.
10925 * utils.c (fatal): Remove function.
10927 2014-08-28 Gary Benson <gbenson@redhat.com>
10929 * tracepoint.c (gdb_agent_init): Replace fatal with
10931 (initialize_tracepoint): Likewise.
10933 2014-08-28 Gary Benson <gbenson@redhat.com>
10935 * remote-utils.c (remote_prepare): Replace fatal with error.
10937 2014-08-28 Gary Benson <gbenson@redhat.com>
10939 * linux-low.c (linux_async): Replace fatal with warning.
10940 Tidy up and return.
10941 (linux_start_non_stop): Return -1 if linux_async failed.
10943 2014-08-28 Gary Benson <gbenson@redhat.com>
10945 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
10947 (i386_dr_low_get_addr): Remove vague comment.
10948 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
10951 2014-08-28 Gary Benson <gbenson@redhat.com>
10953 * inferiors.c (get_thread_process): Replace check with gdb_assert.
10954 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
10956 (linux_resume_one_lwp): Likewise.
10957 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
10959 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
10960 with internal_error.
10961 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
10962 (init_register_cache): Replace fatal with gdb_assert_not_reached.
10963 (find_register_by_name): Replace fatal with internal_error.
10964 (find_regno): Likewise.
10965 * tdesc.c (init_target_desc): Replace check with gdb_assert.
10966 * thread-db.c (thread_db_create_event): Likewise.
10967 (thread_db_load_search): Likewise.
10968 (try_thread_db_load_1): Likewise.
10969 * tracepoint.c (get_jump_space_head): Replace fatal with
10971 (claim_trampoline_space): Likewise.
10972 (have_fast_tracepoint_trampoline_buffer): Likewise.
10973 (cmd_qtstart): Likewise.
10974 (stop_tracing): Likewise.
10975 (fast_tracepoint_collecting): Likewise.
10976 (target_malloc): Likewise.
10977 (download_tracepoint): Likewise.
10978 (download_trace_state_variables): Replace check with gdb_assert.
10979 (upload_fast_traceframes): Replace fatal with internal_error.
10981 2014-08-19 Tom Tromey <tromey@redhat.com>
10982 Gary Benson <gbenson@redhat.com>
10984 * Makefile.in (SFILES): Add common/common-debug.c.
10985 (OBS): Add common-debug.o.
10986 (common-debug.o): New rule.
10987 * debug.h (debug_printf): Don't declare.
10988 * debug.c (debug_printf): Renamed and rewritten as...
10989 (debug_vprintf): New function.
10991 2014-08-19 Gary Benson <gbenson@redhat.com>
10993 * utils.h: Do not include print-utils.h.
10995 2014-08-19 Tom Tromey <tromey@redhat.com>
10996 Gary Benson <gbenson@redhat.com>
10998 * server.h: Add static assertion.
10999 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11001 2014-08-19 Tom Tromey <tromey@redhat.com>
11002 Gary Benson <gbenson@redhat.com>
11004 * Makefile.in (SFILES): Add common/errors.c.
11005 (OBS): Add errors.o.
11006 (IPA_OBS): Add errors-ipa.o.
11007 (errors.o): New rule.
11008 (errors-ipa.o): Likewise.
11009 * utils.h (perror_with_name, error, warning): Don't declare.
11010 * utils.c (warning): Renamed and rewritten as...
11011 (vwarning): New function.
11012 (error): Renamed and rewritten as...
11013 (verror): New function.
11014 (internal_error): Renamed and rewritten as...
11015 (internal_verror): New function.
11017 2014-08-07 Gary Benson <gbenson@redhat.com>
11019 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11020 * configure: Regenerate.
11021 * config.in: Likewise.
11022 * server.h: Do not include errno.h.
11023 * event-loop.c: Likewise.
11024 * hostio-errno.c: Likewise.
11025 * linux-low.c: Likewise.
11026 * remote-utils.c: Likewise.
11027 * spu-low.c: Likewise.
11028 * utils.c: Likewise.
11029 * gdbreplay.c: Unconditionally include errno.h.
11031 2014-08-07 Gary Benson <gbenson@redhat.com>
11033 * server.h: Do not include string.h.
11034 * event-loop.c: Likewise.
11035 * linux-low.c: Likewise.
11036 * regcache.c: Likewise.
11037 * remote-utils.c: Likewise.
11038 * spu-low.c: Likewise.
11039 * utils.c: Likewise.
11041 2014-08-07 Gary Benson <gbenson@redhat.com>
11043 * server.h: Do not include gdb_assert.h.
11045 2014-08-07 Gary Benson <gbenson@redhat.com>
11047 * server.h: Do not include common-utils.h.
11049 2014-08-07 Gary Benson <gbenson@redhat.com>
11051 * server.h: Do not include ptid.h.
11052 * notif.h: Likewise.
11054 2014-08-07 Gary Benson <gbenson@redhat.com>
11056 * server.h: Do not include gdb_locale.h.
11058 2014-08-07 Gary Benson <gbenson@redhat.com>
11060 * server.h: Do not include gdb/signals.h.
11061 * win32-low.c: Likewise.
11063 2014-08-07 Gary Benson <gbenson@redhat.com>
11065 * server.h: Do not include pathmax.h.
11067 2014-08-07 Gary Benson <gbenson@redhat.com>
11069 * server.h: Do not include libiberty.h.
11070 * linux-bfin-low.c: Likewise.
11072 2014-08-07 Gary Benson <gbenson@redhat.com>
11074 * server.h: Do not include ansidecl.h.
11076 2014-08-07 Gary Benson <gbenson@redhat.com>
11078 * linux-x86-low.c: Do not include stddef.h.
11079 * lynx-ppc-low.c: Likewise.
11080 * tracepoint.c: Likewise.
11082 2014-08-07 Gary Benson <gbenson@redhat.com>
11084 * server.h: Do not include stdarg.h.
11085 * nto-low.c: Likewise.
11087 2014-08-07 Gary Benson <gbenson@redhat.com>
11089 * server.h: Do not include stdlib.h.
11090 * inferiors.c: Likewise.
11091 * linux-low.c: Likewise.
11092 * regcache.c: Likewise.
11093 * spu-low.c: Likewise.
11094 * tracepoint.c: Likewise.
11095 * utils.c: Likewise.
11097 2014-08-07 Gary Benson <gbenson@redhat.com>
11099 * server.h: Do not include stdio.h.
11100 * linux-low.c: Likewise.
11101 * remote-utils.c: Likewise.
11102 * spu-low.c: Likewise.
11103 * utils.c: Likewise.
11104 * wincecompat.c: Likewise.
11106 2014-08-06 Gary Benson <gbenson@redhat.com>
11108 * regcache.c (init_register_cache): Move conditionals inside if.
11110 2014-08-06 Gary Benson <gbenson@redhat.com>
11112 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11114 2014-07-31 Gary Benson <gbenson@redhat.com>
11116 * ax.h: Do not include server.h.
11117 * gdbthread.h: Likewise.
11118 * lynx-low.h: Likewise.
11119 * notif.h: Likewise.
11121 2014-07-30 Gary Benson <gbenson@redhat.com>
11123 * server.h: Include common-defs.h.
11124 Do not include config.h or build-gnulib-gdbserver/config.h.
11126 2014-07-30 Gary Benson <gbenson@redhat.com>
11128 * hostio-errno.c: Move server.h to top of includes list.
11129 * inferiors.c: Likewise.
11130 * linux-x86-low.c: Likewise.
11131 * notif.c: Include server.h.
11133 2014-07-24 Tom Tromey <tromey@redhat.com>
11134 Gary Benson <gbenson@redhat.com>
11136 * server.h (CORE_ADDR): Now unsigned.
11138 2014-07-16 Pedro Alves <palves@redhat.com>
11140 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11142 2014-07-15 Pedro Alves <palves@redhat.com>
11144 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11147 2014-07-11 Pedro Alves <palves@redhat.com>
11149 * linux-low.c (kill_wait_lwp): New function, based on
11150 kill_one_lwp_callback, but use my_waitpid directly.
11151 (kill_one_lwp_callback, linux_kill): Use it.
11153 2014-06-23 Pedro Alves <palves@redhat.com>
11155 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11156 before setting DR0..DR3.
11158 2014-06-20 Gary Benson <gbenson@redhat.com>
11160 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11161 * configure: Regenerated.
11162 * config.in: Likewise.
11164 2014-06-20 Gary Benson <gbenson@redhat.com>
11166 * Makefile.in (SFILES): Update locations for files moved
11167 from common to nat.
11168 (object file files): Reordered.
11170 2014-06-20 Gary Benson <gbenson@redhat.com>
11172 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11173 (i386_dr_low_set_addr): Likewise.
11174 (i386_dr_low_get_addr): Likewise.
11175 (i386_dr_low_can_set_control): Likewise.
11176 (i386_dr_low_set_control): Likewise.
11177 (i386_dr_low_get_control): Likewise.
11178 (i386_dr_low_get_status): Likewise.
11179 (i386_get_debug_register_length): Likewise.
11180 * linux-x86-low.c (i386_dr_low_set_addr):
11181 Changed signature. Made static.
11182 (i386_dr_low_get_addr): Likewise.
11183 (i386_dr_low_set_control): Likewise.
11184 (i386_dr_low_get_control): Likewise.
11185 (i386_dr_low_get_status): Likewise.
11186 (i386_dr_low): New global variable.
11187 * win32-i386-low.c (i386_dr_low_set_addr):
11188 Changed signature. Made static.
11189 (i386_dr_low_get_addr): Likewise.
11190 (i386_dr_low_set_control): Likewise.
11191 (i386_dr_low_get_control): Likewise.
11192 (i386_dr_low_get_status): Likewise.
11193 (i386_dr_low): New global variable.
11195 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11197 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11198 * Makefile.in (AR, AR_FLAGS): Define.
11199 * configure: Regenerate.
11201 2014-06-19 Gary Benson <gbenson@redhat.com>
11203 * Makefile.in (i386-dregs.o): New rule.
11204 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11205 * i386-low.c (target.h): Remove include.
11206 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11207 (DR_CONTROL_SHIFT): Likewise.
11208 (DR_CONTROL_SIZE): Likewise.
11209 (DR_RW_EXECUTE): Likewise.
11210 (DR_RW_WRITE): Likewise.
11211 (DR_RW_READ): Likewise.
11212 (DR_RW_IORW): Likewise.
11213 (DR_LEN_1): Likewise.
11214 (DR_LEN_2): Likewise.
11215 (DR_LEN_4): Likewise.
11216 (DR_LEN_8): Likewise.
11217 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11218 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11219 (DR_ENABLE_SIZE): Likewise.
11220 (DR_LOCAL_SLOWDOWN): Likewise.
11221 (DR_GLOBAL_SLOWDOWN): Likewise.
11222 (DR_CONTROL_RESERVED): Likewise.
11223 (I386_DR_CONTROL_MASK): Likewise.
11224 (I386_DR_VACANT): Likewise.
11225 (I386_DR_LOCAL_ENABLE): Likewise.
11226 (I386_DR_GLOBAL_ENABLE): Likewise.
11227 (I386_DR_DISABLE): Likewise.
11228 (I386_DR_SET_RW_LEN): Likewise.
11229 (I386_DR_GET_RW_LEN): Likewise.
11230 (I386_DR_WATCH_HIT): Likewise.
11231 (i386_wp_op_t): Likewise.
11232 (i386_show_dr): Likewise.
11233 (i386_length_and_rw_bits): Likewise.
11234 (i386_insert_aligned_watchpoint): Likewise.
11235 (i386_remove_aligned_watchpoint): Likewise.
11236 (i386_handle_nonaligned_watchpoint): Likewise.
11237 i386_update_inferior_debug_regs(): Likewise.
11238 (i386_dr_insert_watchpoint): Likewise.
11239 (i386_dr_remove_watchpoint): Likewise.
11240 (i386_dr_region_ok_for_watchpoint): Likewise.
11241 (i386_dr_stopped_data_address): Likewise.
11242 (i386_dr_stopped_by_watchpoint): Likewise.
11244 2014-06-19 Gary Benson <gbenson@redhat.com>
11246 * i386-low.c (i386_dr_show): Renamed to
11247 i386_show_dr and made static. All uses updated.
11248 (i386_dr_length_and_rw_bits): Renamed to
11249 i386_length_and_rw_bits and made static.
11251 (i386_dr_insert_aligned_watchpoint): Renamed to
11252 i386_insert_aligned_watchpoint and made static.
11254 (i386_dr_remove_aligned_watchpoint): Renamed to
11255 i386_remove_aligned_watchpoint and made static.
11257 (i386_dr_update_inferior_debug_regs): Renamed to
11258 i386_update_inferior_debug_regs and made static.
11261 2014-06-18 Gary Benson <gbenson@redhat.com>
11263 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11264 (i386_dr_low_can_set_control): Likewise.
11265 (i386_get_debug_register_length): Likewise.
11266 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11267 (i386_dr_low_can_set_control): Likewise.
11268 (i386_get_debug_register_length): Likewise.
11270 2014-06-17 Gary Benson <gbenson@redhat.com>
11272 * i386-low.h (i386-dregs.h): New include.
11273 (DR_FIRSTADDR): Now in i386-dregs.h.
11274 (DR_LASTADDR): Likewise.
11275 (DR_NADDR): Likewise.
11276 (DR_STATUS): Likewise.
11277 (DR_CONTROL): Likewise.
11278 (i386_debug_reg_state): Likewise.
11279 (i386_dr_insert_watchpoint): Likewise.
11280 (i386_dr_remove_watchpoint): Likewise.
11281 (i386_dr_region_ok_for_watchpoint): Likewise.
11282 (i386_dr_stopped_data_address): Likewise.
11283 (i386_dr_stopped_by_watchpoint): Likewise.
11284 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11286 2014-06-18 Gary Benson <gbenson@redhat.com>
11288 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11289 i386_dr_insert_watchpoint.
11290 (i386_low_remove_watchpoint): Renamed to
11291 i386_dr_remove_watchpoint.
11292 (i386_low_region_ok_for_watchpoint): Renamed to
11293 i386_dr_region_ok_for_watchpoint.
11294 (i386_low_stopped_data_address): Renamed to
11295 i386_dr_stopped_data_address.
11296 (i386_low_stopped_by_watchpoint): Renamed to
11297 i386_dr_stopped_by_watchpoint.
11298 * i386-low.c (i386_show_dr): Renamed to
11299 i386_dr_show and made nonstatic. All uses updated.
11300 (i386_length_and_rw_bits): Renamed to
11301 i386_dr_length_and_rw_bits and made nonstatic.
11303 (i386_insert_aligned_watchpoint): Renamed to
11304 i386_dr_insert_aligned_watchpoint and made nonstatic.
11306 (i386_remove_aligned_watchpoint): Renamed to
11307 i386_dr_remove_aligned_watchpoint and made nonstatic.
11309 (i386_update_inferior_debug_regs): Renamed to
11310 i386_dr_update_inferior_debug_regs and made nonstatic.
11312 (i386_low_insert_watchpoint): Renamed to
11313 i386_dr_insert_watchpoint. All uses updated.
11314 (i386_low_remove_watchpoint): Renamed to
11315 i386_dr_remove_watchpoint. All uses updated.
11316 (i386_low_region_ok_for_watchpoint): Renamed to
11317 i386_dr_region_ok_for_watchpoint. All uses updated.
11318 (i386_low_stopped_data_address): Renamed to
11319 i386_dr_stopped_data_address. All uses updated.
11320 (i386_low_stopped_by_watchpoint): Renamed to
11321 i386_dr_stopped_by_watchpoint. All uses updated.
11323 2014-06-18 Gary Benson <gbenson@redhat.com>
11325 * i386-low.c (i386_dr_low_can_set_addr): New macro.
11326 (i386_dr_low_can_set_control): Likewise.
11327 (i386_insert_aligned_watchpoint): New check.
11329 2014-06-18 Gary Benson <gbenson@redhat.com>
11331 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
11334 2014-06-18 Gary Benson <gbenson@redhat.com>
11336 * i386-low.c (i386_length_and_rw_bits): Use internal_error
11337 instead of fatal and error.
11338 (i386_handle_nonaligned_watchpoint): Likewise.
11340 2014-06-18 Gary Benson <gbenson@redhat.com>
11342 * i386-low.c (i386_get_debug_register_length): New macro.
11343 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
11344 (i386_show_dr): Use debug_printf instead of fprintf. Use
11345 phex to format values.
11347 2014-06-18 Gary Benson <gbenson@redhat.com>
11349 * i386-low.h: Comment changes.
11350 * i386-low.c: Likewise.
11352 2014-06-18 Gary Benson <gbenson@redhat.com>
11354 * i386-low.c: Whitespace changes.
11356 2014-06-12 Tom Tromey <tromey@redhat.com>
11358 * utils.c (freeargv): Remove.
11360 2014-06-12 Tom Tromey <tromey@redhat.com>
11362 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
11363 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
11364 (parse_debug_format_options): Likewise.
11365 (gdbserver_usage): Likewise.
11366 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
11367 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
11368 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
11370 ($(LIBGNU)): Depend on libiberty.
11371 (all-lib): Recurse into all subdirs.
11372 (install-only): Invoke "install" target in subdirs.
11373 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
11375 * configure: Rebuild.
11376 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
11377 for vasprintf, vsnprintf, or gettimeofday.
11378 * configure.srv: Don't add safe-ctype.o or lbasename.o to
11381 2014-06-05 Joel Brobecker <brobecker@adacore.com>
11383 * development.sh: Delete.
11384 * Makefile.in (config.status): Adjust dependency on development.sh.
11385 * configure.ac: Adjust development.sh source call.
11386 * configure: Regenerate.
11388 2014-06-02 Pedro Alves <palves@redhat.com>
11390 * ax.c (gdb_free_agent_expr): New function.
11391 * ax.h (gdb_free_agent_expr): New declaration.
11392 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
11394 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
11396 (clear_breakpoint_conditions_and_commands): New function.
11397 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
11398 (clear_breakpoint_conditions_and_commands): New declaration.
11400 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11402 * linux-aarch64-low.c (asm/ptrace.h): Include.
11404 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11406 Fix TLS access for -static -pthread.
11407 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
11408 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
11409 (thread_db_load_search, try_thread_db_load_1): Initialize it.
11411 2014-05-20 Pedro Alves <palves@redhat.com>
11413 * linux-aarch64-low.c (aarch64_insert_point)
11414 (aarch64_remove_point): No longer check whether the type is
11415 supported here. Adjust to new interface.
11416 (the_low_target): Install aarch64_supports_z_point_type as
11417 supports_z_point_type method.
11418 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
11419 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
11420 instead of a Z packet char. Adjust.
11421 (arm_supports_z_point_type): New function.
11422 (arm_insert_point, arm_remove_point): Adjust to new interface.
11423 (the_low_target): Install arm_supports_z_point_type.
11424 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
11425 (cris_insert_point, cris_remove_point): Adjust to new interface.
11426 Don't check whether the type is supported here.
11427 (the_low_target): Install cris_supports_z_point_type.
11428 * linux-low.c (linux_supports_z_point_type): New function.
11429 (linux_insert_point, linux_remove_point): Adjust to new interface.
11430 * linux-low.h (struct linux_target_ops) <insert_point,
11431 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
11432 raw_breakpoint pointer parameter.
11433 <supports_z_point_type>: New method.
11434 * linux-mips-low.c (mips_supports_z_point_type): New function.
11435 (mips_insert_point, mips_remove_point): Adjust to new interface.
11436 Use mips_supports_z_point_type.
11437 (the_low_target): Install mips_supports_z_point_type.
11438 * linux-ppc-low.c (the_low_target): Install NULL as
11439 supports_z_point_type method.
11440 * linux-s390-low.c (the_low_target): Install NULL as
11441 supports_z_point_type method.
11442 * linux-sparc-low.c (the_low_target): Install NULL as
11443 supports_z_point_type method.
11444 * linux-x86-low.c (x86_supports_z_point_type): New function.
11445 (x86_insert_point): Adjust to new insert_point interface. Use
11446 insert_memory_breakpoint. Adjust to new
11447 i386_low_insert_watchpoint interface.
11448 (x86_remove_point): Adjust to remove_point interface. Use
11449 remove_memory_breakpoint. Adjust to new
11450 i386_low_remove_watchpoint interface.
11451 (the_low_target): Install x86_supports_z_point_type.
11452 * lynx-low.c (lynx_target_ops): Install NULL as
11453 supports_z_point_type callback.
11454 * nto-low.c (nto_supports_z_point_type): New.
11455 (nto_insert_point, nto_remove_point): Adjust to new interface.
11456 (nto_target_ops): Install nto_supports_z_point_type.
11457 * mem-break.c: Adjust intro comment.
11458 (struct raw_breakpoint) <raw_type, size>: New fields.
11459 <inserted>: Update comment.
11460 <shlib_disabled>: Delete field.
11461 (enum bkpt_type) <gdb_breakpoint>: Delete value.
11462 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
11463 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
11464 (raw_bkpt_type_to_target_hw_bp_type): New function.
11465 (find_enabled_raw_code_breakpoint_at): New function.
11466 (find_raw_breakpoint_at): New type and size parameters. Use them.
11467 (insert_memory_breakpoint): New function, based off
11468 set_raw_breakpoint_at.
11469 (remove_memory_breakpoint): New function.
11470 (set_raw_breakpoint_at): Reimplement.
11471 (set_breakpoint): New, based on set_breakpoint_at.
11472 (set_breakpoint_at): Reimplement.
11473 (delete_raw_breakpoint): Go through the_target->remove_point
11474 instead of assuming memory breakpoints.
11475 (find_gdb_breakpoint_at): Delete.
11476 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
11477 (find_gdb_breakpoint): New function.
11478 (set_gdb_breakpoint_at): Delete.
11479 (z_type_supported): New function.
11480 (set_gdb_breakpoint_1): New function, loosely based off
11481 set_gdb_breakpoint_at.
11482 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
11483 (delete_gdb_breakpoint_at): Delete.
11484 (delete_gdb_breakpoint_1): New function, loosely based off
11485 delete_gdb_breakpoint_at.
11486 (delete_gdb_breakpoint): New function.
11487 (clear_gdb_breakpoint_conditions): Rename to ...
11488 (clear_breakpoint_conditions): ... this. Don't handle a NULL
11490 (add_condition_to_breakpoint): Make static.
11491 (add_breakpoint_condition): Take a struct breakpoint pointer
11492 instead of an address. Adjust.
11493 (gdb_condition_true_at_breakpoint): Rename to ...
11494 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
11496 (gdb_condition_true_at_breakpoint): Reimplement.
11497 (add_breakpoint_commands): Take a struct breakpoint pointer
11498 instead of an address. Adjust.
11499 (gdb_no_commands_at_breakpoint): Rename to ...
11500 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
11501 parameter. Return true if no breakpoint was found. Change debug
11503 (gdb_no_commands_at_breakpoint): Reimplement.
11504 (run_breakpoint_commands): Rename to ...
11505 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
11506 and change return type to boolean.
11507 (run_breakpoint_commands): New function.
11508 (gdb_breakpoint_here): Also check for Z1 breakpoints.
11509 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
11510 breakpoint. Go through the_target->remove_point instead of
11511 assuming memory breakpoint.
11512 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
11513 software and hardware breakpoints.
11514 (reinsert_raw_breakpoint): Go through the_target->insert_point
11515 instead of assuming memory breakpoint.
11516 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
11517 software and hardware breakpoints.
11518 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
11519 Check both software and hardware breakpoints.
11520 (validate_inserted_breakpoint): Assert the breakpoint is a
11521 software breakpoint. Set the inserted flag to -1 instead of
11522 setting shlib_disabled.
11523 (delete_disabled_breakpoints): Adjust.
11524 (validate_breakpoints): Only validate software breakpoints.
11525 Adjust to inserted flag change.
11526 (check_mem_read, check_mem_write): Skip breakpoint types other
11527 than software breakpoints. Adjust to inserted flag change.
11528 * mem-break.h (enum raw_bkpt_type): New enum.
11529 (raw_breakpoint, struct process_info): Forward declare.
11530 (Z_packet_to_target_hw_bp_type): Delete declaration.
11531 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
11532 (set_gdb_breakpoint, delete_gdb_breakpoint)
11533 (clear_breakpoint_conditions): New declarations.
11534 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
11535 (breakpoint_inserted_here): Update comment.
11536 (add_breakpoint_condition, add_breakpoint_commands): Replace
11537 address parameter with a breakpoint pointer parameter.
11538 (gdb_breakpoint_here): Update comment.
11539 (delete_gdb_breakpoint_at): Delete.
11540 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
11541 * server.c (process_point_options): Take a struct breakpoint
11542 pointer instead of an address. Adjust.
11543 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
11544 delete_gdb_breakpoint.
11545 * spu-low.c (spu_target_ops): Install NULL as
11546 supports_z_point_type method.
11547 * target.h: Include mem-break.h.
11548 (struct target_ops) <prepare_to_access_memory>: Update comment.
11549 <supports_z_point_type>: New field.
11550 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11551 instead of a char. Also take a raw breakpoint pointer.
11552 * win32-arm-low.c (the_low_target): Install NULL as
11553 supports_z_point_type.
11554 * win32-i386-low.c (i386_supports_z_point_type): New function.
11555 (i386_insert_point, i386_remove_point): Adjust to new interface.
11556 (the_low_target): Install i386_supports_z_point_type.
11557 * win32-low.c (win32_supports_z_point_type): New function.
11558 (win32_insert_point, win32_remove_point): Adjust to new interface.
11559 (win32_target_ops): Install win32_supports_z_point_type.
11560 * win32-low.h (struct win32_target_ops):
11561 <supports_z_point_type>: New method.
11562 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11563 instead of a char. Also take a raw breakpoint pointer.
11565 2014-05-20 Pedro Alves <palves@redhat.com>
11567 * mem-break.h: Include break-common.h.
11568 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11569 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
11570 (Z_packet_to_target_hw_bp_type): New declaration.
11571 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
11572 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
11573 (Z_PACKET_ACCESS_WP): Delete macros.
11574 (Z_packet_to_hw_type): Delete function.
11575 * i386-low.h: Don't include break-common.h here.
11576 (Z_packet_to_hw_type): Delete declaration.
11577 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
11578 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11579 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
11580 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11581 * linux-aarch64-low.c: Don't include break-common.h here.
11582 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11583 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
11584 (Z_packet_to_target_hw_bp_type): Delete function.
11585 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
11587 (mips_insert_point, mips_remove_point): Use
11588 Z_packet_to_target_hw_bp_type.
11590 2014-05-20 Pedro Alves <palves@redhat.com>
11592 * linux-aarch64-low.c: Include break-common.h.
11593 (enum target_point_type): Delete.
11594 (Z_packet_to_point_type): Rename to ...
11595 (Z_packet_to_target_hw_bp_type): ... this, and return a
11596 target_hw_bp_type instead.
11597 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
11598 instead of an enum target_point_type.
11599 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
11601 (aarch64_dr_state_insert_one_point)
11602 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
11603 (aarch64_handle_aligned_watchpoint)
11604 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
11605 Take an enum target_hw_bp_type instead of an enum
11607 (aarch64_supports_z_point_type): New function.
11608 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
11609 use Z_packet_to_target_hw_bp_type.
11611 2014-05-20 Joel Brobecker <brobecker@adacore.com>
11613 * configure.ac: Only use -Werror by default when DEVELOPMENT
11615 * configure: Regenerate.
11617 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11619 Fix gdbserver qGetTLSAddr for x86_64 -m32.
11620 * linux-x86-low.c (X86_64_USER_REGS): New.
11621 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
11623 2014-04-28 Yao Qi <yao@codesourcery.com>
11625 * Makefile.in (i386-avx512.c): Fix the typo of generated file
11628 2014-04-25 Pedro Alves <palves@redhat.com>
11631 * linux-low.c (linux_attach_fail_reason_string): New function.
11632 (linux_attach_lwp): Delete.
11633 (linux_attach_lwp_1): Rename to ...
11634 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
11635 argument. Remove "initial" parameter. Return int instead of
11636 void. Don't error or warn here.
11637 (linux_attach): Adjust to call linux_attach_lwp. Call error on
11638 failure to attach to the tgid. Call warning when failing to
11640 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
11641 argument. Remove "initial" parameter. Return int instead of
11642 void. Don't error or warn here.
11643 (linux_attach_fail_reason_string): New declaration.
11644 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
11645 interface change. Use linux_attach_fail_reason_string.
11647 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
11648 Walfred Tedeschi <walfred.tedeschi@intel.com>
11650 * Makefile.in: Added rules to handle new files
11651 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
11652 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
11653 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
11654 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
11655 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
11656 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
11657 x32-avx512-linux.o.
11658 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
11659 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
11660 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
11661 i386/x32-avx512.xml.
11662 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
11663 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
11664 i386/x32-avx512-linux.xml.
11665 * i387-fp.c (num_avx512_k_registers): New constant for number
11667 (num_avx512_zmmh_low_registers): New constant for number of
11668 lower ZMM registers (0-15).
11669 (num_avx512_zmmh_high_registers): New constant for number of
11670 higher ZMM registers (16-31).
11671 (num_avx512_ymmh_registers): New contant for number of higher
11672 YMM registers (ymm16-31 added by avx521 on x86_64).
11673 (num_avx512_xmm_registers): New constant for number of higher
11674 XMM registers (xmm16-31 added by AVX512 on x86_64).
11675 (struct i387_xsave): Add space for AVX512 registers.
11676 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
11677 Add code to handle AVX512 registers.
11678 (i387_xsave_to_cache): Add code to handle AVX512 registers.
11679 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
11680 prototypei from generated file.
11681 (tdesc_amd64_avx512_linux): Likewise.
11682 (init_registers_x32_avx512_linux): Likewise.
11683 (tdesc_x32_avx512_linux): Likewise.
11684 (init_registers_i386_avx512_linux): Likewise.
11685 (tdesc_i386_avx512_linux): Likewise.
11686 (x86_64_regmap): Add AVX512 registers.
11687 (x86_linux_read_description): Add code to handle AVX512 XSTATE
11689 (initialize_low_arch): Add code to initialize AVX512 registers.
11691 2014-04-23 Pedro Alves <palves@redhat.com>
11693 * mem-break.c (find_gdb_breakpoint_at): Make static.
11694 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
11696 2014-04-23 Pedro Alves <palves@redhat.com>
11698 * i386-low.c: Don't include break-common.h here.
11699 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11700 prototype to take target_hw_bp_type as argument instead of a Z
11702 * i386-low.h: Include break-common.h here.
11703 (Z_packet_to_hw_type): Declare.
11704 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11706 * linux-x86-low.c (x86_insert_point): Convert the packet number to
11707 a target_hw_bp_type before calling i386_low_insert_watchpoint.
11708 (x86_remove_point): Convert the packet number to a
11709 target_hw_bp_type before calling i386_low_remove_watchpoint.
11710 * win32-i386-low.c (i386_insert_point): Convert the packet number
11711 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
11712 (i386_remove_point): Convert the packet number to a
11713 target_hw_bp_type before calling i386_low_remove_watchpoint.
11715 2014-04-23 Pedro Alves <palves@redhat.com>
11717 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
11719 2014-04-10 Pedro Alves <palves@redhat.com>
11721 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
11722 Check if the condition or command is NULL before checking if the
11723 breakpoint is known. On success, return true.
11724 * mem-break.h (add_breakpoint_condition): Document return.
11725 (add_breakpoint_commands): Add describing comment.
11726 * server.c (skip_to_semicolon): New function.
11727 (process_point_options): Use it.
11729 2014-04-09 Pedro Alves <palves@redhat.com>
11731 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
11734 2014-02-27 Pedro Alves <palves@redhat.com>
11737 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
11739 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
11741 (last_thread_of_process_p): Take a PID argument instead of a
11743 (linux_wait_for_lwp): Delete.
11744 (num_lwps, check_zombie_leaders, not_stopped_callback): New
11746 (linux_low_filter_event): New function, party factored out from
11747 linux_wait_for_event.
11748 (linux_wait_for_event): Rename to ...
11749 (linux_wait_for_event_filtered): ... this. Add new filter ptid
11750 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
11751 sigsuspend. Check for zombie leaders.
11752 (linux_wait_for_event): Reimplement as wrapper around
11753 linux_wait_for_event_filtered.
11754 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
11755 a normal or signal exit is seen, it's the whole process exiting.
11756 (wait_for_sigstop): No longer a for_each_inferior callback.
11757 Rewrite on top of linux_wait_for_event_filtered.
11758 (stop_all_lwps): Call wait_for_sigstop directly.
11759 * server.c (resume, handle_target_event): Handle
11760 TARGET_WAITKIND_NO_RESUMED.
11762 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11764 * win32-low.c (psapi_get_dll_name,
11765 * win32_CreateToolhelp32Snapshot): Delete.
11766 (win32_CreateToolhelp32Snapshot, win32_Module32First)
11767 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
11769 (handle_load_dll): Add function description.
11770 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
11772 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11774 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
11776 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
11777 base address when calling win32_add_one_solib.
11778 (handle_load_dll): Delete local variable load_addr.
11779 Remove 0x1000 offset applied to DLL base address when calling
11780 win32_add_one_solib.
11781 (handle_unload_dll): Add comment.
11783 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11785 * win32-low.c (win32_add_all_dlls): Renames
11786 win32_ensure_ntdll_loaded. Rewrite function documentation.
11787 Adjust implementation to always load all DLLs.
11788 Add 0x1000 offset to DLL base address when calling
11789 win32_add_one_solib.
11790 (child_initialization_done): New static global.
11791 (do_initial_child_stuff): Set child_initialization_done to
11792 zero during child initialization, and 1 after. Replace call
11793 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
11795 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
11796 (handle_unload_dll): Add function documentation.
11797 (get_child_debug_event): Ignore load and unload DLL events
11798 during child initialization.
11800 2014-02-20 Doug Evans <dje@google.com>
11802 Remove global all_lwps.
11803 * inferiors.h (ptid_of): Move here from linux-low.h.
11804 (pid_of, lwpid_of): Ditto.
11805 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
11806 parameter is a struct thread_info * now.
11807 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
11808 directly. Pass &all_threads to find_inferior instead of &all_lwps.
11809 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
11811 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
11812 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
11813 * linux-arm-low.c (update_registers_callback): Update, "entry"
11814 parameter is a struct thread_info * now.
11815 Fetch lwpid from current_inferior directly.
11816 (arm_insert_point): Pass &all_threads to find_inferior instead of
11818 (arm_remove_point): Ditto.
11819 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
11820 (arm_prepare_to_resume): Fetch pid from thread.
11821 (arm_read_description): Fetch lwpid from current_inferior directly.
11822 * linux-low.c (all_lwps): Delete.
11823 (delete_lwp): Delete call to remove_inferior.
11824 (handle_extended_wait): Fetch lwpid from thread.
11825 (add_lwp): Don't set lwp->entry.id. Remove call to
11826 add_inferior_to_list.
11827 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
11828 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
11829 (kill_one_lwp_callback): Ditto.
11830 (linux_kill): Don't dereference NULL pointer.
11831 Fetch ptid,lwpid from thread.
11832 (get_detach_signal): Fetch ptid from thread.
11833 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
11834 Simplify call to regcache_invalidate_thread.
11835 (delete_lwp_callback): Update, "entry" parameter is a
11836 struct thread_info * now. Fetch pid from thread.
11837 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
11838 (status_pending_p_callback): Update, "entry" parameter is a
11839 struct thread_info * now. Fetch ptid from thread.
11840 (find_lwp_pid): Update, "entry" parameter is a
11841 struct thread_info * now.
11842 (linux_wait_for_lwp): Fetch pid from thread.
11843 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
11844 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
11845 (enqueue_one_deferred_signal): Fetch lwpid from thread.
11846 (dequeue_one_deferred_signal): Ditto.
11847 (cancel_breakpoint): Fetch ptid from current_inferior.
11848 (linux_wait_for_event): Pass &all_threads to find_inferior,
11849 not &all_lwps. Fetch ptid, lwpid from thread.
11850 (count_events_callback): Update, "entry" parameter is a
11851 struct thread_info * now.
11852 (select_singlestep_lwp_callback): Ditto.
11853 (select_event_lwp_callback): Ditto.
11854 (cancel_breakpoints_callback): Ditto.
11855 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
11857 (select_event_lwp): Ditto. Fetch ptid from event_thread.
11858 (unsuspend_one_lwp): Update, "entry" parameter is a
11859 struct thread_info * now.
11860 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
11862 (linux_stabilize_threads): Ditto. And for for_each_inferior.
11863 Fetch lwpid from thread, not lwp.
11864 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
11865 Pass &all_threads to find_inferior, not &all_lwps.
11866 (send_sigstop): Fetch lwpid from thread, not lwp.
11867 (send_sigstop_callback): Update, "entry" parameter is a
11868 struct thread_info * now.
11869 (suspend_and_send_sigstop_callback): Ditto.
11870 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
11871 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
11872 struct thread_info * now.
11873 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
11875 (lwp_running): Update, "entry" parameter is a
11876 struct thread_info * now.
11877 (stop_all_lwps): Fetch ptid from thread.
11878 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
11879 (linux_resume_one_lwp): Fetch lwpid from thread.
11880 (linux_set_resume_request): Update, "entry" parameter is a
11881 struct thread_info * now. Fetch pid, lwpid from thread.
11882 (resume_status_pending_p): Update, "entry" parameter is a
11883 struct thread_info * now.
11884 (need_step_over_p): Ditto. Fetch lwpid from thread.
11885 (start_step_over): Fetch lwpid from thread.
11886 (linux_resume_one_thread): Update, "entry" parameter is a
11887 struct thread_info * now. Fetch lwpid from thread.
11888 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
11889 (proceed_one_lwp): Update, "entry" parameter is a
11890 struct thread_info * now. Fetch lwpid from thread.
11891 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
11892 struct thread_info * now.
11893 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
11894 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
11895 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
11897 (regsets_store_inferior_registers): Ditto.
11898 (fetch_register, store_register): Ditto.
11899 (linux_read_memory, linux_write_memory): Ditto.
11900 (linux_request_interrupt): Ditto.
11901 (linux_read_auxv): Ditto.
11902 (linux_xfer_siginfo): Ditto.
11903 (linux_qxfer_spu): Ditto.
11904 (linux_qxfer_libraries_svr4): Ditto.
11905 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
11906 moved to inferiors.h.
11908 (get_thread_lwp): Update.
11909 (struct lwp_info): Delete member "entry". Simplify comment for
11911 (all_lwps): Delete.
11912 * linux-mips-low.c (mips_read_description): Fetch lwpid from
11913 current_inferior directly.
11914 (update_watch_registers_callback): Update, "entry" parameter is a
11915 struct thread_info * now. Fetch pid from thread.
11916 (mips_linux_prepare_to_resume): Fetch ptid from thread.
11917 (mips_insert_point): Fetch lwpid from current_inferior.
11918 Pass &all_threads to find_inferior, not &all_lwps.
11919 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
11920 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
11922 (mips_stopped_data_address): Ditto.
11923 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
11925 * linux-tile-low.c (tile_arch_setup): Ditto.
11926 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
11927 (update_debug_registers_callback): Update, "entry" parameter is a
11928 struct thread_info * now. Fetch pid from thread.
11929 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
11930 Pass &all_threads to find_inferior, not &all_lwps.
11931 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
11932 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
11933 Pass &all_threads to find_inferior, not &all_lwps.
11934 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
11935 (i386_dr_low_get_status): Ditto.
11936 (x86_linux_prepare_to_resume): Fetch ptid from thread.
11937 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
11938 (x86_linux_read_description): Ditto.
11939 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
11941 2014-02-20 Doug Evans <dje@google.com>
11943 * inferiors.c (get_first_inferior): Fix buglet.
11945 2014-02-19 Doug Evans <dje@google.com>
11947 * gdbthread.h (add_thread): Change result type to struct thread_info *.
11948 * inferiors.c (add_thread): Change result type to struct thread_info *.
11949 All callers updated.
11950 (add_lwp): Call add_thread here instead of in callers.
11951 All callers updated.
11952 * linux-low.h (get_lwp_thread): Rewrite.
11953 (struct lwp_info): New member "thread".
11955 2014-02-19 Doug Evans <dje@google.com>
11957 * linux-low.c (add_lwp): Change result to struct lwp_info *.
11958 All callers updated.
11960 2014-02-19 Doug Evans <dje@google.com>
11962 * inferiors.c (add_thread): Fix whitespace.
11964 2014-02-19 Doug Evans <dje@google.com>
11966 * dll.c (clear_dlls): Replace accessing list implemention details
11968 * gdbthread.h (get_first_thread): Declare.
11969 * inferiors.c (for_each_inferior_with_data): New function.
11970 (get_first_thread): New function.
11971 (find_thread_ptid): Simplify.
11972 (get_first_inferior): New function.
11973 (clear_list): Delete.
11974 (one_inferior_p): New function.
11975 (clear_inferior_list): New function.
11976 (clear_inferiors): Update.
11977 * inferiors.h (for_each_inferior_with_data): Declare.
11978 (clear_inferior_list): Declare.
11979 (one_inferior_p): Declare.
11980 (get_first_inferior): Declare.
11981 * linux-low.c (linux_wait_for_event): Replace accessing list
11982 implemention details with API function.
11983 * server.c (target_running): Ditto.
11984 (accumulate_file_name_length): New function.
11985 (emit_dll_description): New function.
11986 (handle_qxfer_libraries): Replace accessing list implemention
11987 details with API function.
11988 (handle_qxfer_threads_worker): New function.
11989 (handle_qxfer_threads_proper): Replace accessing list implemention
11990 details with API function.
11991 (handle_query): Ditto.
11992 (visit_actioned_threads_callback_ftype): New typedef.
11993 (visit_actioned_threads_data): New struct.
11994 (visit_actioned_threads): Rewrite to be find_inferior callback.
11995 (resume): Call find_inferior.
11996 (handle_status): Replace accessing list implemention
11997 details with API function.
11998 (process_serial_event): Replace accessing list implemention details
12000 * target.c (set_desired_inferior): Replace accessing list implemention
12001 details with API function.
12002 * tracepoint.c (same_process_p): New function.
12003 (gdb_agent_about_to_close): Replace accessing list implemention
12004 details with API function.
12005 * win32-low.c (child_delete_thread): Replace accessing list
12006 implemention details with API function.
12007 (match_dll_by_basename): New function.
12008 (dll_is_loaded_by_basename): New function.
12009 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12010 details call to dll_is_loaded_by_basename.
12012 2014-02-19 Doug Evans <dje@google.com>
12014 * dll.h (struct dll_info): Add comment.
12015 * gdbthread.h (struct thread_info): Add comment.
12016 (current_ptid): Simplify.
12017 * inferiors.c (add_process): Update.
12018 (remove_process): Update.
12019 * inferiors.h (struct process_info): Rename member "head" to "entry".
12020 * linux-low.c (delete_lwp): Update.
12022 (last_thread_of_process_p): Update.
12023 (kill_one_lwp_callback, linux_kill): Update.
12024 (status_pending_p_callback): Update.
12025 (wait_for_sigstop): Update. Simplify read of ptid.
12026 (start_step_over): Update.
12027 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12028 (get_lwp_thread): Update.
12029 (struct lwp_info): Rename member "head" to "entry".
12030 * regcache.h (inferior_list_entry): Delete.
12031 * server.c (kill_inferior_callback): Update.
12032 (detach_or_kill_inferior_callback): Update.
12033 (print_started_pid): Update.
12034 (print_attached_pid): Update.
12035 (process_serial_event): Simplify read of ptid.
12036 * thread-db.c (thread_db_create_event): Update.
12037 (thread_db_get_tls_address): Update.
12038 * win32-low.c (current_inferior_ptid): Simplify.
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12042 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12044 (target_supports_btrace): Update.
12046 2014-02-14 Yao Qi <yao@codesourcery.com>
12048 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12049 (rsp-low-ipa.o): New target.
12051 2014-02-12 Tom Tromey <tromey@redhat.com>
12053 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12054 convert_ascii_to_int.
12055 * regcache.c (registers_to_string): Likewise.
12056 * remote-utils.c (decode_M_packet): Likewise.
12057 * server.c (process_serial_event): Likewise.
12059 2014-02-12 Tom Tromey <tromey@redhat.com>
12061 * server.c (handle_query, handle_v_run): Use hex2bin, not
12063 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12065 2014-02-12 Tom Tromey <tromey@redhat.com>
12067 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12068 convert_int_to_ascii.
12069 * regcache.c (registers_to_string, collect_register_as_string):
12071 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12073 * server.c (process_serial_event): Likewise.
12074 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12075 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12077 2014-02-12 Tom Tromey <tromey@redhat.com>
12079 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12080 bin2hex, not hexify.
12081 * tracepoint.c (cmd_qtstatus): Likewise.
12083 2014-02-12 Tom Tromey <tromey@redhat.com>
12085 * remote-utils.c (monitor_output): Pass explicit length to
12088 2014-02-12 Tom Tromey <tromey@redhat.com>
12090 * tracepoint.c: Include rsp-low.h.
12091 * server.c: Include rsp-low.h.
12092 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12093 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12095 * remote-utils.c: Include rsp-low.h.
12096 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12097 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12098 (convert_int_to_ascii, convert_ascii_to_int): Move to
12100 * regcache.c: Include rsp-low.h.
12101 * ax.c: Include rsp-low.h.
12102 * Makefile.in (SFILES): Add common/rsp-low.c.
12103 (OBS): Add rsp-low.o.
12104 (rsp-low.o): New target.
12106 2014-02-12 Tom Tromey <tromey@redhat.com>
12108 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12109 Include print-utils.h.
12110 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12111 (plongest, thirty_two, phex_nz): Remove.
12112 * Makefile.in (SFILES): Add common/print-utils.c.
12113 (OBS): Add print-utils.o.
12114 (print-utils-ipa.o): New target.
12115 (print-utils.o): New target.
12116 (IPA_OBJS): Add print-utils-ipa.o.
12118 2014-02-06 Tom Tromey <tromey@redhat.com>
12120 * Makefile.in (SFILES): Fix indentation.
12122 2014-02-05 Doug Evans <dje@google.com>
12124 * linux-low.c (linux_wait_for_event): Improve comment.
12125 (linux_wait_1): Keep current_inferior in sync with event_child.
12127 2014-01-22 Doug Evans <dje@google.com>
12129 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12131 2014-01-22 Doug Evans <dje@google.com>
12133 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12134 * configure: Regenerate.
12135 * config.in: Regenerate.
12136 * Makefile.in (SFILES): Add debug.c.
12137 (OBS): Add debug.o.
12138 * debug.c: New file.
12139 * debug.h: New file.
12140 * linux-aarch64-low.c (*): Update all debugging printfs to use
12141 debug_printf instead of fprintf.
12142 * linux-arm-low.c (*): Ditto.
12143 * linux-cris-low.c (*): Ditto.
12144 * linux-crisv32-low.c (*): Ditto.
12145 * linux-m32r-low.c (*): Ditto.
12146 * linux-sparc-low.c (*): Ditto.
12147 * linux-x86.c (*): Ditto.
12148 * linux-low.c (*): Ditto.
12149 (linux_wait_1): Add calls to debug_enter, debug_exit.
12150 (linux_wait): Remove redundant debugging printf.
12151 (stop_all_lwps): Add calls to debug_enter, debug_exit.
12152 (linux_resume, unstop_all_lwps): Ditto.
12153 * mem-break.c (*): Update all debugging printfs to use
12154 debug_printf instead of fprintf.
12155 * remote-utils.c (*): Ditto.
12156 * thread-db.c (*): Ditto.
12157 * server.c #include <ctype.h>, "gdb_vecs.h".
12158 (debug_threads): Moved to debug.c.
12159 (*): Update all debugging printfs to use debug_printf instead of
12161 (start_inferior): Replace call to fflush with call to debug_flush.
12162 (monitor_show_help): Mention set debug-format.
12163 (parse_debug_format_options): New function.
12164 (handle_monitor_command): Handle "monitor set debug-format".
12165 (gdbserver_usage): Mention --debug-format.
12166 (main): Parse --debug-format.
12167 * server.h (debug_threads): Declaration moved to debug.h.
12168 #include "debug.h".
12169 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12170 trace_debug_1 that uses debug_printf.
12171 (tracepoint_look_up_symbols): Update all debugging printfs to use
12172 debug_printf instead of fprintf.
12174 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12176 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12179 2014-01-17 Pedro Alves <palves@redhat.com>
12182 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12183 defined after including gdb_proc_service.h.
12185 2014-01-16 Doug Evans <dje@google.com>
12187 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12188 (match_dll): Use it.
12190 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12192 * target.h (target_ops) <read_btrace>: Change parameters and
12193 return type to allow error reporting.
12194 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12195 trace reading errors on.
12196 * linux-low.c (linux_low_read_btrace): Pass trace reading
12198 (linux_low_disable_btrace): New.
12200 2014-01-15 Doug Evans <dje@google.com>
12202 * inferiors.c (thread_id_to_gdb_id): Delete.
12203 * inferiors.h (thread_id_to_gdb_id): Delete.
12205 2014-01-13 Eli Zaretskii <eliz@gnu.org>
12207 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12208 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12211 2014-01-08 Pedro Alves <palves@redhat.com>
12213 * server.c (handle_status): Don't discard previous queued stop
12214 replies or thread's pending status here.
12215 (main) <disconnection>: Do it here instead.
12217 2014-01-08 Pedro Alves <palves@redhat.com>
12219 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12220 * server.c (visit_actioned_threads, handle_pending_status): New
12222 (handle_v_cont): Factor out parts to ...
12223 (resume): ... this new function. If in all-stop, and a thread
12224 being resumed has a pending status, report it without actually
12226 (myresume): Adjust to use the new 'resume' function.
12227 (clear_pending_status_callback, set_pending_status_callback)
12228 (find_status_pending_thread_callback): New functions.
12229 (handle_status): Handle the case of multiple threads having
12230 interesting statuses to report. Report threads' real last signal
12231 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12232 with an interesting thread to report the status for, instead of
12233 always reporting the status of the first thread.
12235 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12237 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12238 * gdbreplay.c (gdbreplay_version): Likewise.
12240 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12242 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12243 iov.iov_len with the real length in use.
12245 2013-12-13 Joel Brobecker <brobecker@adacore.com>
12247 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12248 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12249 for all targets that use win32-low.c.
12250 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12251 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12253 2013-12-13 Pedro Alves <palves@redhat.com>
12255 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12256 if equal to TARGET_WAITKIND_LOADED.
12257 * win32-low.c (cached_status): New static global.
12258 (win32_wait): Add declaration.
12259 (do_initial_child_stuff): Flush all initial pending debug events
12260 up to the initial breakpoint.
12261 (win32_wait): If CACHED_STATUS was set, return that instead
12262 of doing a real wait. Remove the code resuming the execution
12263 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12264 during the initial phase. Also remove the code changing
12265 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12266 TARGET_WAITKIND_STOPPED.
12268 2013-12-11 Yao Qi <yao@codesourcery.com>
12270 * notif.c (handle_notif_ack): Return 0 if no notification
12273 2013-11-20 Doug Evans <dje@google.com>
12275 * linux-low.c (linux_set_resume_request): Fix comment.
12277 2013-11-20 Doug Evans <dje@google.com>
12279 * linux-low.c (resume_status_pending_p): Tweak comment.
12281 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12283 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12284 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12285 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12286 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12287 (srv_amd64_regobj): Add amd64-mpx.o.
12288 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12289 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12290 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12291 * i387-fp.c (num_pl_bnd_register) Added constant.
12292 (num_pl_bnd_cfg_registers) Added constant.
12293 (struct i387_xsave) Added reserved area and MPX fields.
12294 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12295 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12297 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12298 (init_registers_amd64_mpx_linux): Declare new function.
12299 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12300 (x86_64_regmap): Add MPX registers.
12301 (x86_linux_read_description): Add MPX case.
12302 (initialize_low_arch): Initialize MPX targets.
12304 2013-11-18 Tom Tromey <tromey@redhat.com>
12306 * configure: Rebuild.
12307 * configure.ac: Don't check for stdlib.h.
12308 * gdbreplay.c: Unconditionally include stdlib.h.
12310 2013-11-18 Tom Tromey <tromey@redhat.com>
12312 * config.in: Rebuild.
12313 * configure: Rebuild.
12314 * configure.ac: Don't use AC_HEADER_DIRENT.
12316 2013-11-18 Tom Tromey <tromey@redhat.com>
12318 * server.h: Don't check HAVE_STRING_H.
12319 * gdbreplay.c: Don't check HAVE_STRING_H.
12320 * configure: Rebuild.
12322 2013-11-18 Tom Tromey <tromey@redhat.com>
12324 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
12327 2013-11-08 Tom Tromey <tromey@redhat.com>
12329 * configure, config.in: Rebuild.
12330 * configure.ac: Remove unused configury.
12332 2013-11-08 Tom Tromey <tromey@redhat.com>
12334 * acinclude.m4: Include common.m4, codeset.m4.
12335 * configure, config.in: Rebuild.
12336 * configure.ac: Use GDB_AC_COMMON.
12338 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
12340 * linux-s390-low.c (HWCAP_S390_TE): New define.
12341 (s390_arch_setup): Consider the TE field in the HWCAP for
12342 determining 'have_regset_tdb'.
12344 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
12347 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
12350 2013-10-02 Pedro Alves <palves@redhat.com>
12352 * server.c (process_serial_event): Don't output "GDBserver
12353 exiting" if GDB is connected through stdio.
12354 * target.c (mywait): Likewise, be silent if GDB is connected
12357 2013-10-01 Joel Brobecker <brobecker@adacore.com>
12359 * lynx-low.c (lynx_add_threads_after_attach): New function.
12360 (lynx_attach): Remove call to add_thread. Add call to
12361 lynx_add_threads_after_attach instead.
12363 2013-09-28 Mike Frysinger <vapier@gentoo.org>
12365 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
12366 * config.in, configure: Regenerated.
12368 2013-09-18 Yao Qi <yao@codesourcery.com>
12371 * server.c (start_inferior): Clear 'resume_info'.
12373 2013-09-16 Jiong Wang <jiwang@tilera.com>
12375 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
12378 2013-09-16 Jiong Wang <jiwang@tilera.com>
12380 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
12381 linux-tile-low.o to srv_tgtobj.
12383 2013-09-16 Will Newton <will.newton@linaro.org>
12385 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
12388 2013-09-06 Pedro Alves <palves@redhat.com>
12390 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
12391 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
12392 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
12393 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
12394 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
12395 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
12397 2013-09-06 Pedro Alves <palves@redhat.com>
12399 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
12400 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
12402 2013-09-06 Pedro Alves <palves@redhat.com>
12404 * linux-amd64-ipa.c: Include tracepoint.h.
12405 * linux-i386-ipa.c: Include tracepoint.h.
12407 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12409 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
12410 (ps_get_thread_area): New function.
12412 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12414 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
12415 (initialize_low_arch): Call init_registers_crisv32 rather than
12416 init_register_crisv32.
12418 2013-09-05 Pedro Alves <palves@redhat.com>
12420 * server.h (handle_vFile, hostio_last_error_from_errno): Move
12422 * hostio.h: ... this new file.
12423 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
12424 win32-low.c: Include hostio.h.
12426 2013-09-05 Pedro Alves <palves@redhat.com>
12428 * server.h (gdb_client_data, handler_func, callback_handler_func)
12429 (delete_file_handler, add_file_handler, append_callback_event)
12430 (delete_callback_event, start_event_loop, initialize_event_loop):
12431 Move to event-loop.h and include it.
12432 * event-loop.h: New file.
12434 2013-09-05 Pedro Alves <palves@redhat.com>
12436 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
12437 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
12438 (loaded_dll, unloaded_dll): Move to ...
12439 * dll.h: ... this new file.
12440 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
12442 2013-09-05 Pedro Alves <palves@redhat.com>
12444 * server.h (current_process, get_thread_process, all_processes)
12445 (add_inferior_to_list, for_each_inferior, current_inferior)
12446 (remove_inferior, add_process, remove_process, find_process_pid)
12447 (have_started_inferiors_p, have_attached_inferiors_p)
12448 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
12449 (clear_inferiors, find_inferior, find_inferior_id)
12450 (inferior_target_data, set_inferior_target_data)
12451 (inferior_regcache_data, set_inferior_regcache_data): Move to
12452 inferiors.h, and include it.
12453 * inferiors.h: New file.
12455 2013-09-05 Pedro Alves <palves@redhat.com>
12457 * server.h (struct emit_ops, current_insn_ptr, emit_error):
12461 2013-09-05 Pedro Alves <palves@redhat.com>
12463 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
12465 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
12466 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
12467 (handle_tracepoint_general_set, handle_tracepoint_query)
12468 (tracepoint_finished_step, tracepoint_was_hit)
12469 (release_while_stepping_state_list, current_traceframe)
12470 (in_readonly_region, traceframe_read_mem)
12471 (fetch_traceframe_registers, traceframe_read_sdata)
12472 (traceframe_read_info, struct fast_tpoint_collect_status)
12473 (fast_tracepoint_collecting, force_unlock_trace_buffer)
12474 (handle_tracepoit_bkpts, initialize_low_tracepoint)
12475 (supply_fast_tracepoint_registers)
12476 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
12477 (ipa_tdesc, claim_trampoline_space)
12478 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
12479 (agent_mem_read, agent_get_trace_state_variable_value)
12480 (agent_set_trace_state_variable_value, agent_tsv_read)
12481 (agent_mem_read_string, get_raw_reg_func_addr)
12482 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
12483 * tracepoint.h: ... this new file.
12485 2013-09-05 Pedro Alves <palves@redhat.com>
12487 * server.h (perror_with_name, error, fatal, warning, paddress)
12488 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
12490 * utils.h: New file.
12492 2013-09-05 Pedro Alves <palves@redhat.com>
12494 * server.h (remote_debug, noack_mode, transport_is_reliable)
12495 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
12496 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
12497 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
12498 (write_enn, initialize_async_io, enable_async_io)
12499 (disable_async_io, check_remote_input_interrupt_request)
12500 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
12501 (dead_thread_notify, prepare_resume_reply)
12502 (decode_address_to_semicolon, decode_address, decode_m_packet)
12503 (decode_M_packet, decode_X_packet, decode_xfer_write)
12504 (decode_search_memory_packet, unhexify, hexify)
12505 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
12506 (look_up_one_symbol, relocate_instruction)
12507 (monitor_output): Move to remote-utils.h, and include it.
12508 * remote-utils.h: New file.
12510 2013-09-05 Pedro Alves <palves@redhat.com>
12512 * server.h (_): Delete.
12514 2013-09-02 Pedro Alves <palves@redhat.com>
12516 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
12517 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
12519 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
12521 2013-09-02 Pierre Muller <muller@sourceware.org>
12523 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
12524 or WriteProcessMemory complete successfully and handle
12525 ERROR_PARTIAL_COPY error.
12527 2013-09-02 Pedro Alves <palves@redhat.com>
12529 * server.c (gdb_read_memory): Return -1 on traceframe memory read
12530 error instead of EIO.
12532 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12535 * linux-low.c: Include filestuff.h.
12536 (linux_create_inferior) <pid == 0>: Call close_most_fds.
12537 * lynx-low.c: Include filestuff.h.
12538 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
12539 * server.c: Include filestuff.h.
12540 (main): Call notice_open_fds.
12541 * spu-low.c: Include filestuff.h.
12542 (spu_create_inferior) <pid == 0>: Call close_most_fds.
12544 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
12546 * Makefile.in: Explain why ../target and ../nat are not
12547 listed as include file search paths.
12548 (linux-waitpid.o): New object file rule.
12549 * configure.srv (srv_native_linux_obj): New variable.
12550 Replace all occurrences of linux native object files with
12551 $srv_native_linux_obj.
12552 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
12553 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
12554 (linux_enable_event_reporting): Remove declaration.
12555 (my_waitpid): Moved to common/linux-waitpid.c.
12556 (linux_wait_for_event): Pass ptid when calling
12557 linux_enable_event_reporting.
12558 (linux_supports_tracefork_flag): Remove.
12559 (linux_enable_event_reporting): Likewise.
12560 (linux_tracefork_grandchild): Remove.
12561 (STACK_SIZE): Moved to common/linux-ptrace.c.
12562 (linux_tracefork_child): Remove.
12563 (linux_test_for_tracefork): Remove.
12564 (linux_look_up_symbols): Call linux_supports_traceclone.
12565 (initialize_low): Remove call to linux_test_for_tracefork.
12566 * linux-low.h (PTRACE_TYPE_ARG3): Move to
12567 common/linux-ptrace.h.
12568 (PTRACE_TYPE_ARG4): Likewise.
12569 Include linux-ptrace.h.
12571 2013-08-21 Pedro Alves <palves@redhat.com>
12573 * config.in: Renegerate.
12575 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
12577 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
12578 (SFILES): Remove $(srcdir)/common/target-common.c and
12579 add $(srcdir)/target/waitstatus.c.
12580 (OBS): Remove target-common.o and add waitstatus.o.
12581 (server_h): Remove $(srcdir)/../common/target-common.h and
12582 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
12583 and $(srcdir)/../target/waitstatus.h.
12584 (target-common.o): Remove.
12585 (waitstatus.o): New target object file.
12586 * target.h: Do not include target-common.h and
12587 include target/resume.h, target/wait.h and
12588 target/waitstatus.h.
12590 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
12592 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12593 to PTRACE_TYPE_ARG3.
12594 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12595 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
12597 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
12598 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
12600 2013-07-27 Jie Zhang <jie@codesourcery.com>
12601 Daniel Jacobowitz <dan@codesourcery.com>
12602 Yao Qi <yao@codesourcery.com>
12604 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
12605 (mips-linux-watch.o): New rule.
12606 (mips_linux_watch_h): New variable.
12607 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
12609 * linux-mips-low.c: Include mips-linux-watch.h.
12610 (struct arch_process_info, struct arch_lwp_info): New.
12611 (update_watch_registers_callback): New function.
12612 (mips_linux_new_process, mips_linux_new_thread) New functions.
12613 (mips_linux_prepare_to_resume, mips_insert_point): New
12615 (mips_remove_point, mips_stopped_by_watchpoint): New
12617 (rsp_bp_type_to_target_hw_bp_type): New function.
12618 (mips_stopped_data_address): New function.
12619 (the_low_target): Add watchpoint support functions.
12621 2013-07-27 Yao Qi <yao@codesourcery.com>
12623 * i386-low.c: Include break-common.h.
12624 (enum target_hw_bp_type): Remove.
12626 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
12628 * Makefile.in (SFILES): /common/target-common.c.
12629 (OBS): Add target-common.o.
12630 (server_h): Add $(srcdir)/../common/target-common.h.
12631 (target-common.o): New target.
12632 * server.c (queue_stop_reply_callback): Free
12633 status string after use.
12634 * target.c (target_waitstatus_to_string): Remove.
12635 * target.h: Include target-common.h.
12636 (resume_kind): Likewise.
12637 (target_waitkind): Likewise.
12638 (target_waitstatus): Likewise.
12639 (TARGET_WNOHANG): Likewise.
12641 2013-07-04 Yao Qi <yao@codesourcery.com>
12643 * Makefile.in (host_alias): Use @host_noncanonical@.
12644 (target_alias): Use @target_noncanonical@.
12645 * configure.ac: Use ACX_NONCANONICAL_TARGET and
12646 ACX_NONCANONICAL_HOST.
12647 * configure: Regenerated.
12650 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12652 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12653 * configure: Rebuild.
12654 * Makefile.in (version_host, version_target): Get from configure.
12655 (version.c): Use $(version_host) and $(version_target).
12657 2013-07-03 Pedro Alves <palves@redhat.com>
12659 * Makefile.in (config.status): Depend on development.sh.
12660 * acinclude.m4: Include libmcheck.m4.
12661 * configure: Regenerate.
12663 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12665 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
12666 attribute inside the parentheses.
12667 (winapi_DebugSetProcessKillOnExit): Ditto.
12668 (winapi_DebugBreakProcess): Ditto.
12669 (winapi_GenerateConsoleCtrlEvent): Ditto.
12671 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12673 * notif.h (notif_event): Add a dummy member to avoid compiler
12676 2013-07-01 Pedro Alves <palves@redhat.com>
12678 * hostio.c (HOSTIO_PATH_MAX): Define.
12679 (require_filename, handle_open, handle_unlink, handle_readlink):
12682 2013-07-01 Pedro Alves <palves@redhat.com>
12684 * server.h: Include "pathmax.h".
12685 * linux-low.c: Don't include sys/param.h.
12686 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
12688 * win32-low.c: Don't include sys/param.h.
12689 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
12691 2013-07-01 Pedro Alves <palves@redhat.com>
12693 * event-loop.c: Don't check HAVE_UNISTD_H before including
12695 * gdbreplay.c: Likewise.
12696 * remote-utils.c: Likewise.
12697 * server.c: Likewise.
12698 * configure.ac: Don't check for unistd.h.
12699 * configure: Regenerate.
12701 2013-06-28 Tom Tromey <tromey@redhat.com>
12703 * Makefile.in (version.c): Use version.in, not
12706 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12708 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12709 * configure: Rebuild.
12710 * Makefile.in (version_host, version_target): Get from configure.
12711 (version.c): Use $(version_host) and $(version_target).
12713 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12715 Fix trace-status to output user name without trailing colon.
12716 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
12718 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12720 Fix trace-status to output proper start-time and stop-time.
12721 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
12722 output start time and stop time in hex as gdb expects.
12724 2013-06-26 Pedro Alves <pedro@codesourcery.com>
12726 * tracepoint.c (build_traceframe_info_xml): Output trace state
12727 variables present in the trace buffer.
12729 2013-06-24 Tom Tromey <tromey@redhat.com>
12731 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
12733 (version.o): Remove.
12734 * gdbreplay.c: Include version.h.
12735 (version, host_name): Don't declare.
12736 * server.h: Include version.h.
12737 (version, host_name): Don't declare.
12739 2013-06-12 Pedro Alves <palves@redhat.com>
12741 * linux-x86-low.c (linux_is_elf64): Delete global.
12742 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
12743 with local linux_pid_exe_is_elf_64_file use.
12745 2013-06-11 Pedro Alves <palves@redhat.com>
12747 * linux-low.c (regset_disabled, disable_regset): New functions.
12748 (regsets_fetch_inferior_registers)
12749 (regsets_store_inferior_registers): Use them.
12750 (initialize_regsets_info); Don't allocate the disabled_regsets
12752 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
12755 2013-06-11 Pedro Alves <palves@redhat.com>
12757 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
12760 2013-06-11 Pedro Alves <palves@redhat.com>
12762 * linux-x86-low.c (initialize_low_arch): Call
12763 init_registers_x32_avx_linux.
12765 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12767 Fix compatibility with Android Bionic.
12768 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
12771 2013-06-07 Pedro Alves <palves@redhat.com>
12774 * Makefile.in (OBS): Add tdesc.o.
12775 (IPA_OBJS): Add tdesc-ipa.o.
12776 (tdesc-ipa.o): New rule.
12777 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
12779 * linux-low.c (new_inferior): Delete.
12780 (disabled_regsets, num_regsets): Delete.
12781 (linux_add_process): Adjust to set the new per-process
12783 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
12784 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
12785 was a stop. When calling arch_setup, switch the current inferior
12786 to the thread that got an event.
12787 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
12788 (regsets_fetch_inferior_registers)
12789 (regsets_store_inferior_registers): New regsets_info parameter.
12791 (linux_register_in_regsets): New regs_info parameter. Adjust to
12793 (register_addr, fetch_register, store_register): New usrregs_info
12794 parameter. Adjust to use it.
12795 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
12796 parameter regs_info. Adjust to use it.
12797 (linux_fetch_registers): Get the current inferior's regs_info, and
12799 (linux_store_registers): Ditto.
12800 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
12801 (initialize_low): Don't initialize the target_regsets here. Call
12802 initialize_low_arch.
12803 * linux-low.h (target_regsets): Delete declaration.
12804 (struct regsets_info): New.
12805 (struct usrregs_info): New.
12806 (struct regs_info): New.
12807 (struct process_info_private) <new_inferior>: New field.
12808 (struct linux_target_ops): Delete the num_regs, regmap, and
12809 regset_bitmap fields. New field regs_info.
12810 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
12811 * i387-fp.c (num_xmm_registers): Delete.
12812 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
12813 calls to new interface.
12814 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
12815 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
12816 Infer the number of xmm registers from the regcache's target
12818 * i387-fp.h (num_xmm_registers): Delete.
12819 * inferiors.c (add_thread): Don't install the thread's regcache
12821 * proc-service.c (gregset_info): Fetch the current inferior's
12822 regs_info. Adjust to use it.
12823 * regcache.c: Include tdesc.h.
12824 (register_bytes, reg_defs, num_registers)
12825 (gdbserver_expedite_regs): Delete.
12826 (get_thread_regcache): If the thread doesn't have a regcache yet,
12827 create one, instead of aborting gdbserver.
12828 (regcache_invalidate_one): Rename to ...
12829 (regcache_invalidate_thread): ... this.
12830 (regcache_invalidate_one): New.
12831 (regcache_invalidate): Only invalidate registers of the current
12833 (init_register_cache): Add target_desc parameter, and use it.
12834 (new_register_cache): Ditto. Assert the target description has a
12835 non zero registers_size.
12836 (regcache_cpy): Add assertions. Adjust.
12837 (realloc_register_cache, set_register_cache): Delete.
12838 (registers_to_string, registers_from_string): Adjust.
12839 (find_register_by_name, find_regno, find_register_by_number)
12840 (register_cache_size): Add target_desc parameter, and use it.
12841 (free_register_cache_thread, free_register_cache_thread_one)
12842 (regcache_release, register_cache_size): New.
12843 (register_size): Add target_desc parameter, and use it.
12844 (register_data, supply_register, supply_register_zeroed)
12845 (supply_regblock, supply_register_by_name, collect_register)
12846 (collect_register_as_string, collect_register_by_name): Adjust.
12847 * regcache.h (struct target_desc): Forward declare.
12848 (struct regcache) <tdesc>: New field.
12849 (init_register_cache, new_register_cache): Add target_desc
12851 (regcache_invalidate_thread): Declare.
12852 (regcache_invalidate_one): Delete declaration.
12853 (regcache_release): Declare.
12854 (find_register_by_number, register_cache_size, register_size)
12855 (find_regno): Add target_desc parameter.
12856 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
12858 * remote-utils.c: Include tdesc.h.
12859 (outreg, prepare_resume_reply): Adjust.
12860 * server.c: Include tdesc.h.
12861 (gdbserver_xmltarget): Delete declaration.
12862 (get_features_xml, process_serial_event): Adjust.
12863 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
12865 (struct process_info) <tdesc>: New field.
12866 (ipa_tdesc): Declare.
12867 * tdesc.c: New file.
12868 * tdesc.h: New file.
12869 * tracepoint.c: Include tdesc.h.
12870 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
12871 (get_context_regcache): Adjust to pass ipa_tdesc down.
12872 (do_action_at_tracepoint): Adjust to get the register cache size
12873 from the context regcache's description.
12874 (traceframe_walk_blocks): Adjust to get the register cache size
12875 from the current trace frame's description.
12876 (traceframe_get_pc): Adjust to get current trace frame's
12877 description and pass it down.
12878 (gdb_collect): Adjust to get the register cache size from the
12880 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
12881 (gdbserver_xmltarget): Delete.
12882 (initialize_low_tracepoint): Set the ipa's target description.
12883 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
12884 (initialize_low_tracepoint): Set the ipa's target description.
12885 * linux-x86-low.c: Include tdesc.h.
12886 [__x86_64__] (is_64bit_tdesc): New.
12887 (ps_get_thread_area, x86_get_thread_area): Use it.
12888 (i386_cannot_store_register): Rename to ...
12889 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
12890 (i386_cannot_fetch_register): Rename to ...
12891 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
12892 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
12894 (target_regsets): Rename to ...
12895 (x86_regsets): ... this.
12896 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
12898 (x86_siginfo_fixup): Use is_64bit_tdesc.
12899 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
12900 (tdesc_x32_avx_linux, tdesc_x32_linux)
12901 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
12903 (x86_linux_update_xmltarget): Delete.
12904 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
12905 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
12906 (AMD64_LINUX_USER64_CS): New.
12907 (x86_linux_read_description): New, based on
12908 x86_linux_update_xmltarget.
12909 (same_process_callback): New.
12910 (x86_arch_setup_process_callback): New.
12911 (x86_linux_update_xmltarget): New.
12912 (x86_regsets_info): New.
12913 (amd64_linux_regs_info): New.
12914 (i386_linux_usrregs_info): New.
12915 (i386_linux_regs_info): New.
12916 (x86_linux_regs_info): New.
12917 (x86_arch_setup): Reimplement.
12918 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
12919 (x86_emit_ops): Ditto.
12920 (the_low_target): Adjust. Install x86_linux_regs_info,
12921 x86_cannot_fetch_register, and x86_cannot_store_register.
12922 (initialize_low_arch): New.
12923 * linux-ia64-low.c (tdesc_ia64): Declare.
12924 (ia64_fetch_register): Adjust.
12925 (ia64_usrregs_info, regs_info): New globals.
12926 (ia64_regs_info): New function.
12927 (the_low_target): Adjust.
12928 (initialize_low_arch): New function.
12929 * linux-sparc-low.c (tdesc_sparc64): Declare.
12930 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
12932 (sparc_arch_setup): New function.
12933 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
12934 (the_low_target): Adjust.
12935 (initialize_low_arch): New function.
12936 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
12937 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
12938 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
12939 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
12940 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
12941 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
12942 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
12943 (tdesc_powerpc_isa205_vsx64l): Declare.
12944 (ppc_cannot_store_register, ppc_collect_ptrace_register)
12945 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
12946 (ppc_set_pc, ppc_get_hwcap): Adjust.
12947 (ppc_usrregs_info): Forward declare.
12948 (!__powerpc64__) ppc_regmap_adjusted: New global.
12949 (ppc_arch_setup): Adjust to the current process'es target
12951 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
12952 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
12953 (ppc_store_evrregset): Adjust.
12954 (target_regsets): Rename to ...
12955 (ppc_regsets): ... this, and make static.
12956 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
12957 (ppc_regs_info): New function.
12958 (the_low_target): Adjust.
12959 (initialize_low_arch): New function.
12960 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
12961 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
12962 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
12963 (tdesc_s390x_linux64v2): Declare.
12964 (s390_collect_ptrace_register, s390_supply_ptrace_register)
12965 (s390_fill_gregset, s390_store_last_break): Adjust.
12966 (target_regsets): Rename to ...
12967 (s390_regsets): ... this, and make static.
12968 (s390_get_pc, s390_set_pc): Adjust.
12969 (s390_get_hwcap): New target_desc parameter, and use it.
12970 [__s390x__] (have_hwcap_s390_high_gprs): New global.
12971 (s390_arch_setup): Adjust to set the current process'es target
12972 description. Don't adjust the regmap.
12973 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
12974 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
12975 (regs_info_3264): New globals.
12976 (s390_regs_info): New function.
12977 (the_low_target): Adjust.
12978 (initialize_low_arch): New function.
12979 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
12980 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
12981 [__mips64] (init_registers_mips_linux)
12982 (init_registers_mips_dsp_linux): Delete defines.
12983 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
12984 (have_dsp): New global.
12985 (mips_read_description): New, based on mips_arch_setup.
12986 (mips_arch_setup): Reimplement.
12987 (get_usrregs_info): New function.
12988 (mips_cannot_fetch_register, mips_cannot_store_register)
12989 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
12990 (mips_fill_fpregset, mips_store_fpregset): Adjust.
12991 (target_regsets): Rename to ...
12992 (mips_regsets): ... this, and make static.
12993 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
12994 (dsp_regs_info, regs_info): New globals.
12995 (mips_regs_info): New function.
12996 (the_low_target): Adjust.
12997 (initialize_low_arch): New function.
12998 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
12999 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13001 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13002 (arm_read_description): New, with bits factored from
13004 (arm_arch_setup): Reimplement.
13005 (target_regsets): Rename to ...
13006 (arm_regsets): ... this, and make static.
13007 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13008 (arm_regs_info): New function.
13009 (the_low_target): Adjust.
13010 (initialize_low_arch): New function.
13011 * linux-m68k-low.c (tdesc_m68k): Declare.
13012 (target_regsets): Rename to ...
13013 (m68k_regsets): ... this, and make static.
13014 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13015 (m68k_regs_info): New function.
13016 (m68k_arch_setup): New function.
13017 (the_low_target): Adjust.
13018 (initialize_low_arch): New function.
13019 * linux-sh-low.c (tdesc_sharch): Declare.
13020 (target_regsets): Rename to ...
13021 (sh_regsets): ... this, and make static.
13022 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13023 (sh_regs_info, sh_arch_setup): New functions.
13024 (the_low_target): Adjust.
13025 (initialize_low_arch): New function.
13026 * linux-bfin-low.c (tdesc_bfin): Declare.
13027 (bfin_arch_setup): New function.
13028 (bfin_usrregs_info, regs_info): New globals.
13029 (bfin_regs_info): New function.
13030 (the_low_target): Adjust.
13031 (initialize_low_arch): New function.
13032 * linux-cris-low.c (tdesc_cris): Declare.
13033 (cris_arch_setup): New function.
13034 (cris_usrregs_info, regs_info): New globals.
13035 (cris_regs_info): New function.
13036 (the_low_target): Adjust.
13037 (initialize_low_arch): New function.
13038 * linux-cris-low.c (tdesc_crisv32): Declare.
13039 (cris_arch_setup): New function.
13040 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13041 (cris_regs_info): New function.
13042 (the_low_target): Adjust.
13043 (initialize_low_arch): New function.
13044 * linux-m32r-low.c (tdesc_m32r): Declare.
13045 (m32r_arch_setup): New function.
13046 (m32r_usrregs_info, regs_info): New globals.
13047 (m32r_regs_info): Adjust.
13048 (initialize_low_arch): New function.
13049 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13050 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13051 (tic6x_usrregs_info): Forward declare.
13052 (tic6x_read_description): New function, based on ...
13053 (tic6x_arch_setup): ... this. Reimplement.
13054 (target_regsets): Rename to ...
13055 (tic6x_regsets): ... this, and make static.
13056 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13057 (tic6x_regs_info): New function.
13058 (the_low_target): Adjust.
13059 (initialize_low_arch): New function.
13060 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13061 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13062 (target_regsets): Rename to ...
13063 (xtensa_regsets): ... this, and make static.
13064 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13066 (xtensa_arch_setup, xtensa_regs_info): New functions.
13067 (the_low_target): Adjust.
13068 (initialize_low_arch): New function.
13069 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13070 (nios2_arch_setup): Set the current process'es tdesc.
13071 (target_regsets): Rename to ...
13072 (nios2_regsets): ... this.
13073 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13074 (nios2_regs_info): New function.
13075 (the_low_target): Adjust.
13076 (initialize_low_arch): New function.
13077 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13078 (aarch64_arch_setup): Set the current process'es tdesc.
13079 (target_regsets): Rename to ...
13080 (aarch64_regsets): ... this.
13081 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13082 (aarch64_regs_info): New function.
13083 (the_low_target): Adjust.
13084 (initialize_low_arch): New function.
13085 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13087 (target_regsets): Rename to ...
13088 (tile_regsets): ... this.
13089 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13090 (tile_regs_info): New function.
13091 (tile_arch_setup): Set the current process'es tdesc.
13092 (the_low_target): Adjust.
13093 (initialize_low_arch): New function.
13094 * spu-low.c (tdesc_spu): Declare.
13095 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13096 * win32-arm-low.c (tdesc_arm): Declare.
13097 (arm_arch_setup): New function.
13098 (the_low_target): Install arm_arch_setup instead of
13099 init_registers_arm.
13100 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13101 (init_windows_x86): Rename to ...
13102 (i386_arch_setup): ... this. Set `win32_tdesc'.
13103 (the_low_target): Adjust.
13104 * win32-low.c (win32_tdesc): New global.
13105 (child_add_thread): Don't create the thread cache here.
13106 (do_initial_child_stuff): Set the new process'es tdesc.
13107 * win32-low.h (struct target_desc): Forward declare.
13108 (win32_tdesc): Declare.
13109 * lynx-i386-low.c (tdesc_i386): Declare global.
13110 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13111 * lynx-low.c (lynx_tdesc): New global.
13112 (lynx_add_process): Set the new process'es tdesc.
13113 * lynx-low.h (struct target_desc): Forward declare.
13114 (lynx_tdesc): Declare global.
13115 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13116 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13117 * nto-low.c (nto_tdesc): New global.
13118 (do_attach): Set the new process'es tdesc.
13119 * nto-low.h (struct target_desc): Forward declare.
13120 (nto_tdesc): Declare.
13121 * nto-x86-low.c (tdesc_i386): Declare.
13122 (nto_x86_arch_setup): Set `nto_tdesc'.
13124 2013-06-04 Gary Benson <gbenson@redhat.com>
13126 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13127 to qSupported response when appropriate.
13128 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13129 with nonzero-length annex.
13130 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13131 arguments supplied in annex.
13133 2013-05-31 Doug Evans <dje@google.com>
13136 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13137 64 bits in 64-cross-32 environment.
13139 2013-05-28 Pedro Alves <palves@redhat.com>
13141 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13142 (aarch64-without-fpu.c): Delete rule.
13143 * configure.srv (aarch64*-*-linux*): Remove references to
13144 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13145 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13148 2013-05-24 Pedro Alves <palves@redhat.com>
13150 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
13151 instead of strchr/decode_address. Error if the range isn't split
13152 with a ','. Don't assume there's be a ':' in the action.
13154 2013-05-23 Yao Qi <yao@codesourcery.com>
13155 Pedro Alves <palves@redhat.com>
13157 * linux-low.c (lwp_in_step_range): New function.
13158 (linux_wait_1): If the thread was range stepping and stopped
13159 outside the stepping range, report the stop to GDB. Otherwise,
13160 continue stepping. Add range stepping debug output.
13161 (linux_set_resume_request): Copy the step range from the resume
13162 request to the lwp.
13163 (linux_supports_range_stepping): New.
13164 (linux_target_ops) <supports_range_stepping>: Set to
13165 linux_supports_range_stepping.
13166 * linux-low.h (struct linux_target_ops)
13167 <supports_range_stepping>: New field.
13168 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13169 * linux-x86-low.c (x86_supports_range_stepping): New.
13170 (the_low_target) <supports_range_stepping>: Set to
13171 x86_supports_range_stepping.
13172 * server.c (handle_v_cont): Handle 'r' action.
13173 (handle_v_requests): Append ";r" if the target supports range
13175 * target.h (struct thread_resume) <step_range_start,
13176 step_range_end>: New fields.
13177 (struct target_ops) <supports_range_stepping>:
13179 (target_supports_range_stepping): New macro.
13181 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13183 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13184 confusion in comment.
13186 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13188 * lynx-low.c (struct process_info_private): New type.
13189 (lynx_add_process): New function.
13190 (lynx_create_inferior, lynx_attach): Replace calls to
13191 add_process by calls to lynx_add_process.
13192 (lynx_resume): If PTID is null, then try using
13193 current_process()->private->last_wait_event_ptid.
13195 (lynx_clear_inferiors): Delete. The contents of that function
13196 has been inlined in lynx_mourn;
13197 (lynx_wait_1): Save the ptid in the process's private data.
13198 (lynx_mourn): Free the process' private data. Replace call
13199 to lynx_clear_inferiors by call to clear_inferiors.
13201 2013-05-17 Yao Qi <yao@codesourcery.com>
13203 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13206 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
13208 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13209 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13210 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13211 PT_TEXT_END_ADDR guards. Update comments.
13212 (linux_target_op) <read_offsets>: Conditionally define to
13213 linux_read_offsets if the target is UCLIBC and if it defines
13214 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13216 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13217 Andrew Jenner <andrew@codesourcery.com>
13219 * Makefile.in (SFILES): Add linux-nios2-low.c.
13220 (clean): Add action to delete nios2-linux.c.
13221 (nios2-linux.c): New rule.
13222 * configure.srv: Add nios2*-*-linux*.
13223 * linux-nios2-low.c: New.
13225 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13227 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13229 2013-04-25 Hui Zhu <hui@codesourcery.com>
13232 * ax.c (ax_printf): Add fflush.
13234 2013-04-22 Tom Tromey <tromey@redhat.com>
13236 * Makefile.in (SFILES): Add filestuff.c.
13237 (OBS): Add filestuff.o.
13238 (filestuff.o): New target.
13239 * config.in, configure: Rebuild.
13240 * configure.ac: Check for fdwalk, pipe2.
13242 2013-04-17 Pedro Alves <palves@redhat.com>
13244 * configure.ac (USE_THREAD_DB): Delete variable.
13245 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13246 Don't AC_SUBST USE_THREAD_DB.
13247 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13248 * config.in, configure: Regenerate.
13250 2013-04-16 Pedro Alves <palves@redhat.com>
13252 * linux-low.h (struct lwp_info) <thread_known>: Move under
13253 the USE_THREAD_DB #ifdef.
13255 2013-04-16 Pedro Alves <palves@redhat.com>
13257 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13258 (linux-low.o): Delete rule.
13259 * linux-low.h: Always include "gdb_thread_db.h" instead of
13260 conditionally including thread_db.h.
13261 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13264 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13266 * Makefile.in (install-only): Fix make install regression.
13268 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13270 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13271 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13273 * gdbserver.1: Remove.
13275 2013-03-22 Pedro Alves <palves@redhat.com>
13277 * linux-low.c (handle_extended_wait): Don't call
13278 linux_enable_event_reporting.
13280 2013-03-15 Tony Theodore <tonyt@logyst.com>
13283 * Makefile.in (SHELL): Use @SHELL@.
13285 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13287 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13290 2013-03-13 Joel Brobecker <brobecker@adacore.com>
13292 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13293 Remove extraneous NULL element.
13295 2013-03-13 Yao Qi <yao@codesourcery.com>
13297 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13298 'V' block in trace frame.
13300 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13302 * target.h (struct target_ops): Add btrace ops.
13303 (target_supports_btrace): New macro.
13304 (target_enable_btrace): New macro.
13305 (target_disable_btrace): New macro.
13306 (target_read_btrace): New macro.
13307 * gdbthread.h (struct thread_info): Add btrace field.
13308 * server.c: Include btrace-common.h.
13309 (handle_btrace_general_set): New function.
13310 (handle_btrace_enable): New function.
13311 (handle_btrace_disable): New function.
13312 (handle_general_set): Call handle_btrace_general_set.
13313 (handle_qxfer_btrace): New function.
13314 (struct qxfer qxfer_packets[]): Add btrace entry.
13315 * inferiors.c (remove_thread): Disable btrace.
13316 * linux-low: Include linux-btrace.h.
13317 (linux_low_enable_btrace): New function.
13318 (linux_low_read_btrace): New function.
13319 (linux_target_ops): Add btrace ops.
13320 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
13321 Add srv_linux_btrace=yes.
13322 (x86_64-*-linux*): Add linux-btrace.o.
13323 Add srv_linux_btrace=yes.
13324 * configure.ac: Define HAVE_LINUX_BTRACE.
13325 * config.in: Regenerated.
13326 * configure: Regenerated.
13328 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13330 * server.c (handle_qxfer): Preserve error message if -3 is
13332 (qxfer): Document the -3 return value.
13334 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13336 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
13337 (linux_btrace_h): New variable.
13338 (linux-btrace.o): New rule.
13340 2013-03-08 Stan Shebs <stan@codesourcery.com>
13341 Hafiz Abid Qadeer <abidh@codesourcery.com>
13343 * tracepoint.c (trace_buffer_size): New global.
13344 (DEFAULT_TRACE_BUFFER_SIZE): New define.
13345 (init_trace_buffer): Change to one-argument function. Allocate
13346 trace buffer memory.
13347 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
13348 handle QTBuffer:size packet.
13349 (cmd_bigqtbuffer_size): New function.
13350 (initialize_tracepoint): Call init_trace_buffer with
13351 DEFAULT_TRACE_BUFFER_SIZE.
13352 * server.c (handle_query): Add QTBuffer:size in the
13355 2013-03-07 Yao Qi <yao@codesourcery.com>
13357 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
13358 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
13360 (cmd_qtsp): Adjust condition. Do post increment.
13361 Set cur_action and cur_step_action back to 0.
13363 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
13366 * linux-low.c (linux_write_memory): Return early success if LEN is
13369 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
13371 * configure.srv: Add x86_64-*-cygwin* as target.
13373 2013-02-28 Tom Tromey <tromey@redhat.com>
13375 * configure.ac: Invoke AC_SYS_LARGEFILE.
13376 * configure, config.in: Rebuild.
13378 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
13380 * win32-low.c: Throughout, fix format strings and casts of
13381 printf-like functions to avoid type related warnings on all
13383 (get_child_debug_event): Print dwDebugEventCode as hex since
13384 that's how it's usually documented.
13386 2013-02-28 Yao Qi <yao@codesourcery.com>
13388 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
13391 2013-02-27 Jiong Wang <jiwang@tilera.com>
13393 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
13394 (reg-tilegx32.c): New rule.
13395 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
13396 * linux-tile-low.c (tile_arch_setup): New function. Invoke
13397 different register info initializer according to elf class.
13398 (init_registers_tilgx32): New function. The tilegx32 register info
13400 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
13401 (tile_store_gregset): Likewise.
13403 2013-02-27 Yao Qi <yao@codesourcery.com>
13405 * server.c (process_point_options): Print debug message when
13406 debug_threads is true.
13408 2013-02-26 Yao Qi <yao@codesourcery.com>
13410 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
13412 2013-02-19 Pedro Alves <palves@redhat.com>
13413 Kai Tietz <ktietz@redhat.com>
13417 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
13418 instead of strtoul to extract address from packet.
13419 (process_serial_event) <'z'>: Likewise.
13421 2013-02-18 Yao Qi <yao@codesourcery.com>
13423 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
13425 2013-02-14 Pedro Alves <palves@redhat.com>
13429 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
13430 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
13432 2013-02-14 Pedro Alves <palves@redhat.com>
13434 * tracepoint.c (cmd_qtdpsrc): Use savestring.
13436 2013-02-14 Pedro Alves <palves@redhat.com>
13438 * tracepoint.c (save_string): Delete.
13439 (add_tracepoint_action): Use savestring instead of save_string.
13441 2013-02-12 Pedro Alves <palves@redhat.com>
13443 * linux-xtensa-low.c: Ditto.
13444 * xtensa-xtregs.c: Ditto.
13446 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13448 * thread-db.c (thread_db_get_tls_address): NULL pointer check
13451 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13453 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
13454 aarch64_num_wp_regs and aarch64_num_bp_regs to
13455 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
13457 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13459 * linux-aarch64-low.c (ps_get_thread_area): Replace
13460 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
13462 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
13463 Marcus Shawcroft <marcus.shawcroft@arm.com>
13464 Nigel Stephens <nigel.stephens@arm.com>
13465 Yufeng Zhang <yufeng.zhang@arm.com>
13467 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
13468 (aarch64.c, aarch64-without-fpu.c): New targets.
13469 * configure.srv (aarch64*-*-linux*): New.
13470 * linux-aarch64-low.c: New file.
13472 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
13474 * linux-low.c (handle_extended_wait, linux_create_inferior)
13475 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
13476 (dequeue_one_deferred_signal, linux_resume_one_thread)
13477 (fetch_register, linux_write_memory, linux_enable_event_reporting)
13478 (linux_tracefork_grandchild, linux_test_for_tracefork)
13479 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
13480 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
13481 where the argument is 0.
13483 2013-01-25 Yao Qi <yao@codesourcery.com>
13485 * event-loop.c: Include "queue.h".
13486 (gdb_event_p): New typedef.
13487 (struct gdb_event) <next_event>: Remove.
13488 (event_queue): Change to QUEUE(gdb_event_p).
13489 (async_queue_event): Remove.
13490 (gdb_event_xfree): New.
13491 (initialize_event_loop): New.
13492 (process_event): Use API from QUEUE.
13493 (wait_for_event): Likewise.
13494 * server.c (main): Call initialize_event_loop.
13495 * server.h (initialize_event_loop): Declare.
13497 2013-01-18 Yao Qi <yao@codesourcery.com>
13499 * ax.h (struct eval_agent_expr_context): New.
13500 (gdb_eval_agent_expr): Update declaration.
13501 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
13502 TFRAME. Add new argument CTX.
13503 * server.h (struct eval_agent_expr_context): Declare.
13504 (agent_mem_read, agent_tsv_read): Update declaration.
13505 (agent_mem_read_string): Likewise.
13506 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
13507 (add_traceframe_block): Add new argument TPOINT.
13508 Increase TPOINT->traceframe_usage.
13509 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
13510 eval_tracepoint_agent_expr.
13511 (condition_true_at_tracepoint): Likewise.
13512 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
13513 (agent_mem_read_string, agent_tsv_read): Likewise.
13515 2013-01-16 Yao Qi <yao@codesourcery.com>
13517 * linux-low.c (linux_resume_one_lwp): Don't check
13518 'lwp->bp_reinsert != 0'.
13520 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13521 Pedro Alves <palves@redhat.com>
13523 * lynx-low.c (ptrace_request_to_str): Define a temporary
13524 macro and use it to simplify this function's implementation.
13526 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13528 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
13531 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13533 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
13535 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13537 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
13539 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13541 * lynx-low.c (lynx_resume): Use the resume_info parameter
13542 to determine the ptid for the lynx_ptrace call, unless
13543 it is equal to minus_one_ptid, in which case we use the
13544 ptid of the current_inferior.
13545 (lynx_wait_1): After having received a thread create/exit
13546 event, resume the inferior's execution using the signaling
13547 thread's ptid, rather than the old ptid.
13549 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13551 * lynx-low.c (lynx_resume): Delete variable ret.
13553 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13555 * gdbreplay.c (gdbreplay_version): Update copyright year.
13556 * server.c (gdbserver_version): Likewise.
13558 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13560 * lynx-low.c (lynx_wait_1): Add debug trace before adding
13563 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13565 * lynx-low.c (ptrace_request_to_str): Add handling for
13566 PTRACE_GETTRACESIG.
13568 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13570 * lynx-low.c (lynx_attach): Delete variable new_process.
13572 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13574 * lynx-low.c (lynx_create_inferior): Delete variable
13577 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13579 * lynx-low.c (ptrace_request_to_str): Do not handle
13580 PTRACE_GETTHREADLIST if this macro does not exist.
13582 2012-12-15 Yao Qi <yao@codesourcery.com>
13584 * Makefile.in (OBS): Add notif.o.
13585 * notif.c, notif.h: New.
13586 * server.c: Include "notif.h".
13587 (struct vstop_notif) <next>: Remove.
13589 (queue_stop_reply): Update.
13590 (push_event, send_next_stop_reply): Remove.
13591 (discard_queued_stop_replies): Update.
13592 (notif_stop): New variable.
13593 (handle_v_stopped): Remove.
13594 (handle_v_requests): Don't call handle_v_stopped. Call
13595 handle_ack_notif instead.
13596 (queue_stop_reply_callback): Call notif_event_enque instead
13597 of queue_stop_reply.
13598 (handle_status): Don't call send_next_stop_reply, call
13599 notif_write_event instead.
13600 (kill_inferior_callback): Likewise.
13601 (detach_or_kill_inferior_callback): Likewise.
13602 (main): Call initialize_notif.
13603 (process_serial_event): Call QUEUE_is_empty.
13604 (handle_target_event): Call notif_push instead of push event.
13605 * server.h (push_event): Remove declaration.
13607 2012-12-10 Tom Tromey <tromey@redhat.com>
13609 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
13610 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
13613 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
13614 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
13615 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
13616 (amd64-linux-ipa.o, ax.o): Rewrite.
13617 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
13618 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
13619 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
13620 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
13621 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
13622 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
13623 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
13624 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
13625 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
13626 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
13627 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
13628 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
13629 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
13630 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
13631 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
13632 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
13633 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
13634 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
13635 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
13636 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
13637 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
13638 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
13639 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
13640 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
13641 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
13642 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
13643 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
13644 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
13645 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
13646 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
13647 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
13648 (reg-tilegx.o): Remove.
13649 (all_object_files): New macro.
13650 Include .deps files.
13651 * aclocal.m4, configure: Rebuild.
13652 * acinclude.m4: Include depstand.m4, lead-dot.m4.
13653 * configure.ac: Invoke ZW_CREATE_DEPDIR,
13654 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
13656 2012-12-05 Tom Tromey <tromey@redhat.com>
13659 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
13661 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
13663 * configure.ac: Check for linux/perf_event.h.
13664 * config.in: Regenerated.
13665 * configure: Regenerated.
13667 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
13669 * hostio.c (handle_readlink): Decrease buffer size
13670 parameter passed to readlink by one byte.
13672 2012-11-26 Yao Qi <yao@codesourcery.com>
13674 * configure.ac (build_warnings): Append '-Wempty-body'.
13675 * configure: Regenerated.
13676 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
13679 2012-11-15 Pierre Muller <muller@sourceware.org>
13681 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
13682 * config.in: Regenerate.
13683 * configure: Regenerate.
13684 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
13685 Use "gdb_wait.h" header instead of <sys/wait.h> header.
13686 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13687 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
13689 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
13690 instead of <sys/wait.h> header.
13691 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13693 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
13695 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
13696 (various make rules): Remove -DGDBSERVER
13698 2012-11-09 Yao Qi <yao@codesourcery.com>
13700 * spu-low.c (current_ptid): Move it to ..
13701 * gdbthread.h: ... here. New.
13702 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
13703 * server.c (myresume, process_serial_event): Likewise.
13704 * thread-db.c (thread_db_find_new_threads): Likewise.
13705 * tracepoint.c (run_inferior_command): Likewise.
13707 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
13709 * server.c (handle_search_memory_1): Include access length in
13712 2012-09-05 Michael Brandt <michael.brandt@axis.com>
13714 * linux-crisv32-low.c: Fix compile errors.
13716 2012-09-04 Yao Qi <yao@codesourcery.com>
13718 * tracepoint.c (cmd_qtsv): Adjust debug message.
13719 Don't check CUR_TPOINT.
13721 2012-08-28 Yao Qi <yao@codesourcery.com>
13723 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
13724 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
13725 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
13726 Remove declarations of xmalloc, xreallloc, xstrdup and
13728 * Makefile.in (libiberty_h): New.
13729 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
13730 (linux-bfin-low.o): Append dependency 'libiberty.h'.
13732 2012-08-23 Yao Qi <yao@codesourcery.com>
13734 * server.h: Remove declaration of 'xsnprintf'.
13736 2012-08-22 Keith Seitz <keiths@redhat.com>
13738 * server.h: Include build-gnulib-gbserver/config.h.
13739 * gdbreplay.c: Likewise.
13741 2012-08-08 Doug Evans <dje@google.com>
13743 * Makefile.in (SFILES): Add gdb_vecs.c.
13744 (OBS): Add gdb_vecs.o.
13745 (gdb_vecs_h, host_defs_h): New variables.
13746 (thread-db.o): Add $(gdb_vecs_h) dependency.
13747 (gdb_vecs.o): New rule.
13748 * thread-db.c: #include "gdb_vecs.h".
13749 (thread_db_load_search): Use a vector to iterate over path elements.
13750 Handle text appearing after "$pdir".
13752 * configure.ac: Add check for strstr.
13753 * config.in: Regenerate.
13754 * configure: Regenerate.
13756 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13758 * hostio.c (handle_pread): If pread fails, fall back to attempting
13760 (handle_pwrite): Likewise for pwrite.
13762 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
13764 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
13765 between unsupported TYPE and unimplementable ADDR/LEN combination.
13766 (arm_insert_point): Act on new return value.
13768 2012-07-31 Pedro Alves <palves@redhat.com>
13770 * server.c (process_point_options): Only skip tokens if we find
13771 one that is unrecognized. Don't treat 'X' specially while
13772 skipping unrecognized tokens.
13774 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
13776 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
13777 to 4-byte-align HW breakpoint addresses for Thumb.
13779 2012-07-27 Yao Qi <yao@codesourcery.com>
13783 * server.h: Declare gdb_agent_about_to_close.
13784 * target.c (kill_inferior): Include "agent.h".
13785 New. Send command 'kill'.
13786 * target.h (kill_inferior): Removed macro.
13787 * tracepoint.c (gdb_agent_about_to_close): New.
13788 (gdb_agent_helper_thread): Handle command 'close'.
13789 Wait endlessly until the inferior stops.
13790 Install gdb_agent_remove_socket to atexit hook.
13791 (agent_socket_name): New static variable.
13792 (gdb_agent_socket_init): Replace local variable 'name' with
13793 'agent_socket_name'.
13794 (gdb_agent_remove_socket): New.
13796 2012-07-27 Yao Qi <yao@codesourcery.com>
13798 * server.c (process_point_options): Stop at 'X' when parsing.
13800 2012-07-19 Michael Eager <eager@eagercon.com>
13802 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
13804 * linux-x86-low.c (x86_insert_point, x86_remove_point):
13805 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
13806 hardware breakpoint.
13808 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13810 * gdbserver/linux-low.c (initialize_low): Call
13811 linux_ptrace_init_warnings.
13813 2012-07-02 Doug Evans <dje@google.com>
13815 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
13818 2012-07-02 Stan Shebs <stan@codesourcery.com>
13820 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
13821 (ax.o): Add it to build rule.
13823 (OBS): Add format.o.
13824 (IPA_OBS): Add format.o.
13825 * server.c (handle_query): Claim support for breakpoint commands.
13826 (process_point_options): Add command case.
13827 (process_serial_event): Leave running if there are printfs in
13829 * mem-break.h (any_persistent_commands): Declare.
13830 (add_breakpoint_commands): Declare.
13831 (gdb_no_commands_at_breakpoint): Declare.
13832 (run_breakpoint_commands): Declare.
13833 * mem-break.c (struct point_command_list): New struct.
13834 (struct breakpoint): New field command_list.
13835 (any_persistent_commands): New function.
13836 (add_commands_to_breakpoint): New function.
13837 (add_breakpoint_commands): New function.
13838 (gdb_no_commands_at_breakpoint): New function.
13839 (run_breakpoint_commands): New function.
13840 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
13842 * ax.c: Include format.h.
13843 (ax_printf): New function.
13844 (gdb_eval_agent_expr): Add printf opcode.
13846 2012-06-13 Yao Qi <yao@codesourcery.com>
13848 * server.c (start_inferior): Remove duplicated writes to fields
13849 'last_resume_kind' and 'last_status' of 'current_inferior'.
13851 2012-06-12 Yao Qi <yao@codesourcery.com>
13852 Pedro Alves <palves@redhat.com>
13854 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
13856 * server.c (handle_v_cont): Extend comment.
13858 2012-06-11 Yao Qi <yao@codesourcery.com>
13860 * linux-low.c (linux_attach): Add 'static'.
13862 2012-06-06 Yao Qi <yao@codesourcery.com>
13864 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
13866 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
13868 Fix gcc -flto compilation warning.
13869 * server.c (main): Make variable multi_mode and attach volatile.
13871 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13873 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
13874 if the platform doesn't know about it.
13876 2012-05-30 Jeff Kenton <jkenton@tilera.com>
13878 * Makefile.in (SFILES): Add linux-tile-low.c.
13879 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
13880 * configure.srv: Handle tilegx-*-linux*.
13881 * linux-tile-low.c: New file.
13883 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13885 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
13887 2012-05-24 Pedro Alves <palves@redhat.com>
13891 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
13893 2012-05-24 Pedro Alves <palves@redhat.com>
13897 Replace target_signal with gdb_signal throughout.
13899 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
13901 * linux-low.c (linux_store_registers): Avoid the copying sequence
13902 when no data has been retrieved by ptrace.
13904 2012-05-22 Will Deacon <will.deacon@arm.com>
13906 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
13907 Include asm/ptrace.h.
13908 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
13911 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
13913 * linux-low.c (linux_store_registers): Don't re-retrieve data
13914 with ptrace that has already been obtained from /proc. Always
13915 copy any data retrieved with ptrace to the buffer supplied.
13917 2012-05-11 Yao Qi <yao@codesourcery.com>
13918 Pedro Alves <palves@redhat.com>
13920 * linux-low.c (enum stopping_threads_kind): New.
13921 (stopping_threads): Change type to `enum stopping_threads_kind'.
13922 (handle_extended_wait): If stopping and suspending threads, leave
13923 the new_lwp suspended too.
13924 (linux_wait_for_event): Adjust.
13925 (stop_all_lwps): Set `stopping_threads' to
13926 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
13927 whether we're suspending threads or just stopping them. Assert no
13930 2012-04-29 Yao Qi <yao@codesourcery.com>
13932 * server.h: Move some code to ...
13933 * gdbthread.h: ... here. New.
13934 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
13935 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
13936 (nto-low.o, win32-low.o): Likewise.
13937 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
13938 * regcache.c, remote-utils.c, server.c: Likewise.
13939 * target.c, tracepoint.c, win32-low.c: Likewise.
13941 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13943 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
13944 (PTRACE_ARG4_TYPE): Likewise.
13945 (PTRACE_XFER_TYPE): Likewise.
13946 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
13947 ptrace to PTRACE_ARG3_TYPE.
13948 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
13949 (PTRACE_ARG4_TYPE): Likewise.
13950 (PTRACE_XFER_TYPE): Likewise.
13951 (linux_detach_one_lwp): Cast fourth argument of
13952 ptrace to long then PTRACE_ARG4_TYPE.
13953 (regsets_fetch_inferior_registers): Cast third argument of
13954 ptrace to long then PTRACE_ARG3_TYPE.
13955 (regsets_store_inferior_registers): Likewise.
13957 2012-04-20 Pedro Alves <palves@redhat.com>
13959 * configure: Regenerate.
13961 2012-04-19 Pedro Alves <palves@redhat.com>
13963 * Makefile.in (GNULIB_BUILDDIR): New.
13964 (LIBGNU, INCGNU, GNULIB_H): Adjust.
13965 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
13966 (all, install-only, uninstall, clean-info, all-lib, clean): No
13967 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
13968 (maintainer-clean realclean distclean): Use subdir_do.
13970 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
13971 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
13972 * acinclude.m4: Include acx_configure_dir.m4.
13973 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
13974 calls. Call AC_PROG_RANLIB. Configure gnulib using
13977 (GNULIB_STDINT_H): Adjust.
13978 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
13979 * gdbreplay.c: Include build-gnulib/config.h.
13980 * server.h: Likewise.
13981 * aclocal.m4: Regenerate.
13982 * config.in: Regenerate.
13983 * configure: Regenerate.
13985 2012-04-19 Pedro Alves <palves@redhat.com>
13987 * Makefile.in (LIBGNU, INCGNU): Adjust.
13988 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
13989 (all, install-only, uninstall, clean-info, all-lib, clean)
13990 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
13991 * configure.ac: Adjust AC_OUTPUT output.
13992 * aclocal.m4: Regenerate.
13993 * configure: Regenerate.
13995 2012-04-19 Pedro Alves <palves@redhat.com>
13997 * Makefile.in (generated_files): New.
13998 (server_h): Remove the explicit dependency on config.h, and depend
13999 on $generated_files.
14001 2012-04-19 Pedro Alves <palves@redhat.com>
14003 * Makefile.in (INCGNU): Add -Ignulib.
14005 2012-04-19 Pedro Alves <palves@redhat.com>
14007 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14008 (INCGNU): ... this, and spell out -I here.
14009 (GNULIB_LIB): Rename to ...
14010 (LIBGNU): ... this.
14011 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14013 2012-04-19 Pedro Alves <palves@redhat.com>
14015 * config.in: Regenerate.
14017 2012-04-19 Pedro Alves <palves@redhat.com>
14019 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14020 * server.h (memmem): Remove declaration.
14021 * config.in: Regenerate.
14022 * configure: Regenerate.
14024 2012-04-19 Yao Qi <yao@codesourcery.com>
14026 * Makefile.in (SFILES): Add common/vec.c.
14030 2012-04-19 Yao Qi <yao@codesourcery.com>
14032 * remote-utils.c (prepare_resume_reply): Replace with macro
14033 target_core_of_thread.
14034 * server.c (handle_qxfer_threads_proper): Likewise.
14035 * target.h (traget_core_of_thread): New macro.
14037 2012-04-18 Pedro Alves <palves@redhat.com>
14039 * aclocal.m4: Regenerate.
14040 * configure: Regenerate.
14042 2012-04-16 Yao Qi <yao@codesourcery.com>
14044 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14045 duplicated on address.
14047 2012-04-16 Yao Qi <yao@codesourcery.com>
14049 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14050 (struct tracepoint_action_ops) <send>: New field.
14051 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14052 (agent_expr_send, x_tracepoint_action_send): New.
14053 (l_tracepoint_action_send): New.
14054 (cmd_qtdp): Download and install tracepoint
14055 according to `use_agent'.
14056 (run_inferior_command): Add one more parameter `len'.
14058 (tracepoint_send_agent): New.
14059 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14061 2012-04-16 Yao Qi <yao@codesourcery.com>
14063 * tracepoint.c (download_tracepoints): Moved to ...
14064 (cmd_qtstart): ... here.
14066 2012-04-14 Yao Qi <yao@codesourcery.com>
14068 * tracepoint.c: Include inttypes.h.
14069 (struct collect_memory_action): Use sized types.
14070 (struct tracepoint): Likewise.
14071 (cmd_qtdp, stop_tracing): Update print specifiers.
14072 (cmd_qtp, response_tracepoint): Likewise.
14073 (collect_data_at_tracepoint): Likewise.
14074 (collect_data_at_step): Likewise.
14076 2012-04-14 Yao Qi <yao@codesourcery.com>
14078 Import gnulib module inttypes.
14079 * aclocal.m4, config.in, configure: Regenerated.
14081 2012-04-14 Yao Qi <yao@codesourcery.com>
14083 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14084 Makefile and config.status at last.
14086 2012-04-13 Yao Qi <yao@codesourcery.com>
14088 * tracepoint.c: Include stdint.h unconditionally.
14090 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14092 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14093 on BFD_HAVE_SYS_PROCFS_TYPE.
14094 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14095 * configure: Regenerate.
14096 * config.in: Likewise.
14098 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14100 * Makefile.in (clean): Also remove x32.c x32-linux.c
14101 x32-avx.c x32-avx-linux.c.
14102 (x32.o): New target.
14104 (x32-linux.o): Likewise.
14105 (x32-linux.c): Likewise.
14106 (x32-avx.o): Likewise.
14107 (x32-avx.c): Likewise.
14108 (x32-avx-linux.o): Likewise.
14109 (x32-avx-linux.c): Likewise.
14111 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14112 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14113 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14114 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14115 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14116 i386/x32-avx-linux.xml.
14118 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14119 (init_registers_x32_avx_linux): Likwise.
14120 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14121 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14123 2012-04-13 Pedro Alves <palves@redhat.com>
14125 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14126 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14127 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14128 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14131 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14133 * linux-x86-low.c (compat_x32_clock_t): New.
14134 (compat_x32_siginfo_t): Likewise.
14135 (compat_x32_siginfo_from_siginfo): Likewise.
14136 (siginfo_from_compat_x32_siginfo): Likewise.
14137 (linux_is_elf64): Likewise.
14138 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14139 and siginfo_from_compat_x32_siginfo for x32.
14140 (x86_arch_setup): Set linux_is_elf64.
14142 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14145 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14147 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14148 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14149 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
14150 compatible with process.
14152 2012-04-12 Yao Qi <yao@codesourcery.com>
14154 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14155 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14156 (install-only, install-info, clean): Handle sub dir gnulib.
14157 (all-lib, am--refresh): New targets.
14158 (memmem.o): Remove target.
14159 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14160 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14161 (AC_REPLACE_FUNCS): Remove memmem.
14162 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14163 (AC_OUTPUT): Generate Makefile in gnulib/.
14164 * aclocal.m4, config.in, configure: Regenerated.
14166 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14168 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14170 2012-04-05 Pedro Alves <palves@redhat.com>
14172 -Werror=strict-aliasing
14174 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14177 2012-04-04 Pedro Alves <palves@redhat.com>
14179 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14180 (sparc_store_gregset_from_stack, sparc_store_gregset)
14181 (sparc_breakpoint_at): Fix formatting.
14183 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14185 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14187 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14188 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14189 * config.in: Regenerate.
14190 * configure: Likewise.
14192 2012-03-29 Pedro Alves <palves@redhat.com>
14194 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14195 Correct ptrace arguments.
14197 2012-03-28 Pedro Alves <palves@redhat.com>
14199 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14200 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14201 (IA64_FR1_REGNUM): New defines.
14202 (ia64_fetch_register): New.
14203 (the_low_target): Install it.
14204 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14206 * linux-low.c (linux_fetch_registers): Try the
14207 the_low_target.fetch_register hook first.
14209 * linux-arm-low.c (the_low_target): Adjust.
14210 * linux-bfin-low.c (the_low_target): Adjust.
14211 * linux-cris-low.c (the_low_target): Adjust.
14212 * linux-crisv32-low.c (the_low_target): Adjust.
14213 * linux-m32r-low.c (the_low_target): Adjust.
14214 * linux-m68k-low.c (the_low_target): Adjust.
14215 * linux-mips-low.c (the_low_target): Adjust.
14216 * linux-ppc-low.c (the_low_target): Adjust.
14217 * linux-s390-low.c (the_low_target): Adjust.
14218 * linux-sh-low.c (the_low_target): Adjust.
14219 * linux-sparc-low.c (the_low_target): Adjust.
14220 * linux-tic6x-low.c (the_low_target): Adjust.
14221 * linux-x86-low.c (the_low_target): Adjust.
14222 * linux-xtensa-low.c (the_low_target): Adjust.
14224 2012-03-26 Pedro Alves <palves@redhat.com>
14226 * server.c (handle_qxfer_libraries): Don't bail early if
14227 the_target->qxfer_libraries_svr4 is not NULL.
14229 2012-03-26 Pedro Alves <palves@redhat.com>
14231 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14233 2012-03-23 Pedro Alves <palves@redhat.com>
14235 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14236 "library-list-svr4" element's start tag when the the DSO list is
14239 2012-03-23 Pedro Alves <palves@redhat.com>
14241 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14242 a variable whose type size is the same as the inferior's pointer
14245 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14247 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14249 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14250 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14251 * linux-low.h: Include <signal.h>.
14252 (struct siginfo): Remove forward declaration.
14253 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14256 2012-03-21 Mike Frysinger <vapier@gentoo.org>
14258 * .gitignore: Ignore more files.
14260 2012-03-19 Pedro Alves <palves@redhat.com>
14261 Jan Kratochvil <jan.kratochvil@redhat.com>
14263 * server.c (cont_thread, general_thread): Add describing comments.
14264 (start_inferior): Clear `cont_thread'.
14265 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14268 2012-03-15 Yao Qi <yao@codesourcery.com>
14270 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14272 (cmd_qtdp): ... here.
14274 2012-03-15 Yao Qi <yao@codesourcery.com>
14276 * tracepoint.c (struct tracepoint_action_ops): New.
14277 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14278 (m_tracepoint_action_download): New.
14279 (r_tracepoint_action_download): New.
14280 (x_tracepoint_action_download): New.
14281 (l_tracepoint_action_download): New.
14282 (add_tracepoint_action): Install `action->ops' according type.
14283 (download_tracepoint_1): Move code `download' function pointer
14284 of various tracepoint_action_ops.
14286 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14288 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14289 linux_ptrace_attach_warnings.
14291 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14293 * Makefile.in (linux-ptrace.o): New.
14294 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14295 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14296 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14297 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14298 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14300 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14302 2012-03-08 Yao Qi <yao@codesourcery.com>
14303 Pedro Alves <palves@redhat.com>
14305 Fix PR server/13392.
14306 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14307 offset of JMP insn.
14308 * tracepoint.c (remove_tracepoint): New.
14309 (cmd_qtdp): Call remove_tracepoint when failed to install.
14311 2012-03-07 Pedro Alves <palves@redhat.com>
14313 * linux-low.c (get_detach_signal): New.
14314 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14315 Pass on pending signals to PTRACE_DETACH. Check the result of the
14317 * server.c (program_signals, program_signals_p): New.
14318 (handle_general_set): Handle QProgramSignals.
14319 * server.h (program_signals, program_signals_p): Declare.
14321 2012-03-05 Pedro Alves <palves@redhat.com>
14322 Jan Kratochvil <jan.kratochvil@redhat.com>
14324 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
14327 2012-03-03 Yao Qi <yao@codesourcery.com>
14329 * tracepoint.c (tracepoint_look_up_symbols): Update call to
14330 agent_look_up_symbols.
14332 2012-03-03 Yao Qi <yao@codesourcery.com>
14334 * Makefile.in (linux-low.o): Keep dependence on agent.h.
14335 (linux-x86-low.o): Likewise.
14336 * server.h: Remove in_process_agent_loaded.
14337 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
14341 2012-03-03 Yao Qi <yao@codesourcery.com>
14343 * tracepoint.c (gdb_agent_capability): New global.
14344 (in_process_agent_loaded_ust): Renamed to
14345 `in_process_agent_supports_ust'.
14347 (in_process_agent_supports_ust): Call agent_capability_check.
14348 (clear_installed_tracepoints): Assert that agent supports
14351 2012-03-03 Yao Qi <yao@codesourcery.com>
14353 * linux-low.c (linux_supports_agent): New.
14354 (linux_target_ops): Initialize field `supports_agent' with
14355 linux_supports_agent.
14356 * target.h (struct target_ops) <supports_agent>: New.
14357 (target_supports_agent): New macro.
14358 * server.c (handle_general_set): Handle packet 'QAgent'.
14359 (handle_query): Send `QAgent+'.
14360 * Makefile.in (server.o): Depends on agent.h.
14362 2012-03-03 Yao Qi <yao@codesourcery.com>
14364 * Makefile.in (OBS): Add agent.o.
14365 Add new rule for agent.o.
14366 Track dependence of tracepoint.c on agent.h.
14367 * tracepoint.c (run_inferior_command_1):
14368 (run_inferior_command): Call agent_run_command.
14369 (gdb_ust_connect_sync_socket): Deleted. Move it to
14371 (resume_thread, stop_thread): Likewise.
14372 (gdb_ust_socket_init): Renamed to ...
14373 (gdb_agent_socket_init): ... New.
14374 (gdb_ust_thread): Renamed to ...
14375 (gdb_agent_helper_thread): ... New.
14376 (gdb_ust_init): Move some code to ...
14377 (gdb_agent_init): ... here. New.
14378 [HAVE_UST]: Call gdb_ust_init.
14379 (initialize_tracepoint_ftlib): Call gdb_agent_init.
14380 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
14381 * config.in, configure: Regenerated.
14383 2012-03-02 Pedro Alves <palves@redhat.com>
14385 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
14386 * linux-low.c (struct simple_pid_list): New.
14387 (stopped_pids): New a struct simple_pid_list pointer.
14388 (add_to_pid_list, pull_pid_from_list): New.
14389 (handle_extended_wait): Don't assume the first signal new children
14390 report is SIGSTOP. Adjust call to pull_pid_from_list.
14391 (linux_wait_for_lwp): Adjust.
14393 2012-03-02 Yao Qi <yao@codesourcery.com>
14395 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
14398 2012-03-02 Yao Qi <yao@codesourcery.com>
14400 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
14401 `stop_pc' and `tpoint'. Update caller.
14403 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
14405 * linux-low.h (linux_target_ops): Add regset_bitmap member.
14406 * linux-low.c (use_linux_regsets): New macro.
14407 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
14408 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
14409 (linux_register_in_regsets): New function.
14410 (usr_fetch_inferior_registers): Skip registers covered by
14412 (usr_store_inferior_registers): Likewise.
14413 (usr_fetch_inferior_registers): New macro.
14414 (usr_store_inferior_registers): Likewise.
14415 (linux_fetch_registers): Handle mixed regset/non-regset targets.
14416 (linux_store_registers): Likewise.
14417 * linux-mips-low.c (init_registers_mips_dsp_linux): New
14419 (init_registers_mips64_dsp_linux): Likewise.
14420 (init_registers_mips_linux): New macro.
14421 (init_registers_mips_dsp_linux): Likewise.
14422 (mips_dsp_num_regs): Likewise.
14423 (DSP_BASE, DSP_CONTROL): New fallback macros.
14424 (mips_base_regs): New macro.
14425 (mips_regmap): Use it. Fix the size.
14426 (mips_dsp_regmap): New variable.
14427 (mips_dsp_regset_bitmap): Likewise.
14428 (mips_arch_setup): New function.
14429 (mips_cannot_fetch_register): Use the_low_target.regmap rather
14431 (mips_cannot_store_register): Likewise.
14432 (the_low_target): Update .arch_setup, .num_regs and .regmap
14433 initializers. Add .regset_bitmap initializer.
14434 * linux-arm-low.c (the_low_target): Add .regset_bitmap
14436 * linux-bfin-low.c (the_low_target): Likewise.
14437 * linux-cris-low.c (the_low_target): Likewise.
14438 * linux-crisv32-low.c (the_low_target): Likewise.
14439 * linux-ia64-low.c (the_low_target): Likewise.
14440 * linux-m32r-low.c (the_low_target): Likewise.
14441 * linux-m68k-low.c (the_low_target): Likewise.
14442 * linux-ppc-low.c (the_low_target): Likewise.
14443 * linux-s390-low.c (the_low_target): Likewise.
14444 * linux-sh-low.c (the_low_target): Likewise.
14445 * linux-sparc-low.c (the_low_target): Likewise.
14446 * linux-tic6x-low.c (the_low_target): Likewise.
14447 * linux-x86-low.c (the_low_target): Likewise.
14448 * linux-xtensa-low.c (the_low_target): Likewise.
14449 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
14450 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
14451 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
14453 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
14454 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
14456 2012-02-29 Yao Qi <yao@codesourcery.com>
14457 Pedro Alves <palves@redhat.com>
14459 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
14460 `step_over_finished' is true.
14462 2012-02-27 Pedro Alves <palves@redhat.com>
14464 * linux-low.c (pid_is_stopped): Delete, moved to common/.
14465 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
14467 2012-02-27 Pedro Alves <palves@redhat.com>
14470 * linux-low.c (pid_is_stopped): New.
14471 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
14473 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
14475 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
14478 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
14480 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
14482 2012-02-24 Luis Machado <lgustavo@codesourcery>
14484 * server.c (handle_query): Advertise support for target-side
14485 breakpoint condition evaluation.
14486 (process_point_options): New function.
14487 (process_serial_event): When inserting a breakpoint, check for
14488 a target-side condition that should be evaluated.
14490 * mem-break.c: Include regcache.h and ax.h.
14491 (point_cond_list_t): New data structure.
14492 (breakpoint) <cond_list>: New field.
14493 (find_gdb_breakpoint_at): Make non-static.
14494 (delete_gdb_breakpoint_at): Clear any target-side
14496 (clear_gdb_breakpoint_conditions): New function.
14497 (add_condition_to_breakpoint): Likewise.
14498 (add_breakpoint_condition): Likewise.
14499 (gdb_condition_true_at_breakpoint): Likewise.
14500 (gdb_breakpoint_here): Return result directly instead
14501 of going through a local variable.
14503 * mem-break.h (find_gdb_breakpoint_at): New prototype.
14504 (clear_gdb_breakpoint_conditions): Likewise.
14505 (add_breakpoint_condition): Likewise.
14506 (gdb_condition_true_at_breakpoint): Likewise.
14508 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
14509 (need_step_over_p): Take target-side breakpoint condition into
14512 2012-02-24 Luis Machado <lgustavo@codesourcery>
14514 * server.h: Include tracepoint.h.
14515 (agent_mem_read, agent_get_trace_state_variable_value,
14516 agent_set_trace_state_variable_value,
14517 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
14518 get_set_tsv_func_addr): New prototypes.
14520 * ax.h: New include file.
14521 * ax.c: New source file.
14523 * tracepoint.c: Include ax.h.
14524 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
14525 agent_expr, eval_result_type): Move to ax.h.
14526 (parse_agent_expr): Rename to ...
14527 (gdb_parse_agent_expr): ... this, make it non-static and move
14529 (unparse_agent_expr) Rename to ...
14530 (gdb_unparse_agent_expr): ... this, make it non-static and move
14532 (eval_agent_expr): Rename to ...
14533 (eval_tracepoint_agent_expr): ... this.
14534 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
14535 forward declarations.
14536 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
14537 (agent_get_trace_state_variable_value): New function.
14538 (agent_set_trace_state_variable_value): New function.
14539 (cmd_qtdp): Call gdb_parse_agent_expr (...).
14540 (response_tracepoint): Call gdb_unparse_agent_expr (...).
14541 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
14542 (condition_true_at_tracepoint): Likewise.
14543 (parse_agent_expr): Rename to ...
14544 (gdb_parse_agent_expr): ... this and move to ax.c.
14545 (unparse_agent_expr): Rename to ...
14546 (gdb_unparse_agent_expr): ... this and move to ax.c.
14547 (gdb_agent_op_name): Move to ax.c.
14548 (eval_agent_expr): Rename to ...
14549 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
14551 (eval_tracepoint_agent_expr): New function.
14552 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
14554 (current_insn_ptr, emit_error, struct bytecode_address): Move to
14556 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
14557 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
14558 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
14559 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
14560 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
14561 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
14562 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
14563 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
14564 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
14565 (compile_bytecodes): Remove forward declaration.
14566 (is_goto_target): Move to ax.c.
14567 (compile_bytecodes): Move to ax.c and call
14568 agent_get_trace_state_variable_value (...) and
14569 agent_set_trace_state_variable_value (...).
14571 * Makefile.in: Update ax.c and IPA dependencies.
14573 2012-02-24 Pedro Alves <palves@redhat.com>
14575 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
14576 (cmd_bigqtbuffer_circular): ... this. Only handle
14577 'QTBuffer:circular:'.
14578 (handle_tracepoint_general_set): Adjust.
14580 2012-02-16 Yao Qi <yao@codesourcery.com>
14582 * inferiors.c: Move code to ...
14583 * dll.c: .... here. New.
14584 * server.h: Declare clear_dlls.
14585 * Makefile.in (SFILES): Add dll.c.
14589 2012-02-11 Yao Qi <yao@codesourcery.com>
14591 * server.c: (handle_monitor_command): Add a new parameter
14593 (handle_query): Update caller.
14595 2012-02-09 Joel Brobecker <brobecker@adacore.com>
14597 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
14598 * configure, config.in: Regenerate.
14599 * hostio.c: Provide an alternate implementation if HAVE_READLINK
14602 2012-02-02 Pedro Alves <palves@redhat.com>
14604 Try SIGKILL first, then PTRACE_KILL.
14605 * linux-low.c (linux_kill_one_lwp): New.
14606 (linux_kill_one_lwp): Rename to ...
14607 (kill_one_lwp_callback): ... this. Use the new
14608 linux_kill_one_lwp.
14610 2012-02-02 Pedro Alves <palves@redhat.com>
14612 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
14615 2012-01-27 Pedro Alves <palves@redhat.com>
14617 * linux-low.c (linux_child_pid_to_exec_file): Delete.
14618 (elf_64_file_p): Make static.
14619 (linux_pid_exe_is_elf_64_file): New.
14620 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
14621 Delete declarations.
14622 (linux_pid_exe_is_elf_64_file): Declare.
14623 * linux-x86-low.c (x86_arch_setup): Use
14624 linux_pid_exe_is_elf_64_file.
14626 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14628 * linux-low.c (linux_wait_for_event_1): Rename to ...
14629 (linux_wait_for_event): ... here and merge it with former
14630 linux_wait_for_event - new variable wait_ptid, use it.
14631 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
14633 2012-01-23 Pedro Alves <palves@redhat.com>
14635 * server.c (main): Avoid yet another case of infinite loop while
14636 detaching/killing after a longjmp.
14638 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14641 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
14643 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
14645 * hostio.c (handle_readlink): New function.
14646 (handle_vFile): Call it to handle "vFile:readlink" packets.
14648 2012-01-20 Pedro Alves <palves@redhat.com>
14649 Ulrich Weigand <ulrich.weigand@linaro.org>
14651 * server.c (handle_v_requests): Only support vAttach and vRun to
14652 start multiple processes when in extended protocol mode.
14654 2012-01-17 Pedro Alves <palves@redhat.com>
14656 * tracepoint.c (initialize_tracepoint): Use mmap instead of
14657 memalign plus mprotect to allocate the scratch buffer.
14659 2012-01-13 Pedro Alves <palves@redhat.com>
14661 * server.c (attach_inferior): Clear `cont_thread'.
14663 2012-01-13 Pedro Alves <palves@redhat.com>
14665 * server.c (main): Avoid infinite loop while detaching/killing
14668 2012-01-09 Doug Evans <dje@google.com>
14670 * server.c (start_inferior): Set last_ptid in --wrapper case.
14672 2012-01-06 Yao Qi <yao@codesourcery.com>
14674 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
14676 [IN_PROCESS_AGENT] (debug_agent): New global variable.
14678 2012-01-04 Yao Qi <yao@codesourcery.com>
14680 * tracepoint.c (cmd_qtdp): Print debug message
14681 for static tracepoint.
14683 2012-01-04 Yao Qi <yao@codesourcery.com>
14685 * tracepoint.c (trace_vdebug): Differentiate debug message
14686 between gdbserver and IPA.
14688 2012-01-03 Yao Qi <yao@codesourcery.com>
14690 * tracepoint.c (tracepoint_was_hit): Don't collect for
14693 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14695 * terminal.h: Reformat copyright header.
14697 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14699 * server.c (gdbserver_version): Update copyright year.
14700 * gdbreplay.c (gdbreplay_version): Likewise.
14702 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
14704 * linux-low.c (linux_create_inferior): Put empty if clause for write.
14707 2011-12-18 Hui Zhu <teawater@gmail.com>
14708 * linux-low.c (linux_create_inferior): Save return value to ret.
14710 2011-12-18 Hui Zhu <teawater@gmail.com>
14712 * linux-low.c (linux_create_inferior): Save return value to ret.
14714 2011-12-16 Doug Evans <dje@google.com>
14716 * linux-low.c (linux_create_inferior): If stdio connection,
14717 redirect stdin from /dev/null, stdout to stderr.
14718 * remote-utils.c (remote_is_stdio): New static global.
14719 (remote_connection_is_stdio): New function.
14720 (remote_prepare): Handle stdio connection.
14721 (remote_open): Ditto.
14722 (remote_close): Don't close stdin for stdio connections.
14723 (read_prim,write_prim): New functions. Replace all calls to
14724 read/write to these.
14725 * server.c (main): Watch for "-" argument. Move call to
14726 remote_prepare before start_inferior.
14727 * server.h (STDIO_CONNECTION_NAME): New macro.
14728 (remote_connection_is_stdio): Declare.
14730 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
14731 in debugging output.
14733 2011-12-15 Yao Qi <yao@codesourcery.com>
14735 * tracepoint.c: Include sys/syscall.h.
14736 (gdb_ust_thread): Remove preprocessor conditional.
14738 2011-12-14 Pedro Alves <pedro@codesourcery.com>
14740 * linux-low.c (linux_detach_one_lwp): Call
14741 the_low_target.prepare_to_resume before detaching.
14743 2011-12-14 Yao Qi <yao@codesourcery.com>
14745 * tracepoint.c (gdb_ust_thread): Don't ignore return value
14748 2011-12-14 Yao Qi <yao@codesourcery.com>
14750 * i386-low.c (i386_low_stopped_data_address): Initialize local
14751 variable `control'.
14753 2011-12-13 Pedro Alves <pedro@codesourcery.com>
14757 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
14758 DR_CONTROL unless necessary. Extend comments.
14759 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
14760 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
14762 2011-12-13 Yao Qi <yao@codesourcery.com>
14764 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
14766 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
14768 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14770 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
14771 Print new debug message for such case.
14773 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14775 Fix overlapping memcpy.
14776 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
14777 the read_inferior_memory transfer.
14778 (delete_fast_tracepoint_jump): New variable buf. Use it for the
14779 write_inferior_memory transfer.
14780 (set_fast_tracepoint_jump): New variable buf. Use it for the
14781 read_inferior_memory and write_inferior_memory transfers.
14782 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
14783 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
14784 Use it for the write_inferior_memory transfer.
14785 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
14788 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14790 * linux-low.c (fetch_register, store_register): Make code
14791 consistent, fix formatting.
14793 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14795 * linux-low.c (usr_store_inferior_registers): Factor out code
14796 to handle individual registers into...
14797 (store_register): ... this new function.
14799 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
14801 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
14802 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
14803 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
14804 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
14805 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
14806 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
14807 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
14808 (srv_xmlfiles): Add new XML files.
14810 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
14812 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
14813 (init_registers_s390_linux32v1): Add prototype.
14814 (init_registers_s390_linux32v2): Likewise.
14815 (init_registers_s390_linux64v1): Likewise.
14816 (init_registers_s390_linux64v2): Likewise.
14817 (init_registers_s390x_linux64v1): Likewise.
14818 (init_registers_s390x_linux64v2): Likewise.
14819 (s390_num_regs): Increment to 52.
14820 (s390_regmap): Add orig_r2 register.
14821 (s390_num_regs_3264): Increment to 68.
14822 (s390_regmap_3264): Add orig_r2 register.
14823 (s390_collect_ptrace_register): Handle orig_r2 register.
14824 (s390_supply_ptrace_register): Likewise.
14825 (s390_fill_last_break): New function.
14826 (s390_store_last_break): Likewise.
14827 (s390_fill_system_call): New function.
14828 (s390_store_system_call): Likewise.
14829 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
14831 (s390_check_regset): New function.
14832 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
14833 NT_S390_SYSTEM_CALL regsets and use appropriate description.
14834 Update target_regsets for available register sets.
14836 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
14837 Jan Kratochvil <jan.kratochvil@redhat.com>
14839 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
14840 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
14842 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
14843 * linux-low.h (struct process_info_private): New member r_debug.
14844 * server.c (handle_qxfer_libraries): Call
14845 the_target->qxfer_libraries_svr4.
14846 (handle_qxfer_libraries_svr4): New function.
14847 (qxfer_packets): New entry "libraries-svr4".
14848 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
14849 * target.h (struct target_ops): New member qxfer_libraries_svr4.
14850 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
14851 PACKET_qXfer_libraries_svr4.
14853 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
14855 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
14856 PSW address/mask between 8-byte and 16-byte formats.
14857 (s390_supply_ptrace_register): Likewise.
14858 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
14859 basic addressing mode bit.
14861 2011-11-24 Stan Shebs <stan@codesourcery.com>
14863 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
14865 2011-11-17 Stan Shebs <stan@codesourcery.com>
14867 * tracepoint.c (struct tracepoint): New field traceframe_usage.
14868 (tracing_start_time): New global.
14869 (tracing_stop_time): New global.
14870 (tracing_user_name): New global.
14871 (tracing_notes): New global.
14872 (tracing_stop_note): New global.
14873 (cmd_qtstart): Set traceframe_usage, start_time.
14874 (stop_tracing): Set stop_time.
14875 (cmd_qtstatus): Report additional status.
14876 (cmd_qtp): New function.
14877 (handle_tracepoint_query): Call it.
14878 (cmd_qtnotes): New function.
14879 (handle_tracepoint_general_set): Call it.
14880 (get_timestamp): Rename from tsv_get_timestamp.
14882 2011-11-14 Stan Shebs <stan@codesourcery.com>
14883 Kwok Cheung Yeung <kcy@codesourcery.com>
14885 * linux-x86-low.c (small_jump_insn): New.
14886 (i386_install_fast_tracepoint_jump_pad): Add arguments for
14887 trampoline and error message, build a trampoline and issue a small
14888 jump instruction to it.
14889 (x86_install_fast_tracepoint_jump_pad): Add arguments for
14890 trampoline and error message.
14891 (x86_get_min_fast_tracepoint_insn_len): New.
14892 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
14893 * linux-low.h (struct linux_target_ops): Add arguments to
14894 install_fast_tracepoint_jump_pad operation, add new operation.
14895 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
14897 (linux_get_min_fast_tracepoint_insn_len): New function.
14898 (linux_target_op): Add new operation.
14899 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
14900 (gdb_trampoline_buffer_end): Ditto.
14901 (gdb_trampoline_buffer_error): Ditto.
14902 (struct ipa_sym_addresses): Add fields for new IPA variables.
14903 (symbol_list): Add entries for new IPA variables.
14904 (struct tracepoint): Add fields to hold the address range of the
14905 trampoline used by the tracepoint.
14906 (trampoline_buffer_head): New static variable.
14907 (trampoline_buffer_tail): Ditto.
14908 (claim_trampoline_space): New function.
14909 (have_fast_tracepoint_trampoline_buffer): New function.
14910 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
14912 (install_fast_tracepoint): Ditto, also add error buffer argument.
14913 (cmd_qtminftpilen): New function.
14914 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
14915 (fast_tracepoint_from_trampoline_address): New function.
14916 (fast_tracepoint_collecting): Handle trampoline as part of jump
14918 (set_trampoline_buffer_space): New function.
14919 (initialize_tracepoint): Initialize new IPA variables.
14920 * target.h (struct target_ops): Add arguments to
14921 install_fast_tracepoint_jump_pad operation, add new
14922 get_min_fast_tracepoint_insn_len operation.
14923 (target_get_min_fast_tracepoint_insn_len): New.
14924 (install_fast_tracepoint_jump_pad): Add arguments.
14925 * server.h (IPA_BUFSIZ): Define.
14926 * linux-i386-ipa.c: Include extra header files.
14927 (initialize_fast_tracepoint_trampoline_buffer): New function.
14928 (initialize_low_tracepoint): Call it.
14929 * server.h (set_trampoline_buffer_space): Declare.
14930 (claim_trampoline_space): Ditto.
14931 (have_fast_tracepoint_trampoline_buffer): Ditto.
14933 2011-11-14 Yao Qi <yao@codesourcery.com>
14935 * server.c (handle_query): Handle InstallInTrace for qSupported.
14936 * tracepoint.c (add_tracepoint): Sort list.
14937 (install_tracepoint, download_tracepoint): New.
14938 (cmd_qtdp): Call them to install and download tracepoints.
14939 (sort_tracepoints): Removed.
14940 (cmd_qtstart): Update.
14942 2011-11-14 Yao Qi <yao@codesourcery.com>
14944 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
14945 * mem-break.h: Declare.
14946 * tracepoint.c (cmd_qtstart): Move some code to ...
14947 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
14949 (download_tracepoints): Move some code to ...
14950 (download_tracepoint_1): ... here. New.
14952 2011-11-08 Yao Qi <yao@codesourcery.com>
14954 * remote-utils.c (relocate_instruction): A comment fix.
14956 2011-11-07 Joel Brobecker <brobecker@adacore.com>
14958 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
14959 (i386_dr_low_get_control, i386_dr_low_get_status): Use
14960 dr_status_mirror and dr_control_mirror from debug_reg_state.
14961 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
14962 (i386_initial_stuff): Remove use of deleted globals.
14963 (i386_get_thread_context, i386_set_thread_context,
14964 i386_thread_added): Use dr_status_mirror and dr_control_mirror
14965 from debug_reg_state.
14967 2011-11-05 Yao Qi <yao@codesourcery.com>
14969 * tracepoint.c (gdb_collect): Loop over tracepoints of same
14970 address as TPOINT's.
14972 2011-11-02 Stan Shebs <stan@codesourcery.com>
14974 * tracepoint.c (agent_mem_read_string): New function.
14975 (eval_agent_expr): Call it for tracenz.
14976 * server.c (handle_query): Report support for tracenz.
14978 2011-11-02 Yao Qi <yao@codesourcery.com>
14980 * tracepoint.c (cmd_qtstart): Remove unused local variables.
14982 2011-11-02 Yao Qi <yao@codesourcery.com>
14984 * target.h: Fix a typo in comment.
14986 2011-10-31 Pedro Alves <pedro@codesourcery.com>
14988 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
14989 clobber the breakpoints' shadows with fast tracepoint jumps.
14990 * mem-break.h (check_mem_write): Add `myaddr' parameter.
14991 * target.c (write_inferior_memory): Also pass MYADDR down to
14994 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
14996 * configure.ac: Check support for personality routine.
14997 * configure: Regenerate.
14998 * config.in: Likewise.
14999 * linux-low.c: Include <sys/personality.h>.
15000 Define ADDR_NO_RANDOMIZE if necessary.
15001 (linux_create_inferior): Disable address space randomization when
15002 forking inferior, if requested.
15003 (linux_supports_disable_randomization): New function.
15004 (linux_target_ops): Install it.
15005 * server.h (disable_randomization): Declare.
15006 * server.c (disable_randomization): New global variable.
15007 (handle_general_set): Handle QDisableRandomization.
15008 (handle_query): Likewise for qSupported.
15009 (main): Support --disable-randomization and --no-disable-randomization
15010 command line arguments.
15011 * target.h (struct target_ops): Add supports_disable_randomization.
15012 (target_supports_disable_randomization): New macro.
15014 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15016 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15018 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15019 [!PT_GETDSBT] (target_loadmap): New definition.
15020 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15021 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15022 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15023 and PT_GETDSBT to LINUX_LOADMAP.
15024 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15025 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15027 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15029 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15030 (arm_linux_hwbp_cap): New static variable.
15031 (arm_linux_get_hwbp_cap): Replace by ...
15032 (arm_linux_init_hwbp_cap): ... this new function.
15033 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15034 (arm_linux_get_hw_watchpoint_count): Likewise.
15035 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15036 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15037 (arm_prepare_to_resume): Use perror_with_name instead of error.
15039 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15041 * linux-arm-low.c: Include <signal.h>.
15042 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15043 (struct arm_linux_hwbp_cap): New data type.
15044 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15045 (struct arm_linux_hw_breakpoint): New data type.
15046 (MAX_BPTS, MAX_WPTS): Define.
15047 (struct arch_process_info, struct arch_lwp_info): New data types.
15048 (arm_linux_get_hwbp_cap): New function.
15049 (arm_linux_get_hw_breakpoint_count): Likewise.
15050 (arm_linux_get_hw_watchpoint_count): Likewise.
15051 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15052 (arm_hwbp_control_initialize): Likewise.
15053 (arm_hwbp_control_is_enabled): Likewise.
15054 (arm_hwbp_control_is_initialized): Likewise.
15055 (arm_hwbp_control_disable): Likewise.
15056 (arm_linux_hw_breakpoint_equal): Likewise.
15057 (arm_linux_hw_point_initialize): Likewise.
15058 (struct update_registers_data): New data structure.
15059 (update_registers_callback: New function.
15060 (arm_insert_point): Likewise.
15061 (arm_remove_point): Likewise.
15062 (arm_stopped_by_watchpoint): Likewise.
15063 (arm_stopped_data_address): Likewise.
15064 (arm_new_process): Likewise.
15065 (arm_new_thread): Likewise.
15066 (arm_prepare_to_resume): Likewise.
15067 (the_low_target): Register arm_insert_point, arm_remove_point,
15068 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15069 arm_new_thread, and arm_prepare_to_resume.
15071 2011-09-15 Stan Shebs <stan@codesourcery.com>
15073 * server.h (struct emit_ops): Add compare-goto fields.
15074 * tracepoint.c (gdb_agent_op_sizes): New table.
15075 (emit_eq_goto): New function.
15076 (emit_ne_goto): New function.
15077 (emit_lt_goto): New function.
15078 (emit_le_goto): New function.
15079 (emit_gt_goto): New function.
15080 (emit_ge_goto): New function.
15081 (is_goto_target): New function.
15082 (compile_bytecodes): Recognize special cases of compare-goto
15083 combinations and call specialized emitters for them.
15084 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15085 (amd64_emit_ne_goto): New function.
15086 (amd64_emit_lt_goto): New function.
15087 (amd64_emit_le_goto): New function.
15088 (amd64_emit_gt_goto): New function.
15089 (amd64_emit_ge_goto): New function.
15090 (amd64_emit_ops): Add the new functions.
15091 (i386_emit_eq_goto): New function.
15092 (i386_emit_ne_goto): New function.
15093 (i386_emit_lt_goto): New function.
15094 (i386_emit_le_goto): New function.
15095 (i386_emit_gt_goto): New function.
15096 (i386_emit_ge_goto): New function.
15097 (i386_emit_ops): Add the new functions.
15099 2011-09-08 Stan Shebs <stan@codesourcery.com>
15101 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15102 (i386_emit_epilogue): Restore %ebx.
15104 2011-08-31 Jie Zhang <jzhang918@gmail.com>
15106 * server.c (step_thread): Remove definition.
15107 (process_serial_event): Don't handle Hs.
15108 * server.h (step_thread): Remove declaration.
15109 * target.c (set_desired_inferior): Remove use of step_thread.
15111 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15113 * linux-low.c: Include linux-procfs.h.
15114 (linux_attach_lwp_1): Update comments.
15115 (linux_attach): Scan for existing threads when attaching to a
15116 process that is the tgid.
15117 * Makefile.in: Update dependencies.
15119 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15121 * configure.srv: Add linux-procfs.o dependencies.
15123 2011-08-14 Yao Qi <yao@codesourcery.com>
15125 * target.h (struct target_ops): Fix indent.
15126 * win32-low.c (win32_target_ops): Fix comment.
15128 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
15129 Yao Qi <yao@codesourcery.com>
15131 * Makefile.in (clean): Remove tic6x-*.c files.
15132 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15133 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15134 (tic6x-c64xp-linux.c): Likewise.
15135 * configure.srv: Add support for tic6x-*-uclinux.
15136 * linux-tic6x-low.c: New.
15137 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15139 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
15140 Yao Qi <yao@codesourcery.com>
15142 * target.h (struct target_ops): Add read_loadmap.
15143 * linux-low.c (struct target_loadseg): New type.
15144 (struct target_loadmap): New type.
15145 (linux_read_loadmap): New function.
15146 (linux_target_ops): Add linux_read_loadmap.
15147 * server.c (handle_query): Support qXfer:fdpic:read packet.
15148 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15151 2011-08-05 Eli Zaretskii <eliz@gnu.org>
15153 * win32-low.c: Include <stdint.h>.
15155 2011-07-22 Pedro Alves <pedro@codesourcery.com>
15157 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15158 to the inferior here.
15159 (i386_remove_aligned_watchpoint): Ditto.
15160 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15161 fit part of the watchpoint in the debug registers.
15162 (i386_update_inferior_debug_regs): New.
15163 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15164 registers, and only update the inferior on success.
15165 (i386_low_remove_watchpoint): Ditto.
15167 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15169 * linux-low.c (compare_ints, unique, list_threads, show_process,
15170 linux_core_of_thread): Delete.
15171 (linux_target_ops): Change linux_core_of_thread to
15172 linux_common_core_of_thread.
15173 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15174 * utils.c (malloc_failure): Change type of argument.
15175 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15176 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15177 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15178 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15179 (IPA_OBJS): Add common-utils-ipa.o.
15180 (ptid_h, linux_osdata_h): New macros.
15181 (server_h): Add common/common-utils.h, common/xml-utils.h,
15182 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15184 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15185 ptid.o, buffer.o): New rules.
15186 (linux-low.o): Add common/linux-osdata.h as a dependency.
15187 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15188 * configure.ac: Add AC_HEADER_DIRENT check.
15189 * config.in: Regenerate.
15190 * configure: Regenerate.
15191 * remote-utils.c (xml_escape_text): Delete.
15192 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15193 buffer_xml_printf): Move to common/buffer.c.
15194 * server.c (main): Remove call to initialize_inferiors.
15195 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15196 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15197 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15198 internal_error, gdb_assert, gdb_assert_fail): Delete.
15199 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15200 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15202 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15203 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15204 initialize_inferiors): Delete.
15206 2011-07-20 Pedro Alves <pedro@codesourcery.com>
15208 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15211 2011-05-31 Pedro Alves <pedro@codesourcery.com>
15213 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15215 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15217 2011-05-26 Yao Qi <yao@codesourcery.com>
15219 * Makefile.in (thread-db.o): Track dependence to
15220 common/gdb_thread_db.h.
15221 * thread-db.c: include gdb_thread_db.h from right place.
15223 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15225 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15226 __FILE__ and __LINE__ to internal_error.
15228 2011-05-13 Doug Evans <dje@google.com>
15230 * thread-db.c (try_thread_db_load_from_sdir): New function.
15231 (try_thread_db_load_from_dir): New function.
15232 (thread_db_load_search): Handle $sdir, ignore $pdir.
15233 Remove trying of system directories if search of
15234 libthread-db-search-path fails, that is now done via $sdir.
15236 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15238 * server.c (handle_query): Add EnableDisableTracepoints to the list
15239 of supported features.
15240 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
15242 (cmd_qtenable_disable): New.
15243 (cmd_qtstart): Install tracepoints even if disabled.
15244 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15245 receiving a QTEnable or QTDisable packet.
15246 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15247 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15249 (gdb_probe): Skip data collection if static tracepoint is disabled.
15251 2011-05-10 Doug Evans <dje@google.com>
15253 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15255 2011-05-04 Doug Evans <dje@google.com>
15257 * linux-low.c (linux_join): Skip process lookup.
15258 * spu-low.c (spu_join): Ditto.
15259 * server.c (join_inferiors_callback): Delete.
15260 (process_serial_event): For 'D' packet (detach) call join_inferior
15263 2011-05-04 Joseph Myers <joseph@codesourcery.com>
15265 * README: Don't mention xscale*-*-linux*.
15266 * configure.srv (xscale*-*-linux*): Don't handle target.
15268 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15270 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15272 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15273 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15274 (i386_emit_void_call_2): Likewise.
15276 2011-04-26 Yao Qi <yao@codesourcery.com>
15278 * linux-low.c: Move common macros to linux-ptrace.h.
15279 Include linux-ptrace.h.
15280 * Makefile.in (linux_ptrace_h): New.
15281 (linux-low.o): Depends on linux-ptrace.h.
15283 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15285 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15286 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15287 (remote_prepare): New function with most of the TCP code from ...
15288 (remote_open): ... here. Detect PORT here unconditionally. Move also
15289 setting transport_is_reliable.
15290 * server.c (run_once): New variable.
15291 (gdbserver_usage): Document it.
15292 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15293 the first run if RUN_ONCE.
15294 * server.h (run_once, remote_prepare): New declarations.
15296 2011-04-19 Tom Tromey <tromey@redhat.com>
15298 * win32-low.c (handle_load_dll): Remove duplicate "the".
15300 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15302 Remove support for old Cygwin 1.5 versions.
15303 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15304 function to avoid warning.
15305 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15308 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15310 * gdbserver/server.h (Macro _): Define it if not available.
15312 2011-03-14 Michael Snyder <msnyder@vmware.com>
15314 * hostio.c (handle_close): Remove unnecessary null test.
15316 2011-03-10 Joel Brobecker <brobecker@adacore.com>
15318 * Makefile.in (maintainer-clean realclean distclean): Remove
15319 "make ... subdir_do" command.
15321 2011-03-10 Michael Snyder <msnyder@vmware.com>
15323 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
15325 * server.c (handle_v_run): Free alloced buffer on early return.
15327 2011-03-09 Yao Qi <yao@codesourcery.com>
15330 2011-03-04 Yao Qi <yao@codesourcery.com>
15332 * Makefile.in: Remove GNU make feature --directory.
15334 2011-03-05 Yao Qi <yao@codesourcery.com>
15336 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15337 (subdir_do): New make target. Copied from gdb/Makefile.
15338 (maintainer-clean, realclean, distclean, clean): Call corresponding
15339 make targets in common/Makefile.
15341 2011-02-11 Yao Qi <yao@codesourcery.com>
15343 * configure.ac: Call AC_PROG_RANLIB.
15344 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15345 * configure: Regenerate.
15347 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15349 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
15351 2011-03-06 Yao Qi <yao@codesourcery.com>
15353 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
15355 2011-03-05 Yao Qi <yao@codesourcery.com>
15357 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15358 (subdir_do): New make target. Copied from gdb/Makefile.
15359 (maintainer-clean, realclean, distclean, clean): Call corresponding
15360 make targets in common/Makefile.
15362 2011-03-04 Yao Qi <yao@codesourcery.com>
15364 * Makefile.in: Remove GNU make feature --directory.
15366 2011-03-04 Michael Snyder <msnyder@vmware.com>
15368 * server.c (queue_stop_reply): Call xmalloc not malloc.
15370 2011-03-02 Michael Snyder <msnyder@vmware.com>
15372 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
15374 2011-02-28 Michael Snyder <msnyder@vmware.com>
15376 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
15377 (cmd_qtframe): Ditto.
15378 (cmd_qtbuffer): Ditto.
15379 (cmd_bigqtbuffer): Ditto.
15381 * utils.c (decimal2str): Initialize 'width' to nine, then
15382 don't mess with it.
15384 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15386 * hostio.c (require_data): Free *data, not data.
15388 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15390 * hostio.c (require_data): Use free, not xfree.
15392 2011-02-27 Michael Snyder <msnyder@vmware.com>
15394 * server.c (handle_query): Discard unused value.
15396 * hostio.c (require_data): Free malloc memory before returning
15399 2011-02-26 Michael Snyder <msnyder@vmware.com>
15401 * linux-low.c (list_threads): Call closedir for dirent.
15403 2011-02-27 Michael Snyder <msnyder@vmware.com>
15405 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
15406 a case statement falls through.
15408 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
15410 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
15413 2011-02-26 Michael Snyder <msnyder@vmware.com>
15415 * utils.c (decimal2str): Eliminate dead code and dead param.
15416 (pulongest): Drop dead param from call to decimal2str.
15419 2011-02-24 Joel Brobecker <brobecker@adacore.com>
15421 Revert the following patch (not approved yet):
15422 2011-02-21 Hui Zhu <teawater@gmail.com>
15423 * tracepoint.c (tp_printf): New function.
15424 (eval_agent_expr): Handle gdb_agent_op_printf.
15426 2011-02-21 Hui Zhu <teawater@gmail.com>
15428 * tracepoint.c (tp_printf): New function.
15429 (eval_agent_expr): Handle gdb_agent_op_printf.
15431 2011-02-18 Tom Tromey <tromey@redhat.com>
15433 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
15434 (tracepoint.o): Likewise.
15435 * tracepoint.c (enum gdb_agent_op): Use ax.def.
15436 (gdb_agent_op_names): Likewise.
15438 2011-02-18 Tom Tromey <tromey@redhat.com>
15440 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
15441 gdb_agent_op_rot>: New constants.
15442 (gdb_agent_op_names): Add pick and roll.
15443 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
15446 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15448 * aclocal.m4: Regenerated with aclocal-1.11.1.
15450 2011-02-14 Pedro Alves <pedro@codesourcery.com>
15452 * server.c (handle_qxfer_traceframe_info): New.
15453 (qxfer_packets): Register "traceframe-info".
15454 (handle_query): Report support for qXfer:traceframe-info:read+.
15455 * tracepoint.c (match_blocktype): New.
15456 (traceframe_find_block_type): Rename to ...
15457 (traceframe_walk_blocks): ... this. Add callback filter argument,
15459 (traceframe_find_block_type): New, reimplemented on top of
15460 traceframe_walk_blocks.
15461 (build_traceframe_info_xml): New.
15462 (traceframe_read_info): New.
15463 * server.h (traceframe_read_info): Declare.
15465 2011-02-11 Yao Qi <yao@codesourcery.com>
15467 * configure.ac: Call AC_PROG_RANLIB.
15468 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15469 * configure: Regenerate.
15471 2011-02-07 Pedro Alves <pedro@codesourcery.com>
15473 * server.c (gdb_read_memory): Change return semantics to allow
15475 (handle_search_memory_1): Adjust.
15476 (process_serial_event) <'m' packet>: Handle partial transfers.
15477 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
15479 2011-01-28 Pedro Alves <pedro@codesourcery.com>
15481 * regcache.c (init_register_cache): Initialize
15482 regcache->register_status.
15483 (free_register_cache): Release regcache->register_status.
15484 (regcache_cpy): Copy register_status.
15485 (registers_to_string): Print 'x's for unavailable registers.
15486 (supply_register): Mark the register's status valid or
15487 unavailable, depending on whether a buffer was passed in or not.
15488 (supply_register_zeroed): New.
15489 (supply_regblock): Mark the registers' status valid or
15490 unavailable, depending on whether a buffer was passed in or not.
15491 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
15492 (struct regcache): New `register_status' field.
15493 (supply_register_zeroed): Declare.
15494 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
15495 supply_register_zeroed, rather than passing a NULL buffer to
15497 * tracepoint.c (fetch_traceframe_registers): Update comment.
15499 2011-01-28 Pedro Alves <pedro@codesourcery.com>
15501 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
15504 2011-01-25 Pedro Alves <pedro@codesourcery.com>
15506 * server.h (decode_xfer_write): Change prototype.
15507 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
15508 and don't extract the annex here.
15509 * server.c (decode_xfer_read): Remove `annex' parameter,
15510 and don't extract the annex here.
15511 (decode_xfer): New.
15512 (struct qxfer): New.
15513 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
15514 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
15515 (handle_qxfer_statictrace): New functions, abstracted out from
15516 handle_query, and made to use the struct qxfer interface.
15517 (handle_threads_qxfer_proper): Rename to ...
15518 (handle_qxfer_threads_proper): ... this.
15519 (handle_threads_qxfer): Rename to ...
15520 (handle_qxfer_threads): ... this. Adjust.
15521 (qxfer_packets): New array.
15522 (handle_qxfer): New function.
15523 (handle_query): Use handle_qxfer.
15525 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
15527 * gdbreplay.c: Shorten lines of >= 80 columns.
15528 * linux-low.c: Ditto.
15529 * linux-ppc-low.c: Ditto.
15530 * linux-s390-low.c: Ditto.
15531 * linux-sparc-low.c: Ditto.
15532 * linux-x86-low.c: Ditto.
15533 * linux-xtensa-low.c: Ditto.
15534 * mem-break.c: Ditto.
15535 * nto-low.c: Ditto.
15536 * regcache.h: Ditto.
15537 * remote-utils.c: Ditto.
15540 * thread-db.c: Ditto.
15541 * tracepoint.c: Ditto.
15543 * win32-low.h: Ditto.
15545 2011-01-05 Joel Brobecker <brobecker@adacore.com>
15547 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
15550 2011-01-01 Joel Brobecker <brobecker@adacore.com>
15552 * server.c (gdbserver_version): Update copyright year in version
15554 * gdbreplay.c (gdbreplay_version): Ditto.
15556 2010-12-29 Jie Zhang <jie.zhang@analog.com>
15558 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
15559 * linux-bfin-low.c: New file.
15560 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
15561 PT_DATA_ADDR for BFIN targets.
15562 * Makefile.in (SFILES): Add linux-bfin-low.c.
15563 (clean): Remove reg-bfin.c.
15564 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
15565 * README: Mention supported Blackfin targets.
15567 2010-12-23 Mike Frysinger <vapier@gentoo.org>
15569 * .gitignore: New file.
15571 2010-11-16 Mike Frysinger <vapier@gentoo.org>
15573 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
15575 2010-10-22 Jie Zhang <jie@codesourcery.com>
15577 * Makefile.in: Add FLAGS_TO_PASS variable.
15578 (install): Remove dependency of install-only and recursively
15579 invoke make for install-only.
15581 2010-10-04 Doug Evans <dje@google.com>
15583 * Makefile.in (uninstall): Use $(DESTDIR).
15585 2010-09-24 Pedro Alves <pedro@codesourcery.com>
15589 * linux-x86-low.c (compat_siginfo_from_siginfo)
15590 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
15591 si_code is < 0. Check for si_code == SI_TIMER before checking for
15594 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15596 * lynx-i386-low.c: New file.
15597 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
15599 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15601 * lynx-low.c (ptrace_request_to_str): Remove handling for
15602 request values that have been removed in LynxOS 5.x.
15604 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15606 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
15609 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
15611 * configure.ac: Add --enable-inprocess-agent option.
15612 * configure: Rebuilt.
15614 2010-09-06 Yao Qi <yao@codesourcery.com>
15616 * linux-low.c (linux_kill): Remove unused variable.
15617 (linux_stabilize_threads): Likewise.
15618 * server.c (start_inferior): Likewise.
15619 (queue_stop_reply_callback): Likewise.
15620 * tracepoint.c (do_action_at_tracepoint): Likewise.
15622 2010-09-06 Yao Qi <yao@codesourcery.com>
15624 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
15627 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15629 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
15631 2010-09-06 Pedro Alves <pedro@codesourcery.com>
15633 * Makefile.in (install-only): Replace $IPA_DEPFILES with
15636 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15638 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
15639 gdbserver/lynx-ppc-low.c: New files.
15640 * Makefile.in (lynx_low_h): New variable.
15641 (lynx-low.o, lynx-ppc-low.o): New rules.
15642 * configure.ac: On LynxOS, link with -lnetinet.
15643 * configure.srv: Add handling of powerpc-*-lynxos* targets.
15644 * configure: regenerate.
15646 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15648 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
15649 * configure.ac: Add check for vasprintf and vsnprintf.
15650 * configure, config.in: Regenerate.
15651 * server.h (vasprintf, vsnprintf): Add conditional declarations.
15653 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15655 * gdbreplay.c: Move include of alloca.h up, next to include of
15657 * server.h: Add include of malloc.h.
15658 * mem-break.c: Remove include of malloc.h.
15659 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
15661 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15663 * Makefile.in (memmem.o): Build with -Wno-error.
15665 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15667 * utils.c (xsnprintf): Make non-static.
15668 * server.h: Add xsnprintf declaration.
15669 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
15670 replace calls to snprintf by calls to xsnprintf throughout.
15672 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15674 * configure.ac: Add configure check for alloca.
15675 * configure, config.in: Regenerate.
15676 * server.h: Include alloca.h if it exists.
15677 * gdbreplay.c: Include alloca.h if it exists.
15679 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15681 * linux-low.c (__SIGRTMIN): Define if not already defined.
15682 (linux_create_inferior): Check for __ANDROID__ rather than
15684 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
15685 are already deferred.
15686 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
15687 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
15688 stopped and already has a pending signal to report.
15689 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
15690 a pending signal to report or is moving out of a jump pad.
15691 (linux_init_signals): Check for __ANDROID__ rather than
15694 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15696 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
15697 debug_threads check. Avoid a linear search when not doing debug
15700 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15702 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
15703 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
15704 (struct file_handler) <fd>: Change type to gdb_fildes_t.
15705 (process_event): Change local fd's type to gdb_fildes_t.
15706 (create_file_handler): Adjust prototype.
15707 (delete_file_handler): Adjust prototype.
15708 (handle_file_event): Adjust prototype. Use pfildes.
15709 (create_file_event): Adjsut prototype.
15710 * remote-utils.c (remote_desc, listen_desc): Change type to
15712 * server.h: New gdb_fildes_t typedef.
15713 [USE_WIN32API]: Include winsock2.h.
15714 (delete_file_handler, add_file_handler): Adjust prototypes.
15715 (pfildes): Declare.
15716 * utils.c (pfildes): New.
15718 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15720 * configure.ac (build_warnings): Add -Wno-char-subscripts.
15721 * configure: Regenerate.
15723 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15725 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
15726 (linux_done_accessing_memory): ... this.
15727 (linux_target_ops): Adjust.
15728 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
15729 * nto-low.c (nto_target_ops): Adjust comment.
15730 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
15731 * spu-low.c (spu_target_ops): Adjust comment.
15732 * target.h (target_ops): Rename unprepare_to_access_memory field
15733 to done_accessing_memory.
15734 (unprepare_to_access_memory): Rename to ...
15735 (done_accessing_memory): ... this.
15737 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15739 * linux-low.c (linux_prepare_to_access_memory): New.
15740 (linux_unprepare_to_access_memory): New.
15741 (linux_target_ops): Install them.
15742 * server.c (read_memory): Rename to ...
15743 (gdb_read_memory): ... this. Use
15744 prepare_to_access_memory/prepare_to_access_memory.
15745 (write_memory): Rename to ...
15746 (gdb_write_memory): ... this. Use
15747 prepare_to_access_memory/prepare_to_access_memory.
15748 (handle_search_memory_1): Adjust.
15749 (process_serial_event): Adjust.
15750 * target.h (struct target_ops): New fields
15751 prepare_to_access_memory and unprepare_to_access_memory.
15752 (prepare_to_access_memory, unprepare_to_access_memory): New.
15753 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
15754 prepare_to_access_memory/prepare_to_access_memory.
15755 * nto-low.c (nto_target_ops): Adjust.
15756 * spu-low.c (spu_target_ops): Adjust.
15757 * win32-low.c (win32_target_ops): Adjust.
15759 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15761 * Makefile.in (WARN_CFLAGS): Get it from configure.
15762 (WERROR_CFLAGS): New.
15763 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
15764 * configure.ac: Introduce --enable-werror, which adds -Werror to
15765 the compiler command line. Enabled by default. Disable with
15766 --disable-werror. Add -Wdeclaration-after-statement
15767 Wpointer-arith and -Wformat-nonliteral to warning flags.
15768 * configure: Regenerate.
15770 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15772 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
15774 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15776 * gdbreplay.c (remote_error): New.
15778 (expect): Use gdbchar. Check for error reading from GDB.
15779 Clarify sync error output.
15780 (play): Check for errors writing to GDB.
15781 * linux-low.c (sigchld_handler): Really ignore `write' errors.
15782 * remote-utils.c (getpkt): Check for errors writing to the remote
15785 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15787 * linux-low.c (linux_wait_1): Move non-debugging code out of
15788 `debug_threads' control.
15790 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15792 * linux-low.c (linux_wait_1): Don't set last_status here.
15793 * server.c (push_event, queue_stop_reply_callback): Assert we're
15794 not pushing a TARGET_WAITKIND_IGNORE event.
15795 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
15796 (myresume, handle_target_event): Set the thread's last_resume_kind
15797 and last_status from the target returned status.
15799 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15803 * linux-x86-low.c (update_debug_registers_callback): New.
15804 (i386_dr_low_set_addr): Use it.
15805 (i386_dr_low_get_addr): New.
15806 (i386_dr_low_set_control): Use update_debug_registers_callback.
15807 (i386_dr_low_get_control): New.
15808 (i386_dr_low_get_status): Adjust.
15809 * linux-low.c (linux_stop_lwp): New.
15810 * linux-low.h (linux_stop_lwp): Declare.
15812 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
15813 argument instead of a i386_debug_reg_state.
15814 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
15815 a i386_debug_reg_state.
15816 (i386_insert_aligned_watchpoint): Adjust.
15817 (i386_remove_aligned_watchpoint): Adjust.
15818 (i386_low_stopped_data_address): Read the debug registers from the
15819 inferior instead of from the mirrors.
15820 * i386-low.h (struct i386_debug_reg_state): Extend comment.
15821 (i386_dr_low_get_addr): Declare.
15822 (i386_dr_low_get_control): Declare.
15823 (i386_dr_low_get_status): Change prototype.
15825 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
15826 (i386_dr_low_get_addr): New.
15827 (i386_dr_low_get_control): New.
15828 (i386_dr_low_get_status): Adjust prototype. Return
15830 (i386_initial_stuff): Clear dr_status_mirror and
15832 (i386_get_thread_context): Adjust.
15833 (i386_set_thread_context): Adjust.
15834 (i386_thread_added): Adjust.
15836 2010-08-24 Pedro Alves <pedro@codesourcery.com>
15838 * linux-low.h (linux_thread_area): Delete declaration.
15840 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
15842 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
15843 after its termination.
15845 2010-08-09 Pedro Alves <pedro@codesourcery.com>
15847 * linux-low.c (gdb_wants_lwp_stopped): Delete.
15848 (gdb_wants_all_stopped): Delete.
15849 (linux_wait_1): Don't call them.
15850 * server.c (handle_v_cont): Tag all threads as want-stopped.
15851 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
15852 stopped as "client-wants-stopped".
15854 2010-07-31 Pedro Alves <pedro@codesourcery.com>
15856 * Makefile.in (signals_h): New.
15857 (server_h): Depend on it.
15858 (server.o): Don't depend on $(signals_def).
15859 (signals.o): Depend on $(signals_def).
15861 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
15863 * Makefile.in (signals_def): New.
15864 (server_h): Append include/gdb/signals.h and signals_def.
15865 (server.o): Append signals_def.
15867 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15869 * server.c (handle_target_event): Use target_signal_to_host for
15870 resume_info.sig initialization.
15871 * target.h (struct thread_resume) <sig>: New comment.
15873 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
15875 * server.c (handle_query): strcpy() the returned string from paddress()
15876 instead of sprintf().
15877 * utils.c (paddress): Return phex_nz().
15879 2010-07-07 Joel Brobecker <brobecker@adacore.com>
15881 * server.c (handle_v_cont): Call mourn_inferior if process
15883 (myresume): Likewise.
15885 2010-07-01 Pedro Alves <pedro@codesourcery.com>
15887 Static tracepoints, and integration with UST.
15889 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
15890 * mem-break.c (uninsert_all_breakpoints)
15891 (reinsert_all_breakpoints): New.
15892 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
15893 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
15894 (gdb_agent_ust_loaded, helper_thread_id)
15895 (gdb_agent_helper_thread_id): New macros.
15896 (struct ipa_sym_addresses): Add addr_ust_loaded,
15897 addr_helper_thread_id, addr_cmd_buf.
15898 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
15899 (in_process_agent_loaded_ust): New.
15900 (write_e_ust_not_loaded): New.
15901 (maybe_write_ipa_ust_not_loaded): New.
15902 (struct collect_static_trace_data_action): New.
15903 (enum tracepoint_type) <static_tracepoint>: New.
15904 (struct tracepoint) <handle>: Mention static tracepoints.
15905 (struct static_tracepoint_ctx): New.
15906 (CMD_BUF_SIZE): New.
15907 (add_tracepoint_action): Handle static tracepoint actions.
15908 (unprobe_marker_at): New.
15909 (clear_installed_tracepoints): Handle static tracepoints.
15910 (cmd_qtdp): Handle static tracepoints.
15911 (probe_marker_at): New.
15912 (cmd_qtstart): Handle static tracepoints.
15913 (response_tracepoint): Handle static tracepoints.
15914 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
15915 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
15916 (get_context_regcache): Handle static tracepoints.
15917 (do_action_at_tracepoint): Handle static tracepoint actions.
15918 (traceframe_find_block_type): Handle static trace data blocks.
15919 (traceframe_read_sdata): New.
15920 (download_tracepoints): Download static tracepoint actions.
15921 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
15922 (GDB_PROBE_NAME): New.
15924 (GET_UST_SYM): New.
15927 (ust_marker_to_static_tracepoint): New.
15929 (collect_ust_data_at_tracepoint): New.
15930 (gdb_ust_probe): New.
15931 (UNIX_PATH_MAX, SOCK_DIR): New.
15932 (gdb_ust_connect_sync_socket): New.
15933 (resume_thread, stop_thread): New.
15934 (run_inferior_command): New.
15935 (init_named_socket): New.
15936 (gdb_ust_socket_init): New.
15937 (cstr_to_hexstr): New.
15939 (first_marker, next_marker): New.
15940 (response_ust_marker): New.
15941 (cmd_qtfstm, cmd_qtsstm): New.
15942 (unprobe_marker_at, probe_marker_at): New.
15943 (cmd_qtstmat, gdb_ust_thread): New.
15944 (gdb_ust_init): New.
15945 (initialize_tracepoint_ftlib): Call gdb_ust_init.
15946 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
15947 (ST_REGENTRY): New.
15948 (x86_64_st_collect_regmap): New.
15949 (X86_64_NUM_ST_COLLECT_GREGS): New.
15950 (AMD64_RIP_REGNUM): New.
15951 (supply_static_tracepoint_registers): New.
15952 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
15953 (ST_REGENTRY): New.
15954 (i386_st_collect_regmap): New.
15955 (i386_NUM_ST_COLLECT_GREGS): New.
15956 (supply_static_tracepoint_registers): New.
15957 * server.c (handle_query): Handle qXfer:statictrace:read.
15958 <qSupported>: Report support for StaticTracepoints, and
15959 qXfer:statictrace:read features.
15960 * server.h (traceframe_read_sdata)
15961 (supply_static_tracepoint_registers): Declare.
15962 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
15963 (unpack_varlen_hex): Include in IPA build.
15964 * Makefile.in (ustlibs, ustinc): New.
15965 (IPA_OBJS): Add remote-utils-ipa.o.
15966 ($(IPA_LIB)): Link -ldl and -lpthread.
15968 (IPAGENT_CFLAGS): Add UST_CFLAGS.
15969 * config.in, configure: Regenerate.
15971 2010-06-20 Ian Lance Taylor <iant@google.com>
15972 Pedro Alves <pedro@codesourcery.com>
15974 * linux-x86-low.c (always_true): Delete.
15975 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
15976 trying to fool the compiler with always_true.
15978 2010-06-20 Pedro Alves <pedro@codesourcery.com>
15980 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
15981 conditions in gdbserver.
15983 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
15985 * spu-low.c (spu_read_memory): Wrap around local store limit.
15986 (spu_write_memory): Likewise.
15988 2010-06-15 Pedro Alves <pedro@codesourcery.com>
15990 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
15991 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
15993 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
15995 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
15996 uses with LONGEST uses.
15998 2010-06-14 Stan Shebs <stan@codesourcery.com>
15999 Pedro Alves <pedro@codesourcery.com>
16003 * linux-x86-low.c: Include limits.h.
16005 (always_true): New.
16008 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16009 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16010 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16011 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16012 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16013 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16014 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16015 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16016 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16017 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16018 (amd64_emit_void_call_2): New.
16019 (amd64_emit_ops): New.
16020 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16021 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16022 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16023 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16024 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16025 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16026 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16027 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16028 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16029 (i386_emit_stack_adjust, i386_emit_int_call_1)
16030 (i386_emit_void_call_2): New.
16031 (i386_emit_ops): New.
16032 (x86_emit_ops): New.
16033 (the_low_target): Install x86_emit_ops.
16034 * server.h (struct emit_ops): New.
16035 (get_raw_reg_func_addr): Declare.
16036 (current_insn_ptr, emit_error): Declare.
16037 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16038 (set_trace_state_variable_value): New defines.
16039 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16040 addr_get_trace_state_variable_value and
16041 addr_set_trace_state_variable_value.
16042 (symbol_list): New fields for get_raw_reg,
16043 get_trace_state_variable_value and set_trace_state_variable_value.
16044 (condfn): New typedef.
16045 (struct tracepoint): New field `compiled_cond'.
16046 (do_action_at_tracepoint): Clear compiled_cond.
16047 (get_trace_state_variable_value, set_trace_state_variable_value):
16049 (condition_true_at_tracepoint): If there's a compiled condition,
16051 (current_insn_ptr, emit_error): New globals.
16052 (struct bytecode_address): New.
16053 (get_raw_reg_func_addr): New.
16054 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16055 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16056 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16057 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16058 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16059 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16060 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16061 (compile_tracepoint_condition, compile_bytecodes): New.
16062 * target.h (emit_ops): Forward declare.
16063 (struct target_ops): New field emit_ops.
16064 (target_emit_ops): New.
16065 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16066 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16067 * linux-low.c (linux_emit_ops): New.
16068 (linux_target_ops): Install it.
16069 * linux-low.h (struct linux_target_ops): New field emit_ops.
16071 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16073 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16074 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16076 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16077 Stan Shebs <stan@codesourcery.com>
16079 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16080 (all): Depend on $(extra_libraries).
16081 (install-only): Install the IPA.
16082 (IPA_OBJS, IPA_LIB): New.
16083 (clean): Remove the IPA lib.
16084 (IPAGENT_CFLAGS): New.
16085 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16086 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16087 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16088 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16089 * configure.ac: Check for atomic builtins support in the compiler.
16090 (IPA_DEPFILES, extra_libraries): Define.
16091 * configure.srv (ipa_obj): Add description.
16092 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16093 (i[34567]86-*-linux*): Set ipa_obj.
16094 (x86_64-*-linux*): Set ipa_obj.
16095 * linux-low.c (stabilizing_threads): New.
16096 (supports_fast_tracepoints): New.
16097 (linux_detach): Stabilize threads before detaching.
16098 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16099 the lwp is either not stabilizing, or is moving out of a jump pad.
16100 (linux_fast_tracepoint_collecting): New.
16101 (maybe_move_out_of_jump_pad): New.
16102 (enqueue_one_deferred_signal): New.
16103 (dequeue_one_deferred_signal): New.
16104 (linux_wait_for_event_1): If moving out of a jump pad, defer
16105 pending signals to later.
16106 (linux_stabilize_threads): New.
16107 (linux_wait_1): Check if threads need moving out of jump pads, and
16109 (stuck_in_jump_pad_callback): New.
16110 (move_out_of_jump_pad_callback): New.
16111 (lwp_running): New.
16112 (linux_resume_one_lwp): Handle moving out of jump pads.
16113 (linux_set_resume_request): Dequeue deferred signals.
16114 (need_step_over_p): Also step over fast tracepoint jumps.
16115 (start_step_over): Also uninsert fast tracepoint jumps.
16116 (finish_step_over): Also reinsert fast tracepoint jumps.
16117 (linux_install_fast_tracepoint_jump): New.
16118 (linux_target_ops): Install linux_stabilize_threads and
16119 linux_install_fast_tracepoint_jump_pad.
16120 * linux-low.h (linux_target_ops) <get_thread_area,
16121 install_fast_tracepoint_jump_pad>: New fields.
16122 (struct lwp_info) <collecting_fast_tracepoint,
16123 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16124 (linux_get_thread_area): Declare.
16125 * linux-x86-low.c (jump_insn): New.
16126 (x86_get_thread_area): New.
16127 (append_insns): New.
16128 (push_opcode): New.
16129 (amd64_install_fast_tracepoint_jump_pad): New.
16130 (i386_install_fast_tracepoint_jump_pad): New.
16131 (x86_install_fast_tracepoint_jump_pad): New.
16132 (the_low_target): Install x86_get_thread_area and
16133 x86_install_fast_tracepoint_jump_pad.
16134 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16135 (struct fast_tracepoint_jump): New.
16136 (fast_tracepoint_jump_insn): New.
16137 (fast_tracepoint_jump_shadow): New.
16138 (find_fast_tracepoint_jump_at): New.
16139 (fast_tracepoint_jump_here): New.
16140 (delete_fast_tracepoint_jump): New.
16141 (set_fast_tracepoint_jump): New.
16142 (uninsert_fast_tracepoint_jumps_at): New.
16143 (reinsert_fast_tracepoint_jumps_at): New.
16144 (set_breakpoint_at): Use write_inferior_memory.
16145 (uninsert_raw_breakpoint): Use write_inferior_memory.
16146 (check_mem_read): Mask out fast tracepoint jumps.
16147 (check_mem_write): Mask out fast tracepoint jumps.
16148 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16149 (set_fast_tracepoint_jump): Declare.
16150 (delete_fast_tracepoint_jump)
16151 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
16152 (reinsert_fast_tracepoint_jumps_at): Declare.
16153 * regcache.c: Don't compile many functions when building the
16154 in-process agent library.
16155 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16156 the register buffer in the heap.
16157 (free_register_cache): If the register buffer isn't owned by the
16158 regcache, don't free it.
16159 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16160 pre-existing register caches.
16161 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16163 (convert_ascii_to_int): : Constify `from' parameter type.
16164 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16165 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16166 the needed buffer in-place.
16167 (relocate_instruction): New.
16168 * server.c (handle_query) <qSymbols>: If the target supports
16169 tracepoints, give it a chance of looking up symbols. Report
16170 support for fast tracepoints.
16171 (handle_status): Stabilize threads.
16172 (process_serial_event): Adjust.
16173 * server.h (struct fast_tracepoint_jump): Forward declare.
16174 (struct process_info) <fast_tracepoint_jumps>: New field.
16175 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16176 (decode_X_packet, decode_M_packet): Adjust.
16177 (relocate_instruction): Declare.
16178 (in_process_agent_loaded): Declare.
16179 (tracepoint_look_up_symbols): Declare.
16180 (struct fast_tpoint_collect_status): Declare.
16181 (fast_tracepoint_collecting): Declare.
16182 (force_unlock_trace_buffer): Declare.
16183 (handle_tracepoint_bkpts): Declare.
16184 (initialize_low_tracepoint)
16185 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16186 * target.h (struct target_ops) <stabilize_threads,
16187 install_fast_tracepoint_jump_pad>: New fields.
16188 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16189 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16190 [HAVE_STDINT_H]: Include stdint.h.
16191 (trace_debug_1): Rename to ...
16192 (trace_vdebug): ... this.
16193 (trace_debug): Rename to ...
16194 (trace_debug_1): ... this. Add `level' parameter.
16195 (trace_debug): New.
16196 (ATTR_USED, ATTR_NOINLINE): New.
16197 (IP_AGENT_EXPORT): New.
16198 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16199 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16200 (about_to_request_buffer_space, trace_buffer_is_full)
16201 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16202 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16203 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16204 (traceframe_write_count, traceframes_created)
16205 (trace_state_variables)
16206 New renaming defines.
16207 (struct ipa_sym_addresses): New.
16208 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16209 (symbol_list): New.
16210 (ipa_sym_addrs): New.
16211 (all_tracepoint_symbols_looked_up): New.
16212 (in_process_agent_loaded): New.
16213 (write_e_ipa_not_loaded): New.
16214 (maybe_write_ipa_not_loaded): New.
16215 (tracepoint_look_up_symbols): New.
16216 (debug_threads) [IN_PROCESS_AGENT]: New.
16217 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16218 (UNKNOWN_SIDE_EFFECTS): New.
16219 (stop_tracing): New.
16220 (flush_trace_buffer): New.
16221 (stop_tracing_bkpt): New.
16222 (flush_trace_buffer_bkpt): New.
16223 (read_inferior_integer): New.
16224 (read_inferior_uinteger): New.
16225 (read_inferior_data_pointer): New.
16226 (write_inferior_data_pointer): New.
16227 (write_inferior_integer): New.
16228 (write_inferior_uinteger): New.
16229 (struct collect_static_trace_data_action): Delete.
16230 (enum tracepoint_type): New.
16231 (struct tracepoint) <type>: New field `type'.
16232 <actions_str, step_actions, step_actions_str>: Only include in
16234 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16235 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16236 (tracepoints): Use IP_AGENT_EXPORT.
16237 (last_tracepoint): Don't include in the IPA.
16238 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16239 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16240 (alloced_trace_state_variables): New.
16241 (trace_state_variables): Use IP_AGENT_EXPORT.
16242 (traceframe_t): Delete unused variable.
16243 (circular_trace_buffer): Don't include in the IPA.
16244 (trace_buffer_start): Delete.
16245 (struct trace_buffer_control): New.
16246 (trace_buffer_free): Delete.
16247 (struct ipa_trace_buffer_control): New.
16248 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16249 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16251 (trace_buffer_ctrl): New.
16252 (TRACE_BUFFER_CTRL_CURR): New.
16253 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16254 Reimplement as macros.
16255 (trace_buffer_wrap): Delete.
16256 (traceframe_write_count, traceframe_read_count)
16257 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16258 (struct tracepoint_hit_ctx) <type>: New field.
16259 (struct fast_tracepoint_ctx): New.
16260 (memory_barrier): New.
16262 (record_tracepoint_error): Update atomically in the IPA.
16263 (clear_inferior_trace_buffer): New.
16264 (about_to_request_buffer_space): New.
16265 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16266 updating the same buffer.
16267 (add_tracepoint): Default the tracepoint's type to trap
16268 tracepoint, and orig_size to -1.
16269 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16270 internal variables.
16271 (create_trace_state_variable): New parameter `gdb'. Handle it.
16272 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16273 (cmd_qtdp): Handle fast tracepoints.
16274 (cmd_qtdv): Adjust.
16275 (max_jump_pad_size): New.
16276 (gdb_jump_pad_head): New.
16277 (get_jump_space_head): New.
16278 (claim_jump_space): New.
16279 (sort_tracepoints): New.
16280 (MAX_JUMP_SIZE): New.
16281 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16283 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16284 support. Upload fast traceframes, and delete internal IPA
16286 (stop_tracing_handler): New.
16287 (flush_trace_buffer_handler): New.
16288 (cmd_qtstop): Upload fast tracepoints.
16289 (response_tracepoint): Handle fast tracepoints.
16290 (tracepoint_finished_step): Upload fast traceframes. Set the
16291 tracepoint hit context's tracepoint type.
16292 (handle_tracepoint_bkpts): New.
16293 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16294 type. Add comment about fast tracepoints.
16295 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16296 non-existing action_str field.
16297 (get_context_regcache): Handle fast tracepoints.
16298 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16300 (fast_tracepoint_from_jump_pad_address): New.
16301 (fast_tracepoint_from_ipa_tpoint_address): New.
16302 (collecting_t): New.
16303 (force_unlock_trace_buffer): New.
16304 (fast_tracepoint_collecting): New.
16306 (gdb_collect): New.
16307 (write_inferior_data_ptr): New.
16308 (target_tp_heap): New.
16309 (target_malloc): New.
16310 (download_agent_expr): New.
16312 (download_tracepoints): New.
16313 (download_trace_state_variables): New.
16314 (upload_fast_traceframes): New.
16315 (IPA_FIRST_TRACEFRAME): New.
16316 (IPA_NEXT_TRACEFRAME_1): New.
16317 (IPA_NEXT_TRACEFRAME): New.
16318 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
16319 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
16320 (gdb_jump_pad_buffer_end): New.
16321 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
16322 (initialize_tracepoint): Adjust.
16323 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
16324 buffer. Initialize the low module.
16325 * utils.c (PREFIX, TOOLNAME): New.
16326 (malloc_failure): Use PREFIX.
16327 (error): In the IPA, an error causes an exit.
16328 (fatal, warning): Use PREFIX.
16329 (internal_error): Use TOOLNAME.
16330 (NUMCELLS): Increase to 10.
16331 * configure, config.in: Regenerate.
16333 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16335 * server.c (handle_query) <qSupported>: Do two passes over the
16336 qSupported string to avoid nesting strtok.
16338 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16340 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
16342 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
16343 -Wl,--dynamic-list.
16344 * configure: Regenerate.
16345 * proc-service.list: New.
16347 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16349 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
16352 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
16354 * gdbreplay.c (remote_open): Check error return from socket() call by
16355 its equality to -1 not by it being negative.
16356 * remote-utils.c (remote_open): Likewise.
16358 2010-05-23 Pedro Alves <pedro@codesourcery.com>
16360 * config.h: Regenerate.
16362 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16364 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
16365 doesn't provide PTRACE_GET_THREAD_AREA.
16367 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16369 * linux-m68k-low.c: Include <asm/ptrace.h>
16370 (ps_get_thread_area): Implement.
16372 2010-05-03 Doug Evans <dje@google.com>
16374 * event-loop.c (struct callback_event): New struct.
16375 (callback_list): New global.
16376 (append_callback_event, delete_callback_event): New functions.
16377 (process_callback): New function.
16378 (start_event_loop): Call it.
16379 * remote-utils.c (NOT_SCHEDULED): Define.
16380 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
16381 moved out of readchar.
16382 (readchar): Rewrite. Call reschedule before returning.
16383 (reset_readchar): New function.
16384 (remote_close): Call it.
16385 (process_remaining, reschedule): New functions.
16386 * server.h (callback_handler_func): New typedef.
16387 (append_callback_event, delete_callback_event): Declare.
16389 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16391 * proc-service.c (ps_pglobal_lookup): Use
16392 thread_db_look_up_one_symbol.
16393 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
16394 parameter. Use it instead of all_symbols_looked_up.
16395 * server.h (struct process_info) <all_symbols_looked_up>: Delete
16397 (all_symbols_looked_up): Don't declare.
16398 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
16399 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
16401 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
16402 Set all_symbols_looked_up here.
16403 (thread_db_look_up_one_symbol): New.
16404 (thread_db_get_tls_address): Adjust.
16405 (thread_db_load_search, try_thread_db_load_1): Always allocate the
16406 thread_db object on the heap, and tentatively set it in the
16408 (thread_db_init): Don't set all_symbols_looked_up here.
16409 * linux-low.h (thread_db_look_up_one_symbol): Declare.
16411 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16413 * linux-low.c (linux_kill, linux_detach): Adjust.
16414 (status_pending_p_callback): Remove redundant statement. Check
16415 for !TARGET_WAITIKIND_IGNORE, instead of
16416 TARGET_WAITKIND_STOPPED.
16417 (handle_tracepoints): Make sure LWP is locked. Adjust.
16418 (linux_wait_for_event_1): Adjust.
16419 (linux_cancel_breakpoints): New.
16420 (unsuspend_one_lwp): New.
16421 (unsuspend_all_lwps): New.
16422 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
16423 (send_sigstop_callback): Change return type to int, add new
16424 `except' parameter and handle it.
16425 (suspend_and_send_sigstop_callback): New.
16426 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
16427 pass them down. If SUSPEND, also increment the lwp's suspend
16429 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
16430 (need_step_over_p): Don't consider suspended LWPs.
16431 (start_step_over): Adjust.
16432 (proceed_one_lwp): Change return type to int, add new `except'
16433 parameter and handle it.
16434 (unsuspend_and_proceed_one_lwp): New.
16435 (proceed_all_lwps): Use find_inferior instead of
16437 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
16438 also decrement the suspend count of LWPs. Pass `except' down,
16439 instead of hacking its suspend count.
16440 (linux_pause_all): Add `freeze' parameter. Adjust.
16441 (linux_unpause_all): New.
16442 (linux_target_ops): Install linux_unpause_all.
16443 * server.c (handle_status): Adjust.
16444 * target.h (struct target_ops): New fields `unpause_all' and
16445 `cancel_breakpoints'. Add new parameter to `pause_all'.
16446 (pause_all): Add new `freeze' parameter.
16447 (unpause_all): New.
16448 (cancel_breakpoints): New.
16449 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
16450 cancel breakpoints.
16451 (cmd_qtstart): Pause threads.
16452 (stop_tracing): Pause threads, and cancel breakpoints.
16453 * win32-low.c (win32_target_ops): Adjust.
16455 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16457 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
16458 the inferior right away from here...
16459 (linux_wait_1): ... to here, and adjust to check the thread's
16460 last_resume_kind instead of the lwp's step or stop_expected flags.
16462 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16464 * README: Use consistent `GDB' and `GDBserver' spellings.
16466 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16468 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
16469 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
16470 (linux_detach_one_lwp): Assume the lwp is stopped.
16471 (any_thread_of): Delete.
16472 (linux_detach): Stop all lwps here. Don't blindly delete all
16474 (delete_lwp_callback): New.
16475 (linux_mourn): Delete all lwps of the process that is gone.
16476 (linux_wait_1): Don't delete the last lwp of the process here.
16477 * mem-break.h (mark_breakpoints_out): Declare.
16478 * mem-break.c (mark_breakpoints_out): New.
16479 (free_all_breakpoints): Use it.
16480 * server.c (handle_target_event): If the process is gone, mark
16482 * thread-db.c (struct thread_db) <create_bp>: New field.
16483 (thread_db_enable_reporting): Fix prototype. Store a thread event
16484 breakpoint reference in the thread_db struct.
16485 (thread_db_load_search): Clear the thread_db object.
16486 (try_thread_db_load_1): Ditto.
16487 (switch_to_process): New.
16488 (disable_thread_event_reporting): Use it.
16489 (remove_thread_event_breakpoints): New.
16490 (thread_db_detach, thread_db_mourn): Use it.
16492 2010-05-01 Pedro Alves <pedro@codesourcery.com>
16494 * linux-low.c (linux_enable_event_reporting): New.
16495 (linux_wait_for_event_1, handle_extended_wait): Use it.
16497 2010-04-30 Pedro Alves <pedro@codesourcery.com>
16499 * linux-low.c (linux_kill_one_lwp, linux_kill)
16500 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
16501 (send_sigstop): Take an lwp_info as parameter instead. Queue a
16502 SIGSTOP even if the LWP is stopped.
16503 (send_sigstop_callback): New.
16504 (stop_all_lwps): Use send_sigstop_callback instead.
16505 (linux_resume_one_thread): Adjust.
16506 (proceed_one_lwp): Still proceed an LWP that the client has
16507 requested to stop, if we haven't reported it as stopped yet. Make
16508 sure that LWPs the client want stopped, have a pending SIGSTOP.
16510 2010-04-26 Doug Evans <dje@google.com>
16512 * server.c (handle_general_set): Make static.
16514 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
16515 Print received char after testing for error/eof instead of before.
16516 (input_interrupt): Tweak comment.
16518 2010-04-23 Doug Evans <dje@google.com>
16520 * server.c (start_inferior): Print inferior argv if --debug.
16522 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
16524 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
16525 * nto-x86-low.c: Include server.h
16527 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
16529 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
16530 be consistent with other sources of this directory.
16531 (init_registers_amd64): Correct name of source file of this function
16534 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16536 * configure.srv (x86_64-*-mingw*): New configuration for Windows
16537 64-bit executables.
16539 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16541 * win32-i386-low.c: Add 64-bit support.
16542 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
16543 (init_registers_amd64): Declare.
16544 (mappings): Add 64-bit version of array.
16545 (init_windows_x86): New function.
16546 (the_low_target): Change init_arch field to init_windows_x86.
16548 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16550 * win32-low.c: Adapt to support also 64-bit architecture.
16551 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
16552 (get_image_name): Use SIZE_T type for local variable `done'.
16553 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
16554 (toolhelp_get_dll_name): Idem.
16555 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
16556 Use uintptr_t typecast to avoid warning.
16557 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
16558 (handle_exception): Use phex_nz to avoid warning.
16559 (win32_wait): Remove unused local variable `process'.
16561 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16563 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
16566 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
16568 * configure.ac: Use `ws2_32' library for srv_mingw.
16569 * configure: Regenerate.
16570 * gdbreplay.c: Include winsock2.h instead of winsock.h.
16571 * remote-utils.c: Likewise.
16573 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
16575 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
16576 if __x86_64__ is defined.
16578 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16580 * configure: Regenerate.
16582 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16584 * server.c (handle_query): Handle 'qGetTIBAddr' query.
16585 * target.h (target_ops): New get_tib_address field.
16586 * win32-low.h (win32_thread_info): Add thread_local_base field.
16587 * win32-low.c (child_add_thread): Add tlb argument.
16588 Set thread_local_base field to TLB.
16589 (get_child_debug_event): Adapt to child_add_thread change.
16590 (win32_get_tib_address): New function.
16591 (win32_target_ops): Set get_tib_address field to
16592 win32_get_tib_address.
16593 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
16595 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16597 * linux-low.c (linux_mourn): Also remove the process.
16598 * server.c (handle_target_event): Don't remove the process here.
16599 * nto-low.c (nto_mourn): New.
16600 (nto_target_ops): Install it.
16601 * spu-low.c (spu_mourn): New.
16602 (spu_target_ops): Install it.
16603 * win32-low.c (win32_mourn): New.
16604 (win32_target_ops): Install it.
16606 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16608 * server.h (buffer_xml_printf): Remove redundant `;'.
16610 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16612 * regcache.c (set_register_cache): Invalidate regcaches before
16613 changing the register cache layout.
16614 (regcache_invalidate_one): Allow a NULL regcache.
16615 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
16616 regcaches before changing the register cache layout or the target
16619 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
16621 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
16622 variable warning on Linux/x86-64.
16624 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16626 GDBserver disconnected tracing support.
16628 * linux-low.c (linux_remove_process): Delete.
16629 (add_lwp): Don't set last_resume_kind here.
16630 (linux_kill): Use `mourn'.
16631 (linux_detach): Use `thread_db_detach', and `mourn'.
16632 (linux_mourn): New.
16633 (linux_attach_lwp_1): Adjust comment.
16634 (linux_attach): last_resume_kind moved the thread_info; adjust.
16635 (status_pending_p_callback): Adjust.
16636 (linux_wait_for_event_1): Adjust.
16637 (count_events_callback, select_singlestep_lwp_callback)
16638 (select_event_lwp_callback, cancel_breakpoints_callback)
16639 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
16640 (proceed_one_lwp): Adjust.
16641 (linux_async): Add debug output.
16642 (linux_thread_stopped): New.
16643 (linux_pause_all): New.
16644 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
16646 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
16647 (thread_db_free): Delete declaration.
16648 (thread_db_detach, thread_db_mourn): Declare.
16649 * thread-db.c (thread_db_init): Use thread_db_mourn.
16650 (thread_db_free): Delete, split in two.
16651 (disable_thread_event_reporting): New.
16652 (thread_db_detach): New.
16653 (thread_db_mourn): New.
16655 * server.h (struct thread_info) <last_resume_kind>: New field.
16656 <attached>: Add comment.
16657 <gdb_detached>: New field.
16658 (handler_func): Change return type to int.
16659 (handle_serial_event, handle_target_event): Ditto.
16660 (gdb_connected): Declare.
16662 (disconnected_tracing): Declare.
16663 (stop_tracing): Declare.
16665 * server.c (handle_query) <qSupported>: Report support for
16666 disconnected tracing.
16667 (queue_stop_reply_callback): Account for running threads.
16668 (gdb_wants_thread_stopped): New.
16669 (gdb_wants_all_threads_stopped): New.
16670 (gdb_reattached_process): New.
16671 (handle_status): Clear the `gdb_detached' flag of all processes.
16672 In all-stop, stop all threads.
16673 (main): Be sure to leave tfind mode. Handle disconnected tracing.
16674 (process_serial_event): If the remote connection breaks, or if an
16675 exit was forced with "monitor exit", force an event loop exit.
16676 Handle disconnected tracing on detach.
16677 (handle_serial_event): Adjust.
16678 (handle_target_event): If GDB isn't connected, forward events back
16679 to the inferior, unless the last process exited, in which case,
16680 exit gdbserver. Adjust interface.
16682 * remote-utils.c (remote_open): Don't block in accept. Instead
16683 register an event loop source on the listen socket file
16684 descriptor. Refactor bits into ...
16685 (listen_desc): ... this new global.
16686 (gdb_connected): ... this new function.
16687 (enable_async_notification): ... this new function.
16688 (handle_accept_event): ... this new function.
16689 (remote_close): Clear remote_desc.
16691 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
16693 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
16695 (mourn_inferior): Define.
16696 (target_process_qsupported): Avoid the dangling else problem.
16697 (thread_stopped): Define.
16698 (pause_all): Define.
16699 (target_waitstatus_to_string): Declare.
16700 * target.c (target_waitstatus_to_string): New.
16702 * tracepoint.c (tracing): Make extern.
16703 (disconnected_tracing): New.
16704 (stop_tracing): Make extern. Handle tracing stops due to GDB
16706 (cmd_qtdisconnected): New.
16707 (cmd_qtstatus): Report disconnected tracing status in trace reply.
16708 (handle_tracepoint_general_set): Handle QTDisconnected.
16710 * event-loop.c (event_handler_func): Change return type to int.
16711 (process_event): Bail out if the event handler wants the event
16713 (handle_file_event): Ditto.
16714 (start_event_loop): Bail out if the event handler wants the event
16717 * nto-low.c (nto_target_ops): Adjust.
16718 * spu-low.c (spu_wait): Don't remove the process here.
16719 (spu_target_ops): Adjust.
16720 * win32-low.c (win32_wait): Don't remove the process here.
16721 (win32_target_ops): Adjust.
16723 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16725 * regcache.c (realloc_register_cache): Invalidate inferior's
16726 regcache before recreating it.
16728 2010-04-09 Pedro Alves <pedro@codesourcery.com>
16730 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
16732 2010-04-09 Stan Shebs <stan@codesourcery.com>
16733 Pedro Alves <pedro@codesourcery.com>
16735 * server.h (LONGEST): New.
16736 (struct thread_info) <while_stepping>: New field.
16737 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
16739 (initialize_tracepoint, handle_tracepoint_general_set)
16740 (handle_tracepoint_query, tracepoint_finished_step)
16741 (tracepoint_was_hit, release_while_stepping_state_list):
16742 (current_traceframe): Declare.
16743 * server.c (handle_general_set): Handle tracepoint packets.
16744 (read_memory): New.
16745 (write_memory): New.
16746 (handle_search_memory_1): Use read_memory.
16747 (handle_query): Report support for conditional tracepoints, trace
16748 state variables, and tracepoint sources. Handle tracepoint
16750 (main): Initialize the tracepoints module.
16751 (process_serial_event): Handle traceframe reads/writes.
16753 * linux-low.c (handle_tracepoints): New.
16754 (linux_wait_1): Call it.
16755 (linux_resume_one_lwp): Handle while-stepping.
16756 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
16757 (linux_target_ops): Install them.
16758 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
16760 * linux-x86-low.c (x86_supports_tracepoints): New.
16761 (the_low_target). Install it.
16763 * mem-break.h (delete_breakpoint): Declare.
16764 * mem-break.c (delete_breakpoint): Make external.
16766 * target.h (struct target_ops): Add `supports_tracepoints',
16767 `read_pc', and `write_pc' fields.
16768 (target_supports_tracepoints): Define.
16769 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
16772 * regcache.h (struct regcache) <registers_owned>: New field.
16773 (init_register_cache, regcache_cpy): Declare.
16774 (regcache_read_pc, regcache_write_pc): Declare.
16775 (register_cache_size): Declare.
16776 (supply_regblock): Declare.
16777 * regcache.c (init_register_cache): New.
16778 (new_register_cache): Use it.
16779 (regcache_cpy): New.
16780 (register_cache_size): New.
16781 (supply_regblock): New.
16782 (regcache_read_pc, regcache_write_pc): New.
16784 * tracepoint.c: New.
16786 * Makefile.in (OBS): Add tracepoint.o.
16787 (tracepoint.o): New rule.
16789 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
16791 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
16793 (i386-mmx.c): Likewise.
16794 (i386-mmx-linux.o): Likewise.
16795 (i386-mmx-linux.c): Likewise.
16797 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
16798 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
16799 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
16800 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
16802 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
16803 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
16804 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
16806 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
16808 * Makefile.in (clean): Updated.
16810 (i386-avx.c): Likewise.
16811 (i386-avx-linux.o): Likewise.
16812 (i386-avx-linux.c): Likewise.
16813 (amd64-avx.o): Likewise.
16814 (amd64-avx.c): Likewise.
16815 (amd64-avx-linux.o): Likewise.
16816 (amd64-avx-linux.c): Likewise.
16818 * configure.srv (srv_i386_regobj): Add i386-avx.o.
16819 (srv_i386_linux_regobj): Add i386-avx-linux.o.
16820 (srv_amd64_regobj): Add amd64-avx.o.
16821 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
16822 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
16823 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
16824 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
16825 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
16826 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
16827 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
16829 * i387-fp.c: Include "i386-xstate.h".
16831 (i387_cache_to_xsave): Likewise.
16832 (i387_xsave_to_cache): Likewise.
16833 (x86_xcr0): Likewise.
16835 * i387-fp.h (i387_cache_to_xsave): Likewise.
16836 (i387_xsave_to_cache): Likewise.
16837 (x86_xcr0): Likewise.
16839 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
16840 * linux-crisv32-low.c (target_regsets): Likewise.
16841 * linux-m68k-low.c (target_regsets): Likewise.
16842 * linux-mips-low.c (target_regsets): Likewise.
16843 * linux-ppc-low.c (target_regsets): Likewise.
16844 * linux-s390-low.c (target_regsets): Likewise.
16845 * linux-sh-low.c (target_regsets): Likewise.
16846 * linux-sparc-low.c (target_regsets): Likewise.
16847 * linux-xtensa-low.c (target_regsets): Likewise.
16849 * linux-low.c: Include <sys/uio.h>.
16850 (regsets_fetch_inferior_registers): Support nt_type.
16851 (regsets_store_inferior_registers): Likewise.
16852 (linux_process_qsupported): New.
16853 (linux_target_ops): Add linux_process_qsupported.
16855 * linux-low.h (regset_info): Add nt_type.
16856 (linux_target_ops): Add process_qsupported.
16858 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
16860 (init_registers_i386_avx_linux): New.
16861 (init_registers_amd64_avx_linux): Likewise.
16862 (xmltarget_i386_linux_no_xml): Likewise.
16863 (xmltarget_amd64_linux_no_xml): Likewise.
16864 (PTRACE_GETREGSET): Likewise.
16865 (PTRACE_SETREGSET): Likewise.
16866 (x86_fill_xstateregset): Likewise.
16867 (x86_store_xstateregset): Likewise.
16868 (use_xml): Likewise.
16869 (x86_linux_update_xmltarget): Likewise.
16870 (x86_linux_process_qsupported): Likewise.
16871 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
16872 (x86_arch_setup): Don't call init_registers_amd64_linux nor
16873 init_registers_i386_linux here. Call
16874 x86_linux_update_xmltarget.
16875 (the_low_target): Add x86_linux_process_qsupported.
16877 * server.c (handle_query): Call target_process_qsupported.
16879 * target.h (target_ops): Add process_qsupported.
16880 (target_process_qsupported): New.
16882 2010-04-03 Pedro Alves <pedro@codesourcery.com>
16884 * inferiors.c (add_thread): Set last_status kind to
16885 TARGET_WAITKIND_IGNORE.
16886 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
16887 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
16888 (linux_wait_1): Move `thread' local definition to block that uses
16889 it. Don't NULL initialize `event_child'.
16890 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
16891 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
16892 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
16894 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16896 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
16897 an extended waitstatus, or by a watchpoint.
16898 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
16899 thread was stepping or has been stopped by a watchpoint.
16901 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16903 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
16904 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
16905 of another, then delete the previous, and validate all
16907 (validate_inserted_breakpoint): New.
16908 (delete_disabled_breakpoints): New.
16909 (validate_breakpoints): New.
16910 (check_mem_read): Validate breakpoints before trusting their
16911 shadow. Delete disabled breakpoints.
16912 (check_mem_write): Validate breakpoints before trusting they
16913 should be inserted. Delete disabled breakpoints.
16914 * mem-break.h (validate_breakpoints):
16915 * server.c (handle_query): Validate breakpoints when we see a
16918 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16920 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
16921 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
16922 if we could tell there's a GDB breakpoint at stop_pc.
16923 (need_step_over_p): Don't do a step over if we find a GDB
16924 breakpoint at the resume PC.
16926 * mem-break.c (struct raw_breakpoint): New.
16927 (enum bkpt_type): New type `gdb_breakpoint'.
16928 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
16929 fields. New field `raw'.
16930 (find_raw_breakpoint_at): New.
16931 (set_raw_breakpoint_at): Handle refcounting. Create a raw
16932 breakpoint instead.
16933 (set_breakpoint_at): Adjust.
16934 (delete_raw_breakpoint): New.
16935 (release_breakpoint): New.
16936 (delete_breakpoint): Rename to...
16937 (delete_breakpoint_1): ... this. Add proc parameter. Use
16938 release_breakpoint. Return ENOENT.
16939 (delete_breakpoint): Reimplement.
16940 (find_breakpoint_at): Delete.
16941 (find_gdb_breakpoint_at): New.
16942 (delete_breakpoint_at): Delete.
16943 (set_gdb_breakpoint_at): New.
16944 (delete_gdb_breakpoint_at): New.
16945 (gdb_breakpoint_here): New.
16946 (set_reinsert_breakpoint): Use release_breakpoint.
16947 (uninsert_breakpoint): Rename to ...
16948 (uninsert_raw_breakpoint): ... this.
16949 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
16950 (reinsert_raw_breakpoint): Change parameter type to
16952 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
16954 (check_breakpoints): Adjust. Use release_breakpoint.
16955 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
16956 (breakpoint_inserted_here): Ditto.
16957 (check_mem_read): Adjust to iterate over raw breakpoints instead.
16958 Don't trust the breakpoint's shadow if it is not inserted.
16959 (check_mem_write): Adjust to iterate over raw breakpoints instead.
16960 (delete_all_breakpoints): Adjust.
16961 (free_all_breakpoints): Mark all breakpoints as uninserted, and
16962 use delete_breakpoint_1.
16964 * mem-break.h (breakpoints_supported): Delete declaration.
16965 (set_gdb_breakpoint_at): Declare.
16966 (gdb_breakpoint_here): Declare.
16967 (delete_breakpoint_at): Delete.
16968 (delete_gdb_breakpoint_at): Declare.
16970 * server.h (struct raw_breakpoint): Forward declare.
16971 (struct process_info): New field `raw_breakpoints'.
16973 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
16976 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16978 * linux-low.c (status_pending_p_callback): Fix comment.
16979 (linux_wait_for_event_1): Move most of the internal breakpoint
16980 handling from here...
16981 (linux_wait_1): ... to here.
16982 (count_events_callback): New.
16983 (select_singlestep_lwp_callback): New.
16984 (select_event_lwp_callback): New.
16985 (cancel_breakpoints_callback): New.
16986 (select_event_lwp): New.
16987 (linux_wait_1): Simplify internal breakpoint handling. Give equal
16988 priority to all LWPs that have had events that should be reported
16989 to the client. Cancel breakpoints when about to reporting the
16990 event to the client, not while stopping lwps. No longer cancel
16991 finished single-steps here.
16992 (cancel_finished_single_step): Delete.
16993 (cancel_finished_single_steps): Delete.
16995 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16997 * mem-break.c (enum bkpt_type): New.
16998 (struct breakpoint): New field `type'.
16999 (set_breakpoint_at): Change return type to struct breakpoint
17000 pointer. Set type to `other_breakpoint' by default.
17001 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17002 in the breakpoint list.
17003 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17004 (reinsert_breakpoint): Rename to ...
17005 (reinsert_raw_breakpoint): ... this.
17006 (reinsert_breakpoints_at): Adjust.
17007 * mem-break.h (struct breakpoint): Declare.
17008 (set_breakpoint_at): Change return type to struct breakpoint
17011 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17013 * server.c (handle_query): Assign, not compare.
17015 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17017 Teach linux gdbserver to step-over-breakpoints.
17019 * linux-low.c (can_hardware_single_step): New.
17020 (supports_breakpoints): New.
17021 (handle_extended_wait): If stopping threads, read the stop pc of
17022 the new cloned LWP.
17024 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17025 low target doesn't support retrieving the PC.
17026 (add_lwp): Set last_resume_kind to resume_continue.
17027 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17028 (linux_attach): Don't clear stop_expected. Set the lwp's
17029 last_resume_kind to resume_stop.
17030 (linux_detach_one_lwp): Don't check for removed breakpoints.
17031 (check_removed_breakpoint): Delete.
17032 (status_pending_p): Rename to ...
17033 (status_pending_p_callback): ... this. Don't check for removed
17034 breakpoints. Don't consider threads that are stopped from GDB's
17036 (linux_wait_for_lwp): Always read the stop_pc here.
17037 (cancel_breakpoint): New.
17038 (step_over_bkpt): New global.
17039 (linux_wait_for_event_1): Implement stepping over breakpoints.
17040 (gdb_wants_lwp_stopped): New.
17041 (gdb_wants_all_stopped): New.
17042 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17043 single-step traps here. Store the thread's last reported target
17045 (send_sigstop): Don't clear stop_expected. Always set it,
17047 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17048 (cancel_finished_single_step): New.
17049 (cancel_finished_single_steps): New.
17050 (wait_for_sigstop): Don't cancel finished single-step traps here.
17051 (linux_resume_one_lwp): Don't check for removed breakpoints.
17052 Don't set `step' on non-hardware step archs.
17053 (linux_set_resume_request): Ignore resume_stop requests if already
17054 stopping or stopped. Set the lwp's last_resume_kind.
17055 (resume_status_pending_p): Don't check for removed breakpoints.
17056 (need_step_over_p): New.
17057 (start_step_over): New.
17058 (finish_step_over): New.
17059 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17060 requests. Clear the thread's last reported target waitstatus.
17061 Don't use the `suspended' flag. Don't consider pending breakpoints.
17062 (linux_resume): Start a step-over if necessary.
17063 (proceed_one_lwp): New.
17064 (proceed_all_lwps): New.
17065 (unstop_all_lwps): New.
17066 * linux-low.h (struct lwp_info): Rewrite comment for the
17067 `suspended' flag. Add the `stop_pc' field. Delete the
17068 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17069 Add `'last_resume_kind' and `need_step_over' fields.
17070 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17071 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17072 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17073 (set_raw_breakpoint_at): New.
17074 (set_breakpoint_at): Rewrite to use it.
17075 (reinsert_breakpoint_handler): Delete.
17076 (set_reinsert_breakpoint): New.
17077 (reinsert_breakpoint_by_bp): Delete.
17078 (delete_reinsert_breakpoints): New.
17079 (uninsert_breakpoint): Rewrite.
17080 (uninsert_breakpoints_at): New.
17081 (reinsert_breakpoint): Rewrite.
17082 (reinsert_breakpoints_at): New.
17083 (check_breakpoints): Rewrite.
17084 (breakpoint_here): New.
17085 (breakpoint_inserted_here): New.
17086 (check_mem_read): Adjust.
17087 * mem-break.h (breakpoints_supported, breakpoint_here)
17088 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17089 (reinsert_breakpoint_by_bp): Delete declaration.
17090 (delete_reinsert_breakpoints): Declare.
17091 (reinsert_breakpoint): Delete declaration.
17092 (reinsert_breakpoints_at): Declare.
17093 (uninsert_breakpoint): Delete declaration.
17094 (uninsert_breakpoints_at): Declare.
17095 (check_breakpoints): Adjust prototype.
17096 * server.h: Adjust include order.
17097 (struct thread_info): Declare here. Add a `last_status' field.
17099 2010-03-23 Michael Snyder <msnyder@vmware.com>
17101 * server.c (crc32): New function.
17102 (handle_query): Add handling for 'qCRC:' request.
17104 2010-03-23 Pedro Alves <pedro@codesourcery.com>
17106 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17107 lwp had been stopped by a watchpoint.
17109 2010-03-16 Pedro Alves <pedro@codesourcery.com>
17111 * server.h (internal_error): Declare.
17112 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17113 * utils.c (internal_error): New function.
17115 2010-03-15 Andreas Schwab <schwab@redhat.com>
17117 * configure.srv: Fix typo setting srv_regobj.
17119 2010-03-15 Pedro Alves <pedro@codesourcery.com>
17121 * linux-low.c (fetch_register): Avoid passing a non string literal
17123 (usr_store_inferior_registers): Ditto.
17125 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17127 * linux-low.c (linux_write_memory): Bail out early if peeking
17130 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17132 * linux-low.h (struct lwp_info): New fields
17133 `stopped_by_watchpoint' and `stopped_data_address'.
17134 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17135 here, and cache them in the lwp object.
17136 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17138 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17140 (linux_stopped_by_watchpoint): Rewrite.
17141 (linux_stopped_data_address): Rewrite.
17143 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
17145 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17146 switching the current inferior, not before.
17148 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17150 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
17151 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
17152 i386-linux.c and amd64-linux.c.
17153 (reg-i386.o): Removed.
17154 (reg-i386.c): Likewise.
17155 (reg-i386-linux.o): Likewise.
17156 (reg-i386-linux.c): Likewise.
17157 (reg-x86-64.o): Likewise.
17158 (reg-x86-64.c): Likewise.
17159 (reg-x86-64-linux.o): Likewise.
17160 (reg-x86-64-linux.c): Likewise.
17162 (i386.c): Likewise.
17163 (i386-linux.o): Likewise.
17164 (i386-linux.c): Likewise.
17165 (amd64.o): Likewise.
17166 (amd64.c): Likewise.
17167 (amd64-linux.o): Likewise.
17168 (amd64-linux.c): Likewise.
17170 * configure.srv (srv_i386_regobj): New.
17171 (srv_i386_linux_regobj): Likewise.
17172 (srv_amd64_regobj): Likewise.
17173 (srv_amd64_linux_regobj): Likewise.
17174 (srv_i386_32bit_xmlfiles): Likewise.
17175 (srv_i386_64bit_xmlfiles): Likewise.
17176 (srv_i386_xmlfiles): Likewise.
17177 (srv_amd64_xmlfiles): Likewise.
17178 (srv_i386_linux_xmlfiles): Likewise.
17179 (srv_amd64_linux_xmlfiles): Likewise.
17180 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17181 srv_xmlfiles to $srv_i386_xmlfiles.
17182 (i[34567]86-*-mingw32ce*): Likewise.
17183 (i[34567]86-*-mingw*): Likewise.
17184 (i[34567]86-*-nto*): Likewise.
17185 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17186 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17187 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17188 (x86_64-*-linux*): Likewise.
17190 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17191 (init_registers_amd64_linux): New.
17192 (x86_arch_setup): Replace init_registers_x86_64_linux with
17193 init_registers_amd64_linux.
17195 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17197 * configure.ac: Check for libdl. If it is not available link against
17198 static libthread_db.
17199 * configure: Regenerate.
17201 2010-02-22 Pedro Alves <pedro@codesourcery.com>
17205 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17206 handing a read watchpoint.
17207 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17209 2010-02-12 Doug Evans <dje@google.com>
17211 * linux-low.c (linux_supports_tracefork_flag): Document.
17212 (linux_look_up_symbols): Add comment.
17214 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17216 * regcache.c (supply_register): Clear regcache if buf is NULL.
17218 2010-02-02 Nicolas Roche <roche@sourceware.org>
17219 Joel Brobecker <brobecker@adacore.com>
17221 * inferiors.c (find_inferior): Add function documentation.
17222 (unloaded_dll): Handle the case where the unloaded dll has not
17223 been previously registered in the dll list.
17225 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17227 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17228 (thumb2_breakpoint): New.
17229 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17231 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17233 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17234 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17237 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17239 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17241 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17243 * linux-s390-low.c (s390_collect_ptrace_register)
17244 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17246 2010-01-21 Doug Evans <dje@google.com>
17248 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17249 (PTRACE_ARG4_TYPE): New macro.
17250 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17251 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17252 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17253 (usr_store_inferior_registers): Ditto.
17254 (linux_read_memory, linux_write_memory): Ditto.
17255 (linux_test_for_tracefork): Ditto.
17257 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17258 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17260 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17262 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17265 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17267 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17268 prototype to take a regcache. Adjust.
17270 2010-01-20 Pedro Alves <pedro@codesourcery.com>
17272 * regcache.h (struct thread_info): Forward declare.
17273 (struct regcache): New.
17274 (new_register_cache): Adjust prototype.
17275 (get_thread_regcache): Declare.
17276 (free_register_cache): Adjust prototype.
17277 (registers_to_string, registers_from_string): Ditto.
17278 (supply_register, supply_register_by_name, collect_register)
17279 (collect_register_as_string, collect_register_by_name): Ditto.
17280 * regcache.c (struct inferior_regcache_data): Delete.
17281 (get_regcache): Rename to ...
17282 (get_thread_regcache): ... this. Adjust. Switch inferior before
17283 fetching registers.
17284 (regcache_invalidate_one): Adjust.
17285 (regcache_invalidate): Fix prototype.
17286 (new_register_cache): Return the new register cache.
17287 (free_register_cache): Change prototype.
17288 (realloc_register_cache): Adjust.
17289 (registers_to_string): Change prototype to take a regcache. Adjust.
17290 (registers_from_string): Ditto.
17291 (register_data): Ditto.
17292 (supply_register): Ditto.
17293 (supply_register_by_name): Ditto.
17294 (collect_register): Ditto.
17295 (collect_register_as_string): Ditto.
17296 (collect_register_by_name): Ditto.
17297 * server.c (process_serial_event): Adjust.
17298 * linux-low.h (regset_fill_func, regset_store_func): Change
17300 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17302 * linux-low.c (get_stop_pc): Adjust.
17303 (check_removed_breakpoint): Adjust.
17304 (linux_wait_for_event): Adjust.
17305 (linux_resume_one_lwp): Adjust.
17306 (fetch_register): Add regcache parameter. Adjust.
17307 (usr_store_inferior_registers): Ditto.
17308 (regsets_fetch_inferior_registers): Ditto.
17309 (regsets_store_inferior_registers): Ditto.
17310 (linux_fetch_registers, linux_store_registers): Ditto.
17311 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17313 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17315 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17316 prototype to take a regcache.
17317 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17318 * remote-utils.c (convert_ascii_to_int, outreg)
17319 (prepare_resume_reply): Change prototype to take a regcache.
17321 * target.h (struct target_ops) <fetch_registers, store_registers>:
17322 Change prototype to take a regcache.
17323 (fetch_inferior_registers, store_inferior_registers): Change
17324 prototype to take a regcache. Adjust.
17325 * proc-service.c (ps_lgetregs): Adjust.
17326 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
17327 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
17328 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
17329 take a regcache. Adjust.
17330 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
17331 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
17332 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
17333 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
17334 * linux-cris-low.c (cris_get_pc, cris_set_pc)
17335 (cris_cannot_fetch_register):
17336 (cris_breakpoint_at): Change prototype to take a regcache.
17338 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
17339 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
17340 to take a regcache. Adjust.
17341 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
17343 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
17344 take a regcache. Adjust.
17345 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
17346 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
17347 (m68k_set_pc): Change prototype to take a regcache. Adjust.
17348 * linux-mips-low.c (mips_get_pc):
17349 (mips_set_pc): Change prototype to take a regcache. Adjust.
17350 (mips_reinsert_addr): Adjust.
17351 (mips_collect_register): Change prototype to take a regcache.
17353 (mips_supply_register):
17354 (mips_collect_register_32bit, mips_supply_register_32bit)
17355 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17356 (mips_store_fpregset): Ditto.
17357 * linux-ppc-low.c (ppc_supply_ptrace_register)
17358 (ppc_supply_ptrace_register): Ditto.
17359 (parse_spufs_run): Adjust.
17360 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
17361 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
17362 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
17363 take a regcache. Adjust.
17364 * linux-s390-low.c (s390_collect_ptrace_register)
17365 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
17366 (s390_set_pc): Change prototype to take a regcache. Adjust.
17367 (s390_arch_setup): Adjust.
17368 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
17369 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
17370 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
17371 (sparc_fill_gregset, sparc_store_gregset_from_stack)
17372 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
17374 (sparc_breakpoint_at): Adjust.
17375 * linux-xtensa-low.c (xtensa_fill_gregset):
17376 (xtensa_store_gregset):
17377 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
17378 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
17379 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
17380 prototype to take a regcache. Adjust.
17381 * win32-arm-low.c (arm_fetch_inferior_register)
17382 (arm_store_inferior_register): Change prototype to take a
17384 * win32-i386-low.c (i386_fetch_inferior_register)
17385 (i386_store_inferior_register): Change prototype to take a
17387 * win32-low.c (child_fetch_inferior_registers)
17388 (child_store_inferior_registers): Change prototype to take a
17390 (win32_wait): Adjust.
17391 (win32_fetch_inferior_registers): Change prototype to take a
17393 (win32_store_inferior_registers): Adjust.
17394 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
17395 store_inferior_register>: Change prototype to take a regcache.
17397 2010-01-20 Doug Evans <dje@google.com>
17399 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
17401 (linux_wait_for_event1, linux_init_signals): Ditto.
17402 (W_STOPCODE): Provide definition if missing.
17404 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
17406 * linux-low.c (linux_core_of_thread): New.
17407 (compare_ints, show_process, list_threads): New.
17408 (linux_qxfer_osdata): Report threads and cores.
17409 (linux_target_op): Register linux_core_of_thread.
17410 * remote-utils.c (prepare_resume_reply): Report the core.
17411 (buffer_xml_printf): Support %d specifier.
17412 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
17414 (handle_query): Handle qXfer:threads. Announce availability
17416 * target.h (struct target_ops): New field core_of_thread.
17418 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
17420 * Makefile.in (clean): Remove new generated files.
17421 (reg-s390.o, reg-s390.c): Remove rules.
17422 (reg-s390x.o, reg-s390x.c): Likewise.
17423 (s390-linux32.o, s390-linux32.c): Add rules.
17424 (s390-linux64.o, s390-linux64.c): Likewise.
17425 (s390x-linux64.o, s390x-linux64.c): Likewise.
17426 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
17427 * linux-s390-low.c: Include <elf.h>.
17428 (HWCAP_S390_HIGH_GPRS): Define if undefined.
17429 (init_registers_s390): Remove prototype.
17430 (init_registers_s390x): Likewise.
17431 (init_registers_s390_linux32): Add prototype.
17432 (init_registers_s390_linux64): Likewise.
17433 (init_registers_s390x_linux64): Likewise.
17434 (s390_num_regs_3264): New define.
17435 (s390_regmap_3264): New global variable.
17436 (s390_cannot_fetch_register): Remove obsolete check.
17437 (s390_cannot_store_register): Likewise.
17438 (s390_collect_ptrace_register): Handle upper/lower register halves.
17439 (s390_supply_ptrace_register): Likewise.
17440 (s390_fill_gregset): Update to register number changes.
17441 (s390_get_hwcap): New routine.
17442 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
17443 Install appropriate regmap and register set.
17445 2010-01-01 Joel Brobecker <brobecker@adacore.com>
17447 * server.c (gdbserver_version): Update copyright year to 2010.
17448 * gdbreplay.c (gdbreplay_version): Likewise.
17450 2009-12-28 Doug Evans <dje@google.com>
17452 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
17453 elf/external.h. Include <elf.h> instead but only if necessary.
17455 2009-12-28 Pedro Alves <pedro@codesourcery.com>
17457 * linux-low.c (linux_remove_process): Remove `detaching'
17458 parameter. Don't release/detach from thread_db here.
17459 (linux_kill): Release/detach from thread_db here, ...
17460 (linux_detach): ... and here, before actually detaching.
17461 (linux_wait_1): ... and here, when a process exits.
17462 * thread-db.c (any_thread_of): New.
17463 (thread_db_free): Switch the current inferior to a thread of the
17466 2009-12-21 Doug Evans <dje@google.com>
17468 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
17470 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
17471 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
17472 warning ifndef __NR_tkill. Move setting of errno there too.
17473 Delete unnecessary resetting of errno after syscall.
17474 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
17476 * configure.ac: Check for dladdr.
17477 * config.in: Regenerate.
17478 * configure: Regenerate.
17479 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
17480 (try_thread_db_load): Update.
17482 * linux-low.c (my_waitpid): Delete unnecessary prototype.
17484 2009-12-18 Doug Evans <dje@google.com>
17486 * event-loop.c: Include unistd.h if it exists.
17488 * linux-low.c (my_waitpid): Move definition away from being in
17489 between linux_tracefork_child/linux_test_for_tracefork.
17491 * gdb_proc_service.h (psaddr_t): Fix type.
17492 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
17493 signature to match glibc.
17495 2009-12-16 Doug Evans <dje@google.com>
17497 * linux-low.c (linux_read_memory): Fix argument to read.
17499 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17501 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
17502 events, don't leave current_inferior pointing at null.
17504 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17506 * win32-low.c (LOG): Delete.
17507 (OUTMSG): Output to stderr.
17508 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
17509 on compile time LOG macro.
17510 (win32_wait): Fix debug output.
17512 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17514 * win32-low.c (win32_add_one_solib): If the dll name is
17515 "ntdll.dll", prepend the system directory to the dll path.
17517 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
17519 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
17521 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
17522 Vladimir Prus <vladimir@codesourcery.com>
17524 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
17525 * configure.ac: Check for __mcoldfire__ and set
17526 gdb_cv_m68k_is_coldfire.
17527 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
17528 reg-cf.o and reg-m68k.o.
17529 * configure: Regenerated.
17531 2009-11-16 Pedro Alves <pedro@codesourcery.com>
17533 * linux-low.c (linux_remove_process): Add `detaching' parameter.
17534 Pass it to thread_db_free.
17535 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
17536 proper `detaching' argument to linux_remove_process.
17537 * linux-low.h (thread_db_free): Add `detaching' parameter.
17538 * thread-db.c (thread_db_init): Pass false as `detaching' argument
17540 (thread_db_free): Add `detaching' parameter. Only
17541 call td_ta_clear_event if detaching from process.
17543 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
17545 * thread-db.c (thread_db_free): Fix typo.
17547 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
17550 * thread-db.c (thread_db_free): Call td_ta_clear_event.
17552 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
17554 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
17555 with an i686 compiler.
17556 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
17558 * configure: Rebuilt.
17560 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
17564 * server.c (handle_search_memory_1): Correct read_addr initialization
17565 in loop for searching subsequent chunks.
17567 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
17569 * configure.ac: New --with-libthread-db option.
17570 * thread-db.c: Allow direct dependence on libthread_db.
17571 (thread_db_free): Adjust.
17572 * config.in: Regenerate.
17573 * configure: Likewise.
17575 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
17578 * thread-db.c (attach_thread): New function.
17579 (maybe_attach_thread): Return success/failure.
17580 (find_new_threads_callback): Adjust.
17581 (thread_db_find_new_threads): Loop until no new threads.
17583 2009-10-13 Pedro Alves <pedro@codesourcery.com>
17585 * proc-service.c (ps_lgetregs): Formatting.
17587 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
17589 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
17590 * configure.ac: Adjust.
17591 * linux-low.h (struct process_info_private): Move members to struct
17593 (thread_db_free, thread_db_handle_monitor_command): New prototype.
17594 * linux-low.c (linux_remove_process): Adjust.
17595 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
17596 * server.c (handle_query): Move code ...
17597 (handle_monitor_command): ... here. New function.
17598 * target.h (struct target_ops): New member.
17599 * thread-db.c (struct thread_db): New.
17600 (libthread_db_search_path): New variable.
17601 (thread_db_create_event, thread_db_enable_reporting)
17602 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
17603 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
17604 (try_thread_db_load_1, dladdr_to_soname): New functions.
17605 (try_thread_db_load, thread_db_load_search): New functions.
17606 (thread_db_init): Search for libthread_db.
17607 (thread_db_free): New function.
17608 (thread_db_handle_monitor_command): Likewise.
17609 * config.in: Regenerate.
17610 * configure: Regenerate.
17612 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
17614 * spu-low.c (spu_kill): Wait for inferior to terminate.
17615 Call clear_inferiors.
17616 (spu_detach): Call clear_inferiors.
17618 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17620 * aclocal.m4: Regenerate.
17621 * config.in: Likewise.
17622 * configure: Likewise.
17624 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17626 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
17627 (parse_spufs_run): New function.
17628 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
17629 (ppc_breakpoint_at): Handle SPU breakpoints.
17631 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17633 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
17634 (SPUFS_MAGIC): Define.
17635 (spu_enumerate_spu_ids): New function.
17636 (linux_qxfer_spu): New function.
17637 (linux_target_ops): Install linux_qxfer_spu.
17639 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17641 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
17642 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
17643 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
17644 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
17645 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
17646 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
17647 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
17648 (init_registers_powerpc_cell32l): Add prototype.
17649 (init_registers_powerpc_cell64l): Likewise.
17650 (ppc_arch_setup): Detect Cell/B.E. architecture.
17652 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17654 * Makefile.in (datarootdir): New variable.
17656 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17658 * linux-low.c (linux_write_memory): Update debugging output.
17659 * Makefile.in (clean): Add new descriptions.
17660 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
17661 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
17662 * configure.srv: Add new files for arm*-*-linux*.
17663 * linux-arm-low.c: Add new declarations.
17664 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
17665 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
17666 (HWCAP_VFPv3D16): New.
17667 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
17668 instead of __IWMMXT__.
17669 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
17670 (arm_arch_setup): New.
17671 (target_regsets): Remove #ifdef. Add VFP regset.
17672 (the_low_target): Use arm_arch_setup.
17674 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17676 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
17677 the main thread again.
17679 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
17681 Adding Neutrino gdbserver.
17682 * configure: Regenerated.
17683 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
17684 * configure.srv (i[34567]86-*-nto*): New target.
17685 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
17686 * remote-utils.c [__QNX__]: Include sys/iomgr.h
17687 (nto_comctrl) [__QNX__]: New function.
17688 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
17690 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
17692 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
17695 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
17696 Pedro Alves <pedro@codesourcery.com>
17698 * win32-i386-low.c (i386_get_thread_context): Handle systems that
17699 don't support CONTEXT_EXTENDED_REGISTERS.
17700 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
17701 (the_low_target): Install them.
17702 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
17703 failing with ERROR_PIPE_NOT_CONNECTED.
17705 2009-06-30 Doug Evans <dje@google.com>
17706 Pierre Muller <muller@ics.u-strasbg.fr>
17708 Add h/w watchpoint support to x86-linux, win32-i386.
17709 * Makefile.in (SFILES): Add i386-low.c
17710 (i386_low_h): Define.
17711 (i386-low.o): Add dependencies.
17712 (linux-x86-low.o): Add i386-low.h dependency.
17713 (win32-i386-low.o): Ditto.
17714 * i386-low.c: New file.
17715 * i386-low.h: New file.
17716 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
17717 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
17718 * linux-low.c (linux_add_process): Initialize arch_private.
17719 (linux_remove_process): Free arch_private.
17720 (add_lwp): Initialize arch_private.
17721 (delete_lwp): Free arch_private.
17722 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
17724 * linux-low.h (process_info_private): New member arch_private.
17725 (lwp_info): New member arch_private.
17726 (linux_target_ops): New members new_process, new_thread,
17728 (ptid_of): New macro.
17729 * linux-x86-low.c: Include stddef.h, i386-low.h.
17730 (arch_process_info): New struct.
17731 (arch_lwp_info): New struct.
17732 (x86_linux_dr_get, x86_linux_dr_set): New functions.
17733 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17734 (i386_dr_low_get_status): New function.
17735 (x86_insert_point, x86_remove_point): New functions.
17736 (x86_stopped_by_watchpoint): New function.
17737 (x86_stopped_data_address): New function.
17738 (x86_linux_new_process, x86_linux_new_thread): New functions.
17739 (x86_linux_prepare_to_resume): New function.
17740 (the_low_target): Add entries for insert_point, remove_point,
17741 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
17743 * server.c (debug_hw_points): New global.
17744 (monitor_show_help): Document set debug-hw-points.
17745 (handle_query): Process "set debug-hw-points".
17746 * server.h (debug_hw_points): Declare.
17747 (paddress): Declare.
17748 * utils.c (NUMCELLS, CELLSIZE): New macros.
17749 (get_sell, xsnprintf, paddress): New functions.
17750 * win32-arm-low.c (the_low_target): Add entries for insert_point,
17751 remove_point, stopped_by_watchpoint, stopped_data_address.
17752 * win32-i386-low.c: Include i386-low.h.
17753 (debug_reg_state): Replaces dr.
17754 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17755 (i386_dr_low_get_status): New function.
17756 (i386_insert_point, i386_remove_point): New functions.
17757 (i386_stopped_by_watchpoint): New function.
17758 (i386_stopped_data_address): New function.
17759 (i386_initial_stuff): Update.
17760 (get_thread_context,set_thread_context,i386_thread_added): Update.
17761 (the_low_target): Add entries for insert_point,
17762 remove_point, stopped_by_watchpoint, stopped_data_address.
17763 * win32-low.c (win32_insert_watchpoint): New function.
17764 (win32_remove_watchpoint): New function.
17765 (win32_stopped_by_watchpoint): New function.
17766 (win32_stopped_data_address): New function.
17767 (win32_target_ops): Add entries for insert_watchpoint,
17768 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
17769 * win32-low.h (win32_target_ops): New members insert_point,
17770 remove_point, stopped_by_watchpoint, stopped_data_address.
17772 2009-06-25 Pedro Alves <pedro@codesourcery.com>
17774 * server.c (process_serial_event): Re-return unsupported, not
17775 error, if the type isn't recognized. Re-allow supporting only
17776 insert or remove packets. Also call require_running for
17777 breakpoints. Add missing break statement to default case. Tidy.
17778 * target.h (struct target_ops): Rename insert_watchpoint to
17779 insert_point, and remove_watchpoint to remove_point.
17781 * linux-low.h (struct linux_target_ops): Likewise.
17782 * linux-low.c (linux_insert_watchpoint): Rename to ...
17783 (linux_insert_point): ... this. Adjust.
17784 (linux_remove_watchpoint): Rename to ...
17785 (linux_remove_point): ... this. Adjust.
17786 (linux_target_ops): Adjust.
17787 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
17788 (cris_insert_point): ... this.
17789 (cris_remove_watchpoint): Rename to ...
17790 (cris_remove_point): ... this.
17791 (the_low_target): Adjust.
17793 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
17795 * server.c (handle_v_kill): Pass signal_pid to
17796 kill_inferior if multi_process is zero.
17798 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
17800 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
17801 * target.h (target_ops): Comment for *_watchpoint to make it clear
17802 the functions can get types '0' and '1'.
17804 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
17806 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
17807 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
17808 * regcache.c (get_regcache): Likewise.
17809 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
17810 * win32-low.c (child_fetch_inferior_registers): Remove check for
17813 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
17814 Pedro Alves <pedro@codesourcery.com>
17816 * target.h (struct target_ops) <supports_multi_process>: New
17818 (target_supports_multi_process): New.
17819 * server.c (handle_query): Even if GDB reports support, only
17820 enable multi-process if the target also supports it. Report
17821 multi-process support only if the target backend supports it.
17822 * linux-low.c (linux_supports_multi_process): New function.
17823 (linux_target_ops): Install it as target_supports_multi_process
17826 2009-05-24 Doug Evans <dje@google.com>
17828 Global renaming of find_thread_pid to find_thread_ptid.
17829 * server.h (find_thread_ptid): Renamed from find_thread_pid.
17830 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
17831 All callers updated.
17833 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
17834 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
17837 * linux-low.c (get_stop_pc): Print pc if debug_threads.
17838 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
17839 (linux_resume_one_lwp): Ditto.
17841 2009-05-23 Doug Evans <dje@google.com>
17843 * linux-low.c (linux_resume_one_lwp): Change type of first arg
17844 from struct inferior_list_entry * to struct lwp_info *.
17845 All callers updated.
17847 2009-05-13 Doug Evans <dje@google.com>
17849 * linux-x86-low.c: Don't include assert.h.
17850 (x86_siginfo_fixup): Use fatal, not assert.
17851 (x86_arch_setup): Fix comment.
17853 2009-05-12 Doug Evans <dje@google.com>
17855 Biarch support for i386/amd64 gdbserver.
17856 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
17857 Add linux-x86-low.c.
17858 (linux-i386-low.o, linux-x86-64-low.o): Delete.
17859 (linux-x86-low.o): Add.
17860 * linux-x86-64-low.c: Delete.
17861 * linux-i386-low.c: Delete.
17862 * linux-x86-low.c: New file.
17863 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
17865 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
17867 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
17868 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
17869 (linux_child_pid_to_exec_file): New function.
17870 (elf_64_header_p, elf_64_file_p): New functions.
17871 (siginfo_fixup): New function.
17872 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
17873 give target a chance to convert layout.
17874 * linux-low.h (linux_target_ops): New member siginfo_fixup.
17875 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
17877 2009-05-07 Doug Evans <dje@google.com>
17879 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
17880 (regsets_store_inferior_registers): Ditto.
17882 2009-05-06 Pedro Alves <pedro@codesourcery.com>
17886 * linux-low.c (must_set_ptrace_flags): Delete.
17887 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
17889 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
17890 `lwp->must_set_ptrace_flags' instead.
17891 (linux_wait_for_event_1): Set ptrace options here.
17892 (linux_wait_1): ... not here.
17894 2009-04-30 Doug Evans <dje@google.com>
17896 * inferiors.c (started_inferior_callback): New function.
17897 (attached_inferior_callback): New function.
17898 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
17899 * server.c (print_started_pid, print_attached_pid): New functions.
17900 (detach_or_kill_for_exit): New function.
17901 (main): Call it instead of for_each_inferior (kill_inferior_callback).
17902 * server.h (have_started_inferiors_p): Declare.
17903 (have_attached_inferiors_p): Declare.
17905 * inferiors.c (remove_process): Fix memory leak, free process.
17906 * linux-low.c (linux_remove_process): New function.
17907 (linux_kill): Call it instead of remove_process.
17908 (linux_detach, linux_wait_1): Ditto.
17910 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
17912 * configure.srv: Add x86 Windows CE target.
17914 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17916 * inferiors.c (get_thread_process): Make global.
17917 * server.h (get_thread_process): Add prototype.
17918 * thread-db.c (find_one_thread): Use get_thread_process
17919 instead of current_process.
17920 (thread_db_get_tls_address): Do not crash if called when
17921 thread layer is not yet initialized.
17923 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17925 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
17926 * spu-low.c (current_tid): Rename to ...
17927 (current_ptid): ... this.
17928 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
17929 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
17930 ptid_get_lwp (current_ptid) instead of current_tid.
17931 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
17932 instead of current_tid. Use find_process_pid to verify pid
17933 argument is valid. Pass proper argument to remove_process.
17934 (spu_thread_alive): Compare current_ptid instead of current_tid.
17935 (spu_resume): Likewise.
17937 2009-04-02 Pedro Alves <pedro@codesourcery.com>
17939 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
17942 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17944 Implement the multiprocess extensions, and add linux multiprocess
17947 * server.h (ULONGEST): Declare.
17948 (struct ptid, ptid_t): New.
17949 (minus_one_ptid, null_ptid): Declare.
17950 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17951 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
17952 (struct inferior_list_entry): Change `id' type from unsigned from
17954 (struct sym_cache, struct breakpoint, struct
17955 process_info_private): Forward declare.
17956 (struct process_info): Declare.
17957 (current_process): Declare.
17958 (all_processes): Declare.
17959 (initialize_inferiors): Declare.
17960 (add_thread): Adjust to use ptid_t.
17961 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
17962 (add_process, remove_process, find_thread_pid): Declare.
17963 (find_inferior_id): Adjust to use ptid_t.
17964 (cont_thread, general_thread, step_thread): Change type to ptid_t.
17965 (multi_process): Declare.
17966 (push_event): Adjust to use ptid_t.
17967 (read_ptid, write_ptid): Declare.
17968 (prepare_resume_reply): Adjust to use ptid_t.
17969 (clear_symbol_cache): Declare.
17970 * inferiors.c (all_processes): New.
17971 (null_ptid, minus_one_ptid): New.
17972 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17973 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
17974 (add_thread): Change unsigned long to ptid. Remove gdb_id
17976 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
17977 (gdb_id_to_thread): Rename to ...
17978 (find_thread_pid): ... this. Change unsigned long to ptid.
17979 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
17980 (loaded_dll, pull_pid_from_list): Adjust.
17981 (add_process, remove_process, find_process_pid)
17982 (get_thread_process, current_process, initialize_inferiors): New.
17983 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
17984 (struct target_waitstatus) <related_pid>: Ditto.
17985 (struct target_ops) <kill, detach>: Add `pid' argument. Change
17986 return type to int.
17987 (struct target_ops) <join>: Add `pid' argument.
17988 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
17989 (struct target_ops) <wait>: Add `ptid' field. Change return type
17991 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
17992 (mywait): Add `ptid' argument. Change return type to ptid_t.
17993 (target_pid_to_str): Declare.
17994 * target.c (set_desired_inferior): Adjust to use ptids.
17995 (mywait): Add new `ptid' argument. Adjust.
17996 (target_pid_to_str): New.
17997 * mem-break.h (free_all_breakpoints): Declare.
17998 * mem-break.c (breakpoints): Delelete.
17999 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18000 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18001 to use per-process breakpoint list.
18002 (free_all_breakpoints): New.
18003 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18004 (symbol_cache, all_symbols_looked_up): Delete.
18006 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18008 (prepare_resume_reply): Change ptid argument's type from unsigned
18009 long to ptid_t. Adjust. Implement W;process and X;process.
18010 (free_sym_cache, clear_symbol_cache): New.
18011 (look_up_one_symbol): Adjust to per-process symbol cache. *
18012 * server.c (cont_thread, general_thread, step_thread): Change type
18014 (attached): Delete.
18015 (multi_process): New.
18016 (last_ptid): Change type to ptid_t.
18017 (struct vstop_notif) <ptid>: Change type to ptid_t.
18018 (queue_stop_reply, push_event): Change `ptid' argument's type to
18020 (discard_queued_stop_replies): Add `pid' argument.
18021 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18022 changes. Don't reference the `attached' global.
18023 (attach_inferior): Adjust to mywait interface changes.
18024 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18025 features. Handle and report "multiprocess+". Handle
18027 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18029 (handle_v_kill): New.
18030 (handle_v_stopped): Adjust to use target_pid_to_str.
18031 (handle_v_requests): Allow multiple attaches and runs when
18032 multiprocess extensions are in effect. Handle "vKill".
18033 (myresume): Adjust to use ptids.
18034 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18035 (handle_status): Adjust to discard_queued_stop_replies interface
18037 (first_thread_of, kill_inferior_callback)
18038 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18039 (main): Call initialize_inferiors. Adjust to use ptids, killing
18040 and detaching from all inferiors. Handle multiprocess packet
18042 * linux-low.h: Include gdb_proc_service.h.
18043 (struct process_info_private): New.
18044 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18045 <lwpid_of>: Use ptid_get_lwp.
18046 (get_lwp_thread): Adjust.
18047 (struct lwp_info): Add `dead' member.
18048 (find_lwp_pid): Declare.
18049 * linux-low.c (thread_db_active): Delete.
18050 (new_inferior): Adjust comment.
18051 (inferior_pid): Delete.
18052 (linux_add_process): New.
18053 (handle_extended_wait): Adjust.
18054 (add_lwp): Change unsigned long to ptid.
18055 (linux_create_inferior): Add process to processes table. Adjust
18056 to use ptids. Don't set new_inferior here.
18057 (linux_attach_lwp): Rename to ...
18058 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18059 it. Adjust to use ptids.
18060 (linux_attach_lwp): New.
18061 (linux_attach): Add process to processes table. Don't set
18063 (struct counter): New.
18064 (second_thread_of_pid_p, last_thread_of_process_p): New.
18065 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18066 multiple processes.
18067 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18068 processes. Remove process from process table.
18069 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18070 to multiple processes.
18071 (any_thread_of): New.
18072 (linux_detach): Add `pid' argument, and handle it. Remove process
18073 from processes table.
18074 (linux_join): Add `pid' argument. Handle it.
18075 (linux_thread_alive): Change unsighed long argument to ptid_t.
18076 Consider dead lwps as not being alive.
18077 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18078 threads we're not interested in.
18079 (same_lwp, find_lwp_pid): New.
18080 (linux_wait_for_lwp): Change `pid' argument's type from int to
18082 (linux_wait_for_event): Rename to ...
18083 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18084 from int to ptid_t. Adjust.
18085 (linux_wait_for_event): New.
18086 (linux_wait_1): Add `ptid' argument. Change return type to
18087 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18088 that exit from the process table.
18089 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18091 (mark_lwp_dead): New.
18092 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18093 stopping all threads, mark its main lwp as dead.
18094 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18096 (fetch_register, usr_store_inferior_registers)
18097 (regsets_fetch_inferior_registers)
18098 (regsets_store_inferior_registers, linux_read_memory)
18099 (linux_write_memory): Inline `inferior_pid'.
18100 (linux_look_up_symbols): Adjust to use per-process
18101 `thread_db_active'.
18102 (linux_request_interrupt): Adjust to use ptids.
18103 (linux_read_auxv): Inline `inferior_pid'.
18104 (initialize_low): Don't reference thread_db_active.
18105 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18106 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18107 (ps_getpid): Return the pid of the current inferior.
18108 * thread-db.c (proc_handle, thread_agent): Delete.
18109 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18111 (find_one_thread): Change argument type to ptid_t. Adjust to
18113 (maybe_attach_thread): Adjust to per-process data and ptids.
18114 (thread_db_find_new_threads): Ditto.
18115 (thread_db_init): Ditto.
18116 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18117 processes table. Adjust to use ptids.
18118 (spu_kill, spu_detach): Adjust interface. Remove process from
18120 (spu_join, spu_thread_alive): Adjust interface.
18121 (spu_wait): Adjust interface. Remove process from processes
18122 table. Adjust to use ptids.
18123 * win32-low.c (current_inferior_tid): Delete.
18124 (current_inferior_ptid): New.
18125 (debug_event_ptid): New.
18126 (thread_rec): Take a ptid. Adjust.
18127 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18128 (child_delete_thread): Ditto.
18129 (do_initial_child_stuff): Add `attached' argument. Add process to
18131 (child_fetch_inferior_registers, child_store_inferior_registers):
18133 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18134 (win32_attach): Pass 1 to do_initial_child_stuff.
18135 (win32_kill): Adjust interface. Remove process from processes
18137 (win32_detach): Ditto.
18138 (win32_join): Adjust interface.
18139 (win32_thread_alive): Take a ptid.
18140 (win32_resume): Adjust to use ptids.
18141 (get_child_debug_event): Ditto.
18142 (win32_wait): Adjust interface. Remove exiting process from
18145 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18147 Non-stop mode support.
18149 * server.h (non_stop): Declare.
18150 (gdb_client_data, handler_func): Declare.
18151 (delete_file_handler, add_file_handler, start_event_loop):
18153 (handle_serial_event, handle_target_event, push_event)
18154 (putpkt_notif): Declare.
18155 * target.h (enum resume_kind): New.
18156 (struct thread_resume): Replace `step' field by `kind' field.
18157 (TARGET_WNOHANG): Define.
18158 (struct target_ops) <wait>: Add `options' argument.
18159 <supports_non_stop, async, start_non_stop>: New fields.
18160 (target_supports_non_stop, target_async): New.
18161 (start_non_stop): Declare.
18162 (mywait): Add `options' argument.
18163 * target.c (mywait): Add `options' argument. Print child exit
18164 notifications here.
18165 (start_non_stop): New.
18166 * server.c (non_stop, own_buf, mem_buf): New globals.
18167 (struct vstop_notif): New.
18168 (notif_queue): New global.
18169 (queue_stop_reply, push_event, discard_queued_stop_replies)
18170 (send_next_stop_reply): New.
18171 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18173 (attach_inferior): In non-stop mode, don't wait for the target
18175 (handle_general_set): Handle QNonStop.
18176 (handle_query): When handling qC, return the current general
18177 thread, instead of the first thread of the list.
18178 (handle_query): If the backend supports non-stop mode, include
18179 QNonStop+ in the qSupported query response.
18180 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18182 (handle_v_attach, handle_v_run): Handle non-stop mode.
18183 (handle_v_stopped): New.
18184 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18185 (myresume): Adjust to use resume_kind. Handle non-stop.
18186 (queue_stop_reply_callback): New.
18187 (handle_status): Handle non-stop mode.
18188 (main): Clear non_stop flag on reconnection. Use the event-loop.
18189 Refactor serial protocol handling from here ...
18190 (process_serial_event): ... to this new function. When GDB
18191 selects any thread, select one here. In non-stop mode, wait until
18192 GDB acks all pending events before exiting.
18193 (handle_serial_event, handle_target_event): New.
18194 * remote-utils.c (remote_open): Install remote_desc in the event
18196 (remote_close): Remove remote_desc from the event loop.
18197 (putpkt_binary): Rename to...
18198 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18199 (putpkt_binary): New as wrapper around putpkt_binary_1.
18200 (putpkt_notif): New.
18201 (prepare_resume_reply): In non-stop mode, don't change the
18203 * event-loop.c: New.
18204 * Makefile.in (OBJ): Add event-loop.o.
18205 (event-loop.o): New rule.
18207 * linux-low.h (pid_of): Moved here.
18209 (get_lwp_thread): Use lwpid_of.
18210 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18211 * linux-low.c (pid_of): Delete.
18212 (inferior_pid): Use lwpid_of.
18213 (linux_event_pipe): New.
18214 (target_is_async_p): New.
18216 (handle_extended_wait): Use lwpid_of.
18217 (add_lwp): Don't set lwpid field.
18218 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18219 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18220 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18221 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18222 first. Adjust to linux_wait_for_event interface changes. Use
18224 (linux_detach): Don't delete the main lwp here.
18225 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18226 (status_pending_p): Don't consider explicitly suspended lwps.
18227 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18228 pointer. Add OPTIONS argument. Change return type to int. Use
18229 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18230 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18231 pointer. Add status pointer argument. Return a pid instead of a
18232 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18233 changes. In non-stop mode, don't switch to a random thread.
18234 (linux_wait): Rename to...
18235 (linux_wait_1): ... this. Add target_options argument, and handle
18236 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18237 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18238 clean exit and signal exit code. Don't stop all threads in
18239 non-stop mode. In all-stop mode, only stop all threads when
18240 reporting a stop to GDB. Handle explicit thread stop requests.
18241 (async_file_flush, async_file_mark): New.
18243 (send_sigstop): Use lwpid_of.
18244 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18245 interface changes. In non-stop mode, don't switch to a random
18247 (linux_resume_one_lwp): Use lwpid_of.
18248 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18249 (linux_resume_one_thread): ... this. Handle resume_stop. In
18250 non-stop mode, don't look for pending flag in all threads.
18251 (resume_status_pending_p): Don't consider explicitly suspended
18253 (my_waitpid): Reimplement. Emulate __WALL.
18254 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18256 (sigchld_handler, linux_supports_non_stop, linux_async)
18257 (linux_start_non_stop): New.
18258 (linux_target_ops): Register linux_supports_non_stop, linux_async
18259 and linux_start_non_stop.
18260 (initialize_low): Install SIGCHLD handler.
18261 * thread-db.c (thread_db_create_event, find_one_thread)
18262 (thread_db_get_tls_address): Use lwpid_of.
18263 * win32-low.c (win32_detach): Adjust to use resume_kind.
18264 (win32_wait): Add `options' argument.
18265 * spu-low.c (spu_resume): Adjust to use resume_kind.
18266 (spu_wait): Add `options' argument.
18268 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18270 Decouple target code from remote protocol.
18272 * target.h (enum target_waitkind): New.
18273 (struct target_waitstatus): New.
18274 (struct target_ops) <wait>: Return an unsigned long. Take a
18275 target_waitstatus pointer instead of a char pointer.
18276 (mywait): Likewise.
18277 * target.c (mywait): Change prototype to return an unsigned long.
18278 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18279 * server.h (thread_from_wait, old_thread_from_wait): Delete
18281 (prepare_resume_reply): Change prototype to take a
18283 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18284 (last_status, last_ptid): New.
18285 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18286 pid instead of a signal.
18287 (attach_inferior): Remove "status" and "signal" parameters.
18289 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18291 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18292 (handle_v_requests, myresume): Remove "status" and "signal"
18293 parameters. Adjust.
18294 (handle_status): New.
18295 (main): Delete local `status'. Adjust.
18296 * remote-utils.c: Include target.h.
18297 (prepare_resume_reply): Change prototype to take a
18298 target_waitstatus. Adjust.
18300 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18302 * spu-low.c (spu_wait): Adjust.
18303 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18305 (win32_wait): Adjust.
18307 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18309 * target.h (struct thread_resume): Delete leave_stopped member.
18310 (struct target_ops): Add a `n' argument to the `resume' callback.
18311 * server.c (start_inferior): Adjust.
18312 (handle_v_cont, myresume): Adjust.
18313 * linux-low.c (check_removed_breakpoint): Adjust to resume
18314 interface change, and to removed leave_stopped field.
18315 (resume_ptr): Delete.
18316 (struct thread_resume_array): New.
18317 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18318 resume interface change.
18319 (linux_continue_one_thread, linux_queue_one_thread)
18320 (resume_status_pending_p): Check if the resume field is NULL
18321 instead of checking the leave_stopped member.
18322 (linux_resume): Adjust to the target resume interface change.
18323 * spu-low.c (spu_resume): Adjust to the target resume interface
18325 * win32-low.c (win32_detach, win32_resume): Ditto.
18327 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18329 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
18331 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
18333 (linux_continue_one_thread): Only preserve the stepping flag if
18334 there's a pending breakpoint.
18336 2009-03-31 Pedro Alves <pedro@codesourcery.com>
18338 * server.c (main): After the inferior having exited, call
18339 remote_close before exiting gdbserver.
18341 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
18343 Fix size of FPSCR in Power 7 processors.
18344 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
18345 (PPC_FEATURE_HAS_DFP): New #define.
18346 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
18349 2009-03-23 Pedro Alves <pedro@codesourcery.com>
18351 * server.c (handle_query) Whitespace and formatting.
18353 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18355 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
18356 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
18357 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
18358 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
18359 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
18360 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
18361 Makefile.in, configure.ac: Fix whitespace throughout.
18362 * configure: Regenerate.
18364 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18366 * inferiors.c (find_inferior): Make it safe for the callback
18367 function to delete the currently iterated inferior.
18369 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18371 * Makefile.in (linuw_low_h): Move higher.
18372 (thread-db.o): Depend on $(linux_low_h).
18374 2009-03-17 Pedro Alves <pedro@codesourcery.com>
18376 Rename "process" to "lwp" throughout.
18378 * linux-low.c (all_processes): Rename to...
18379 (all_lwps): ... this.
18380 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
18381 (add_process): Rename to ...
18382 (add_lwp): ... this. Adjust.
18383 (linux_create_inferior): Adjust.
18384 (linux_attach_lwp): Adjust.
18385 (linux_attach): Adjust.
18386 (linux_kill_one_process): Rename to ...
18387 (linux_kill_one_lwp): ... this. Adjust.
18388 (linux_kill): Adjust.
18389 (linux_detach_one_process): Rename to ...
18390 (linux_detach_one_lwp): ... this. Adjust.
18391 (linux_detach): Adjust.
18392 (check_removed_breakpoint): Adjust.
18393 (status_pending_p): Adjust.
18394 (linux_wait_for_process): Rename to ...
18395 (linux_wait_for_lwp): ... this. Adjust.
18396 (linux_wait_for_event): Adjust.
18397 (send_sigstop): Adjust.
18398 (wait_for_sigstop): Adjust.
18399 (stop_all_processes): Rename to ...
18400 (stop_all_lwps): ... this.
18401 (linux_resume_one_process): Rename to ...
18402 (linux_resume_one_lwp): ... this. Adjust.
18403 (linux_set_resume_request, linux_continue_one_thread)
18404 (linux_queue_one_thread, resume_status_pending_p)
18405 (usr_store_inferior_registers, regsets_store_inferior_registers)
18406 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18408 * linux-low.h (get_process): Rename to ...
18409 (get_lwp): ... this. Adjust.
18410 (get_thread_process): Rename to ...
18411 (get_thread_lwp): ... this. Adjust.
18412 (get_process_thread): Rename to ...
18413 (get_lwp_thread): ... this. Adjust.
18414 (struct process_info): Rename to ...
18415 (struct lwp_info): ... this.
18416 (all_processes): Rename to ...
18417 (all_lwps): ... this.
18418 * proc-service.c (ps_lgetregs): Adjust.
18419 * thread-db.c (thread_db_create_event, find_one_thread)
18420 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
18422 2009-03-14 Pedro Alves <pedro@codesourcery.com>
18424 * server.c (handle_query): Handle "qAttached".
18426 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
18428 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
18429 GPLv3, update license URL.
18431 2009-03-01 Doug Evans <dje@google.com>
18433 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
18434 (server_h): Add gdb_signals.h.
18435 (signals.o): Update.
18436 * server.h (target_signal_from_host,target_signal_to_host_p)
18437 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
18439 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
18441 * remote-utils.c (getpkt): Also generate remote-debug
18442 information if noack_mode is set.
18444 2009-02-06 Pedro Alves <pedro@codesourcery.com>
18446 * server.c (handle_query): Report qXfer:siginfo:read and
18447 qXfer:siginfo:write as supported and handle them.
18448 * target.h (struct target_ops) <qxfer_siginfo>: New field.
18449 * linux-low.c (linux_xfer_siginfo): New.
18450 (linux_target_ops): Set it.
18452 2009-01-26 Pedro Alves <pedro@codesourcery.com>
18454 * server.c (gdbserver_usage): Mention --remote-debug.
18455 (main): Accept '--remote-debug' switch.
18457 2009-01-18 Doug Evans <dje@google.com>
18459 * regcache.c (new_register_cache): No need to check result of xcalloc.
18460 * server.c (handle_search_memory): Back out calls to xmalloc,
18461 result is checked and error is returned to user upon failure.
18462 (handle_query): Ditto. Add more checks for result of malloc.
18463 (handle_v_cont): Check result of malloc, report error back to
18465 (handle_v_run): Ditto. Call freeargv.
18466 * server.h (freeargv): Declare.
18467 * utils.c (freeargv): New fn.
18469 2009-01-15 Doug Evans <dje@google.com>
18471 * gdbreplay.c (perror_with_name): Make arg const char *.
18472 * server.h (target_signal_to_name): Make return type const char *.
18473 * thread-db.c (thread_db_err_str): Make return type const char *.
18474 * utils.c (perror_with_name): Make arg const char *.
18476 2009-01-14 Pedro Alves <pedro@codesourcery.com>
18478 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
18479 when handling a EXIT_PROCESS_DEBUG_EVENT.
18481 2009-01-06 Joel Brobecker <brobecker@adacore.com>
18483 * gdbreplay.c (gdbreplay_version): Update copyright year.
18484 * server.c (gdbserver_version): Likewise.
18486 2009-01-05 Doug Evans <dje@google.com>
18488 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
18489 (handle_extended_wait): Improve comment.
18491 2008-12-13 Doug Evans <dje@google.com>
18493 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
18494 * server.h (ATTR_MALLOC): New macro.
18495 (xmalloc,xcalloc,xstrdup): Declare.
18496 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
18497 * inferiors.c: Ditto.
18498 * linux-low.c: Ditto.
18499 * mem-break.c: Ditto.
18500 * regcache.c: Ditto.
18501 * remote-utils.c: Ditto.
18504 * win32-low.c: Ditto.
18506 2008-12-12 Doug Evans <dje@google.com>
18508 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
18509 in debugging printf.
18511 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
18513 2008-12-09 Doug Evans <dje@google.com>
18515 * linux-low.h (struct process_info): Delete member tid, unused.
18516 * thread-db.c (find_one_thread): Update.
18517 (maybe_attach_thread): Update.
18519 2008-12-02 Pedro Alves <pedro@codesourcery.com>
18521 * target.h (struct target_ops): Add qxfer_osdata member.
18522 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
18524 (linux_qxfer_osdata): New functions.
18525 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
18527 * server.c (handle_query): Handle "qXfer:osdata:read:".
18528 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
18529 (buffer_xml_printf): New functions.
18530 * server.h (struct buffer): New.
18531 (buffer_grow_str, buffer_grow_str0): New macros.
18532 (buffer_grow, buffer_free, buffer_init, buffer_finish)
18533 (buffer_xml_printf): Declare.
18535 2008-11-24 Doug Evans <dje@google.com>
18537 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
18539 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
18541 * server.c (handle_v_run): Always use the supplied argument list.
18543 2008-11-19 Bob Wilson <bob.wilson@acm.org>
18545 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
18546 (xtensa_regmap_table): Add entry for scompare1.
18548 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
18550 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
18551 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
18552 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
18553 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
18554 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
18555 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
18556 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
18557 XML target descriptions.
18558 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
18559 when inferior is running on an ISA 2.05 or later processor. Add
18560 special case to return offset for full 64-bit slot of FPSCR when
18563 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
18565 * Makefile.in (SFILES, clean): Added sparc64 files.
18566 (reg-sparc64.o, reg-sparc64.c): New.
18567 * configure.srv (sparc*-*-linux*): New configuration.
18568 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
18569 syscall arguments for SPARC.
18570 (regsets_store_inferior_registers): Likewise.
18571 * linux-sparc-low.c: New file.
18573 2008-10-21 Doug Evans <dje@google.com>
18575 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
18576 (READLINE_DIR,READLINE_DEP): Delete.
18577 (INTERNAL_CFLAGS): Update.
18578 (LINTFLAGS): Update.
18580 2008-10-10 Pedro Alves <pedro@codesourcery.com>
18582 * server.c (handle_v_run): If GDB didn't specify an argv, use the
18583 whole argv from the last run, not just argv[0].
18585 2008-09-08 Pedro Alves <pedro@codesourcery.com>
18587 * regcache.c (new_register_cache): Return NULL if the register
18588 cache size isn't known yet.
18589 (free_register_cache): Avoid dereferencing a NULL regcache.
18591 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18593 * configure.srv: Merge MIPS and MIPS64.
18595 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
18597 * Makefile.in (uninstall): Apply $(EXEEXT) too.
18599 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
18601 * Makefile.in: Add required vsx dependencies.
18603 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
18604 Declare init_registers_powerpc_vsx32l.
18605 Declare init_registers_powerpc_vsx64l.
18606 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
18607 (ppc_arch_setup): Check for VSX in hwcap.
18608 (ppc_fill_vsxregset): New function.
18609 (ppc_store_vsxregset): New function.
18610 Add new VSX entry in regset_info target_regsets.
18612 * configure.srv: Add new VSX dependencies.
18614 2008-08-12 Pedro Alves <pedro@codesourcery.com>
18616 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
18617 (remote_open): Set or clear transport_is_reliable.
18618 (putpkt_binary): Don't expect acks in noack mode.
18619 (getpkt): Don't send ack/nac in noack mode.
18620 * server.c (handle_general_set): Handle QStartNoAckMode.
18621 (handle_query): If connected by tcp pass QStartNoAckMode+ in
18623 (main): Reset noack_mode on every connection.
18624 * server.h (noack_mode): Declare.
18626 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18628 * Makefile.in (GDBREPLAY_OBS): New variable.
18629 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
18631 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
18632 Daniel Jacobowitz <dan@codesourcery.com>
18634 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
18635 (usr_store_inferior_registers): Likewise.
18636 (regsets_store_inferior_registers): Likewise.
18638 2008-07-31 Rolf Jansen <rj@surtec.com>
18639 Pedro Alves <pedro@codesourcery.com>
18641 * configure.ac: Check for memmem declaration.
18642 * server.c [HAVE_MALLOC_H]: Include malloc.h.
18643 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
18644 (disable_packet_qfThreadInfo): Unconditionally compile.
18645 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
18646 * configure, config.in: Regenerate.
18648 2008-07-28 Doug Kwan <dougkwan@google.com>
18650 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
18651 (linux_write_memory): Remove declaration of errno.
18653 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
18655 * linux-low.c (handle_extended_wait): Do not use "status"
18656 variable uninitialized.
18658 2008-07-07 Pedro Alves <pedro@codesourcery.com>
18660 * server.c (handle_v_attach): Inhibit reporting dll changes.
18662 2008-06-27 Pedro Alves <pedro@codesourcery.com>
18664 * remote-utils.c (prepare_resume_reply): If requested, don't
18665 output "thread:TID" in the T stop reply.
18667 * server.c (disable_packet_vCont, disable_packet_Tthread)
18668 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
18669 (handle_query): If requested, disable support for qC, qfThreadInfo
18671 (handle_v_requests): If requested, disable support for vCont.
18672 (gdbserver_show_disableable): New.
18673 (main): Handle --disable-packet and --disable-packet=LIST.
18675 * server.h (disable_packet_vCont, disable_packet_Tthread)
18676 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
18678 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
18680 * server.c (gdbserver_usage): Mention --version.
18682 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
18684 * Makefile.in (gdbreplay.o): New rule.
18686 2008-06-06 Joseph Myers <joseph@codesourcery.com>
18688 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
18689 message, not gdbserver.
18691 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
18692 Nathan Sidwell <nathan@codesourcery.com>
18693 Joseph Myers <joseph@codesourcery.com>
18695 * acinclude.m4: Include ../../config/acx.m4.
18696 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
18697 * configure, config.in: Regenerate.
18698 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
18699 * server.c (gdbserver_version): Print PKGVERSION.
18700 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
18701 (main): Adjust gdbserver_usage calls.
18702 * gdbreplay.c (version, host_name): Add declarations.
18703 (gdbreplay_version, gdbreplay_usage): New.
18704 (main): Accept --version and --help options.
18706 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
18708 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
18709 (arm_breakpoint_at): Handle Thumb.
18710 (the_low_target): Add comment.
18712 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
18714 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
18716 2008-05-09 Doug Evans <dje@google.com>
18718 * server.h (decode_search_memory_packet): Declare.
18719 * remote-utils.c (decode_search_memory_packet): New fn.
18720 * server.c (handle_search_memory_1): New fn.
18721 (handle_search_memory): New fn.
18722 (handle_query): Process qSearch:memory packets.
18724 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
18726 * regcache.c (registers_length): Remove.
18727 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
18728 full register packet.
18729 * regcache.h (registers_length): Remove prototype.
18730 * server.h (PBUFSIZ): Define to 16384.
18732 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
18734 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
18735 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
18736 powerpc-64l.o, and powerpc-altivec64l.o.
18737 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
18738 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
18739 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
18740 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
18741 rs6000/power-linux.xml, and rs6000/power64-linux.xml
18744 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
18745 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
18746 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
18747 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
18748 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
18749 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
18750 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
18751 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
18752 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
18753 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
18756 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
18757 (init_registers_powerpc_32l): ... this new prototype.
18758 (init_registers_powerpc_32): Remove, replace by ...
18759 (init_registers_powerpc_altivec32l): ... this new prototype.
18760 (init_registers_powerpc_e500): Remove, replace by ...
18761 (init_registers_powerpc_e500l): ... this new prototype.
18762 (init_registers_ppc64): Remove, replace by ...
18763 (init_registers_powerpc_64l): ... this new prototype.
18764 (init_registers_powerpc_64): Remove, replace by ...
18765 (init_registers_powerpc_altivec64l): ... this new prototype.
18766 (ppc_num_regs): Set to 73.
18767 (PT_ORIG_R3, PT_TRAP): Define if necessary.
18768 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
18769 (ppc_cannot_store_register): Handle orig_r3 and trap.
18770 (ppc_arch_setup): Update init_registers_... calls.
18771 (ppc_fill_gregset): Handle orig_r3 and trap.
18773 * inferiors.c (clear_inferiors): Reset current_inferior.
18775 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
18777 * acinclude.m4: Add override.m4.
18778 * configure: Regenerate.
18780 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18782 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
18783 initial call to init_register_ppc64.
18785 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18787 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
18788 single powerpc*-*-linux* case.
18789 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
18791 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
18793 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
18794 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
18796 * linux-ppc-low.c: Include <elf.h>.
18797 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
18798 (ppc_hwcap): New global variable.
18799 (ppc_regmap): Remove __SPE__ #ifdef sections.
18800 (ppc_regmap_e500): New global variable.
18801 (ppc_cannot_store_register): Update __SPE__ special case.
18802 (ppc_get_hwcap): New function.
18803 (ppc_arch_setup): Use it to determine whether inferior supports
18804 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
18805 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
18806 Do not access registers if target does not support AltiVec.
18807 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
18808 Do not access registers if target does not support SPE.
18809 (target_regsets): Unconditionally include AltiVec and SPE regsets.
18811 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
18813 * linux-low.c (disabled_regsets, num_regsets): New.
18814 (use_regsets_p): Delete.
18815 (linux_wait_for_process): Clear disabled_regsets.
18816 (regsets_fetch_inferior_registers): Check and set it.
18817 (regsets_store_inferior_registers): Likewise.
18818 (linux_fetch_registers, linux_store_registers): Do not use
18820 (initialize_low): Allocate disabled_regsets.
18822 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
18824 * Makefile.in (LIBOBJS): New.
18825 (OBS): Use LIBOBJS.
18826 (memmem.o): New rule.
18827 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
18828 * configure: Regenerated.
18830 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
18832 * server.c (handle_query): Never return "unsupported" for
18833 qXfer:features:read queries.
18835 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
18837 * server.c (get_features_xml): Fix inverted condition.
18838 (handle_query): Always support qXfer:feature:read.
18840 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
18842 * server.c (wrapper_argv): New.
18843 (start_inferior): Handle wrapper_argv. If set, expect an extra
18845 (gdbserver_usage): Document --wrapper.
18846 (main): Parse --wrapper.
18848 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18850 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
18851 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
18852 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
18853 (ppc_set_pc): Likewise.
18854 (ppc_arch_setup): New function.
18855 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
18856 of collect_register.
18857 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
18859 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18861 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
18862 instead of linux-ppc64-low.o.
18863 * linux-ppc64-low.c: Remove file.
18864 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
18865 (linux-ppc64-low.o): Remove rule.
18867 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
18868 (init_registers_powerpc_64): Likewise.
18869 (ppc_regmap): Conditionally define depending on __powerpc64__.
18870 (ppc_cannot_store_register): Do not special-case "fpscr" when
18871 compiled on __powerpc64__.
18872 (ppc_collect_ptrace_register): New function.
18873 (ppc_supply_ptrace_register): New function.
18874 (ppc_breakpoint): Change type to "unsigned int".
18875 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
18876 (the_low_target): Conditionally provide initializers for the
18877 arch_setup member depending on __powerpc64__. Install
18878 collect_ptrace_register and supply_ptrace_register members.
18880 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18882 * regcache.h (gdbserver_xmltarget): Add extern declaration.
18883 * server.c (gdbserver_xmltarget): Define.
18884 (get_features_xml): Use it to replace "target.xml" and arch_string.
18886 * configure.srv: Remove srv_xmltarget. Add XML files that were
18887 mentioned there to srv_xmlfiles instead. Remove conditional tests
18888 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
18889 srv_xmlfiles and srv_regobj to include all possible choices.
18890 * configure.ac (srv_xmltarget): Remove.
18891 (srv_xmlfiles): Do not add "target.xml".
18892 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
18893 checks for supplementary target information.
18894 * configure: Regenerate.
18895 * Makefile.in (XML_TARGET): Remove.
18896 (target.xml): Remove rule.
18897 (clean): Do not clean up target.xml.
18898 (.PRECIOUS): Do not mention target.xml.
18900 * target.h (struct target_ops): Remove arch_string member.
18901 * linux-low.c (linux_arch_string): Remove.
18902 (linux_target_ops): Remove arch_string initializer.
18903 * linux-low.h (struct linux_target_ops): Remove arch_string member.
18904 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
18905 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
18906 * spu-low.c (spu_arch_string): Remove.
18907 (spu_target_ops): Remove arch_string initializer.
18908 * win32-low.c (win32_arch_string): Remove.
18909 (win32_target_ops): Remove arch_string initializer.
18910 * win32-low.h (struct win32_target_ops): Remove arch_string member.
18911 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
18912 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
18914 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18916 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
18917 by collect_ptrace_register and supply_ptrace_register hooks.
18918 * linux-low.c (fetch_register): Use supply_ptrace_register callback
18919 instead of checking for the_low_target.left_pad_xfer.
18920 (usr_store_inferior_registers): Use collect_ptrace_register callback
18921 instead of checking for the_low_target.left_pad_xfer.
18923 * linux-s390-low.c (s390_collect_ptrace_register): New function.
18924 (s390_supply_ptrace_register): Likewise.
18925 (s390_fill_gregset): Call s390_collect_ptrace_register.
18926 (the_low_target): Update.
18928 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
18929 (ppc_supply_ptrace_register): Likewise.
18930 (the_low_target): Update.
18932 * linux-i386-low.c (the_low_target): Update.
18933 * linux-x86-64-low.c (the_low_target): Update.
18935 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18937 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
18938 reg-s390.o and reg-s390x.o.
18940 * linux-low.c (new_inferior): New global variable.
18941 (linux_create_inferior, linux_attach): Set it.
18942 (linux_wait_for_process): Call the_low_target.arch_setup after the
18943 target has stopped for the first time.
18944 (initialize_low): Do not call the_low_target.arch_setup.
18946 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
18947 (s390_set_pc): Likewise.
18948 (s390_arch_setup): New function.
18949 (the_low_target): Use s390_arch_setup as arch_setup routine.
18951 * regcache.c (realloc_register_cache): New function.
18952 (set_register_cache): Call it for each existing regcache.
18954 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18956 * server.h (init_registers): Remove prototype.
18958 * linux-low.h (struct linux_target_ops): Add arch_setup field.
18959 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
18960 instead of init_registers ().
18961 * linux-arm-low.c (init_registers_arm): Add prototype.
18962 (init_registers_arm_with_iwmmxt): Likewise.
18963 (the_low_target): Add initializer for arch_setup field.
18964 * linux-cris-low.c (init_registers_cris): Add prototype.
18965 (the_low_target): Add initializer for arch_setup field.
18966 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
18967 (the_low_target): Add initializer for arch_setup field.
18968 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
18969 (the_low_target): Add initializer for arch_setup field.
18970 * linux-ia64-low.c (init_registers_ia64): Add prototype.
18971 (the_low_target): Add initializer for arch_setup field.
18972 * linux-m32r-low.c (init_registers_m32r): Add prototype.
18973 (the_low_target): Add initializer for arch_setup field.
18974 * linux-m68k-low.c (init_registers_m68k): Add prototype.
18975 (the_low_target): Add initializer for arch_setup field.
18976 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
18977 (init_registers_mips64_linux): Likewise.
18978 (the_low_target): Add initializer for arch_setup field.
18979 * linux-ppc-low.c (init_registers_ppc): Add prototype.
18980 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
18981 (the_low_target): Add initializer for arch_setup field.
18982 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
18983 (init_registers_powerpc_64): Likewise.
18984 (the_low_target): Add initializer for arch_setup field.
18985 * linux-s390-low.c (init_registers_s390): Add prototype.
18986 (init_registers_s390x): Likewise.
18987 (the_low_target): Add initializer for arch_setup field.
18988 * linux-sh-low.c (init_registers_sh): Add prototype.
18989 (the_low_target): Add initializer for arch_setup field.
18990 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
18991 (the_low_target): Add initializer for arch_setup field.
18992 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
18993 (the_low_target): Add initializer for arch_setup field.
18995 * win32-low.h (struct win32_target_ops): Add arch_setup field.
18996 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
18997 instead of init_registers ().
18998 * win32-arm-low.c (init_registers_arm): Add prototype.
18999 (the_low_target): Add initializer for arch_setup field.
19000 * win32-i386-low.c (init_registers_i386): Add prototype.
19001 (the_low_target): Add initializer for arch_setup field.
19003 * spu-low.c (init_registers_spu): Add prototype.
19004 (initialize_low): Call initialie_registers_spu () instead of
19005 initialize_registers ().
19007 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19009 * server.c (handle_v_requests): When handling the vRun and vAttach
19010 packets, if already debugging a process, don't kill it. Return an
19013 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19015 * server.c (handle_query): Correct length check.
19017 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19019 * win32-low.c (do_initial_child_stuff): Add process handle
19020 parameter. Set current_process_handle and current_process_id from the
19021 parameters. Clear globals.
19022 (win32_create_inferior): Don't set current_process_handle and
19023 current_process_id here. Instead pass them on the call to
19024 do_initial_child_stuff.
19025 (win32_attach): Likewise.
19026 (win32_clear_inferiors): New.
19027 (win32_kill): Don't close the current process handle or the
19028 current thread handle here. Instead call win32_clear_inferiors.
19029 (win32_detach): Don't open a new handle to the process. Call
19030 win32_clear_inferiors.
19031 (win32_join): Don't rely on current_process_handle; open a new
19032 handle using the process id.
19033 (win32_wait): Call win32_clear_inferiors when the inferior process
19036 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19038 * server.c (monitor_show_help): Add "exit".
19040 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19042 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19043 (clean): Add reg-xtensa.c.
19044 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19045 * configure.srv (xtensa*-*-linux*) New target.
19046 * linux-xtensa-low.c: New.
19047 * xtensa-xtregs.c: New.
19049 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19051 * hostio.c: Don't include errno.h.
19052 (errno_to_fileio_errno): Move to hostio-errno.
19053 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19054 error number outputting to the target->hostio_last_error callback.
19055 (hostio_packet_error): Use FILEIO_EINVAL directly.
19056 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19057 calls to hostio_error.
19058 * hostio-errno.c: New.
19059 * server.h (hostio_last_error_from_errno): Declare.
19060 * target.h (target_ops): Add hostio_last_error member.
19061 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19062 as hostio_last_error handler.
19063 * spu-low.c (spu_target_ops): Likewise.
19064 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19065 (wince_hostio_last_error): New functions.
19066 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19067 as hostio_last_error handler.
19068 (win32_target_ops) [!_WIN32_WCE]: Register
19069 hostio_last_error_from_errno as hostio_last_error handler.
19070 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19071 (hostio-errno.o): New rule.
19072 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19073 * configure.srv (srv_hostio_err_objs): New variable. Default to
19075 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19076 * configure: Regenerate.
19078 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19080 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19081 (linux_kill, linux_detach): Clean up the process list.
19082 * remote-utils.c (remote_open): Improve port number parsing.
19083 (putpkt_binary, input_interrupt): Only send interrupts if the target
19085 * server.c (extended_protocol): Make static.
19086 (attached): Define earlier.
19087 (exit_requested, response_needed, program_argv): New variables.
19088 (target_running): New.
19089 (start_inferior): Clear attached here.
19090 (attach_inferior): Set attached here.
19091 (require_running): Define.
19092 (handle_query): Use require_running and target_running. Implement
19094 (handle_v_attach, handle_v_run): New.
19095 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19096 (gdbserver_usage): Update.
19097 (main): Redo argument parsing. Handle --debug and --multi. Handle
19098 --attach along with other options or after the port. Save
19099 program_argv. Support no initial program. Resynchronize
19100 communication with GDB after an error. Handle "monitor exit".
19101 Use require_running and target_running. Always allow the extended
19102 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19103 restart in extended mode.
19104 * README: Refer to the GDB manual. Update --attach usage.
19106 2007-12-20 Andreas Schwab <schwab@suse.de>
19108 * linux-low.c (STACK_SIZE): Define.
19109 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19110 (linux_test_for_tracefork): Likewise.
19112 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19114 * linux-low.c (linux_wait_for_event): Update messages. Do not
19115 reinsert auto-delete breakpoints.
19116 * mem-break.c (struct breakpoint): Change return type of handler to
19118 (set_breakpoint_at): Update handler type.
19119 (reinsert_breakpoint_handler): Return 1 instead of calling
19121 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19123 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19124 * mem-break.h (set_breakpoint_at): Update handler type.
19125 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19126 * win32-low.c (auto_delete_breakpoint): New.
19127 (get_child_debug_event): Use it.
19129 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19131 * configure.ac: Check for pread and pwrite.
19132 * hostio.c (handle_pread): Fall back to lseek and read.
19133 (handle_pwrite): Fall back to lseek and write.
19134 * config.in, configure: Regenerated.
19136 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19138 * server.c (myresume): Add own_buf argument.
19139 (main): Update calls.
19141 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19143 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19144 * remote-utils.c (remote_open): Do not call disable_async_io.
19145 (block_async_io): Delete.
19146 (unblock_async_io): Make static.
19147 (initialize_async_io): New.
19148 * server.c (handle_v_cont): Handle async I/O here.
19149 (myresume): Likewise. Move other common resume tasks here...
19150 (main): ... from here. Call initialize_async_io. Disable async
19151 I/O before the main loop.
19152 * server.h (initialize_async_io): Declare.
19153 (block_async_io, unblock_async_io): Delete prototypes.
19154 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19156 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19158 * remote-utils.c (readchar): Allow binary data in received messages.
19160 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19162 * win32-low.c (attaching): New global.
19163 (win32_create_inferior): Clear the `attaching' global.
19164 (win32_attach): Set the `attaching' global.
19165 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19166 attaching. Only set a breakpoint at the entry point if not
19169 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19171 * server.c (main): Don't report dll events on the initial
19172 connection on attaches.
19174 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19176 * server.c (main): Relax numerical bases supported for the pid of
19177 the --attach command line argument.
19179 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19181 * win32-low.c (win32_attach): Call OpenProcess before
19182 DebugActiveProcess, not after. Add last error output to error
19185 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19187 * win32-low.c (win32_get_thread_context)
19188 (win32_set_thread_context): New functions.
19189 (thread_rec): Use win32_get_thread_context.
19190 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19191 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19194 2007-12-03 Leo Zayas
19195 Pedro Alves <pedro_alves@portugalmail.pt>
19197 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19199 (child_add_thread): Minor cleanup.
19200 (child_continue): Resume artificially suspended threads before
19201 calling ContinueDebugEvent.
19202 (suspend_one_thread): New.
19203 (fake_breakpoint_event): New.
19204 (get_child_debug_event): Change return type to int. Check here if
19205 gdb sent an interrupt request. If a soft interrupt was requested,
19206 fake a breakpoint event. Return 0 if there is no event to handle,
19208 (win32_wait): Don't check here if gdb sent an interrupt request.
19209 Ensure there is a valid event to handle.
19210 (win32_request_interrupt): Add soft interruption method as last
19213 2007-12-03 Leo Zayas
19214 Pedro Alves <pedro_alves@portugalmail.pt>
19216 * win32-low.h (win32_thread_info): Add descriptions to the
19217 structure members. Replace `suspend_count' counter by a
19219 * win32-low.c (thread_rec): Update condition of when to get the
19220 context from the inferior. Rely on ContextFlags being set if it
19221 has already been retrieved. Only suspend the inferior thread if
19222 we haven't already. Warn if that fails.
19223 (continue_one_thread): s/suspend_count/suspended/. Only call
19224 ResumeThread once. Warn if that fails.
19226 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19228 * win32-low.c (win32_wait): Don't read from the inferior when it
19229 has already exited.
19231 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19233 * Makefile.in (win32_low_h): New variable.
19234 (win32-low.o): Add dependency on $(win32_low_h).
19235 (win32-arm-low.o, win32-i386-low.o): New rules.
19237 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19239 * hostio.c: Correct copyright year.
19241 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19243 * Makefile.in (OBS): Add hostio.o.
19244 (hostio.o): New rule.
19245 * server.h (handle_vFile): Declare.
19246 * hostio.c: New file.
19247 * server.c (handle_v_requests): Take packet_len and new_packet_len
19248 for binary packets. Call handle_vFile.
19249 (main): Update call to handle_v_requests.
19251 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19253 * linux-low.c: Include <sched.h>.
19255 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19257 * linux-low.c (linux_tracefork_grandchild): New.
19258 (linux_tracefork_child): Use clone.
19259 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19261 2007-10-31 Joel Brobecker <brobecker@adacore.com>
19263 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19265 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19267 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19269 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19271 * inferiors.c (change_inferior_id): Delete.
19272 (add_pid_to_list, pull_pid_from_list): New.
19273 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19274 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19275 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19276 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19277 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19278 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19279 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19280 (using_threads): Always set to 1.
19281 (handle_extended_wait): New.
19282 (add_process): Do not set TID.
19283 (linux_create_inferior): Set must_set_ptrace_flags.
19284 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19285 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19286 (linux_thread_alive): Rename TID argument to LWPID.
19287 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19288 (linux_wait_for_event): Do not use TID or check using_threads. Update
19289 call to dead_thread_notify. Call handle_extended_wait.
19290 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19291 (send_sigstop): Delete sigstop_sent.
19292 (wait_for_sigstop): Avoid TID.
19293 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19294 (linux_test_for_tracefork): New.
19295 (linux_lookup_signals): Use thread_db_active and
19296 linux_supports_tracefork_flag.
19297 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19298 * linux-low.h (get_process_thread): Avoid TID.
19299 (struct process_ifo): Move thread_known and tid to the end. Remove
19301 (linux_attach_lwp, thread_db_init): Update prototypes.
19302 * server.h (change_inferior_id): Delete prototype.
19303 (add_pid_to_list, pull_pid_from_list): New prototypes.
19304 * thread-db.c (thread_db_use_events): New.
19305 (find_first_thread): Rename to...
19306 (find_one_thread): ...this. Update callers and messages. Do not
19307 call fatal. Check thread_db_use_events. Do not call
19308 change_inferior_id or new_thread_notify.
19309 (maybe_attach_thread): Update. Do not call new_thread_notify.
19310 (thread_db_init): Set thread_db_use_events. Check use_events.
19311 * utils.c (fatal, warning): Correct message prefix.
19313 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19315 * Makefile.in (clean): Remove new files.
19316 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19317 (powerpc-64.o, powerpc-64.c): New rules.
19318 * configure.srv: Use alternate register sets for powerpc64-*-linux*
19319 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
19321 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
19323 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
19324 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
19325 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
19326 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
19327 (target_regsets): Add AltiVec and SPE register sets.
19328 * configure.ac: Check for AltiVec and SPE.
19329 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
19330 (ppc_fill_vrregset, ppc_store_vrregset): New.
19331 (target_regsets): Add AltiVec register set.
19332 * configure: Regenerated.
19334 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
19336 * linux-low.c (O_LARGEFILE): Define.
19337 (linux_read_memory): Use /proc/PID/mem.
19338 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
19339 * configure, config.in: Regenerated.
19341 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19343 * linux-low.c (linux_wait_for_event): Do not pass signals while
19346 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19348 * win32-low.c (create_process): New.
19349 (win32_create_inferior): Use create_process instead of
19350 CreateProcess. If create_process failed retry appending an ".exe"
19351 suffix. Store the GetLastError result immediatelly after
19352 create_process calls and use it on the call to error.
19354 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19356 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
19358 2007-08-23 Joel Brobecker <brobecker@adacore.com>
19360 * configure.ac: Switch license to GPLv3.
19362 2007-08-01 Michael Snyder <msnyder@access-company.com>
19364 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
19366 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
19368 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
19370 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
19371 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
19372 CloseToolhelp32Snapshot.
19373 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
19374 CloseToolhelp32Snapshot.
19376 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
19378 * server.c (main): Check for inferior exit before main loop.
19380 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
19382 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
19383 instead of on tmp_desc.
19385 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
19386 Daniel Jacobowitz <dan@codesourcery.com>
19388 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
19389 (add_thread): Minor cleanups.
19390 (clear_inferiors): Move lower in the file. Clear the DLL
19392 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
19393 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
19394 (xml_escape_text): New.
19395 * server.c (handle_query): Handle qXfer:libraries:read. Report it
19397 (handle_v_cont): Report errors.
19398 (gdbserver_version): Update.
19399 (main): Correct size of own_buf. Do not report initial DLL events.
19400 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
19401 (unloaded_dll, xml_escape_text): New.
19402 * win32-low.c (enum target_waitkind): Update comments.
19403 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
19404 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
19405 (win32_EnumProcessModules, win32_GetModuleInformation)
19406 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
19407 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
19408 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
19409 (win32_Module32First, win32_Module32Next, load_toolhelp)
19410 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
19411 (get_child_debug_event): Handle DLL events.
19412 (win32_wait): Likewise.
19414 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19416 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
19417 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
19419 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19421 * win32-low.c (handle_output_debug_string): Ignore event if not
19424 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19426 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
19428 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
19430 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
19432 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19434 * inferiors.c (change_inferior_id): Add comment.
19435 * linux-low.c (check_removed_breakpoint): Add an early
19436 prototype. Improve debug output.
19437 (linux_attach): Doc update.
19438 (linux_detach_one_process, linux_detach): Clean up before releasing
19440 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
19441 * linux-low.h (struct process_info): Doc improvement.
19442 * mem-break.c (delete_all_breakpoints): New.
19443 * mem-break.h (delete_all_breakpoints): New prototype.
19444 * thread-db.c (find_first_thread): New.
19445 (thread_db_create_event): Call it instead of
19446 thread_db_find_new_threads. Clean up unused variables.
19447 (maybe_attach_thread): Remove first thread handling.
19448 (thread_db_find_new_threads): Use find_first_thread.
19449 (thread_db_get_tls_address): Likewise.
19451 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
19453 * thread-db.c (thread_db_find_new_threads): Add prototype.
19454 (thread_db_create_event): Check for the main thread before adding
19456 (maybe_attach_thread): Only enable event reporting if TID == 0.
19457 (thread_db_get_tls_address): Check for new threads.
19459 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
19461 * linux-low.c (linux_create_inferior): Try execv before execvp.
19462 * spu-low.c (spu_create_inferior): Likewise.
19464 2007-06-13 Mike Frysinger <vapier@gentoo.org>
19466 * linux-low.c (linux_create_inferior): Change execv to execvp.
19467 * spu-low.c (spu_create_inferior): Likewies.
19469 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
19471 * Makefile.in (clean): Clean new files instead of deleted ones.
19472 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
19473 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
19475 * configure.srv: Specify XML files and new regformats for MIPS and
19477 * linux-mips-low.c (mips_num_regs): Set to only used registers.
19478 (mips_regmap): Do not fetch $0. Remove unused registers. Add
19479 an entry for the restart register.
19480 (mips_cannot_fetch_register, mips_cannot_store_register)
19481 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
19482 register names to match the XML descriptions.
19483 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
19484 restart register instead of $0.
19486 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19487 Markus Deuling <deuling@de.ibm.com>
19489 * remote-utils.c (decode_xfer_write): New function.
19490 * server.h (decode_xfer_write): Add prototype.
19491 * server.c (handle_query): Add PACKET_LEN argument. Support
19492 qXfer:spu:read and qXfer:spu:write packets.
19493 (main): Pass packet_len to handle_query.
19494 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
19495 * target.h (target_ops): Add qxfer_spu.
19497 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19499 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
19500 accessing non-seekable spufs files.
19502 2007-05-16 Markus Deuling <deuling@de.ibm.com>
19504 * server.c (handle_query): Add reply for qC packet.
19506 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19507 Leo Zayas <lerele@champenstudios@com>
19509 * server.h (check_remote_input_interrupt_request): New function.
19510 * remote_utils.c (INVALID_DESCRIPTOR): New define.
19511 (remote_desc): Initialize with INVALID_DESCRIPTOR.
19512 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
19513 (check_remote_input_interrupt_request): New function.
19514 * server.h (check_remote_input_interrupt_request): Declare.
19515 * win32-low.c (winapi_DebugBreakProcess,
19516 winapi_GenerateConsoleCtrlEvent): New typedefs.
19517 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
19519 (win32_wait): Check for remote interrupt request
19520 with check_remote_input_interrupt_request.
19521 (win32_request_interrupt): New function.
19522 (win32_target_op): Set request_interrupt to win32_request_interrupt.
19524 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19526 * win32-low.c (debug_registers_changed,
19527 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
19528 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
19529 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
19530 (thread_rec): Get context using the low target.
19531 (child_add_thread): Call thread_added on the low target,
19532 which does the same thing.
19534 (do_initial_child_stuff): Remove debug registers references.
19535 Set context using the low target. Resume threads after
19536 setting the contexts.
19537 (child_continue): Remove dead variable. Remove debug
19538 registers references.
19539 (child_fetch_inferior_registers): Go through the low target.
19540 (do_child_store_inferior_registers): Remove.
19541 (child_store_inferior_registers): Go through the low target.
19542 (win32_resume): Remove debug registers references.
19543 Set context using the low target.
19544 (handle_exception): Change return type to void. Don't record
19545 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
19546 first chance exception.
19547 (get_child_debug_event): Change return type to void. Remove
19548 goto loop. Always return after waiting for debug event.
19549 (win32_wait): Convert to switch statement. Handle spurious
19552 * win32-i386-low.c (debug_registers_changed,
19553 debug_registers_used): New.
19554 (initial_stuff): Rename to ...
19555 (i386_initial_stuff): ... this. Clear debug registers
19557 (store_debug_registers): Delete.
19558 (i386_get_thread_context): New.
19559 (load_debug_registers): Delete.
19560 (i386_set_thread_context): New.
19561 (i386_thread_added): New.
19562 (single_step): Rename to ...
19563 (i386_single_step): ... this.
19564 (do_fetch_inferior_registers): Rename to ...
19565 (i386_fetch_inferior_register): ... this.
19566 (i386_store_inferior_register): New.
19567 (the_low_target): Adapt to new interface.
19569 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
19570 (arm_get_thread_context): New.
19571 (arm_set_thread_context): New.
19573 (do_fetch_inferior_registers): Rename to ...
19574 (arm_fetch_inferior_register): ... this.
19575 (arm_store_inferior_register): New.
19576 (arm_wince_breakpoint): Reimplement as unsigned long.
19577 (arm_wince_breakpoint_len): Define.
19578 (the_low_target): Adapt to new interface.
19580 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
19581 load_debug_registers. Add get_thread_context, set_thread_context,
19582 thread_added and store_inferior_register. Rename
19583 fetch_inferior_registers to fetch_inferior_register.
19584 (regptr): Remove declaration.
19586 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19588 * linux-low.c (linux_detach): Change return type to int. Return 0.
19589 * spu-low.c (spu_detach): Likewise.
19591 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19593 * target.h (target_ops): Change return type of detach to int.
19595 (join_inferior): New.
19596 * server.c (main): Don't skip detach support on mingw32.
19597 If the inferior doesn't support detaching return error.
19598 Call join_inferior instead of using waitpid.
19599 * linux-low.c (linux_join): New.
19600 (linux_target_op): Add linux_join.
19601 * spu-low.c (spu_join): New.
19602 (spu_target_ops): Add spu_join.
19603 * win32-low.c (win32_detach): Adapt to new interface.
19604 Reopen current_process_handle before detaching. Issue a child
19605 resume before detaching.
19607 (win32_target_op): Add win32_join.
19609 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19611 * win32-low.c (win32-attach): Fix return value.
19612 * target.h (target_ops): Describe ATTACH return values.
19614 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19616 * win32-low.c (GETPROCADDRESS): Define.
19617 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
19618 (winapi_DebugSetProcessKillOnExit): Likewise.
19619 (win32_create_inferior): Force usage of ansi CreateProcessA.
19620 (win32_attach): Use GETPROCADDRESS.
19621 (win32_detach): Likewise.
19623 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19625 * win32-low.c (win32_wait): Don't use WSTOPSIG.
19627 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
19629 * win32-low.c: Commit leftover changes from 2007-03-29.
19631 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19633 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
19634 fields short instead of int. Add explicit padding.
19635 (i387_cache_to_fsave): Remove unnecessary casts.
19636 (i387_fsave_to_cache): Doc fix.
19637 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
19639 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19641 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
19642 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
19644 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19646 * configure.srv (arm*-*-mingw32ce*): Move near the other
19649 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19651 * configure.ac: Add errno checking.
19652 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
19653 sys/file.h and malloc.h.
19654 (AC_CHECK_DECLS): Add perror.
19655 (srv_mingwce): Handle.
19656 * configure.srv (i[34567]86-*-cygwin*): Add
19657 win32-i386-low.o to srv_tgtobj.
19658 (i[34567]86-*-mingw*): Likewise.
19659 (arm*-*-mingw32ce*): Add case.
19660 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19661 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
19662 [__MINGW32CE__] (strerror): New function.
19663 [__MINGW32CE__] (errno): Define to GetLastError.
19664 [__MINGW32CE__] (COUNTOF): New macro.
19665 (remote_open): Remove extra close call.
19666 * mem-break.c (delete_breakpoint_at): New function.
19667 * mem-break.h (delete_breakpoint_at): Declare.
19668 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19669 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
19670 [USE_WIN32API] (read, write): Add char* casts.
19671 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
19672 * server.h: Include wincecompat.h on Windows CE.
19673 [HAVE_ERRNO_H]: Check.
19674 (perror): Declare if not declared.
19675 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
19676 (perror_with_name): Remove errno declaration.
19677 * wincecompat.h: New.
19678 * wincecompat.c: New.
19679 * win32-low.h: New.
19680 * win32-arm-low.c: New.
19681 * win32-i386-low.c: New.
19682 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
19683 (OUTMSG2): Make it safe.
19685 (COUNTOF): New macro.
19686 (NUM_REGS): Get it from the low target.
19687 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
19688 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
19689 (thread_rec): Let low target handle debug registers.
19690 (child_add_thread): Likewise.
19691 (child_init_thread_list): Likewise.
19692 (continue_one_thread): Likewise.
19694 (do_child_fetch_inferior_registers): Move to ...
19695 * win32-i386-low.c: ... here, and rename to ...
19696 (do_fetch_inferior_registers): ... this.
19697 * win32-low.c (child_fetch_inferior_registers):
19698 Go through the low target.
19699 (do_child_store_inferior_registers): Use regptr.
19700 (strwinerror): New function.
19701 (win32_create_inferior): Handle Windows CE.
19702 Use strwinerror instead of strerror on Windows error
19703 codes. Add program to the error output.
19704 Don't close the main thread handle on Windows CE.
19705 (win32_attach): Use coredll.dll on Windows CE.
19706 (win32_kill): Close current process and current
19708 (win32_detach): Use coredll.dll on Windows CE.
19709 (win32_resume): Let low target handle debug registers, and
19711 (handle_exception): Add/Remove initial breakpoint. Avoid
19712 non-existant WSTOPSIG on Windows CE.
19713 (win32_read_inferior_memory): Cast to remove warning.
19714 (win32_arch_string): Go through the low target.
19715 (initialize_low): Call set_breakpoint_data with the low
19716 target's breakpoint.
19717 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
19718 FOP_REGNUM, mappings): Move to ...
19719 * win32-i386-low.c: ... here.
19720 * win32-low.c (win32_thread_info): Move to ...
19721 * win32-low.h: ... here.
19722 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
19723 win32-arm-low.c and wincecompat.c.
19724 (all:): Add $EXEEXT.
19725 (install-only:): Likewise.
19726 (gdbserver:): Likewise.
19727 (gdbreplay:): Likewise.
19728 * config.in: Regenerate.
19729 * configure: Regenerate.
19731 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19733 * win32-low.c: Rename typedef thread_info to
19734 win32_thread_info throughout.
19736 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19738 * win32-i386-low.c: Rename to ...
19739 * win32-low.c: ... this.
19740 * configure.srv: Replace win32-i386-low.o with win32-low.o.
19741 * Makefile.in: Likewise.
19743 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
19745 * remote-utils.c (monitor_output): Constify msg parameter.
19746 * server.h (monitor_output): Likewise.
19747 * win32-i386-low.c (handle_output_debug_string): New.
19748 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
19749 handle_output_debug_string.
19750 (get_child_debug_event): Likewise.
19752 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
19754 * server.c (main): Correct strtoul check.
19756 2007-03-27 Jon Ringle <jon@ringle.org>
19758 * linux-low.c: Check __ARCH_HAS_MMU__ also.
19760 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
19762 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
19764 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
19766 * terminal.h: Check HAVE_SGTTY_H.
19768 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
19770 * remote-utils.c (remote_open): Print out the assigned port number.
19772 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
19774 * remote-utils.c (monitor_output): New function.
19775 * server.c (debug_threads): Define here.
19776 (monitor_show_help): New function.
19777 (handle_query): Handle qRcmd.
19778 (main): Do not handle 'd' packet.
19779 * server.h (debug_threads, remote_debug, monitor_output): Declare.
19780 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
19783 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19785 * Makefile.in (EXEEXT): New.
19786 (clean): Use $(EXEEXT).
19788 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19790 * target.h (target_ops): Rename send_signal to request_interrupt,
19791 and remove enum target_signal parameter.
19792 * linux-low.c (linux_request_interrupt): Rename from
19793 linux_send_signal, and always send SIGINT.
19794 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
19795 and always send SIGINT.
19796 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
19798 (input_interrupt): Likewise.
19800 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19802 * server.c (get_features_xml): Check if target implemented
19804 * win32-i386-low.c (win32_arch_string): New.
19805 (win32_target_ops): Add win32_arch_string as arch_string member.
19807 2007-02-22 Markus Deuling <deuling@de.ibm.com>
19809 * spu-low.c (spu_arch_string): New.
19810 (spu_target_ops): Add spu_arch_string.
19812 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
19814 * remote-utils.c: Remove HAVE_TERMINAL_H check.
19815 * configure.ac: Do not check for terminal.h.
19816 * configure, config.in: Regenerated.
19818 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19820 * Makefile.in (OBS): Add $(XML_BUILTIN).
19821 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
19823 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
19824 (arm-with-iwmmxt.c): New.
19825 * config.in, configure: Regenerate.
19826 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
19827 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
19828 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
19829 (arm*-*-linux*): Add iWMMXt and regset support.
19830 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
19831 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
19832 (arm_store_wmmxregset, target_regsets): New.
19833 * server.c (get_features_xml): Take annex argument. Check builtin
19835 (handle_query): Handle multiple annexes.
19837 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19839 * remote-utils.c [USE_WIN32API] (read, write): Define.
19840 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
19843 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
19845 * linux-i386-low.c (the_low_target): Set arch_string.
19846 * linux-x86-64-low.c (the_low_target): Likewise.
19847 * linux-low.c (linux_arch_string): New.
19848 (linux_target_ops): Add it.
19849 * linux-low.h (struct linux_target_ops): Add arch_string.
19850 * server.c (write_qxfer_response): Use const void * for DATA.
19851 (get_features_xml): New.
19852 (handle_query): Handle qXfer:features:read. Report it for qSupported.
19853 * target.h (struct target_ops): Add arch_string method.
19855 2007-01-03 Denis Pilat <denis.pilat@st.com>
19856 Daniel Jacobowitz <dan@codesourcery.com>
19858 * linux-low.c (linux_kill): Handle being called with no threads.
19859 * win32-i386-low.c (win32_kill): Likewise.
19860 (get_child_debug_event): Clear current_process_handle.
19862 2006-12-30 Denis PILAT <denis.pilat@st.com>
19863 Daniel Jacobowitz <dan@codesourcery.com>
19865 * remote-utils.c (remote_open): Check the type of specified
19866 serial port devices before opening them.
19867 * server.c (main): Kill the inferior if an error occurs during
19868 the first remote_open.
19870 2006-12-05 Markus Deuling <deuling@de.ibm.com>
19872 * README: Update supported targets.
19874 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
19876 * Makefile.in (clean): Remove reg-mips64.c.
19877 (reg-mips64.c, reg-mips64.o): New rules.
19878 * configure.srv: Handle mips64. Include regset support for mips.
19879 * linux-mips-low.c (union mips_register): New.
19880 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
19881 (mips_breakpoint, mips_breakpoint_at): Use int.
19882 (mips_collect_register, mips_supply_register)
19883 (mips_collect_register_32bit, mips_supply_register_32bit)
19884 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19885 (mips_store_fpregset, target_regsets): New.
19886 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
19888 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
19890 * configure.srv: Add target "spu*-*-*".
19891 * Makefile.in (clean): Remove reg-spu.c.
19892 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
19893 * spu-low.c: New file.
19895 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19897 * configure.ac: Correct td_thr_tls_get_addr test.
19898 * configure: Regenerated.
19900 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19902 * linux-low.c (linux_wait_for_event): Reformat. Use the
19903 pass_signals array.
19904 * remote-utils.c (decode_address_to_semicolon): New.
19905 * server.c (pass_signals, handle_general_set): New.
19906 (handle_query): Mention QPassSignals for qSupported.
19907 (main): Call handle_general_set.
19908 * server.h (pass_signals, decode_address_to_semicolon): New.
19910 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
19912 * server.c (handle_query): Correct error handling for read_auxv.
19914 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
19916 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
19917 and srv_linux_thread_db to yes.
19918 * linux-s390-low.c (s390_fill_gregset): New function.
19919 (target_regsets): Define data structure.
19921 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
19923 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
19924 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
19925 * config.in, configure: Regenerated.
19926 * inferiors.c (gdb_id_to_thread): New function.
19927 (gdb_id_to_thread_id): Use it.
19928 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
19929 * linux-low.h (struct process_info): Add th member.
19930 (thread_db_get_tls_address): New prototype.
19931 * remote-utils.c (decode_address): Make non-static.
19932 * server.c (handle_query): Handle qGetTLSAddr.
19933 * server.h (gdb_id_to_thread, decode_address): New prototypes.
19934 * target.h (struct target_ops): Add get_tls_address.
19935 * thread-db.c (maybe_attach_thread): Save the thread handle.
19936 (thread_db_get_tls_address): New.
19938 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
19940 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
19941 (linux_resume_one_process): Take a siginfo_t *. Update all
19942 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
19943 (struct pending_signals): Add a siginfo_t.
19944 (linux_wait_for_process): Always set last_status.
19945 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
19946 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
19947 * linux-low.h (struct process_info): Add last_status.
19949 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
19951 * remote-utils.c (try_rle): New function.
19952 (putpkt_binary): Use it.
19954 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
19956 * Makefile.in (clean): Clean reg-x86-64-linux.c.
19957 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
19958 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
19959 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
19960 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
19963 2006-08-08 Richard Sandiford <richard@codesourcery.com>
19965 * server.c (terminal_fd): New variable.
19966 (old_foreground_pgrp): Likewise.
19967 (restore_old_foreground_pgrp): New function.
19968 (start_inferior): Record the terminal file descriptor in terminal_fd
19969 and its original foreground group in old_foreground_pgrp. Register
19970 restore_old_foreground_pgrp with atexit().
19972 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
19974 * server.c (handle_query): Correct qPart to qXfer.
19976 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
19978 * configure.ac: Check for more headers which are missing on
19979 Windows. Automatically supply -lwsock32 and USE_WIN32API.
19980 * configure.srv: Add Cygwin and mingw32.
19981 * remote-utils.c: Don't include headers unconditionally which
19982 are missing on mingw32. Include <winsock.h> for mingw32.
19983 (remote_open): Adjust for mingw32 support. Flush
19984 standard error after writing to it.
19985 (remote_close, putpkt_binary, input_interrupt, block_async_io)
19986 (unblock_async_io, enable_async_io, disable_async_io)
19987 (readchar, getpkt): Update for Winsock support.
19988 (prepare_resume_reply): Expect a protocol signal number.
19989 * server.c: Disable <sys/wait.h> on mingw32.
19990 (start_inferior): Adjust for mingw32 support. Flush
19991 standard error after writing to it.
19992 (attach_inferior): Likewise. Use protocol signal
19994 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
19996 * win32-i386-low.c: New file.
19997 * Makefile.in (XM_CLIBS): Set.
19998 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
19999 (win32-i386-low.o): New dependency rule.
20000 * linux-low.c (linux_wait): Use target signal numbers.
20001 * target.h (struct target_ops): Doc fix.
20002 * server.h (target_signal_to_name): New prototype.
20003 * gdbreplay.c: Don't include headers unconditionally which
20004 are missing on mingw32. Include <winsock.h> for mingw32.
20005 (remote_close, remote_open): Adjust for Winsock support.
20006 * configure, config.in: Regenerated.
20008 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20010 * server.c (decode_xfer_read, write_qxfer_response): New.
20011 (handle_query): Take a packet length argument. Handle
20012 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20013 the qSupported response.
20014 (main): Update call to handle_query.
20016 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20018 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20019 (putpkt_binary): Renamed from putpkt and adjusted for binary
20021 (putpkt): New wrapper for putpkt_binary.
20022 (readchar): Don't mask off the high bit.
20023 (decode_X_packet): New function.
20024 * server.c (main): Call putpkt_binary if a handler sets the packet
20025 length. Save the length of the incoming packet. Handle 'X'.
20026 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20028 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20030 * server.c (handle_query): Handle qSupported.
20032 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20034 * remote-utils.c (all_symbols_looked_up): New variable.
20035 (look_up_one_symbol): Check it.
20036 * server.h (look_up_one_symbol): New declaration.
20037 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20039 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20041 * Makefile.in (linux-arm-low.o): Update dependencies.
20042 * linux-arm-low.c: Include "gdb_proc_service.h".
20043 (PTRACE_GET_THREAD_AREA): Define.
20044 (ps_get_thread_area): New function.
20046 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20048 * configure.srv (m68k*-*-uclinux*): New target.
20049 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20050 (linux_resume_one_process): Remove extraneous cast.
20051 (linux_read_offsets): New.
20052 (linux_target_op): Add linux_read_offsets on mmuless systems.
20053 * server.c (handle_query): Add qOffsets logic.
20054 * target.h (struct target_ops): Add read_offsets.
20056 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20058 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20059 (PTRACE_GET_THREAD_AREA): Define.
20060 (ps_get_thread_area): New function.
20061 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20062 (linux-x86-64-low.o): Update.
20064 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20066 * configure.ac: Remove checks for prfpregset_t.
20067 * gdb_proc_service.h: New file.
20068 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20069 new "gdb_proc_service.h".
20070 * proc-service.c: Likewise.
20071 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20072 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20073 * Makefile.in (gdb_proc_service_h): Updated.
20074 * configure, config.in: Regenerated.
20076 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20078 * remote-utils.c (prepare_resume_reply): Move declaration
20079 of gdb_id_from_wait to the top of the block.
20081 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20083 * linux-low.c (regsets_store_inferior_registers): Read the regset
20084 from the target before filling it.
20086 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20088 * server.c (attach_inferior): Return SIGTRAP for a successful
20091 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20093 * Makefile.in (OBS): Add version.o.
20094 (STAGESTUFF): Delete.
20095 (version.o): Add dependencies.
20096 (version.c): Replace rule.
20097 (clean): Remove version.c.
20098 * server.c (gdbserver_version): New.
20099 (gdbserver_usage): Use printf.
20100 (main): Handle --version and --help.
20101 * server.h (version, host_name): Add declarations.
20103 2005-12-23 Eli Zaretskii <eliz@gnu.org>
20115 * linux-x86-64-low.c:
20117 * linux-s390-low.c:
20118 * linux-ppc64-low.c:
20120 * linux-mips-low.c:
20121 * linux-m68k-low.c:
20122 * linux-m32r-low.c:
20125 * linux-ia64-low.c:
20126 * linux-i386-low.c:
20127 * linux-crisv32-low.c:
20139 * gdbserver.1: Add (C) after Copyright. Update the FSF
20142 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20144 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20145 (arm_breakpoint_at): Recognize both breakpoints.
20146 (the_low_target): Use the correct breakpoint instruction.
20148 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20150 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
20151 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
20152 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
20153 (the_low_target): Update.
20155 2005-10-25 Andreas Schwab <schwab@suse.de>
20157 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20159 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20160 (ia64_num_regs): Reduce to 462.
20162 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20164 * acinclude.m4: Correct quoting.
20165 * aclocal.m4: Regenerated.
20167 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20168 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20169 (thread_db_init): Call thread_db_err_str.
20170 * configure.ac: Check for TD_VERSION.
20171 * config.in, configure: Regenerated.
20173 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20175 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20177 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20179 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20180 is not available. Define HAVE_PTRACE_GETREGS if it is.
20181 * config.in, configure: Regenerated.
20182 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20183 * linux-i386-low.c, linux-m68k-low.c: Update to use
20184 HAVE_PTRACE_GETREGS.
20185 * linux-low.c (regsets_fetch_inferior_registers)
20186 (regsets_store_inferior_registers): Only return 0 if we processed
20188 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20189 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20191 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20193 * inferiors.c (struct thread_info): Add gdb_id.
20194 (add_thread): Add gdb_id argument.
20195 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20196 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20197 calls to add_thread.
20198 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20199 * server.c (handle_query): Use thread_to_gdb_id.
20200 (handle_v_cont, main): Use gdb_id_to_thread_id.
20201 * server.h (add_thread): Update prototype.
20202 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20205 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20207 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20208 left-padded registers.
20209 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20210 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20212 2005-07-01 Steve Ellcey <sje@cup.hp.com>
20214 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20215 * configure: Regenerate.
20216 * config.in: Regenerate.
20217 * server.h (NEED_DECLARATION_STRERROR):
20218 Replace with !HAVE_DECL_STRERROR.
20220 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20222 * linux-low.c (linux_wait, linux_send_signal): Don't test
20223 an unsigned long variable for > 0 if it could be MAX_ULONG.
20224 * server.c (myresume): Likewise.
20225 * target.c (set_desired_inferior): Likewise.
20227 2005-06-13 Mark Kettenis <kettenis@gnu.org>
20229 * configure.ac: Simplify and improve check for socklen_t.
20230 * configure, config.in: Regenerate.
20232 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20234 * acconfig.h: Remove.
20235 * configure.ac: Add a test for socklen_t. Use three-argument
20236 AC_DEFINE throughout.
20237 * config.in: Regenerated using autoheader 2.59.
20238 * configure: Regenerated.
20240 * gdbreplay.c (socklen_t): Provide a default.
20241 (remote_open): Use socklen_t.
20242 * remote-utils.c (socklen_t): Provide a default.
20243 (remote_open): Use socklen_t.
20244 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20247 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20249 * linux-low.c (linux_read_memory, linux_write_memory)
20250 (linux_read_auxv): Likewise.
20251 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20252 (check_mem_write): Likewise.
20253 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20255 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20256 (registers_from_string, register_data): Likewise.
20257 * server.c (handle_query, main): Likewise.
20258 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20259 (decode_M_packet): Likewise.
20260 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20261 * target.h (struct target_ops): Update read_memory, write_memory,
20263 (read_inferior_memory, write_inferior_memory): Update.
20264 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20265 to unsigned char *.
20266 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20267 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20268 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20269 linux-s390-low.c, linux-sh-low.c: Update for changes in
20270 read_inferior_memory and the_low_target->breakpoint.
20272 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20274 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20275 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20276 * configure.srv: Add powerpc64-*-linux*.
20277 * linux-ppc64-low.c: New file.
20279 2005-05-23 Orjan Friberg <orjanf@axis.com>
20281 * linux-cris-low.c: New file with support for CRIS.
20282 * linux-crisv32-low.c: Ditto for CRISv32.
20283 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20284 (clean): Add reg-cris.c and reg-crisv32.c.
20285 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
20286 reg-crisv32.o, and reg-crisv32.c to make rules.
20287 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20288 recognized targets.
20290 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20292 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20293 of sizeof (PTRACE_XFER_TYPE).
20294 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20296 2005-05-12 Orjan Friberg <orjanf@axis.com>
20298 * target.h (struct target_ops): Add insert_watchpoint,
20299 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20300 pointers for hardware watchpoint support.
20301 * linux-low.h (struct linux_target_ops): Ditto.
20302 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20303 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20304 to linux_target_ops.
20305 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20307 * server.c (main): Recognize 'Z' and 'z' packets.
20309 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20311 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20312 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20313 (the_low_target): Add new members.
20315 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20317 * proc-service.c (ps_lgetregs): Search all_processes instead of
20320 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20322 * server.c (start_inferior): Change return type to int.
20323 (attach_inferior): Change sigptr to int *.
20324 (handle_v_cont, handle_v_requests): Change signal to int *.
20325 (main): Change signal to int.
20327 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
20329 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
20330 * configure.srv: Add m32r*-*-linux*.
20331 * linux-m32r-low.c: New file.
20333 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
20335 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
20337 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20339 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
20340 Take unsigned long arguments for PIDs.
20341 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
20342 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
20343 (wait_for_sigstop, linux_resume_one_process)
20344 (regsets_fetch_inferior_registers, linux_send_signal)
20345 (linux_read_auxv): Likewise. Update the types of variables holding
20346 PIDs. Update format string specifiers.
20347 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
20348 * remote-utils.c (prepare_resume_reply): Likewise.
20349 * server.c (cont_thread, general_thread, step_thread)
20350 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
20352 (handle_query): Update format specifiers.
20353 (handle_v_cont, main): Use strtoul for thread IDs.
20354 * server.h (struct inferior_list_entry): Use unsigned long for ID.
20355 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
20356 (general_thread, step_thread, thread_from_wait)
20357 (old_thread_from_wait): Update.
20358 * target.h (struct thread_resume): Use unsigned long for THREAD.
20359 (struct target_ops): Use unsigned long for arguments to attach and
20362 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
20364 * acinclude.m4: Include bfd/bfd.m4 directly.
20365 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
20366 <agriffis@toolchain.org>.
20367 * aclocal.m4, configure: Regenerated.
20369 2005-01-07 Andrew Cagney <cagney@gnu.org>
20371 * configure.ac: Rename configure.in, require autoconf 2.59.
20372 * configure: Re-generate.
20374 2004-12-08 Daniel Jacobowitz <dan@debian.org>
20376 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
20377 LIBS when finished.
20378 * aclocal.m4: Regenerated.
20379 * configure: Regenerated.
20381 2004-11-21 Andreas Schwab <schwab@suse.de>
20383 * linux-m68k-low.c (m68k_num_gregs): Define.
20384 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
20385 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
20386 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
20387 (m68k_breakpoint_at): New. Add to the_low_target.
20389 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
20390 srv_linux_thread_db to yes.
20392 2004-10-20 Joel Brobecker <brobecker@gnat.com>
20394 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
20395 (ARCH_SET_FS): Likewise.
20396 (ARCH_GET_FS): Likewise.
20397 (ARCH_GET_GS): Likewise.
20399 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20401 * linux-i386-low.c (ps_get_thread_area): New.
20402 * linux-x86-64-low.c (ps_get_thread_area): New.
20403 * linux-low.c: Include <sys/syscall.h>.
20404 (linux_kill_one_process): Don't kill the first thread here.
20405 (linux_kill): Kill the first thread here.
20406 (kill_lwp): New function.
20407 (send_sigstop, linux_send_signal): Use it.
20408 * proc-service.c: Clean up #ifdefs.
20409 (fpregset_info): Delete.
20410 (ps_lgetregs): Update and enable implementation.
20411 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
20413 * remote-utils.c (struct sym_cache, symbol_cache): New.
20414 (input_interrupt): Print a clearer message.
20415 (async_io_enabled): New variable.
20416 (enable_async_io, disable_async_io): Use it. Update comments.
20417 (look_up_one_symbol): Use the symbol cache.
20418 * thread-db.c (thread_db_look_up_symbols): New function.
20419 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
20421 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20423 * configure.in: Test for -rdynamic.
20424 * configure: Regenerated.
20425 * Makefile (INTERNAL_LDFLAGS): New.
20426 (gdbserver, gdbreplay): Use it.
20428 2004-09-02 Andrew Cagney <cagney@gnu.org>
20430 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
20432 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
20434 * linux-low.c (linux_wait): Clear all_processes list also.
20436 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20438 * linux-low.c: Include <errno.h>. Remove extern declaration of
20441 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20443 * gdbreplay.c, server.h, utils.c: Update copyright years.
20445 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20447 * server.c (main): Print child status or termination signal from
20448 variable 'signal', not 'sig'.
20450 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20452 * linux-low.c (linux_read_memory): Change return type to
20453 int. Check for and return error from ptrace().
20454 * target.c (read_inferior_memory): Change return type to int. Pass
20455 back return status from the_target->read_memory().
20456 * target.h (struct target_ops): Adapt *read_memory() prototype.
20458 (read_inferior_memory): Adapt prototype.
20459 * server.c (main): Return an error packet if
20460 read_inferior_memory() returns an error.
20462 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
20464 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
20465 Unify with other clean targets.
20467 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20469 * server.c (handle_v_cont): Call set_desired_inferior.
20471 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20473 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
20475 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20477 * linux-low.c (linux_wait): Unblock async I/O.
20478 (linux_resume): Block and enable async I/O.
20479 * remote-utils.c (block_async_io, unblock_async_io): New functions.
20480 * server.h (block_async_io, unblock_async_io): Add prototypes.
20482 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20484 * remote-utils.c (remote_open): Print a status notice after
20485 opening a TCP port.
20486 * server.c (attach_inferior): Print a status notice after
20489 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20491 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
20493 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
20495 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
20497 * server.c, target.h: Update copyright years.
20499 2004-02-25 Roland McGrath <roland@redhat.com>
20501 * target.h (struct target_ops): New member `read_auxv'.
20502 * server.c (handle_query): Handle qPart:auxv:read: query using that.
20503 * linux-low.c (linux_read_auxv): New function.
20504 (linux_target_ops): Initialize `read_auxv' member to that.
20506 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20508 Committed by Jim Blandy <jimb@redhat.com>.
20510 * linux-s390-low.c (s390_num_regs): Update.
20511 (s390_regmap): Remove control registers. Use __s390x__ predefine
20512 instead of GPR_SIZE to distiguish s390 and s390x targets.
20514 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
20516 * linux-low.c: Update copyright year.
20517 (check_removed_breakpoint): Clear pending_is_breakpoint.
20518 (linux_set_resume_request, linux_queue_one_thread)
20519 (resume_status_pending_p): New functions.
20520 (linux_continue_one_thread): Use process->resume.
20521 (linux_resume): Only resume threads if there are no pending events.
20522 * linux-low.h (struct process_info): Add resume request
20525 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
20527 * regcache.c (new_register_cache): Clear the allocated register
20528 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
20530 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
20532 * linux-low.c (linux_resume): Take a struct thread_resume *
20534 (linux_wait): Update call.
20535 (resume_ptr): New static variable.
20536 (linux_continue_one_thread): Renamed from
20537 linux_continue_one_process. Use resume_ptr.
20538 (linux_resume): Use linux_continue_one_thread.
20539 * server.c (handle_v_cont, handle_v_requests): New functions.
20540 (myresume): New function.
20541 (main): Handle 'v' case.
20542 * target.h (struct thread_resume): New type.
20543 (struct target_ops): Change argument of "resume" to struct
20545 (myresume): Delete macro.
20547 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
20549 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
20550 (uninstall): Support DESTDIR.
20552 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
20554 * configure.srv: Add xscale*linux copy of arm*linux entry.
20556 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
20558 * linux-arm-low.c (arm_reinsert_addr): New function.
20559 (the_low_target): Add arm_reinsert_addr.
20561 2003-07-08 Mark Kettenis <kettenis@gnu.org>
20563 * mem-break.c: Remove whitespace at end of file.
20565 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
20567 * configure.in: Check whether we need to prototype strerror.
20568 * server.h: Optionally prototype strerror.
20569 * gdbreplay.c (perror_with_name): Use strerror.
20570 * linux-low.c (linux_attach_lwp): Use strerror.
20571 * utils.c (perror_with_name): Use strerror.
20572 * config.in, configure: Regenerated.
20574 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
20576 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
20577 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
20579 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
20581 * Makefile.in (SFILES): Update.
20582 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
20583 low-sun3.c: Remove files.
20585 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
20587 * linux-low.c: Move comment to linux_thread_alive where it belonged.
20588 (linux_detach_one_process, linux_detach): New functions.
20589 (linux_target_ops): Add linux_detach.
20590 * server.c (main): Handle 'D' packet.
20591 * target.h (struct target_ops): Add "detach" member.
20592 (detach_inferior): Define.
20594 2003-06-13 Mark Kettenis <kettenis@gnu.org>
20596 From Kelley Cook <kelleycook@wideopenwest.com>:
20597 * configure.srv: Accept i[34567]86 variants.
20599 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
20601 * linux-low.c (linux_wait_for_event): Correct comment typos.
20602 (linux_resume_one_process): Call check_removed_breakpoint.
20603 (linux_send_signal): New function.
20604 (linux_target_ops): Add linux_send_signal.
20605 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
20607 * target.h (struct target_ops): Add send_signal.
20609 2003-05-29 Jim Blandy <jimb@redhat.com>
20611 * linux-low.c (usr_store_inferior_registers): Transfer buf in
20612 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
20613 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
20614 away part of the register's value.
20616 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
20618 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
20619 (linux_wait_for_event, linux_init_signals): Likewise.
20621 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
20623 * configure.in: Check for stdlib.h.
20624 * configure: Regenerated.
20625 * config.in: Regenerated.
20627 2003-01-04 Andreas Schwab <schwab@suse.de>
20629 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
20631 2003-01-02 Andrew Cagney <ac131313@redhat.com>
20633 * Makefile.in: Remove obsolete code.
20635 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
20637 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
20638 defined(PT_FPR0_HI).
20640 2002-11-17 Stuart Hughes <seh@zee2.com>
20642 * linux-arm-low.c (arm_num_regs): Increase.
20643 (arm_regmap): Include status register.
20645 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
20647 * linux-low.c (register_addr): Remove incorrect -1 check.
20649 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
20651 * linux-low.c (linux_create_inferior): Call setpgid. Return
20653 (unstopped_p, linux_signal_pid): Remove.
20654 (linux_target_ops): Remove linux_signal_pid.
20655 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
20656 global instead of target method.
20657 * target.h (struct target_ops): Remove signal_pid. Update comment
20658 for create_inferior.
20659 * server.c (signal_pid): New variable.
20660 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
20661 gdbserver. Set the child to be the foreground process group.
20662 (attach_inferior): Set signal_pid.
20664 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
20666 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
20668 2002-08-20 Jim Blandy <jimb@redhat.com>
20670 * Makefile.in (LDFLAGS): Allow the configure script to establish a
20673 2002-08-01 Andrew Cagney <cagney@redhat.com>
20675 * Makefile.in: Make chill references obsolete.
20677 2002-07-24 Kevin Buettner <kevinb@redhat.com>
20679 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
20680 * configure: Regenerate.
20681 * config.in: Regenerate.
20683 2002-07-09 David O'Brien <obrien@FreeBSD.org>
20685 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
20686 (perror_with_name, remote_close, remote_open, expect, play): Static.
20688 2002-07-04 Michal Ludvig <mludvig@suse.cz>
20690 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
20691 byte offsets instead of an array of indexes.
20692 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
20694 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
20696 * regcache.c: Add comment.
20698 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
20700 * thread-db.c: New file.
20701 * proc-service.c: New file.
20702 * acinclude.m4: New file.
20703 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
20704 proc-service.o, and thread-db.o.
20705 (linux-low.o): Add USE_THREAD_DB.
20706 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
20707 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
20708 * aclocal.m4: Regenerated.
20709 * config.in: Regenerated.
20710 * configure: Regenerated.
20711 * configure.in: Check for proc_service.h, sys/procfs.h,
20712 thread_db.h, and linux/elf.h headrs.
20713 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
20714 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
20715 Check for -lthread_db and thread support.
20716 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
20717 PowerPC, and SuperH.
20718 * i387-fp.c: Constify arguments.
20719 * i387-fp.h: Likewise.
20720 * inferiors.c: (struct thread_info): Renamed from
20721 `struct inferior_info'. Remove PID member. Use generic inferior
20722 list header. All uses updated.
20723 (inferiors, signal_pid): Removed.
20724 (all_threads): New variable.
20725 (get_thread): Define.
20726 (add_inferior_to_list): New function.
20727 (for_each_inferior): New function.
20728 (change_inferior_id): New function.
20729 (add_inferior): Removed.
20730 (remove_inferior): New function.
20731 (add_thread): New function.
20732 (free_one_thread): New function.
20733 (remove_thread): New function.
20734 (clear_inferiors): Use for_each_inferior and free_one_thread.
20735 (find_inferior): New function.
20736 (find_inferior_id): New function.
20737 (inferior_target_data): Update argument type.
20738 (set_inferior_target_data): Likewise.
20739 (inferior_regcache_data): Likewise.
20740 (set_inferior_regcache_data): Likewise.
20741 * linux-low.c (linux_bp_reinsert): Remove.
20742 (all_processes, stopping_threads, using_thrads)
20743 (struct pending_signals, debug_threads, pid_of): New.
20744 (inferior_pid): Replace with macro.
20745 (struct inferior_linux_data): Remove.
20746 (get_stop_pc, add_process): New functions.
20747 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
20748 Use add_process and add_thread.
20749 (linux_attach_lwp): New function, based on old linux_attach. Use
20750 add_process and add_thread. Set stop_expected for new threads.
20751 (linux_attach): New function.
20752 (linux_kill_one_process): New function.
20753 (linux_kill): Kill all LWPs.
20754 (linux_thread_alive): Use find_inferior_id.
20755 (check_removed_breakpoints, status_pending_p): New functions.
20756 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
20757 Update. Use WNOHANG. Wait for cloned processes also. Update process
20758 struct for the found process.
20759 (linux_wait_for_event): New function.
20760 (linux_wait): Use it. Support LWPs.
20761 (send_sigstop, wait_for_sigstop, stop_all_processes)
20762 (linux_resume_one_process, linux_continue_one_process): New functions.
20763 (linux_resume): Support LWPs.
20764 (REGISTER_RAW_SIZE): Remove.
20765 (fetch_register): Use register_size instead. Call supply_register.
20766 (usr_store_inferior_registers): Likewise. Call collect_register.
20767 Fix recursive case.
20768 (regsets_fetch_inferior_registers): Improve error message.
20769 (regsets_store_inferior_registers): Add debugging.
20770 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
20771 (unstopped_p, linux_signal_pid): New functions.
20772 (linux_target_ops): Add linux_signal_pid.
20773 (linux_init_signals): New function.
20774 (initialize_low): Call it. Initialize using_threads.
20775 * regcache.c (inferior_regcache_data): Add valid
20777 (get_regcache): Fetch registers lazily. Add fetch argument
20778 and update all callers.
20779 (regcache_invalidate_one, regcache_invalidate): New
20781 (new_register_cache): Renamed from create_register_cache.
20782 Return the new regcache.
20783 (free_register_cache): Change argument to a void *.
20784 (registers_to_string, registers_from_string): Call get_regcache
20785 with fetch flag set.
20786 (register_data): Make static. Pass fetch flag to get_regcache.
20787 (supply_register): Call get_regcache with fetch flag clear.
20788 (collect_register): Call get_regcache with fetch flag set.
20789 (collect_register_as_string): New function.
20790 * regcache.h: Update.
20791 * remote-utils.c (putpkt): Flush after debug output and use
20793 Handle input interrupts while waiting for an ACK.
20794 (input_interrupt): Use signal_pid method.
20795 (getpkt): Flush after debug output and use stderr.
20796 (outreg): Use collect_register_as_string.
20797 (new_thread_notify, dead_thread_notify): New functions.
20798 (prepare_resume_reply): Check using_threads. Set thread_from_wait
20799 and general_thread.
20800 (look_up_one_symbol): Flush after debug output.
20801 * server.c (step_thread, server_waiting): New variables.
20802 (start_inferior): Don't use signal_pid. Update call to mywait.
20803 (attach_inferior): Update call to mywait.
20804 (handle_query): Handle qfThreadInfo and qsThreadInfo.
20805 (main): Don't fetch/store registers explicitly. Use
20806 set_desired_inferior. Support proposed ``Hs'' packet. Update
20808 * server.h: Update.
20809 (struct inferior_list, struct_inferior_list_entry): New.
20810 * target.c (set_desired_inferior): New.
20811 (write_inferior_memory): Constify.
20812 (mywait): New function.
20813 * target.h: Update.
20814 (struct target_ops): New signal_pid method.
20815 (mywait): Removed macro, added prototype.
20817 * linux-low.h (regset_func): Removed.
20818 (regset_fill_func, regset_store_func): New.
20819 (enum regset_type): New.
20820 (struct regset_info): Add type field. Use new operation types.
20821 (struct linux_target_ops): stop_pc renamed to get_pc.
20822 Add decr_pc_after_break and breakpoint_at.
20823 (get_process, get_thread_proess, get_process_thread)
20824 (strut process_info, all_processes, linux_attach_lwp)
20825 (thread_db_init): New.
20827 * linux-arm-low.c (arm_get_pc, arm_set_pc,
20828 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
20829 (the_low_target): Add new members.
20830 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
20831 (i386_store_fpxregset): Constify.
20832 (target_regsets): Add new kind identifier.
20833 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
20834 (i386_set_pc): Add debugging.
20835 (i386_breakpoint_at): New function.
20836 (the_low_target): Add new members.
20837 * linux-mips-low.c (mips_get_pc, mips_set_pc)
20838 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
20839 (mips_breakpoint_at): New.
20840 (the_low_target): Add new members.
20841 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
20842 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
20843 (the_low_target): Add new members.
20844 * linux-sh-low.c (sh_get_pc, sh_set_pc)
20845 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
20846 (the_low_target): Add new members.
20847 * linux-x86-64-low.c (target_regsets): Add new kind
20850 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
20852 From Martin Pool <mbp@samba.org>:
20853 * server.c (gdbserver_usage): New function.
20856 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
20858 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
20859 stop_at -> stop_pc.
20861 2002-05-04 Andrew Cagney <ac131313@redhat.com>
20863 * Makefile.in: Remove obsolete code.
20865 2002-04-24 Michal Ludvig <mludvig@suse.cz>
20867 * linux-low.c (regsets_fetch_inferior_registers),
20868 (regsets_store_inferior_registers): Removed cast to int from
20870 * regcache.h: Added declaration of struct inferior_info.
20872 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20874 * inferiors.c (struct inferior_info): Add regcache_data.
20875 (add_inferior): Call create_register_cache.
20876 (clear_inferiors): Call free_register_cache.
20877 (inferior_regcache_data, set_inferior_regcache_data): New functions.
20878 * regcache.c (struct inferior_regcache_data): New.
20879 (registers): Remove.
20880 (get_regcache): New function.
20881 (create_register_cache, free_register_cache): New functions.
20882 (set_register_cache): Don't initialize the register cache here.
20883 (registers_to_string, registers_from_string, register_data): Call
20885 * regcache.h: Add prototypes.
20886 * server.h: Likewise.
20888 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20890 * mem-break.c: New file.
20891 * mem-break.h: New file.
20892 * Makefile.in: Add mem-break.o rule; update server.h
20894 * inferiors.c (struct inferior_info): Add target_data
20896 (clear_inferiors): Free target_data member if set.
20897 (inferior_target_data, set_inferior_target_data): New functions.
20898 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
20899 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
20900 * linux-low.c (linux_bp_reinsert): New variable.
20901 (struct inferior_linux_data): New.
20902 (linux_create_inferior): Use set_inferior_target_data.
20903 (linux_attach): Likewise. Call add_inferior.
20904 (linux_wait_for_one_inferior): New function.
20905 (linux_wait): Call it.
20906 (linux_write_memory): Add const.
20907 (initialize_low): Call set_breakpoint_data.
20908 * linux-low.h (struct linux_target_ops): Add breakpoint
20910 * server.c (attach_inferior): Remove extra add_inferior
20912 * server.h: Include mem-break.h. Update inferior.c
20914 * target.c (read_inferior_memory)
20915 (write_inferior_memory): New functions.
20916 * target.h (read_inferior_memory)
20917 (write_inferior_memory): Change macros to prototypes.
20918 (struct target_ops): Update comments. Add const to write_memory
20921 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
20923 * linux-low.c (usr_store_inferior_registers): Support
20924 registers which are allowed to fail to store.
20925 * linux-low.h (linux_target_ops): Likewise.
20926 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
20927 (ppc_cannot_store_register): FPSCR may not be storable.
20929 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20931 * server.h: Include <string.h> if HAVE_STRING_H.
20932 * ChangeLog: Correct paths in last ChangeLog entry.
20934 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20936 * linux-low.h: Remove obsolete prototypes.
20937 (struct linux_target_ops): New.
20938 (extern the_low_target): New.
20939 * linux-low.c (num_regs, regmap): Remove declarations.
20940 (register_addr): Use the_low_target explicitly.
20941 (fetch_register): Likewise.
20942 (usr_fetch_inferior_registers): Likewise.
20943 (usr_store_inferior_registers): Likewise.
20944 * linux-arm-low.c (num_regs): Remove.
20945 (arm_num_regs): Define.
20946 (arm_regmap): Renamed from regmap, made static.
20947 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
20949 (arm_cannot_store_register): Renamed from cannot_store_register,
20951 (the_low_target): New.
20952 * linux-i386-low.c (num_regs): Remove.
20953 (i386_num_regs): Define.
20954 (i386_regmap): Renamed from regmap, made static.
20955 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
20957 (i386_cannot_store_register): Renamed from cannot_store_register,
20959 (the_low_target): New.
20960 * linux-ia64-low.c (num_regs): Remove.
20961 (ia64_num_regs): Define.
20962 (ia64_regmap): Renamed from regmap, made static.
20963 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
20965 (ia64_cannot_store_register): Renamed from cannot_store_register,
20967 (the_low_target): New.
20968 * linux-m68k-low.c (num_regs): Remove.
20969 (m68k_num_regs): Define.
20970 (m68k_regmap): Renamed from regmap, made static.
20971 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
20973 (m68k_cannot_store_register): Renamed from cannot_store_register,
20975 (the_low_target): New.
20976 * linux-mips-low.c (num_regs): Remove.
20977 (mips_num_regs): Define.
20978 (mips_regmap): Renamed from regmap, made static.
20979 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
20981 (mips_cannot_store_register): Renamed from cannot_store_register,
20983 (the_low_target): New.
20984 * linux-ppc-low.c (num_regs): Remove.
20985 (ppc_num_regs): Define.
20986 (ppc_regmap): Renamed from regmap, made static.
20987 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
20989 (ppc_cannot_store_register): Renamed from cannot_store_register,
20991 (the_low_target): New.
20992 * linux-s390-low.c (num_regs): Remove.
20993 (s390_num_regs): Define.
20994 (s390_regmap): Renamed from regmap, made static.
20995 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
20997 (s390_cannot_store_register): Renamed from cannot_store_register,
20999 (the_low_target): New.
21000 * linux-sh-low.c (num_regs): Remove.
21001 (sh_num_regs): Define.
21002 (sh_regmap): Renamed from regmap, made static.
21003 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21005 (sh_cannot_store_register): Renamed from cannot_store_register,
21007 (the_low_target): New.
21008 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21009 (the_low_target): New.
21011 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21013 * Makefile.in: Add stamp-h target.
21014 * configure.in: Create stamp-h.
21015 * configure: Regenerated.
21017 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21019 * inferiors.c: New file.
21020 * target.c: New file.
21021 * target.h: New file.
21022 * Makefile.in: Add target.o and inferiors.o. Update
21024 * linux-low.c (inferior_pid): New static variable,
21025 moved from server.c.
21026 (linux_create_inferior): Renamed from create_inferior.
21027 Call add_inferior. Return 0 on success instead of a PID.
21028 (linux_attach): Renamed from myattach.
21029 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21030 (linux_thread_alive): Renamed from mythread_alive.
21031 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21033 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21034 (regsets_store_inferior_registers): Correct error message.
21035 Add missing ``return 0''.
21036 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21037 (linux_store_registers): Renamed from store_inferior_registers.
21038 (linux_read_memory): Renamed from read_inferior_memory.
21039 (linux_write_memory): Renamed from write_inferior_memory.
21040 (linux_target_ops): New structure.
21041 (initialize_low): Call set_target_ops ().
21042 * remote-utils.c (unhexify): New function.
21043 (hexify): New function.
21044 (input_interrupt): Send signals to ``signal_pid''.
21045 * server.c (inferior_pid): Remove.
21046 (start_inferior): Update create_inferior call.
21047 (attach_inferior): Call add_inferior.
21048 (handle_query): New function.
21049 (main): Call handle_query for `q' packets.
21050 * server.h: Include "target.h". Remove obsolete prototypes.
21051 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21053 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21055 * Makefile.in: Add WARN_CFLAGS. Update configury
21057 * configure.in: Check for <string.h>
21058 * configure: Regenerate.
21059 * config.in: Regenerate.
21060 * gdbreplay.c: Include needed system headers.
21061 (remote_open): Remove strchr prototype.
21062 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21063 * regcache.c (supply_register): Change buf argument to const void *.
21064 (supply_register_by_name): Likewise.
21065 (collect_register): Change buf argument to void *.
21066 (collect_register_by_name): Likewise.
21067 * regcache.h: Add missing prototypes.
21068 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21069 * server.c (handle_query): New function.
21070 (attached): New static variable, moved out of main.
21071 (main): Quiet longjmp clobber warnings.
21072 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21073 * utils.c (error): Remove NORETURN.