1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 Remove the 'supports_z_point_type' linux target op and let the
4 concrete linux target define it by overriding the op declared in
5 process_stratum_target.
7 * linux-low.cc (linux_process_target::supports_z_point_type):
9 * linux-low.h (struct linux_target_ops): Remove the op.
10 (class linux_process_target) <supports_z_point_type>: Remove.
11 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
13 (x86_supports_z_point_type): Turn into...
14 (x86_target::supports_z_point_type): ...this.
15 (the_low_target): Remove the op field.
16 * linux-aarch64-low.cc (class aarch64_target)
17 <supports_z_point_type>: Declare.
18 (aarch64_supports_z_point_type): Turn into...
19 (aarch64_target::supports_z_point_type): ...this.
20 (the_low_target): Remove the op field.
21 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
23 (arm_supports_z_point_type): Turn into...
24 (arm_target::supports_z_point_type): ...this.
25 (the_low_target): Remove the op field.
26 * linux-crisv32-low.cc (class crisv32_target)
27 <supports_z_point_type>: Declare.
28 (cris_supports_z_point_type): Turn into...
29 (crisv32_target::supports_z_point_type): ...this.
30 (the_low_target): Remove the op field.
31 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
33 (mips_supports_z_point_type): Turn into...
34 (mips_target::supports_z_point_type): ...this.
35 (the_low_target): Remove the op field.
36 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
38 (ppc_supports_z_point_type): Turn into...
39 (ppc_target::supports_z_point_type): ...this.
40 (the_low_target): Remove the op field.
41 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
43 (s390_supports_z_point_type): Turn into...
44 (s390_target::supports_z_point_type): ...this.
45 (the_low_target): Remove the op field.
46 * linux-bfin-low.cc (the_low_target): Remove the op field.
47 * linux-m32r-low.cc (the_low_target): Ditto.
48 * linux-m68k-low.cc (the_low_target): Ditto.
49 * linux-sh-low.cc (the_low_target): Ditto.
50 * linux-sparc-low.cc (the_low_target): Ditto.
51 * linux-tic6x-low.cc (the_low_target): Ditto.
52 * linux-tile-low.cc (the_low_target): Ditto.
53 * linux-xtensa-low.cc (the_low_target): Ditto.
55 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
57 Turn the 'breakpoint_at' linux target op into a method of
60 * linux-low.h (struct linux_target_ops): Remove the op.
61 (class linux_process_target) <low_breakpoint_at>: Declare.
63 Update the callers below:
65 * linux-low.cc (linux_process_target::save_stop_reason)
66 (linux_process_target::thread_still_has_status_pending)
67 (linux_process_target::wait_1)
69 * linux-x86-low.cc (class x86_target)
70 <low_breakpoint_at>: Declare.
71 (x86_breakpoint_at): Turn into...
72 (x86_target::low_breakpoint_at): ...this.
73 (the_low_target): Remove the op field.
74 * linux-aarch64-low.cc (class aarch64_target)
75 <low_breakpoint_at>: Declare.
76 (aarch64_breakpoint_at): Turn into...
77 (aarch64_target::low_breakpoint_at): ...this.
78 (the_low_target): Remove the op field.
79 * linux-arm-low.cc (class arm_target)
80 <low_breakpoint_at>: Declare.
81 (arm_target::low_breakpoint_at): Define.
82 (the_low_target): Remove the op field.
83 * linux-bfin-low.cc (class bfin_target)
84 <low_breakpoint_at>: Declare.
85 (bfin_breakpoint_at): Turn into...
86 (bfin_target::low_breakpoint_at): ...this.
87 (the_low_target): Remove the op field.
88 * linux-cris-low.cc (class cris_target)
89 <low_breakpoint_at>: Declare.
90 (cris_breakpoint_at): Turn into...
91 (cris_target::low_breakpoint_at): ...this.
92 (the_low_target): Remove the op field.
93 * linux-crisv32-low.cc (class crisv32_target)
94 <low_breakpoint_at>: Declare.
95 (crisv32_breakpoint_at): Turn into...
96 (crisv32_target::low_breakpoint_at): ...this.
97 (the_low_target): Remove the op field.
98 * linux-ia64-low.cc (class ia64_target)
99 <low_breakpoint_at>: Declare.
100 (ia64_target::low_breakpoint_at): Define.
101 * linux-m32r-low.cc (class m32r_target)
102 <low_breakpoint_at>: Declare.
103 (m32r_breakpoint_at): Turn into...
104 (m32r_target::low_breakpoint_at): ...this.
105 (the_low_target): Remove the op field.
106 * linux-m68k-low.cc (class m68k_target)
107 <low_breakpoint_at>: Declare.
108 (m68k_breakpoint_at): Turn into...
109 (m68k_target::low_breakpoint_at): ...this.
110 (the_low_target): Remove the op field.
111 * linux-mips-low.cc (class mips_target)
112 <low_breakpoint_at>: Declare.
113 (mips_breakpoint_at): Turn into...
114 (mips_target::low_breakpoint_at): ...this.
115 (the_low_target): Remove the op field.
116 * linux-nios2-low.cc (class nios2_target)
117 <low_breakpoint_at>: Declare.
118 (nios2_breakpoint_at): Turn into...
119 (nios2_target::low_breakpoint_at): ...this.
120 (the_low_target): Remove the op field.
121 * linux-ppc-low.cc (class ppc_target)
122 <low_breakpoint_at>: Declare.
123 (ppc_breakpoint_at): Turn into...
124 (ppc_target::low_breakpoint_at): ...this.
125 (the_low_target): Remove the op field.
126 * linux-riscv-low.cc (class riscv_target)
127 <low_breakpoint_at>: Declare.
128 (riscv_breakpoint_at): Turn into...
129 (riscv_target::low_breakpoint_at): ...this.
130 (the_low_target): Remove the op field.
131 * linux-s390-low.cc (class s390_target)
132 <low_breakpoint_at>: Declare.
133 (s390_breakpoint_at): Turn into...
134 (s390_target::low_breakpoint_at): ...this.
135 (the_low_target): Remove the op field.
136 * linux-sh-low.cc (class sh_target)
137 <low_breakpoint_at>: Declare.
138 (sh_breakpoint_at): Turn into...
139 (sh_target::low_breakpoint_at): ...this.
140 (the_low_target): Remove the op field.
141 * linux-sparc-low.cc (class sparc_target)
142 <low_breakpoint_at>: Declare.
143 (sparc_breakpoint_at): Turn into...
144 (sparc_target::low_breakpoint_at): ...this.
145 (the_low_target): Remove the op field.
146 * linux-tic6x-low.cc (class tic6x_target)
147 <low_breakpoint_at>: Declare.
148 (tic6x_breakpoint_at): Turn into...
149 (tic6x_target::low_breakpoint_at): ...this.
150 (the_low_target): Remove the op field.
151 * linux-tile-low.cc (class tile_target)
152 <low_breakpoint_at>: Declare.
153 (tile_breakpoint_at): Turn into...
154 (tile_target::low_breakpoint_at): ...this.
155 (the_low_target): Remove the op field.
156 * linux-xtensa-low.cc (class xtensa_target)
157 <low_breakpoint_at>: Declare.
158 (xtensa_breakpoint_at): Turn into...
159 (xtensa_target::low_breakpoint_at): ...this.
160 (the_low_target): Remove the op field.
162 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
164 Turn the 'decr_pc_after_break' linux_target_ops field into
165 a method of linux_process_target.
167 * linux-low.h (struct linux_target_ops)
168 <decr_pc_after_break>: Remove.
169 (class linux_process_target) <low_decr_pc_after_break>: New method
171 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
172 New method implementation.
174 Update the users below.
176 (linux_process_target::save_stop_reason)
177 (linux_process_target::wait_1)
178 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
180 (x86_target::low_decr_pc_after_break): New method implementation.
181 (the_low_target): Remove the field.
182 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
184 (bfin_target::low_decr_pc_after_break): New method implementation.
185 (the_low_target): Remove the field.
186 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
188 (m68k_target::low_decr_pc_after_break): New method implementation.
189 (the_low_target): Remove the field.
190 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
192 (s390_target::low_decr_pc_after_break): New method implementation.
193 (the_low_target): Remove the field.
194 * linux-aarch64-low.cc (the_low_target): Remove the field.
195 * linux-arm-low.cc (the_low_target): Remove the field.
196 * linux-cris-low.cc (the_low_target): Remove the field.
197 * linux-crisv32-low.cc (the_low_target): Remove the field.
198 * linux-m32r-low.cc (the_low_target): Remove the field.
199 * linux-mips-low.cc (the_low_target): Remove the field.
200 * linux-nios2-low.cc (the_low_target): Remove the field.
201 * linux-ppc-low.cc (the_low_target): Remove the field.
202 * linux-riscv-low.cc (the_low_target): Remove the field.
203 * linux-sh-low.cc (the_low_target): Remove the field.
204 * linux-sparc-low.cc (the_low_target): Remove the field.
205 * linux-tic6x-low.cc (the_low_target): Remove the field.
206 * linux-tile-low.cc (the_low_target): Remove the field.
207 * linux-xtensa-low.cc (the_low_target): Remove the field.
209 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
211 Remove the 'supports_software_single_step' linux target op and let
212 the concrete linux target define it by overriding the op in
213 process_stratum_target.
214 Turn the 'get_next_pcs' linux target op into a method of
215 linux_process_target.
217 * linux-low.h (struct linux_target_ops): Remove the ops.
218 (class linux_process_target) <supports_software_single_step>:
220 <low_get_next_pcs>: Declare.
221 * linux-low.cc (can_software_single_step): Remove.
222 (linux_process_target::low_get_next_pcs): Define.
223 (linux_process_target::supports_software_single_step): Remove.
225 Update the callers below.
227 (linux_process_target::handle_extended_wait)
228 (linux_process_target::wait_1)
229 (linux_process_target::install_software_single_step_breakpoints)
230 (linux_process_target::single_step)
231 (linux_process_target::thread_needs_step_over)
232 (linux_process_target::proceed_one_lwp)
233 (linux_process_target::supports_range_stepping)
235 * linux-x86-low.cc (the_low_target): Remove the op field.
236 * linux-aarch64-low.cc (the_low_target): Ditto.
237 * linux-bfin-low.cc (the_low_target): Ditto.
238 * linux-cris-low.cc (the_low_target): Ditto.
239 * linux-crisv32-low.cc (the_low_target): Ditto.
240 * linux-m32r-low.cc (the_low_target): Ditto.
241 * linux-m68k-low.cc (the_low_target): Ditto.
242 * linux-mips-low.cc (the_low_target): Ditto.
243 * linux-nios2-low.cc (the_low_target): Ditto.
244 * linux-ppc-low.cc (the_low_target): Ditto.
245 * linux-riscv-low.cc (the_low_target): Ditto.
246 * linux-s390-low.cc (the_low_target): Ditto.
247 * linux-sh-low.cc (the_low_target): Ditto.
248 * linux-sparc-low.cc (the_low_target): Ditto.
249 * linux-tic6x-low.cc (the_low_target): Ditto.
250 * linux-tile-low.cc (the_low_target): Ditto.
251 * linux-xtensa-low.cc (the_low_target): Ditto.
252 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
253 <supports_software_single_step>: Declare.
254 (arm_target::supports_software_single_step): Define.
255 (arm_gdbserver_get_next_pcs): Turn into...
256 (arm_target::low_get_next_pcs): ...this.
257 (the_low_target): Remove the op field.
259 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
261 Remove the 'sw_breakpoint_from_kind' linux target op, and let
262 the concrete linux target define it by overriding the op
263 in process_stratum_target.
265 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
267 * linux-low.h (struct linux_target_ops): Remove the op.
268 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
269 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
271 (x86_sw_breakpoint_from_kind): Turn into...
272 (x86_target::sw_breakpoint_from_kind): ...this.
273 (the_low_target): Remove the op field.
274 * linux-aarch64-low.cc (class aarch64_target)
275 <sw_breakpoint_from_kind>: Declare.
276 (aarch64_sw_breakpoint_from_kind): Turn into...
277 (aarch64_target::sw_breakpoint_from_kind): ...this.
278 (the_low_target): Remove the op field.
279 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
281 (arm_target::sw_breakpoint_from_kind): Define.
282 (the_low_target): Remove the op field.
283 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
285 (bfin_sw_breakpoint_from_kind): Turn into...
286 (bfin_target::sw_breakpoint_from_kind): ...this.
287 (the_low_target): Remove the op field.
288 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
290 (cris_sw_breakpoint_from_kind): Turn into...
291 (cris_target::sw_breakpoint_from_kind): ...this.
292 (the_low_target): Remove the op field.
293 * linux-crisv32-low.cc (class crisv32_target)
294 <sw_breakpoint_from_kind>: Declare.
295 (cris_sw_breakpoint_from_kind): Turn into...
296 (crisv32_target::sw_breakpoint_from_kind): ...this.
297 (the_low_target): Remove the op field.
298 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
300 (ia64_target::sw_breakpoint_from_kind): Define.
301 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
303 (m32r_sw_breakpoint_from_kind): Turn into...
304 (m32r_target::sw_breakpoint_from_kind): ...this.
305 (the_low_target): Remove the op field.
306 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
308 (m68k_sw_breakpoint_from_kind): Turn into...
309 (m68k_target::sw_breakpoint_from_kind): ...this.
310 (the_low_target): Remove the op field.
311 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
313 (mips_sw_breakpoint_from_kind): Turn into...
314 (mips_target::sw_breakpoint_from_kind): ...this.
315 (the_low_target): Remove the op field.
316 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
318 (nios2_sw_breakpoint_from_kind): Turn into...
319 (nios2_target::sw_breakpoint_from_kind): ...this.
320 (the_low_target): Remove the op field.
321 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
323 (ppc_sw_breakpoint_from_kind): Turn into...
324 (ppc_target::sw_breakpoint_from_kind): ...this.
325 (the_low_target): Remove the op field.
326 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
328 (riscv_sw_breakpoint_from_kind): Turn into...
329 (riscv_target::sw_breakpoint_from_kind): ...this.
330 (the_low_target): Remove the op field.
331 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
333 (s390_sw_breakpoint_from_kind): Turn into...
334 (s390_target::sw_breakpoint_from_kind): ...this.
335 (the_low_target): Remove the op field.
336 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
338 (sh_sw_breakpoint_from_kind): Turn into...
339 (sh_target::sw_breakpoint_from_kind): ...this.
340 (the_low_target): Remove the op field.
341 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
343 (sparc_sw_breakpoint_from_kind): Turn into...
344 (sparc_target::sw_breakpoint_from_kind): ...this.
345 (the_low_target): Remove the op field.
346 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
348 (tic6x_sw_breakpoint_from_kind): Turn into...
349 (tic6x_target::sw_breakpoint_from_kind): ...this.
350 (the_low_target): Remove the op field.
351 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
353 (tile_sw_breakpoint_from_kind): Turn into...
354 (tile_target::sw_breakpoint_from_kind): ...this.
355 (the_low_target): Remove the op field.
356 * linux-xtensa-low.cc (class xtensa_target)
357 <sw_breakpoint_from_kind>: Declare.
358 (xtensa_sw_breakpoint_from_kind): Turn into...
359 (xtensa_target::sw_breakpoint_from_kind): ...this.
360 (the_low_target): Remove the op field.
362 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
364 Remove the 'breakpoint_kind_from_pc' and
365 'breakpoint_kind_from_current_state' linux target ops, and let the
366 concrete linux target define them by overriding the ops of
367 process_stratum_target.
369 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
371 (linux_process_target::breakpoint_kind_from_current_state): Remove.
372 * linux-low.h (struct linux_target_ops): Remove ops.
373 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
374 <breakpoint_kind_from_current_state>: Remove.
375 * linux-x86-low.cc (the_low_target): Remove the op fields.
376 * linux-bfin-low.cc (the_low_target): Ditto.
377 * linux-cris-low.cc (the_low_target): Ditto.
378 * linux-crisv32-low.cc (the_low_target): Ditto.
379 * linux-m32r-low.cc (the_low_target): Ditto.
380 * linux-m68k-low.cc (the_low_target): Ditto.
381 * linux-mips-low.cc (the_low_target): Ditto.
382 * linux-nios2-low.cc (the_low_target): Ditto.
383 * linux-ppc-low.cc (the_low_target): Ditto.
384 * linux-s390-low.cc (the_low_target): Ditto.
385 * linux-sh-low.cc (the_low_target): Ditto.
386 * linux-sparc-low.cc (the_low_target): Ditto.
387 * linux-tic6x-low.cc (the_low_target): Ditto.
388 * linux-tile-low.cc (the_low_target): Ditto.
389 * linux-xtensa-low.cc (the_low_target): Ditto.
390 * linux-aarch64-low.cc (class aarch64_target)
391 <breakpoint_kind_from_pc>
392 <breakpoint_kind_from_current_state>: Declare.
393 (aarch64_breakpoint_kind_from_pc): Turn into...
394 (aarch64_target::breakpoint_kind_from_pc): ...this.
395 (aarch64_breakpoint_kind_from_current_state): Turn into...
396 (aarch64_target::breakpoint_kind_from_current_state): ...this.
397 (the_low_target): Remove the op fields.
398 * linux-arm-low.cc (class arm_target):
399 <breakpoint_kind_from_pc>
400 <breakpoint_kind_from_current_state>: Declare.
401 (arm_target::breakpoint_kind_from_pc): Define.
402 (arm_target::breakpoint_kind_from_current_state): Define.
403 (the_low_target): Remove the op fields.
404 * linux-riscv-low.cc (class riscv_target):
405 <breakpoint_kind_from_pc>: Declare.
406 (riscv_breakpoint_kind_from_pc): Turn into...
407 (riscv_target::breakpoint_kind_from_pc): ...this.
408 (the_low_target): Remove the op fields.
410 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
412 Turn the 'get_pc' and 'set_pc' linux target ops into methods
413 of linux_process_target.
415 * linux-low.h (struct linux_target_ops): Remove the ops.
416 (class linux_process_target) <low_supports_breakpoints>
418 <low_set_pc>: Declare.
419 * linux-low.cc (supports_breakpoints): Turn into...
420 (linux_process_target::low_supports_breakpoints): ...this.
421 (linux_process_target::low_get_pc): Define.
422 (linux_process_target::low_set_pc): Define.
424 Update the callers below.
426 (linux_process_target::get_pc)
427 (linux_process_target::save_stop_reason)
428 (linux_process_target::maybe_move_out_of_jump_pad)
429 (linux_process_target::wait_1)
430 (linux_process_target::resume_one_lwp_throw)
431 (linux_process_target::resume)
432 (linux_process_target::proceed_all_lwps)
433 (linux_process_target::read_pc)
434 (linux_process_target::write_pc)
436 * linux-x86-low.cc (class linux_process_target)
437 <low_supports_breakpoints>
439 <low_set_pc>: Declare.
440 (x86_target::low_supports_breakpoints): Define.
441 (x86_get_pc): Turn into...
442 (x86_target::low_get_pc): ...this.
443 (x86_set_pc): Turn into...
444 (x86_target::low_set_pc): ...this.
445 (the_low_target): Remove the op fields.
446 * linux-arm-low.cc (class arm_target)
447 <low_supports_breakpoints>
449 <low_set_pc>: Declare.
450 (arm_target::low_supports_breakpoints)
451 (arm_target::low_get_pc)
452 (arm_target::low_set_pc): Define.
453 (the_low_target): Remove the op fields.
454 * linux-bfin-low.cc (class bfin_target)
455 <low_supports_breakpoints>
457 <low_set_pc>: Declare.
458 (bfin_target::low_supports_breakpoints)
459 (bfin_target::low_get_pc)
460 (bfin_target::low_set_pc): Define.
461 (the_low_target): Remove the op fields.
462 * linux-cris-low.cc (class cris_target)
463 <low_supports_breakpoints>
465 <low_set_pc>: Declare.
466 (cris_target::low_supports_breakpoints)
467 (cris_target::low_get_pc)
468 (cris_target::low_set_pc): Define.
469 (the_low_target): Remove the op fields.
470 * linux-crisv32-low.cc (class crisv32_target)
471 <low_supports_breakpoints>
473 <low_set_pc>: Declare.
474 (crisv32_target::low_supports_breakpoints)
475 (crisv32_target::low_get_pc)
476 (crisv32_target::low_set_pc): Define.
477 (the_low_target): Remove the op fields.
478 * linux-m32r-low.cc (class m32r_target)
479 <low_supports_breakpoints>
481 <low_set_pc>: Declare.
482 (m32r_target::low_supports_breakpoints)
483 (m32r_target::low_get_pc)
484 (m32r_target::low_set_pc): Define.
485 (the_low_target): Remove the op fields.
486 * linux-m68k-low.cc (class m68k_target)
487 <low_supports_breakpoints>
489 <low_set_pc>: Declare.
490 (m68k_target::low_supports_breakpoints)
491 (m68k_target::low_get_pc)
492 (m68k_target::low_set_pc): Define.
493 (the_low_target): Remove the op fields.
494 * linux-nios2-low.cc (class nios2_target)
495 <low_supports_breakpoints>
497 <low_set_pc>: Declare.
498 (nios2_target::low_supports_breakpoints)
499 (nios2_target::low_get_pc)
500 (nios2_target::low_set_pc): Define.
501 (the_low_target): Remove the op fields.
502 * linux-sh-low.cc (class sh_target)
503 <low_supports_breakpoints>
505 <low_set_pc>: Declare.
506 (sh_target::low_supports_breakpoints)
507 (sh_target::low_get_pc)
508 (sh_target::low_set_pc): Define.
509 (the_low_target): Remove the op fields.
510 * linux-xtensa-low.cc (class xtensa_target)
511 <low_supports_breakpoints>
513 <low_set_pc>: Declare.
514 (xtensa_target::low_supports_breakpoints)
515 (xtensa_target::low_get_pc)
516 (xtensa_target::low_set_pc): Define.
517 (the_low_target): Remove the op fields.
518 * linux-sparc-low.cc (class sparc_target)
519 <low_supports_breakpoints>
520 <low_get_pc>: Declare.
521 (sparc_target::low_supports_breakpoints)
522 (sparc_target::low_get_pc): Define.
523 (the_low_target): Remove the op fields.
524 * linux-tile-low.cc (class tile_target)
525 <low_supports_breakpoints>
527 <low_set_pc>: Declare.
528 (tile_target::low_supports_breakpoints)
529 (tile_target::low_get_pc)
530 (tile_target::low_set_pc): Define.
531 (the_low_target): Remove the op fields.
532 * linux-aarch64-low.cc (class aarch64_target)
533 <low_supports_breakpoints>
535 <low_set_pc>: Declare.
536 (aarch64_target::low_supports_breakpoints): Define.
537 (aarch64_get_pc): Turn into...
538 (aarch64_target::low_get_pc): ...this.
539 (aarch64_set_pc): Turn into...
540 (aarch64_target::low_set_pc): ...this.
541 (the_low_target): Remove the op fields.
542 * linux-mips-low.cc (class mips_target)
543 <low_supports_breakpoints>
545 <low_set_pc>: Declare.
546 (mips_target::low_supports_breakpoints): Define.
547 (mips_get_pc): Turn into...
548 (mips_target::low_get_pc): ...this.
549 (mips_set_pc): Turn into...
550 (mips_target::low_set_pc): ...this.
551 (the_low_target): Remove the op fields.
552 * linux-ppc-low.cc (class ppc_target)
553 <low_supports_breakpoints>
555 <low_set_pc>: Declare.
556 (ppc_target::low_supports_breakpoints): Define.
557 (ppc_get_pc): Turn into...
558 (ppc_target::low_get_pc): ...this.
559 (ppc_set_pc): Turn into...
560 (ppc_target::low_set_pc): ...this.
561 (the_low_target): Remove the op fields.
562 * linux-riscv-low.cc (class riscv_target)
563 <low_supports_breakpoints>
565 <low_set_pc>: Declare.
566 (riscv_target::low_supports_breakpoints): Define.
567 (riscv_get_pc): Turn into...
568 (riscv_target::low_get_pc): ...this.
569 (riscv_set_pc): Turn into...
570 (riscv_target::low_set_pc): ...this.
571 (the_low_target): Remove the op fields.
572 * linux-s390-low.cc (class s390_target)
573 <low_supports_breakpoints>
575 <low_set_pc>: Declare.
576 (s390_target::low_supports_breakpoints): Define.
577 (s390_get_pc): Turn into...
578 (s390_target::low_get_pc): ...this.
579 (s390_set_pc): Turn into...
580 (s390_target::low_set_pc): ...this.
581 (the_low_target): Remove the op fields.
582 * linux-tic6x-low.cc (class tic6x_target)
583 <low_supports_breakpoints>
585 <low_set_pc>: Declare.
586 (tic6x_target::low_supports_breakpoints): Define.
587 (tic6x_get_pc): Turn into...
588 (tic6x_target::low_get_pc): ...this.
589 (tic6x_set_pc): Turn into...
590 (tic6x_target::low_set_pc): ...this.
591 (the_low_target): Remove the op fields.
593 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
595 Turn some more static methods in linux-low into private methods
596 of linux_process_target.
598 * linux-low.cc (get_pc): Turn into...
599 (linux_process_target::get_pc): ...this.
600 (save_stop_reason): Turn into...
601 (linux_process_target::save_stop_reason): ...this.
602 (thread_still_has_status_pending_p): Turn into...
603 (linux_process_target::thread_still_has_status_pending): ...this.
604 (status_pending_p_callback): Turn into...
605 (linux_process_target::status_pending_p_callback): ...this.
606 (resume_stopped_resumed_lwps): Turn into...
607 (linux_process_target::resume_stopped_resumed_lwps): ...this.
608 (install_software_single_step_breakpoints): Turn into...
609 (linux_process_target::install_software_single_step_breakpoints):
611 (single_step): Turn into...
612 (linux_process_target::single_step): ...this.
613 (linux_resume_one_lwp_throw): Turn into...
614 (linux_process_target::resume_one_lwp_throw): ...this.
615 (linux_resume_one_lwp): Turn into...
616 (linux_process_target::resume_one_lwp): ...this.
617 (resume_status_pending_p): Turn into...
618 (linux_process_target::resume_status_pending): ...this.
619 (need_step_over_p): Turn into...
620 (linux_process_target::thread_needs_step_over): ...this.
621 (linux_resume_one_thread): Turn into...
622 (linux_process_target::resume_one_thread): ...this.
623 (proceed_one_lwp): Turn into...
624 (linux_process_target::proceed_one_lwp): ...this.
625 (unsuspend_and_proceed_one_lwp): Turn into...
626 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
628 Update the calls/references to the above functions below.
630 (linux_process_target::handle_extended_wait)
631 (linux_process_target::filter_event)
632 (linux_process_target::wait_for_event_filtered)
633 (linux_process_target::wait_1)
634 (linux_process_target::move_out_of_jump_pad)
635 (linux_process_target::start_step_over)
636 (linux_process_target::resume)
637 (linux_process_target::proceed_all_lwps)
638 (regsets_store_inferior_registers)
639 (linux_process_target::store_register)
641 * linux-low.h (class linux_process_target)
644 <thread_still_has_status_pending>
645 <status_pending_p_callback>
646 <resume_stopped_resumed_lwps>
647 <install_software_single_step_breakpoints>
649 <resume_one_lwp_throw>
651 <resume_status_pending>
652 <thread_needs_step_over>
655 <unsuspend_and_proceed_one_lwp>: Declare.
657 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
659 Turn the 'fetch_register' linux target op into a method of
660 linux_process_target.
662 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
663 (class linux_process_target) <low_fetch_register>: Declare.
664 * linux-x86-low.cc (the_low_target)
665 * linux-aarch64-low.cc (the_low_target)
666 * linux-arm-low.cc (the_low_target)
667 * linux-bfin-low.cc (the_low_target)
668 * linux-cris-low.cc (the_low_target)
669 * linux-crisv32-low.cc (the_low_target)
670 * linux-m32r-low.cc (the_low_target)
671 * linux-m68k-low.cc (the_low_target)
672 * linux-nios2-low.cc (the_low_target)
673 * linux-ppc-low.cc (the_low_target)
674 * linux-s390-low.cc (the_low_target)
675 * linux-sh-low.cc (the_low_target)
676 * linux-sparc-low.cc (the_low_target)
677 * linux-tic6x-low.cc (the_low_target)
678 * linux-tile-low.cc (the_low_target)
679 * linux-xtensa-low.cc (the_low_target): Remove the op field.
680 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
682 (ia64_fetch_register): Turn into...
683 (ia64_target::low_fetch_register): ...this.
684 (the_low_target): Remove the op field.
685 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
687 (mips_fetch_register): Turn into...
688 (mips_target::low_fetch_register): ...this.
689 (the_low_target): Remove the op field.
690 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
692 (riscv_fetch_register): Turn into...
693 (riscv_target::low_fetch_register): ...this.
694 (the_low_target): Remove the op field.
696 Update the callers below.
698 * linux-low.cc (linux_process_target::fetch_registers)
699 (linux_process_target::low_fetch_register)
701 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
703 Turn the 'cannot_fetch_register' and 'cannot_store_register'
704 linux target ops into methods of linux_process_target.
706 * linux-low.h (struct linux_target_ops): Remove the low target ops.
707 (class linux_process_target) <fetch_register>
709 <usr_fetch_inferior_registers>
710 <usr_store_inferior_registers>
711 <low_cannot_fetch_register>
712 <low_cannot_fetch_register> Declare.
713 * linux-low.cc (fetch_register): Turn into...
714 (linux_process_target::fetch_register): ...this.
715 (store_register): Turn into ...
716 (linux_process_target::store_register): ...this.
717 (usr_fetch_inferior_registers): Turn into...
718 (linux_process_target::usr_fetch_inferior_registers): ...this.
719 (usr_store_inferior_registers): Turn into...
720 (linux_process_target::usr_store_inferior_registers): ...this.
721 * linux-x86-low.cc (class x86_target)
722 <low_cannot_fetch_register>
723 <low_cannot_store_register>: Declare.
724 (x86_cannot_store_register): Turn into...
725 (x86_target::low_cannot_store_register): ...this.
726 (x86_cannot_fetch_register): Turn into...
727 (x86_target::low_cannot_fetch_register): ...this.
728 (the_low_target): Remove the target op fields.
729 * linux-aarch64-low.cc (class aarch64_target)
730 <low_cannot_fetch_register>
731 <low_cannot_store_register>: Declare.
732 (aarch64_target::low_cannot_fetch_register)
733 (aarch64_target::low_cannot_store_register): Define.
734 (the_low_target): Remove the op fields.
735 * linux-arm-low.cc (class arm_target)
736 <low_cannot_fetch_register>
737 <low_cannot_store_register>: Declare.
738 (arm_cannot_fetch_register): Turn into...
739 (arm_target::low_cannot_fetch_register): ...this.
740 (arm_cannot_store_register): Turn into...
741 (arm_target::low_cannot_store_register): ...this.
742 (the_low_target): Remove the op fields.
743 * linux-bfin-low.cc (class bfin_target)
744 <low_cannot_fetch_register>
745 <low_cannot_store_register>: Declare.
746 (bfin_cannot_fetch_register): Turn into...
747 (bfin_target::low_cannot_fetch_register): ...this.
748 (bfin_cannot_store_register): Turn into...
749 (bfin_target::low_cannot_store_register): ...this.
750 (the_low_target): Remove the op fields.
751 * linux-cris-low.cc (class cris_target)
752 <low_cannot_fetch_register>
753 <low_cannot_store_register>: Declare.
754 (cris_cannot_fetch_register): Turn into...
755 (cris_target::low_cannot_fetch_register): ...this.
756 (cris_cannot_store_register): Turn into...
757 (cris_target::low_cannot_store_register): ...this.
758 (the_low_target): Remove the op fields.
759 * linux-crisv32-low.cc (class crisv32_target)
760 <low_cannot_fetch_register>
761 <low_cannot_store_register>: Declare.
762 (crisv32_target::low_cannot_fetch_register)
763 (crisv32_target::low_cannot_store_register): Define.
764 (the_low_target): Remove the op fields.
765 * linux-ia64-low.cc (class ia64_target)
766 <low_cannot_fetch_register>
767 <low_cannot_store_register>: Declare.
768 (ia64_cannot_fetch_register): Turn into...
769 (ia64_target::low_cannot_fetch_register): ...this.
770 (ia64_cannot_store_register): Turn into...
771 (ia64_target::low_cannot_store_register): ...this.
772 (the_low_target): Remove the op fields.
773 * linux-m32r-low.cc (class m32r_target)
774 <low_cannot_fetch_register>
775 <low_cannot_store_register>: Declare.
776 (m32r_cannot_fetch_register): Turn into...
777 (m32r_target::low_cannot_fetch_register): ...this.
778 (m32r_cannot_store_register): Turn into...
779 (m32r_target::low_cannot_store_register): ...this.
780 (the_low_target): Remove the op fields.
781 * linux-m68k-low.cc (class m68k_target)
782 <low_cannot_fetch_register>
783 <low_cannot_store_register>: Declare.
784 (m68k_cannot_fetch_register): Turn into...
785 (m68k_target::low_cannot_fetch_register): ...this.
786 (m68k_cannot_store_register): Turn into...
787 (m68k_target::low_cannot_store_register): ...this.
788 (the_low_target): Remove the op fields.
789 * linux-mips-low.cc (class mips_target)
790 <low_cannot_fetch_register>
791 <low_cannot_store_register>: Declare.
792 (mips_cannot_fetch_register): Turn into...
793 (mips_target::low_cannot_fetch_register): ...this.
794 (mips_cannot_store_register): Turn into...
795 (mips_target::low_cannot_store_register): ...this.
796 (get_usrregs_info): Inline at the call sites in
797 low_cannot_fetch_register and low_cannot_store_register,
799 (the_low_target): Remove the op fields.
800 * linux-nios2-low.cc (class nios2_target)
801 <low_cannot_fetch_register>
802 <low_cannot_store_register>: Declare.
803 (nios2_cannot_fetch_register): Turn into...
804 (nios2_target::low_cannot_fetch_register): ...this.
805 (nios2_cannot_store_register): Turn into...
806 (nios2_target::low_cannot_store_register): ...this.
807 (the_low_target): Remove the op fields.
808 * linux-ppc-low.cc (class ppc_target)
809 <low_cannot_fetch_register>
810 <low_cannot_store_register>: Declare.
811 (ppc_cannot_fetch_register): Turn into...
812 (ppc_target::low_cannot_fetch_register): ...this.
813 (ppc_cannot_store_register): Turn into...
814 (ppc_target::low_cannot_store_register): ...this.
815 (the_low_target): Remove the op fields.
816 * linux-riscv-low.cc (class riscv_target)
817 <low_cannot_fetch_register>
818 <low_cannot_store_register>: Declare.
819 (riscv_target::low_cannot_fetch_register)
820 (riscv_target::low_cannot_store_register): Define.
821 (the_low_target): Remove the op fields.
822 * linux-s390-low.cc (class s390_target)
823 <low_cannot_fetch_register>
824 <low_cannot_store_register>: Declare.
825 (s390_cannot_fetch_register): Turn into...
826 (s390_target::low_cannot_fetch_register): ...this.
827 (s390_cannot_store_register): Turn into...
828 (s390_target::low_cannot_store_register): ...this.
829 (the_low_target): Remove the op fields.
830 * linux-sh-low.cc (class sh_target)
831 <low_cannot_fetch_register>
832 <low_cannot_store_register>: Declare.
833 (sh_cannot_fetch_register): Turn into...
834 (sh_target::low_cannot_fetch_register): ...this.
835 (sh_cannot_store_register): Turn into...
836 (sh_target::low_cannot_store_register): ...this.
837 (the_low_target): Remove the op fields.
838 * linux-sparc-low.cc (class sparc_target)
839 <low_cannot_fetch_register>
840 <low_cannot_store_register>: Declare.
841 (sparc_cannot_fetch_register): Turn into...
842 (sparc_target::low_cannot_fetch_register): ...this.
843 (sparc_cannot_store_register): Turn into...
844 (sparc_target::low_cannot_store_register): ...this.
845 (the_low_target): Remove the op fields.
846 * linux-tic6x-low.cc (class tic6x_target)
847 <low_cannot_fetch_register>
848 <low_cannot_store_register>: Declare.
849 (tic6x_cannot_fetch_register): Turn into...
850 (tic6x_target::low_cannot_fetch_register): ...this.
851 (tic6x_cannot_store_register): Turn into...
852 (tic6x_target::low_cannot_store_register): ...this.
853 (the_low_target): Remove the op fields.
854 * linux-tile-low.cc (class tile_target)
855 <low_cannot_fetch_register>
856 <low_cannot_store_register>: Declare.
857 (tile_cannot_fetch_register): Turn into...
858 (tile_target::low_cannot_fetch_register): ...this.
859 (tile_cannot_store_register): Turn into...
860 (tile_target::low_cannot_store_register): ...this.
861 (the_low_target): Remove the op fields.
862 * linux-xtensa-low.cc (class xtensa_target)
863 <low_cannot_fetch_register>
864 <low_cannot_store_register>: Declare.
865 (xtensa_target::low_cannot_fetch_register)
866 (xtensa_target::low_cannot_store_register): Define.
867 (the_low_target): Remove the op fields.
869 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
871 Turn the 'regs_info' linux target op into a method of
872 linux_process_target.
874 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
875 (class linux_process_target) <get_regs_info>: Define.
877 Update the callers below.
879 * linux-low.cc (linux_process_target::fetch_registers)
880 (linux_process_target::store_registers)
881 * proc-service.cc (gregset_info)
883 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
884 (x86_linux_regs_info): Turn into ...
885 (x86_target::get_regs_info): ...this.
886 (the_low_target): Remove the op field.
887 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
889 (aarch64_regs_info): Turn into ...
890 (aarch64_target::get_regs_info): ...this.
891 (the_low_target): Remove the op field.
892 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
893 (arm_regs_info): Turn into ...
894 (arm_target::get_regs_info): ...this.
895 (the_low_target): Remove the op field.
896 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
897 (bfin_regs_info): Turn into ...
898 (bfin_target::get_regs_info): ...this.
899 (the_low_target): Remove the op field.
900 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
901 (cris_regs_info): Turn into ...
902 (cris_target::get_regs_info): ...this.
903 (the_low_target): Remove the op field.
904 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
906 (crisv32_regs_info): Turn into ...
907 (crisv32_target::get_regs_info): ...this.
908 (the_low_target): Remove the op field.
909 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
910 (ia64_regs_info): Turn into ...
911 (ia64_target::get_regs_info): ...this.
912 (the_low_target): Remove the op field.
913 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
914 (m32r_regs_info): Turn into ...
915 (m32r_target::get_regs_info): ...this.
916 (the_low_target): Remove the op field.
917 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
918 (m68k_regs_info): Turn into ...
919 (m68k_target::get_regs_info): ...this.
920 (the_low_target): Remove the op field.
921 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
922 (mips_regs_info): Turn into ...
923 (mips_target::get_regs_info): ...this.
924 (the_low_target): Remove the op field.
925 (get_usrregs_info): Update the call to the op.
926 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
927 (nios2_regs_info): Turn into ...
928 (nios2_target::get_regs_info): ...this.
929 (the_low_target): Remove the op field.
930 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
931 (ppc_regs_info): Turn into ...
932 (ppc_target::get_regs_info): ...this.
933 (the_low_target): Remove the op field.
934 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
935 (riscv_regs_info): Turn into ...
936 (riscv_target::get_regs_info): ...this.
937 (the_low_target): Remove the op field.
938 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
939 (s390_regs_info): Turn into ...
940 (s390_target::get_regs_info): ...this.
941 (the_low_target): Remove the op field.
942 (s390_collect_ptrace_register)
943 (s390_supply_ptrace_register)
944 (s390_fill_gregset): Update the call to the op.
945 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
946 (sh_regs_info): Turn into ...
947 (sh_target::get_regs_info): ...this.
948 (the_low_target): Remove the op field.
949 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
950 (sparc_regs_info): Turn into ...
951 (sparc_target::get_regs_info): ...this.
952 (the_low_target): Remove the op field.
953 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
954 (tic6x_regs_info): Turn into ...
955 (tic6x_target::get_regs_info): ...this.
956 (the_low_target): Remove the op field.
957 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
958 (tile_regs_info): Turn into ...
959 (tile_target::get_regs_info): ...this.
960 (the_low_target): Remove the op field.
961 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
963 (xtensa_regs_info): Turn into ...
964 (xtensa_target::get_regs_info): ...this.
965 (the_low_target): Remove the op field.
967 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
969 Turn the 'arch_setup' linux target op into a method of
970 linux_process_target.
972 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
973 (class linux_process_target) <arch_setup_thread>
974 <low_arch_setup>: New declarations.
975 * linux-low.cc (linux_arch_setup): Delete.
976 (linux_arch_setup_thread): Turn into...
977 (linux_process_target::arch_setup_thread): ... this.
979 Update the callers below.
981 (linux_process_target::handle_extended_wait)
982 (linux_process_target::post_create_inferior)
983 (linux_process_target::filter_event)
985 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
987 (x86_linux_update_xmltarget): Turn into...
988 (x86_target::update_xmltarget): ...this.
989 (x86_linux_process_qsupported): Update the call to
990 x86_linux_update_xmltarget.
991 (x86_arch_setup): Turn into ...
992 (x86_target::low_arch_setup): ...this.
993 (the_low_target): Remove the op field.
994 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
996 (aarch64_arch_setup): Turn into ...
997 (aarch64_target::low_arch_setup): ...this.
998 (the_low_target): Remove the op field.
999 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1001 (arm_arch_setup): Turn into ...
1002 (arm_target::low_arch_setup): ...this.
1003 (the_low_target): Remove the op field.
1004 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1006 (bfin_arch_setup): Turn into ...
1007 (bfin_target::low_arch_setup): ...this.
1008 (the_low_target): Remove the op field.
1009 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1011 (cris_arch_setup): Turn into ...
1012 (cris_target::low_arch_setup): ...this.
1013 (the_low_target): Remove the op field.
1014 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1016 (crisv32_arch_setup): Turn into ...
1017 (crisv32_target::low_arch_setup): ...this.
1018 (the_low_target): Remove the op field.
1019 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1021 (ia64_arch_setup): Turn into ...
1022 (ia64_target::low_arch_setup): ...this.
1023 (the_low_target): Remove the op field.
1024 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1026 (m32r_arch_setup): Turn into ...
1027 (m32r_target::low_arch_setup): ...this.
1028 (the_low_target): Remove the op field.
1029 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1031 (m68k_arch_setup): Turn into ...
1032 (m68k_target::low_arch_setup): ...this.
1033 (the_low_target): Remove the op field.
1034 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1036 (mips_arch_setup): Turn into ...
1037 (mips_target::low_arch_setup): ...this.
1038 (the_low_target): Remove the op field.
1039 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1041 (nios2_arch_setup): Turn into ...
1042 (nios2_target::low_arch_setup): ...this.
1043 (the_low_target): Remove the op field.
1044 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1046 (ppc_arch_setup): Turn into ...
1047 (ppc_target::low_arch_setup): ...this.
1048 (the_low_target): Remove the op field.
1049 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1051 (riscv_arch_setup): Turn into ...
1052 (riscv_target::low_arch_setup): ...this.
1053 (the_low_target): Remove the op field.
1054 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1056 (s390_arch_setup): Turn into ...
1057 (s390_target::low_arch_setup): ...this.
1058 (the_low_target): Remove the op field.
1059 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1061 (sh_arch_setup): Turn into ...
1062 (sh_target::low_arch_setup): ...this.
1063 (the_low_target): Remove the op field.
1064 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1066 (sparc_arch_setup): Turn into ...
1067 (sparc_target::low_arch_setup): ...this.
1068 (the_low_target): Remove the op field.
1069 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1071 (tic6x_arch_setup): Turn into ...
1072 (tic6x_target::low_arch_setup): ...this.
1073 (the_low_target): Remove the op field.
1074 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1076 (tile_arch_setup): Turn into ...
1077 (tile_target::low_arch_setup): ...this.
1078 (the_low_target): Remove the op field.
1079 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1081 (xtensa_arch_setup): Turn into ...
1082 (xtensa_target::low_arch_setup): ...this.
1083 (the_low_target): Remove the op field.
1085 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1087 * linux-low.h (the_linux_target): New extern declaration.
1088 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1090 (the_linux_target): Remove.
1091 * linux-x86-low.cc (class x86_target): New class.
1092 (the_x86_target): New static object.
1093 (the_linux_target): Define as pointer to the_x86_target.
1094 * linux-aarch64-low.cc (class aarch64_target): New class.
1095 (the_aarch64_target): New static object.
1096 (the_linux_target): Define as pointer to the_aarch64_target.
1097 * linux-arm-low.cc (class arm_target): New class.
1098 (the_arm_target): New static object.
1099 (the_linux_target): Define as pointer to the_arm_target.
1100 * linux-bfin-low.cc (class bfin_target): New class.
1101 (the_bfin_target): New static object.
1102 (the_linux_target): Define as pointer to the_bfin_target.
1103 * linux-cris-low.cc (class cris_target): New class.
1104 (the_cris_target): New static object.
1105 (the_linux_target): Define as pointer to the_cris_target.
1106 * linux-crisv32-low.cc (class crisv32_target): New class.
1107 (the_crisv32_target): New static object.
1108 (the_linux_target): Define as pointer to the_crisv32_target.
1109 * linux-ia64-low.cc (class ia64_target): New class.
1110 (the_ia64_target): New static object.
1111 (the_linux_target): Define as pointer to the_ia64_target.
1112 * linux-m32r-low.cc (class m32r_target): New class.
1113 (the_m32r_target): New static object.
1114 (the_linux_target): Define as pointer to the_m32r_target.
1115 * linux-m68k-low.cc (class m68k_target): New class.
1116 (the_m68k_target): New static object.
1117 (the_linux_target): Define as pointer to the_m68k_target.
1118 * linux-mips-low.cc (class mips_target): New class.
1119 (the_mips_target): New static object.
1120 (the_linux_target): Define as pointer to the_mips_target.
1121 * linux-nios2-low.cc (class nios2_target): New class.
1122 (the_nios2_target): New static object.
1123 (the_linux_target): Define as pointer to the_nios2_target.
1124 * linux-ppc-low.cc (class ppc_target): New class.
1125 (the_ppc_target): New static object.
1126 (the_linux_target): Define as pointer to the_ppc_target.
1127 * linux-riscv-low.cc (class riscv_target): New class.
1128 (the_riscv_target): New static object.
1129 (the_linux_target): Define as pointer to the_riscv_target.
1130 * linux-s390-low.cc (class s390_target): New class.
1131 (the_s390_target): New static object.
1132 (the_linux_target): Define as pointer to the_s390_target.
1133 * linux-sh-low.cc (class sh_target): New class.
1134 (the_sh_target): New static object.
1135 (the_linux_target): Define as pointer to the_sh_target.
1136 * linux-sparc-low.cc (class sparc_target): New class.
1137 (the_sparc_target): New static object.
1138 (the_linux_target): Define as pointer to the_sparc_target.
1139 * linux-tic6x-low.cc (class tic6x_target): New class.
1140 (the_tic6x_target): New static object.
1141 (the_linux_target): Define as pointer to the_tic6x_target.
1142 * linux-tile-low.cc (class tile_target): New class.
1143 (the_tile_target): New static object.
1144 (the_linux_target): Define as pointer to the_tile_target.
1145 * linux-xtensa-low.cc (class xtensa_target): New class.
1146 (the_xtensa_target): New static object.
1147 (the_linux_target): Define as pointer to the_xtensa_target.
1149 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1151 Turn some static functions in linux-low.cc into private methods of
1152 linux_process_target.
1154 * linux-low.cc (handle_extended_wait): Turn into ...
1155 (linux_process_target::handle_extended_wait): ...this. Call
1156 'mourn' on 'this' object instead of 'the_target'.
1157 (maybe_move_out_of_jump_pad): Turn into...
1158 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1159 (linux_low_filter_event): Turn into...
1160 (linux_process_target::filter_event): ...this.
1161 (linux_wait_for_event_filtered): Turn into...
1162 (linux_process_target::wait_for_event_filtered): ...this.
1163 (linux_wait_for_event): Turn into...
1164 (linux_process_target::wait_for_event): ...this.
1165 (linux_wait_1): Turn into...
1166 (linux_process_target::wait_1): ...this.
1167 (wait_for_sigstop): Turn into...
1168 (linux_process_target::wait_for_sigstop): ...this.
1169 (move_out_of_jump_pad_callback): Turn into...
1170 (linux_process_target::move_out_of_jump_pad): ...this.
1171 (stop_all_lwps): Turn into...
1172 (linux_process_target::stop_all_lwps): ...this.
1173 (start_step_over): Turn into...
1174 (linux_process_target::start_step_over): ...this.
1175 (complete_ongoing_step_over): Turn into...
1176 (linux_process_target::complete_ongoing_step_over): ...this.
1177 (proceed_all_lwps): Turn into...
1178 (linux_process_target::proceed_all_lwps): ...this.
1179 (unstop_all_lwps): Turn into...
1180 (linux_process_target::unstop_all_lwps): ...this.
1182 * linux-low.h (class linux_process_target)
1183 <handle_extended_wait>
1184 <maybe_move_out_of_jump_pad>
1186 <wait_for_event_filtered>
1190 <move_out_of_jump_pad>
1193 <complete_ongoing_step_over>
1195 <unstop_all_lwps>: Declare.
1197 Update the callers below.
1199 * linux-low.cc (linux_process_target::attach): Update.
1200 (linux_process_target::stabilize_threads): Ditto.
1201 (linux_process_target::wait): Ditto.
1203 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1205 * linux-low.h (struct linux_target_ops): Update the comment for
1206 'cannot_store_register' to return 0 or 1.
1207 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1210 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
1212 * config.in: Re-generate.
1213 * configure: Re-generate.
1215 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1217 * regcache.cc (find_register_by_number): Update.
1218 * tdesc.cc (init_target_desc): Likewise.
1219 * tdesc.h (target_desc::reg_defs): Likewise.
1221 2020-03-12 Tom Tromey <tom@tromey.com>
1223 * configure: Rebuild.
1224 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1225 (WIN32APILIBS): New subst.
1226 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1228 (gdbsupport/%.o): Remove target.
1229 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1230 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1231 (WIN32APILIBS): New variable.
1232 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1233 (gdbreplay$(EXEEXT)): Likewise.
1235 2020-03-12 Tom Tromey <tom@tromey.com>
1237 * config.in, configure: Rebuild.
1238 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1239 * acinclude.m4: Include gettext-sister.m4.
1240 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1242 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1243 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1245 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1247 * acinclude.m4: Update path to selftest.m4.
1249 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1251 * configure.ac: Don't source bfd/development.sh, move
1252 GDB_AC_COMMON higher.
1253 * configure: Re-generate.
1255 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1257 * configure: Re-generate.
1259 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
1261 * configure: Re-generate.
1263 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1265 * .dir-locals.el: New file.
1267 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1269 * .gitattributes: New file.
1271 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1273 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1274 reply into an S reply.
1275 * server.cc (disable_packet_T): New global.
1276 (captured_main): Set new global when appropriate.
1277 * server.h (disable_packet_T): Declare.
1279 2020-02-21 Tom Tromey <tom@tromey.com>
1281 * Makefile.in (mostlyclean): New target.
1283 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1285 * target.h (struct process_stratum_target): Remove.
1286 (class process_target): Rename to ...
1287 (class process_stratum_target): ... this.
1288 * linux-low.h (class linux_process_target): Derive from
1289 'process_stratum_target'.
1290 * linux-low.cc (linux_target_ops): Remove.
1291 (initialize_low): Set the_target to the singleton instance of
1292 linux_process_target.
1293 * lynx-low.h (class lynx_process_target): Derive from
1294 'process_stratum_target'.
1295 * lynx-low.cc (lynx_target_ops): Remove.
1296 (initialize_low): Set the_target to the singleton instance of
1297 lynx_process_target.
1298 * nto-low.h (class nto_process_target): Derive from
1299 'process_stratum_target'.
1300 * nto-low.cc (nto_target_ops): Remove.
1301 (initialize_low): Set the_target to the singleton instance of
1303 * win32-low.h (class win32_process_target): Derive from
1304 'process_stratum_target'.
1305 * win32-low.cc (win32_target_ops): Remove.
1306 (initialize_low): Set the_target to the singleton instance of
1307 win32_process_target.
1309 Replace 'the_target->pt' with 'the_target' in the uses below.
1311 * hostio.cc (hostio_error)
1316 * linux-aarch32-low.cc (arm_breakpoint_at)
1317 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1318 * linux-arm-low.cc (arm_sigreturn_next_pc)
1320 (arm_get_syscall_trapinfo)
1321 * linux-cris-low.cc (cris_breakpoint_at)
1322 * linux-crisv32-low.cc (cris_breakpoint_at)
1323 * linux-low.cc (handle_extended_wait)
1326 (linux_process_target::breakpoint_kind_from_pc)
1328 * linux-m32r-low.cc (m32r_breakpoint_at)
1329 * linux-mips-low.cc (mips_breakpoint_at)
1330 * linux-nios2-low.cc (nios2_breakpoint_at)
1331 * linux-ppc-low.cc (ppc_breakpoint_at)
1332 * linux-s390-low.cc (s390_get_hwcap)
1333 * linux-sh-low.cc (sh_breakpoint_at)
1334 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1335 (sparc_store_gregset_from_stack)
1336 (sparc_breakpoint_at)
1337 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1338 * linux-tile-low.cc (tile_breakpoint_at)
1339 * linux-x86-low.cc (x86_breakpoint_at)
1340 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1341 * mem-break.cc (bp_size)
1343 (insert_memory_breakpoint)
1344 (set_raw_breakpoint_at)
1345 (delete_raw_breakpoint)
1347 (uninsert_raw_breakpoint)
1348 (reinsert_raw_breakpoint)
1349 (validate_inserted_breakpoint)
1350 * regcache.cc (regcache_read_pc)
1352 * remote-utils.cc (putpkt_binary_1)
1355 (prepare_resume_reply)
1356 * server.cc (handle_general_set)
1359 (handle_qxfer_exec_file)
1360 (handle_qxfer_libraries_svr4)
1361 (handle_qxfer_osdata)
1362 (handle_qxfer_siginfo)
1363 (handle_qxfer_fdpic)
1367 (queue_stop_reply_callback)
1369 * target.cc (prepare_to_access_memory)
1370 (done_accessing_memory)
1371 (read_inferior_memory)
1372 (target_write_memory)
1373 (target_stop_and_wait)
1375 (target_mourn_inferior)
1376 (target_continue_no_signal)
1378 (target_supports_multi_process)
1381 (target_create_inferior)
1382 (target_post_create_inferior)
1384 (target_supports_fork_events)
1385 (target_supports_vfork_events)
1386 (target_supports_exec_events)
1387 (target_handle_new_gdb_connection)
1390 (fetch_inferior_registers)
1391 (store_inferior_registers)
1393 (target_supports_non_stop)
1395 (target_process_qsupported)
1396 (target_supports_catch_syscall)
1397 (target_get_ipa_tdesc_idx)
1398 (target_supports_tracepoints)
1399 (target_supports_fast_tracepoints)
1400 (target_get_min_fast_tracepoint_insn_len)
1401 (target_thread_stopped)
1403 (target_unpause_all)
1404 (target_stabilize_threads)
1405 (target_install_fast_tracepoint_jump_pad)
1407 (target_supports_disable_randomization)
1408 (target_supports_agent)
1409 (target_enable_btrace)
1410 (target_disable_btrace)
1411 (target_read_btrace)
1412 (target_read_btrace_conf)
1413 (target_supports_range_stepping)
1414 (target_supports_stopped_by_sw_breakpoint)
1415 (target_stopped_by_sw_breakpoint)
1416 (target_supports_stopped_by_hw_breakpoint)
1417 (target_supports_hardware_single_step)
1418 (target_stopped_by_hw_breakpoint)
1419 (target_breakpoint_kind_from_pc)
1420 (target_breakpoint_kind_from_current_state)
1421 (target_supports_software_single_step)
1422 (target_core_of_thread)
1423 (target_thread_name)
1424 (target_thread_handle)
1425 * win32-low.cc (do_initial_child_stuff)
1427 Rename target op default definitions listed below.
1429 * target.cc (process_target::post_create_inferior): Rename as ...
1430 (process_stratum_target::post_create_inferior): ... this.
1431 (process_target::prepare_to_access_memory): Rename as ...
1432 (process_stratum_target::prepare_to_access_memory): ... this.
1433 (process_target::done_accessing_memory): Rename as ...
1434 (process_stratum_target::done_accessing_memory): ... this.
1435 (process_target::look_up_symbols): Rename as ...
1436 (process_stratum_target::look_up_symbols): ... this.
1437 (process_target::supports_read_auxv): Rename as ...
1438 (process_stratum_target::supports_read_auxv): ... this.
1439 (process_target::read_auxv): Rename as ...
1440 (process_stratum_target::read_auxv): ... this.
1441 (process_target::supports_z_point_type): Rename as ...
1442 (process_stratum_target::supports_z_point_type): ... this.
1443 (process_target::insert_point): Rename as ...
1444 (process_stratum_target::insert_point): ... this.
1445 (process_target::remove_point): Rename as ...
1446 (process_stratum_target::remove_point): ... this.
1447 (process_target::stopped_by_sw_breakpoint): Rename as ...
1448 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
1449 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
1450 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
1451 (process_target::stopped_by_hw_breakpoint): Rename as ...
1452 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
1453 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
1454 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
1455 (process_target::supports_hardware_single_step): Rename as ...
1456 (process_stratum_target::supports_hardware_single_step): ... this.
1457 (process_target::stopped_by_watchpoint): Rename as ...
1458 (process_stratum_target::stopped_by_watchpoint): ... this.
1459 (process_target::stopped_data_address): Rename as ...
1460 (process_stratum_target::stopped_data_address): ... this.
1461 (process_target::supports_read_offsets): Rename as ...
1462 (process_stratum_target::supports_read_offsets): ... this.
1463 (process_target::read_offsets): Rename as ...
1464 (process_stratum_target::read_offsets): ... this.
1465 (process_target::supports_get_tls_address): Rename as ...
1466 (process_stratum_target::supports_get_tls_address): ... this.
1467 (process_target::get_tls_address): Rename as ...
1468 (process_stratum_target::get_tls_address): ... this.
1469 (process_target::hostio_last_error): Rename as ...
1470 (process_stratum_target::hostio_last_error): ... this.
1471 (process_target::supports_qxfer_osdata): Rename as ...
1472 (process_stratum_target::supports_qxfer_osdata): ... this.
1473 (process_target::qxfer_osdata): Rename as ...
1474 (process_stratum_target::qxfer_osdata): ... this.
1475 (process_target::supports_qxfer_siginfo): Rename as ...
1476 (process_stratum_target::supports_qxfer_siginfo): ... this.
1477 (process_target::qxfer_siginfo): Rename as ...
1478 (process_stratum_target::qxfer_siginfo): ... this.
1479 (process_target::supports_non_stop): Rename as ...
1480 (process_stratum_target::supports_non_stop): ... this.
1481 (process_target::async): Rename as ...
1482 (process_stratum_target::async): ... this.
1483 (process_target::start_non_stop): Rename as ...
1484 (process_stratum_target::start_non_stop): ... this.
1485 (process_target::supports_multi_process): Rename as ...
1486 (process_stratum_target::supports_multi_process): ... this.
1487 (process_target::supports_fork_events): Rename as ...
1488 (process_stratum_target::supports_fork_events): ... this.
1489 (process_target::supports_vfork_events): Rename as ...
1490 (process_stratum_target::supports_vfork_events): ... this.
1491 (process_target::supports_exec_events): Rename as ...
1492 (process_stratum_target::supports_exec_events): ... this.
1493 (process_target::handle_new_gdb_connection): Rename as ...
1494 (process_stratum_target::handle_new_gdb_connection): ... this.
1495 (process_target::handle_monitor_command): Rename as ...
1496 (process_stratum_target::handle_monitor_command): ... this.
1497 (process_target::core_of_thread): Rename as ...
1498 (process_stratum_target::core_of_thread): ... this.
1499 (process_target::supports_read_loadmap): Rename as ...
1500 (process_stratum_target::supports_read_loadmap): ... this.
1501 (process_target::read_loadmap): Rename as ...
1502 (process_stratum_target::read_loadmap): ... this.
1503 (process_target::process_qsupported): Rename as ...
1504 (process_stratum_target::process_qsupported): ... this.
1505 (process_target::supports_tracepoints): Rename as ...
1506 (process_stratum_target::supports_tracepoints): ... this.
1507 (process_target::read_pc): Rename as ...
1508 (process_stratum_target::read_pc): ... this.
1509 (process_target::write_pc): Rename as ...
1510 (process_stratum_target::write_pc): ... this.
1511 (process_target::supports_thread_stopped): Rename as ...
1512 (process_stratum_target::supports_thread_stopped): ... this.
1513 (process_target::thread_stopped): Rename as ...
1514 (process_stratum_target::thread_stopped): ... this.
1515 (process_target::supports_get_tib_address): Rename as ...
1516 (process_stratum_target::supports_get_tib_address): ... this.
1517 (process_target::get_tib_address): Rename as ...
1518 (process_stratum_target::get_tib_address): ... this.
1519 (process_target::pause_all): Rename as ...
1520 (process_stratum_target::pause_all): ... this.
1521 (process_target::unpause_all): Rename as ...
1522 (process_stratum_target::unpause_all): ... this.
1523 (process_target::stabilize_threads): Rename as ...
1524 (process_stratum_target::stabilize_threads): ... this.
1525 (process_target::supports_fast_tracepoints): Rename as ...
1526 (process_stratum_target::supports_fast_tracepoints): ... this.
1527 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
1528 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
1529 (process_target::emit_ops): Rename as ...
1530 (process_stratum_target::emit_ops): ... this.
1531 (process_target::supports_disable_randomization): Rename as ...
1532 (process_stratum_target::supports_disable_randomization): ... this.
1533 (process_target::supports_qxfer_libraries_svr4): Rename as ...
1534 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
1535 (process_target::qxfer_libraries_svr4): Rename as ...
1536 (process_stratum_target::qxfer_libraries_svr4): ... this.
1537 (process_target::supports_agent): Rename as ...
1538 (process_stratum_target::supports_agent): ... this.
1539 (process_target::enable_btrace): Rename as ...
1540 (process_stratum_target::enable_btrace): ... this.
1541 (process_target::disable_btrace): Rename as ...
1542 (process_stratum_target::disable_btrace): ... this.
1543 (process_target::read_btrace): Rename as ...
1544 (process_stratum_target::read_btrace): ... this.
1545 (process_target::read_btrace_conf): Rename as ...
1546 (process_stratum_target::read_btrace_conf): ... this.
1547 (process_target::supports_range_stepping): Rename as ...
1548 (process_stratum_target::supports_range_stepping): ... this.
1549 (process_target::supports_pid_to_exec_file): Rename as ...
1550 (process_stratum_target::supports_pid_to_exec_file): ... this.
1551 (process_target::pid_to_exec_file): Rename as ...
1552 (process_stratum_target::pid_to_exec_file): ... this.
1553 (process_target::supports_multifs): Rename as ...
1554 (process_stratum_target::supports_multifs): ... this.
1555 (process_target::multifs_open): Rename as ...
1556 (process_stratum_target::multifs_open): ... this.
1557 (process_target::multifs_unlink): Rename as ...
1558 (process_stratum_target::multifs_unlink): ... this.
1559 (process_target::multifs_readlink): Rename as ...
1560 (process_stratum_target::multifs_readlink): ... this.
1561 (process_target::breakpoint_kind_from_pc): Rename as ...
1562 (process_stratum_target::breakpoint_kind_from_pc): ... this.
1563 (process_target::breakpoint_kind_from_current_state): Rename as ...
1564 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
1565 (process_target::thread_name): Rename as ...
1566 (process_stratum_target::thread_name): ... this.
1567 (process_target::thread_handle): Rename as ...
1568 (process_stratum_target::thread_handle): ... this.
1569 (process_target::supports_software_single_step): Rename as ...
1570 (process_stratum_target::supports_software_single_step): ... this.
1571 (process_target::supports_catch_syscall): Rename as ...
1572 (process_stratum_target::supports_catch_syscall): ... this.
1573 (process_target::get_ipa_tdesc_idx): Rename as ...
1574 (process_stratum_target::get_ipa_tdesc_idx): ... this.
1576 2020-02-20 Pedro Alves <palves@redhat.com>
1578 * target.cc (set_target_ops): Simply copy the given target pointer
1579 instead of creating a copy of the pointed object.
1581 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1583 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
1586 * target.h (struct process_stratum_target): Remove the target op.
1587 (class process_target): Add the target op.
1588 (target_get_ipa_tdesc_idx): Update the macro.
1589 * target.cc (process_target::get_ipa_tdesc_idx): Define.
1591 Update the derived classes and callers below.
1593 * linux-low.cc (linux_target_ops): Update.
1594 (linux_get_ipa_tdesc_idx): Turn into ...
1595 (linux_process_target::get_ipa_tdesc_idx): ... this.
1596 * linux-low.h (class linux_process_target): Update.
1597 * lynx-low.cc (lynx_target_ops): Update.
1598 * nto-low.cc (nto_target_ops): Update.
1599 * win32-low.cc (win32_target_ops): Update.
1601 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1603 Turn process_stratum_target's supports_catch_syscall op into a
1604 method of process_target.
1606 * target.h (struct process_stratum_target): Remove the target op.
1607 (class process_target): Add the target op.
1608 (target_supports_catch_syscall): Update the macro.
1609 * target.cc (process_target::supports_catch_syscall): Define.
1611 Update the derived classes and callers below.
1613 * linux-low.cc (linux_target_ops): Update.
1614 (linux_supports_catch_syscall): Turn into ...
1615 (linux_process_target::supports_catch_syscall): ... this.
1616 * linux-low.h (class linux_process_target): Update.
1617 * lynx-low.cc (lynx_target_ops): Update.
1618 * nto-low.cc (nto_target_ops): Update.
1619 * win32-low.cc (win32_target_ops): Update.
1621 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1623 Turn process_stratum_target's supports_software_single_step op
1624 into a method of process_target.
1626 * target.h (struct process_stratum_target): Remove the target op.
1627 (class process_target): Add the target op.
1628 (target_supports_software_single_step): Update the macro.
1629 * target.cc (process_target::supports_software_single_step): Define.
1631 Update the derived classes and callers below.
1633 * linux-low.cc (linux_target_ops): Update.
1634 (linux_supports_software_single_step): Turn into ...
1635 (linux_process_target::supports_software_single_step): ... this.
1636 * linux-low.h (class linux_process_target): Update.
1637 * lynx-low.cc (lynx_target_ops): Update.
1638 * nto-low.cc (nto_target_ops): Update.
1639 * win32-low.cc (win32_target_ops): Update.
1641 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1643 Turn process_stratum_target's thread_name and thread_handle ops
1644 into methods of process_target.
1646 * target.h (struct process_stratum_target): Remove the target ops.
1647 (class process_target): Add the target ops.
1648 (target_thread_name): Update the macro.
1649 (target_thread_handle): Update the macro.
1650 * target.cc (process_target::thread_name): Define.
1651 (process_target::thread_handle): Define.
1653 Update the derived classes and callers below.
1655 * linux-low.cc (linux_target_ops): Update.
1656 (linux_process_target::thread_name): Define.
1657 (linux_process_target::thread_handle): Define.
1658 * linux-low.h (class linux_process_target): Update.
1659 * lynx-low.cc (lynx_target_ops): Update.
1660 * nto-low.cc (nto_target_ops): Update.
1661 * win32-low.cc (win32_target_ops): Update.
1663 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1665 Turn process_stratum_target's breakpoint_kind_from_pc,
1666 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
1667 ops into methods of process_target.
1669 * target.h (struct process_stratum_target): Remove the target op.
1670 (class process_target): Add the target op.
1671 (target_breakpoint_kind_from_pc): Update the macro.
1672 (target_breakpoint_kind_from_current_state): Update the macro.
1673 (default_breakpoint_kind_from_pc): Remove declaration.
1674 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
1675 (process_target::breakpoint_kind_from_pc): ... this.
1676 (process_target::breakpoint_kind_from_current_state): Define.
1678 Update the derived classes and callers below.
1680 * mem-break.cc (bp_size): Update.
1681 (bp_opcode): Update.
1682 * linux-low.cc (linux_target_ops): Update.
1683 (linux_wait_1): Update.
1684 (linux_breakpoint_kind_from_pc): Turn into ...
1685 (linux_process_target::breakpoint_kind_from_pc): ... this.
1686 (linux_sw_breakpoint_from_kind): Turn into ...
1687 (linux_process_target::sw_breakpoint_from_kind): ... this.
1688 (linux_breakpoint_kind_from_current_state): Turn into ...
1689 (linux_process_target::breakpoint_kind_from_current_state): ... this.
1690 * linux-low.h (class linux_process_target): Update.
1691 * lynx-low.cc (lynx_target_ops): Update.
1692 (lynx_process_target::sw_breakpoint_from_kind): Define.
1693 * lynx-low.h (class lynx_process_target): Update.
1694 * nto-low.cc (nto_target_ops): Update.
1695 (nto_sw_breakpoint_from_kind): Turn into ...
1696 (nto_process_target::sw_breakpoint_from_kind): ... this.
1697 * nto-low.h (class nto_process_target): Update.
1698 * win32-low.cc (win32_target_ops): Update.
1699 (win32_sw_breakpoint_from_kind): Turn into ...
1700 (win32_process_target::sw_breakpoint_from_kind): ... this.
1701 * win32-low.h (class win32_process_target): Update.
1703 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1705 Turn process_stratum_target's multifs_open, multifs_readlink,
1706 multifs_unlink ops into methods of process_target.
1708 * target.h (struct process_stratum_target): Remove the target ops.
1709 (class process_target): Add the target ops. Also add
1711 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
1713 (process_target::supports_multifs): Define.
1714 (process_target::multifs_open): Define.
1715 (process_target::multifs_readlink): Define.
1716 (process_target::multifs_unlink): Define.
1718 Update the derived classes and callers below.
1720 * hostio.cc (handle_setfs): Update.
1721 (handle_open): Update.
1722 (handle_unlink): Update.
1723 (handle_readlink): Update.
1724 * linux-low.cc (linux_target_ops): Update.
1725 (linux_process_target::supports_multifs): Define.
1726 (linux_process_target::multifs_open): Define.
1727 (linux_process_target::multifs_readlink): Define.
1728 (linux_process_target::multifs_unlink): Define.
1729 * linux-low.h (class linux_process_target): Update.
1730 * lynx-low.cc (lynx_target_ops): Update.
1731 * nto-low.cc (nto_target_ops): Update.
1732 * win32-low.cc (win32_target_ops): Update.
1734 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1736 Turn process_stratum_target's pid_to_exec_file op into a method
1739 * target.h (struct process_stratum_target): Remove the target op.
1740 (class process_target): Add the target op. Also add
1741 'supports_pid_to_exec_file'.
1742 * target.cc (process_target::pid_to_exec_file): Define.
1743 (process_target::supports_pid_to_exec_file): Define.
1745 Update the derived classes and callers below.
1747 * server.cc (handle_qxfer_exec_file): Update.
1748 (handle_query): Update.
1749 * linux-low.cc (linux_target_ops): Update.
1750 (linux_process_target::supports_pid_to_exec_file): Define.
1751 (linux_process_target::pid_to_exec_file): Define.
1752 * linux-low.h (class linux_process_target): Update.
1753 * lynx-low.cc (lynx_target_ops): Update.
1754 * nto-low.cc (nto_target_ops): Update.
1755 * win32-low.cc (win32_target_ops): Update.
1757 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1759 Turn process_stratum_target's supports_range_stepping op into a
1760 method of process_target.
1762 * target.h (struct process_stratum_target): Remove the target op.
1763 (class process_target): Add the target op.
1764 (target_supports_range_stepping): Update the macro.
1765 * target.cc (process_target::supports_range_stepping): Define.
1767 Update the derived classes and callers below.
1769 * linux-low.cc (linux_target_ops): Update.
1770 (linux_supports_range_stepping): Turn into ...
1771 (linux_process_target::supports_range_stepping): ... this.
1772 * linux-low.h (class linux_process_target): Update.
1773 * lynx-low.cc (lynx_target_ops): Update.
1774 * nto-low.cc (nto_target_ops): Update.
1775 * win32-low.cc (win32_target_ops): Update.
1777 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1779 Turn process_stratum_target's btrace-related ops (enable_btrace,
1780 disable_btrace, read_btrace, read_btrace_conf) into methods of
1783 * target.h (struct process_stratum_target): Remove the target ops.
1784 (class process_target): Add the target ops.
1785 (target_enable_btrace): Update.
1786 (target_disable_btrace): Update.
1787 (target_read_btrace): Update.
1788 (target_read_btrace_conf): Update.
1789 * target.cc (process_target::enable_btrace): Define.
1790 (process_target::disable_btrace): Define.
1791 (process_target::read_btrace): Define.
1792 (process_target::read_btrace_conf): Define.
1794 Update the derived classes and callers below.
1796 * linux-low.cc (linux_target_ops): Update.
1797 (linux_process_target:enable_btrace): Define as a wrapper around
1798 linux_enable_btrace.
1799 (linux_low_disable_btrace): Turn into ...
1800 (linux_process_target::disable_btrace): ... this.
1801 (linux_low_read_btrace): Turn into ...
1802 (linux_process_target::read_btrace): ... this.
1803 (linux_low_btrace_conf): Turn into ...
1804 (linux_process_target::read_btrace_conf): ... this.
1805 * linux-low.h (class linux_process_target): Update.
1806 * lynx-low.cc (lynx_target_ops): Update.
1807 * nto-low.cc (nto_target_ops): Update.
1808 * win32-low.cc (win32_target_ops): Update.
1810 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1812 Turn process_stratum_target's supports_agent op into a method of
1815 * target.h (struct process_stratum_target): Remove the target op.
1816 (class process_target): Add the target op.
1817 (target_supports_agent): Update the macro.
1818 * target.cc (process_target::supports_agent): Define.
1820 Update the derived classes and callers below.
1822 * linux-low.cc (linux_target_ops): Update.
1823 (linux_supports_agent): Turn into ...
1824 (linux_process_target::supports_agent): ... this.
1825 * linux-low.h (class linux_process_target): Update.
1826 * lynx-low.cc (lynx_target_ops): Update.
1827 * nto-low.cc (nto_target_ops): Update.
1828 * win32-low.cc (win32_target_ops): Update.
1830 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1832 Turn process_stratum_target's qxfer_libraries_svr4 op into a
1833 method of process_target.
1835 * target.h (struct process_stratum_target): Remove the target op.
1836 (class process_target): Add the target op. Also add
1837 'supports_qxfer_libraries_svr4'.
1838 * target.cc (process_target::qxfer_libraries_svr4): Define.
1839 (process_target::supports_qxfer_libraries_svr4): Define.
1841 Update the derived classes and callers below.
1843 * server.cc (handle_qxfer_libraries_svr4): Update.
1844 (handle_query): Update.
1845 * linux-low.cc (linux_target_ops): Update.
1846 (linux_process_target::supports_qxfer_libraries_svr4): Define.
1847 (linux_qxfer_libraries_svr4): Turn into ...
1848 (linux_process_target::qxfer_libraries_svr4): ... this.
1849 * linux-low.h (class linux_process_target): Update.
1850 * lynx-low.cc (lynx_target_ops): Update.
1851 * nto-low.cc (nto_target_ops): Update.
1852 * win32-low.cc (win32_target_ops): Update.
1854 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1856 Turn process_stratum_target's supports_disable_randomization op
1857 into a method of process_target.
1859 * target.h (struct process_stratum_target): Remove the target op.
1860 (class process_target): Add the target op.
1861 (target_supports_disable_randomization): Update the macro.
1862 * target.cc (process_target::supports_disable_randomization): Define.
1864 Update the derived classes and callers below.
1866 * linux-low.cc (linux_target_ops): Update.
1867 (linux_supports_disable_randomization): Turn into ...
1868 (linux_process_target::supports_disable_randomization): ... this.
1869 * linux-low.h (class linux_process_target): Update.
1870 * lynx-low.cc (lynx_target_ops): Update.
1871 * nto-low.cc (nto_target_ops): Update.
1872 * win32-low.cc (win32_target_ops): Update.
1874 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1876 Turn process_stratum_target's emit_ops op into a method of
1879 * target.h (struct process_stratum_target): Remove the target op.
1880 (class process_target): Add the target op.
1881 (target_emit_ops): Update the macro.
1882 * target.cc (process_target::emit_ops): Define.
1884 Update the derived classes and callers below.
1886 * linux-low.cc (linux_target_ops): Update.
1887 (linux_emit_ops): Turn into ...
1888 (linux_process_target::emit_ops): ... this.
1889 * linux-low.h (class linux_process_target): Update.
1890 * lynx-low.cc (lynx_target_ops): Update.
1891 * nto-low.cc (nto_target_ops): Update.
1892 * win32-low.cc (win32_target_ops): Update.
1894 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1896 Turn process_stratum_target's install_fast_tracepoint_jump_pad
1897 and get_min_fast_tracepoint_insn_len ops into methods of
1900 * target.h (struct process_stratum_target): Remove the target ops.
1901 (class process_target): Add the target ops. Also add
1902 'supports_fast_tracepoints'.
1903 (target_supports_fast_tracepoints): Update the macro.
1904 (target_get_min_fast_tracepoint_insn_len): Update the macro.
1905 (install_fast_tracepoint_jump_pad): Update and rename the macro
1907 (target_install_fast_tracepoint_jump_pad): ... this.
1908 * target.cc (process_target::supports_fast_tracepoints): Define.
1909 (process_target::install_fast_tracepoint_jump_pad): Define.
1910 (process_target::get_min_fast_tracepoint_insn_len): Define.
1912 Update the derived classes and callers below.
1914 * tracepoint.cc (install_fast_tracepoint): Update.
1915 * linux-low.cc (linux_target_ops): Update.
1916 (linux_process_target::supports_fast_tracepoints): Define.
1917 (linux_install_fast_tracepoint_jump_pad): Turn into ...
1918 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
1919 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
1920 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
1921 * linux-low.h (class linux_process_target): Update.
1922 * lynx-low.cc (lynx_target_ops): Update.
1923 * nto-low.cc (nto_target_ops): Update.
1924 * win32-low.cc (win32_target_ops): Update.
1926 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1928 Turn process_stratum_target's stabilize_threads op into a
1929 method of process_target.
1931 * target.h (struct process_stratum_target): Remove the target op.
1932 (class process_target): Add the target op.
1933 (target_stabilize_threads): Update the macro.
1934 * target.cc (process_target::stabilize_threads): Define.
1936 Update the derived classes and callers below.
1938 * server.cc (handle_status): Update.
1939 * tracepoint.cc (cmd_qtdp): Update.
1940 (cmd_qtstart): Update.
1941 * linux-low.cc (linux_target_ops): Update.
1942 (linux_stabilize_threads): Turn into ...
1943 (linux_process_target::stabilize_threads): ... this.
1944 (linux_wait_1): Update.
1945 * linux-low.h (class linux_process_target): Update.
1946 * lynx-low.cc (lynx_target_ops): Update.
1947 * nto-low.cc (nto_target_ops): Update.
1948 * win32-low.cc (win32_target_ops): Update.
1950 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1952 Turn process_stratum_target's pause_all and unpause_all ops
1953 into methods of process_target.
1955 * target.h (struct process_stratum_target): Remove the target ops.
1956 (class process_target): Add the target ops.
1957 (pause_all): Update the macro and rename to...
1958 (target_pause_all): ... this.
1959 (unpause_all): Update the macro and rename to...
1960 (target_unpause_all): ... this.
1961 * target.cc (process_target::pause_all): Define.
1962 (process_target::unpause_all): Define.
1964 Update the derived classes and callers below.
1966 * server.cc (handle_status): Update.
1967 * tracepoint.cc (clear_installed_tracepoints): Update.
1969 (cmd_qtstart): Update.
1970 (stop_tracing): Update.
1971 (cmd_qtstatus): Update.
1972 (upload_fast_traceframes): Update.
1973 (run_inferior_command): Update.
1974 * linux-low.cc (linux_target_ops): Update.
1975 (linux_pause_all): Turn into ...
1976 (linux_process_target::pause_all): ... this.
1977 (linux_unpause_all): Turn into ...
1978 (linux_process_target::unpause_all): ... this.
1979 (linux_process_target::prepare_to_access_memory): Update.
1980 (linux_process_target::done_accessing_memory): Update.
1981 * linux-low.h (class linux_process_target): Update.
1982 * lynx-low.cc (lynx_target_ops): Update.
1983 * nto-low.cc (nto_target_ops): Update.
1984 * win32-low.cc (win32_target_ops): Update.
1986 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1988 Turn process_stratum_target's get_tib_address op into a method of
1991 * target.h (struct process_stratum_target): Remove the target op.
1992 (class process_target): Add the target op. Also add
1993 'supports_get_tib_address'.
1994 * target.cc (process_target::get_tib_address): Define.
1995 (process_target::supports_get_tib_address): Define.
1997 Update the derived classes and callers below.
1999 * server.cc (handle_query): Update.
2000 * linux-low.cc (win32_target_ops): Update.
2001 * lynx-low.cc (lynx_target_ops): Update.
2002 * nto-low.cc (nto_target_ops): Update.
2003 * win32-low.cc (win32_target_ops): Update.
2004 (win32_process_target::supports_get_tib_address): Define.
2005 (win32_get_tib_address): Turn into ...
2006 (win32_process_target::get_tib_address): ... this.
2007 * win32-low.h (class win32_process_target): Update.
2009 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2011 Turn process_stratum_target's thread_stopped op into a method of
2014 * target.h (struct process_stratum_target): Remove the target op.
2015 (class process_target): Add the target op. Also add
2016 'supports_thread_stopped'.
2017 (target_thread_stopped): Update the macro.
2018 * target.cc (process_target::thread_stopped): Define.
2019 (process_target::supports_thread_stopped): Define.
2020 (prepare_to_access_memory): Update.
2022 Update the derived classes and callers below.
2024 * server.cc (queue_stop_reply_callback): Update.
2025 * linux-low.cc (linux_target_ops): Update.
2026 (linux_process_target::supports_thread_stopped): Define.
2027 (linux_thread_stopped): Turn into ...
2028 (linux_process_target::thread_stopped): ... this.
2029 * linux-low.h (class linux_process_target): Update.
2030 * lynx-low.cc (lynx_target_ops): Update.
2031 * nto-low.cc (nto_target_ops): Update.
2032 * win32-low.cc (win32_target_ops): Update.
2034 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2036 Turn process_stratum_target's read_pc and write_pc ops into
2037 methods of process_target.
2039 * target.h (struct process_stratum_target): Remove the target ops.
2040 (class process_target): Add the target ops.
2041 * target.cc (process_target::read_pc): Define.
2042 (process_target::write_pc): Define.
2044 Update the derived classes and callers below.
2046 * regcache.cc (regcache_read_pc): Update.
2047 (regcache_write_pc): Update.
2048 * linux-low.cc (linux_target_ops): Update.
2049 (linux_read_pc): Turn into ...
2050 (linux_process_target::read_pc): ... this.
2051 (linux_write_pc): Turn into ...
2052 (linux_process_target::write_pc): ... this.
2053 * linux-low.h (class linux_process_target): Update.
2054 * lynx-low.cc (lynx_target_ops): Update.
2055 * nto-low.cc (nto_target_ops): Update.
2056 * win32-low.cc (win32_target_ops): Update.
2058 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2060 Turn process_stratum_target's supports_tracepoints op into a
2061 method of process_target.
2063 * target.h (struct process_stratum_target): Remove the target op.
2064 (class process_target): Add the target op.
2065 (target_supports_tracepoints): Update the macro.
2066 * target.cc (process_target::supports_tracepoints): Define.
2068 Update the derived classes and callers below.
2070 * linux-low.cc (linux_target_ops): Update.
2071 (linux_supports_tracepoints): Turn into ...
2072 (linux_process_target::supports_tracepoints): ... this.
2073 * linux-low.h (class linux_process_target): Update.
2074 * lynx-low.cc (lynx_target_ops): Update.
2075 * nto-low.cc (nto_target_ops): Update.
2076 * win32-low.cc (win32_target_ops): Update.
2078 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2080 Turn process_stratum_target's process_qsupported op into a method
2083 * target.h (struct process_stratum_target): Remove the target op.
2084 (class process_target): Add the target op.
2085 (target_process_qsupported): Update the macro.
2086 * target.cc (process_target::process_qsupported): Define.
2088 Update the derived classes and callers below.
2090 * linux-low.cc (linux_target_ops): Update.
2091 (linux_process_qsupported): Turn into ...
2092 (linux_process_target::process_qsupported): ... this.
2093 * linux-low.h (class linux_process_target): Update.
2094 * lynx-low.cc (lynx_target_ops): Update.
2095 * nto-low.cc (nto_target_ops): Update.
2096 * win32-low.cc (win32_target_ops): Update.
2098 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2100 Turn process_stratum_target's read_loadmap op into a method of
2103 * target.h (struct process_stratum_target): Remove the target op.
2104 (class process_target): Add the target op. Also add
2105 'supports_read_loadmap'.
2106 * target.cc (process_target::read_loadmap): Define.
2107 (process_target::supports_read_loadmap): Define.
2109 Update the derived classes and callers below.
2111 * server.cc (handle_qxfer_fdpic): Update.
2112 (handle_query): Update.
2113 * linux-low.cc (linux_target_ops): Update.
2114 (linux_process_target::supports_read_loadmap): Define.
2115 (linux_read_loadmap): Turn into ...
2116 (linux_process_target::read_loadmap): ... this.
2117 * linux-low.h (class linux_process_target): Update.
2118 * lynx-low.cc (lynx_target_ops): Update.
2119 * nto-low.cc (nto_target_ops): Update.
2120 * win32-low.cc (win32_target_ops): Update.
2122 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2124 Turn process_stratum_target's core_of_thread op into a method of
2127 * target.h (struct process_stratum_target): Remove the target op.
2128 (class process_target): Add the target op.
2129 (target_core_of_thread): Update the macro.
2130 * target.cc (process_target::core_of_thread): Define.
2132 Update the derived classes and callers below.
2134 * linux-low.cc (linux_target_ops): Update.
2135 (linux_process_target::core_of_thread): Define.
2136 * linux-low.h (class linux_process_target): Update.
2137 * lynx-low.cc (lynx_target_ops): Update.
2138 * nto-low.cc (nto_target_ops): Update.
2139 * win32-low.cc (win32_target_ops): Update.
2141 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2143 Turn process_stratum_target's handle_monitor_command op into a
2144 method of process_target.
2146 * target.h (struct process_stratum_target): Remove the target op.
2147 (class process_target): Add the target op.
2148 (target_handle_monitor_command): Update the macro.
2149 * target.cc (process_target::handle_monitor_command): Define.
2151 Update the derived classes and callers below.
2153 * server.cc (handle_query): Update.
2154 * linux-low.cc (linux_target_ops): Update.
2155 (linux_process_target::handle_monitor_command): Define.
2156 * linux-low.h (class linux_process_target): Update.
2157 * lynx-low.cc (lynx_target_ops): Update.
2158 * nto-low.cc (nto_target_ops): Update.
2159 * win32-low.cc (win32_target_ops): Update.
2161 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2163 Turn process_stratum_target's handle_new_gdb_connection op into a
2164 method of process_target.
2166 * target.h (struct process_stratum_target): Remove the target op.
2167 (class process_target): Add the target op.
2168 (target_handle_new_gdb_connection): Update the macro.
2169 * target.cc (process_target::handle_new_gdb_connection): Define.
2171 Update the derived classes and callers below.
2173 * linux-low.cc (linux_target_ops): Update.
2174 (linux_handle_new_gdb_connection): Turn into ...
2175 (linux_process_target::handle_new_gdb_connection): ... this.
2176 * linux-low.h (class linux_process_target): Update.
2177 * lynx-low.cc (lynx_target_ops): Update.
2178 * nto-low.cc (nto_target_ops): Update.
2179 * win32-low.cc (win32_target_ops): Update.
2181 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2183 Turn process_stratum_target's supports_fork_events,
2184 supports_vfork_events, and supports_exec_events ops into methods
2187 * target.h (struct process_stratum_target): Remove the target ops.
2188 (class process_target): Add the target ops.
2189 (target_supports_fork_events): Update the macro.
2190 (target_supports_vfork_events): Update the macro.
2191 (target_supports_exec_events): Update the macro.
2192 * target.cc (process_target::supports_fork_events): Define.
2193 (process_target::supports_vfork_events): Define.
2194 (process_target::supports_exec_events): Define.
2196 Update the derived classes and callers below.
2198 * linux-low.cc (linux_target_ops): Update.
2199 (linux_supports_fork_events): Turn into ...
2200 (linux_process_target::supports_fork_events): ... this.
2201 (linux_supports_vfork_events): Turn into ...
2202 (linux_process_target::supports_vfork_events): ... this.
2203 (linux_supports_exec_events): Turn into ...
2204 (linux_process_target::supports_exec_events): ... this.
2205 * linux-low.h (class linux_process_target): Update.
2206 * lynx-low.cc (lynx_target_ops): Update.
2207 * nto-low.cc (nto_target_ops): Update.
2208 * win32-low.cc (win32_target_ops): Update.
2210 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2212 Turn process_stratum_target's supports_multi_process op into a
2213 method of process_target.
2215 * target.h (struct process_stratum_target): Remove the target op.
2216 (class process_target): Add the target op.
2217 * target.cc (process_target::supports_multi_process): Define.
2218 (target_supports_multi_process): Update.
2220 Update the derived classes and callers below.
2222 * linux-low.cc (linux_target_ops): Update.
2223 (linux_supports_multi_process): Turn into ...
2224 (linux_process_target::supports_multi_process): ... this.
2225 * linux-low.h (class linux_process_target): Update.
2226 * lynx-low.cc (lynx_target_ops): Update.
2227 * nto-low.cc (nto_target_ops): Update.
2228 * win32-low.cc (win32_target_ops): Update.
2230 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2232 Turn process_stratum_target's supports_non_stop, async, and
2233 start_non_stop ops into methods of process_target.
2235 * target.h (struct process_stratum_target): Remove the target ops.
2236 (class process_target): Add the target ops.
2237 (target_supports_non_stop): Update the macro.
2238 (target_async): Update the macro.
2239 (start_non_stop): Remove declaration.
2240 * target.cc (process_target::supports_non_stop): Define.
2241 (process_target::async): Define.
2242 (process_target::start_non_stop): Define.
2243 (start_non_stop): Remove.
2245 Update the derived classes and callers below.
2247 * server.cc (handle_qxfer_siginfo): Update.
2248 (handle_query): Update.
2249 * linux-low.cc (linux_target_ops): Update.
2250 (linux_supports_non_stop): Turn into ...
2251 (linux_process_target::supports_non_stop): ... this.
2252 (linux_async): Turn into ...
2253 (linux_process_target::async): ... this.
2254 (linux_start_non_stop): Turn into ...
2255 (linux_process_target::start_non_stop): ... this.
2256 * linux-low.h (class linux_process_target): Update.
2257 * lynx-low.cc (lynx_target_ops): Update.
2258 * nto-low.cc (nto_target_ops): Update.
2259 (nto_supports_non_stop): Remove; rely on the default behavior
2261 * win32-low.cc (win32_target_ops): Update.
2263 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2265 Turn process_stratum_target's qxfer_siginfo op into a method of
2268 * target.h (struct process_stratum_target): Remove the target op.
2269 (class process_target): Add the target op. Also add
2270 'supports_qxfer_siginfo'.
2271 * target.cc (process_target::qxfer_siginfo): Define.
2272 (process_target::supports_qxfer_siginfo): Define.
2274 Update the derived classes and callers below.
2276 * server.cc (handle_qxfer_siginfo): Update.
2277 (handle_query): Update.
2278 * linux-low.cc (linux_target_ops): Update.
2279 (linux_process_target::supports_qxfer_siginfo): Define.
2280 (linux_xfer_siginfo): Turn into ...
2281 (linux_process_target::qxfer_siginfo): ... this.
2282 * linux-low.h (class linux_process_target): Update.
2283 * lynx-low.cc (lynx_target_ops): Update.
2284 * nto-low.cc (nto_target_ops): Update.
2285 * win32-low.cc (win32_target_ops): Update.
2287 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2289 Turn process_stratum_target's qxfer_osdata op into a method of
2292 * target.h (struct process_stratum_target): Remove the target op.
2293 (class process_target): Add the target op. Also add
2294 'supports_qxfer_osdata'.
2295 * target.cc (process_target::qxfer_osdata): Define.
2296 (process_target::supports_qxfer_osdata): Define.
2298 Update the derived classes and callers below.
2300 * server.cc (handle_qxfer_osdata): Update.
2301 (handle_query): Update.
2302 * linux-low.cc (linux_target_ops): Update.
2303 (linux_process_target::supports_qxfer_osdata): Define.
2304 (linux_qxfer_osdata): Turn into ...
2305 (linux_process_target::qxfer_osdata): ... this.
2306 * linux-low.h (class linux_process_target): Update.
2307 * lynx-low.cc (lynx_target_ops): Update.
2308 * nto-low.cc (nto_target_ops): Update.
2309 * win32-low.cc (win32_target_ops): Update.
2311 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2313 Turn process_stratum_target's hostio_last_error op into a
2314 method of process_target.
2316 * target.h (struct process_stratum_target): Remove the target op.
2317 (class process_target): Add the target op.
2318 * target.cc: Add "hostio.h" to includes.
2319 (process_target::hostio_last_error): Define.
2321 Update the derived classes and callers below.
2323 * hostio.cc (hostio_error): Update.
2324 * linux-low.cc: Remove "hostio.h" from includes.
2325 (linux_target_ops): Update.
2326 * lynx-low.cc (lynx_target_ops): Update.
2327 * nto-low.cc (nto_target_ops): Update.
2328 * win32-low.h (class win32_process_target): Update.
2329 * win32-low.cc (win32_target_ops): Update.
2330 (wince_hostio_last_error): Turn into ...
2331 (win32_process_target::hostio_last_error): ... this.
2333 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2335 Turn process_stratum_target's get_tls_address op into a method of
2338 * target.h (struct process_stratum_target): Remove the target op.
2339 (class process_target): Add the target op. Also add
2340 'supports_get_tls_address'.
2341 * target.cc (process_target::get_tls_address): Define.
2342 (process_target::supports_get_tls_address): Define.
2344 Update the derived classes and callers below.
2346 * server.cc (handle_query): Update.
2347 * linux-low.cc (linux_target_ops): Update.
2348 (linux_process_target::supports_get_tls_address): Define.
2349 (linux_process_target::get_tls_address): Define.
2350 * linux-low.h (class linux_process_target): Update.
2351 * lynx-low.cc (lynx_target_ops): Update.
2352 * nto-low.cc (nto_target_ops): Update.
2353 * win32-low.cc (win32_target_ops): Update.
2355 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2357 Turn process_stratum_target's read_offsets op into a method of
2360 * target.h (struct process_stratum_target): Remove the target op.
2361 (class process_target): Add the target op. Also add
2362 'supports_read_offsets'.
2363 * target.cc (process_target::read_offsets): Define.
2364 (process_target::supports_read_offsets): Define.
2366 Update the derived classes and callers below.
2368 * server.cc (handle_query): Update.
2369 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2370 (linux_target_ops): Update.
2371 (linux_process_target::supports_read_offsets): Define.
2372 (linux_read_offsets): Turn into ...
2373 (linux_process_target::read_offsets): ... this.
2374 * linux-low.h (class linux_process_target): Update.
2375 * lynx-low.cc (lynx_target_ops): Update.
2376 * nto-low.cc (nto_target_ops): Update.
2377 * win32-low.cc (win32_target_ops): Update.
2379 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2381 Turn process_stratum_target's stopped_by_watchpoint and
2382 stopped_data_address ops into methods of process_target.
2384 * target.h (struct process_stratum_target): Remove the target ops.
2385 (class process_target): Add the target ops.
2386 * target.cc (process_target::stopped_by_watchpoint): Define.
2387 (process_target::stopped_data_address): Define.
2389 Update the derived classes and callers below.
2391 * remote-utils.cc (prepare_resume_reply): Update.
2392 * linux-low.cc (linux_target_ops): Update.
2393 (linux_stopped_by_watchpoint): Turn into ...
2394 (linux_process_target::stopped_by_watchpoint): ... this.
2395 (linux_stopped_data_address): Turn into ...
2396 (linux_process_target::stopped_data_address): ... this.
2397 * linux-low.h (class linux_process_target): Update.
2398 * lynx-low.cc (lynx_target_ops): Update.
2399 * nto-low.cc (nto_target_ops): Update.
2400 (nto_stopped_by_watchpoint): Turn into ...
2401 (nto_process_target::stopped_by_watchpoint): ... this.
2402 (nto_stopped_data_address): Turn into ...
2403 (nto_process_target::stopped_data_address): ... this.
2404 * nto-low.h (class nto_process_target): Update.
2405 * win32-low.cc (win32_target_ops): Update.
2406 (win32_stopped_by_watchpoint): Turn into ...
2407 (win32_process_target::stopped_by_watchpoint): ... this.
2408 (win32_stopped_data_address): Turn into ...
2409 (win32_process_target::stopped_data_address): ... this.
2410 * win32-low.h (class win32_process_target): Update.
2412 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2414 Turn process_stratum_target's supports_hardware_single_step op into
2415 a method of process_target.
2417 * target.h (struct process_stratum_target): Remove the target op.
2418 (class process_target): Add the target op.
2419 (target_supports_hardware_single_step): Update the macro.
2420 (target_can_do_hardware_single_step): Remove declaration.
2421 * target.cc (process_target::supports_hardware_single_step): Define.
2422 (target_can_do_hardware_single_step): Remove.
2424 Update the derived classes and callers below.
2426 * linux-low.h (class linux_process_target): Update.
2427 * linux-low.cc (linux_target_ops): Update.
2428 (linux_supports_hardware_single_step): Turn into ...
2429 (linux_process_target::supports_hardware_single_step): ... this.
2430 * lynx-low.h (class lynx_process_target): Update.
2431 * lynx-low.cc (lynx_target_ops): Update.
2432 (lynx_process_target::supports_hardware_single_step): Define.
2433 * nto-low.h (class nto_process_target): Update.
2434 * nto-low.cc (nto_target_ops): Update.
2435 (nto_process_target::supports_hardware_single_step): Define.
2436 * win32-low.h (class win32_process_target): Update.
2437 * win32-low.cc (win32_target_ops): Update.
2438 (win32_process_target::supports_hardware_single_step): Define.
2440 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2442 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
2443 ops into methods of process_target.
2445 * target.h (struct process_stratum_target): Remove the target ops.
2446 (class process_target): Add the target ops.
2447 (target_stopped_by_hw_breakpoint): Update the macro.
2448 (target_supports_stopped_by_hw_breakpoint): Update the macro.
2449 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
2450 (process_target::supports_stopped_by_hw_breakpoint): Define.
2452 Update the derived classes and callers below.
2454 * linux-low.cc (linux_target_ops): Update.
2455 (linux_stopped_by_hw_breakpoint): Turn into ...
2456 (linux_process_target::stopped_by_hw_breakpoint): ... this.
2457 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
2458 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
2459 * linux-low.h (class linux_process_target): Update.
2460 * lynx-low.cc (lynx_target_ops): Update.
2461 * nto-low.cc (nto_target_ops): Update.
2462 * win32-low.cc (win32_target_ops): Update.
2464 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2466 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
2467 ops into methods of process_target.
2469 * target.h (struct process_stratum_target): Remove the target ops.
2470 (class process_target): Add the target ops.
2471 (target_stopped_by_sw_breakpoint): Update the macro.
2472 (target_supports_stopped_by_sw_breakpoint): Update the macro.
2473 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
2474 (process_target::supports_stopped_by_sw_breakpoint): Define.
2476 Update the derived classes and callers below.
2478 * linux-low.cc (linux_target_ops): Update.
2479 (linux_stopped_by_sw_breakpoint): Turn into ...
2480 (linux_process_target::stopped_by_sw_breakpoint): ... this.
2481 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
2482 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
2483 * linux-low.h (class linux_process_target): Update.
2484 * lynx-low.cc (lynx_target_ops): Update.
2485 * nto-low.cc (nto_target_ops): Update.
2486 * win32-low.cc (win32_target_ops): Update.
2488 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2490 Turn process_stratum_target's insert_point and remove_point ops
2491 into methods of process_target.
2493 * target.h (struct process_stratum_target): Remove the target ops.
2494 (class process_target): Add the target ops.
2495 * target.cc (process_target::insert_point): Define.
2496 (process_target::remove_point): Define.
2498 Update the derived classes and callers below.
2500 * mem-break.cc (set_raw_breakpoint_at): Update.
2501 (delete_raw_breakpoint): Update.
2502 (uninsert_raw_breakpoint): Update.
2503 (reinsert_raw_breakpoint): Update.
2504 * linux-low.cc (linux_target_ops): Update.
2505 (linux_insert_point): Turn into ...
2506 (linux_process_target::insert_point): ... this.
2507 (linux_remove_point): Turn into ...
2508 (linux_process_target::remove_point): ... this.
2509 * linux-low.h (class linux_process_target): Update.
2510 * lynx-low.cc (lynx_target_ops): Update.
2511 * nto-low.cc (nto_target_ops): Update.
2512 (nto_insert_point): Turn into ...
2513 (nto_process_target::insert_point): ... this.
2514 (nto_remove_point): Turn into ...
2515 (nto_process_target::remove_point): ... this.
2516 * nto-low.h (class nto_process_target): Update.
2517 * win32-low.cc (win32_target_ops): Update.
2518 (win32_insert_point): Turn into ...
2519 (win32_process_target::insert_point): ... this.
2520 (win32_remove_point): Turn into ...
2521 (win32_process_target::remove_point): ... this.
2522 * win32-low.h (class win32_process_target): Update.
2524 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2526 Turn process_stratum_target's supports_z_point_type op into a
2527 method of process_target.
2529 * target.h (struct process_stratum_target): Remove the target op.
2530 (class process_target): Add the target op.
2531 * target.cc (process_target::supports_z_point_type): Define.
2533 Update the derived classes and callers below.
2535 * mem-break.cc (z_type_supported): Update.
2536 * linux-low.cc (linux_target_ops): Update.
2537 (linux_supports_z_point_type): Turn into ...
2538 (linux_process_target::supports_z_point_type): ... this.
2539 * linux-low.h (class linux_process_target): Update.
2540 * lynx-low.cc (lynx_target_ops): Update.
2541 * nto-low.cc (nto_target_ops): Update.
2542 (nto_supports_z_point_type): Turn into ...
2543 (nto_process_target::supports_z_point_type): ... this.
2544 * nto-low.h (class nto_process_target): Update.
2545 * win32-low.cc (win32_target_ops): Update.
2546 (win32_supports_z_point_type): Turn into ...
2547 (win32_process_target::supports_z_point_type): ... this.
2548 * win32-low.h (class win32_process_target): Update.
2550 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2552 Turn process_stratum_target's read_auxv op into a method of
2555 * target.h (class process_stratum_target): Remove the target op.
2556 (struct process_target): Add the target op. Also add
2557 'supports_read_auxv'.
2558 * target.cc (process_target::read_auxv): Define.
2559 (process_target::supports_read_auxv): Define.
2561 Update the derived classes and callers below.
2563 * server.cc (handle_qxfer_auxv): Update.
2564 (handle_query): Update.
2565 * linux-low.cc (linux_target_ops): Update.
2566 (linux_process_target::supports_read_auxv): Define.
2567 (linux_read_auxv): Turn into ...
2568 (linux_process_target::read_auxv): ... this.
2569 * linux-low.h (class linux_process_target): Update.
2570 * lynx-low.cc (lynx_target_ops): Update.
2571 * nto-low.cc (nto_target_ops): Update.
2572 (nto_process_target::supports_read_auxv): Define.
2573 (nto_read_auxv): Turn into ...
2574 (nto_process_target::read_auxv): ... this.
2575 * nto-low.h (class nto_process_target): Update.
2576 * win32-low.cc (win32_target_ops): Update.
2578 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2580 Turn process_stratum_target's request_interrupt op into a method of
2583 * target.h (struct process_stratum_target): Remove the target op.
2584 (class process_target): Add the target op.
2586 Update the derived classes and callers below.
2588 * remote-utils.cc (putpkt_binary_1): Update.
2589 (input_interrupt): Update.
2591 * server.cc (handle_v_requests): Update.
2592 * linux-low.cc (linux_target_ops): Update.
2593 (linux_request_interrupt): Turn into ...
2594 (linux_process_target::request_interrupt): ... this.
2595 * linux-low.h (class linux_process_target): Update.
2596 * lynx-low.cc (lynx_target_ops): Update.
2597 (lynx_request_interrupt): Turn into ...
2598 (lynx_process_target::request_interrupt): ... this.
2599 * lynx-low.h (class lynx_process_target): Update.
2600 * nto-low.cc (nto_target_ops): Update.
2601 (nto_request_interrupt): Turn into ...
2602 (nto_process_target::request_interrupt): ... this.
2603 * nto-low.h (class nto_process_target): Update.
2604 * win32-low.cc (win32_target_ops): Update.
2605 (win32_request_interrupt): Turn into ...
2606 (win32_process_target::request_interrupt): ... this.
2607 * win32-low.h (class win32_process_target): Update.
2609 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2611 Turn process_stratum_target's look_up_symbols op into a method of
2614 * target.h (struct process_stratum_target): Remove the target op.
2615 (class process_target): Add the target op.
2616 * target.cc (process_target::look_up_symbols): Define.
2618 Update the derived classes and callers below.
2620 * server.cc (handle_query): Update.
2621 * linux-low.cc (linux_target_ops): Update.
2622 (linux_look_up_symbols): Turn into ...
2623 (linux_process_target::look_up_symbols): ... this.
2624 * linux-low.h (class linux_process_target): Update.
2625 * lynx-low.cc (lynx_target_ops): Update.
2626 * nto-low.cc (nto_target_ops): Update.
2627 * win32-low.cc (win32_target_ops): Update.
2629 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2631 Turn process_stratum_target's read_memory and write_memory
2632 ops into methods of process_target.
2634 * target.h (struct process_stratum_target): Remove the target ops.
2635 (class process_target): Add the target ops.
2637 Update the derived classes and callers below.
2639 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
2640 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
2641 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
2642 (arm_get_syscall_trapinfo): Update.
2643 * linux-cris-low.cc (cris_breakpoint_at): Update.
2644 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
2645 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
2646 * linux-mips-low.cc (mips_breakpoint_at): Update.
2647 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
2648 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
2649 * linux-sh-low.cc (sh_breakpoint_at): Update.
2650 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
2651 (sparc_store_gregset_from_stack): Update.
2652 (sparc_breakpoint_at): Update.
2653 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
2654 * linux-tile-low.cc (tile_breakpoint_at): Update.
2655 * linux-x86-low.cc (x86_breakpoint_at): Update.
2656 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
2657 * mem-brea.cc (insert_memory_breakpoint): Update.
2658 (validate_inserted_breakpoint): Update.
2659 * target.cc (read_inferior_memory): Update.
2660 (target_write_memory): Update.
2661 * linux-low.cc (linux_target_ops): Update.
2662 (linux_read_memory): Make a wrapper around the read_memory target
2664 (linux_process_target::read_memory): Rename from linux_read_memory.
2665 (linux_write_memory): Turn into ...
2666 (linux_process_target::write_memory): ... this.
2667 * linux-low.h (class linux_process_target): Update.
2668 * lynx-low.cc (lynx_target_ops): Update.
2669 (lynx_read_memory): Turn into ...
2670 (lynx_process_target::read_memory): ... this.
2671 (lynx_write_memory): Turn into ...
2672 (lynx_process_target::write_memory): ... this.
2673 * lynx-low.h (class lynx_process_target): Update.
2674 * nto-low.cc (nto_target_ops): Update.
2675 (nto_read_memory): Turn into ...
2676 (nto_process_target::read_memory): ... this.
2677 (nto_write_memory): Turn into ...
2678 (nto_process_target::write_memory): ... this.
2679 * nto-low.h (class nto_process_target): Update.
2680 * win32-low.cc (win32_target_ops): Update.
2681 (win32_read_inferior_memory): Turn into ...
2682 (win32_process_target::read_memory): ... this.
2683 (win32_write_inferior_memory): Turn into ...
2684 (win32_process_target::write_memory): ... this.
2685 * win32-low.h (class win32_process_target): Update.
2687 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2689 Turn process_stratum_target's prepare_to_access_memory and
2690 done_accessing_memory ops into methods of process_target.
2692 * target.h (struct process_stratum_target): Remove the target ops.
2693 (class process_target): Add the target ops.
2694 * target.cc (process_target::prepare_to_access_memory): Define.
2695 (process_target::done_accessing_memory): Define.
2696 (prepare_to_access_memory): Update.
2697 (done_accessing_memory): Update.
2699 Update the derived classes and callers below.
2701 * linux-low.cc (linux_target_ops): Update.
2702 (linux_prepare_to_access_memory): Turn into ...
2703 (linux_process_target::prepare_to_access_memory): ... this.
2704 (linux_done_accessing_memory): Turn into ...
2705 (linux_process_target::done_accessing_memory): ... this.
2706 * linux-low.h (class linux_process_target): Update.
2707 * lynx-low.cc (lynx_target_ops): Update.
2708 * nto-low.cc (nto_target_ops): Update.
2709 * win32-low.cc (win32_target_ops): Update.
2711 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2713 Turn process_stratum_target's fetch_registers and store_registers
2714 ops into methods of process_target.
2716 * target.h (struct process_stratum_target): Remove the target ops.
2717 (class process_target): Add the target ops.
2718 (fetch_inferior_registers): Update the macro.
2719 (store_inferior_registers): Update the macro.
2721 Update the derived classes and callers below.
2723 * linux-low.cc (linux_target_ops): Update.
2724 (linux_fetch_registers): Turn into ...
2725 (linux_process_target::fetch_registers): ... this.
2726 (linux_store_registers): Turn into ...
2727 (linux_process_target::store_registers): ... this.
2728 * linux-low.h (class linux_process_target): Update.
2729 * lynx-low.cc (lynx_target_ops): Update.
2730 (lynx_fetch_registers): Turn into ...
2731 (lynx_process_target::fetch_registers): ... this.
2732 (lynx_store_registers): Turn into ...
2733 (lynx_process_target::store_registers): ... this.
2734 * lynx-low.h (class lynx_process_target): Update.
2735 * nto-low.cc (nto_target_ops): Update.
2736 (nto_fetch_registers): Turn into ...
2737 (nto_process_target::fetch_registers): ... this.
2738 (nto_store_registers): Turn into ...
2739 (nto_process_target::store_registers): ... this.
2740 * nto-low.h (class nto_process_target): Update.
2741 * win32-low.cc (win32_target_ops): Update.
2742 (win32_fetch_inferior_registers): Turn into ...
2743 (win32_process_target::fetch_registers): ... this.
2744 (win32_store_inferior_registers): Turn into ...
2745 (win32_process_target::store_registers): ... this.
2746 * win32-low.h (class win32_process_target): Update.
2748 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2750 Turn process_stratum_target's wait op into a method of
2753 * target.h (struct process_stratum_target): Remove the target op.
2754 (class process_target): Add the target op.
2756 Update the derived classes and callers below.
2758 * target.cc (target_wait): Update.
2759 * linux-low.cc (linux_target_ops): Update.
2760 (linux_wait): Turn into ...
2761 (linux_process_target::wait): ... this.
2762 * linux-low.h (class linux_process_target): Update.
2763 * lynx-low.cc (lynx_target_ops): Update.
2764 (lynx_wait): Turn into ...
2765 (lynx_process_target::wait): ... this.
2766 * lynx-low.h (class lynx_process_target): Update.
2767 * nto-low.cc (nto_target_ops): Update.
2768 (nto_wait): Turn into ...
2769 (nto_process_target::wait): ... this.
2770 * nto-low.h (class nto_process_target): Update.
2771 * win32-low.cc (win32_target_ops): Update.
2772 (win32_wait): Turn into ...
2773 (win32_process_target::wait): ... this.
2774 (do_initial_child_stuff): Update.
2775 * win32-low.h (class win32_process_target): Update.
2777 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2779 Turn process_stratum_target's resume op into a method of
2782 * target.h (struct process_stratum_target): Remove the target op.
2783 (class process_target): Add the target op.
2785 Update the derived classes and callers below.
2787 * server.cc (resume): Update.
2788 * target.cc (target_stop_and_wait): Update.
2789 (target_continue_no_signal): Update.
2790 (target_continue): Update.
2791 * linux-low.cc (linux_target_ops): Update.
2792 (linux_resume): Turn into ...
2793 (linux_process_target::resume): ... this.
2794 * linux-low.h (class linux_process_target): Update.
2795 * lynx-low.cc (lynx_target_ops): Update.
2796 (lynx_resume): Turn into ...
2797 (lynx_process_target::resume): ... this.
2798 * lynx-low.h (class lynx_process_target): Update.
2799 * nto-low.cc (nto_target_ops): Update.
2800 (nto_resume): Turn into ...
2801 (nto_process_target::resume): ... this.
2802 * nto-low.h (class nto_process_target): Update.
2803 * win32-low.cc (win32_target_ops): Update.
2804 (win32_resume): Turn into ...
2805 (win32_process_target::resume): ... this.
2806 (win32_process_target::detach): Update.
2807 (do_initial_child_stuff): Update.
2808 * win32-low.h (class win32_process_target): Update.
2810 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2812 Turn process_stratum_target's thread_alive op into a method of
2815 * target.h (struct process_stratum_target): Remove the target op.
2816 (class process_target): Add the target op.
2817 (mythread_alive): Update the macro.
2819 Update the derived classes and callers below.
2821 * linux-low.cc (linux_target_ops): Update.
2822 (linux_thread_alive): Turn into ...
2823 (linux_process_target::thread_alive): ... this.
2824 (wait_for_sigstop): Update.
2825 * linux-low.h (class linux_process_target): Update.
2826 * lynx-low.cc (lynx_target_ops): Update.
2827 (lynx_thread_alive): Turn into ...
2828 (lynx_process_target::thread_alive): ... this.
2829 * lynx-low.h (class lynx_process_target): Update.
2830 * nto-low.cc (nto_target_ops): Update.
2831 (nto_thread_alive): Turn into ...
2832 (nto_process_target::thread_alive): ... this.
2833 * nto-low.h (class nto_process_target): Update.
2834 * win32-low.cc (win32_target_ops): Update.
2835 (win32_thread_alive): Turn into ...
2836 (win32_process_target::thread_alive): ... this.
2837 * win32-low.h (class win32_process_target): Update.
2839 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2841 Turn process_stratum_target's join op into a method of
2844 * target.h (struct process_stratum_target): Remove the target op.
2845 (class process_target): Add the target op.
2846 (join_inferior): Update the macro.
2848 Update the derived classes and callers below.
2850 * linux-low.cc (linux_target_ops): Update.
2851 (linux_join): Turn into ...
2852 (linux_process_target::join): ... this.
2853 * linux-low.h (class linux_process_target): Update.
2854 * lynx-low.cc (lynx_target_ops): Update.
2855 (lynx_join): Turn into ...
2856 (lynx_process_target::join): ... this.
2857 * lynx-low.h (class lynx_process_target): Update.
2858 * nto-low.cc (nto_target_ops): Update.
2859 (nto_process_target::join): Define.
2860 * nto-low.h (class nto_process_target): Update.
2861 * win32-low.cc (win32_target_ops): Update.
2862 (win32_join): Turn into ...
2863 (win32_process_target::join): ... this.
2864 * win32-low.h (class win32_process_target): Update.
2866 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2868 Turn process_stratum_target's mourn op into a method of
2871 * target.h (struct process_stratum_target): Remove the target op.
2872 (class process_target): Add the target op.
2874 Update the derived classes and callers below.
2876 * target.cc (target_mourn_inferior): Update.
2877 * linux-low.cc (linux_target_ops): Update.
2878 (linux_mourn): Turn into ...
2879 (linux_process_target::mourn): ... this.
2880 (handle_extended_wait): Update.
2881 (linux_process_target::kill): Update.
2882 (linux_process_target::detach): Update.
2883 * linux-low.h (class linux_process_target): Update.
2884 * lynx-low.cc (lynx_target_ops): Update.
2885 (lynx_mourn): Turn into ...
2886 (lynx_process_target::mourn): ... this.
2887 * lynx-low.h (class lynx_process_target): Update.
2888 * nto-low.cc (nto_target_ops): Update.
2889 (nto_mourn): Turn into ...
2890 (nto_process_target::mourn): ... this.
2891 * nto-low.h (class nto_process_target): Update.
2892 * win32-low.cc (win32_target_ops): Update.
2893 (win32_mourn): Turn into ...
2894 (win32_process_target::mourn): ... this.
2895 * win32-low.h (class win32_process_target): Update.
2897 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2899 Turn process_stratum_target's detach op into a method of
2902 * target.h (struct process_stratum_target): Remove the target op.
2903 (class process_target): Add the target op.
2904 (detach_inferior): Update the macro.
2906 Update the derived classes and callers below.
2908 * linux-low.cc (linux_target_ops): Update.
2909 (linux_detach): Turn into ...
2910 (linux_process_target::detach): ... this.
2911 * linux-low.h (class linux_process_target): Update.
2912 * lynx-low.cc (lynx_target_ops): Update.
2913 (lynx_detach): Turn into ...
2914 (lynx_process_target::detach): ... this.
2915 * lynx-low.h (class lynx_process_target): Update.
2916 * nto-low.cc (nto_target_ops): Update.
2917 (nto_detach): Turn into ...
2918 (nto_process_target::detach): ... this.
2919 * nto-low.h (class nto_process_target): Update.
2920 * win32-low.cc (win32_target_ops): Update.
2921 (win32_detach): Turn into ...
2922 (win32_process_target::detach): ... this.
2923 * win32-low.h (class win32_process_target): Update.
2925 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2927 Turn process_stratum_target's kill op into a method of
2930 * target.h (struct process_stratum_target): Remove the target op.
2931 (class process_target): Add the target op.
2933 Update the derived classes and callers below.
2935 * target.cc (kill_inferior): Update.
2936 * linux-low.cc (linux_target_ops): Update.
2937 (linux_kill): Turn into ...
2938 (linux_process_target::kill): ... this.
2939 * linux-low.h (class linux_process_target): Update.
2940 * lynx-low.cc (lynx_target_ops): Update.
2941 (lynx_kill): Turn into ...
2942 (lynx_process_target::kill): ... this.
2943 * lynx-low.h (class lynx_process_target): Update.
2944 * nto-low.cc (nto_target_ops): Update.
2945 (nto_kill): Turn into ...
2946 (nto_process_target::kill): ... this.
2947 * nto-low.h (class nto_process_target): Update.
2948 * win32-low.cc (win32_target_ops): Update.
2949 (win32_kill): Turn into ...
2950 (win32_process_target::kill): ... this.
2951 * win32-low.h (class win32_process_target): Update.
2953 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2955 Turn process_stratum_target's attach op into a method of
2958 * target.h (struct process_stratum_target): Remove the target op.
2959 (class process_target): Add the target op.
2960 (myattach): Update the macro.
2962 Update the derived classes and callers below.
2964 * linux-low.cc (linux_target_ops): Update.
2965 (linux_attach): Turn into ...
2966 (linux_process_target::attach): ... this.
2967 * linux-low.h (class linux_process_target): Update.
2968 * lynx-low.cc (lynx_target_ops): Update.
2969 (lynx_attach): Turn into ...
2970 (lynx_process_target::attach): ... this.
2971 * lynx-low.h (class lynx_process_target): Update.
2972 * nto-low.cc (nto_target_ops): Update.
2973 (nto_attach): Turn into ...
2974 (nto_process_target::attach): ... this.
2975 * nto-low.h (class nto_process_target): Update.
2976 * win32-low.cc (win32_target_ops): Update.
2977 (win32_attach): Turn into ...
2978 (win32_process_target::attach): ... this.
2979 * win32-low.h (class win32_process_target): Update.
2981 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2983 Turn process_stratum_target's post_create_inferior op into a method
2986 * target.h (struct process_stratum_target): Remove the target op.
2987 (class process_target): Add the target op.
2988 (target_post_create_inferior): Update the macro.
2989 * target.cc (process_target::post_create_inferior): Define.
2991 Update the derived classes and callers below.
2993 * linux-low.cc (linux_target_ops): Update.
2994 (linux_post_create_inferior): Turn into ...
2995 (linux_process_target::post_create_inferior): ... this.
2996 * linux-low.h (class linux_process_target): Update.
2997 * lynx-low.cc (lynx_target_ops): Update.
2998 * nto-low.cc (nto_target_ops): Update.
2999 * win32-low.cc (win32_target_ops): Update.
3001 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3003 Turn process_stratum_target's create_inferior op into a method of
3006 * target.h (struct process_stratum_target): Remove the target op.
3007 (class process_target): Add the target op.
3008 (create_inferior): Rename the macro to ...
3009 (target_create_inferior): ... this.
3011 Update the derived classes and callers below.
3013 * server.cc (handle_v_run): Update.
3014 (captured_main): Update.
3015 (process_serial_event): Update.
3016 * linux-low.cc (linux_target_ops): Update.
3017 (linux_create_inferior): Turn into ...
3018 (linux_process_target::create_inferior): ... this.
3019 * linux-low.h (class linux_process_target): Update.
3020 * lynx-low.cc (lynx_target_ops): Update.
3021 (lynx_create_inferior): Turn into ...
3022 (lynx_process_target::create_inferior): ... this.
3023 * lynx-low.h (class lynx_process_target): Update.
3024 * nto-low.cc (nto_target_ops): Update.
3025 (nto_create_inferior): Turn into ...
3026 (nto_process_target::create_inferior): ... this.
3027 * nto-low.h (class nto_process_target): Update.
3028 * win32-low.cc (win32_target_ops): Update.
3029 (win32_create_inferior): Turn into ...
3030 (win32_process_target::create_inferior): ... this.
3031 * win32-low.h (class win32_process_target): Update.
3033 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3035 * target.h (class process_target): New class definition.
3036 (struct process_stratum_target) <pt>: New field with type
3038 * linux-low.h (class linux_process_target): Define as a derived
3039 class of 'process_target'.
3040 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3042 * lynx-low.h (class lynx_process_target): Define as a derived
3043 class of 'process_target'.
3044 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3046 * nto-low.h (class nto_process_target): Define as a derived
3047 class of 'process_target'.
3048 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3050 * win32-low.h (class win32_process_target): Define as a derived
3051 class of 'process_target'.
3052 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3055 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3057 * configure: Regenerate.
3059 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3060 Andrew Burgess <andrew.burgess@embecosm.com>
3062 * linux-riscv-low.cc: New file.
3063 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3064 and nat/riscv-linux-tdesc.c.
3065 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3066 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3069 2020-02-14 Tom Tromey <tom@tromey.com>
3071 * acinclude.m4: Don't include acx_configure_dir.m4.
3072 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3073 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3074 (all, install-only, uninstall, clean-info, clean)
3075 (maintainer-clean): Don't recurse.
3076 (subdir_do, all-lib): Remove.
3077 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3079 (generated_files): Update.
3080 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3081 * configure: Rebuild.
3082 * configure.ac: Don't configure gnulib or libiberty.
3085 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3087 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3088 preparing the command line for CreateProcess.
3089 (win32_create_inferior): Reflect the program name in debugging
3090 output that shows the process and its command line.
3092 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3094 * Makefile.in: Rename source files from .c to .cc.
3095 * %.c: Rename to %.cc.
3096 * configure.ac: Rename server.c to server.cc.
3097 * configure: Re-generate.
3099 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3101 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3103 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3105 * win32-low.c (win32_create_inferior): Set signal_pid.
3107 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3108 Pedro Alves <palves@redhat.com>
3110 Skip building gdbserver in a cross-configuration.
3111 * configure.srv: Set $gdbserver_host depending on whether $target
3112 is $host. Use $gdbserver_host instead of $host.
3114 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3116 * configure: Re-generate.
3118 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3120 * configure: Re-generate.
3122 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3124 * acinclude.m4: Update warning.m4 path.
3126 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3128 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3129 (handle_exception): Set siginfo_er.
3130 (win32_xfer_siginfo): New function.
3132 2020-02-07 Tom Tromey <tom@tromey.com>
3133 Pedro Alves <palves@redhat.com>
3135 * README: Update build documentation.
3136 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3138 * configure.ac: Update paths.
3139 * configure: Rebuild.
3140 * acinclude.m4: Update paths.
3141 * Makefile.in: Update include paths.
3142 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3143 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3144 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3145 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3146 (%-generated.c): Update paths.
3147 * Move entire directory from ../gdb/gdbserver.
3149 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3151 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3153 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3155 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3156 assignment instead of srv_linux_obj.
3158 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3160 * server.c (handle_qxfer_libraries): Write segment-address with
3163 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
3165 * Makefile.in (install-strip): New target.
3166 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3167 * aclocal.m4: Regenerate.
3168 * configure: Regenerate.
3169 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3171 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3173 * Makefile.in (SFILES): Adjust paths to point to real files.
3174 (OBS): Move waitstatus.o to target/waitstatus.o.
3175 (TAGS): Transform paths appropriately.
3177 (nat/%.o): ... this pattern rule.
3179 (target/%.o): ... this pattern rule.
3180 * configure.srv: Adjust paths throughout to include nat/ prefix
3181 with the revant files.
3182 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3183 * configure: Regenerate.
3185 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3187 * Makefile.in (TAGS): Remove config files from the recipe.
3189 2020-01-14 Tom Tromey <tom@tromey.com>
3191 * configure: Rebuild.
3192 * configure.ac: Remove any checks that were added to common.m4.
3193 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3196 2020-01-14 Tom Tromey <tom@tromey.com>
3198 * server.h: Include config.h.
3199 * gdbreplay.c: Include config.h.
3200 * configure: Rebuild.
3201 * configure.ac: Don't source common.host.
3202 * acinclude.m4: Update path.
3203 * Makefile.in (INCSUPPORT): New variable.
3204 (INCLUDE_CFLAGS): Add INCSUPPORT.
3205 (SFILES): Update paths.
3206 (version-generated.c): Update path to create-version.sh.
3207 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3209 2020-01-14 Tom Tromey <tom@tromey.com>
3211 * configure.ac (LIBS): Use WIN32APILIBS.
3212 (USE_WIN32API): Don't define.
3213 * configure: Rebuild.
3215 2020-01-14 Tom Tromey <tom@tromey.com>
3217 * configure: Rebuild.
3219 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3221 * Makefile.in (%-generated.c): Remove rule for files from
3224 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3226 * configure: Re-generate.
3228 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3230 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3232 * tracepoint.c (stop_tracing, flush_trace_buffer,
3233 about_to_request_buffer_space, get_trace_state_variable_value,
3234 set_trace_state_variable_value, gdb_collect): Add declaration.
3236 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3238 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3239 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3240 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3241 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3242 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3245 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3247 * inferiors.c: Include gdbsupport/common-inferior.h.
3249 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3251 * hostio-errno.c: Include hostio.h.
3253 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3255 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3258 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3260 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3261 * linux-arm-tdesc.h: Include arch/arm.h.
3263 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3265 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3267 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3269 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3270 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3272 2020-01-10 Pedro Alves <palves@redhat.com>
3274 * fork-child.c (post_fork_inferior): Pass target down to
3276 * inferiors.c (switch_to_thread): Add process_stratum_target
3278 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3279 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3280 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3281 * remote-utils.c (prepare_resume_reply): Pass the target to
3283 * target.c (the_target): Now a process_stratum_target.
3284 (done_accessing_memory): Pass the target to switch_to_thread.
3285 (set_target_ops): Ajust to use process_stratum_target.
3286 * target.h (struct target_ops): Rename to ...
3287 (struct process_stratum_target): ... this.
3288 (the_target, set_target_ops): Adjust.
3289 (prepare_to_access_memory): Adjust comment.
3290 * win32-low.c (child_xfer_memory): Adjust to use
3291 process_stratum_target.
3292 (win32_target_ops): Now a process_stratum_target.
3294 2020-01-06 Eli Zaretskii <eliz@gnu.org>
3295 Pedro Alves <palves@redhat.com>
3297 * win32-low.c (get_child_debug_event): Extract the fatal exception
3298 from the exit status and convert to the equivalent Posix signal
3300 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3301 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3303 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
3305 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3307 2020-01-01 Joel Brobecker <brobecker@adacore.com>
3309 * server.c (gdbserver_version): Change copyright year to 2020.
3310 * gdbreplay.c (gdbreplay_version): Likewise.
3312 2019-12-19 Christian Biesinger <cbiesinger@google.com>
3314 * configure: Regenerate.
3315 * configure.ac: Quote variable arguments of test.
3317 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3319 * Makefile.in: Fix build with GNU Make 3.81
3321 2019-12-16 Tom Tromey <tromey@adacore.com>
3323 * server.c (get_exec_file): Constify result.
3325 2019-12-10 Christian Biesinger <cbiesinger@google.com>
3327 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3328 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3329 * config.in: Regenerate.
3330 * configure: Regenerate.
3331 * configure.ac: Don't check for strerror.
3332 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3333 Call safe_strerror instead of strerror.
3334 * server.h (strerror): Remove this now-unnecessary declaration.
3335 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3337 (gdb_agent_helper_thread): Likewise.
3338 * utils.c (perror_with_name): Likewise.
3340 2019-11-26 Tom Tromey <tom@tromey.com>
3342 * configure, config.in: Rebuild.
3344 2019-11-26 Tom Tromey <tom@tromey.com>
3346 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3347 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3349 * configure, config.in: Rebuild.
3351 2019-11-26 Tom Tromey <tom@tromey.com>
3353 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3354 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3355 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3356 * acinclude.m4: Include ax_pthread.m4.
3357 * config.in, configure: Rebuild.
3359 2019-11-26 Christian Biesinger <cbiesinger@google.com>
3361 * debug.c (debug_set_output): Call safe_strerror instead of
3363 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3364 (linux_kill_one_lwp): Likewise.
3365 (linux_detach_one_lwp): Likewise.
3366 (linux_wait_for_event_filtered): Likewise.
3367 (store_register): Likewise.
3368 * lynx-low.c (lynx_attach): Likewise.
3369 * mem-break.c (insert_memory_breakpoint): Likewise.
3370 (remove_memory_breakpoint): Likewise.
3371 (delete_fast_tracepoint_jump): Likewise.
3372 (set_fast_tracepoint_jump): Likewise.
3373 (uninsert_fast_tracepoint_jumps_at): Likewise.
3374 (reinsert_fast_tracepoint_jumps_at): Likewise.
3375 * nto-low.c (nto_xfer_memory): Likewise.
3376 (nto_resume): Likewise.
3378 2019-11-20 Luis Machado <luis.machado@linaro.org>
3380 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
3381 instead of register count.
3382 * tdesc.c (tdesc_contains_feature): New function.
3383 * tdesc.h (tdesc_contains_feature): New prototype.
3385 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3387 * Makefile.in: Add safe-strerror.c.
3388 * configure: Regenerate.
3389 * configure.ac: Don't source common.host.
3391 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3393 * config.in: Regenerate.
3394 * configure: Regenerate.
3396 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
3398 * ax.c (ax_printf): Handle size_t_arg.
3400 2019-11-06 Christian Biesinger <cbiesinger@google.com>
3402 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
3403 * mi/mi-main.c (output_cores): Likewise.
3404 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
3405 (linux_xfer_osdata_modules): Likewise.
3406 * remote.c (register_remote_support_xml): Likewise.
3407 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
3408 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
3410 2019-11-01 Christian Biesinger <cbiesinger@google.com>
3412 * configure: Regenerate.
3413 * configure.ac: Remove check for strerror_r.
3415 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3417 * config.in: Regenerate.
3418 * configure: Regenerate.
3419 * configure.ac: Also check for strerror_r.
3421 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3423 * ax.h (debug_agent): Remove duplicate declaration.
3425 2019-10-26 Tom de Vries <tdevries@suse.de>
3427 * linux-aarch64-low.c: Fix typos in comments.
3428 * linux-arm-low.c: Same.
3429 * linux-low.c: Same.
3430 * linux-ppc-low.c: Same.
3431 * proc-service.c: Same.
3434 * tracepoint.c: Same.
3435 * win32-low.c: Same.
3437 2019-10-25 Tom Tromey <tromey@adacore.com>
3439 * utils.c (xstrdup): Remove.
3441 2019-10-23 Tom Tromey <tom@tromey.com>
3443 * configure, config.in: Rebuild.
3445 2019-10-23 Tom Tromey <tom@tromey.com>
3447 * configure: Rebuild.
3448 * acinclude.m4: Use m4_include, not sinclude.
3450 2019-10-17 Tom Tromey <tromey@adacore.com>
3452 * configure: Rebuild.
3453 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3454 in AC_CONFIG_FILES invocation.
3455 * Makefile.in (stamp-h, Makefile): Use new-style config.status
3458 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3460 * server.c: Include xml-builtin.h.
3461 (get_xml_features): Don't declare xml_builtins here.
3463 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3465 * Makefile.in: Remove references to vec-ipa.o.
3467 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3469 * Makefile.in: Remove references to vec.c.
3471 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3473 * server.c (server_waiting): Change to bool.
3474 (extended_protocol): Likewise.
3475 (response_needed): Likewise.
3476 (exit_requested): Likewise.
3477 (run_once): Likewise.
3478 (report_no_resumed): Likewise.
3479 (non_stop): Likewise.
3480 (disable_packet_vCont): Likewise.
3481 (disable_packet_Tthread): Likewise.
3482 (disable_packet_qC): Likewise.
3483 (disable_packet_qfThreadInfo): Likewise.
3484 (handle_general_set): Update.
3485 (handle_detach): Update.
3486 (handle_monitor_command): Update.
3487 (handle_query): Update.
3488 (captured_main): Update.
3489 (process_serial_event): Update.
3490 * server.h (server_waiting): Change to bool.
3491 (disable_packet_vCont): Likewise.
3492 (disable_packet_Tthread): Likewise.
3493 (disable_packet_qC): Likewise.
3494 (disable_packet_qfThreadInfo): Likewise.
3495 (run_once): Likewise.
3496 (non_stop): Likewise.
3497 * target.c (target_stop_and_wait): Update.
3499 2019-10-02 Tom Tromey <tromey@adacore.com>
3501 * Makefile.in (SFILES): Add common-inferior.c.
3502 (OBS): Add common-inferior.o.
3503 * server.c (startup_with_shell): Don't define.
3505 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3507 * linux-low.c (linux_low_read_btrace): Update for change to
3510 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3512 * debug.c (debug_threads): Remove comment in favor of the header.
3513 * debug.h (using_threads): Add declaration.
3514 (debug_threads): Add comment.
3515 * linux-aarch64-low.c: Include debug.h and remove declaration of
3517 * nto-low.c: Likewise.
3518 * remote-utils.c: Likewise.
3519 * thread-db.c: Likewise.
3521 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3523 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
3524 and powerpc-cell64l-ipa.o.
3525 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
3526 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
3527 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
3530 * spu-low.c: Remove file.
3532 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
3533 (parse_spufs_run): Remove.
3534 (ppc_get_pc): Remove Cell/B.E. support.
3535 (ppc_set_pc): Likewise.
3536 (ppc_breakpoint_at): Likewise.
3537 (ppc_arch_setup): Likewise.
3538 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
3539 tdesc_powerpc_cell32l.
3540 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
3541 or init_registers_powerpc_cell32l.
3542 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
3543 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
3544 or init_registers_powerpc_cell32l.
3545 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
3546 (init_registers_powerpc_cell32l): Remove prototype.
3547 (init_registers_powerpc_cell64l): Likewise.
3549 * target.h (struct target_ops): Remove qxfer_spu member.
3550 * server.c (handle_qxfer_spu): Remove.
3551 (qxfer_packets): Remove entry for "spu".
3552 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
3553 * linux-low.c (SPUFS_MAGIC): Remove.
3554 (spu_enumerate_spu_ids): Remove.
3555 (linux_qxfer_spu): Remove.
3556 (linux_target_ops): Remove qxfer_spu member.
3557 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
3558 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
3559 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
3561 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3563 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
3564 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
3565 * config.in: Regenerate.
3566 * configure: Regenerate.
3568 2019-08-15 Tom Tromey <tromey@adacore.com>
3570 * target.c (target_write_memory): Use gdb::byte_vector.
3572 2019-08-15 Tom Tromey <tromey@adacore.com>
3574 * tracepoint.c (write_inferior_data_pointer)
3575 (write_inferior_integer, write_inferior_int8)
3576 (write_inferior_uinteger, m_tracepoint_action_download)
3577 (r_tracepoint_action_download, x_tracepoint_action_download)
3578 (l_tracepoint_action_download, clear_inferior_trace_buffer)
3579 (download_agent_expr, download_tracepoint_1)
3580 (download_trace_state_variables, upload_fast_traceframes): Update.
3581 * server.c (gdb_write_memory): Update.
3582 * remote-utils.c (relocate_instruction): Update.
3583 * proc-service.c (ps_pdwrite): Update.
3584 * mem-break.c (remove_memory_breakpoint)
3585 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
3586 (uninsert_fast_tracepoint_jumps_at)
3587 (reinsert_fast_tracepoint_jumps_at): Update.
3588 * linux-x86-low.c (append_insns)
3589 (i386_install_fast_tracepoint_jump_pad)
3590 (amd64_write_goto_address, i386_write_goto_address): Update.
3591 * linux-s390-low.c (append_insns, s390_write_goto_address):
3593 * linux-ppc-low.c (ppc_relocate_instruction)
3594 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
3595 (ppc_write_goto_address): Update.
3596 * linux-aarch64-low.c (append_insns): Update.
3597 * target.h (struct target_ops): Update.
3598 (write_inferior_memory): Don't declare.
3599 * target.c (target_write_memory): Rename from
3600 write_inferior_memory. Remove old target_write_memory.
3602 2019-08-15 Tom Tromey <tromey@adacore.com>
3604 * target.c (write_inferior_memory): Use std::vector.
3606 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3609 * configure.ac: Drop enable-libmcheck support.
3610 * configure, config.in: Rebuild.
3611 * acinclude.m4: Don't include it.
3613 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3615 * configure.srv: Remove Arm xml files.
3617 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3619 * configure.srv: Add new files. Remove xml generated files.
3620 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
3622 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
3623 * linux-aarch32-tdesc.c: New file.
3624 * linux-aarch32-tdesc.h: New file.
3625 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
3626 * linux-arm-low.c (init_registers_arm, tdesc_arm)
3627 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
3628 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
3629 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
3630 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
3631 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
3632 (arm_read_description): Call arm_linux_read_description.
3633 (initialize_low_arch): Don't init registers.
3634 * linux-arm-tdesc.c: New file.
3635 * linux-arm-tdesc.h: New file.
3637 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3639 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
3640 Move counter inside for.
3641 (arm_read_description): Check ptrace earlier.
3642 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
3644 2019-07-09 Tom Tromey <tom@tromey.com>
3646 * configure: Rebuild.
3647 * configure.ac: Change common to gdbsupport.
3648 * acinclude.m4: Change common to gdbsupport.
3649 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
3650 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
3651 common to gdbsupport.
3652 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
3653 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
3654 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
3655 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
3656 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
3657 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
3658 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
3659 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
3660 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
3661 common to gdbsupport.
3663 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3665 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
3667 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
3669 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3671 * configure.srv: Remove legacy xml.
3672 * linux-aarch64-low.c (initialize_low_arch): Remove
3673 initialize_low_tdesc call.
3674 * linux-aarch64-tdesc-selftest.c: Remove file.
3675 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
3676 * linux-x86-low.c (initialize_low_arch): Remove
3677 initialize_low_tdesc call.
3678 * linux-x86-tdesc-selftest.c: Remove file.
3679 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
3681 2019-06-20 Tom de Vries <tdevries@suse.de>
3683 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
3684 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
3686 2019-06-19 Tom de Vries <tdevries@suse.de>
3688 * debug.h (debug_write): Change return type to ssize_t.
3689 * debug.c (debug_write): Same.
3691 2019-06-14 Tom Tromey <tom@tromey.com>
3693 * configure.ac: Use new path to gnulib.
3694 * configure: Rebuild.
3695 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
3698 2019-06-11 Tom Tromey <tom@tromey.com>
3700 * Makefile.in (SFILES): Add alloc.c.
3702 (IPA_OBJS): Add alloc-ipa.o.
3703 (alloc-ipa.o): New target.
3704 (%.o: ../%.c): New pattern rule.
3706 2019-06-10 Tom Tromey <tromey@adacore.com>
3708 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
3709 end warning with a newline.
3710 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
3712 * thread-db.c (attach_thread): Don't end warning with a newline.
3713 (thread_db_notice_clone): Likewise.
3714 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
3716 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
3717 end warning with a newline.
3719 2019-06-04 Pedro Alves <palves@redhat.com>
3721 * server.c (captured_main): Use make_unique_xstrdup.
3723 2019-06-02 Tom Tromey <tom@tromey.com>
3725 * gdbreplay.c (fromhex): Remove.
3726 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
3728 2019-05-29 Tom Tromey <tromey@adacore.com>
3730 * configure: Rebuild.
3732 2019-05-06 Kevin Buettner <kevinb@redhat.com>
3734 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
3735 sign extension code on 32-bit builds.
3737 2019-05-03 Eli Zaretskii <eliz@gnu.org>
3740 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
3742 2019-04-19 Tom Tromey <tom@tromey.com>
3744 * server.c (struct vstop_notif): Derive from notif_event.
3746 (queue_stop_reply): Update.
3747 (remove_all_on_match_ptid): Change type. Rewrite.
3748 (discard_queued_stop_replies): Rewrite.
3749 (in_queued_stop_replies_ptid): Change type.
3750 (in_queued_stop_replies): Rewrite.
3751 (notif_stop): Update.
3752 (queue_stop_reply_callback): Update.
3753 (captured_main): Don't call initialize_notif.
3754 (push_stop_notification): Update.
3755 * notif.c (notif_write_event, handle_notif_ack)
3756 (notif_event_enque, notif_push): Update.
3757 (notif_event_xfree, initialize_notif): Remove.
3758 * notif.h (struct notif_event): Include <list>, not
3760 (struct notif_server) <queue>: Now a std::list.
3761 (notif_event_p): Remove typedef.
3762 (initialize_notif): Don't declare.
3763 (struct notif_event): Add virtual destructor.
3765 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3767 * ax.c (ax_vdebug): Call debug_printf.
3768 * debug.c (debug_write): New function.
3769 * debug.h (debug_write): New declaration.
3770 * linux-low.c (sigchld_handler): Call debug_write.
3772 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3774 * debug.c (debug_set_output): New function.
3775 (debug_vprintf): Send output to debug_file.
3776 (debug_flush): Likewise.
3777 * debug.h (debug_set_output): New declaration.
3778 * server.c (handle_monitor_command): Add debug-file option.
3779 (captured_main): Likewise.
3781 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3783 * debug.c (remote_debug): Add definition.
3784 * debug.h (remote_debug): Add declaration.
3785 * hostio.c (remote_debug): Remove declaration.
3786 * remote-utils.c (struct ui_file): Likewise.
3787 (remote_debug): Likewise.
3788 * remote-utils.h (remote_debug): Likewise,
3789 * server.c (remote_debug): Remove definition.
3791 2019-04-10 Kevin Buettner <kevinb@redhat.com>
3793 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
3794 when using a 64-bit gdbserver.
3796 2019-04-09 Tom Tromey <tromey@adacore.com>
3798 * linux-low.c (select_event_lwp): Use find_thread_in_random.
3800 2019-04-08 Tom Tromey <tom@tromey.com>
3802 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
3804 (linux_resume_one_lwp): Likewise.
3806 2019-04-08 Tom Tromey <tom@tromey.com>
3808 * gdbreplay.c: Update.
3809 * linux-low.c: Update.
3812 2019-04-08 Tom Tromey <tom@tromey.com>
3814 * server.c: Use C++ exception handling.
3815 * linux-low.c: Use C++ exception handling.
3816 * gdbreplay.c: Use C++ exception handling.
3818 2019-04-08 Tom Tromey <tom@tromey.com>
3820 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
3821 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
3822 (captured_main, main): Update.
3823 * gdbreplay.c (main): Update.
3825 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3827 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
3828 value in argument pointer, return 1 if the entry is found and 0
3829 otherwise. Move comment.
3830 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
3831 * linux-low.h (linux_get_auxv): Declare.
3832 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
3834 2019-04-05 Tom Tromey <tromey@adacore.com>
3836 * server.c (gdbserver_usage): Use upper-case for metasyntactic
3839 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3841 * linux-low.c (AT_HWCAP2): Add define if not already included.
3843 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3845 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
3846 (aarch64_arch_setup): Call linux_get_hwcap.
3847 * linux-arm-low.c (arm_get_hwcap): Remove function.
3848 (arm_read_description): Call linux_get_hwcap.
3849 * linux-low.c (linux_get_auxv): New function.
3850 (linux_get_hwcap): Likewise.
3851 (linux_get_hwcap2): Likewise.
3852 * linux-low.h (linux_get_hwcap): New declaration.
3853 (linux_get_hwcap2): Likewise.
3854 * linux-ppc-low.c (ppc_get_auxv): Remove function.
3855 (ppc_arch_setup): Call linux_get_hwcap.
3856 * linux-s390-low.c (s390_get_hwcap): Remove function.
3857 (s390_arch_setup): Call linux_get_hwcap.
3859 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3860 Jiong Wang <jiong.wang@arm.com>
3862 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
3863 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
3865 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
3867 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3868 Jiong Wang <jiong.wang@arm.com>
3870 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
3871 (aarch64_get_hwcap): New function.
3872 (aarch64_arch_setup): Read APIA hwcap.
3874 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3875 Jiong Wang <jiong.wang@arm.com>
3877 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
3878 (initialize_low_tracepoint): Likewise.
3879 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
3880 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
3881 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
3882 (aarch64_linux_read_description): Likewise.
3883 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
3885 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3887 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
3888 i386_create_target_description for 'segments' parameter.
3889 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
3890 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3891 * win32-i386-low.c (i386_arch_setup): Likewise.
3893 2019-03-12 Tom Tromey <tromey@adacore.com>
3895 * linux-low.c (iterate_over_lwps): Update.
3897 2019-03-06 Tom Tromey <tom@tromey.com>
3899 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
3900 (captured_main): Use SCOPE_EXIT.
3902 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
3904 * configure.srv: Use '$enable_unittest' instead of '$development'
3905 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
3908 2019-02-27 Tom Tromey <tromey@adacore.com>
3910 * gdbreplay.c (logchar): Handle \r\n.
3912 2019-02-07 Alan Hayward <alan.hayward@arm.com>
3914 * linux-low.c (linux_attach): Add process before lwp.
3915 * server.c (attach_inferior): Check if already attached.
3917 2019-02-07 Tom Tromey <tom@tromey.com>
3919 * x86-tdesc.h: Rename include guard.
3920 * x86-low.h: Add include guard.
3921 * wincecompat.h: Rename include guard.
3922 * win32-low.h: Add include guard.
3923 * utils.h: Rename include guard.
3924 * tracepoint.h: Rename include guard.
3925 * tdesc.h: Rename include guard.
3926 * target.h: Rename include guard.
3927 * server.h: Rename include guard.
3928 * remote-utils.h: Rename include guard.
3929 * regcache.h: Rename include guard.
3930 * nto-low.h: Rename include guard.
3931 * notif.h: Add include guard.
3932 * mem-break.h: Rename include guard.
3933 * lynx-low.h: Add include guard.
3934 * linux-x86-tdesc.h: Add include guard.
3935 * linux-s390-tdesc.h: Add include guard.
3936 * linux-ppc-tdesc-init.h: Add include guard.
3937 * linux-low.h: Add include guard.
3938 * linux-aarch64-tdesc.h: Add include guard.
3939 * linux-aarch32-low.h: Add include guard.
3940 * inferiors.h: Rename include guard.
3941 * i387-fp.h: Rename include guard.
3942 * hostio.h: Rename include guard.
3943 * gdbthread.h: Rename include guard.
3944 * gdb_proc_service.h: Rename include guard.
3945 * event-loop.h: Rename include guard.
3946 * dll.h: Rename include guard.
3947 * debug.h: Rename include guard.
3948 * ax.h: Rename include guard.
3950 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
3953 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
3954 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
3956 2019-01-25 Tom Tromey <tom@tromey.com>
3958 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
3960 2019-01-25 Tom Tromey <tom@tromey.com>
3962 * win32-low.c: Fix common/ includes.
3963 * win32-i386-low.c: Fix common/ includes.
3964 * tracepoint.c: Fix common/ includes.
3965 * thread-db.c: Fix common/ includes.
3966 * target.h: Fix common/ includes.
3967 * symbol.c: Fix common/ includes.
3968 * spu-low.c: Fix common/ includes.
3969 * server.h: Fix common/ includes.
3970 * server.c: Fix common/ includes.
3971 * remote-utils.c: Fix common/ includes.
3972 * regcache.h: Fix common/ includes.
3973 * regcache.c: Fix common/ includes.
3974 * nto-x86-low.c: Fix common/ includes.
3975 * notif.h: Fix common/ includes.
3976 * mem-break.h: Fix common/ includes.
3977 * lynx-low.c: Fix common/ includes.
3978 * lynx-i386-low.c: Fix common/ includes.
3979 * linux-x86-tdesc-selftest.c: Fix common/ includes.
3980 * linux-x86-low.c: Fix common/ includes.
3981 * linux-low.c: Fix common/ includes.
3982 * inferiors.h: Fix common/ includes.
3983 * i387-fp.c: Fix common/ includes.
3984 * hostio.c: Fix common/ includes.
3985 * hostio-errno.c: Fix common/ includes.
3986 * gdbthread.h: Fix common/ includes.
3987 * gdbreplay.c: Fix common/ includes.
3988 * fork-child.c: Fix common/ includes.
3989 * event-loop.c: Fix common/ includes.
3991 (enum gdb_agent_op): Fix common/ includes.
3993 2019-01-21 Tom Tromey <tom@tromey.com>
3995 * tracepoint.c: Fix includes.
3996 * remote-utils.c: Fix includes.
3997 * linux-x86-low.c: Fix includes.
3999 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4001 * gdbreplay.c (gdbreplay_version): Update copyright year in
4003 * server.c (gdbserver_version): Likewise.
4005 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4007 * linux-low.c (add_lwp): Switch ordering.
4009 2018-11-29 Tom Tromey <tom@tromey.com>
4011 * win32-low.c (win32_join): Take pid, not process.
4012 * target.h (struct target_ops) <join>: Change argument type.
4013 (join_inferior): Change argument name.
4014 * spu-low.c (spu_join): Take pid, not process.
4015 * server.c (handle_detach): Preserve pid before destroying
4017 * lynx-low.c (lynx_join): Take pid, not process.
4018 * linux-low.c (linux_join): Take pid, not process.
4020 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4022 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4023 (aarch64_cannot_fetch_register): Likewise.
4024 (struct linux_target_ops): Update references.
4026 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4028 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4030 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4032 * configure.srv (ipa_ppc_linux_regobj): Add
4033 powerpc-isa207-htm-vsx32l-ipa.o and
4034 powerpc-isa207-htm-vsx64l-ipa.o.
4035 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4036 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4037 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4038 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4039 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4040 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4041 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4042 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4043 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4044 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4045 (init_registers_powerpc_isa207_htm_vsx32l)
4046 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4047 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4048 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4049 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4050 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4051 (ppc_store_tm_ctarregset): New functions.
4052 (ppc_regsets): Add entries for HTM regsets.
4053 (ppc_arch_setup): Set htm in features struct when needed. Set
4054 sizes for the HTM regsets.
4055 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4056 (initialize_low_arch): Call
4057 init_registers_powerpc_isa207_htm_vsx32l and
4058 init_registers_powerpc_isa207_htm_vsx64l.
4059 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4060 PPC_TDESC_ISA207_HTM_VSX.
4061 (initialize_low_tracepoint): Call
4062 init_registers_powerpc_isa207_htm_vsx32l and
4063 init_registers_powerpc_isa207_htm_vsx64l.
4065 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4067 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4068 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4069 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4070 (ppc_store_pmuregset): New functions.
4071 (ppc_regsets): Add entries for ebb and pmu regsets.
4072 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4073 pmu regsets are available. Set sizes for these regsets.
4075 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4077 * configure.srv (ipa_ppc_linux_regobj): Add
4078 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4079 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4080 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4081 rs6000/powerpc-isa207-vsx32l.xml, and
4082 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4083 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4084 <PPC_TDESC_ISA207_VSX>: New enum value.
4085 (init_registers_powerpc_isa207_vsx32l): Declare.
4086 (init_registers_powerpc_isa207_vsx64l): Declare.
4087 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4088 (ppc_store_tarregset): New function.
4089 (ppc_regsets): Add entry for the TAR regset.
4090 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4091 size for the TAR regsets.
4092 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4093 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4094 and init_registers_powerpc_isa207_vsx64l.
4095 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4096 (initialize_low_tracepoint): Call
4097 init_registers_powerpc_isa207_vsx32l and
4098 init_registers_powerpc_isa207_vsx64l.
4100 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4101 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4103 * configure.srv (ipa_ppc_linux_regobj): Add
4104 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4105 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4106 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4107 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4108 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4109 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4110 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4111 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4112 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4113 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4114 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4115 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4116 (ppc_hwcap): Add comment.
4117 (ppc_hwcap2): New global.
4118 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4119 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4120 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4121 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4122 when needed. Set sizes for the the DSCR and PPR regsets.
4123 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4124 (initialize_low_arch): Call
4125 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4126 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4127 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4128 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4129 (initialize_low_tracepoint): Call
4130 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4131 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4133 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4135 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4137 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4138 Simon Marchi <simark@simark.ca>
4140 * acinclude.m4: Include "../selftest.m4".
4141 * configure: Regenerate.
4142 * configure.ac: Use "GDB_AC_SELFTEST".
4143 * configure.srv: Use "$enable_unittests" instead of
4144 "$development" when checking whether unit tests have been
4146 * server.c (captured_main): Update message informing that
4147 selftests have been disabled.
4149 2018-10-04 Tom Tromey <tom@tromey.com>
4151 * configure: Rebuild.
4153 2018-10-04 Tom Tromey <tom@tromey.com>
4155 * server.c (handle_status): Rename inner "thread".
4156 (process_serial_event): Declare "res" in 'm' case.
4157 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4158 (iterate_over_lwps): Rename inner "thread".
4159 (linux_qxfer_libraries_svr4): Rename inner "len".
4160 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4162 2018-10-01 Gary Benson <gbenson@redhat.com>
4164 * gdb_proc_service.h: Moved common code to
4165 common/gdb_proc_service.h.
4167 2018-10-01 Gary Benson <gbenson@redhat.com>
4169 * gdb_proc_service.h: Synchronize comments and whitespace with
4170 GDB's version of this file.
4172 2018-09-25 Tom Tromey <tom@tromey.com>
4174 * configure: Rebuild.
4175 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4177 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4179 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4180 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4181 ($(IPA_LIB)): Sort IPA_OBJS.
4183 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4185 * Makefile.in: Remove references to $(ADD_DEPS).
4187 2018-09-16 Tom Tromey <tom@tromey.com>
4189 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4191 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4194 2018-09-05 Tom Tromey <tom@tromey.com>
4196 * configure: Rebuild.
4198 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4201 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4203 2018-08-27 Tom Tromey <tom@tromey.com>
4206 * configure: Rebuild.
4208 2018-08-27 Tom Tromey <tom@tromey.com>
4210 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4211 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4212 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4213 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4214 (s390x_emit_stack_adjust): Add casts to unsigned char.
4216 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4220 * server.h (struct client_state) <disable_randomization>:
4223 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4225 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4227 (mips_supply_ptrace_register): Likewise.
4229 2018-07-22 Tom Tromey <tom@tromey.com>
4231 * configure: Rebuild.
4233 2018-07-22 Tom Tromey <tom@tromey.com>
4235 * win32-low.c (win32_create_inferior): Remove unused variables.
4236 * gdbreplay.c (remote_open): Remove unused variable.
4237 * remote-utils.c (remote_prepare): Remove unused variable.
4238 * x86-tdesc.h (X86_TDESC_H): Define.
4239 (amd64_expedite_regs): Define conditionally.
4240 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4241 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4242 * remote-utils.c (readchar): Remove unused variable.
4244 2018-07-13 Pedro Alves <palves@redhat.com>
4246 * linux-low.c (linux_kill): Change parameter to process_info
4247 pointer instead of pid. Adjust.
4248 * lynx-low.c (lynx_kill): Likewise.
4249 * nto-low.c (nto_kill): Likewise.
4250 * spu-low.c (spu_kill): Likewise.
4251 * win32-low.c (win32_kill): Likewise.
4252 * server.c (handle_v_kill, kill_inferior_callback)
4253 (detach_or_kill_for_exit): Adjust.
4254 * target.c (kill_inferior): Change parameter to process_info
4255 pointer instead of pid. Adjust.
4256 * target.h (struct target_ops) <kill>: Change parameter to
4257 process_info pointer instead of pid. Adjust all implementations
4259 (kill_inferior): Likewise.
4261 2018-07-13 Pedro Alves <palves@redhat.com>
4263 * linux-low.c (linux_detach, linux_join): Change parameter to
4264 process_info pointer instead of pid. Adjust.
4265 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4266 * nto-low.c (nto_detach): Likewise.
4267 * spu-low.c (spu_detach, spu_join): Likewise.
4268 * win32-low.c (win32_detach, win32_join): Likewise.
4269 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4270 * target.h (struct target_ops) <detach, join>: Change parameter to
4271 process_info pointer instead of pid. Adjust all implementations
4273 (detach_inferior, join_inferior): Rename 'pid' parameter to
4276 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4277 Jan Kratochvil <jan.kratochvil@redhat.com>
4278 Paul Fertser <fercerpav@gmail.com>
4279 Tsutomu Seki <sekiriki@gmail.com>
4281 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4282 (OBS): Add 'common/netstuff.o'.
4283 (GDBREPLAY_OBS): Likewise.
4284 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4285 (remote_open): Implement support for IPv6
4287 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4289 (handle_accept_event): Accept connections from IPv6 sources.
4290 (remote_prepare): Handle IPv6-style hostnames; implement
4291 support for IPv6 connections.
4292 (remote_open): Implement support for printing connections from
4295 2018-07-11 Pedro Alves <palves@redhat.com>
4298 * mem-break.c (any_persistent_commands): Add process_info
4299 parameter and use it instead of relying on the current process.
4300 Change return type to bool.
4301 * mem-break.h (any_persistent_commands): Add process_info
4302 parameter and change return type to bool.
4303 * server.c (handle_detach): Remove require_running_or_return call.
4304 Look up the process_info for the process we're about to detach.
4305 If not found, return back error to GDB. Adjust
4306 any_persistent_commands call to pass down a process pointer.
4308 2018-07-11 Pedro Alves <palves@redhat.com>
4310 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4311 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4312 instead of collect_register_by_name.
4313 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4314 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4316 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4317 Pedro Alves <palves@redhat.com>
4319 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4321 2018-07-03 Tom Tromey <tom@tromey.com>
4323 * linux-low.c: Update.
4324 * lynx-low.c: Update.
4325 * mem-break.c: Update.
4326 * nto-low.c: Update.
4327 * remote-utils.c: Update.
4329 * spu-low.c: Update.
4331 * win32-low.c: Update.
4333 2018-07-03 Tom Tromey <tom@tromey.com>
4337 2018-07-03 Tom Tromey <tom@tromey.com>
4339 * linux-low.c: Update.
4341 2018-07-03 Tom Tromey <tom@tromey.com>
4345 2018-07-03 Tom Tromey <tom@tromey.com>
4347 * linux-low.c: Update.
4348 * linux-mips-low.c: Update.
4349 * lynx-low.c: Update.
4350 * nto-low.c: Update.
4351 * remote-utils.c: Update.
4353 * spu-low.c: Update.
4355 * thread-db.c: Update.
4357 2018-07-03 Tom Tromey <tom@tromey.com>
4359 * linux-low.c: Update.
4360 * linux-mips-low.c: Update.
4361 * lynx-low.c: Update.
4362 * mem-break.c: Update.
4363 * nto-low.c: Update.
4364 * remote-utils.c: Update.
4366 * spu-low.c: Update.
4368 * tracepoint.c: Update.
4370 2018-07-03 Tom Tromey <tom@tromey.com>
4372 * linux-low.c: Update.
4373 * linux-ppc-low.c: Update.
4374 * linux-x86-low.c: Update.
4375 * proc-service.c: Update.
4377 * spu-low.c: Update.
4378 * thread-db.c: Update.
4379 * win32-low.c: Update.
4381 2018-07-03 Tom Tromey <tom@tromey.com>
4383 * linux-low.c: Update.
4384 * lynx-low.c: Update.
4385 * nto-low.c: Update.
4386 * remote-utils.c: Update.
4387 * spu-low.c: Update.
4388 * thread-db.c: Update.
4389 * win32-low.c: Update.
4391 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4393 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
4394 parameter in call to 'amd64_create_target_description'.
4396 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4398 * x86-tdesc.h: Remove executable permission flag.
4400 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4402 * configure.ac: Remove AC_PREREQ, add missing quoting.
4403 * configure: Re-generate.
4404 * config.in: Re-generate.
4405 * aclocal.m4: Re-generate.
4407 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
4409 * tracepoint.h (current_traceframe): Remove declaration.
4411 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4413 * linux-aarch64-low.c (is_sve_tdesc): New function.
4414 (aarch64_sve_regs_copy_to_regcache): Likewise.
4415 (aarch64_sve_regs_copy_from_regcache): Likewise.
4416 (aarch64_regs_info): Add SVE checks.
4417 (initialize_low_arch): Initialize SVE.
4419 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4421 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
4423 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4425 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
4426 (initialize_low_tracepoint): Likewise
4427 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
4428 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
4430 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
4432 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
4434 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4436 * server.h (PBUFSIZ): Increase size
4438 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4440 * regcache.c (regcache::raw_compare): New function.
4441 * regcache.h (regcache::raw_compare): New declaration.
4443 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4445 * regcache.c (new_register_cache): Use new.
4446 (free_register_cache): Use delete.
4447 (register_data): Use const.
4448 (supply_register): Move body inside regcache.
4449 (regcache::raw_supply): New override function.
4450 (collect_register): Move body inside regcache.
4451 (regcache::raw_collect): New override function.
4452 (regcache::get_register_status): New override function.
4453 * regcache.h (struct regcache): Inherit from reg_buffer_common.
4455 2018-06-09 Tom Tromey <tom@tromey.com>
4457 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
4459 (event_queue): Use std::queue.
4460 (gdb_event_xfree): Remove.
4461 (initialize_event_loop, process_event, wait_for_event): Update.
4463 2018-06-08 Stan Cox <scox@redhat.com>
4465 * win32-low.c (win32_create_inferior): last_ptid and last_status
4466 moved to client_state.
4468 2018-06-08 Pedro Alves <palves@redhat.com>
4470 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
4471 common/common-exceptions.o, common/common-utils.o,
4472 common/errors.o, common/print-utils.o and utils.o.
4473 * gdbreplay.c: Include "common-defs.h" instead of the two
4474 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
4475 string.h or alloca.h.
4476 (perror_with_name): Delete.
4477 (remote_open): Use xstrdup instead of strdup.
4478 (main): Rename to ...
4479 (captured_main): ... this.
4482 2018-06-08 Tom Tromey <tom@tromey.com>
4484 * linux-low.c (linux_low_read_btrace): Update.
4486 2018-06-04 Stan Cox <scox@redhat.com>
4488 * server.h (struct client_state): New.
4489 * server.c (cont_thread, general_thread, multi_process)
4490 (report_fork_events, report_vfork_events, report_exec_events)
4491 (report_thread_events, swbreak_feature, hwbreak_feature)
4492 (vCont_supported, disable_randomization, pass_signals)
4493 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
4494 Moved to client_state.
4495 * remote-utils.c (remote_debug, noack_mode)
4496 (transport_is_reliable): Moved to client_state.
4497 * tracepoint.c (current_traceframe): Moved to client_state.
4500 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
4501 linux-low.c, remote-utils.h, target.c: Use client_state.
4503 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4505 * configure.srv: Add new c/h file.
4507 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4509 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
4512 2018-05-25 Maciej W. Rozycki <macro@mips.com>
4514 * gdb.arch/mips-fpregset-core.exp: New test.
4515 * gdb.arch/mips-fpregset-core.c: New test source.
4517 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
4520 * hostio.c (require_int): Do not report overflow for integers
4521 between 0xfffffff and 0x7fffffff.
4523 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4525 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
4526 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
4527 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
4529 (the_low_target): Wire them.
4531 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4533 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
4534 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
4535 mode. Call collect_register_by_name with vscr using
4536 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
4537 (ppc_store_vrregset): Add and set vscr_offset variable as in
4538 ppc_fill_vrregset. Call supply_register_by_name with vscr using
4541 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4543 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4544 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
4545 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
4547 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4549 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
4550 (ppc_store_vsxregset): Likewise.
4551 (ppc_fill_vrregset): Likewise.
4552 (ppc_store_vrregset): Likewise.
4553 (ppc_fill_evrregset): Likewise.
4554 (ppc_store_evrregset): Likewise.
4555 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
4556 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
4559 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4561 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
4562 wordsize of the inferior. Call ppc_linux_target_wordsize.
4564 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4566 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
4567 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
4568 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
4569 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4570 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4571 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4572 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4573 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4574 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4575 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4576 (tdesc_powerpc_e500l): Remove.
4577 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
4578 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
4579 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
4580 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
4582 (ppc_arch_setup): Remove target description matching code. Fill a
4583 ppc_linux_features struct and call ppc_linux_match_description
4586 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4588 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
4589 width of the requested register exceeds the width of the
4591 (mips_cannot_store_register): Likewise.
4593 2018-05-21 Maciej W. Rozycki <macro@mips.com>
4595 * linux-mips-low.c (mips_fetch_register): New function. Update
4597 (mips_store_gregset): Supply 0 rather than $restart for $zero.
4598 (the_low_target): Wire `mips_fetch_register'.
4600 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4602 * lynx-i386-low.c (LYNXOS_178): New macro.
4603 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
4604 the layout on LynxOS-178.
4605 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
4606 handle floating point registers that are not supported by
4609 2018-05-10 Tom Tromey <tom@tromey.com>
4611 * configure: Rebuild.
4613 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4616 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
4617 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
4618 Use it to set the expedite_regs field in the given tdesc.
4619 * x86-tdesc.h: New file.
4620 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
4621 Adjust following the addition of the new expedite_regs parameter
4622 to init_target_desc.
4623 * linux-tic6x-low.c (tic6x_read_description): Likewise.
4624 * linux-x86-tdesc.c: #include "x86-tdesc.h".
4625 (i386_linux_read_description, amd64_linux_read_description):
4626 Adjust following the addition of the new expedite_regs parameter
4627 to init_target_desc.
4628 * lynx-i386-low.c: #include "x86-tdesc.h".
4629 (lynx_i386_arch_setup): Adjust following the addition of the new
4630 expedite_regs parameter to init_target_desc.
4631 * nto-x86-low.c: #include "x86-tdesc.h".
4632 (nto_x86_arch_setup): Adjust following the addition of the new
4633 expedite_regs parameter to init_target_desc.
4634 * win32-i386-low.c: #include "x86-tdesc.h".
4635 (i386_arch_setup): Adjust following the addition of the new
4636 expedite_regs parameter to init_target_desc.
4638 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4641 * win32-low.c (win32_create_inferior): Add call to my_wait
4642 setting last_status global.
4644 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4647 * win32-low.c (create_process): Only call gdb_tilde_expand if
4648 inferior_cwd is not NULL.
4650 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4652 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
4653 registers to the cache if their values have changed.
4654 (i387_xsave_to_cache): Provide default values for x87 control
4655 registers when these features are available, but disabled.
4656 * regcache.c (supply_register_by_name_zeroed): New function.
4657 * regcache.h (supply_register_by_name_zeroed): Declare new
4660 2018-05-07 Tom Tromey <tom@tromey.com>
4662 * configure: Rebuild.
4664 2018-05-04 Tom Tromey <tom@tromey.com>
4666 * configure: Rebuild.
4668 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4669 Pedro Alves <palves@redhat.com>
4671 * linux-aarch64-low.c (aarch64_stopped_data_address):
4674 2018-04-27 Tom Tromey <tom@tromey.com>
4676 * configure: Rebuild.
4678 2018-04-23 Tom Tromey <tom@tromey.com>
4680 * configure: Rebuild.
4682 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
4684 * Makefile.in (depcomp): Add "..".
4685 (all_deps_files): New and use it.
4687 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4689 * configure.srv (aarch64*-*-linux*): Don't include xml.
4690 (i[34567]86-*-cygwin*): Likewise.
4691 (i[34567]86-*-linux*): Likewise.
4692 (i[34567]86-*-lynxos*): Likewise.
4693 (i[34567]86-*-mingw32ce*): Likewise.
4694 (i[34567]86-*-mingw*): Likewise.
4695 (i[34567]86-*-nto*): Likewise.
4696 (tic6x-*-uclinux): Likewise.
4697 (x86_64-*-linux*): Likewise.
4698 (x86_64-*-mingw*): Likewise.
4699 (x86_64-*-cygwin*): Likewise.
4701 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4703 * tdesc.c: Remove xml parameter.
4705 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4707 * server.c (get_features_xml): Remove cast.
4708 * tdesc.c (void target_desc::accept): Fill in function.
4709 (tdesc_get_features_xml): Remove old xml creation.
4710 (print_xml_feature::visit_pre): Add xml vistor.
4711 * tdesc.h (struct target_desc): Make xmltarget mutable.
4712 (tdesc_get_features_xml): Remove declaration.
4714 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4716 * tdesc.c (tdesc_architecture_name): Add new function.
4717 (tdesc_osabi_name): Likewise.
4718 (tdesc_get_features_xml): Use new functions.
4720 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4722 * tdesc.c (tdesc_create_flags): Remove.
4723 (tdesc_add_flag): Likewise.
4724 (tdesc_named_type): Likewise.
4725 (tdesc_create_union): Likewise.
4726 (tdesc_create_struct): Likewise.
4727 (tdesc_create_vector): Likewise.
4728 (tdesc_add_bitfield): Likewise.
4729 (tdesc_add_field): Likewise.
4730 (tdesc_set_struct_size): Likewise.
4732 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4734 * tdesc.c (~target_desc): Remove implictly deleted items.
4735 (init_target_desc): Iterate all features.
4736 (tdesc_get_features_xml): Use vector.
4737 (tdesc_create_feature): Create feature.
4738 * tdesc.h (tdesc_feature) Remove
4739 (target_desc): Add features.
4741 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4743 * Makefile.in: Add common/tdesc.c
4744 * tdesc.c (init_target_desc): init all reg_defs from register
4746 (tdesc_create_reg): Create tdesc_reg.
4747 * tdesc.h (tdesc_feature): Add register vector.
4749 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4751 * tdesc.h (struct target_desc) <features>: Change type to
4752 std::vector<std::string>.
4753 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
4755 (tdesc_get_features_xml): Likewise.
4756 (tdesc_create_feature): Likewise.
4758 2018-03-26 Alan Hayward <alan.hayward@arm.com>
4760 * regcache.c (find_register_by_number): Return a ref.
4761 (find_regno): Use references.
4762 (register_size): Likewise.
4763 (register_data): Likewise.
4764 * tdesc.c (target_desc::~target_desc): Remove free calls.
4765 (target_desc::operator==): Use std::vector compare.
4766 (init_target_desc): Use reference.
4767 (tdesc_create_reg): Use reg constructors.
4768 * tdesc.h (struct target_desc): Replace pointer with object.
4770 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4772 * regcache.c (find_register_by_number): Make static.
4773 (find_regno): Use find_register_by_number
4774 * regcache.h (struct reg): Remove declaration.
4776 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4778 * tdesc.c (target_desc::~target_desc): Move to here.
4779 (target_desc::operator==): Likewise.
4780 * tdesc.h (target_desc::~target_desc): Move from here.
4781 (target_desc::operator==): Likewise.
4783 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
4785 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
4787 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4789 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
4791 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
4792 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
4793 and init_registers_s390_gs_linux64.
4795 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4797 * linux-s390-low.c (s390_fill_gs): Remove function.
4798 (s390_fill_gsbc): Remove function.
4799 (s390_regsets): Set fill functions for the guarded storage regsets
4802 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4804 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
4805 the word size. Add comment.
4806 (s390_get_wordsize): New function.
4807 (s390_arch_setup): No longer select a temporary tdesc to fetch the
4808 pswm with it. Instead, use s390_get_wordsize to determine the
4809 word size first and derive the correct tdesc from that directly.
4811 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
4813 * Makefile.in: Include silent-rules.mk.
4814 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
4815 (COMPILE): Add ECHO_CXX.
4816 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4817 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4818 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
4819 (version-generated.c): Add ECHO_GEN.
4820 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
4821 (IPAGENT_COMPILE): Add ECHO_CXX.
4822 (%-generated.c): Add ECHO_REGDAT.
4824 2018-03-14 Tom Tromey <tom@tromey.com>
4827 * ax.c (ax_printf): Special case for NULL.
4829 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4831 * linux-low.c (linux_qxfer_libraries_svr4): Use
4832 xml_escape_text_append.
4834 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4836 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
4838 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4840 * server.c (handle_general_set): Remove unnecessary xstrdup.
4842 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4844 * server.c (parse_debug_format_options): Adjust to
4845 delim_string_to_char_ptr_vec changes.
4846 * thread-db.c (thread_db_load_search): Adjust to
4847 dirnames_to_char_ptr_vec changes.
4849 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
4851 * target.h (target_enable_btrace, target_disable_btrace)
4852 (target_read_btrace, target_read_btrace_conf): Turn macro into
4853 inline function. Throw error if target method is not defined.
4854 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
4855 check for btrace target method. Be prepared to handle exceptions
4856 from btrace target methods.
4858 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4860 * server.c (captured_main): Change order of error message printed
4861 when the current working directory cannot be found.
4863 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4865 * server.c: Include "filenames.h" and "pathstuff.h".
4866 (program_name): Delete variable.
4867 (program_path): New anonymous class.
4868 (get_exec_wrapper): Use "program_path" instead of
4870 (handle_v_run): Likewise.
4871 (captured_main): Likewise.
4872 (process_serial_event): Likewise.
4874 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4876 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
4877 (OBJS): Add "pathstuff.o".
4878 * server.c (current_directory): New global variable.
4879 (captured_main): Initialize "current_directory".
4881 2018-02-26 Alan Hayward <alan.hayward@arm.com>
4883 * tdesc.c: Use common/tdesc.h.
4884 * tdesc.h: Likewise.
4886 2018-02-20 Alan Hayward <alan.hayward@arm.com>
4887 Simon Marchi <simon.marchi@ericsson.com>
4889 * Makefile.in: Switch order of make rules.
4891 2018-02-19 Alan Hayward <alan.hayward@arm.com>
4893 * Makefile.in: Add common directory in build.
4894 * configure.ac: Add common reference.
4895 * configure: Regenerate.
4897 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4899 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
4900 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
4901 * spu-low.c (spu_target_ops): Likewise.
4902 * win32-low.c (win32_target_ops): Likewise.
4903 * server.c (supported_btrace_packets): Report packets unconditionally.
4904 * target.h (target_ops) <supports_btrace>: Remove.
4905 (target_supports_btrace): Remove.
4907 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4909 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
4910 (handle_btrace_disable): Change return type to void. Use exceptions
4912 (handle_btrace_general_set): Catch exception and copy message to
4915 2018-02-08 Tom Tromey <tom@tromey.com>
4917 * linux-low.c (install_software_single_step_breakpoints): Use
4918 make_scoped_restore.
4919 * inferiors.c (make_cleanup_restore_current_thread): Remove.
4920 (do_restore_current_thread_cleanup): Remove.
4921 * gdbthread.h (make_cleanup_restore_current_thread): Don't
4924 2018-02-08 Tom Tromey <tom@tromey.com>
4926 * mem-break.c (set_raw_breakpoint_at): Use
4927 gdb::unique_xmalloc_ptr.
4929 2018-01-30 Pedro Alves <palves@redhat.com>
4932 * target.c (target_terminal::terminal_state): Rename to ...
4933 (target_terminal::m_terminal_state): ... this.
4935 2018-01-19 James Clarke <jrtc27@jrtc27.com>
4937 * linux-low.c (handle_extended_wait): Surround call to
4938 thread_db_notice_clone with #ifdef USE_THREAD_DB.
4940 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
4942 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
4943 linux_ptrace_attach_fail_reason_string now returning an
4945 (linux_attach): Likewise.
4946 * thread-db.c (attach_thread): Likewise.
4948 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
4951 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
4952 checking for fs_base/gs_base fields in struct user_regs_struct.
4953 * configure: Regenerate.
4955 2018-01-16 Yao Qi <yao.qi@linaro.org>
4958 * linux-low.c (fetch_register): Call supply_register instead of
4961 2018-01-08 Yao Qi <yao.qi@linaro.org>
4962 Simon Marchi <simon.marchi@ericsson.com>
4964 * Makefile.in (OBS): Remove selftest.o.
4965 * configure.ac: Set srv_selftest_objs if $development is true.
4966 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
4967 * configure: Re-generated.
4968 * server.c (captured_main): Wrap variable selftest_filter with
4971 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4973 * server.c (parse_debug_format_options): Return std::string.
4974 (handle_monitor_command, captured_main): Adjust.
4976 2018-01-05 Pedro Alves <palves@redhat.com>
4979 * server.c (captured_main): Pass quiet=false to
4980 save_original_signals_state.
4982 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4984 * gdbreplay.c (gdbreplay_version): Update copyright year in
4986 * server.c (gdbserver_version): Likewise.
4988 2017-12-08 Tom Tromey <tom@tromey.com>
4990 * ax.c (ax_printf): Update.
4992 2017-12-07 Yao Qi <yao.qi@linaro.org>
4994 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
4995 aarch64_linux_read_description.
4996 * linux-amd64-ipa.c (idx2mask): New array.
4997 (get_ipa_tdesc): Move idx2mask out.
4998 (initialize_low_tracepoint): Initialize target descriptions.
4999 * linux-i386-ipa.c (idx2mask): New array.
5000 (get_ipa_tdesc): Move idx2mask out.
5001 (initialize_low_tracepoint): Initialize target descriptions.
5003 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5005 * tdesc.c (struct tdesc_type): Change return type.
5006 (tdesc_add_flag): Change parameter type.
5007 (tdesc_add_bitfield): Likewise.
5008 (tdesc_add_field): Likewise.
5009 (tdesc_set_struct_size): Likewise.
5011 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5013 * regcache.c (registers_to_string): Remove unused variable.
5015 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5017 * inferiors.c (for_each_inferior_with_data): Remove.
5018 * inferiors.h (for_each_inferior_with_data): Remove.
5019 * server.c (handle_qxfer_threads_worker): Change parameter type.
5020 (handle_qxfer_threads_proper): Use for_each_thread.
5022 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5024 * inferiors.c (for_each_inferior): Remove.
5025 (clear_inferiors): Use for_each_thread.
5026 * inferiors.h (for_each_inferior): Remove.
5027 * linux-low.c (linux_wait_for_event_filtered): Use
5029 (linux_stabilize_threads): Likewise.
5030 * regcache.c (regcache_release): Likewise.
5031 * server.c (gdb_wants_all_threads_stopped): Likewise.
5032 (clear_pending_status_callback): Remove.
5033 (handle_status): Use for_each_thread.
5034 (captured_main): Likewise.
5035 * win32-low.c (child_init_thread_list): Likewise.
5036 (win32_clear_inferiors): Likewise.
5037 (fake_breakpoint_event): Likewise.
5039 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5041 * inferiors.h (find_inferior): Remove.
5042 * inferiors.c (find_inferior): Remove.
5044 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5046 * linux-low.c (resume_status_pending_p): Update comment.
5047 (need_step_over_p): Update comment.
5049 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5051 * linux-low.c (proceed_one_lwp): Return void, change parameter
5053 (unsuspend_and_proceed_one_lwp): Likewise.
5054 (proceed_all_lwps): Use for_each_thread.
5055 (unstop_all_lwps): Likewise.
5057 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5059 * linux-low.c (linux_resume_one_thread): Return void, take
5061 (linux_resume): Use for_each_thread.
5063 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5065 * linux-low.c (send_sigstop_callback): Return void, change
5066 parameter type. Rename to...
5067 (send_sigstop): ... this.
5068 (suspend_and_send_sigstop_callback): Return void, change parameter
5070 (suspend_and_send_sigstop): ... this.
5071 (stop_all_lwps): Use for_each_thread.
5073 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5075 * linux-low.c (lwp_running): Return bool, remove unused
5077 (linux_stabilize_threads): Use find_thread.
5079 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5081 * linux-low.c (select_singlestep_lwp_callback): Remove.
5082 (count_events_callback): Remove.
5083 (select_event_lwp_callback): Remove.
5084 (select_event_lwp): Use find_thread/for_each_thread.
5086 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5088 * linux-low.c (not_stopped_callback): Return bool, take filter
5090 (linux_wait_for_event_filtered): Use find_thread.
5091 (linux_wait_1): Likewise.
5093 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5095 * linux-low.c (same_lwp): Remove.
5096 (find_lwp_pid): Use find_thread.
5098 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5100 * linux-low.c (delete_lwp_callback): Remove.
5101 (linux_mourn): Use for_each_thread.
5103 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5105 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5106 args parameter, don't check for pid.
5107 (linux_detach): Use for_each_thread.
5109 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5111 * linux-low.c (struct counter): Remove.
5112 (second_thread_of_pid_p): Remove.
5113 (last_thread_of_process_p): Use find_thread.
5115 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5117 * inferiors.c (find_inferior_in_random): Remove.
5118 * inferiors.h (find_inferior_in_random): Remove.
5119 * linux-low.c (status_pending_p_callback): Return bool, accept
5120 parameter ptid directly.
5121 (linux_wait_for_event_filtered): Use find_thread_in_random.
5122 (linux_wait_1): Likewise.
5124 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5126 * inferiors.c (find_inferior_id): Remove.
5127 (find_thread_ptid): Move implemention from find_inferior_id to
5129 * inferiors.h (find_inferior_id): Remove.
5130 * server.c (handle_status): Use find_thread_ptid.
5131 (process_serial_event): Likewise.
5132 * thread-db.c (find_one_thread): Likewise.
5133 (thread_db_thread_handle): Likewise.
5134 * win32-low.c (thread_rec): Likewise.
5135 (child_delete_thread): Likewise.
5136 (win32_thread_alive): Likewise.
5137 (get_child_debug_event): Likewise.
5139 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5141 * linux-mips-low.c (update_watch_registers_callback): Return
5142 void, remove pid_p parameter, don't check for pid.
5143 (mips_insert_point, mips_remove_point): Use for_each_thread.
5145 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5147 * lynx.low (lynx_delete_thread_callback): Remove.
5148 (lynx_mourn): Use for_each_thread.
5150 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5152 * regcache.c (regcache_invalidate_one): Remove.
5153 (regcache_invalidate_pid): use for_each_thread.
5155 2017-11-26 Tom Tromey <tom@tromey.com>
5157 * linux-low.c (linux_create_inferior): Update.
5159 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5161 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5163 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5165 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5166 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5167 * linux-aarch64-tdesc-selftest.c: New file.
5168 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5170 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5172 * configure.srv: Add new file.
5173 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5174 * linux-aarch64-tdesc-selftest.c: New file.
5175 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5177 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5179 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5180 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5181 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5183 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5185 * configure.srv: Add new files.
5186 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5187 aarch64_linux_read_description.
5188 * linux-aarch64-low.c (aarch64_linux_read_description):
5189 Merge with aarch64_arch_setup.
5190 (aarch64_arch_setup): Call aarch64_linux_read_description.
5191 * linux-aarch64-tdesc.c: New file.
5192 * linux-aarch64-tdesc.h: New file.
5194 2017-11-24 Yao Qi <yao.qi@linaro.org>
5196 * configure.srv: Set $srv_regobj for tic6x-linux.
5197 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5198 (tic6x_read_description): Move some code to tic6x_arch_setup.
5199 (tic6x_tdesc_test): New function.
5200 (initialize_low_arch): Call selftests::register_test.
5202 2017-11-22 Yao Qi <yao.qi@linaro.org>
5204 * remote-utils.c (prepare_resume_reply): Use memcpy.
5206 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5208 * linux-low.c (kill_one_lwp_callback): Return void, take
5209 argument directly, don't filter on pid.
5210 (linux_kill): Use for_each_thread.
5212 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5214 * linux-low.c (need_step_over_p): Return bool, remove dummy
5216 (linux_resume, proceed_all_lwps): Use find_thread.
5218 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5220 * linux-low.c (resume_status_pending_p): Return bool, remove
5222 (linux_resume): Use find_thread.
5224 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5226 * linux-low.c (struct thread_resume_array): Remove.
5227 (linux_set_resume_request): Return void, take arguments
5229 (linux_resume): Use for_each_thread.
5231 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5233 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5234 return bool, remove data argument.
5235 (linux_stabilize_threads): Use find_thread.
5237 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5239 * linux-low.c (unsuspend_one_lwp): Remove.
5240 (unsuspend_all_lwps): Use for_each_thread, inline code from
5243 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5245 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5246 * linux-low.c (struct iterate_over_lwps_args): Remove.
5247 (iterate_over_lwps_filter): Remove.
5248 (iterate_over_lwps): Use find_thread.
5250 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5252 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5253 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5254 code from reset_lwp_ptrace_options_callback.
5256 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5258 * linux-arm-low.c (struct update_registers_data): Remove.
5259 (update_registers_callback): Return void, take arguments
5260 directly, don't check thread's pid.
5261 (arm_insert_point, arm_remove_point): Use for_each_thread.
5263 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5265 * win32-low.c (continue_one_thread): Return void, take argument
5267 (child_continue): Use for_each_thread.
5269 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5271 * win32-i386-low.c (update_debug_registers_callback): Rename
5273 (update_debug_registers): ... this, return void, remove pid_p arg.
5274 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5276 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5278 * inferiors.h (struct process_info): Add constructor, initialize
5280 <syscalls_to_catch>: Change type to std::vector<int>.
5281 * inferiors.c (add_process): Allocate process_info with new.
5282 (remove_process): Free process_info with delete.
5283 * linux-low.c (handle_extended_wait): Adjust.
5284 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5285 * server.c (handle_general_set): Adjust.
5287 2017-11-16 Pedro Alves <palves@redhat.com>
5289 * remote-utils.c (remote_close): Block SIGIO signals instead of
5290 uninstalling the SIGIO handler.
5292 2017-11-16 Alan Hayward <alan.hayward@arm.com>
5294 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5296 2017-11-16 Yao Qi <yao.qi@linaro.org>
5298 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5299 (tic6x_store_gregset): Likewise.
5300 (tic6x_usrregs_info): Move it up.
5302 2017-11-15 Alan Hayward <alan.hayward@arm.com>
5304 * Makefile.in: Update arch rules.
5305 * configure.srv: Explicitly mark arch/ files.
5307 2017-11-13 Andreas Schwab <schwab@suse.de>
5309 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5311 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5313 2017-11-06 Pedro Alves <palves@redhat.com>
5315 * config.in, configure: Regenerate.
5317 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5319 * target.c (struct thread_search): Remove.
5320 (thread_search_callback): Remove.
5321 (prepare_to_access_memory): Use for_each_thread instead of
5322 find_inferior. Inline code from thread_search_callback.
5324 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5326 * server.c (struct visit_actioned_threads_data): Remove.
5327 (visit_actioned_threads): Change prototype to take arguments
5329 (resume): Use find_thread instead of find_inferior.
5331 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5333 * server.c (queue_stop_reply_callback): Change prototype, return
5335 (find_status_pending_thread_callback): Remove.
5336 (handle_status): Replace find_inferior with find_thread and
5339 2017-10-25 Alan Hayward <alan.hayward@arm.com>
5341 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5343 (aarch64_store_gregset): Likewise.
5344 (aarch64_fill_fpregset): Likewise.
5345 (aarch64_store_fpregset): Likewise.
5347 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5349 * gdbthread.h (find_thread, for_each_thread): New functions.
5350 * inferiors.c (thread_of_pid): Remove.
5351 (find_any_thread_of_pid): Use find_thread.
5352 * linux-low.c (num_lwps): Use for_each_thread.
5354 2017-10-17 Yao Qi <yao.qi@linaro.org>
5356 * Makefile.in: Remove one rule.
5357 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5359 2017-10-17 Yao Qi <yao.qi@linaro.org>
5361 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5362 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5364 2017-10-17 Yao Qi <yao.qi@linaro.org>
5366 * configure.srv: Rename arm.o with arch/arm.o.
5368 2017-10-17 Yao Qi <yao.qi@linaro.org>
5370 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5371 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5372 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
5373 (arch-i386.o, arch-amd64.o): Remove rules.
5374 (arch/%.o): New rule.
5375 Update POSTCOMPILE and COMPILE.pre.
5376 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5377 * configure: Re-generated.
5378 * configure.srv: Replace arch-i386.o with arch/i386.o.
5379 Replace arch-amd64.o with arch/amd64.o.
5381 2017-10-16 Yao Qi <yao.qi@linaro.org>
5383 * configure: Regenerated.
5385 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5387 * inferiors.h: (struct inferior_list): Remove.
5388 (struct inferior_list_entry); Remove.
5389 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
5390 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
5391 get_first_inferior): Remove.
5392 (for_each_inferior, for_each_inferior_with_data, find_inferior,
5393 find_inferior_id, find_inferior_in_random): Change signature.
5394 * inferiors.c (all_threads): Change type to
5395 std::list<thread_info *>.
5396 (get_thread): Remove macro.
5397 (find_inferior, find_inferior_id): Change signature, implement
5399 (find_inferior_in_random): Change signature, implement using
5400 find_thread_in_random.
5401 (for_each_inferior, for_each_inferior_with_data): Change
5402 signature, implement using for_each_thread.
5403 (add_inferior_to_list, remove_inferior): Remove.
5404 (add_thread, get_first_thread, thread_of_pid,
5405 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
5406 (get_first_inferior, one_inferior_p, clear_inferior_list):
5408 (clear_inferiors, get_thread_process): Update.
5409 * gdbthread.h: Include <list>.
5410 (struct thread_info) <entry>: Remove field.
5412 (all_threads): Change type to std::list<thread_info *>.
5413 (get_first_inferior): Add doc.
5414 (find_thread, for_each_thread, find_thread_in_random): New
5416 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
5417 * linux-arm-low.c (update_registers_callback): Update.
5418 * linux-low.c (second_thread_of_pid_p): Update.
5419 (kill_one_lwp_callback, linux_detach_lwp_callback,
5420 delete_lwp_callback, status_pending_p_callback, same_lwp,
5421 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
5422 iterate_over_lwps, not_stopped_callback,
5423 resume_stopped_resumed_lwps, count_events_callback,
5424 select_singlestep_lwp_callback, select_event_lwp_callback,
5425 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
5426 suspend_and_send_sigstop_callback, wait_for_sigstop,
5427 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
5428 lwp_running, linux_set_resume_request, resume_status_pending_p,
5429 need_step_over_p, start_step_over, linux_resume_one_thread,
5430 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
5431 reset_lwp_ptrace_options_callback): Update.
5432 * linux-mips-low.c (update_watch_registers_callback): Update.
5433 * regcache.c (regcache_invalidate_one, regcache_invalidate):
5435 (free_register_cache_thread_one): Remove.
5436 (regcache_release): Update.
5437 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
5438 handle_qxfer_threads_worker): Update.
5439 (handle_query): Update, use list iterator.
5440 (visit_actioned_threads, handle_pending_status,
5441 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
5442 clear_pending_status_callback, set_pending_status_callback,
5443 find_status_pending_thread_callback, handle_status,
5444 process_serial_event): Update.
5445 * target.c (thread_search_callback): Update.
5446 * thread-db.c (thread_db_get_tls_address): Update.
5447 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
5449 * win32-i386-low.c (update_debug_registers_callback): Update.
5450 * win32-low.c (delete_thread_info, child_delete_thread,
5451 continue_one_thread, suspend_one_thread,
5452 get_child_debug_event): Adjust.
5454 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5456 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
5457 * inferiors.h: Include <list>.
5458 (struct process_info) <entry>: Remove field.
5460 (pid_of): Change macro to function.
5461 (ptid_of, lwpid_of): Remove macro.
5462 (all_processes): Change type to std::list<process_info *>.
5463 (ALL_PROCESSES): Remove macro.
5464 (for_each_process, find_process): New function.
5465 * inferiors.c (all_processes): Change type to
5466 std::list<process_info *>.
5467 (find_thread_process): Adjust.
5468 (add_process): Likewise.
5469 (remove_process): Likewise.
5470 (find_process_pid): Likewise.
5471 (get_first_process): Likewise.
5472 (started_inferior_callback): Remove.
5473 (have_started_inferiors_p): Adjust.
5474 (attached_inferior_callback): Remove.
5475 (have_attached_inferiors_p): Adjust.
5476 * linux-low.c (check_zombie_leaders): Likewise.
5477 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
5478 (x86_linux_update_xmltarget): Adjust.
5479 * server.c (handle_query): Likewise.
5480 (gdb_reattached_process): Remove.
5481 (handle_status): Adjust.
5482 (kill_inferior_callback): Likewise.
5483 (detach_or_kill_inferior): Remove.
5484 (print_started_pid): Likewise.
5485 (print_attached_pid): Likewise.
5486 (detach_or_kill_for_exit): Update.
5487 (process_serial_event): Likewise.
5488 * linux-arm-low.c (arm_new_fork): Likewise.
5490 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5492 * dll.h: Include <list>.
5493 (struct dll_info): Add constructor.
5494 <entry>: Remove field.
5495 (all_dlls): Change type to std::list<dll_info>.
5496 * dll.c: Include <algorithm>.
5497 (get_dll): Remove macro.
5498 (all_dlls): Change type to std::list<dll_info *>.
5499 (free_one_dll): Remove.
5500 (match_dll): Likewise.
5501 (loaded_dll): Adjust.
5502 (unloaded_dll): Adjust to all_dlls type change, use
5503 std::find_if. Inline code from match_dll.
5504 (clear_dlls): Adjust to all_dlls type change.
5505 * server.c (emit_dll_description): Remove.
5506 (handle_qxfer_libraries): Adjust to all_dlls type change,
5507 integrate emit_dll_description's functionality.
5509 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5511 * linux-low.h (struct linux_target_ops) <delete_process>: New
5513 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
5514 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
5515 (struct linux_target_ops): Add delete_process callback.
5516 * linux-arm-low.c (arm_delete_process): New.
5517 (struct linux_target_ops): Add delete_process callback.
5518 * linux-bfin-low.c (struct linux_target_ops): Likewise.
5519 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
5520 * linux-m32r-low.c (struct linux_target_ops): Likewise.
5521 * linux-mips-low.c (mips_linux_delete_process): New.
5522 (struct linux_target_ops): Add delete_process callback.
5523 * linux-ppc-low.c (struct linux_target_ops): Likewise.
5524 * linux-s390-low.c (struct linux_target_ops): Likewise.
5525 * linux-sh-low.c (struct linux_target_ops): Likewise.
5526 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
5527 * linux-tile-low.c (struct linux_target_ops): Likewise.
5528 * linux-x86-low.c (x86_linux_delete_process): New.
5529 (struct linux_target_ops): Add delete_process callback.
5530 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
5532 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5534 * linux-aarch64-low.c (the_low_target): Add thread delete
5536 * linux-arm-low.c (arm_delete_thread): New function.
5537 (the_low_target): Add thread delete callback.
5538 * linux-bfin-low.c (the_low_target): Likewise.
5539 * linux-crisv32-low.c (the_low_target): Likewise.
5540 * linux-low.c (delete_lwp): Invoke delete_thread callback if
5542 * linux-low.h (struct linux_target_ops) <delete_thread>: New
5544 * linux-m32r-low.c (the_low_target): Add thread delete callback.
5545 * linux-mips-low.c (mips_linux_delete_thread): New function.
5546 (the_low_target): Add thread delete callback.
5547 * linux-ppc-low.c (the_low_target): Likewise.
5548 * linux-s390-low.c (the_low_target): Likewise.
5549 * linux-sh-low.c (the_low_target): Likewise.
5550 * linux-tic6x-low.c (the_low_target): Likewise.
5551 * linux-tile-low.c (the_low_target): Likewise.
5552 * linux-x86-low.c (the_low_target): Likewise.
5553 * linux-xtensa-low.c (the_low_target): Likewise.
5555 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
5557 * win32-low.c: Include "common-inferior.h".
5559 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5561 * inferiors.c (set_inferior_cwd): New function.
5562 * server.c (handle_general_set): Handle QSetWorkingDir packet.
5563 (handle_query): Inform that QSetWorkingDir is supported.
5564 * win32-low.c (create_process): Pass the inferior's cwd to
5567 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5569 * inferiors.c (current_inferior_cwd): New global variable.
5570 (get_inferior_cwd): New function.
5571 * inferiors.h (struct process_info) <cwd>: New field.
5573 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5575 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
5576 (OBS): Add gdb_tilde_expand.o.
5578 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
5580 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
5581 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5583 2017-09-29 Pedro Alves <palves@redhat.com>
5585 * ax.c (gdb_parse_agent_expr): Constify.
5586 * ax.h (gdb_parse_agent_expr): Constify.
5587 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5589 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
5590 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
5591 * remote-utils.h (read_ptid): Constify.
5592 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
5593 (process_point_options, process_serial_event): Constify.
5594 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
5595 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
5596 (cmd_qtbuffer): Constify.
5598 2017-09-29 Pedro Alves <palves@redhat.com>
5600 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
5603 2017-09-29 Pedro Alves <palves@redhat.com>
5605 * linux-low.c (handle_extended_wait): Pass parent thread instead
5606 of process to thread_db_notice_clone.
5607 * linux-low.h (thread_db_notice_clone): Replace parent process
5608 parameter with parent thread parameter.
5609 * thread-db.c (find_one_thread): Add comment.
5610 (thread_db_notice_clone): Replace parent process parameter with
5611 parent thread parameter. Temporarily switch to the parent thread.
5613 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
5615 * gdbthread.h: Include "common-gdbthread.h".
5616 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
5617 "if" when validating the ptid.
5618 * remote-utils.c: Include "gdbthread.h".
5619 (prepare_resume_reply): Use "switch_to_thread".
5620 * target.c (done_accessing_memory): Likewise.
5622 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5624 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
5625 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
5626 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
5627 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
5628 s390x-gs-linux64-ipa.o to ipa_obj.
5629 * linux-s390-low.c (HWCAP_S390_GS): New define.
5630 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
5632 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
5633 (s390_arch_setup): Check for guarded-storage support and choose
5635 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
5636 init_registers_s390x_gs_linux64.
5637 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
5639 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
5640 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
5642 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
5644 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
5646 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5648 * linux-low.h (struct lwp_info): Add new field, thread_handle.
5649 (thread_db_thread_handle): Declare.
5650 * linux-low.c (linux_target_ops): Initialize thread_handle.
5651 * server.c (handle_qxfer_threads_worker): Add support for
5653 * target.h (struct target_ops): Add new function pointer,
5655 (target_thread_handle): Define.
5656 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
5658 (thread_db_thread_handle): New function.
5660 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5662 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
5663 * linux-low.h (thread_db_notice_clone): Declare.
5664 * thread-db.c (thread_db_notice_clone): New function.
5666 2017-09-21 Pedro Alves <palves@redhat.com>
5668 * server.c (gdb_read_memory, handle_status, process_serial_event)
5669 (handle_serial_event, handle_target_event): Adjust to
5670 set_desired_thread prototype change.
5671 * target.c (set_desired_thread): Remove 'use_general' parameter
5673 * target.h (set_desired_thread): Remove 'use_general' parameter.
5675 2017-09-20 Tom Tromey <tom@tromey.com>
5677 * target.c (target_terminal::terminal_state): Define.
5678 (target_terminal::init): Rename from target_terminal_init.
5679 (target_terminal::inferior): Rename from
5680 target_terminal_inferior.
5681 (target_terminal::ours): Rename from target_terminal_ours.
5682 (target_terminal::ours_for_output, target_terminal::info): New.
5684 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5686 * server.c (accumulate_file_name_length): Remove.
5687 (emit_dll_description): Adjust to std::string change.
5688 (handle_qxfer_libraries): Use std::string to hold document.
5690 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5692 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
5693 return type of xml_escape_text.
5694 * server.c (emit_dll_description): Likewise.
5696 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5698 * server.c (captured_main): Accept argument for --selftest.
5699 Update run_tests call.
5700 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
5701 when registering selftests.
5703 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
5705 * regcache.c (get_thread_regcache): Update code to use "std::vector"
5706 instead of "VEC" for "target_desc.reg_defs".
5707 (regcache_cpy): Likewise.
5708 (registers_to_string): Likewise.
5709 (registers_from_string): Likewise.
5710 (find_regno): Likewise.
5711 (supply_regblock): Likewise.
5712 (regcache_raw_read_unsigned): Likewise.
5713 * tdesc.c (init_target_desc): Likewise.
5714 (tdesc_create_reg): Likewise.
5715 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
5716 (struct target_desc) <reg_defs>: Convert to "std::vector".
5717 (target_desc): Do not initialize "reg_defs".
5718 (~target_desc): Update code to use "std::vector" instead of "VEC"
5719 for "target_desc.reg_defs".
5720 (operator==): Likewise.
5722 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5724 * inferiors.h (thread_to_gdb_id): Remove.
5725 * inferiors.c (thread_to_gdb_id): Remove.
5726 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
5727 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
5728 lynx_store_registers, lynx_read_memory, lynx_write_memory):
5730 * nto-low.c (nto_fetch_registers, nto_store_registers,
5731 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
5733 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5735 * inferiors.h (gdb_id_to_thread_id): Remove.
5736 * inferiors.c (gdb_id_to_thread_id): Remove.
5737 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
5738 removal. Move pid declaration closer to where it's used.
5740 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5742 * server.c (handle_detach): New function.
5743 (process_serial_event): Move code out, call handle_detach.
5745 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5747 * server.c (require_running): Rename to ...
5748 (require_running_or_return): ... this ...
5749 (require_running_or_break): ... and this.
5750 (handle_query, process_serial_event): Adjust.
5752 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5754 * linux-low.c (linux_set_resume_request): Remove unused
5757 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5759 * server.c (first_thread_of): Remove.
5760 (process_serial_event): Replace usage of first_thread_of with
5761 find_any_thread_of_pid.
5762 * tracepoint.c (same_process_p): Remove.
5763 (gdb_agent_about_to_close): Replace usage of same_process_p with
5764 find_any_thread_of_pid.
5765 * linux-x86-low.c (same_process_callback): Remove.
5766 (x86_arch_setup_process_callback): Replace usage of
5767 same_process_callback with find_any_thread_of_pid.
5768 * thread-db.c (any_thread_of): Remove.
5769 (switch_to_process): Replace usage of any_thread_of with
5770 find_any_thread_of_pid.
5771 * inferiors.c (thread_pid_matches_callback): Remove.
5772 (find_thread_process): Adjust to use find_any_thread_of_pid.
5774 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5776 * regcache.c (get_thread_regcache): Guard calls to "memset"
5779 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5781 * linux-low.c (handle_extended_wait): Use
5782 "allocate_target_description" instead of "XNEW".
5783 * linux-x86-low.c (initialize_low_arch): Likewise.
5785 2017-09-05 Yao Qi <yao.qi@linaro.org>
5787 * configure.srv (srv_i386_regobj): Remove.
5788 (srv_amd64_regobj): Remove.
5789 (srv_regobj): Set it to "" for x86 non-linux targets.
5790 * linux-x86-tdesc.c (i386_linux_read_description):
5791 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
5792 (init_registers_i386): Remove the declaration.
5793 (tdesc_i386): Remove the declaration.
5794 (lynx_i386_arch_setup): Call i386_create_target_description.
5795 * nto-x86-low.c: Likewise.
5796 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
5797 [!__x86_64__]: include arch/i386.h.
5798 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
5800 2017-09-05 Yao Qi <yao.qi@linaro.org>
5802 * configure.srv (srv_amd64_linux_xmlfiles): Remove
5803 i386/amd64-XXX-linux from it.
5805 2017-09-05 Yao Qi <yao.qi@linaro.org>
5807 * configure.srv: Empty srv_amd64_linux_regobj if $development is
5809 (ipa_amd64_linux_regobj): Remove.
5810 (ipa_x32_linux_regobj): Remove.
5812 2017-09-05 Yao Qi <yao.qi@linaro.org>
5814 * Makefile.in (arch-amd64.o): New rule.
5815 * configure.srv: Append arch-amd64.o.
5816 * linux-amd64-ipa.c: Include common/x86-xstate.h.
5817 (get_ipa_tdesc): Call amd64_linux_read_description.
5818 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
5819 and init_registers_amd64_XXX.
5820 * linux-x86-low.c (x86_linux_read_description): Call
5821 amd64_linux_read_description.
5822 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
5823 (initialize_low_arch): Don't call init_registers_x32_XXX and
5824 init_registers_amd64_XXX.
5825 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
5826 and tdesc_amd64_XXX.
5827 [__x86_64__] (amd64_tdesc_test): New function.
5828 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
5829 and init_registers_amd64_XXX.
5830 * linux-x86-tdesc.c: Include arch/amd64.h.
5831 (xcr0_to_tdesc_idx): New function.
5832 (i386_linux_read_description): New function.
5833 (amd64_get_ipa_tdesc_idx): New function.
5834 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
5835 (amd64_get_ipa_tdesc): Declare.
5837 2017-09-05 Yao Qi <yao.qi@linaro.org>
5839 * configure.srv (srv_i386_linux_xmlfiles): Remove
5840 i386/i386-XXX-linux.xml from it.
5842 2017-09-05 Yao Qi <yao.qi@linaro.org>
5844 * configure.srv: Set srv_i386_linux_regobj empty if $development
5846 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
5847 initialize_low_tdesc.
5848 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
5849 with #if initialize_low_tdesc.
5850 * linux-x86-tdesc-selftest.c: New file.
5851 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
5853 2017-09-05 Yao Qi <yao.qi@linaro.org>
5855 * Makefile.in (arch-i386.o): New rule.
5856 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
5857 (x86_64-*-linux*): Likewise.
5858 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
5859 include arch/i386.h.
5860 (i386_linux_read_description): Remove code and call
5861 i386_create_target_description.
5862 * tdesc.c (allocate_target_description): New function.
5863 * tdesc.h (set_tdesc_architecture): Remove declaration.
5864 (set_tdesc_osabi): Likewise.
5866 2017-09-05 Yao Qi <yao.qi@linaro.org>
5868 * linux-x86-tdesc.c: Don't include <inttypes.h>.
5869 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
5870 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
5872 * server.c (get_features_xml): Call tdesc_get_features_xml.
5873 * tdesc.c (set_tdesc_architecture): New function.
5874 (set_tdesc_osabi): New function.
5875 (tdesc_get_features_xml): New function.
5876 (tdesc_create_feature): Add an argument.
5877 * tdesc.h (struct target_desc) <features>: New field.
5878 <arch, osabi>: New field.
5879 (~target_desc): xfree features, arch, and osabi.
5880 (target_desc::oerator==): Don't compare .xmltarget.
5881 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
5882 (set_tdesc_osabi): Likewise.
5883 (tdesc_get_features_xml): Likewise.
5885 2017-09-05 Yao Qi <yao.qi@linaro.org>
5887 * linux-x86-tdesc.c: Include selftest.h.
5888 (i386_tdesc_test): New function.
5889 (initialize_low_tdesc): Call selftests::register_test.
5890 * tdesc.h: Include regdef.h.
5891 (target_desc): Override operator == and !=.
5893 2017-09-05 Yao Qi <yao.qi@linaro.org>
5895 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
5896 (ipa_obj): Likewise.
5897 * linux-i386-ipa.c: Include common/x86-xstate.h
5898 (get_ipa_tdesc): Call i386_linux_read_description.
5899 (initialize_low_tracepoint): Don't call init_registers_XXX
5900 functions, call initialize_low_tdesc instead.
5901 * linux-x86-low.c (x86_linux_read_description): Call
5902 i386_linux_read_description.
5903 (initialize_low_arch): Don't call init_registers_i386_XXX
5904 functions, call initialize_low_tdesc.
5905 * linux-x86-tdesc.c: New file.
5906 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
5907 (i386_get_ipa_tdesc_idx): Declare.
5908 (i386_get_ipa_tdesc): Declare.
5909 (initialize_low_tdesc): Declare.
5911 2017-09-05 Yao Qi <yao.qi@linaro.org>
5913 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
5916 2017-09-05 Yao Qi <yao.qi@linaro.org>
5918 * Makefile.in (IPA_OBJS): Add vec-ipa.o
5919 * regcache.c (get_thread_regcache): Use VEC_length.
5920 (init_register_cache): Likewise.
5921 (regcache_cpy): Likewise.
5922 (registers_to_string): Iterate reg_defs via VEC_iterate.
5923 (find_regno): Likewise.
5924 (find_register_by_number): Use VEC_index.
5925 (register_size): Call find_register_by_number.
5926 (register_data): Call find_register_by_number.
5927 (supply_regblock): Use VEC_length.
5928 (regcache_raw_read_unsigned): Likewise.
5929 * tdesc.c (init_target_desc): Iterate reg_defs via
5931 (default_description): Update initializer.
5932 (copy_target_description): Don't update field num_registers.
5933 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
5934 <num_registers>: Remove.
5936 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5938 * Makefile.in (.SECONDARY): Define target.
5940 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5942 * linux-low.c (linux_wait_1): Adjust.
5943 * server.c (queue_stop_reply_callback): Adjust.
5945 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5947 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
5948 QEnvironmentUnset and QEnvironmentReset packets.
5949 (handle_query): Inform remote that QEnvironmentHexEncoded,
5950 QEnvironmentUnset and QEnvironmentReset are supported.
5952 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
5954 * inferiors.h (inferior_target_data): Rename to ...
5955 (thread_target_data): ... this.
5956 (inferior_regcache_data): Rename to ...
5957 (thread_regcache_data): ... this.
5958 (set_inferior_regcache_data): Rename to ...
5959 (set_thread_regcache_data): ... this.
5960 * inferiors.c (inferior_target_data): Rename to ...
5961 (thread_target_data): ... this.
5962 (inferior_regcache_data): Rename to ...
5963 (thread_regcache_data): ... this.
5964 (set_inferior_regcache_data): Rename to ...
5965 (set_thread_regcache_data): ... this.
5966 (free_one_thread): Update.
5967 * linux-low.h (get_thread_lwp): Update.
5968 * regcache.c (get_thread_regcache): Update.
5969 (regcache_invalidate_thread): Update.
5970 (free_register_cache_thread): Update.
5971 * win32-i386-low.c (update_debug_registers_callback): Update.
5972 (win32_get_current_dr): Update.
5973 * win32-low.c (thread_rec): Update.
5974 (delete_thread_info): Update.
5975 (continue_one_thread): Update.
5976 (suspend_one_thread): Update.
5978 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
5980 * inferiors.c (set_inferior_target_data): Remove.
5981 * inferiors.h (set_inferior_target_data): Remove.
5983 2017-08-18 Yao Qi <yao.qi@linaro.org>
5985 * Makefile.in (OBS): Add selftest.o.
5986 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
5987 * configure, config.in: Re-generated.
5988 * server.c: Include common/sefltest.h.
5989 (captured_main): Handle option --selftest.
5991 2017-08-09 Yao Qi <yao.qi@linaro.org>
5993 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
5994 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
5995 i386-avx-mpx.o and i386-mmx.o.
5996 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
5997 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
5998 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
5999 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6000 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6001 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6002 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6003 i386/amd64-avx-mpx.xml.
6005 2017-08-09 Yao Qi <yao.qi@linaro.org>
6007 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6008 and x32-avx-avx512.o.
6009 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6010 i386/x32-avx-avx512.xml.
6012 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6014 * tracepoint.h (enum class fast_tpoint_collect_result): New
6016 (fast_tracepoint_collecting): Change return type to
6017 fast_tpoint_collect_result.
6018 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6019 * linux-low.h: Include tracepoint.h.
6020 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6021 fast_tpoint_collect_result.
6022 * linux-low.c (handle_tracepoints): Adjust.
6023 (linux_fast_tracepoint_collecting): Change return type to
6024 fast_tpoint_collect_result.
6025 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6026 linux_wait_1, stuck_in_jump_pad_callback,
6027 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6028 proceed_one_lwp): Adjust to type change.
6030 2017-07-10 Yao Qi <yao.qi@linaro.org>
6032 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6034 2017-06-29 Yao Qi <yao.qi@linaro.org>
6036 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6038 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6040 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6042 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6044 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6046 * linux-low.c (linux_create_inferior): Adjust code to access the
6047 environment information via 'gdb_environ' class.
6048 * lynx-low.c (lynx_create_inferior): Likewise.
6049 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6050 (get_environ): Return a pointer to 'our_environ'.
6051 (captured_main): Initialize 'our_environ'.
6052 * server.h (get_environ): Adjust prototype.
6053 * spu-low.c (spu_create_inferior): Adjust code to access the
6054 environment information via 'gdb_environ' class.
6056 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6058 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6059 usage of "register" keyword.
6061 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6063 * configure: Re-generate.
6065 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6067 * configure: Re-generate.
6069 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6071 * Makefile.in (COMPILE.pre): Add "-x c++".
6073 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6075 * fork-child.c: Conditionally include <signal.h>.
6077 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6079 * server.c (handle_general_set): Handle new packet
6080 "QStartupWithShell".
6081 (handle_query): Add "QStartupWithShell" to the list of supported
6083 (gdbserver_usage): Add help text explaining the
6084 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6086 (captured_main): Recognize and act upon the presence of the new
6089 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6090 Pedro Alves <palves@redhat.com>
6092 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6093 * configure: Regenerate.
6094 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6096 (i[34567]86-*-lynxos*): Likewise.
6097 (spu*-*-*): Likewise.
6098 * fork-child.c: New file.
6099 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6101 (linux_ptrace_fun): New function.
6102 (linux_create_inferior): Adjust function prototype to reflect
6103 change on "target.h". Adjust function code to use
6105 (linux_request_interrupt): Delete "signal_pid".
6106 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6107 (lynx_ptrace_fun): New function.
6108 (lynx_create_inferior): Adjust function prototype to reflect
6109 change on "target.h". Adjust function code to use
6111 * nto-low.c (nto_create_inferior): Adjust function prototype and
6112 code to reflect change on "target.h". Update comments.
6113 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6114 "common-terminal.h" and "environ.h".
6115 (terminal_fd): Moved to fork-child.c.
6116 (old_foreground_pgrp): Likewise.
6117 (restore_old_foreground_pgrp): Likewise.
6118 (last_status): Make it global.
6119 (last_ptid): Likewise.
6120 (our_environ): New variable.
6121 (startup_with_shell): Likewise.
6122 (program_name): Likewise.
6123 (program_argv): Rename to...
6124 (program_args): ...this.
6125 (wrapper_argv): New variable.
6126 (start_inferior): Delete function.
6127 (get_exec_wrapper): New function.
6128 (get_exec_file): Likewise.
6129 (get_environ): Likewise.
6130 (prefork_hook): Likewise.
6131 (post_fork_inferior): Likewise.
6132 (postfork_hook): Likewise.
6133 (postfork_child_hook): Likewise.
6134 (handle_v_run): Update code to deal with arguments coming from the
6135 remote host. Update calls from "start_inferior" to
6137 (captured_main): Likewise. Initialize environment variable. Call
6139 * server.h (post_fork_inferior): New prototype.
6140 (get_environ): Likewise.
6141 (last_status): Declare.
6142 (last_ptid): Likewise.
6143 (signal_pid): Likewise.
6144 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6145 (spu_ptrace_fun): New function.
6146 (spu_create_inferior): Adjust function prototype to reflect change
6147 on "target.h". Adjust function code to use "fork_inferior".
6148 * target.c (target_terminal_init): New function.
6149 (target_terminal_inferior): Likewise.
6150 (target_terminal_ours): Likewise.
6151 * target.h: Include <vector>.
6152 (struct target_ops) <create_inferior>: Update prototype.
6153 (create_inferior): Update macro.
6154 * utils.c (gdb_flush_out_err): New function.
6155 * win32-low.c (win32_create_inferior): Adjust function prototype
6156 and code to reflect change on "target.h".
6158 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6160 * inferiors.c (switch_to_thread): New function.
6162 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6164 * Makefile.in (SFILE): Add "common/job-control.c".
6165 (OBS): Add "job-control.o".
6167 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6169 * Makefile: Remove "@host_makefile_frag@".
6171 2017-05-05 Pedro Alves <palves@redhat.com>
6173 * configure: Regenerate.
6175 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6177 * configure: Regenerate.
6179 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6181 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6182 software_single_step change of return type to
6183 std::vector<CORE_ADDR>.
6184 * linux-low.c (install_software_single_step_breakpoints):
6186 * linux-low.h (install_software_single_step_breakpoints):
6189 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6191 * remote-utils.c: Include "gdb_termios.h" instead of
6193 * terminal.h: Delete file.
6195 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6197 * server.c: Include <vector>.
6198 <program_argv, wrapper_argv>: Convert to std::vector.
6199 (start_inferior): Rewrite function to use C++.
6200 (handle_v_run): Likewise. Update code that calculates the argv
6201 based on the vRun packet; use C++.
6202 (captured_main): Likewise.
6204 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6206 * server.c (handle_v_cont): Initialize thread_resume::thread
6209 2017-04-05 Pedro Alves <palves@redhat.com>
6211 * configure: Regenerate.
6213 2017-04-05 Pedro Alves <palves@redhat.com>
6215 * gdbreplay.c (sync_error): Constify.
6216 * linux-x86-low.c (push_opcode): Constify.
6218 2017-04-05 Pedro Alves <palves@redhat.com>
6220 * win32-low.c (get_child_debug_event)
6221 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6222 Report TARGET_WAITKIND_SPURIOUS instead.
6224 2017-04-05 Pedro Alves <palves@redhat.com>
6226 * remote-utils.c (remote_prepare, remote_open): Constify.
6227 * remote-utils.h (remote_prepare, remote_open): Constify.
6228 * server.c (captured_main): Constify 'port' handling.
6230 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6232 * Makefile.in (clean): Clear .deps.
6234 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6236 * .gitignore: Remove generated files, replace with wildcard.
6237 * (clean): Replace removal of generated files with wildcard.
6238 (version.c): Replace with...
6239 (version-generated.c): ...this.
6240 (xml-builtin.c): Replace with...
6241 (xml-builtin-generated.c): ...this.
6242 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6243 (%.c: *regformats*): Replace with...
6244 (%-generated.c: *regformats*): ...this.
6246 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6248 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6249 (xtensa_fill_gregset): Call collect_register_by_name for
6251 (xtensa_store_gregset): Call supply_register_by_name for
6254 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6256 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6257 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6258 (xtensa_store_gregset): Call supply_register for all registers in
6259 a0_regnum..a0_regnum + C0_NREGS range.
6261 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6263 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6264 (ax-ipa.o: ax.c): Remove.
6265 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6266 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6267 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6268 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6269 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6271 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6273 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6274 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6275 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6276 (errors-ipa.o: ../common/errors.c): Remove.
6277 (format-ipa.o: ../common/format.c): Remove.
6278 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6280 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6282 * Makefile.in (%-ipa.o: %.c): New rule.
6283 (tracepoint-ipa.o: tracepoint.c): Remove.
6284 (utils-ipa.o: utils.c): Remove.
6285 (remote-utils-ipa.o: remote-utils.c): Remove.
6286 (regcache-ipa.o: regcache.c): Remove.
6287 (i386-linux-ipa.o: i386-linux.c): Remove.
6288 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6289 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6290 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6291 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6292 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6293 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6294 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6295 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6296 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6297 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6298 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6299 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6300 (aarch64-ipa.o: aarch64.c): Remove.
6301 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6302 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6303 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6304 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6305 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6306 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6307 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6308 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6309 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6310 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6311 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6312 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6313 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6314 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6315 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6316 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6317 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6318 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6319 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6320 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6321 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6322 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6323 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6324 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6325 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6326 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6327 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6328 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6329 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6330 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6331 (tdesc-ipa.o: tdesc.c): Remove.
6332 (x32-linux-ipa.o: x32-linux.c): Remove.
6333 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6334 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6336 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6338 * Makefile.in (%.o: ../arch/%.c): New rule.
6339 (arm.o: ../arch/arm.c): Remove.
6340 (arm-linux.o: ../arch/arm-linux.c): Remove.
6341 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6342 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6344 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6346 * Makefile.in (%.o: ../nat/%.c): New rule.
6347 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6348 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6349 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6350 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6351 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6352 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6353 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6354 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6355 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6356 (linux-personality.o: ../nat/linux-personality.c): Remove.
6357 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6358 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6359 (x86-linux.o: ../nat/x86-linux.c): Remove.
6360 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6361 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6363 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6365 * Makefile.in (%.o: ../common/%.c): New rule.
6366 (signals.o: ../common/signals.c): Remove.
6367 (print-utils.o: ../common/print-utils.c): Remove.
6368 (rsp-low.o: ../common/rsp-low.c): Remove.
6369 (common-utils.o: ../common/common-utils.c): Remove.
6370 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6371 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6372 (vec.o: ../common/vec.c): Remove.
6373 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
6374 (xml-utils.o: ../common/xml-utils.c): Remove.
6375 (ptid.o: ../common/ptid.c): Remove.
6376 (buffer.o: ../common/buffer.c): Remove.
6377 (format.o: ../common/format.c): Remove.
6378 (filestuff.o: ../common/filestuff.c): Remove.
6379 (agent.o: ../common/agent.c): Remove.
6380 (errors.o: ../common/errors.c): Remove.
6381 (environ.o: ../common/environ.c): Remove.
6382 (common-debug.o: ../common/common-debug.c): Remove.
6383 (cleanups.o: ../common/cleanups.c): Remove.
6384 (common-exceptions.o: ../common/common-exceptions.c): Remove.
6385 (fileio.o: ../common/fileio.c): Remove.
6386 (common-regcache.o: ../common/common-regcache.c): Remove.
6387 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
6388 (new-op.o: ../common/new-op.c): Remove.
6389 (btrace-common.o: ../common/btrace-common.c): Remove.
6391 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6393 * Makefile.in (%.o: ../target/%.c): New rule.
6394 (waitstatus.o: ../target/waitstatus.c): Remove.
6396 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6399 (%.c: ../regformats/%.dat,
6400 (%.c: ../regformats/arm/%.dat,
6401 (%.c: ../regformats/i386/%.dat,
6402 (%.c: ../regformats/rs6000/%.dat): New rules.
6403 (aarch64.c): Remove.
6404 (reg-arm.c): Remove.
6405 (arm-with-iwmmxt.c): Remove.
6406 (arm-with-vfpv2.c): Remove.
6407 (arm-with-vfpv3.c): Remove.
6408 (arm-with-neon.c): Remove.
6409 (reg-bfin.c): Remove.
6410 (reg-cris.c): Remove.
6411 (reg-crisv32.c): Remove.
6413 (i386-linux.c): Remove.
6414 (i386-avx.c): Remove.
6415 (i386-avx-linux.c): Remove.
6416 (i386-avx-avx512.c): Remove.
6417 (i386-avx-avx512-linux.c): Remove.
6418 (i386-mpx.c): Remove.
6419 (i386-mpx-linux.c): Remove.
6420 (i386-avx-mpx-avx512-pku.c): Remove.
6421 (i386-avx-mpx-avx512-pku-linux.c): Remove.
6422 (i386-avx-mpx.c): Remove.
6423 (i386-avx-mpx-linux.c): Remove.
6424 (i386-mmx.c): Remove.
6425 (i386-mmx-linux.c): Remove.
6426 (reg-ia64.c): Remove.
6427 (reg-m32r.c): Remove.
6428 (reg-m68k.c): Remove.
6430 (mips-linux.c): Remove.
6431 (mips-dsp-linux.c): Remove.
6432 (mips64-linux.c): Remove.
6433 (mips64-dsp-linux.c): Remove.
6434 (nios2-linux.c): Remove.
6435 (powerpc-32.c): Remove.
6436 (powerpc-32l.c): Remove.
6437 (powerpc-altivec32l.c): Remove.
6438 (powerpc-cell32l.c): Remove.
6439 (powerpc-vsx32l.c): Remove.
6440 (powerpc-isa205-32l.c): Remove.
6441 (powerpc-isa205-altivec32l.c): Remove.
6442 (powerpc-isa205-vsx32l.c): Remove.
6443 (powerpc-e500l.c): Remove.
6444 (powerpc-64l.c): Remove.
6445 (powerpc-altivec64l.c): Remove.
6446 (powerpc-cell64l.c): Remove.
6447 (powerpc-vsx64l.c): Remove.
6448 (powerpc-isa205-64l.c): Remove.
6449 (powerpc-isa205-altivec64l.c): Remove.
6450 (powerpc-isa205-vsx64l.c): Remove.
6451 (s390-linux32.c): Remove.
6452 (s390-linux32v1.c): Remove.
6453 (s390-linux32v2.c): Remove.
6454 (s390-linux64.c): Remove.
6455 (s390-linux64v1.c): Remove.
6456 (s390-linux64v2.c): Remove.
6457 (s390-te-linux64.c): Remove.
6458 (s390-vx-linux64.c): Remove.
6459 (s390-tevx-linux64.c): Remove.
6460 (s390x-linux64.c): Remove.
6461 (s390x-linux64v1.c): Remove.
6462 (s390x-linux64v2.c): Remove.
6463 (s390x-te-linux64.c): Remove.
6464 (s390x-vx-linux64.c): Remove.
6465 (s390x-tevx-linux64.c): Remove.
6466 (tic6x-c64xp-linux.c): Remove.
6467 (tic6x-c64x-linux.c): Remove.
6468 (tic6x-c62x-linux.c): Remove.
6470 (reg-sparc64.c): Remove.
6471 (reg-spu.c): Remove.
6473 (amd64-linux.c): Remove.
6474 (amd64-avx.c): Remove.
6475 (amd64-avx-linux.c): Remove.
6476 (amd64-avx-avx512.c): Remove.
6477 (amd64-avx-avx512-linux.c): Remove.
6478 (amd64-mpx.c): Remove.
6479 (amd64-mpx-linux.c): Remove.
6480 (amd64-avx-mpx-avx512-pku.c): Remove.
6481 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
6482 (amd64-avx-mpx.c): Remove.
6483 (amd64-avx-mpx-linux.c): Remove.
6485 (x32-linux.c): Remove.
6486 (x32-avx.c): Remove.
6487 (x32-avx-linux.c): Remove.
6488 (x32-avx-avx512.c): Remove.
6489 (x32-avx-avx512-linux.c): Remove.
6490 (reg-xtensa.c): Remove.
6491 (reg-tilegx.c): Remove.
6492 (reg-tilegx32.c): Remove.
6494 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
6496 * Makefile.in (SFILES): Add "common/environ.c".
6497 (OBJS): Add "common/environ.h".
6499 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6501 * configure.ac: Check if the fs_base and gs_base members of
6502 `struct user_regs_struct' exist.
6503 * config.in: Regenerated.
6504 * configure: Likewise.
6506 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
6508 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
6510 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
6511 (get_next_pcs_syscall_next_pc): Likewise.
6513 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
6515 * win32-i386-low.c: Fix incorrect reference to a couple source files.
6516 * nto-x86-low.c: Likewise.
6518 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
6520 * Makefile.in: Include disable-implicit-rules.mk.
6522 2016-11-23 Pedro Alves <palves@redhat.com>
6524 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
6525 (debug_vprintf): Use std::chrono::steady_clock instead of
6526 gettimeofday. Use '.' instead of ':'.
6527 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
6528 (get_timestamp): Use std::chrono::steady_clock instead of
6531 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6533 * Makefile.in: Fix whitespace formatting.
6535 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6537 * Makefile.in (SFILES, OBS): Flatten list and order
6540 2016-11-23 Pedro Alves <palves@redhat.com>
6542 * event-loop.c (handle_file_event): Use warning.
6543 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
6544 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6547 2016-11-23 Pedro Alves <palves@redhat.com>
6549 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
6551 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
6552 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
6553 debug_printf and debug_flush for debug output.
6554 * server.c (handle_general_set): Likewise.
6555 * thread-db.c (try_thread_db_load): Use debug_printf for debug
6558 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6560 * Makefile.in (.c.o): Replace rule with ...
6561 (%.o: %.c): ... this one.
6563 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6565 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
6566 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
6568 * configure.ac: Remove checks for the make program.
6569 * configure: Re-generate.
6571 2016-10-28 Pedro Alves <palves@redhat.com>
6573 * Makefile.in (CXX_DIALECT): Get from configure.
6574 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
6575 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
6576 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
6577 * config.in: Regenerate.
6578 * configure: Regenerate.
6580 2016-10-27 Yao Qi <yao.qi@linaro.org>
6582 * linux-low.c (linux_supports_range_stepping): Return true if
6583 can_software_single_step return true.
6585 2016-10-27 Yao Qi <yao.qi@linaro.org>
6587 * inferiors.c (find_inferior_in_random): New function.
6588 * inferiors.h (find_inferior_in_random): Declare.
6589 * linux-low.c (linux_wait_for_event_filtered): Call
6590 find_inferior_in_random instead of find_inferior.
6592 2016-10-27 Yao Qi <yao.qi@linaro.org>
6594 * linux-low.c (linux_wait_1): If single-step breakpoints are
6595 inserted, remove them.
6597 2016-10-26 Pedro Alves <palves@redhat.com>
6599 * linux-low.c (handle_extended_wait): Link parent/child fork
6601 (linux_wait_1): Unlink them.
6602 (linux_set_resume_request): Ignore resume requests for
6603 already-resumed and unhandled fork child threads.
6604 * linux-low.h (struct lwp_info) <fork_relative>: New field.
6605 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
6607 (handle_v_requests) <vCont>: Don't call require_running.
6608 * server.h (in_queued_stop_replies): New declaration.
6610 2016-10-24 Yao Qi <yao.qi@linaro.org>
6613 * linux-aarch64-low.c (append_insns): Cast the return value to
6616 2016-10-10 Yao Qi <yao.qi@linaro.org>
6618 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
6620 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
6622 * target.c (target_supports_multi_process): New function, moved
6624 * target.h (target_supports_multi_process): ... here. Remove
6627 2016-10-05 Tom Tromey <tom@tromey.com>
6630 * tracepoint.c (handle_tracepoint_bkpts): Check
6631 ipa_error_tracepoint, not ipa_stopping_tracepoint.
6633 2016-10-05 Yao Qi <yao.qi@linaro.org>
6635 * configure.srv: Update the path of arm-*.xml files.
6637 2016-10-05 Terry Guo <terry.guo@arm.com>
6638 Yao Qi <yao.qi@linaro.org>
6640 * Makefile.in: Adjust the path of rules.
6641 * configure.srv: Update the path of xml files.
6642 * regformats/arm-with-iwmmxt.dat: Regenerated.
6643 * regformats/arm-with-neon.dat: Likewise.
6644 * regformats/arm-with-vfpv2.dat: Likewise.
6645 * regformats/arm-with-vfpv3.dat Likewise.
6647 2016-09-30 Yao Qi <yao.qi@linaro.org>
6650 * target.c (target_stop_and_wait): Don't call
6651 target_continue_no_signal, use resume_stop instead.
6653 2016-09-26 Yao Qi <yao.qi@linaro.org>
6655 * linux-low.c (linux_wait_1): Call debug_exit.
6657 2016-09-23 Pedro Alves <palves@redhat.com>
6659 * Makefile.in (SFILES): Add common/new-op.c.
6660 (OBS): Add common/new-op.o.
6661 (new-op.o): New rule.
6663 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
6665 * .gitinore: Ignore more files.
6667 2016-09-21 Yao Qi <yao.qi@linaro.org>
6669 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
6672 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
6674 * server.c (start_inferior): Call target_mourn_inferior instead of
6675 mourn_inferior; pass ptid_t argument to it.
6677 (handle_target_event): Likewise.
6678 * target.c (target_mourn_inferior): New function.
6679 * target.h (mourn_inferior): Delete macro.
6681 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
6683 * linux-low.c (lwp_is_stepping): New function.
6685 2016-09-06 Carl Love <cel@us.ibm.com>
6687 * server.c (start_inferior): Fixed comment, requested comment change
6688 didn't get updated correctly. Removed reference to ptrace () call as
6689 it is only true on Linux systems.
6691 2016-09-06 Carl Love <cel@us.ibm.com>
6693 * server.c (start_inferior): Do not call
6694 function target_post_create_inferior () if the
6695 inferior process has already exited.
6697 2016-09-05 Pedro Alves <palves@redhat.com>
6699 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
6700 (COMPILE.pre, CC_LD): Use CXX directly.
6701 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
6702 * acinclude.m4: Don't include build-with-cxx.m4.
6703 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
6704 * configure: Regenerate.
6706 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
6709 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
6710 call writing data to own_buf.
6712 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6714 * target.c (mywait): Call target_wait instead of
6716 (target_wait): New function.
6718 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6720 * server.c (start_inferior): New variable 'ptid'. Replace calls
6721 to the_target->resume by target_continue{,_no_signal}, depending
6723 * target.c (target_stop_and_wait): Call target_continue_no_signal
6724 instead of the_target->resume.
6725 (target_continue): New function.
6727 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6729 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
6731 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6734 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
6736 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
6737 * linux-arm-low.c (ps_get_thread_area): Likewise.
6738 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
6739 * linux-m68k-low.c (ps_get_thread_area): Likewise.
6740 * linux-mips-low.c (ps_get_thread_area): Likewise.
6741 * linux-nios2-low.c (ps_get_thread_area): Likewise.
6742 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
6743 * linux-x86-low.c (ps_get_thread_area): Likewise.
6744 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
6746 2016-08-19 Pedro Alves <palves@redhat.com>
6748 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
6750 2016-08-19 Pedro Alves <palves@redhat.com>
6752 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
6753 comment. Use memcpy instead of casting through unsigned long.
6755 2016-08-19 Pedro Alves <palves@redhat.com>
6757 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
6758 allocating around 0x80000000.
6760 2016-08-19 Pedro Alves <palves@redhat.com>
6763 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
6764 (x32-avx512-linux-ipa.o): New rules.
6765 * configure.ac (x86_64-*-linux*): New x32 check.
6766 * configure.srv (ipa_x32_linux_regobj): New.
6767 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
6768 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
6770 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
6772 * configure: Regenerate.
6774 2016-08-09 Pedro Alves <palves@redhat.com>
6777 * Makefile.in (OBS): Add signals-state-save-restore.o.
6778 (signals-state-save-restore.o): New rule.
6779 * config.in: Regenerate.
6780 * configure: Regenerate.
6781 * linux-low.c: Include "signals-state-save-restore.h".
6782 (linux_create_inferior): Call
6783 restore_original_signals_state.
6784 * server.c: Include "dispositions-save-restore.h".
6785 (captured_main): Call save_original_signals_state.
6787 2016-08-05 Pedro Alves <palves@redhat.com>
6789 * configure: Regenerate.
6791 2016-08-04 Yao Qi <yao.qi@linaro.org>
6793 * linux-low.c (regsets_fetch_inferior_registers): Check
6794 errno is ESRCH or not.
6796 2016-08-02 Yao Qi <yao.qi@linaro.org>
6798 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
6799 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
6800 (thread_db_load_search): Update.
6801 (try_thread_db_load_1): Don't look for td_ta_event_addr,
6802 td_ta_set_event and td_ta_event_getmsg.
6804 2016-07-26 Pedro Alves <palves@redhat.com>
6807 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
6808 of unsigned long for 64-bit registers and use uint32_t instead of
6809 unsigned int for 32-bit registers.
6811 2016-07-26 Pedro Alves <palves@redhat.com>
6813 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
6816 2016-07-21 Tom Tromey <tom@tromey.com>
6818 * configure: Rebuild.
6820 2016-07-21 Yao Qi <yao.qi@linaro.org>
6822 * mem-break.c (find_gdb_breakpoint): Cast bp to
6823 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
6825 2016-07-21 Yao Qi <yao.qi@linaro.org>
6827 * server.c (handle_v_requests): Support s and S actions
6828 if target_supports_software_single_step return true.
6830 2016-07-21 Yao Qi <yao.qi@linaro.org>
6832 * linux-low.c (resume_stopped_resumed_lwps): If resume request
6833 is resume_step, call maybe_hw_step.
6834 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
6836 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
6838 (proceed_one_lwp): If resume request is resume_step, install
6839 reinsert breakpoints and call maybe_hw_step.
6841 2016-07-21 Yao Qi <yao.qi@linaro.org>
6843 * linux-low.c (proceed_one_lwp): Declare.
6844 (linux_resume_one_thread): Remove local variable 'step'.
6845 Lift code enqueue signal. Call proceed_one_lwp instead of
6846 linux_resume_one_lwp.
6848 2016-07-21 Yao Qi <yao.qi@linaro.org>
6850 * linux-low.c (linux_resume_one_thread): Call
6851 enqueue_pending_signal.
6853 2016-07-21 Yao Qi <yao.qi@linaro.org>
6855 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6856 * inferiors.c (do_restore_current_thread_cleanup): New function.
6857 (make_cleanup_restore_current_thread): Likewise.
6858 * linux-low.c (install_software_single_step_breakpoints): Call
6859 make_cleanup_restore_current_thread. Switch current_thread to
6862 2016-07-21 Yao Qi <yao.qi@linaro.org>
6864 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
6865 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
6866 (clone_one_breakpoint): Likewise.
6867 (delete_reinsert_breakpoints): Change parameter to thread.
6869 (has_reinsert_breakpoints): Likewise.
6870 (uninsert_reinsert_breakpoints): Likewise.
6871 (reinsert_reinsert_breakpoints): Likewise.
6872 * mem-break.h (set_reinsert_breakpoint): Update declaration.
6873 (delete_reinsert_breakpoints): Likewise.
6874 (reinsert_reinsert_breakpoints): Likewise.
6875 (uninsert_reinsert_breakpoints): Likewise.
6876 (has_reinsert_breakpoints): Likewise.
6878 2016-07-21 Yao Qi <yao.qi@linaro.org>
6880 * inferiors.c (get_thread_process): Make parameter const.
6881 * inferiors.h (get_thread_process): Update declaration.
6882 * mem-break.c (clone_all_breakpoints): Remove all parameters.
6883 Add new parameters child_thread and parent_thread. Callers
6885 * mem-break.h (clone_all_breakpoints): Update declaration.
6887 2016-07-21 Yao Qi <yao.qi@linaro.org>
6889 * mem-break.c (struct breakpoint) <cond_list>: Remove.
6890 <command_list, handler>: Remove.
6891 (struct gdb_breakpoint): New.
6892 (struct other_breakpoint): New.
6893 (struct reinsert_breakpoint): New.
6894 (is_gdb_breakpoint): New function.
6895 (any_persistent_commands): Update command_list if
6896 is_gdb_breakpoint returns true.
6897 (set_breakpoint): Create breakpoints according to their types.
6898 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
6899 (set_gdb_breakpoint_1): Likewise.
6900 (set_gdb_breakpoint): Likewise.
6901 (clear_breakpoint_conditions): Change parameter type to
6902 'struct gdb_breakpoint *'.
6903 (clear_breakpoint_commands): Likewise.
6904 (clear_breakpoint_conditions_and_commands): Likewise.
6905 (add_condition_to_breakpoint): Likewise.
6906 (add_breakpoint_condition): Likewise.
6907 (add_commands_to_breakpoint): Likewise.
6908 (check_breakpoints): Check other_breakpoint.
6909 (clone_one_breakpoint): Clone breakpopint according to its type.
6910 * mem-break.h (struct gdb_breakpoint): Declare.
6911 (set_gdb_breakpoint): Update declaration.
6912 (clear_breakpoint_conditions_and_commands): Likewise.
6913 (add_breakpoint_condition): Likewise.
6914 (add_breakpoint_commands): Likewise.
6915 * server.c (process_point_options): Change parameter type to
6916 'struct gdb_breakpoint *'.
6918 2016-07-21 Yao Qi <yao.qi@linaro.org>
6920 * mem-break.c (set_breakpoint_at): Rename it to ...
6921 (set_breakpoint_type_at): ... it.
6922 (set_breakpoint_at): Call set_breakpoint_type_at.
6923 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
6924 * mem-break.h (set_breakpoint_at): Update comments.
6926 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
6928 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
6930 (nios2_store_gregset): Likewise.
6932 2016-07-01 Pedro Alves <palves@redhat.com>
6933 Antoine Tremblay <antoine.tremblay@ericsson.com>
6935 * linux-low.c: Change interface to take the target lwp_info
6936 pointer directly and return void. Handle detaching from a zombie
6938 (linux_detach_lwp_callback): New function.
6939 (linux_detach): Detach from the leader thread after detaching from
6942 2016-06-28 Yao Qi <yao.qi@linaro.org>
6944 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
6945 for variable new_offset.
6946 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6947 (aarch64_ftrace_insn_reloc_cb): Likewise.
6948 (aarch64_ftrace_insn_reloc_tb): Likewise.
6949 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
6950 PRIx64 instead of PRIx32.
6952 2016-06-28 Yao Qi <yao.qi@linaro.org>
6954 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
6955 (the_low_target): Install arm_get_syscall_trapinfo.
6957 2016-06-28 Yao Qi <yao.qi@linaro.org>
6959 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
6961 (the_low_target): Install aarch64_get_syscall_trapinfo.
6963 2016-06-28 Yao Qi <yao.qi@linaro.org>
6965 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
6967 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
6968 Remove parameter sysno.
6969 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
6972 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6974 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
6975 (s390_emit_ne_goto): Likewise.
6976 (s390_emit_lt_goto): Likewise.
6977 (s390_emit_le_goto): Likewise.
6978 (s390_emit_gt_goto): Likewise.
6979 (s390_emit_ge_goto): Likewise.
6980 (s390x_emit_eq_goto): Likewise.
6981 (s390x_emit_ne_goto): Likewise.
6982 (s390x_emit_lt_goto): Likewise.
6983 (s390x_emit_le_goto): Likewise.
6984 (s390x_emit_gt_goto): Likewise.
6985 (s390x_emit_ge_goto): Likewise.
6986 (s390_emit_ops_impl): Mark variable static.
6987 (s390x_emit_ops): Likewise.
6989 2016-06-17 Yao Qi <yao.qi@linaro.org>
6991 * linux-low.c (handle_extended_wait): Call
6992 uninsert_reinsert_breakpoints for the parent process. Remove
6993 reinsert breakpoints from the child process. Reinsert them to
6994 the parent process when vfork is done.
6995 * mem-break.c (uninsert_reinsert_breakpoints): New function.
6996 (reinsert_reinsert_breakpoints): New function.
6997 * mem-break.h (uninsert_reinsert_breakpoints): Declare
6998 (reinsert_reinsert_breakpoints): Declare.
7000 2016-06-17 Yao Qi <yao.qi@linaro.org>
7002 * linux-low.c (handle_extended_wait): If the parent is doing
7003 step-over, remove the reinsert breakpoints from the forked child.
7005 2016-06-17 Yao Qi <yao.qi@linaro.org>
7007 * linux-low.c (unsuspend_all_lwps): Declare.
7008 (linux_low_filter_event): If thread exited, call finish_step_over.
7009 If step-over is finished, unsuspend other threads.
7011 2016-06-17 Yao Qi <yao.qi@linaro.org>
7013 * linux-low.c (linux_resume_one_lwp_throw): Assert
7014 has_reinsert_breakpoints returns false.
7015 * mem-break.c (delete_disabled_breakpoints): Assert
7016 bp type isn't reinsert_breakpoint.
7018 2016-06-17 Yao Qi <yao.qi@linaro.org>
7020 * linux-low.c (maybe_hw_step): New function.
7021 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7022 (finish_step_over): Switch current_thread to lwp temporarily,
7023 and assert has_reinsert_breakpoints returns true.
7024 (proceed_one_lwp): Call maybe_hw_step.
7025 * mem-break.c (has_reinsert_breakpoints): New function.
7026 * mem-break.h (has_reinsert_breakpoints): Declare.
7028 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7030 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7032 2016-05-17 Yao Qi <yao.qi@linaro.org>
7034 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7035 instead of find_inferior.
7037 2016-05-05 Yao Qi <yao.qi@linaro.org>
7039 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7040 Initialize res to zero.
7042 2016-05-05 Yao Qi <yao.qi@linaro.org>
7044 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7047 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7049 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7050 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7051 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7053 2016-04-28 Par Olsson <par.olsson@windriver.com>
7054 Simon Marchi <simon.marchi@ericsson.com>
7056 * tracepoint.c (write_inferior_int8): New function.
7057 (cmd_qtenable_disable): Write enable flag using
7058 write_inferior_int8.
7060 2016-04-25 Yao Qi <yao.qi@linaro.org>
7062 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7063 (need_step_over_p): Return zero if the LWP has pending signals
7064 can be delivered on software single step target.
7066 2016-04-25 Yao Qi <yao.qi@linaro.org>
7068 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7069 return instead of error.
7071 2016-04-22 Yao Qi <yao.qi@linaro.org>
7073 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7076 2016-04-22 Yao Qi <yao.qi@linaro.org>
7078 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7079 signal when stepping over breakpoint with software single
7082 2016-04-21 Pedro Alves <palves@redhat.com>
7084 * linux-s390-low.c (s390_collect_ptrace_register)
7085 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7087 (s390_check_regset): Use void * instead of gdb_byte *.
7089 2016-04-20 Pedro Alves <palves@redhat.com>
7091 * configure: Renegerate.
7093 2016-04-20 Yao Qi <yao.qi@linaro.org>
7095 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7096 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7098 (arm_store_gregset): Likewise.
7100 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7102 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7103 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7104 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7105 (amd64-avx-mpx-linux.c): New rules.
7106 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7107 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7108 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7109 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7110 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7111 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7112 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7113 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7114 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7115 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7116 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7117 * linux-x86-low.c (x86_linux_read_description): Add case for
7118 X86_XSTATE_AVX_MPX_MASK.
7119 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7120 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7121 init_registers_i386_avx_mpx_linux.
7122 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7123 (initialize_low_tracepoint): Call
7124 init_registers_i386_avx_mpx_linux.
7125 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7126 (initialize_low_tracepoint): Call
7127 init_registers_amd64_avx_mpx_linux.
7128 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7129 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7130 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7133 2016-04-18 Pedro Alves <palves@redhat.com>
7135 * configure: Regenerate.
7137 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7139 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7140 (aarch64_emit_sub): Likewise.
7142 2016-04-12 Pedro Alves <palves@redhat.com>
7144 * utils.c (prepare_to_throw_exception): Delete.
7146 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7148 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7150 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7152 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7154 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7156 * linux-aarch64-ipa.c: Add <elf.h> include.
7157 * linux-ppc-ipa.c: Add <elf.h> include.
7158 * linux-s390-ipa.c: Add <elf.h> include.
7160 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7162 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7163 (get_raw_reg_ptr): Likewise.
7164 (get_trace_state_variable_value_ptr): Likewise.
7165 (set_trace_state_variable_value_ptr): Likewise.
7166 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7169 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7170 Marcin Kościelnicki <koriakin@0x04.net>
7173 * linux-ppc-low.c (emit_insns): New function.
7174 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7175 (ppc_emit_prologue): New function.
7176 (ppc_emit_epilogue): New function.
7177 (ppc_emit_add): New function.
7178 (ppc_emit_sub): New function.
7179 (ppc_emit_mul): New function.
7180 (ppc_emit_lsh): New function.
7181 (ppc_emit_rsh_signed): New function.
7182 (ppc_emit_rsh_unsigned): New function.
7183 (ppc_emit_ext): New function.
7184 (ppc_emit_zero_ext): New function.
7185 (ppc_emit_log_not): New function.
7186 (ppc_emit_bit_and): New function.
7187 (ppc_emit_bit_or): New function.
7188 (ppc_emit_bit_xor): New function.
7189 (ppc_emit_bit_not): New function.
7190 (ppc_emit_equal): New function.
7191 (ppc_emit_less_signed): New function.
7192 (ppc_emit_less_unsigned): New function.
7193 (ppc_emit_ref): New function.
7194 (ppc_emit_const): New function.
7195 (ppc_emit_reg): New function.
7196 (ppc_emit_pop): New function.
7197 (ppc_emit_stack_flush): New function.
7198 (ppc_emit_swap): New function.
7199 (ppc_emit_stack_adjust): New function.
7200 (ppc_emit_call): New function.
7201 (ppc_emit_int_call_1): New function.
7202 (ppc_emit_void_call_2): New function.
7203 (ppc_emit_if_goto): New function.
7204 (ppc_emit_goto): New function.
7205 (ppc_emit_eq_goto): New function.
7206 (ppc_emit_ne_goto): New function.
7207 (ppc_emit_lt_goto): New function.
7208 (ppc_emit_le_goto): New function.
7209 (ppc_emit_gt_goto): New function.
7210 (ppc_emit_ge_goto): New function.
7211 (ppc_write_goto_address): New function.
7212 (ppc_emit_ops_impl): New static variable.
7213 (ppc64v1_emit_prologue): New function.
7214 (ppc64v2_emit_prologue): New function.
7215 (ppc64_emit_epilogue): New function.
7216 (ppc64_emit_add): New function.
7217 (ppc64_emit_sub): New function.
7218 (ppc64_emit_mul): New function.
7219 (ppc64_emit_lsh): New function.
7220 (ppc64_emit_rsh_signed): New function.
7221 (ppc64_emit_rsh_unsigned): New function.
7222 (ppc64_emit_ext): New function.
7223 (ppc64_emit_zero_ext): New function.
7224 (ppc64_emit_log_not): New function.
7225 (ppc64_emit_bit_and): New function.
7226 (ppc64_emit_bit_or): New function.
7227 (ppc64_emit_bit_xor): New function.
7228 (ppc64_emit_bit_not): New function.
7229 (ppc64_emit_equal): New function.
7230 (ppc64_emit_less_signed): New function.
7231 (ppc64_emit_less_unsigned): New function.
7232 (ppc64_emit_ref): New function.
7233 (ppc64_emit_const): New function.
7234 (ppc64v1_emit_reg): New function.
7235 (ppc64v2_emit_reg): New function.
7236 (ppc64_emit_pop): New function.
7237 (ppc64_emit_stack_flush): New function.
7238 (ppc64_emit_swap): New function.
7239 (ppc64v1_emit_call): New function.
7240 (ppc64v2_emit_call): New function.
7241 (ppc64v1_emit_int_call_1): New function.
7242 (ppc64v2_emit_int_call_1): New function.
7243 (ppc64v1_emit_void_call_2): New function.
7244 (ppc64v2_emit_void_call_2): New function.
7245 (ppc64_emit_if_goto): New function.
7246 (ppc64_emit_eq_goto): New function.
7247 (ppc64_emit_ne_goto): New function.
7248 (ppc64_emit_lt_goto): New function.
7249 (ppc64_emit_le_goto): New function.
7250 (ppc64_emit_gt_goto): New function.
7251 (ppc64_emit_ge_goto): New function.
7252 (ppc64v1_emit_ops_impl): New static variable.
7253 (ppc64v2_emit_ops_impl): New static variable.
7254 (ppc_emit_ops): New function.
7255 (linux_low_target): Wire in ppc_emit_ops.
7257 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7258 Marcin Kościelnicki <koriakin@0x04.net>
7261 * Makefile.in: Add powerpc-*-ipa.o
7262 * configure.srv: Add ipa_obj for powerpc*-linux.
7263 * linux-ppc-ipa.c: New file.
7264 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7266 (PPC_FIELD): New macro.
7267 (PPC_SEXT): New macro.
7268 (PPC_OP6): New macro.
7269 (PPC_BO): New macro.
7270 (PPC_LI): New macro.
7271 (PPC_BD): New macro.
7272 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7273 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7274 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7275 (ppc_get_thread_area): New function.
7276 (is_elfv2_inferior): New function.
7277 (gen_ds_form): New function.
7278 (GEN_STD): New macro.
7279 (GEN_STDU): New macro.
7280 (GEN_LD): New macro.
7281 (GEN_LDU): New macro.
7282 (gen_d_form): New function.
7283 (GEN_ADDI): New macro.
7284 (GEN_ADDIS): New macro.
7285 (GEN_LI): New macro.
7286 (GEN_LIS): New macro.
7287 (GEN_ORI): New macro.
7288 (GEN_ORIS): New macro.
7289 (GEN_LWZ): New macro.
7290 (GEN_STW): New macro.
7291 (GEN_STWU): New macro.
7292 (gen_xfx_form): New function.
7293 (GEN_MFSPR): New macro.
7294 (GEN_MTSPR): New macro.
7295 (GEN_MFCR): New macro.
7296 (GEN_MTCR): New macro.
7297 (GEN_SYNC): New macro.
7298 (GEN_LWSYNC): New macro.
7299 (gen_x_form): New function.
7300 (GEN_OR): New macro.
7301 (GEN_MR): New macro.
7302 (GEN_LWARX): New macro.
7303 (GEN_STWCX): New macro.
7304 (GEN_CMPW): New macro.
7305 (gen_md_form): New function.
7306 (GEN_RLDICL): New macro.
7307 (GEN_RLDICR): New macro.
7308 (gen_i_form): New function.
7310 (GEN_BL): New macro.
7311 (gen_b_form): New function.
7312 (GEN_BNE): New macro.
7313 (GEN_LOAD): New macro.
7314 (GEN_STORE): New macro.
7315 (gen_limm): New function.
7316 (gen_atomic_xchg): New function.
7317 (gen_call): New function.
7318 (ppc_relocate_instruction): New function.
7319 (ppc_install_fast_tracepoint_jump_pad): New function.
7320 (ppc_get_min_fast_tracepoint_insn_len): New function.
7321 (ppc_get_ipa_tdesc_idx): New function.
7322 (the_low_target): Wire in the new functions.
7323 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7325 * linux-ppc-tdesc.h: New file.
7327 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7329 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7330 (alloc_jump_pad_buffer): New function.
7331 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7332 (alloc_jump_pad_buffer): New function.
7333 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7334 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7335 (alloc_jump_pad_buffer): New function.
7336 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7337 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7338 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7339 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7341 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7343 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7344 * linux-amd64-ipa.c: Likewise.
7345 * linux-i386-ipa.c: Likewise.
7346 * linux-s390-ipa.c: Likewise.
7347 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7348 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7349 set_trace_state_variable_value_ptr.
7350 (struct ipa_sym_addresses): Likewise.
7351 (symbol_list): Likewise.
7352 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7353 accessing gdb_collect directly.
7354 (gdb_collect_ptr_type): New typedef.
7355 (get_raw_reg_ptr_type): New typedef.
7356 (get_trace_state_variable_value_ptr_type): New typedef.
7357 (set_trace_state_variable_value_ptr_type): New typedef.
7358 (gdb_collect_ptr): New global.
7359 (get_raw_reg_ptr): New global.
7360 (get_trace_state_variable_value_ptr): New global.
7361 (set_trace_state_variable_value_ptr): New global.
7362 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7363 accessing get_raw_reg directly.
7364 (get_get_tsv_func_addr): Likewise for
7365 get_trace_state_variable_value_ptr.
7366 (get_set_tsv_func_addr): Likewise for
7367 set_trace_state_variable_value_ptr.
7368 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7370 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7372 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
7374 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7376 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
7378 (relocate_instruction): Remove own_buf.
7379 * server.c (own_buf): Make global.
7380 (handle_v_requests): Make global.
7381 * server.h (own_buf): New declaration.
7382 (handle_v_requests): New prototype.
7384 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7387 * linux-s390-low.c (add_insns): New function.
7388 (s390_emit_prologue): New function.
7389 (s390_emit_epilogue): New function.
7390 (s390_emit_add): New function.
7391 (s390_emit_sub): New function.
7392 (s390_emit_mul): New function.
7393 (s390_emit_lsh): New function.
7394 (s390_emit_rsh_signed): New function.
7395 (s390_emit_rsh_unsigned): New function.
7396 (s390_emit_ext): New function.
7397 (s390_emit_log_not): New function.
7398 (s390_emit_bit_and): New function.
7399 (s390_emit_bit_or): New function.
7400 (s390_emit_bit_xor): New function.
7401 (s390_emit_bit_not): New function.
7402 (s390_emit_equal): New function.
7403 (s390_emit_less_signed): New function.
7404 (s390_emit_less_unsigned): New function.
7405 (s390_emit_ref): New function.
7406 (s390_emit_if_goto): New function.
7407 (s390_emit_goto): New function.
7408 (s390_write_goto_address): New function.
7409 (s390_emit_litpool): New function.
7410 (s390_emit_const): New function.
7411 (s390_emit_call): New function.
7412 (s390_emit_reg): New function.
7413 (s390_emit_pop): New function.
7414 (s390_emit_stack_flush): New function.
7415 (s390_emit_zero_ext): New function.
7416 (s390_emit_swap): New function.
7417 (s390_emit_stack_adjust): New function.
7418 (s390_emit_set_r2): New function.
7419 (s390_emit_int_call_1): New function.
7420 (s390_emit_void_call_2): New function.
7421 (s390_emit_eq_goto): New function.
7422 (s390_emit_ne_goto): New function.
7423 (s390_emit_lt_goto): New function.
7424 (s390_emit_le_goto): New function.
7425 (s390_emit_gt_goto): New function.
7426 (s390_emit_ge_goto): New function.
7427 (s390x_emit_prologue): New function.
7428 (s390x_emit_epilogue): New function.
7429 (s390x_emit_add): New function.
7430 (s390x_emit_sub): New function.
7431 (s390x_emit_mul): New function.
7432 (s390x_emit_lsh): New function.
7433 (s390x_emit_rsh_signed): New function.
7434 (s390x_emit_rsh_unsigned): New function.
7435 (s390x_emit_ext): New function.
7436 (s390x_emit_log_not): New function.
7437 (s390x_emit_bit_and): New function.
7438 (s390x_emit_bit_or): New function.
7439 (s390x_emit_bit_xor): New function.
7440 (s390x_emit_bit_not): New function.
7441 (s390x_emit_equal): New function.
7442 (s390x_emit_less_signed): New function.
7443 (s390x_emit_less_unsigned): New function.
7444 (s390x_emit_ref): New function.
7445 (s390x_emit_if_goto): New function.
7446 (s390x_emit_const): New function.
7447 (s390x_emit_call): New function.
7448 (s390x_emit_reg): New function.
7449 (s390x_emit_pop): New function.
7450 (s390x_emit_stack_flush): New function.
7451 (s390x_emit_zero_ext): New function.
7452 (s390x_emit_swap): New function.
7453 (s390x_emit_stack_adjust): New function.
7454 (s390x_emit_int_call_1): New function.
7455 (s390x_emit_void_call_2): New function.
7456 (s390x_emit_eq_goto): New function.
7457 (s390x_emit_ne_goto): New function.
7458 (s390x_emit_lt_goto): New function.
7459 (s390x_emit_le_goto): New function.
7460 (s390x_emit_gt_goto): New function.
7461 (s390x_emit_ge_goto): New function.
7462 (s390_emit_ops): New function.
7463 (struct linux_target_ops): Fill in emit_ops hook.
7465 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7468 * Makefile.in: Add s390 IPA files.
7469 * configure.srv: Build IPA for s390.
7470 * linux-s390-ipa.c: New file.
7471 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
7472 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
7473 (tdesc_s390_linux32): Likewise.
7474 (init_registers_s390_linux32v1): Likewise.
7475 (tdesc_s390_linux32v1): Likewise.
7476 (init_registers_s390_linux32v2): Likewise.
7477 (tdesc_s390_linux32v2): Likewise.
7478 (init_registers_s390_linux64): Likewise.
7479 (tdesc_s390_linux64): Likewise.
7480 (init_registers_s390_linux64v1): Likewise.
7481 (tdesc_s390_linux64v1): Likewise.
7482 (init_registers_s390_linux64v2): Likewise.
7483 (tdesc_s390_linux64v2): Likewise.
7484 (init_registers_s390_te_linux64): Likewise.
7485 (tdesc_s390_te_linux64): Likewise.
7486 (init_registers_s390_vx_linux64): Likewise.
7487 (tdesc_s390_vx_linux64): Likewise.
7488 (init_registers_s390_tevx_linux64): Likewise.
7489 (tdesc_s390_tevx_linux64): Likewise.
7490 (init_registers_s390x_linux64): Likewise.
7491 (tdesc_s390x_linux64): Likewise.
7492 (init_registers_s390x_linux64v1): Likewise.
7493 (tdesc_s390x_linux64v1): Likewise.
7494 (init_registers_s390x_linux64v2): Likewise.
7495 (tdesc_s390x_linux64v2): Likewise.
7496 (init_registers_s390x_te_linux64): Likewise.
7497 (tdesc_s390x_te_linux64): Likewise.
7498 (init_registers_s390x_vx_linux64): Likewise.
7499 (tdesc_s390x_vx_linux64): Likewise.
7500 (init_registers_s390x_tevx_linux64): Likewise.
7501 (tdesc_s390x_tevx_linux64): Likewise.
7502 (have_hwcap_s390_vx): New static variable.
7503 (s390_arch_setup): Fill have_hwcap_s390_vx.
7504 (s390_get_thread_area): New function.
7505 (s390_ft_entry_gpr_esa): New const.
7506 (s390_ft_entry_gpr_zarch): New const.
7507 (s390_ft_entry_misc): New const.
7508 (s390_ft_entry_fr): New const.
7509 (s390_ft_entry_vr): New const.
7510 (s390_ft_main_31): New const.
7511 (s390_ft_main_64): New const.
7512 (s390_ft_exit_fr): New const.
7513 (s390_ft_exit_vr): New const.
7514 (s390_ft_exit_misc): New const.
7515 (s390_ft_exit_gpr_esa): New const.
7516 (s390_ft_exit_gpr_zarch): New const.
7517 (append_insns): New function.
7518 (s390_relocate_instruction): New function.
7519 (s390_install_fast_tracepoint_jump_pad): New function.
7520 (s390_get_min_fast_tracepoint_insn_len): New function.
7521 (s390_get_ipa_tdesc_idx): New function.
7522 (struct linux_target_ops): Wire in the above functions.
7523 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
7524 * linux-s390-tdesc.h: New file.
7526 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7528 * linux-s390-low.c (s390_supports_tracepoints): New function.
7529 (struct linux_target_ops): Fill supports_tracepoints hook.
7531 2016-03-18 Yao Qi <yao.qi@linaro.org>
7533 * linux-low.c (lwp_signal_can_be_delivered): New function.
7534 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
7536 2016-03-18 Yao Qi <yao.qi@linaro.org>
7538 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
7539 0 if signal is enqueued. Remove 'signal' from one debugging
7540 message. Move one debugging message to some lines below.
7541 Remove code setting 'signal' to 0.
7543 2016-03-18 Yao Qi <yao.qi@linaro.org>
7545 * linux-low.c (linux_low_filter_event): Remove redundant
7546 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
7548 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7550 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
7551 (struct linux_target_ops): Wire in the above.
7553 2016-03-03 Yao Qi <yao.qi@linaro.org>
7555 * linux-low.c: Update comments to start_step_over.
7557 2016-03-03 Yao Qi <yao.qi@linaro.org>
7560 * linux-low.c (handle_extended_wait): Set child suspended
7561 if event_lwp->bp_reinsert isn't zero.
7563 2016-03-02 Yao Qi <yao.qi@linaro.org>
7565 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
7566 enqueue_pending_signal.
7568 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
7570 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
7573 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7575 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
7576 (s390_regmap_3264) [!__s390x__]: New global.
7577 (s390_collect_ptrace_register): Skip map entries containing -1.
7578 (s390_supply_ptrace_register): Ditto.
7579 (s390_fill_gprs_high): New function.
7580 (s390_store_gprs_high): New function.
7581 (s390_regsets): Add NT_S390_HIGH_GPRS.
7582 (s390_get_hwcap): Enable on 31-bit.
7583 (have_hwcap_s390_high_gprs): Enable on 31-bit.
7584 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
7585 Detect NT_S390_HIGH_GPRS.
7586 (s390_usrregs_info_3264): Enable on 31-bit.
7587 (s390_regs_info): Enable regs_info_3264 on 31-bit.
7588 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
7590 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7593 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
7594 * configure.srv: Ditto.
7595 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
7596 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
7597 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
7598 (init_registers_amd64_linux): Remove prototype.
7599 (tdesc_amd64_linux): Remove declaration.
7600 (get_ipa_tdesc): New function.
7601 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7602 initialize remaining tdescs.
7603 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
7604 (init_registers_i386_linux): Remove prototype.
7605 (tdesc_i386_linux): Remove declaration.
7606 (get_ipa_tdesc): New function.
7607 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7608 initialize remaining tdescs.
7609 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
7610 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
7611 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
7612 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
7613 (x86_get_ipa_tdesc_idx): New function.
7614 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
7615 * linux-x86-tdesc.h: New file.
7616 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
7617 (target_get_ipa_tdesc_idx): New macro.
7618 * tracepoint.c (ipa_tdesc_idx): New macro.
7619 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
7620 (symbol_list): Add ipa_tdesc_idx.
7621 (cmd_qtstart): Write ipa_tdesc_idx in the target.
7622 (ipa_tdesc): Remove.
7623 (ipa_tdesc_idx): New variable.
7624 (get_context_regcache): Use get_ipa_tdesc.
7625 (gdb_collect): Ditto.
7627 * tracepoint.h (get_ipa_tdesc): New prototype.
7628 (ipa_tdesc): Remove.
7630 2016-02-24 Pedro Alves <palves@redhat.com>
7632 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
7633 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
7634 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
7635 Factor out common code between the USE_SIGTRAP_SIGINFO and
7636 !USE_SIGTRAP_SIGINFO blocks.
7637 (linux_low_filter_event): Call save_stop_reason instead of
7638 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
7640 (linux_wait_1): Update comments.
7642 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
7644 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
7645 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
7646 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
7647 ppc_insert_point, ppc_remove_point.
7649 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
7651 * linux-s390-low.c (s390_supports_z_point_type): New function.
7652 (struct linux_target_ops): Wire s390_supports_z_point_type in.
7654 2016-02-16 Yao Qi <yao.qi@linaro.org>
7656 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
7657 PC. Get pc from regcache_read_pc.
7659 2016-02-12 Yao Qi <yao.qi@linaro.org>
7661 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
7662 or linux_get_pc_32bit.
7663 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
7665 2016-02-12 Yao Qi <yao.qi@linaro.org>
7667 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
7668 arm_linux_get_next_pcs_fixup.
7670 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7672 * tracepoint.c (x_tracepoint_action_download): Change
7673 write_inferior_data_ptr to write_inferior_data_pointer.
7674 (cmd_qtstart): Likewise.
7675 (write_inferior_data_ptr): Remove.
7676 (download_agent_expr): Change write_inferior_data_ptr to
7677 write_inferior_data_pointer.
7678 (download_tracepoint_1): Likewise.
7679 (download_tracepoint): Likewise.
7680 (download_trace_state_variables): Likewise.
7682 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
7683 Marcin Kościelnicki <koriakin@0x04.net>
7685 * tracepoint.c (struct tracepoint_action_ops): Remove.
7686 (struct tracepoint_action): Remove ops.
7687 (m_tracepoint_action_download, r_tracepoint_action_download)
7688 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
7689 size and offset accordingly.
7690 (m_tracepoint_action_ops, r_tracepoint_action_ops)
7691 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
7692 (tracepoint_action_send, tracepoint_action_download): New functions.
7693 Helpers for trace action handlers.
7694 (add_tracepoint_action): Remove setup actions ops.
7695 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
7697 2016-02-10 Yao Qi <yao.qi@linaro.org>
7699 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
7701 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7703 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7705 * configure: Regenerate.
7707 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7709 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
7710 void * to gdb_byte *.
7711 * linux-low.c (siginfo_fixup): Likewise.
7712 (linux_xfer_siginfo): Likewise.
7713 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
7715 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
7717 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7719 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
7721 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
7723 * linux-x86-low.c [__x86_64__]: Include
7724 "nat/amd64-linux-siginfo.h".
7725 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7726 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7727 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7728 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7729 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7730 (cpt_si_fd, si_timerid, si_overrun): Move from
7731 nat/amd64-linux-siginfo.c.
7732 * Makefile.in (amd64-linux-siginfo.o:): New rule.
7734 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7736 * server.c (skip_to_semicolon): Remove.
7737 (process_point_options): Use strchrnul instead of
7740 2016-01-26 Yao Qi <yao.qi@linaro.org>
7742 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
7743 * linux-low.c (install_software_single_step_breakpoints): Don't
7744 call regcache_read_pc.
7745 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
7748 2016-01-26 Yao Qi <yao.qi@linaro.org>
7750 * linux-low.c (install_software_single_step_breakpoints): Call
7751 regcache_read_pc instead of get_pc.
7753 2016-01-26 Yao Qi <yao.qi@linaro.org>
7755 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
7756 (unblock_async_io): Rename to ...
7757 (block_unblock_async_io): ... it. New function.
7758 (enable_async_io): Don't install SIGIO handler. Unblock it
7760 (disable_async_io): Don't ignore SIGIO. Block it instead.
7761 (initialize_async_io): Install SIGIO handler. Don't call
7764 2016-01-26 Yao Qi <yao.qi@linaro.org>
7766 * remote-utils.c (getpkt): If the buffer isn't empty, and the
7767 first character is '\003', call *the_target->request_interrupt.
7769 2016-01-25 Yao Qi <yao.qi@linaro.org>
7771 * remote-utils.c (new_thread_notify): Remove.
7772 (dead_thread_notify): Likewise.
7773 * remote-utils.h (new_thread_notify): Remove declaration.
7774 (dead_thread_notify): Likewise.
7776 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
7778 * gdb.trace/pending.exp: Fix expected message on continue.
7780 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
7782 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
7783 it works properly on big-endian machines where sizeof (CORE_ADDR)
7786 2016-01-21 Pedro Alves <palves@redhat.com>
7788 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
7789 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
7790 * configure: Regenerate.
7792 2016-01-21 Yao Qi <yao.qi@linaro.org>
7794 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
7795 is_thumb and set it according to CPSR saved on the stack.
7796 (get_next_pcs_syscall_next_pc): Pass is_thumb to
7797 arm_sigreturn_next_pc.
7799 2016-01-18 Yao Qi <yao.qi@linaro.org>
7801 * linux-low.c (linux_set_pc_64bit): New function.
7802 (linux_get_pc_64bit): New function.
7803 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
7805 * linux-sparc-low.c (debug_threads): Remove declaration.
7806 (sparc_get_pc): Remove.
7807 (the_low_target): Use linux_get_pc_64bit instead of
7809 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
7810 (the_low_target): Use linux_get_pc_64bit and
7813 2016-01-18 Yao Qi <yao.qi@linaro.org>
7815 * linux-arm-low.c (debug_threads): Remove declaration.
7816 (arm_get_pc, arm_set_pc): Remove.
7817 (the_low_target): Use linux_get_pc_32bit and
7819 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
7820 (the_low_target): Use linux_get_pc_32bit and
7822 * linux-cris-low.c (debug_threads): Remove declaration.
7823 (cris_get_pc, cris_set_pc,): Remove.
7824 (the_low_target): Use linux_get_pc_32bit and
7826 * linux-crisv32-low.c (debug_threads): Remove declaration.
7827 (cris_get_pc, cris_set_pc): Remove.
7828 (the_low_target): Use linux_get_pc_32bit and
7830 * linux-low.c: Include inttypes.h.
7831 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
7832 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
7833 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
7834 (the_low_target): Use linux_get_pc_32bit and
7836 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
7837 (the_low_target): Use linux_get_pc_32bit and
7839 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
7840 (the_low_target): Use linux_get_pc_32bit and
7842 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
7843 (the_low_target): Use linux_get_pc_32bit and
7845 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
7846 (the_low_target): Use linux_get_pc_32bit and
7849 2016-01-18 Gary Benson <gbenson@redhat.com>
7851 * configure.ac (AC_FUNC_FORK): New check.
7852 * config.in: Regenerate.
7853 * configure: Likewise.
7855 2016-01-14 Yao Qi <yao.qi@linaro.org>
7857 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
7858 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
7859 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
7860 arm_get_next_pcs_ctor.
7862 2016-01-12 Josh Stone <jistone@redhat.com>
7863 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7865 * inferiors.h: Include "gdb_vecs.h".
7866 (struct process_info): Add syscalls_to_catch.
7867 * inferiors.c (remove_process): Free syscalls_to_catch.
7868 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
7869 syscall_return stops.
7870 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
7871 * server.c (handle_general_set): Handle QCatchSyscalls.
7872 (handle_query): Report support for QCatchSyscalls.
7873 * target.h (struct target_ops): Add supports_catch_syscall.
7874 (target_supports_catch_syscall): New macro.
7875 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
7876 (struct lwp_info): Add syscall_state.
7877 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
7878 Maintain syscall_state and syscalls_to_catch across exec.
7879 (get_syscall_trapinfo): New function, proxy to the_low_target.
7880 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
7881 (linux_low_filter_event): Toggle syscall_state entry/return for
7882 syscall traps, and set it ignored for all others.
7883 (gdb_catching_syscalls_p): New function.
7884 (gdb_catch_this_syscall_p): New function.
7885 (linux_wait_1): Handle SYSCALL_SIGTRAP.
7886 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
7887 (linux_supports_catch_syscall): New function.
7888 (linux_target_ops): Install it.
7889 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
7890 (the_low_target): Install it.
7892 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7894 * acinclude.m4: Include new ../warning.m4 file.
7895 * configure: Regenerated.
7896 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
7898 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7900 * ax.c (is_goto_target): Mark static.
7901 * linux-low.c (register_addr): Likewise.
7902 (linux_fetch_registers, linux_store_registers): Likewise.
7903 * mem-break.c (any_persistent_commands): Fix old prototype.
7904 (add_commands_to_breakpoint): Mark static.
7905 * regcache.c (find_register_by_name): Delete unused func.
7906 * remote-utils.c (hex_or_minus_one): Mark static.
7907 * server.c (monitor_show_help): Mark static.
7908 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
7909 handle_v_requests): Likewise.
7911 2016-01-12 Pedro Alves <palves@redhat.com>
7913 Remove use of the registered trademark symbol throughout.
7915 2016-01-08 Yao Qi <yao.qi@linaro.org>
7917 * remote-utils.c (getpkt): If c is '\003', call target hook
7920 2016-01-06 Yao Qi <yao.qi@linaro.org>
7922 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
7923 linux-aarch32-low.c.
7924 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7925 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7926 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7927 (thumb2_breakpoint): Declare.
7928 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
7929 linux-aarch32-low.h.
7930 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7931 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7932 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7934 2016-01-01 Joel Brobecker <brobecker@adacore.com>
7936 * gdbreplay.c (gdbreplay_version): Change copyright year in
7938 * server.c (gdbserver_version): Likewise.
7940 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
7942 * server.c (crc32_table): Delete.
7943 (crc32): Use libiberty's xcrc32 function.
7945 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7947 * lynx-low.c (lynx_delete_thread_callback): New function.
7948 (lynx_mourn): Properly delete our process and all of its
7949 threads. Remove call to clear_inferiors.
7951 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7953 * target.c (thread_search_callback): Add check that
7954 the thread_stopped target callback is not NULL before
7957 2015-12-21 Yao Qi <yao.qi@linaro.org>
7959 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
7962 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7964 * server.c (handle_query): Call target_supports_software_single_step.
7966 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7968 * linux-low.c (single_step): New function.
7969 (linux_resume_one_lwp_throw): Call single_step.
7970 (start_step_over): Likewise.
7972 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7974 * Makefile.in (SFILES): Append arch/arm-linux.c,
7975 arch/arm-get-next-pcs.c.
7976 (arm-linux.o): New rule.
7977 (arm-get-next-pcs.o): New rule.
7978 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
7980 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
7981 to linux-aarch32-low.c.
7982 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7983 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7984 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7985 (thumb2_breakpoint_len): Likewise.
7986 (arm_is_thumb_mode): Make non-static.
7987 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
7988 from linux-aarch32-low.c.
7989 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7990 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7991 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7992 (thumb2_breakpoint_len): Likewise.
7993 (arm_is_thumb_mode): New declaration.
7994 * linux-arm-low.c: Include arch/arm-linux.h
7995 aarch/arm-get-next-pcs.h, sys/syscall.h.
7996 (get_next_pcs_ops): New struct.
7997 (get_next_pcs_addr_bits_remove): New function.
7998 (get_next_pcs_is_thumb): New function.
7999 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8000 (arm_sigreturn_next_pc): Likewise.
8001 (get_next_pcs_syscall_next_pc): Likewise.
8002 (arm_gdbserver_get_next_pcs): Likewise.
8003 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8005 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8006 * server.h: Include gdb_vecs.h.
8008 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8010 * Makefile.in (SFILES): Append common/common-regcache.c.
8011 (OBS): Append common-regcache.o.
8012 (common-regcache.o): New rule.
8013 * regcache.c (init_register_cache): Initialize cache to
8015 (regcache_raw_read_unsigned): New function.
8016 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8017 register_status enum.
8019 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8021 * linux-aarch64-low.c (the_low_targets): Rename
8022 breakpoint_reinsert_addr to get_next_pcs.
8023 * linux-arm-low.c (the_low_targets): Likewise.
8024 * linux-bfin-low.c (the_low_targets): Likewise.
8025 * linux-cris-low.c (the_low_targets): Likewise.
8026 * linux-crisv32-low.c (the_low_targets): Likewise.
8027 * linux-low.c (can_software_single_step): Likewise.
8028 (install_software_single_step_breakpoints): New function.
8029 (start_step_over): Use install_software_single_step_breakpoints.
8030 * linux-low.h: New CORE_ADDR vector.
8031 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8033 * linux-mips-low.c (the_low_targets): Likewise.
8034 * linux-nios2-low.c (the_low_targets): Likewise.
8035 * linux-sparc-low.c (the_low_targets): Likewise.
8037 2015-12-17 Pedro Alves <palves@redhat.com>
8039 * linux-low.c (linux_kill_one_lwp): Remove references to
8041 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8043 (linux_init_signals): Delete.
8044 (initialize_low): Adjust.
8045 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8047 2015-12-16 Pedro Alves <palves@redhat.com>
8049 * configure.ac (compiler warning flags): When testing a
8050 -Wno-foo option, check whether -Wfoo works instead.
8051 * configure: Regenerate.
8053 2015-12-11 Don Breazeal <donb@codesourcery.com>
8055 * server.c (process_serial_event): Don't exit from gdbserver
8056 in remote mode if there are still active inferiors.
8058 2015-12-11 Yao Qi <yao.qi@linaro.org>
8060 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8061 arm_breakpoint_at if the process is 32-bit.
8063 2015-12-11 Yao Qi <yao.qi@linaro.org>
8065 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8068 2015-12-07 Yao Qi <yao.qi@linaro.org>
8070 * configure.srv: Append arm.o to srv_tgtobj for
8071 aarch64*-*-linux* target.
8072 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8073 from linux-arm-low.c.
8074 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8075 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8076 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8077 (thumb2_breakpoint_len): Likewise.
8078 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8079 (arm_breakpoint_kinds): Likewise.
8080 (arm_breakpoint_kind_from_pc): Likewise.
8081 (arm_sw_breakpoint_from_kind): Likewise.
8082 (arm_breakpoint_kind_from_current_state): Likewise.
8083 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8084 (arm_sw_breakpoint_from_kind): Declare.
8085 (arm_breakpoint_kind_from_current_state): Declare.
8086 (arm_breakpoint_at): Declare.
8087 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8088 arm_sw_breakpoint_from_kind if process is 32-bit.
8089 (aarch64_breakpoint_kind_from_pc): New function.
8090 (aarch64_breakpoint_kind_from_current_state): New function.
8091 (the_low_target): Initialize fields breakpoint_kind_from_pc
8092 and breakpoint_kind_from_current_state.
8093 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8094 linux-aarch32-low.c.
8095 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8096 (arm_breakpoint, arm_breakpoint_len): Likewise.
8097 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8098 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8099 (arm_is_thumb_mode): Likewise.
8100 (arm_breakpoint_at): Likewise.
8101 (arm_breakpoint_kind_from_pc): Likewise.
8102 (arm_sw_breakpoint_from_kind): Likewise.
8103 (arm_breakpoint_kind_from_current_state): Likewise.
8106 2015-08-04 Yao Qi <yao.qi@linaro.org>
8108 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8109 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8110 * server.c (extended_protocol): Remove "static".
8111 * server.h (extended_protocol): Declare it.
8113 2015-12-04 Josh Stone <jistone@redhat.com>
8115 * target.h (struct target_ops) <arch_setup>: Rename to ...
8116 (struct target_ops) <post_create_inferior>: ... this.
8117 (target_arch_setup): Rename to ...
8118 (target_post_create_inferior): ... this, calling post_create_inferior.
8119 * server.c (start_inferior): Update target_arch_setup calls to
8120 target_post_create_inferior.
8121 * linux-low.c (linux_low_ptrace_options): Forward declare.
8122 (linux_arch_setup): Update its comment for general use.
8123 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8124 (struct linux_target_ops): Use linux_post_create_inferior.
8125 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8126 to post_create_inferior.
8127 * nto-low.c (struct nto_target_ops): Likewise.
8128 * spu-low.c (struct spu_target_ops): Likewise.
8129 * win32-low.c (struct win32_target_ops): Likewise.
8131 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8133 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8135 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8137 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8138 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8139 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8140 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8141 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8142 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8143 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8144 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8145 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8146 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8147 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8148 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8150 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8152 * linux-low.c (linux_look_up_symbols): Don't call
8153 linux_supports_traceclone.
8154 * linux-low.h (thread_db_init): Remove use_events argument.
8155 * thread-db.c (thread_db_use_event): Remove global variable.
8156 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8157 (struct thread_db) <td_create_bp>: Remove field.
8158 (thread_db_create_event): Remove function.
8159 (thread_db_enable_reporting): Likewise.
8160 (find_one_thread): Don't check for thread_db_use_events.
8161 (attach_thread): Likewise.
8162 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8163 (try_thread_db_load_1): Don't check for thread_db_use_events.
8164 (thread_db_init): Remove use_events argument and thread events
8166 (remove_thread_event_breakpoints): Remove function.
8167 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8169 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8171 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8173 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8174 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8175 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8176 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8177 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8179 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8181 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8182 * linux-low.c (can_hardware_single_step): Use
8183 supports_hardware_single_step.
8184 (can_software_single_step): New function.
8185 (start_step_over): Call can_software_single_step.
8186 (linux_supports_hardware_single_step): New function.
8187 (struct target_ops) <supports_software_single_step>: Initialize.
8188 * linux-low.h (struct linux_target_ops)
8189 <supports_hardware_single_step>: Initialize.
8190 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8191 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8192 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8193 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8194 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8195 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8196 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8197 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8198 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8199 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8201 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8202 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8204 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
8205 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8206 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
8208 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8209 * target.h (struct target_ops): <supports_software_single_step>:
8211 (target_supports_software_single_step): New macro.
8213 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8215 * linux-low.c (linux_wait_1): Fix pc advance condition.
8216 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8217 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8219 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8221 * linux-arm-low.c (arm_is_thumb_mode): New function.
8222 (arm_breakpoint_at): Use arm_is_thumb_mode.
8223 (arm_breakpoint_kind_from_current_state): New function.
8224 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8226 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8227 (linux_breakpoint_kind_from_current_state): New function.
8228 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8229 * linux-low.h (struct linux_target_ops)
8230 <breakpoint_kind_from_current_state>: New field.
8231 * target.h (struct target_ops): Likewise.
8232 (target_breakpoint_kind_from_current_state): New macro.
8234 2015-11-30 Pedro Alves <palves@redhat.com>
8236 * linux-low.c (linux_resume): Wake up the event loop before
8239 2015-11-30 Pedro Alves <palves@redhat.com>
8241 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8243 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8245 * target.c (struct thread_search): New structure.
8246 (thread_search_callback): New function.
8247 (prev_general_thread): New global.
8248 (prepare_to_access_memory, done_accessing_memory): New functions.
8249 * target.h (prepare_to_access_memory, done_accessing_memory):
8250 Replace macros with function declarations.
8252 2015-11-30 Pedro Alves <palves@redhat.com>
8255 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8256 report TARGET_WAITKIND_NO_RESUMED.
8257 * remote-utils.c (prepare_resume_reply): Handle
8258 TARGET_WAITKIND_NO_RESUMED.
8259 * server.c (report_no_resumed): New global.
8260 (handle_query) <qSupported>: Handle "no-resumed+". Report
8261 "no-resumed+" support.
8262 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8263 return error if the client doesn't support no-resumed events.
8264 (push_stop_notification): New function.
8265 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8266 events if the client supports them.
8268 2015-11-30 Pedro Alves <palves@redhat.com>
8270 * linux-low.c (thread_still_has_status_pending_p): Don't check
8272 (lwp_resumed): New function.
8273 (status_pending_p_callback): Return early if the LWP is not
8274 supposed to be resumed.
8276 2015-11-30 Pedro Alves <palves@redhat.com>
8278 * linux-low.c (handle_extended_wait): Assert that the LWP's
8279 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8280 thread create events, leave the new child's status pending.
8281 (linux_low_filter_event): If GDB wants to hear about thread exit
8282 events, leave the LWP marked dead and don't delete it.
8283 (linux_wait_for_event_filtered): Don't check for thread exit.
8284 (filter_exit_event): New function.
8285 (linux_wait_1): Use it, when returning an exit event.
8286 (linux_resume_one_lwp_throw): Assert that the LWP's
8287 waitstatus is TARGET_WAITKIND_IGNORE.
8288 * remote-utils.c (prepare_resume_reply): Handle
8289 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8290 * server.c (report_thread_events): New global.
8291 (handle_general_set): Handle QThreadEvents.
8292 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8293 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8294 TARGET_WAITKIND_THREAD_EXITED.
8295 * server.h (report_thread_events): Declare.
8297 2015-11-30 Pedro Alves <palves@redhat.com>
8299 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8300 the thread's last_resume_kind was resume_stop.
8302 2015-11-30 Pedro Alves <palves@redhat.com>
8304 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8307 2015-11-30 Pedro Alves <palves@redhat.com>
8309 * server.c (handle_v_requests): Handle vCtrlC.
8311 2015-11-30 Pedro Alves <palves@redhat.com>
8313 * gdbthread.h (find_any_thread_of_pid): Declare.
8314 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8316 * server.c (handle_query): If current_thread is NULL, look for
8317 another thread of the selected process.
8319 2015-11-26 Daniel Colascione <dancol@dancol.org>
8320 Simon Marchi <simon.marchi@ericsson.com>
8322 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8323 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8325 * target.h (struct target_ops) <thread_name>: New field.
8326 (target_thread_name): New macro.
8328 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8330 * regcache.h (regcache_invalidate_pid): Add declaration.
8331 * regcache.c (regcache_invalidate_pid): New function, extracted
8332 from regcache_invalidate.
8333 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8334 Add trivial documentation comment.
8335 * lynx-low.c: Use regcache_invalidate_pid instead of
8336 regcache_invalidate.
8338 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8340 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8341 and Elf64_auxv_t if the target is Android.
8343 2015-11-22 Doug Evans <xdje42@gmail.com>
8345 * target.h: #include <sys/types.h>.
8347 2015-11-19 Pedro Alves <palves@redhat.com>
8349 * linux-low.c (linux_process_qsupported): Change prototype.
8351 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8353 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8354 and adjust to loop over all features.
8355 * server.c (handle_query) <qSupported>: Adjust to call
8356 target_process_qsupported once, passing it a vector of unprocessed
8358 * target.h (struct target_ops) <process_qsupported>: Change
8360 (target_process_qsupported): Adjust.
8362 2015-11-19 Pedro Alves <palves@redhat.com>
8364 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8366 * configure: Regenerate.
8368 2015-11-19 Pedro Alves <palves@redhat.com>
8370 * configure: Regenerate.
8372 2015-11-19 Yao Qi <yao.qi@linaro.org>
8374 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
8377 2015-11-19 Yao Qi <yao.qi@linaro.org>
8379 * linux-aarch64-low.c (enum aarch64_operand_type): New.
8380 (struct aarch64_operand): Move enum out.
8382 2015-11-19 Yao Qi <yao.qi@linaro.org>
8384 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
8385 struct user_fpsimd_state *.
8386 (aarch64_store_fpregset): Likewise.
8388 2015-11-19 Yao Qi <yao.qi@linaro.org>
8390 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
8391 struct user_pt_regs *.
8392 (aarch64_store_gregset): Likewise.
8394 2015-11-18 Pedro Alves <palves@redhat.com>
8396 * Makefile.in (all_object_files): Add $IPA_OBJS.
8398 2015-11-17 Pedro Alves <palves@redhat.com>
8400 * win32-low.c (win32_resume): Use gdb_signal_from_host,
8401 GDB_SIGNAL_0 and gdb_signal_to_string.
8403 2015-11-17 Pedro Alves <palves@redhat.com>
8405 * win32-low.c (handle_output_debug_string): Remove parameter.
8406 (win32_kill): Remove our_status local and adjust call to
8407 handle_output_debug_string.
8408 (get_child_debug_event): Adjust call to
8409 handle_output_debug_string.
8411 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8413 * linux-mips-low.c (mips_fill_gregset): Add cast.
8414 (mips_store_gregset): Likewise.
8415 (mips_fill_fpregset): Likewise.
8416 (mips_store_fpregset): Likewise.
8418 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8420 * linux-mips-low.c (mips_add_watchpoint): Rename private to
8423 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8425 * linux-mips-low.c (mips_linux_new_thread): Change type of
8426 watch_type to enum target_hw_bp_type.
8428 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8430 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
8431 Change return type to arm_hwbp_type.
8433 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8435 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
8436 (arm_store_gregset): Likewise.
8437 * linux-arm-low.c (arm_get_hwcap): Likewise.
8438 (arm_read_description): Likewise.
8440 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8442 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
8444 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8446 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
8447 (ppc_fill_vsxregset): Likewise.
8448 (ppc_store_vsxregset): Likewise.
8449 (ppc_fill_vrregset): Likewise.
8450 (ppc_store_vrregset): Likewise.
8451 (ppc_fill_evrregset): Likewise.
8452 (ppc_store_evrregset): Likewise.
8454 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8456 * linux-ppc-low.c (ppc_usrregs_info): Remove
8457 forward-declaration.
8458 (ppc_arch_setup): Move lower in file.
8460 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
8462 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
8463 (ps_pdwrite): Likewise.
8465 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
8467 * linux-arm-low.c (arm_new_thread): Move pointer dereference
8468 to after assert checks.
8470 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
8472 * proc-service.c (ps_pdread): Add/adjust casts.
8473 (ps_pdwrite): Add/adjust casts.
8475 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8477 * server.c (handle_search_memory_1): Cast return value of
8480 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8482 * server.c (write_qxfer_response): Change type of data to
8485 2015-10-29 Pedro Alves <palves@redhat.com>
8487 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
8489 2015-10-29 Pedro Alves <palves@redhat.com>
8491 * tracepoint.c (clear_installed_tracepoints): Add casts.
8493 2015-10-29 Pedro Alves <palves@redhat.com>
8495 * server.c (handle_v_cont, process_serial_event): Add enum
8496 gdb_signal casts to signal parsing code.
8498 2015-10-29 Pedro Alves <palves@redhat.com>
8500 * linux-low.h (NULL_REGSET): Define.
8501 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8502 * linux-arm-low.c (arm_regsets): Likewise.
8503 * linux-crisv32-low.c (cris_regsets): Likewise.
8504 * linux-m68k-low.c (m68k_regsets): Likewise.
8505 * linux-mips-low.c (mips_regsets): Likewise.
8506 * linux-nios2-low.c (nios2_regsets): Likewise.
8507 * linux-ppc-low.c (ppc_regsets): Likewise.
8508 * linux-s390-low.c (s390_regsets): Likewise.
8509 * linux-sh-low.c (sh_regsets): Likewise.
8510 * linux-sparc-low.c (sparc_regsets): Likewise.
8511 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8512 * linux-tile-low.c (tile_regsets): Likewise.
8513 * linux-x86-low.c (x86_regsets): Likewise.
8514 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8516 2015-10-29 Pedro Alves <palves@redhat.com>
8518 * linux-low.h (NULL_REGSET): Define.
8519 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8520 * linux-arm-low.c (arm_regsets): Likewise.
8521 * linux-crisv32-low.c (cris_regsets): Likewise.
8522 * linux-m68k-low.c (m68k_regsets): Likewise.
8523 * linux-mips-low.c (mips_regsets): Likewise.
8524 * linux-nios2-low.c (nios2_regsets): Likewise.
8525 * linux-ppc-low.c (ppc_regsets): Likewise.
8526 * linux-s390-low.c (s390_regsets): Likewise.
8527 * linux-sh-low.c (sh_regsets): Likewise.
8528 * linux-sparc-low.c (sparc_regsets): Likewise.
8529 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8530 * linux-tile-low.c (tile_regsets): Likewise.
8531 * linux-x86-low.c (x86_regsets): Likewise.
8532 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8534 2015-10-26 Doug Evans <dje@google.com>
8536 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
8538 2015-10-26 Doug Evans <dje@google.com>
8540 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
8542 2015-10-26 Doug Evans <dje@google.com>
8544 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
8546 (attach_thread, find_new_threads_callback): Ditto.
8548 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8550 * mem-break.h (set_breakpoint_data): Remove.
8552 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8554 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
8555 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8556 (initialize_low): Remove set_breakpoint_data call.
8557 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
8558 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
8559 (initialize_low): Remove set_breakpoint_data call.
8560 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
8561 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8562 (initialize_low): Remove set_breakpoint_data call.
8564 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8566 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
8567 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
8568 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
8569 * target.h (target_breakpoint_kind_from_pc): New macro.
8571 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
8573 * linux-low.c (default_breakpoint_kind_from_pc): New function.
8574 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
8575 the default breakpoint kind.
8577 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8579 * linux-arm-low.c (arm_supports_z_point_type): Add software
8582 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8584 * linux-arm-low.c: Refactor breakpoint definitions.
8585 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
8586 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
8588 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8590 * Makefile.in: Add arm.c/o.
8591 * configure.srv: Likewise.
8592 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
8593 (arm_breakpoint_kind_from_pc): New function.
8594 (arm_sw_breakpoint_from_kind): Return proper kind.
8595 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
8597 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8599 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
8601 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
8602 (struct raw_breakpoint) <size>: Remove.
8603 (struct raw_breakpoint) <kind>: Add.
8604 (bp_size): New function.
8605 (bp_opcode): Likewise.
8606 (find_raw_breakpoint_at): Adjust for kind.
8607 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
8608 (remove_memory_breakpoint): Adjust for kind call bp_size.
8609 (set_raw_breakpoint_at): Adjust for kind.
8610 (set_breakpoint): Likewise.
8611 (set_breakpoint_at): Call breakpoint_kind_from_pc.
8612 (delete_raw_breakpoint): Adjust for kind.
8613 (delete_breakpoint): Likewise.
8614 (find_gdb_breakpoint): Likewise.
8615 (set_gdb_breakpoint_1): Likewise.
8616 (set_gdb_breakpoint): Likewise.
8617 (delete_gdb_breakpoint_1): Likewise.
8618 (delete_gdb_breakpoint): Likewise.
8619 (uninsert_raw_breakpoint): Likewise.
8620 (reinsert_raw_breakpoint): Likewise.
8621 (set_breakpoint_data): Remove.
8622 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
8623 (check_mem_read): Adjust for kind call bp_size.
8624 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
8625 (clone_one_breakpoint): Adjust for kind.
8626 * mem-break.h (set_gdb_breakpoint): Likewise.
8627 (delete_gdb_breakpoint): Likewise.
8628 * server.c (process_serial_event): Likewise.
8630 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8632 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
8633 (struct linux_target_ops) <breakpoint>: Remove.
8634 (struct linux_target_ops) <breakpoint_len>: Remove.
8635 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8636 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8637 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
8638 (arm_sw_breakpoint_from_kind): New function.
8639 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
8640 (struct linux_target_ops) <breakpoint>: Remove.
8641 (struct linux_target_ops) <breakpoint_len>: Remove.
8642 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8643 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8644 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
8645 (struct linux_target_ops) <breakpoint>: Remove.
8646 (struct linux_target_ops) <breakpoint_len>: Remove.
8647 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8648 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8649 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
8650 (struct linux_target_ops) <breakpoint>: Remove.
8651 (struct linux_target_ops) <breakpoint_len>: Remove.
8652 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8653 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8654 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
8655 and sw_breakpoint_from_kind to increment the pc.
8656 (linux_breakpoint_kind_from_pc): New function.
8657 (linux_sw_breakpoint_from_kind): New function.
8658 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
8659 (initialize_low): Call breakpoint_kind_from_pc and
8660 sw_breakpoint_from_kind to replace breakpoint_data/len.
8661 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
8663 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
8664 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
8665 (struct linux_target_ops) <breakpoint>: Remove.
8666 (struct linux_target_ops) <breakpoint_len>: Remove.
8667 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8668 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8669 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
8670 (struct linux_target_ops) <breakpoint>: Remove.
8671 (struct linux_target_ops) <breakpoint_len>: Remove.
8672 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8673 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8674 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
8675 (struct linux_target_ops) <breakpoint>: Remove.
8676 (struct linux_target_ops) <breakpoint_len>: Remove.
8677 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8678 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8679 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
8680 (struct linux_target_ops) <breakpoint>: Remove.
8681 (struct linux_target_ops) <breakpoint_len>: Remove.
8682 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8683 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8684 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
8685 (struct linux_target_ops) <breakpoint>: Remove.
8686 (struct linux_target_ops) <breakpoint_len>: Remove.
8687 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8688 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8689 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
8690 (struct linux_target_ops) <breakpoint>: Remove.
8691 (struct linux_target_ops) <breakpoint_len>: Remove.
8692 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8693 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8694 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
8695 (struct linux_target_ops) <breakpoint>: Remove.
8696 (struct linux_target_ops) <breakpoint_len>: Remove.
8697 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8698 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8699 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
8700 (struct linux_target_ops) <breakpoint>: Remove.
8701 (struct linux_target_ops) <breakpoint_len>: Remove.
8702 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8703 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8704 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
8705 (struct linux_target_ops) <breakpoint>: Remove.
8706 (struct linux_target_ops) <breakpoint_len>: Remove.
8707 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8708 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8709 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
8710 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
8711 (struct linux_target_ops) <breakpoint>: Remove.
8712 (struct linux_target_ops) <breakpoint_len>: Remove.
8713 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8714 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8715 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
8716 (struct linux_target_ops) <breakpoint>: Remove.
8717 (struct linux_target_ops) <breakpoint_len>: Remove.
8718 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8719 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8721 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8723 * linux-cris-low.c (cris_get_pc): Remove void arg.
8725 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8727 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
8730 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8732 * inferiors.c (thread_pid_matches_callback): New function.
8733 (find_thread_process): New function.
8734 (remove_thread): Reset current_thread.
8735 (remove_process): Assert threads have been removed first.
8737 2015-10-15 Yao Qi <yao.qi@linaro.org>
8739 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
8741 (aarch64_remove_point): Likewise.
8742 * regcache.c (regcache_register_size): New function.
8744 2015-10-12 Yao Qi <yao.qi@linaro.org>
8746 * linux-aarch64-low.c: Update all callers as emit_load_store
8747 is renamed to aarch64_emit_load_store.
8749 2015-10-12 Yao Qi <yao.qi@linaro.org>
8751 * linux-aarch64-low.c: Update all callers of function renaming
8752 from emit_insn to aarch64_emit_insn.
8754 2015-10-12 Yao Qi <yao.qi@linaro.org>
8756 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
8757 arch/aarch64-insn.h.
8758 (struct aarch64_memory_operand): Likewise.
8760 (emit_insn): Move to arch/aarch64-insn.c.
8761 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
8762 (emit_load_store): Move to arch/aarch64-insn.c.
8763 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
8764 (can_encode_int32): Remove.
8766 2015-10-12 Yao Qi <yao.qi@linaro.org>
8768 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
8769 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
8770 (aarch64_relocate_instruction): Likewise.
8771 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
8772 (struct aarch64_insn_visitor): Likewise.
8774 2015-10-12 Yao Qi <yao.qi@linaro.org>
8776 * linux-aarch64-low.c (struct aarch64_insn_data): New.
8777 (struct aarch64_insn_visitor): New.
8778 (struct aarch64_insn_relocation_data): New.
8779 (aarch64_ftrace_insn_reloc_b): New function.
8780 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8781 (aarch64_ftrace_insn_reloc_cb): Likewise.
8782 (aarch64_ftrace_insn_reloc_tb): Likewise.
8783 (aarch64_ftrace_insn_reloc_adr): Likewise.
8784 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
8785 (aarch64_ftrace_insn_reloc_others): Likewise.
8787 (aarch64_relocate_instruction): Use visitor.
8789 2015-10-12 Yao Qi <yao.qi@linaro.org>
8791 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
8792 int. Add argument buf.
8793 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
8794 aarch64_relocate_instruction.
8796 2015-10-12 Yao Qi <yao.qi@linaro.org>
8798 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
8799 argument insn. Remove local variable insn. Don't call
8801 (aarch64_install_fast_tracepoint_jump_pad): Call
8804 2015-09-30 Yao Qi <yao.qi@linaro.org>
8806 * linux-aarch64-low.c (emit_movk): Shorten a long line.
8807 (emit_load_store_pair): Likewise.
8809 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8811 * dll.c (match_dll): Add cast(s).
8812 (unloaded_dll): Likewise.
8813 * linux-low.c (second_thread_of_pid_p): Likewise.
8814 (delete_lwp_callback): Likewise.
8815 (count_events_callback): Likewise.
8816 (select_event_lwp_callback): Likewise.
8817 (linux_set_resume_request): Likewise.
8818 * server.c (accumulate_file_name_length): Likewise.
8819 (emit_dll_description): Likewise.
8820 (handle_qxfer_threads_worker): Likewise.
8821 (visit_actioned_threads): Likewise.
8822 * thread-db.c (any_thread_of): Likewise.
8823 * tracepoint.c (same_process_p): Likewise.
8824 (match_blocktype): Likewise.
8825 (build_traceframe_info_xml): Likewise.
8827 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8829 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
8831 (gdb_unparse_agent_expr): Likewise.
8832 * hostio.c (require_data): Likewise.
8833 (handle_pread): Likewise.
8834 * linux-low.c (disable_regset): Likewise.
8835 (fetch_register): Likewise.
8836 (store_register): Likewise.
8837 (get_dynamic): Likewise.
8838 (linux_qxfer_libraries_svr4): Likewise.
8839 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
8840 (set_fast_tracepoint_jump): Likewise.
8841 (uninsert_fast_tracepoint_jumps_at): Likewise.
8842 (reinsert_fast_tracepoint_jumps_at): Likewise.
8843 (validate_inserted_breakpoint): Likewise.
8844 (clone_agent_expr): Likewise.
8845 * regcache.c (init_register_cache): Likewise.
8846 * remote-utils.c (putpkt_binary_1): Likewise.
8847 (decode_M_packet): Likewise.
8848 (decode_X_packet): Likewise.
8849 (look_up_one_symbol): Likewise.
8850 (relocate_instruction): Likewise.
8851 (monitor_output): Likewise.
8852 * server.c (handle_search_memory): Likewise.
8853 (handle_qxfer_exec_file): Likewise.
8854 (handle_qxfer_libraries): Likewise.
8855 (handle_qxfer): Likewise.
8856 (handle_query): Likewise.
8857 (handle_v_cont): Likewise.
8858 (handle_v_run): Likewise.
8859 (captured_main): Likewise.
8860 * target.c (write_inferior_memory): Likewise.
8861 * thread-db.c (try_thread_db_load_from_dir): Likewise.
8862 * tracepoint.c (init_trace_buffer): Likewise.
8863 (add_tracepoint_action): Likewise.
8864 (add_traceframe): Likewise.
8865 (add_traceframe_block): Likewise.
8866 (cmd_qtdpsrc): Likewise.
8867 (cmd_qtdv): Likewise.
8868 (cmd_qtstatus): Likewise.
8869 (response_source): Likewise.
8870 (response_tsv): Likewise.
8871 (cmd_qtnotes): Likewise.
8872 (gdb_collect): Likewise.
8873 (initialize_tracepoint): Likewise.
8875 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8877 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
8878 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
8879 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
8881 (enum aarch64_condition_codes): New enum.
8882 (w0): New static global.
8885 (struct aarch64_memory_operand) <type>: New
8886 MEMORY_OPERAND_POSTINDEX type.
8887 (postindex_memory_operand): New helper function.
8888 (emit_ret): New function.
8889 (emit_load_store_pair): New function, factored out of emit_stp
8890 with support for MEMORY_OPERAND_POSTINDEX.
8891 (emit_stp): Rewrite using emit_load_store_pair.
8892 (emit_ldp): New function.
8893 (emit_load_store): Likewise.
8894 (emit_ldr): Mention post-index instruction in comment.
8895 (emit_ldrh): New function.
8896 (emit_ldrb): New function.
8897 (emit_ldrsw): Mention post-index instruction in comment.
8898 (emit_str): Likewise.
8899 (emit_subs): New function.
8900 (emit_cmp): Likewise.
8901 (emit_and): Likewise.
8902 (emit_orr): Likewise.
8903 (emit_orn): Likewise.
8904 (emit_eor): Likewise.
8905 (emit_mvn): Likewise.
8906 (emit_lslv): Likewise.
8907 (emit_lsrv): Likewise.
8908 (emit_asrv): Likewise.
8909 (emit_mul): Likewise.
8910 (emit_sbfm): Likewise.
8911 (emit_sbfx): Likewise.
8912 (emit_ubfm): Likewise.
8913 (emit_ubfx): Likewise.
8914 (emit_csinc): Likewise.
8915 (emit_cset): Likewise.
8916 (emit_nop): Likewise.
8917 (emit_ops_insns): New helper function.
8918 (emit_pop): Likewise.
8919 (emit_push): Likewise.
8920 (aarch64_emit_prologue): New function.
8921 (aarch64_emit_epilogue): Likewise.
8922 (aarch64_emit_add): Likewise.
8923 (aarch64_emit_sub): Likewise.
8924 (aarch64_emit_mul): Likewise.
8925 (aarch64_emit_lsh): Likewise.
8926 (aarch64_emit_rsh_signed): Likewise.
8927 (aarch64_emit_rsh_unsigned): Likewise.
8928 (aarch64_emit_ext): Likewise.
8929 (aarch64_emit_log_not): Likewise.
8930 (aarch64_emit_bit_and): Likewise.
8931 (aarch64_emit_bit_or): Likewise.
8932 (aarch64_emit_bit_xor): Likewise.
8933 (aarch64_emit_bit_not): Likewise.
8934 (aarch64_emit_equal): Likewise.
8935 (aarch64_emit_less_signed): Likewise.
8936 (aarch64_emit_less_unsigned): Likewise.
8937 (aarch64_emit_ref): Likewise.
8938 (aarch64_emit_if_goto): Likewise.
8939 (aarch64_emit_goto): Likewise.
8940 (aarch64_write_goto_address): Likewise.
8941 (aarch64_emit_const): Likewise.
8942 (aarch64_emit_call): Likewise.
8943 (aarch64_emit_reg): Likewise.
8944 (aarch64_emit_pop): Likewise.
8945 (aarch64_emit_stack_flush): Likewise.
8946 (aarch64_emit_zero_ext): Likewise.
8947 (aarch64_emit_swap): Likewise.
8948 (aarch64_emit_stack_adjust): Likewise.
8949 (aarch64_emit_int_call_1): Likewise.
8950 (aarch64_emit_void_call_2): Likewise.
8951 (aarch64_emit_eq_goto): Likewise.
8952 (aarch64_emit_ne_goto): Likewise.
8953 (aarch64_emit_lt_goto): Likewise.
8954 (aarch64_emit_le_goto): Likewise.
8955 (aarch64_emit_gt_goto): Likewise.
8956 (aarch64_emit_ge_got): Likewise.
8957 (aarch64_emit_ops_impl): New static global variable.
8958 (aarch64_emit_ops): New target function, return
8959 &aarch64_emit_ops_impl.
8960 (struct linux_target_ops): Install it.
8962 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8964 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
8965 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
8967 * linux-aarch64-ipa.c: New file.
8968 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
8970 (aarch64_get_thread_area): New target method.
8971 (extract_signed_bitfield): New helper function.
8972 (aarch64_decode_ldr_literal): New function.
8973 (enum aarch64_opcodes): New enum.
8974 (struct aarch64_register): New struct.
8975 (struct aarch64_operand): New struct.
8976 (x0): New static global.
8985 (aarch64_register): New helper function.
8986 (register_operand): Likewise.
8987 (immediate_operand): Likewise.
8988 (struct aarch64_memory_operand): New struct.
8989 (offset_memory_operand): New helper function.
8990 (preindex_memory_operand): Likewise.
8991 (enum aarch64_system_control_registers): New enum.
8992 (ENCODE): New macro.
8993 (emit_insn): New helper function.
8994 (emit_b): New function.
8995 (emit_bcond): Likewise.
8996 (emit_cb): Likewise.
8997 (emit_tb): Likewise.
8998 (emit_blr): Likewise.
8999 (emit_stp): Likewise.
9000 (emit_ldp_q_offset): Likewise.
9001 (emit_stp_q_offset): Likewise.
9002 (emit_load_store): Likewise.
9003 (emit_ldr): Likewise.
9004 (emit_ldrsw): Likewise.
9005 (emit_str): Likewise.
9006 (emit_ldaxr): Likewise.
9007 (emit_stxr): Likewise.
9008 (emit_stlr): Likewise.
9009 (emit_data_processing_reg): Likewise.
9010 (emit_data_processing): Likewise.
9011 (emit_add): Likewise.
9012 (emit_sub): Likewise.
9013 (emit_mov): Likewise.
9014 (emit_movk): Likewise.
9015 (emit_mov_addr): Likewise.
9016 (emit_mrs): Likewise.
9017 (emit_msr): Likewise.
9018 (emit_sevl): Likewise.
9019 (emit_wfe): Likewise.
9020 (append_insns): Likewise.
9021 (can_encode_int32_in): New helper function.
9022 (aarch64_relocate_instruction): New function.
9023 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9024 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9025 (struct linux_target_ops): Install aarch64_get_thread_area,
9026 aarch64_install_fast_tracepoint_jump_pad and
9027 aarch64_get_min_fast_tracepoint_insn_len.
9029 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9031 * Makefile.in (aarch64-insn.o): New rule.
9032 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9034 2015-09-21 Yao Qi <yao.qi@linaro.org>
9036 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9038 2015-09-21 Yao Qi <yao.qi@linaro.org>
9040 * tracepoint.c (max_jump_pad_size): Remove.
9042 2015-09-18 Yao Qi <yao.qi@linaro.org>
9044 * linux-aarch64-low.c: Don't include sys/uio.h.
9045 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9047 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9049 * tracepoint.c (eval_result_type): Change prototype.
9050 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9052 2015-09-15 Pedro Alves <palves@redhat.com>
9054 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9055 Check whether to report exec events instead of checking whether
9056 multiprocess is enabled.
9058 2015-09-15 Pedro Alves <palves@redhat.com>
9061 * remote-utils.c (prepare_resume_reply): Merge
9062 TARGET_WAITKIND_VFORK_DONE switch case with the
9063 TARGET_WAITKIND_FORKED case.
9065 2015-09-15 Yao Qi <yao.qi@linaro.org>
9067 * server.c (handle_query): Check string comparison using
9068 "else if" instead of "if".
9070 2015-09-15 Yao Qi <yao.qi@linaro.org>
9072 * server.c (vCont_supported): New global variable.
9073 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9074 matches. Append ";vContSupported+" to own_buf.
9075 (handle_v_requests): Append ";s;S" to own_buf if target supports
9076 hardware single step or vCont_supported is false.
9077 (capture_main): Set vCont_supported to zero.
9079 2015-09-15 Yao Qi <yao.qi@linaro.org>
9081 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9083 (linux_supports_hardware_single_step): ... New function.
9084 (linux_target_ops): Update.
9085 * lynx-low.c (lynx_target_ops): Set field
9086 supports_hardware_single_step to target_can_do_hardware_single_step.
9087 * nto-low.c (nto_target_ops): Likewise.
9088 * spu-low.c (spu_target_ops): Likewise.
9089 * win32-low.c (win32_target_ops): Likewise.
9090 * target.c (target_can_do_hardware_single_step): New function.
9091 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9092 Remove. <supports_hardware_single_step>: New field.
9093 (target_supports_conditional_breakpoints): Remove.
9094 (target_supports_hardware_single_step): New macro.
9095 (target_can_do_hardware_single_step): Declare.
9096 * server.c (handle_query): Use target_supports_hardware_single_step
9097 instead of target_supports_conditional_breakpoints.
9099 2015-09-15 Yao Qi <yao.qi@linaro.org>
9101 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9103 (struct linux_target_ops the_low_target): Install
9104 aarch64_linux_siginfo_fixup.
9106 2015-09-11 Don Breazeal <donb@codesourcery.com>
9107 Luis Machado <lgustavo@codesourcery.com>
9109 * linux-low.c (linux_mourn): Static declaration.
9110 (linux_arch_setup): Move in front of
9111 handle_extended_wait.
9112 (linux_arch_setup_thread): New function.
9113 (handle_extended_wait): Handle exec events. Call
9114 linux_arch_setup_thread. Make event_lwp argument a
9115 pointer-to-a-pointer.
9116 (check_zombie_leaders): Do not check stopped threads.
9117 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9118 (linux_low_filter_event): Add lwp and thread for exec'ing
9119 non-leader thread if leader thread has been deleted.
9120 Refactor code into linux_arch_setup_thread and call it.
9121 Pass child lwp pointer by reference to handle_extended_wait.
9122 (linux_wait_for_event_filtered): Update comment.
9123 (linux_wait_1): Prevent clobbering exec event status.
9124 (linux_supports_exec_events): New function.
9125 (linux_target_ops) <supports_exec_events>: Initialize new member.
9126 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9128 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9129 * server.c (report_exec_events): New global variable.
9130 (handle_query): Handle qSupported query for exec-events feature.
9131 (captured_main): Initialize report_exec_events.
9132 * server.h (report_exec_events): Declare new global variable.
9133 * target.h (struct target_ops) <supports_exec_events>: New
9135 (target_supports_exec_events): New macro.
9136 * win32-low.c (win32_target_ops) <supports_exec_events>:
9137 Initialize new member.
9139 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9141 * linux-low.c (linux_low_enable_btrace): Remove.
9142 (linux_target_ops): Replace linux_low_enable_btrace with
9143 linux_enable_btrace.
9145 2015-09-03 Yao Qi <yao.qi@linaro.org>
9147 * linux-aarch64-low.c (aarch64_insert_point): Call
9148 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9151 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9153 * linux-low.c (check_stopped_by_breakpoint): Use
9154 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9156 2015-08-27 Pedro Alves <palves@redhat.com>
9158 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9160 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9162 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9163 the XNEW-family equivalent.
9164 (compile_bytecodes): Likewise.
9165 * dll.c (loaded_dll): Likewise.
9166 * event-loop.c (append_callback_event): Likewise.
9167 (create_file_handler): Likewise.
9168 (create_file_event): Likewise.
9169 * hostio.c (handle_open): Likewise.
9170 * inferiors.c (add_thread): Likewise.
9171 (add_process): Likewise.
9172 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9173 * linux-arm-low.c (arm_new_process): Likewise.
9174 (arm_new_thread): Likewise.
9175 * linux-low.c (add_to_pid_list): Likewise.
9176 (linux_add_process): Likewise.
9177 (handle_extended_wait): Likewise.
9178 (add_lwp): Likewise.
9179 (enqueue_one_deferred_signal): Likewise.
9180 (enqueue_pending_signal): Likewise.
9181 (linux_resume_one_lwp_throw): Likewise.
9182 (linux_resume_one_thread): Likewise.
9183 (linux_read_memory): Likewise.
9184 (linux_write_memory): Likewise.
9185 * linux-mips-low.c (mips_linux_new_process): Likewise.
9186 (mips_linux_new_thread): Likewise.
9187 (mips_add_watchpoint): Likewise.
9188 * linux-x86-low.c (initialize_low_arch): Likewise.
9189 * lynx-low.c (lynx_add_process): Likewise.
9190 * mem-break.c (set_raw_breakpoint_at): Likewise.
9191 (set_breakpoint): Likewise.
9192 (add_condition_to_breakpoint): Likewise.
9193 (add_commands_to_breakpoint): Likewise.
9194 (clone_agent_expr): Likewise.
9195 (clone_one_breakpoint): Likewise.
9196 * regcache.c (new_register_cache): Likewise.
9197 * remote-utils.c (look_up_one_symbol): Likewise.
9198 * server.c (queue_stop_reply): Likewise.
9199 (start_inferior): Likewise.
9200 (queue_stop_reply_callback): Likewise.
9201 (handle_target_event): Likewise.
9202 * spu-low.c (fetch_ppc_memory): Likewise.
9203 (store_ppc_memory): Likewise.
9204 * target.c (set_target_ops): Likewise.
9205 * thread-db.c (thread_db_load_search): Likewise.
9206 (try_thread_db_load_1): Likewise.
9207 * tracepoint.c (add_tracepoint): Likewise.
9208 (add_tracepoint_action): Likewise.
9209 (create_trace_state_variable): Likewise.
9210 (cmd_qtdpsrc): Likewise.
9211 (cmd_qtro): Likewise.
9212 (add_while_stepping_state): Likewise.
9213 * win32-low.c (child_add_thread): Likewise.
9214 (get_image_name): Likewise.
9216 2015-08-25 Yao Qi <yao.qi@linaro.org>
9218 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9220 2015-08-25 Yao Qi <yao.qi@linaro.org>
9222 * Makefile.in (aarch64-linux.o): New rule.
9223 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9225 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9226 (aarch64_init_debug_reg_state): Make it extern.
9227 (aarch64_linux_prepare_to_resume): Remove.
9229 2015-08-25 Yao Qi <yao.qi@linaro.org>
9231 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9232 lwp_arch_private_info and ptid_of_lwp.
9234 2015-08-25 Yao Qi <yao.qi@linaro.org>
9236 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9237 Find proc_info by find_process_pid. All callers updated.
9239 2015-08-25 Yao Qi <yao.qi@linaro.org>
9241 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9243 (debug_reg_change_callback): Remove.
9244 (aarch64_notify_debug_reg_change): Remove.
9246 2015-08-25 Yao Qi <yao.qi@linaro.org>
9248 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9249 Call current_lwp_ptid.
9251 2015-08-25 Yao Qi <yao.qi@linaro.org>
9253 * linux-aarch64-low.c (debug_reg_change_callback): Use
9256 2015-08-25 Yao Qi <yao.qi@linaro.org>
9258 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9260 2015-08-25 Yao Qi <yao.qi@linaro.org>
9262 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9264 2015-08-25 Yao Qi <yao.qi@linaro.org>
9266 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9269 2015-08-25 Yao Qi <yao.qi@linaro.org>
9271 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9273 (debug_reg_change_callback): Remove argument entry and add argument
9274 lwp. Remove local variable thread. Don't print thread id in the
9275 debugging output. Don't check whether pid of thread equals to pid.
9276 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9277 iterate_over_lwps instead find_inferior.
9279 2015-08-24 Pedro Alves <palves@redhat.com>
9281 * inferiors.c (get_first_process): New function.
9282 * inferiors.h (get_first_process): New declaration.
9283 * remote-utils.c (read_ptid): Default to the first process in the
9284 list, instead of to the current thread's process.
9286 2015-08-24 Pedro Alves <palves@redhat.com>
9288 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9289 * event-loop.c: Likewise.
9290 * remote-utils.c: Likewise.
9291 * tracepoint.c: Likewise.
9293 2015-08-24 Pedro Alves <palves@redhat.com>
9295 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9298 2015-08-21 Pedro Alves <palves@redhat.com>
9300 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9301 instead of literal 1.
9303 2015-08-21 Pedro Alves <palves@redhat.com>
9305 * tdesc.c (default_description): Explicitly zero-initialize.
9307 2015-08-21 Pedro Alves <palves@redhat.com>
9310 * inferiors.c (remove_thread): Discard any pending stop reply for
9312 * server.c (remove_all_on_match_pid): Rename to ...
9313 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9315 (discard_queued_stop_replies): Change parameter to a ptid. Now
9317 (handle_v_kill, kill_inferior_callback, captured_main)
9318 (process_serial_event): Adjust.
9319 * server.h (discard_queued_stop_replies): Declare.
9321 2015-08-21 Pedro Alves <palves@redhat.com>
9323 * linux-low.c (wait_for_sigstop): Always switch to no thread
9324 selected if the previously current thread dies.
9325 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9326 process instead of the current thread's.
9327 * remote-utils.c (input_interrupt): Don't check if there's no
9329 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9330 current thread to the general thread fails, error out.
9331 (handle_qxfer_auxv, handle_qxfer_libraries)
9332 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9333 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9334 (handle_query): Check if there's a thread selected instead of
9335 checking whether there's any thread in the thread list.
9336 (handle_qxfer_threads, handle_qxfer_btrace)
9337 (handle_qxfer_btrace_conf): Don't error out early if there's no
9338 thread in the thread list.
9339 (handle_v_cont, myresume): Don't set the current thread to the
9341 (process_serial_event) <Hg handling>: Also set thread_id if the
9342 previous general thread is still alive.
9343 (process_serial_event) <g/G handling>: If setting the current
9344 thread to the general thread fails, error out.
9345 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9346 thread's lwp instead of the current thread's.
9347 * target.c (set_desired_thread): If the desired thread was not
9348 found, leave the current thread pointing to NULL. Return an int
9349 (boolean) indicating success.
9350 * target.h (set_desired_thread): Change return type to int.
9352 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9354 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9355 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9357 (ps_get_thread_area): New function.
9359 2015-08-19 Gary Benson <gbenson@redhat.com>
9361 * hostio.c (handle_pread): Do not attempt to read more data
9362 than hostio_reply_with_data can fit in a packet.
9364 2015-08-18 Joel Brobecker <brobecker@adacore.com>
9366 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9368 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9370 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9372 2015-08-06 Pedro Alves <palves@redhat.com>
9374 * tracepoint.c (expr_eval_result): Now an int.
9376 2015-08-06 Pedro Alves <palves@redhat.com>
9378 * gdbthread.h (struct regcache): Forward declare.
9379 (struct thread_info) <regcache_data>: Now a struct regcache
9381 * inferiors.c (inferior_regcache_data)
9382 (set_inferior_regcache_data): Now work with struct regcache
9384 * inferiors.h (struct regcache): Forward declare.
9385 (inferior_regcache_data, set_inferior_regcache_data): Now work
9386 with struct regcache pointers.
9387 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
9388 (free_register_cache_thread): Remove struct regcache pointer
9391 2015-08-06 Pedro Alves <palves@redhat.com>
9393 * server.c (captured_main): On error, print the exception message
9394 to stderr, and if run_once is set, throw a quit.
9396 2015-08-06 Pedro Alves <palves@redhat.com>
9398 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
9401 2015-08-06 Pedro Alves <palves@redhat.com>
9403 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
9404 reading beyond the passed in buffer length.
9406 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
9408 * tracepoint.c (symbol_list) <required>: Remove.
9410 2015-08-06 Pedro Alves <palves@redhat.com>
9412 * linux-low.c (handle_extended_wait): Set the fork child's suspend
9413 count if stopping and suspending threads.
9414 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
9415 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
9416 (linux_detach): Complete an ongoing step-over.
9417 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
9419 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
9420 (linux_wait_1): If passing a signal to the inferior after
9421 finishing a step-over, unsuspend and re-resume all lwps. If we
9422 see a single-step event but the thread should be continuing, don't
9423 pass the trap to gdb.
9424 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
9425 internal_error instead of gdb_assert.
9426 (enqueue_pending_signal): New function.
9427 (check_ptrace_stopped_lwp_gone): Add debug output.
9428 (start_step_over): Use internal_error instead of gdb_assert.
9429 (complete_ongoing_step_over): New function.
9430 (linux_resume_one_thread): Don't resume a suspended thread.
9431 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
9434 2015-08-06 Pedro Alves <palves@redhat.com>
9436 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
9437 (linux_thread_alive): Use lwp_is_marked_dead.
9438 (extended_event_reported): Delete.
9439 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
9440 instead of extended_event_reported.
9441 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
9443 (lwp_is_marked_dead): New function.
9444 (lwp_running): Use lwp_is_marked_dead.
9445 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
9448 2015-08-06 Pedro Alves <palves@redhat.com>
9450 * linux-low.c (linux_wait_1): Move fork event output out of the
9451 !report_to_gdb check. Pass event_child->waitstatus to
9452 target_waitstatus_to_string instead of ourstatus.
9454 2015-08-04 Yao Qi <yao.qi@linaro.org>
9456 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
9457 if current_thread is 32 bit.
9459 2015-08-04 Yao Qi <yao.qi@linaro.org>
9461 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9462 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9463 * server.c (extended_protocol): Remove "static".
9464 * server.h (extended_protocol): Declare it.
9466 2015-08-04 Yao Qi <yao.qi@linaro.org>
9468 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
9469 both aarch64 and aarch32.
9470 (aarch64_set_pc): Likewise.
9472 2015-08-04 Yao Qi <yao.qi@linaro.org>
9474 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
9475 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
9476 arm-with-neon.xml to srv_xmlfiles.
9477 * linux-aarch64-low.c: Include linux-aarch32-low.h.
9478 (is_64bit_tdesc): New function.
9479 (aarch64_linux_read_description): New function.
9480 (aarch64_arch_setup): Call aarch64_linux_read_description.
9481 (regs_info): Rename to regs_info_aarch64.
9482 (aarch64_regs_info): Return right regs_info.
9483 (initialize_low_arch): Call initialize_low_arch_aarch32.
9485 2015-08-04 Yao Qi <yao.qi@linaro.org>
9487 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
9488 * linux-aarch32-low.c: New file.
9489 * linux-aarch32-low.h: New file.
9490 * linux-arm-low.c (arm_fill_gregset): Move it to
9491 linux-aarch32-low.c.
9492 (arm_store_gregset): Likewise.
9493 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
9494 (arm_store_vfpregset): Call arm_store_vfpregset_num.
9495 (arm_arch_setup): Check if PTRACE_GETREGSET works.
9496 (regs_info): Rename to regs_info_arm.
9497 (arm_regs_info): Return regs_info_aarch32 if
9498 have_ptrace_getregset is 1 and target description is
9499 arm_with_neon or arm_with_vfpv3.
9500 (initialize_low_arch): Don't call init_registers_arm_with_neon.
9501 Call initialize_low_arch_aarch32 instead.
9503 2015-08-04 Yao Qi <yao.qi@linaro.org>
9505 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
9506 * linux-low.c: ... here.
9507 * linux-low.h (have_ptrace_getregset): Declare it.
9509 2015-08-04 Pedro Alves <palves@redhat.com>
9511 * thread-db.c (struct thread_db): Use new typedefs.
9512 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
9514 (disable_thread_event_reporting): Cast result of dlsym to
9515 destination function pointer type.
9516 (thread_db_mourn): Use td_ta_delete_ftype.
9518 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
9520 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
9522 (CDX_BREAKPOINT): Define for R2.
9523 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
9524 (the_low_target): Add comments.
9526 2015-07-30 Yao Qi <yao.qi@linaro.org>
9528 * linux-arm-low.c (arm_hwcap): Remove it.
9529 (arm_read_description): New local variable arm_hwcap. Don't
9530 set arm_hwcap to zero.
9532 2015-07-30 Yao Qi <yao.qi@linaro.org>
9534 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
9535 Use regcache->tdesc instead.
9536 (arm_store_wmmxregset): Likewise.
9537 (arm_fill_vfpregset): Likewise.
9538 (arm_store_vfpregset): Likewise.
9540 2015-07-30 Yao Qi <yao.qi@linaro.org>
9542 * linux-arm-low.c: Include arch/arm.h.
9543 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
9544 (arm_store_gregset): Likewise.
9546 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
9548 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
9549 ptrace's 4th parameter.
9551 2015-07-27 Yao Qi <yao.qi@linaro.org>
9553 * configure.srv (case aarch64*-*-linux*): Don't set
9556 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
9558 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
9560 * linux-arm-low.c: Likewise.
9561 * linux-cris-low.c: Likewise.
9562 * linux-crisv32-low.c: Likewise.
9563 * linux-low.c: Likewise.
9564 * linux-m68k-low.c: Likewise.
9565 * linux-mips-low.c: Likewise.
9566 * linux-nios2-low.c: Likewise.
9567 * linux-s390-low.c: Likewise.
9568 * linux-sparc-low.c: Likewise.
9569 * linux-tic6x-low.c: Likewise.
9570 * linux-tile-low.c: Likewise.
9571 * linux-x86-low.c: Likewise.
9573 2015-07-24 Pedro Alves <palves@redhat.com>
9575 * config.in: Regenerate.
9576 * configure: Regenerate.
9578 2015-07-24 Pedro Alves <palves@redhat.com>
9580 * acinclude.m4: Include ../ptrace.m4.
9581 * configure.ac: Call GDB_AC_PTRACE.
9582 * config.in, configure: Regenerate.
9584 2015-07-24 Yao Qi <yao.qi@linaro.org>
9586 * linux-low.c (linux_create_inferior): Remove setting to
9587 proc->priv->new_inferior.
9588 (linux_attach): Likewise.
9589 (linux_low_filter_event): Likewise.
9590 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
9592 2015-07-24 Yao Qi <yao.qi@linaro.org>
9594 * linux-low.c (linux_arch_setup): New function.
9595 (linux_low_filter_event): If proc->tdesc is NULL and
9596 proc->attached is true, call the_low_target.arch_setup.
9597 Otherwise, keep status pending, and return.
9598 (linux_resume_one_lwp_throw): Don't call get_pc if
9599 thread->while_stepping isn't NULL. Don't call
9600 get_thread_regcache if proc->tdesc is NULL.
9601 (need_step_over_p): Return 0 if proc->tdesc is NULL.
9602 (linux_target_ops): Install arch_setup.
9603 * server.c (start_inferior): Call the_target->arch_setup.
9604 * target.h (struct target_ops) <arch_setup>: New field.
9605 (target_arch_setup): New marco.
9606 * lynx-low.c (lynx_target_ops): Update.
9607 * nto-low.c (nto_target_ops): Update.
9608 * spu-low.c (spu_target_ops): Update.
9609 * win32-low.c (win32_target_ops): Update.
9611 2015-07-24 Yao Qi <yao.qi@linaro.org>
9613 * linux-low.c (linux_add_process): Don't set
9614 proc->priv->new_inferior.
9615 (linux_create_inferior): Set proc->priv->new_inferior to 1.
9616 (linux_attach): Likewise.
9618 2015-07-24 Yao Qi <yao.qi@linaro.org>
9620 * server.c (start_inferior): Code refactor.
9622 2015-07-24 Yao Qi <yao.qi@linaro.org>
9624 * server.c (process_serial_event): Set general_thread.
9626 2015-07-21 Yao Qi <yao.qi@linaro.org>
9628 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
9629 aarch64_linux_get_debug_reg_capacity.
9631 2015-07-17 Yao Qi <yao.qi@linaro.org>
9633 * Makefile.in (aarch64-linux-hw-point.o): New rule.
9634 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
9635 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
9636 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
9637 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
9638 (AARCH64_HWP_ALIGNMENT): Likewise.
9639 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
9640 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
9641 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
9642 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
9643 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
9644 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
9645 (struct aarch64_debug_reg_state): Likewise.
9646 (struct arch_lwp_info): Likewise.
9647 (aarch64_align_watchpoint): Likewise.
9648 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
9649 (aarch64_watchpoint_length): Likewise.
9650 (aarch64_point_encode_ctrl_reg): Likewise
9651 (aarch64_point_is_aligned): Likewise.
9652 (aarch64_align_watchpoint): Likewise.
9653 (aarch64_linux_set_debug_regs):
9654 (aarch64_dr_state_insert_one_point): Likewise.
9655 (aarch64_dr_state_remove_one_point): Likewise.
9656 (aarch64_handle_breakpoint): Likewise.
9657 (aarch64_handle_aligned_watchpoint): Likewise.
9658 (aarch64_handle_unaligned_watchpoint): Likewise.
9659 (aarch64_handle_watchpoint): Likewise.
9661 2015-07-17 Yao Qi <yao.qi@linaro.org>
9663 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
9664 and don't aarch64_get_debug_reg_state. All callers update.
9665 (aarch64_handle_aligned_watchpoint): Likewise.
9666 (aarch64_handle_unaligned_watchpoint): Likewise.
9667 (aarch64_handle_watchpoint): Likewise.
9668 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
9669 (aarch64_remove_point): Likewise.
9671 2015-07-17 Yao Qi <yao.qi@linaro.org>
9673 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
9675 (aarch64_handle_unaligned_watchpoint): Likewise.
9677 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9679 Revert the previous 3 commits:
9680 Move gdb_regex* to common/
9681 Move linux_find_memory_regions_full & co.
9682 gdbserver build-id attribute generator
9684 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9685 Jan Kratochvil <jan.kratochvil@redhat.com>
9687 gdbserver build-id attribute generator.
9688 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
9689 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
9690 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
9692 (get_dynamic): Use find_pdhr to traverse program headers.
9693 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
9694 (compare_mapping_entry_range, struct find_memory_region_callback_data)
9695 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
9696 (get_hex_build_id): New.
9697 (linux_qxfer_libraries_svr4): Add optional build-id attribute
9698 to reply XML document.
9700 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9701 Jan Kratochvil <jan.kratochvil@redhat.com>
9703 * target.c: Include target/target-utils.h and fcntl.h.
9704 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
9705 (target_fileio_read_stralloc): New functions.
9707 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9709 * Makefile.in (OBS): Add gdb_regex.o.
9711 * config.in: Rebuilt.
9712 * configure: Rebuilt.
9714 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9715 Jan Kratochvil <jan.kratochvil@redhat.com>
9717 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
9718 * Makefile.in (OBS): Add target-utils.o.
9719 (linux-maps.o, target-utils.o): New.
9720 * configure.srv (srv_linux_obj): Add linux-maps.o.
9722 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
9724 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
9726 (the_low_target): Install it.
9728 2015-07-14 Pedro Alves <palves@redhat.com>
9730 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
9731 Instead, ignore ECHILD, and throw an error for other errnos.
9733 2015-07-10 Pedro Alves <palves@redhat.com>
9735 * event-loop.c (struct callback_event) <data>: Change type to
9736 gdb_client_data instance instead of gdb_client_data pointer.
9737 (append_callback_event): Adjust.
9739 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
9741 * linux-aarch64-low.c: Add comments for each linux_target_ops
9742 method. Remove comments already covered in target_ops and
9743 linux_target_ops definitions.
9744 (the_low_target): Add comments for each unimplemented method.
9746 2015-07-09 Yao Qi <yao.qi@linaro.org>
9748 * linux-aarch64-low.c (aarch64_regmap): Remove.
9749 (aarch64_usrregs_info): Remove.
9750 (regs_info): Set field usrregs to NULL.
9752 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
9754 * linux-low.c: Include "rsp-low.h"
9755 (linux_low_encode_pt_config, linux_low_encode_raw): New.
9756 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
9757 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
9758 (handle_btrace_enable_pt): New.
9759 (handle_btrace_general_set): Support "pt".
9760 (handle_btrace_conf_general_set): Support "pt:size".
9762 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9764 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
9767 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9769 * linux-aarch64-low.c: Remove comment about endianness.
9770 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
9771 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
9774 2015-06-24 Gary Benson <gbenson@redhat.com>
9776 * linux-i386-ipa.c (stdint.h): Do not include.
9777 * lynx-i386-low.c (stdint.h): Likewise.
9778 * lynx-ppc-low.c (stdint.h): Likewise.
9779 * mem-break.c (stdint.h): Likewise.
9780 * thread-db.c (stdint.h): Likewise.
9781 * tracepoint.c (stdint.h): Likewise.
9782 * win32-low.c (stdint.h): Likewise.
9784 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
9786 * server.c (write_qxfer_response): Update call to
9787 remote_escape_output.
9789 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
9790 Jan Kratochvil <jan.kratochvil@redhat.com>
9792 Merge multiple hex conversions.
9793 * gdbreplay.c (tohex): Rename to 'fromhex'.
9794 (logchar): Use fromhex.
9796 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9798 * server.c (handle_qxfer_libraries): Set `version' attribute for
9801 2015-06-10 Gary Benson <gbenson@redhat.com>
9803 * target.h (struct target_ops) <multifs_open>: New field.
9804 <multifs_unlink>: Likewise.
9805 <multifs_readlink>: Likewise.
9806 * linux-low.c (nat/linux-namespaces.h): New include.
9807 (linux_target_ops): Initialize the_target->multifs_open,
9808 the_target->multifs_unlink and the_target->multifs_readlink.
9809 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
9810 * hostio.c (hostio_fs_pid): New static variable.
9811 (hostio_handle_new_gdb_connection): New function.
9812 (handle_setfs): Likewise.
9813 (handle_open): Use the_target->multifs_open as appropriate.
9814 (handle_unlink): Use the_target->multifs_unlink as appropriate.
9815 (handle_readlink): Use the_target->multifs_readlink as
9817 (handle_vFile): Handle vFile:setfs packets.
9818 * server.c (handle_query): Call hostio_handle_new_gdb_connection
9819 after target_handle_new_gdb_connection.
9821 2015-06-10 Gary Benson <gbenson@redhat.com>
9823 * configure.ac (AC_CHECK_FUNCS): Add setns.
9824 * config.in: Regenerate.
9825 * configure: Likewise.
9826 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
9827 (linux-namespaces.o): New rule.
9828 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
9830 2015-06-09 Gary Benson <gbenson@redhat.com>
9832 * hostio.c (handle_open): Process mode argument with
9833 fileio_to_host_mode.
9835 2015-06-01 Yao Qi <yao.qi@linaro.org>
9837 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9838 * linux-x86-low.c: Likewise.
9840 2015-05-28 Don Breazeal <donb@codesourcery.com>
9842 * linux-low.c (handle_extended_wait): Initialize
9843 thread_info.last_resume_kind for new fork children.
9845 2015-05-15 Pedro Alves <palves@redhat.com>
9847 * target.h (target_handle_new_gdb_connection): Rewrite using if
9848 wrapped in do/while.
9850 2015-05-14 Joel Brobecker <brobecker@adacore.com>
9852 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
9853 * configure, config.in: Regenerate.
9854 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
9857 2015-05-12 Don Breazeal <donb@codesourcery.com>
9859 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
9860 PTRACE_EVENT_VFORK_DONE.
9861 (linux_low_ptrace_options, extended_event_reported): Add vfork
9863 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
9864 and "vforkdone" for RSP 'T' Stop Reply Packet.
9865 * server.h (report_vfork_events): Declare
9868 2015-05-12 Don Breazeal <donb@codesourcery.com>
9870 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
9871 (the_low_target) <new_fork>: Initialize new member.
9872 * linux-arm-low.c (arm_new_fork): New function.
9873 (the_low_target) <new_fork>: Initialize new member.
9874 * linux-low.c (handle_extended_wait): Call new target function
9876 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
9877 * linux-mips-low.c (mips_add_watchpoint): New function
9878 extracted from mips_insert_point.
9879 (the_low_target) <new_fork>: Initialize new member.
9880 (mips_linux_new_fork): New function.
9881 (mips_insert_point): Call mips_add_watchpoint.
9882 * linux-x86-low.c (x86_linux_new_fork): New function.
9883 (the_low_target) <new_fork>: Initialize new member.
9885 2015-05-12 Don Breazeal <donb@codesourcery.com>
9887 * linux-low.c (handle_extended_wait): Implement return value,
9888 rename argument 'event_child' to 'event_lwp', handle
9889 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
9890 (linux_low_ptrace_options): New function.
9891 (linux_low_filter_event): Call linux_low_ptrace_options,
9892 use different argument fo linux_enable_event_reporting,
9893 use return value from handle_extended_wait.
9894 (extended_event_reported): New function.
9895 (linux_wait_1): Call extended_event_reported and set
9896 status to report fork events.
9897 (linux_write_memory): Add pid to debug message.
9898 (reset_lwp_ptrace_options_callback): New function.
9899 (linux_handle_new_gdb_connection): New function.
9900 (linux_target_ops): Initialize new structure member.
9901 * linux-low.h (struct lwp_info) <waitstatus>: New member.
9902 * lynx-low.c: Initialize new structure member.
9903 * remote-utils.c (prepare_resume_reply): Implement stop reason
9904 "fork" for "T" stop message.
9905 * server.c (handle_query): Call handle_new_gdb_connection.
9906 * server.h (report_fork_events): Declare global flag.
9907 * target.h (struct target_ops) <handle_new_gdb_connection>:
9909 (target_handle_new_gdb_connection): New macro.
9910 * win32-low.c: Initialize new structure member.
9912 2015-05-12 Don Breazeal <donb@codesourcery.com>
9914 * mem-break.c (APPEND_TO_LIST): Define macro.
9915 (clone_agent_expr): New function.
9916 (clone_one_breakpoint): New function.
9917 (clone_all_breakpoints): New function.
9918 * mem-break.h: Declare new functions.
9920 2015-05-12 Don Breazeal <donb@codesourcery.com>
9922 * linux-low.c (linux_supports_fork_events): New function.
9923 (linux_supports_vfork_events): New function.
9924 (linux_target_ops): Initialize new structure members.
9925 (initialize_low): Call linux_check_ptrace_features.
9926 * lynx-low.c (lynx_target_ops): Initialize new structure
9928 * server.c (report_fork_events, report_vfork_events):
9930 (handle_query): Add new features to qSupported packet and
9932 (captured_main): Initialize new global variables.
9933 * target.h (struct target_ops) <supports_fork_events>:
9935 <supports_vfork_events>: New member.
9936 (target_supports_fork_events): New macro.
9937 (target_supports_vfork_events): New macro.
9938 * win32-low.c (win32_target_ops): Initialize new structure
9941 2015-05-12 Gary Benson <gbenson@redhat.com>
9943 * server.c (handle_qxfer_exec_file): Use current process
9946 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9948 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
9949 Remove HAVE_PTRACE_GETREGS conditionals.
9950 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
9951 instead of PTRACE_GETREGS and PTRACE_SETREGS.
9953 2015-05-08 Yao Qi <yao.qi@linaro.org>
9955 * linux-low.c (linux_supports_conditional_breakpoints): New
9957 (linux_target_ops): Install new target method.
9958 * lynx-low.c (lynx_target_ops): Install NULL hook for
9959 supports_conditional_breakpoints.
9960 * nto-low.c (nto_target_ops): Likewise.
9961 * spu-low.c (spu_target_ops): Likewise.
9962 * win32-low.c (win32_target_ops): Likewise.
9963 * server.c (handle_query): Check
9964 target_supports_conditional_breakpoints.
9965 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9967 (target_supports_conditional_breakpoints): New macro.
9969 2015-05-06 Pedro Alves <palves@redhat.com>
9972 * server.c (start_inferior): If the process exits, mourn it.
9974 2015-04-21 Gary Benson <gbenson@redhat.com>
9976 * hostio.c (fileio_open_flags_to_host): Factored out to
9977 fileio_to_host_openflags in common/fileio.c. Single use
9980 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9982 * linux-xtensa-low.c (xtensa_fill_gregset)
9983 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
9986 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9988 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
9989 (regs_info): Replace usrregs pointer with NULL.
9991 2015-04-17 Gary Benson <gbenson@redhat.com>
9993 * target.h (struct target_ops) <pid_to_exec_file>: New field.
9994 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
9995 * server.c (handle_qxfer_exec_file): New function.
9996 (qxfer_packets): Add exec-file entry.
9997 (handle_query): Report qXfer:exec-file:read as supported packet.
9999 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10001 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10003 2015-04-09 Gary Benson <gbenson@redhat.com>
10005 * hostio-errno.c (errno_to_fileio_error): Remove function.
10006 Update caller to use remote_fileio_to_fio_error.
10008 2015-04-09 Yao Qi <yao.qi@linaro.org>
10010 * linux-low.c (linux_insert_point): Call
10011 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10012 (linux_remove_point): Call remove_memory_breakpoint if type is
10014 * linux-x86-low.c (x86_insert_point): Don't call
10015 insert_memory_breakpoint.
10016 (x86_remove_point): Don't call remove_memory_breakpoint.
10018 2015-04-01 Pedro Alves <palves@redhat.com>
10019 Cleber Rosa <crosa@redhat.com>
10021 * server.c (gdbserver_usage): Reorganize and extend the usage
10024 2015-03-24 Pedro Alves <palves@redhat.com>
10026 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10027 output. Also dump TRAP_TRACE.
10028 (linux_low_filter_event): In debug output, distinguish a
10029 resume_stop SIGSTOP from a delayed SIGSTOP.
10031 2015-03-24 Gary Benson <gbenson@redhat.com>
10033 * linux-x86-low.c (x86_linux_new_thread): Moved to
10035 (x86_linux_prepare_to_resume): Likewise.
10037 2015-03-24 Gary Benson <gbenson@redhat.com>
10039 * Makefile.in (x86-linux-dregs.o): New rule.
10040 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10041 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10042 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10043 (x86_linux_dr_get): Likewise.
10044 (x86_linux_dr_set): Likewise.
10045 (update_debug_registers_callback): Likewise.
10046 (x86_linux_dr_set_addr): Likewise.
10047 (x86_linux_dr_get_addr): Likewise.
10048 (x86_linux_dr_set_control): Likewise.
10049 (x86_linux_dr_get_control): Likewise.
10050 (x86_linux_dr_get_status): Likewise.
10051 (x86_linux_update_debug_registers): Likewise.
10053 2015-03-24 Gary Benson <gbenson@redhat.com>
10055 * linux-x86-low.c (x86_linux_update_debug_registers):
10056 New function, factored out from...
10057 (x86_linux_prepare_to_resume): ...this.
10059 2015-03-24 Gary Benson <gbenson@redhat.com>
10061 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10062 (x86_linux_dr_set): Likewise.
10063 (update_debug_registers_callback): Likewise.
10064 (x86_linux_dr_set_addr): Likewise.
10065 (x86_linux_dr_get_addr): Likewise.
10066 (x86_linux_dr_set_control): Likewise.
10067 (x86_linux_dr_get_control): Likewise.
10068 (x86_linux_dr_get_status): Likewise.
10069 (x86_linux_prepare_to_resume): Likewise.
10071 2015-03-24 Gary Benson <gbenson@redhat.com>
10073 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10074 Use perror_with_name. Pass string through gettext.
10075 (x86_linux_dr_set): Likewise.
10077 2015-03-24 Gary Benson <gbenson@redhat.com>
10079 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10080 (x86_linux_dr_set_addr): ...this.
10081 (x86_dr_low_get_addr): Rename to...
10082 (x86_linux_dr_get_addr): ...this.
10083 (x86_dr_low_set_control): Rename to...
10084 (x86_linux_dr_set_control): ...this.
10085 (x86_dr_low_get_control): Rename to...
10086 (x86_linux_dr_get_control): ...this.
10087 (x86_dr_low_get_status): Rename to...
10088 (x86_linux_dr_get_status): ...this.
10089 (x86_dr_low): Update with new function names.
10091 2015-03-24 Gary Benson <gbenson@redhat.com>
10093 * Makefile.in (x86-linux.o): New rule.
10094 * configure.srv: Add x86-linux.o to relevant targets.
10095 * linux-low.c (lwp_set_arch_private_info): New function.
10096 (lwp_arch_private_info): Likewise.
10097 * linux-x86-low.c: Include nat/x86-linux.h.
10098 (arch_lwp_info): Removed structure.
10099 (update_debug_registers_callback):
10100 Use lwp_set_debug_registers_changed.
10101 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10102 and lwp_set_debug_registers_changed.
10103 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10105 2015-03-24 Gary Benson <gbenson@redhat.com>
10107 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10108 * linux-arm-low.c (arm_new_thread): Likewise.
10109 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10110 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10111 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10112 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10114 2015-03-24 Gary Benson <gbenson@redhat.com>
10116 * linux-low.c (ptid_of_lwp): New function.
10117 (lwp_is_stopped): Likewise.
10118 (lwp_stop_reason): Likewise.
10119 * linux-x86-low.c (update_debug_registers_callback):
10120 Use lwp_is_stopped.
10121 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10124 2015-03-24 Gary Benson <gbenson@redhat.com>
10126 * linux-low.h (linux_stop_lwp): Remove declaration.
10128 2015-03-24 Gary Benson <gbenson@redhat.com>
10130 * linux-low.h: Include nat/linux-nat.h.
10131 * linux-low.c (iterate_over_lwps_args): New structure.
10132 (iterate_over_lwps_filter): New function.
10133 (iterate_over_lwps): Likewise.
10134 * linux-x86-low.c (update_debug_registers_callback):
10135 Update signature to what iterate_over_lwps expects.
10136 Remove PID check that iterate_over_lwps now performs.
10137 (x86_dr_low_set_addr): Use iterate_over_lwps.
10138 (x86_dr_low_set_control): Likewise.
10140 2015-03-24 Gary Benson <gbenson@redhat.com>
10142 * linux-x86-low.c (x86_debug_reg_state): New function.
10143 (x86_linux_prepare_to_resume): Use the above.
10145 2015-03-24 Gary Benson <gbenson@redhat.com>
10147 * linux-low.c (current_lwp_ptid): New function.
10148 * linux-x86-low.c: Include nat/linux-nat.h.
10149 (x86_dr_low_get_addr): Use current_lwp_ptid.
10150 (x86_dr_low_get_control): Likewise.
10151 (x86_dr_low_get_status): Likewise.
10153 2015-03-20 Pedro Alves <palves@redhat.com>
10155 * tracepoint.c (cmd_qtstatus): Make "str" const.
10157 2015-03-20 Pedro Alves <palves@redhat.com>
10159 * server.c (handle_general_set): Make "req_str" const.
10161 2015-03-19 Pedro Alves <palves@redhat.com>
10163 * linux-low.c (linux_resume_one_lwp): Rename to ...
10164 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10165 instead call perror_with_name.
10166 (check_ptrace_stopped_lwp_gone): New function.
10167 (linux_resume_one_lwp): Reimplement as wrapper around
10168 linux_resume_one_lwp_throw that swallows errors if the LWP is
10171 2015-03-19 Pedro Alves <palves@redhat.com>
10173 * linux-low.c (count_events_callback, select_event_lwp_callback):
10174 No longer check whether the thread has resume_stop as last resume
10177 2015-03-19 Pedro Alves <palves@redhat.com>
10179 * linux-low.c (count_events_callback, select_event_lwp_callback):
10180 Use the lwp's status_pending_p field, not the thread's.
10182 2015-03-19 Pedro Alves <palves@redhat.com>
10184 * linux-low.c (select_event_lwp_callback): Update comments to
10185 no longer mention SIGTRAP.
10187 2015-03-18 Gary Benson <gbenson@redhat.com>
10189 * server.c (handle_query): Do not report vFile:fstat as supported.
10191 2015-03-11 Gary Benson <gbenson@redhat.com>
10193 * hostio.c (sys/types.h): New include.
10194 (sys/stat.h): Likewise.
10195 (common-remote-fileio.h): Likewise.
10196 (handle_fstat): New function.
10197 (handle_vFile): Handle vFile:fstat packets.
10199 2015-03-11 Gary Benson <gbenson@redhat.com>
10201 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10202 struct stat.st_blocks and struct stat.st_blksize.
10203 * configure: Regenerate.
10204 * config.in: Likewise.
10205 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10206 (OBS): Add common-remote-fileio.o.
10207 (common-remote-fileio.o): New rule.
10209 2015-03-09 Pedro Alves <palves@redhat.com>
10211 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10212 'struct sockaddr' pointer in 'accept' call.
10214 2015-03-09 Pedro Alves <palves@redhat.com>
10217 2015-03-07 Pedro Alves <palves@redhat.com>
10218 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10219 or <winsock2.h> here. Instead include "gdb_socket.h".
10220 (remote_open): Use union gdb_sockaddr_u.
10221 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10222 or <winsock2.h> here. Instead include "gdb_socket.h".
10223 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10224 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10226 (init_named_socket, gdb_agent_helper_thread): Use union
10229 2015-03-07 Pedro Alves <palves@redhat.com>
10231 * configure.ac (build_warnings): Move
10232 -Wdeclaration-after-statement to the C-specific set.
10233 * configure: Regenerate.
10235 2015-03-07 Pedro Alves <palves@redhat.com>
10237 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10238 or <winsock2.h> here. Instead include "gdb_socket.h".
10239 (remote_open): Use union gdb_sockaddr_u.
10240 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10241 or <winsock2.h> here. Instead include "gdb_socket.h".
10242 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10243 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10245 (init_named_socket, gdb_agent_helper_thread): Use union
10248 2015-03-07 Pedro Alves <palves@redhat.com>
10250 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10253 2015-03-06 Yao Qi <yao.qi@linaro.org>
10255 * linux-aarch64-low.c (aarch64_insert_point): Use
10256 show_debug_regs as a boolean.
10257 (aarch64_remove_point): Likewise.
10259 2015-03-05 Pedro Alves <palves@redhat.com>
10261 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10262 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10263 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10264 * nto-low.c (nto_target_ops): Likewise.
10265 * spu-low.c (spu_target_ops): Likewise.
10266 * win32-low.c (win32_target_ops): Likewise.
10268 2015-03-04 Pedro Alves <palves@redhat.com>
10270 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
10271 Decide whether a breakpoint triggered based on the SIGTRAP's
10273 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10274 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10275 (linux_low_filter_event): Check for breakpoints before checking
10277 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10279 (linux_stopped_by_sw_breakpoint)
10280 (linux_supports_stopped_by_sw_breakpoint)
10281 (linux_stopped_by_hw_breakpoint)
10282 (linux_supports_stopped_by_hw_breakpoint): New functions.
10283 (linux_target_ops): Install new target methods.
10285 2015-03-04 Pedro Alves <palves@redhat.com>
10287 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10288 * server.c (swbreak_feature, hwbreak_feature): New globals.
10289 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10290 (captured_main): Clear swbreak_feature and hwbreak_feature.
10291 * server.h (swbreak_feature, hwbreak_feature): Declare.
10292 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10293 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10294 supports_stopped_by_hw_breakpoint>: New fields.
10295 (target_supports_stopped_by_sw_breakpoint)
10296 (target_stopped_by_sw_breakpoint)
10297 (target_supports_stopped_by_hw_breakpoint)
10298 (target_stopped_by_hw_breakpoint): Declare.
10300 2015-03-04 Pedro Alves <palves@redhat.com>
10302 enum lwp_stop_reason -> enum target_stop_reason
10303 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10304 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10305 (linux_wait_1, stuck_in_jump_pad_callback)
10306 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10307 (linux_stopped_by_watchpoint):
10308 * linux-low.h (enum lwp_stop_reason): Delete.
10309 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10310 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10312 2015-03-04 Yao Qi <yao.qi@linaro.org>
10314 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10316 2015-03-03 Gary Benson <gbenson@redhat.com>
10318 * hostio.c (handle_vFile): Fix prefix lengths.
10320 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10322 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10325 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10327 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10328 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10329 (clean): Add "rm -f" for above C files.
10330 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10331 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10332 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10333 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10334 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10335 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10336 (init_registers_s390x_vx_linux64)
10337 (init_registers_s390x_tevx_linux64)
10338 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10339 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10341 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10342 (s390_store_vxrs_high): New functions.
10343 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10345 (s390_arch_setup): Add logic for selecting one of the new target
10346 descriptions. Activate the new vector regsets if applicable.
10347 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10348 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10349 and init_registers_s390x_tevx_linux64.
10351 2015-03-01 Pedro Alves <palves@redhat.com>
10353 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10356 2015-02-27 Pedro Alves <palves@redhat.com>
10358 * linux-x86-low.c (u_debugreg_offset): New function.
10359 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10361 2015-02-27 Pedro Alves <palves@redhat.com>
10363 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10364 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10365 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10366 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10367 (ps_lsetfpregs, ps_getpid)
10368 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10369 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10370 (ps_lsetxregs, ps_plog): Declare.
10372 2015-02-27 Pedro Alves <palves@redhat.com>
10374 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
10375 IP_AGENT_EXPORT_FUNC.
10376 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
10377 IP_AGENT_EXPORT_FUNC.
10378 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
10379 (IP_AGENT_EXPORT): Delete.
10380 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10381 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10382 (gdb_trampoline_buffer_error, collecting, gdb_collect)
10383 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
10384 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
10385 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
10386 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
10387 (traceframe_read_count, traceframe_write_count)
10388 (traceframes_created, trace_state_variables, get_raw_reg)
10389 (get_trace_state_variable_value, set_trace_state_variable_value)
10390 (ust_loaded, helper_thread_id, cmd_buf): Use
10391 IPA_SYM_EXPORTED_NAME.
10392 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
10393 (tracepoints) Use IP_AGENT_EXPORT_VAR.
10394 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
10395 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10396 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
10397 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
10398 EXTERN_C_PUSH/EXTERN_C_POP.
10399 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
10400 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
10401 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10402 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
10403 (traceframe_write_count, traceframe_read_count)
10404 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
10405 (about_to_request_buffer_space, get_trace_state_variable_value)
10406 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
10407 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
10408 EXTERN_C_PUSH/EXTERN_C_POP.
10409 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
10410 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
10411 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
10412 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10413 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10414 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10415 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
10416 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
10418 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
10419 (IP_AGENT_EXPORT_VAR_DECL): Define.
10420 (tracing): Declare.
10421 (gdb_agent_get_raw_reg): Declare.
10423 2015-02-27 Tom Tromey <tromey@redhat.com>
10424 Pedro Alves <palves@redhat.com>
10426 Rename symbols whose names are reserved C++ keywords throughout.
10428 2015-02-27 Pedro Alves <palves@redhat.com>
10430 * Makefile.in (COMPILER): New, get it from autoconf.
10431 (CXX): Get from autoconf instead.
10432 (COMPILE.pre): Use COMPILER.
10433 (CC-LD): Rename to ...
10434 (CC_LD): ... this. Use COMPILER.
10435 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
10436 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10437 * acinclude.m4: Include build-with-cxx.m4.
10438 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10439 Disable -Werror by default if building in C++ mode.
10440 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10441 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
10442 the C++ compiler. Save/restore CXXFLAGS too.
10443 * configure: Regenerate.
10445 2015-02-27 Pedro Alves <palves@redhat.com>
10447 * acinclude.m4: Include libiberty.m4.
10448 * configure.ac: Call libiberty_INIT.
10449 * config.in, configure: Regenerate.
10451 2015-02-26 Pedro Alves <palves@redhat.com>
10453 * linux-low.c (linux_wait_1): When incrementing the PC past a
10454 program breakpoint always use the_low_target.breakpoint_len as
10455 increment, rather than the maximum between that and
10456 the_low_target.decr_pc_after_break.
10458 2015-02-23 Pedro Alves <palves@redhat.com>
10460 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
10461 thread was doing a step-over; always adjust the PC if
10462 we stepped over a permanent breakpoint.
10463 (linux_wait_1): If we stepped over breakpoint that was on top of a
10464 permanent breakpoint, manually advance the PC past it.
10466 2015-02-23 Pedro Alves <palves@redhat.com>
10468 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
10470 (x86_fill_gregset, x86_store_gregset): Use it when handling
10473 2015-02-20 Pedro Alves <palves@redhat.com>
10475 * thread-db.c: Include "nat/linux-procfs.h".
10476 (thread_db_init): Skip listing new threads if the kernel supports
10477 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
10479 2015-02-20 Pedro Alves <palves@redhat.com>
10481 * linux-low.c (status_pending_p_callback): Use ptid_match.
10483 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10485 PR breakpoints/16812
10486 * linux-low.c (wstatus_maybe_breakpoint): Remove.
10487 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
10488 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
10490 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10492 PR breakpoints/15956
10493 * tracepoint.c (cmd_qtinit): Add check for current_thread.
10495 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10497 * linux-low.c (linux_low_btrace_conf): Print size.
10498 * server.c (handle_btrace_conf_general_set): New.
10499 (hanle_general_set): Call handle_btrace_conf_general_set.
10500 (handle_query): Report Qbtrace-conf:bts:size as supported.
10502 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10504 * linux-low.c (linux_low_enable_btrace): Update parameters.
10505 (linux_low_btrace_conf): New.
10506 (linux_target_ops)<to_btrace_conf>: Initialize.
10507 * server.c (current_btrace_conf): New.
10508 (handle_btrace_enable): Rename to ...
10509 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
10510 to target_enable_btrace. Update comment. Update users.
10511 (handle_qxfer_btrace_conf): New.
10512 (qxfer_packets): Add btrace-conf entry.
10513 (handle_query): Report qXfer:btrace-conf:read as supported packet.
10514 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
10515 (target_ops)<read_btrace_conf>: New.
10516 (target_enable_btrace): Update parameters.
10517 (target_read_btrace_conf): New.
10519 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10521 * server.c (handle_btrace_general_set): Remove call to
10522 target_supports_btrace.
10523 (supported_btrace_packets): New.
10524 (handle_query): Call supported_btrace_packets.
10525 * target.h: include btrace-common.h.
10526 (btrace_target_info): Removed.
10527 (supports_btrace, target_supports_btrace): Update parameters.
10529 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10531 * Makefile.in (SFILES): Add common/btrace-common.c.
10532 (OBS): Add common/btrace-common.o.
10533 (btrace-common.o): Add build rules.
10534 * linux-low: Include btrace-common.h.
10535 (linux_low_read_btrace): Use struct btrace_data. Call
10536 btrace_data_init and btrace_data_fini.
10538 2015-02-06 Pedro Alves <palves@redhat.com>
10540 * thread-db.c (find_new_threads_callback): Add debug output.
10542 2015-02-04 Pedro Alves <palves@redhat.com>
10544 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
10545 (resume_stopped_resumed_lwps): New function.
10546 (linux_wait_for_event_filtered): Use it.
10548 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10550 * Makefile.in (SFILES): Add linux-personality.c.
10551 (linux-personality.o): New rule.
10552 * configure.srv (srv_linux_obj): Add linux-personality.o to the
10553 list of objects to be built.
10554 * linux-low.c: Include nat/linux-personality.h.
10555 (linux_create_inferior): Remove code to disable address space
10556 randomization (moved to ../nat/linux-personality.c). Create
10557 cleanup to disable address space randomization.
10559 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10561 * Makefile.in (posix-strerror.o): New rule.
10562 (mingw-strerror.o): Likewise.
10563 * configure: Regenerated.
10564 * configure.ac: Source file ../common/common.host. Initialize new
10565 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
10567 2015-01-14 Yao Qi <yao@codesourcery.com>
10569 * Makefile.in (SFILES): Add nat/ppc-linux.c.
10570 (ppc-linux.o): New rule.
10571 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
10572 * configure.ac: AC_CHECK_FUNCS(getauxval).
10573 * config.in: Re-generated.
10574 * configure: Re-generated.
10575 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
10576 ppc64_64bit_inferior_p
10578 2015-01-14 Yao Qi <yao@codesourcery.com>
10580 * linux-ppc-low.c: Include "nat/ppc-linux.h".
10581 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
10582 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
10583 (PT_ORIG_R3, PT_TRAP): Likewise.
10584 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10585 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10586 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10588 2015-01-10 Joel Brobecker <brobecker@adacore.com>
10590 * i387-fp.c (i387_cache_to_xsave): In look over
10591 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
10592 zmmh_low_space field by use of zmmh_high_space.
10594 2015-01-09 Pedro Alves <palves@redhat.com>
10596 * linux-low.c (step_over_bkpt): Move higher up in the file.
10597 (handle_extended_wait): Don't store the stop_pc here.
10598 (get_stop_pc): Adjust comments and rename to ...
10599 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10600 stopped for a software breakpoint or hardware breakpoint.
10601 (thread_still_has_status_pending_p): New function.
10602 (status_pending_p_callback): Use
10603 thread_still_has_status_pending_p. If the event is no longer
10604 interesting, resume the LWP.
10605 (handle_tracepoints): Add assert.
10606 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
10607 (wstatus_maybe_breakpoint): New function.
10608 (cancel_breakpoint): Delete function.
10609 (check_stopped_by_watchpoint): New function, factored out from
10610 linux_low_filter_event.
10611 (lp_status_maybe_breakpoint): Delete function.
10612 (linux_low_filter_event): Remove filter_ptid argument.
10613 Leave thread group exits pending here. Store the LWP's stop PC.
10614 Always leave events pending.
10615 (linux_wait_for_event_filtered): Pull all events out of the
10616 kernel, and leave them all pending.
10617 (count_events_callback, select_event_lwp_callback): Consider all
10619 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
10620 (select_event_lwp): Only give preference to the stepping LWP in
10621 all-stop mode. Adjust comments.
10622 (ignore_event): New function.
10623 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
10624 references to cancel_breakpoints. Adjust to renames. Also give
10625 equal priority to all LWPs that have had events in non-stop mode.
10626 If reporting a software breakpoint event, unadjust the LWP's PC.
10627 (linux_wait): If linux_wait_1 returned an ignored event, retry.
10628 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
10630 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
10631 (resume_status_pending_p): Use thread_still_has_status_pending_p.
10632 (linux_stopped_by_watchpoint): Adjust.
10633 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
10634 * linux-low.h (enum lwp_stop_reason): New.
10635 (struct lwp_info) <stop_pc>: Adjust comment.
10636 <stopped_by_watchpoint>: Delete field.
10637 <stop_reason>: New field.
10638 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10639 * mem-break.c (software_breakpoint_inserted_here)
10640 (hardware_breakpoint_inserted_here): New function.
10641 * mem-break.h (software_breakpoint_inserted_here)
10642 (hardware_breakpoint_inserted_here): Declare.
10643 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
10644 (cancel_breakpoints): Delete.
10645 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
10646 (upload_fast_traceframes): Remove references to
10647 cancel_breakpoints.
10649 2015-01-09 Pedro Alves <palves@redhat.com>
10651 * thread-db.c (find_new_threads_callback): Ignore thread if the
10652 kernel thread ID is -1.
10654 2015-01-09 Pedro Alves <palves@redhat.com>
10656 * linux-low.c (linux_attach_fail_reason_string): Move to
10657 nat/linux-ptrace.c, and rename.
10658 (linux_attach_lwp): Update comment.
10659 (attach_proc_task_lwp_callback): New function.
10660 (linux_attach): Adjust to rename and use
10661 linux_proc_attach_tgid_threads.
10662 (linux_attach_fail_reason_string): Delete declaration.
10664 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10666 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
10667 * server.c (gdbserver_version): Likewise.
10669 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
10671 * remote-utils.c: Include ctype.h.
10672 (input_interrupt): Explicitly handle the case when the char
10673 received is the NUL byte. Improve the printing of non-ASCII
10676 2014-12-16 Joel Brobecker <brobecker@adacore.com>
10678 * linux-low.c (linux_low_filter_event): Update call to
10679 linux_enable_event_reporting following the addition of
10680 a new parameter to that function.
10682 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
10685 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
10686 (AARCH64_FPCR_REGNO): Likewise.
10687 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
10688 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
10689 (aarch64_store_fpregset): Likewise.
10691 2014-12-15 Joel Brobecker <brobecker@adacore.com>
10693 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
10694 Remove FIXME comment about assumption about N.
10696 2014-12-13 Joel Brobecker <brobecker@adacore.com>
10698 * configure.ac: If large-file support is disabled in GDBserver,
10699 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
10700 * configure: Regenerate.
10702 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10704 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
10705 warning upon ENODATA from ptrace.
10706 * linux-s390-low.c (s390_store_tdb): New.
10707 (s390_regsets): Add regset for NT_S390_TDB.
10709 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10711 * linux-low.c (regsets_store_inferior_registers): Skip regsets
10712 without a fill_function.
10713 * linux-s390-low.c (s390_fill_last_break): Remove.
10714 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
10715 (s390_arch_setup): Use regset's size instead of fill_function for
10716 loop end condition.
10718 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10720 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
10721 the regset's store function when ptrace returned an error.
10722 * regcache.c (get_thread_regcache): Invalidate register cache
10723 before fetching inferior's registers.
10725 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10727 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
10728 while-loop as for-loop.
10729 (regsets_store_inferior_registers): Likewise.
10731 2014-11-28 Yao Qi <yao@codesourcery.com>
10733 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
10734 * config.in, configure: Re-generate.
10735 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
10738 2014-11-21 Yao Qi <yao@codesourcery.com>
10740 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
10741 (AC_CHECK_HEADERS): Remove malloc.h.
10742 * configure: Re-generated.
10743 * config.in: Re-generated.
10744 * server.h: Don't include alloca.h and malloc.h.
10745 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
10746 Don't include malloc.h.
10748 2014-11-17 Joel Brobecker <brobecker@adacore.com>
10750 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
10751 corresponding ERRNO check in same block.
10753 2014-11-12 Pedro Alves <palves@redhat.com>
10755 * server.c (cont_thread): Update comment.
10756 (start_inferior, attach_inferior): No longer clear cont_thread.
10757 (handle_v_cont): No longer set cont_thread.
10758 (captured_main): Clear cont_thread each time a GDB connects.
10760 2014-11-12 Pedro Alves <palves@redhat.com>
10762 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
10763 thread, and don't resume all threads if the Hc thread has exited.
10765 2014-11-12 Pedro Alves <palves@redhat.com>
10767 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
10768 the process group instead of to a specific LWP.
10770 2014-10-15 Pedro Alves <palves@redhat.com>
10773 * win32-arm-low.c (arm_set_thread_context): Remove current_event
10775 (arm_set_thread_context): Delete.
10776 (the_low_target): Adjust.
10777 * win32-i386-low.c (debug_registers_changed)
10778 (debug_registers_used): Delete.
10779 (update_debug_registers_callback): New function.
10780 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
10781 needing to update their debug registers.
10782 (win32_get_current_dr): New function.
10783 (x86_dr_low_get_addr, x86_dr_low_get_control)
10784 (x86_dr_low_get_status): Fetch the debug register from the thread
10786 (i386_initial_stuff): Adjust.
10787 (i386_get_thread_context): Remove current_event parameter. Don't
10788 clear debug_registers_changed nor copy DR values to
10790 (i386_set_thread_context): Delete.
10791 (i386_prepare_to_resume): New function.
10792 (i386_thread_added): Mark the thread as needing to update irs
10794 (the_low_target): Remove i386_set_thread_context and install
10795 i386_prepare_to_resume.
10796 * win32-low.c (win32_get_thread_context): Adjust.
10797 (win32_set_thread_context): Use SetThreadContext
10799 (win32_prepare_to_resume): New function.
10800 (win32_require_context): New function, factored out from ...
10801 (thread_rec): ... this.
10802 (continue_one_thread): Call win32_prepare_to_resume on each thread
10803 we're about to continue.
10804 (win32_resume): Call win32_prepare_to_resume on the event thread.
10805 * win32-low.h (struct win32_thread_info)
10806 <debug_registers_changed>: New field.
10807 (struct win32_target_ops): Change prototype of set_thread_context,
10808 delete set_thread_context and add prepare_to_resume.
10809 (win32_require_context): New declaration.
10811 2014-10-08 Gary Benson <gbenson@redhat.com>
10813 * server.h: Do not include common-exceptions.h.
10815 2014-10-08 Gary Benson <gbenson@redhat.com>
10817 * server.h: Do not include cleanups.h.
10819 2014-09-30 James Hogan <james.hogan@imgtec.com>
10821 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
10822 mips64-dsp-linux.c.
10824 2014-09-23 Yao Qi <yao@codesourcery.com>
10826 * linux-low.c (lp_status_maybe_breakpoint): New function.
10827 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
10828 (count_events_callback): Likewise.
10829 (select_event_lwp_callback): Likewise.
10830 (cancel_breakpoints_callback): Likewise.
10832 2014-09-19 Don Breazeal <donb@codesourcery.com>
10834 * linux-low.c (handle_extended_wait): Call
10835 linux_ptrace_get_extended_event.
10836 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
10837 linux_is_extended_waitstatus.
10839 2014-09-16 Joel Brobecker <brobecker@adacore.com>
10841 * Makefile.in (CPPFLAGS): Define.
10842 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
10843 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
10845 2014-09-16 Gary Benson <gbenson@redhat.com>
10847 * inferiors.h (current_inferior): Renamed as...
10848 (current_thread): New variable. All uses updated.
10849 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
10850 (maybe_move_out_of_jump_pad): Likewise.
10851 (cancel_breakpoint): Likewise.
10852 (linux_low_filter_event): Likewise.
10853 (wait_for_sigstop): Likewise.
10854 (linux_resume_one_lwp): Likewise.
10855 (need_step_over_p): Likewise.
10856 (start_step_over): Likewise.
10857 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
10858 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
10859 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
10860 and save_inferior as saved_thread.
10861 * regcache.c (get_thread_regcache): Renamed saved_inferior as
10863 (regcache_invalidate_thread): Likewise.
10864 * remote-utils.c (prepare_resume_reply): Likewise.
10865 * thread-db.c (thread_db_get_tls_address): Likewise.
10866 (disable_thread_event_reporting): Likewise.
10867 (remove_thread_event_breakpoints): Likewise.
10868 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
10870 * target.h (set_desired_inferior): Renamed as...
10871 (set_desired_thread): New declaration. All uses updated.
10872 * server.c (myresume): Updated comment to reference thread instead
10874 (handle_serial_event): Likewise.
10875 (handle_target_event): Likewise.
10877 2014-09-12 Tom Tromey <tromey@redhat.com>
10878 Gary Benson <gbenson@redhat.com>
10880 * regcache.h: Include common-regcache.h.
10881 (regcache_read_pc): Don't declare.
10882 * regcache.c (get_thread_regcache_for_ptid): New function.
10884 2014-09-11 Tom Tromey <tromey@redhat.com>
10885 Gary Benson <gbenson@redhat.com>
10887 * symbol.c: New file.
10888 * Makefile.in (SFILES): Add symbol.c.
10889 (OBS): Add symbol.o.
10891 2014-09-11 Gary Benson <gbenson@redhat.com>
10893 * target.c (target_stop_ptid, target_continue_ptid): New
10896 2014-09-11 Tom Tromey <tromey@redhat.com>
10897 Gary Benson <gbenson@redhat.com>
10899 * target.h: Include target/target.h.
10900 * target.c (target_read_memory, target_read_uint32)
10901 (target_write_memory): New functions.
10903 2014-09-11 Gary Benson <gbenson@redhat.com>
10905 * server.h (debug_hw_points): Don't declare.
10906 * server.c (debug_hw_points): Don't define. Replace all uses
10907 with show_debug_regs.
10908 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
10909 all uses with show_debug_regs.
10911 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10913 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
10914 endianness into account.
10915 (ppc_supply_ptrace_register): Likewise.
10917 2014-09-03 James Hogan <james.hogan@imgtec.com>
10919 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
10920 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
10922 2014-09-03 Gary Benson <gbenson@redhat.com>
10924 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
10925 ALL_DEBUG_ADDRESS_REGISTERS.
10927 2014-09-02 Gary Benson <gbenson@redhat.com>
10929 * i386-low.h: Renamed as...
10930 * x86-low.h: New file. All type, function and variable name
10931 prefixes changed from "i386_" to "x86_". All references updated.
10932 * i386-low.c: Renamed as...
10933 * x86-low.c: New file. All type, function and variable name
10934 prefixes changed from "i386_" to "x86_". All references updated.
10936 2014-09-02 Gary Benson <gbenson@redhat.com>
10938 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
10939 (x86_linux_new_thread): Likewise.
10941 2014-08-29 Gary Benson <gbenson@redhat.com>
10943 * server.h (setjmp.h): Do not include.
10944 (toplevel): Do not declare.
10945 (common-exceptions.h): Include.
10946 (cleanups.h): Likewise.
10947 * server.c (toplevel): Do not define.
10948 (exit_code): New static global.
10949 (detach_or_kill_for_exit_cleanup): New function.
10950 (main): New function. Original main renamed to...
10951 (captured_main): New function.
10952 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
10954 2014-08-29 Gary Benson <gbenson@redhat.com>
10956 * Makefile.in (SFILES): Add common/common-exceptions.c.
10957 (OBS): Add common-exceptions.o.
10958 (common-exceptions.o): New rule.
10959 * utils.c (prepare_to_throw_exception): New function.
10961 2014-08-29 Gary Benson <gbenson@redhat.com>
10963 * config.in: Regenerate.
10964 * configure: Likewise.
10966 2014-08-29 Gary Benson <gbenson@redhat.com>
10968 * Makefile.in (SFILES): Add common/cleanups.c.
10970 (cleanups.o): New rule.
10972 2014-08-29 Gary Benson <gbenson@redhat.com>
10974 * utils.c (internal_vwarning): New function.
10976 2014-08-28 Gary Benson <gbenson@redhat.com>
10978 * utils.h (fatal): Remove declaration.
10979 * utils.c (fatal): Remove function.
10981 2014-08-28 Gary Benson <gbenson@redhat.com>
10983 * tracepoint.c (gdb_agent_init): Replace fatal with
10985 (initialize_tracepoint): Likewise.
10987 2014-08-28 Gary Benson <gbenson@redhat.com>
10989 * remote-utils.c (remote_prepare): Replace fatal with error.
10991 2014-08-28 Gary Benson <gbenson@redhat.com>
10993 * linux-low.c (linux_async): Replace fatal with warning.
10994 Tidy up and return.
10995 (linux_start_non_stop): Return -1 if linux_async failed.
10997 2014-08-28 Gary Benson <gbenson@redhat.com>
10999 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11001 (i386_dr_low_get_addr): Remove vague comment.
11002 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11005 2014-08-28 Gary Benson <gbenson@redhat.com>
11007 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11008 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11010 (linux_resume_one_lwp): Likewise.
11011 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11013 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11014 with internal_error.
11015 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11016 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11017 (find_register_by_name): Replace fatal with internal_error.
11018 (find_regno): Likewise.
11019 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11020 * thread-db.c (thread_db_create_event): Likewise.
11021 (thread_db_load_search): Likewise.
11022 (try_thread_db_load_1): Likewise.
11023 * tracepoint.c (get_jump_space_head): Replace fatal with
11025 (claim_trampoline_space): Likewise.
11026 (have_fast_tracepoint_trampoline_buffer): Likewise.
11027 (cmd_qtstart): Likewise.
11028 (stop_tracing): Likewise.
11029 (fast_tracepoint_collecting): Likewise.
11030 (target_malloc): Likewise.
11031 (download_tracepoint): Likewise.
11032 (download_trace_state_variables): Replace check with gdb_assert.
11033 (upload_fast_traceframes): Replace fatal with internal_error.
11035 2014-08-19 Tom Tromey <tromey@redhat.com>
11036 Gary Benson <gbenson@redhat.com>
11038 * Makefile.in (SFILES): Add common/common-debug.c.
11039 (OBS): Add common-debug.o.
11040 (common-debug.o): New rule.
11041 * debug.h (debug_printf): Don't declare.
11042 * debug.c (debug_printf): Renamed and rewritten as...
11043 (debug_vprintf): New function.
11045 2014-08-19 Gary Benson <gbenson@redhat.com>
11047 * utils.h: Do not include print-utils.h.
11049 2014-08-19 Tom Tromey <tromey@redhat.com>
11050 Gary Benson <gbenson@redhat.com>
11052 * server.h: Add static assertion.
11053 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11055 2014-08-19 Tom Tromey <tromey@redhat.com>
11056 Gary Benson <gbenson@redhat.com>
11058 * Makefile.in (SFILES): Add common/errors.c.
11059 (OBS): Add errors.o.
11060 (IPA_OBS): Add errors-ipa.o.
11061 (errors.o): New rule.
11062 (errors-ipa.o): Likewise.
11063 * utils.h (perror_with_name, error, warning): Don't declare.
11064 * utils.c (warning): Renamed and rewritten as...
11065 (vwarning): New function.
11066 (error): Renamed and rewritten as...
11067 (verror): New function.
11068 (internal_error): Renamed and rewritten as...
11069 (internal_verror): New function.
11071 2014-08-07 Gary Benson <gbenson@redhat.com>
11073 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11074 * configure: Regenerate.
11075 * config.in: Likewise.
11076 * server.h: Do not include errno.h.
11077 * event-loop.c: Likewise.
11078 * hostio-errno.c: Likewise.
11079 * linux-low.c: Likewise.
11080 * remote-utils.c: Likewise.
11081 * spu-low.c: Likewise.
11082 * utils.c: Likewise.
11083 * gdbreplay.c: Unconditionally include errno.h.
11085 2014-08-07 Gary Benson <gbenson@redhat.com>
11087 * server.h: Do not include string.h.
11088 * event-loop.c: Likewise.
11089 * linux-low.c: Likewise.
11090 * regcache.c: Likewise.
11091 * remote-utils.c: Likewise.
11092 * spu-low.c: Likewise.
11093 * utils.c: Likewise.
11095 2014-08-07 Gary Benson <gbenson@redhat.com>
11097 * server.h: Do not include gdb_assert.h.
11099 2014-08-07 Gary Benson <gbenson@redhat.com>
11101 * server.h: Do not include common-utils.h.
11103 2014-08-07 Gary Benson <gbenson@redhat.com>
11105 * server.h: Do not include ptid.h.
11106 * notif.h: Likewise.
11108 2014-08-07 Gary Benson <gbenson@redhat.com>
11110 * server.h: Do not include gdb_locale.h.
11112 2014-08-07 Gary Benson <gbenson@redhat.com>
11114 * server.h: Do not include gdb/signals.h.
11115 * win32-low.c: Likewise.
11117 2014-08-07 Gary Benson <gbenson@redhat.com>
11119 * server.h: Do not include pathmax.h.
11121 2014-08-07 Gary Benson <gbenson@redhat.com>
11123 * server.h: Do not include libiberty.h.
11124 * linux-bfin-low.c: Likewise.
11126 2014-08-07 Gary Benson <gbenson@redhat.com>
11128 * server.h: Do not include ansidecl.h.
11130 2014-08-07 Gary Benson <gbenson@redhat.com>
11132 * linux-x86-low.c: Do not include stddef.h.
11133 * lynx-ppc-low.c: Likewise.
11134 * tracepoint.c: Likewise.
11136 2014-08-07 Gary Benson <gbenson@redhat.com>
11138 * server.h: Do not include stdarg.h.
11139 * nto-low.c: Likewise.
11141 2014-08-07 Gary Benson <gbenson@redhat.com>
11143 * server.h: Do not include stdlib.h.
11144 * inferiors.c: Likewise.
11145 * linux-low.c: Likewise.
11146 * regcache.c: Likewise.
11147 * spu-low.c: Likewise.
11148 * tracepoint.c: Likewise.
11149 * utils.c: Likewise.
11151 2014-08-07 Gary Benson <gbenson@redhat.com>
11153 * server.h: Do not include stdio.h.
11154 * linux-low.c: Likewise.
11155 * remote-utils.c: Likewise.
11156 * spu-low.c: Likewise.
11157 * utils.c: Likewise.
11158 * wincecompat.c: Likewise.
11160 2014-08-06 Gary Benson <gbenson@redhat.com>
11162 * regcache.c (init_register_cache): Move conditionals inside if.
11164 2014-08-06 Gary Benson <gbenson@redhat.com>
11166 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11168 2014-07-31 Gary Benson <gbenson@redhat.com>
11170 * ax.h: Do not include server.h.
11171 * gdbthread.h: Likewise.
11172 * lynx-low.h: Likewise.
11173 * notif.h: Likewise.
11175 2014-07-30 Gary Benson <gbenson@redhat.com>
11177 * server.h: Include common-defs.h.
11178 Do not include config.h or build-gnulib-gdbserver/config.h.
11180 2014-07-30 Gary Benson <gbenson@redhat.com>
11182 * hostio-errno.c: Move server.h to top of includes list.
11183 * inferiors.c: Likewise.
11184 * linux-x86-low.c: Likewise.
11185 * notif.c: Include server.h.
11187 2014-07-24 Tom Tromey <tromey@redhat.com>
11188 Gary Benson <gbenson@redhat.com>
11190 * server.h (CORE_ADDR): Now unsigned.
11192 2014-07-16 Pedro Alves <palves@redhat.com>
11194 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11196 2014-07-15 Pedro Alves <palves@redhat.com>
11198 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11201 2014-07-11 Pedro Alves <palves@redhat.com>
11203 * linux-low.c (kill_wait_lwp): New function, based on
11204 kill_one_lwp_callback, but use my_waitpid directly.
11205 (kill_one_lwp_callback, linux_kill): Use it.
11207 2014-06-23 Pedro Alves <palves@redhat.com>
11209 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11210 before setting DR0..DR3.
11212 2014-06-20 Gary Benson <gbenson@redhat.com>
11214 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11215 * configure: Regenerated.
11216 * config.in: Likewise.
11218 2014-06-20 Gary Benson <gbenson@redhat.com>
11220 * Makefile.in (SFILES): Update locations for files moved
11221 from common to nat.
11222 (object file files): Reordered.
11224 2014-06-20 Gary Benson <gbenson@redhat.com>
11226 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11227 (i386_dr_low_set_addr): Likewise.
11228 (i386_dr_low_get_addr): Likewise.
11229 (i386_dr_low_can_set_control): Likewise.
11230 (i386_dr_low_set_control): Likewise.
11231 (i386_dr_low_get_control): Likewise.
11232 (i386_dr_low_get_status): Likewise.
11233 (i386_get_debug_register_length): Likewise.
11234 * linux-x86-low.c (i386_dr_low_set_addr):
11235 Changed signature. Made static.
11236 (i386_dr_low_get_addr): Likewise.
11237 (i386_dr_low_set_control): Likewise.
11238 (i386_dr_low_get_control): Likewise.
11239 (i386_dr_low_get_status): Likewise.
11240 (i386_dr_low): New global variable.
11241 * win32-i386-low.c (i386_dr_low_set_addr):
11242 Changed signature. Made static.
11243 (i386_dr_low_get_addr): Likewise.
11244 (i386_dr_low_set_control): Likewise.
11245 (i386_dr_low_get_control): Likewise.
11246 (i386_dr_low_get_status): Likewise.
11247 (i386_dr_low): New global variable.
11249 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11251 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11252 * Makefile.in (AR, AR_FLAGS): Define.
11253 * configure: Regenerate.
11255 2014-06-19 Gary Benson <gbenson@redhat.com>
11257 * Makefile.in (i386-dregs.o): New rule.
11258 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11259 * i386-low.c (target.h): Remove include.
11260 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11261 (DR_CONTROL_SHIFT): Likewise.
11262 (DR_CONTROL_SIZE): Likewise.
11263 (DR_RW_EXECUTE): Likewise.
11264 (DR_RW_WRITE): Likewise.
11265 (DR_RW_READ): Likewise.
11266 (DR_RW_IORW): Likewise.
11267 (DR_LEN_1): Likewise.
11268 (DR_LEN_2): Likewise.
11269 (DR_LEN_4): Likewise.
11270 (DR_LEN_8): Likewise.
11271 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11272 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11273 (DR_ENABLE_SIZE): Likewise.
11274 (DR_LOCAL_SLOWDOWN): Likewise.
11275 (DR_GLOBAL_SLOWDOWN): Likewise.
11276 (DR_CONTROL_RESERVED): Likewise.
11277 (I386_DR_CONTROL_MASK): Likewise.
11278 (I386_DR_VACANT): Likewise.
11279 (I386_DR_LOCAL_ENABLE): Likewise.
11280 (I386_DR_GLOBAL_ENABLE): Likewise.
11281 (I386_DR_DISABLE): Likewise.
11282 (I386_DR_SET_RW_LEN): Likewise.
11283 (I386_DR_GET_RW_LEN): Likewise.
11284 (I386_DR_WATCH_HIT): Likewise.
11285 (i386_wp_op_t): Likewise.
11286 (i386_show_dr): Likewise.
11287 (i386_length_and_rw_bits): Likewise.
11288 (i386_insert_aligned_watchpoint): Likewise.
11289 (i386_remove_aligned_watchpoint): Likewise.
11290 (i386_handle_nonaligned_watchpoint): Likewise.
11291 i386_update_inferior_debug_regs(): Likewise.
11292 (i386_dr_insert_watchpoint): Likewise.
11293 (i386_dr_remove_watchpoint): Likewise.
11294 (i386_dr_region_ok_for_watchpoint): Likewise.
11295 (i386_dr_stopped_data_address): Likewise.
11296 (i386_dr_stopped_by_watchpoint): Likewise.
11298 2014-06-19 Gary Benson <gbenson@redhat.com>
11300 * i386-low.c (i386_dr_show): Renamed to
11301 i386_show_dr and made static. All uses updated.
11302 (i386_dr_length_and_rw_bits): Renamed to
11303 i386_length_and_rw_bits and made static.
11305 (i386_dr_insert_aligned_watchpoint): Renamed to
11306 i386_insert_aligned_watchpoint and made static.
11308 (i386_dr_remove_aligned_watchpoint): Renamed to
11309 i386_remove_aligned_watchpoint and made static.
11311 (i386_dr_update_inferior_debug_regs): Renamed to
11312 i386_update_inferior_debug_regs and made static.
11315 2014-06-18 Gary Benson <gbenson@redhat.com>
11317 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11318 (i386_dr_low_can_set_control): Likewise.
11319 (i386_get_debug_register_length): Likewise.
11320 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11321 (i386_dr_low_can_set_control): Likewise.
11322 (i386_get_debug_register_length): Likewise.
11324 2014-06-17 Gary Benson <gbenson@redhat.com>
11326 * i386-low.h (i386-dregs.h): New include.
11327 (DR_FIRSTADDR): Now in i386-dregs.h.
11328 (DR_LASTADDR): Likewise.
11329 (DR_NADDR): Likewise.
11330 (DR_STATUS): Likewise.
11331 (DR_CONTROL): Likewise.
11332 (i386_debug_reg_state): Likewise.
11333 (i386_dr_insert_watchpoint): Likewise.
11334 (i386_dr_remove_watchpoint): Likewise.
11335 (i386_dr_region_ok_for_watchpoint): Likewise.
11336 (i386_dr_stopped_data_address): Likewise.
11337 (i386_dr_stopped_by_watchpoint): Likewise.
11338 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11340 2014-06-18 Gary Benson <gbenson@redhat.com>
11342 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11343 i386_dr_insert_watchpoint.
11344 (i386_low_remove_watchpoint): Renamed to
11345 i386_dr_remove_watchpoint.
11346 (i386_low_region_ok_for_watchpoint): Renamed to
11347 i386_dr_region_ok_for_watchpoint.
11348 (i386_low_stopped_data_address): Renamed to
11349 i386_dr_stopped_data_address.
11350 (i386_low_stopped_by_watchpoint): Renamed to
11351 i386_dr_stopped_by_watchpoint.
11352 * i386-low.c (i386_show_dr): Renamed to
11353 i386_dr_show and made nonstatic. All uses updated.
11354 (i386_length_and_rw_bits): Renamed to
11355 i386_dr_length_and_rw_bits and made nonstatic.
11357 (i386_insert_aligned_watchpoint): Renamed to
11358 i386_dr_insert_aligned_watchpoint and made nonstatic.
11360 (i386_remove_aligned_watchpoint): Renamed to
11361 i386_dr_remove_aligned_watchpoint and made nonstatic.
11363 (i386_update_inferior_debug_regs): Renamed to
11364 i386_dr_update_inferior_debug_regs and made nonstatic.
11366 (i386_low_insert_watchpoint): Renamed to
11367 i386_dr_insert_watchpoint. All uses updated.
11368 (i386_low_remove_watchpoint): Renamed to
11369 i386_dr_remove_watchpoint. All uses updated.
11370 (i386_low_region_ok_for_watchpoint): Renamed to
11371 i386_dr_region_ok_for_watchpoint. All uses updated.
11372 (i386_low_stopped_data_address): Renamed to
11373 i386_dr_stopped_data_address. All uses updated.
11374 (i386_low_stopped_by_watchpoint): Renamed to
11375 i386_dr_stopped_by_watchpoint. All uses updated.
11377 2014-06-18 Gary Benson <gbenson@redhat.com>
11379 * i386-low.c (i386_dr_low_can_set_addr): New macro.
11380 (i386_dr_low_can_set_control): Likewise.
11381 (i386_insert_aligned_watchpoint): New check.
11383 2014-06-18 Gary Benson <gbenson@redhat.com>
11385 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
11388 2014-06-18 Gary Benson <gbenson@redhat.com>
11390 * i386-low.c (i386_length_and_rw_bits): Use internal_error
11391 instead of fatal and error.
11392 (i386_handle_nonaligned_watchpoint): Likewise.
11394 2014-06-18 Gary Benson <gbenson@redhat.com>
11396 * i386-low.c (i386_get_debug_register_length): New macro.
11397 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
11398 (i386_show_dr): Use debug_printf instead of fprintf. Use
11399 phex to format values.
11401 2014-06-18 Gary Benson <gbenson@redhat.com>
11403 * i386-low.h: Comment changes.
11404 * i386-low.c: Likewise.
11406 2014-06-18 Gary Benson <gbenson@redhat.com>
11408 * i386-low.c: Whitespace changes.
11410 2014-06-12 Tom Tromey <tromey@redhat.com>
11412 * utils.c (freeargv): Remove.
11414 2014-06-12 Tom Tromey <tromey@redhat.com>
11416 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
11417 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
11418 (parse_debug_format_options): Likewise.
11419 (gdbserver_usage): Likewise.
11420 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
11421 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
11422 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
11424 ($(LIBGNU)): Depend on libiberty.
11425 (all-lib): Recurse into all subdirs.
11426 (install-only): Invoke "install" target in subdirs.
11427 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
11429 * configure: Rebuild.
11430 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
11431 for vasprintf, vsnprintf, or gettimeofday.
11432 * configure.srv: Don't add safe-ctype.o or lbasename.o to
11435 2014-06-05 Joel Brobecker <brobecker@adacore.com>
11437 * development.sh: Delete.
11438 * Makefile.in (config.status): Adjust dependency on development.sh.
11439 * configure.ac: Adjust development.sh source call.
11440 * configure: Regenerate.
11442 2014-06-02 Pedro Alves <palves@redhat.com>
11444 * ax.c (gdb_free_agent_expr): New function.
11445 * ax.h (gdb_free_agent_expr): New declaration.
11446 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
11448 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
11450 (clear_breakpoint_conditions_and_commands): New function.
11451 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
11452 (clear_breakpoint_conditions_and_commands): New declaration.
11454 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11456 * linux-aarch64-low.c (asm/ptrace.h): Include.
11458 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11460 Fix TLS access for -static -pthread.
11461 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
11462 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
11463 (thread_db_load_search, try_thread_db_load_1): Initialize it.
11465 2014-05-20 Pedro Alves <palves@redhat.com>
11467 * linux-aarch64-low.c (aarch64_insert_point)
11468 (aarch64_remove_point): No longer check whether the type is
11469 supported here. Adjust to new interface.
11470 (the_low_target): Install aarch64_supports_z_point_type as
11471 supports_z_point_type method.
11472 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
11473 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
11474 instead of a Z packet char. Adjust.
11475 (arm_supports_z_point_type): New function.
11476 (arm_insert_point, arm_remove_point): Adjust to new interface.
11477 (the_low_target): Install arm_supports_z_point_type.
11478 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
11479 (cris_insert_point, cris_remove_point): Adjust to new interface.
11480 Don't check whether the type is supported here.
11481 (the_low_target): Install cris_supports_z_point_type.
11482 * linux-low.c (linux_supports_z_point_type): New function.
11483 (linux_insert_point, linux_remove_point): Adjust to new interface.
11484 * linux-low.h (struct linux_target_ops) <insert_point,
11485 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
11486 raw_breakpoint pointer parameter.
11487 <supports_z_point_type>: New method.
11488 * linux-mips-low.c (mips_supports_z_point_type): New function.
11489 (mips_insert_point, mips_remove_point): Adjust to new interface.
11490 Use mips_supports_z_point_type.
11491 (the_low_target): Install mips_supports_z_point_type.
11492 * linux-ppc-low.c (the_low_target): Install NULL as
11493 supports_z_point_type method.
11494 * linux-s390-low.c (the_low_target): Install NULL as
11495 supports_z_point_type method.
11496 * linux-sparc-low.c (the_low_target): Install NULL as
11497 supports_z_point_type method.
11498 * linux-x86-low.c (x86_supports_z_point_type): New function.
11499 (x86_insert_point): Adjust to new insert_point interface. Use
11500 insert_memory_breakpoint. Adjust to new
11501 i386_low_insert_watchpoint interface.
11502 (x86_remove_point): Adjust to remove_point interface. Use
11503 remove_memory_breakpoint. Adjust to new
11504 i386_low_remove_watchpoint interface.
11505 (the_low_target): Install x86_supports_z_point_type.
11506 * lynx-low.c (lynx_target_ops): Install NULL as
11507 supports_z_point_type callback.
11508 * nto-low.c (nto_supports_z_point_type): New.
11509 (nto_insert_point, nto_remove_point): Adjust to new interface.
11510 (nto_target_ops): Install nto_supports_z_point_type.
11511 * mem-break.c: Adjust intro comment.
11512 (struct raw_breakpoint) <raw_type, size>: New fields.
11513 <inserted>: Update comment.
11514 <shlib_disabled>: Delete field.
11515 (enum bkpt_type) <gdb_breakpoint>: Delete value.
11516 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
11517 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
11518 (raw_bkpt_type_to_target_hw_bp_type): New function.
11519 (find_enabled_raw_code_breakpoint_at): New function.
11520 (find_raw_breakpoint_at): New type and size parameters. Use them.
11521 (insert_memory_breakpoint): New function, based off
11522 set_raw_breakpoint_at.
11523 (remove_memory_breakpoint): New function.
11524 (set_raw_breakpoint_at): Reimplement.
11525 (set_breakpoint): New, based on set_breakpoint_at.
11526 (set_breakpoint_at): Reimplement.
11527 (delete_raw_breakpoint): Go through the_target->remove_point
11528 instead of assuming memory breakpoints.
11529 (find_gdb_breakpoint_at): Delete.
11530 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
11531 (find_gdb_breakpoint): New function.
11532 (set_gdb_breakpoint_at): Delete.
11533 (z_type_supported): New function.
11534 (set_gdb_breakpoint_1): New function, loosely based off
11535 set_gdb_breakpoint_at.
11536 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
11537 (delete_gdb_breakpoint_at): Delete.
11538 (delete_gdb_breakpoint_1): New function, loosely based off
11539 delete_gdb_breakpoint_at.
11540 (delete_gdb_breakpoint): New function.
11541 (clear_gdb_breakpoint_conditions): Rename to ...
11542 (clear_breakpoint_conditions): ... this. Don't handle a NULL
11544 (add_condition_to_breakpoint): Make static.
11545 (add_breakpoint_condition): Take a struct breakpoint pointer
11546 instead of an address. Adjust.
11547 (gdb_condition_true_at_breakpoint): Rename to ...
11548 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
11550 (gdb_condition_true_at_breakpoint): Reimplement.
11551 (add_breakpoint_commands): Take a struct breakpoint pointer
11552 instead of an address. Adjust.
11553 (gdb_no_commands_at_breakpoint): Rename to ...
11554 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
11555 parameter. Return true if no breakpoint was found. Change debug
11557 (gdb_no_commands_at_breakpoint): Reimplement.
11558 (run_breakpoint_commands): Rename to ...
11559 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
11560 and change return type to boolean.
11561 (run_breakpoint_commands): New function.
11562 (gdb_breakpoint_here): Also check for Z1 breakpoints.
11563 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
11564 breakpoint. Go through the_target->remove_point instead of
11565 assuming memory breakpoint.
11566 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
11567 software and hardware breakpoints.
11568 (reinsert_raw_breakpoint): Go through the_target->insert_point
11569 instead of assuming memory breakpoint.
11570 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
11571 software and hardware breakpoints.
11572 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
11573 Check both software and hardware breakpoints.
11574 (validate_inserted_breakpoint): Assert the breakpoint is a
11575 software breakpoint. Set the inserted flag to -1 instead of
11576 setting shlib_disabled.
11577 (delete_disabled_breakpoints): Adjust.
11578 (validate_breakpoints): Only validate software breakpoints.
11579 Adjust to inserted flag change.
11580 (check_mem_read, check_mem_write): Skip breakpoint types other
11581 than software breakpoints. Adjust to inserted flag change.
11582 * mem-break.h (enum raw_bkpt_type): New enum.
11583 (raw_breakpoint, struct process_info): Forward declare.
11584 (Z_packet_to_target_hw_bp_type): Delete declaration.
11585 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
11586 (set_gdb_breakpoint, delete_gdb_breakpoint)
11587 (clear_breakpoint_conditions): New declarations.
11588 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
11589 (breakpoint_inserted_here): Update comment.
11590 (add_breakpoint_condition, add_breakpoint_commands): Replace
11591 address parameter with a breakpoint pointer parameter.
11592 (gdb_breakpoint_here): Update comment.
11593 (delete_gdb_breakpoint_at): Delete.
11594 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
11595 * server.c (process_point_options): Take a struct breakpoint
11596 pointer instead of an address. Adjust.
11597 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
11598 delete_gdb_breakpoint.
11599 * spu-low.c (spu_target_ops): Install NULL as
11600 supports_z_point_type method.
11601 * target.h: Include mem-break.h.
11602 (struct target_ops) <prepare_to_access_memory>: Update comment.
11603 <supports_z_point_type>: New field.
11604 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11605 instead of a char. Also take a raw breakpoint pointer.
11606 * win32-arm-low.c (the_low_target): Install NULL as
11607 supports_z_point_type.
11608 * win32-i386-low.c (i386_supports_z_point_type): New function.
11609 (i386_insert_point, i386_remove_point): Adjust to new interface.
11610 (the_low_target): Install i386_supports_z_point_type.
11611 * win32-low.c (win32_supports_z_point_type): New function.
11612 (win32_insert_point, win32_remove_point): Adjust to new interface.
11613 (win32_target_ops): Install win32_supports_z_point_type.
11614 * win32-low.h (struct win32_target_ops):
11615 <supports_z_point_type>: New method.
11616 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11617 instead of a char. Also take a raw breakpoint pointer.
11619 2014-05-20 Pedro Alves <palves@redhat.com>
11621 * mem-break.h: Include break-common.h.
11622 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11623 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
11624 (Z_packet_to_target_hw_bp_type): New declaration.
11625 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
11626 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
11627 (Z_PACKET_ACCESS_WP): Delete macros.
11628 (Z_packet_to_hw_type): Delete function.
11629 * i386-low.h: Don't include break-common.h here.
11630 (Z_packet_to_hw_type): Delete declaration.
11631 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
11632 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11633 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
11634 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11635 * linux-aarch64-low.c: Don't include break-common.h here.
11636 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11637 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
11638 (Z_packet_to_target_hw_bp_type): Delete function.
11639 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
11641 (mips_insert_point, mips_remove_point): Use
11642 Z_packet_to_target_hw_bp_type.
11644 2014-05-20 Pedro Alves <palves@redhat.com>
11646 * linux-aarch64-low.c: Include break-common.h.
11647 (enum target_point_type): Delete.
11648 (Z_packet_to_point_type): Rename to ...
11649 (Z_packet_to_target_hw_bp_type): ... this, and return a
11650 target_hw_bp_type instead.
11651 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
11652 instead of an enum target_point_type.
11653 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
11655 (aarch64_dr_state_insert_one_point)
11656 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
11657 (aarch64_handle_aligned_watchpoint)
11658 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
11659 Take an enum target_hw_bp_type instead of an enum
11661 (aarch64_supports_z_point_type): New function.
11662 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
11663 use Z_packet_to_target_hw_bp_type.
11665 2014-05-20 Joel Brobecker <brobecker@adacore.com>
11667 * configure.ac: Only use -Werror by default when DEVELOPMENT
11669 * configure: Regenerate.
11671 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11673 Fix gdbserver qGetTLSAddr for x86_64 -m32.
11674 * linux-x86-low.c (X86_64_USER_REGS): New.
11675 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
11677 2014-04-28 Yao Qi <yao@codesourcery.com>
11679 * Makefile.in (i386-avx512.c): Fix the typo of generated file
11682 2014-04-25 Pedro Alves <palves@redhat.com>
11685 * linux-low.c (linux_attach_fail_reason_string): New function.
11686 (linux_attach_lwp): Delete.
11687 (linux_attach_lwp_1): Rename to ...
11688 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
11689 argument. Remove "initial" parameter. Return int instead of
11690 void. Don't error or warn here.
11691 (linux_attach): Adjust to call linux_attach_lwp. Call error on
11692 failure to attach to the tgid. Call warning when failing to
11694 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
11695 argument. Remove "initial" parameter. Return int instead of
11696 void. Don't error or warn here.
11697 (linux_attach_fail_reason_string): New declaration.
11698 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
11699 interface change. Use linux_attach_fail_reason_string.
11701 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
11702 Walfred Tedeschi <walfred.tedeschi@intel.com>
11704 * Makefile.in: Added rules to handle new files
11705 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
11706 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
11707 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
11708 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
11709 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
11710 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
11711 x32-avx512-linux.o.
11712 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
11713 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
11714 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
11715 i386/x32-avx512.xml.
11716 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
11717 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
11718 i386/x32-avx512-linux.xml.
11719 * i387-fp.c (num_avx512_k_registers): New constant for number
11721 (num_avx512_zmmh_low_registers): New constant for number of
11722 lower ZMM registers (0-15).
11723 (num_avx512_zmmh_high_registers): New constant for number of
11724 higher ZMM registers (16-31).
11725 (num_avx512_ymmh_registers): New contant for number of higher
11726 YMM registers (ymm16-31 added by avx521 on x86_64).
11727 (num_avx512_xmm_registers): New constant for number of higher
11728 XMM registers (xmm16-31 added by AVX512 on x86_64).
11729 (struct i387_xsave): Add space for AVX512 registers.
11730 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
11731 Add code to handle AVX512 registers.
11732 (i387_xsave_to_cache): Add code to handle AVX512 registers.
11733 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
11734 prototypei from generated file.
11735 (tdesc_amd64_avx512_linux): Likewise.
11736 (init_registers_x32_avx512_linux): Likewise.
11737 (tdesc_x32_avx512_linux): Likewise.
11738 (init_registers_i386_avx512_linux): Likewise.
11739 (tdesc_i386_avx512_linux): Likewise.
11740 (x86_64_regmap): Add AVX512 registers.
11741 (x86_linux_read_description): Add code to handle AVX512 XSTATE
11743 (initialize_low_arch): Add code to initialize AVX512 registers.
11745 2014-04-23 Pedro Alves <palves@redhat.com>
11747 * mem-break.c (find_gdb_breakpoint_at): Make static.
11748 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
11750 2014-04-23 Pedro Alves <palves@redhat.com>
11752 * i386-low.c: Don't include break-common.h here.
11753 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11754 prototype to take target_hw_bp_type as argument instead of a Z
11756 * i386-low.h: Include break-common.h here.
11757 (Z_packet_to_hw_type): Declare.
11758 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11760 * linux-x86-low.c (x86_insert_point): Convert the packet number to
11761 a target_hw_bp_type before calling i386_low_insert_watchpoint.
11762 (x86_remove_point): Convert the packet number to a
11763 target_hw_bp_type before calling i386_low_remove_watchpoint.
11764 * win32-i386-low.c (i386_insert_point): Convert the packet number
11765 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
11766 (i386_remove_point): Convert the packet number to a
11767 target_hw_bp_type before calling i386_low_remove_watchpoint.
11769 2014-04-23 Pedro Alves <palves@redhat.com>
11771 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
11773 2014-04-10 Pedro Alves <palves@redhat.com>
11775 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
11776 Check if the condition or command is NULL before checking if the
11777 breakpoint is known. On success, return true.
11778 * mem-break.h (add_breakpoint_condition): Document return.
11779 (add_breakpoint_commands): Add describing comment.
11780 * server.c (skip_to_semicolon): New function.
11781 (process_point_options): Use it.
11783 2014-04-09 Pedro Alves <palves@redhat.com>
11785 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
11788 2014-02-27 Pedro Alves <palves@redhat.com>
11791 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
11793 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
11795 (last_thread_of_process_p): Take a PID argument instead of a
11797 (linux_wait_for_lwp): Delete.
11798 (num_lwps, check_zombie_leaders, not_stopped_callback): New
11800 (linux_low_filter_event): New function, party factored out from
11801 linux_wait_for_event.
11802 (linux_wait_for_event): Rename to ...
11803 (linux_wait_for_event_filtered): ... this. Add new filter ptid
11804 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
11805 sigsuspend. Check for zombie leaders.
11806 (linux_wait_for_event): Reimplement as wrapper around
11807 linux_wait_for_event_filtered.
11808 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
11809 a normal or signal exit is seen, it's the whole process exiting.
11810 (wait_for_sigstop): No longer a for_each_inferior callback.
11811 Rewrite on top of linux_wait_for_event_filtered.
11812 (stop_all_lwps): Call wait_for_sigstop directly.
11813 * server.c (resume, handle_target_event): Handle
11814 TARGET_WAITKIND_NO_RESUMED.
11816 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11818 * win32-low.c (psapi_get_dll_name,
11819 * win32_CreateToolhelp32Snapshot): Delete.
11820 (win32_CreateToolhelp32Snapshot, win32_Module32First)
11821 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
11823 (handle_load_dll): Add function description.
11824 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
11826 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11828 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
11830 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
11831 base address when calling win32_add_one_solib.
11832 (handle_load_dll): Delete local variable load_addr.
11833 Remove 0x1000 offset applied to DLL base address when calling
11834 win32_add_one_solib.
11835 (handle_unload_dll): Add comment.
11837 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11839 * win32-low.c (win32_add_all_dlls): Renames
11840 win32_ensure_ntdll_loaded. Rewrite function documentation.
11841 Adjust implementation to always load all DLLs.
11842 Add 0x1000 offset to DLL base address when calling
11843 win32_add_one_solib.
11844 (child_initialization_done): New static global.
11845 (do_initial_child_stuff): Set child_initialization_done to
11846 zero during child initialization, and 1 after. Replace call
11847 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
11849 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
11850 (handle_unload_dll): Add function documentation.
11851 (get_child_debug_event): Ignore load and unload DLL events
11852 during child initialization.
11854 2014-02-20 Doug Evans <dje@google.com>
11856 Remove global all_lwps.
11857 * inferiors.h (ptid_of): Move here from linux-low.h.
11858 (pid_of, lwpid_of): Ditto.
11859 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
11860 parameter is a struct thread_info * now.
11861 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
11862 directly. Pass &all_threads to find_inferior instead of &all_lwps.
11863 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
11865 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
11866 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
11867 * linux-arm-low.c (update_registers_callback): Update, "entry"
11868 parameter is a struct thread_info * now.
11869 Fetch lwpid from current_inferior directly.
11870 (arm_insert_point): Pass &all_threads to find_inferior instead of
11872 (arm_remove_point): Ditto.
11873 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
11874 (arm_prepare_to_resume): Fetch pid from thread.
11875 (arm_read_description): Fetch lwpid from current_inferior directly.
11876 * linux-low.c (all_lwps): Delete.
11877 (delete_lwp): Delete call to remove_inferior.
11878 (handle_extended_wait): Fetch lwpid from thread.
11879 (add_lwp): Don't set lwp->entry.id. Remove call to
11880 add_inferior_to_list.
11881 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
11882 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
11883 (kill_one_lwp_callback): Ditto.
11884 (linux_kill): Don't dereference NULL pointer.
11885 Fetch ptid,lwpid from thread.
11886 (get_detach_signal): Fetch ptid from thread.
11887 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
11888 Simplify call to regcache_invalidate_thread.
11889 (delete_lwp_callback): Update, "entry" parameter is a
11890 struct thread_info * now. Fetch pid from thread.
11891 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
11892 (status_pending_p_callback): Update, "entry" parameter is a
11893 struct thread_info * now. Fetch ptid from thread.
11894 (find_lwp_pid): Update, "entry" parameter is a
11895 struct thread_info * now.
11896 (linux_wait_for_lwp): Fetch pid from thread.
11897 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
11898 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
11899 (enqueue_one_deferred_signal): Fetch lwpid from thread.
11900 (dequeue_one_deferred_signal): Ditto.
11901 (cancel_breakpoint): Fetch ptid from current_inferior.
11902 (linux_wait_for_event): Pass &all_threads to find_inferior,
11903 not &all_lwps. Fetch ptid, lwpid from thread.
11904 (count_events_callback): Update, "entry" parameter is a
11905 struct thread_info * now.
11906 (select_singlestep_lwp_callback): Ditto.
11907 (select_event_lwp_callback): Ditto.
11908 (cancel_breakpoints_callback): Ditto.
11909 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
11911 (select_event_lwp): Ditto. Fetch ptid from event_thread.
11912 (unsuspend_one_lwp): Update, "entry" parameter is a
11913 struct thread_info * now.
11914 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
11916 (linux_stabilize_threads): Ditto. And for for_each_inferior.
11917 Fetch lwpid from thread, not lwp.
11918 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
11919 Pass &all_threads to find_inferior, not &all_lwps.
11920 (send_sigstop): Fetch lwpid from thread, not lwp.
11921 (send_sigstop_callback): Update, "entry" parameter is a
11922 struct thread_info * now.
11923 (suspend_and_send_sigstop_callback): Ditto.
11924 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
11925 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
11926 struct thread_info * now.
11927 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
11929 (lwp_running): Update, "entry" parameter is a
11930 struct thread_info * now.
11931 (stop_all_lwps): Fetch ptid from thread.
11932 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
11933 (linux_resume_one_lwp): Fetch lwpid from thread.
11934 (linux_set_resume_request): Update, "entry" parameter is a
11935 struct thread_info * now. Fetch pid, lwpid from thread.
11936 (resume_status_pending_p): Update, "entry" parameter is a
11937 struct thread_info * now.
11938 (need_step_over_p): Ditto. Fetch lwpid from thread.
11939 (start_step_over): Fetch lwpid from thread.
11940 (linux_resume_one_thread): Update, "entry" parameter is a
11941 struct thread_info * now. Fetch lwpid from thread.
11942 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
11943 (proceed_one_lwp): Update, "entry" parameter is a
11944 struct thread_info * now. Fetch lwpid from thread.
11945 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
11946 struct thread_info * now.
11947 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
11948 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
11949 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
11951 (regsets_store_inferior_registers): Ditto.
11952 (fetch_register, store_register): Ditto.
11953 (linux_read_memory, linux_write_memory): Ditto.
11954 (linux_request_interrupt): Ditto.
11955 (linux_read_auxv): Ditto.
11956 (linux_xfer_siginfo): Ditto.
11957 (linux_qxfer_spu): Ditto.
11958 (linux_qxfer_libraries_svr4): Ditto.
11959 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
11960 moved to inferiors.h.
11962 (get_thread_lwp): Update.
11963 (struct lwp_info): Delete member "entry". Simplify comment for
11965 (all_lwps): Delete.
11966 * linux-mips-low.c (mips_read_description): Fetch lwpid from
11967 current_inferior directly.
11968 (update_watch_registers_callback): Update, "entry" parameter is a
11969 struct thread_info * now. Fetch pid from thread.
11970 (mips_linux_prepare_to_resume): Fetch ptid from thread.
11971 (mips_insert_point): Fetch lwpid from current_inferior.
11972 Pass &all_threads to find_inferior, not &all_lwps.
11973 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
11974 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
11976 (mips_stopped_data_address): Ditto.
11977 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
11979 * linux-tile-low.c (tile_arch_setup): Ditto.
11980 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
11981 (update_debug_registers_callback): Update, "entry" parameter is a
11982 struct thread_info * now. Fetch pid from thread.
11983 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
11984 Pass &all_threads to find_inferior, not &all_lwps.
11985 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
11986 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
11987 Pass &all_threads to find_inferior, not &all_lwps.
11988 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
11989 (i386_dr_low_get_status): Ditto.
11990 (x86_linux_prepare_to_resume): Fetch ptid from thread.
11991 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
11992 (x86_linux_read_description): Ditto.
11993 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
11995 2014-02-20 Doug Evans <dje@google.com>
11997 * inferiors.c (get_first_inferior): Fix buglet.
11999 2014-02-19 Doug Evans <dje@google.com>
12001 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12002 * inferiors.c (add_thread): Change result type to struct thread_info *.
12003 All callers updated.
12004 (add_lwp): Call add_thread here instead of in callers.
12005 All callers updated.
12006 * linux-low.h (get_lwp_thread): Rewrite.
12007 (struct lwp_info): New member "thread".
12009 2014-02-19 Doug Evans <dje@google.com>
12011 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12012 All callers updated.
12014 2014-02-19 Doug Evans <dje@google.com>
12016 * inferiors.c (add_thread): Fix whitespace.
12018 2014-02-19 Doug Evans <dje@google.com>
12020 * dll.c (clear_dlls): Replace accessing list implemention details
12022 * gdbthread.h (get_first_thread): Declare.
12023 * inferiors.c (for_each_inferior_with_data): New function.
12024 (get_first_thread): New function.
12025 (find_thread_ptid): Simplify.
12026 (get_first_inferior): New function.
12027 (clear_list): Delete.
12028 (one_inferior_p): New function.
12029 (clear_inferior_list): New function.
12030 (clear_inferiors): Update.
12031 * inferiors.h (for_each_inferior_with_data): Declare.
12032 (clear_inferior_list): Declare.
12033 (one_inferior_p): Declare.
12034 (get_first_inferior): Declare.
12035 * linux-low.c (linux_wait_for_event): Replace accessing list
12036 implemention details with API function.
12037 * server.c (target_running): Ditto.
12038 (accumulate_file_name_length): New function.
12039 (emit_dll_description): New function.
12040 (handle_qxfer_libraries): Replace accessing list implemention
12041 details with API function.
12042 (handle_qxfer_threads_worker): New function.
12043 (handle_qxfer_threads_proper): Replace accessing list implemention
12044 details with API function.
12045 (handle_query): Ditto.
12046 (visit_actioned_threads_callback_ftype): New typedef.
12047 (visit_actioned_threads_data): New struct.
12048 (visit_actioned_threads): Rewrite to be find_inferior callback.
12049 (resume): Call find_inferior.
12050 (handle_status): Replace accessing list implemention
12051 details with API function.
12052 (process_serial_event): Replace accessing list implemention details
12054 * target.c (set_desired_inferior): Replace accessing list implemention
12055 details with API function.
12056 * tracepoint.c (same_process_p): New function.
12057 (gdb_agent_about_to_close): Replace accessing list implemention
12058 details with API function.
12059 * win32-low.c (child_delete_thread): Replace accessing list
12060 implemention details with API function.
12061 (match_dll_by_basename): New function.
12062 (dll_is_loaded_by_basename): New function.
12063 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12064 details call to dll_is_loaded_by_basename.
12066 2014-02-19 Doug Evans <dje@google.com>
12068 * dll.h (struct dll_info): Add comment.
12069 * gdbthread.h (struct thread_info): Add comment.
12070 (current_ptid): Simplify.
12071 * inferiors.c (add_process): Update.
12072 (remove_process): Update.
12073 * inferiors.h (struct process_info): Rename member "head" to "entry".
12074 * linux-low.c (delete_lwp): Update.
12076 (last_thread_of_process_p): Update.
12077 (kill_one_lwp_callback, linux_kill): Update.
12078 (status_pending_p_callback): Update.
12079 (wait_for_sigstop): Update. Simplify read of ptid.
12080 (start_step_over): Update.
12081 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12082 (get_lwp_thread): Update.
12083 (struct lwp_info): Rename member "head" to "entry".
12084 * regcache.h (inferior_list_entry): Delete.
12085 * server.c (kill_inferior_callback): Update.
12086 (detach_or_kill_inferior_callback): Update.
12087 (print_started_pid): Update.
12088 (print_attached_pid): Update.
12089 (process_serial_event): Simplify read of ptid.
12090 * thread-db.c (thread_db_create_event): Update.
12091 (thread_db_get_tls_address): Update.
12092 * win32-low.c (current_inferior_ptid): Simplify.
12094 2014-02-19 Tom Tromey <tromey@redhat.com>
12096 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12098 (target_supports_btrace): Update.
12100 2014-02-14 Yao Qi <yao@codesourcery.com>
12102 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12103 (rsp-low-ipa.o): New target.
12105 2014-02-12 Tom Tromey <tromey@redhat.com>
12107 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12108 convert_ascii_to_int.
12109 * regcache.c (registers_to_string): Likewise.
12110 * remote-utils.c (decode_M_packet): Likewise.
12111 * server.c (process_serial_event): Likewise.
12113 2014-02-12 Tom Tromey <tromey@redhat.com>
12115 * server.c (handle_query, handle_v_run): Use hex2bin, not
12117 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12119 2014-02-12 Tom Tromey <tromey@redhat.com>
12121 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12122 convert_int_to_ascii.
12123 * regcache.c (registers_to_string, collect_register_as_string):
12125 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12127 * server.c (process_serial_event): Likewise.
12128 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12129 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12131 2014-02-12 Tom Tromey <tromey@redhat.com>
12133 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12134 bin2hex, not hexify.
12135 * tracepoint.c (cmd_qtstatus): Likewise.
12137 2014-02-12 Tom Tromey <tromey@redhat.com>
12139 * remote-utils.c (monitor_output): Pass explicit length to
12142 2014-02-12 Tom Tromey <tromey@redhat.com>
12144 * tracepoint.c: Include rsp-low.h.
12145 * server.c: Include rsp-low.h.
12146 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12147 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12149 * remote-utils.c: Include rsp-low.h.
12150 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12151 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12152 (convert_int_to_ascii, convert_ascii_to_int): Move to
12154 * regcache.c: Include rsp-low.h.
12155 * ax.c: Include rsp-low.h.
12156 * Makefile.in (SFILES): Add common/rsp-low.c.
12157 (OBS): Add rsp-low.o.
12158 (rsp-low.o): New target.
12160 2014-02-12 Tom Tromey <tromey@redhat.com>
12162 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12163 Include print-utils.h.
12164 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12165 (plongest, thirty_two, phex_nz): Remove.
12166 * Makefile.in (SFILES): Add common/print-utils.c.
12167 (OBS): Add print-utils.o.
12168 (print-utils-ipa.o): New target.
12169 (print-utils.o): New target.
12170 (IPA_OBJS): Add print-utils-ipa.o.
12172 2014-02-06 Tom Tromey <tromey@redhat.com>
12174 * Makefile.in (SFILES): Fix indentation.
12176 2014-02-05 Doug Evans <dje@google.com>
12178 * linux-low.c (linux_wait_for_event): Improve comment.
12179 (linux_wait_1): Keep current_inferior in sync with event_child.
12181 2014-01-22 Doug Evans <dje@google.com>
12183 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12185 2014-01-22 Doug Evans <dje@google.com>
12187 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12188 * configure: Regenerate.
12189 * config.in: Regenerate.
12190 * Makefile.in (SFILES): Add debug.c.
12191 (OBS): Add debug.o.
12192 * debug.c: New file.
12193 * debug.h: New file.
12194 * linux-aarch64-low.c (*): Update all debugging printfs to use
12195 debug_printf instead of fprintf.
12196 * linux-arm-low.c (*): Ditto.
12197 * linux-cris-low.c (*): Ditto.
12198 * linux-crisv32-low.c (*): Ditto.
12199 * linux-m32r-low.c (*): Ditto.
12200 * linux-sparc-low.c (*): Ditto.
12201 * linux-x86.c (*): Ditto.
12202 * linux-low.c (*): Ditto.
12203 (linux_wait_1): Add calls to debug_enter, debug_exit.
12204 (linux_wait): Remove redundant debugging printf.
12205 (stop_all_lwps): Add calls to debug_enter, debug_exit.
12206 (linux_resume, unstop_all_lwps): Ditto.
12207 * mem-break.c (*): Update all debugging printfs to use
12208 debug_printf instead of fprintf.
12209 * remote-utils.c (*): Ditto.
12210 * thread-db.c (*): Ditto.
12211 * server.c #include <ctype.h>, "gdb_vecs.h".
12212 (debug_threads): Moved to debug.c.
12213 (*): Update all debugging printfs to use debug_printf instead of
12215 (start_inferior): Replace call to fflush with call to debug_flush.
12216 (monitor_show_help): Mention set debug-format.
12217 (parse_debug_format_options): New function.
12218 (handle_monitor_command): Handle "monitor set debug-format".
12219 (gdbserver_usage): Mention --debug-format.
12220 (main): Parse --debug-format.
12221 * server.h (debug_threads): Declaration moved to debug.h.
12222 #include "debug.h".
12223 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12224 trace_debug_1 that uses debug_printf.
12225 (tracepoint_look_up_symbols): Update all debugging printfs to use
12226 debug_printf instead of fprintf.
12228 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12230 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12233 2014-01-17 Pedro Alves <palves@redhat.com>
12236 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12237 defined after including gdb_proc_service.h.
12239 2014-01-16 Doug Evans <dje@google.com>
12241 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12242 (match_dll): Use it.
12244 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12246 * target.h (target_ops) <read_btrace>: Change parameters and
12247 return type to allow error reporting.
12248 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12249 trace reading errors on.
12250 * linux-low.c (linux_low_read_btrace): Pass trace reading
12252 (linux_low_disable_btrace): New.
12254 2014-01-15 Doug Evans <dje@google.com>
12256 * inferiors.c (thread_id_to_gdb_id): Delete.
12257 * inferiors.h (thread_id_to_gdb_id): Delete.
12259 2014-01-13 Eli Zaretskii <eliz@gnu.org>
12261 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12262 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12265 2014-01-08 Pedro Alves <palves@redhat.com>
12267 * server.c (handle_status): Don't discard previous queued stop
12268 replies or thread's pending status here.
12269 (main) <disconnection>: Do it here instead.
12271 2014-01-08 Pedro Alves <palves@redhat.com>
12273 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12274 * server.c (visit_actioned_threads, handle_pending_status): New
12276 (handle_v_cont): Factor out parts to ...
12277 (resume): ... this new function. If in all-stop, and a thread
12278 being resumed has a pending status, report it without actually
12280 (myresume): Adjust to use the new 'resume' function.
12281 (clear_pending_status_callback, set_pending_status_callback)
12282 (find_status_pending_thread_callback): New functions.
12283 (handle_status): Handle the case of multiple threads having
12284 interesting statuses to report. Report threads' real last signal
12285 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12286 with an interesting thread to report the status for, instead of
12287 always reporting the status of the first thread.
12289 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12291 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12292 * gdbreplay.c (gdbreplay_version): Likewise.
12294 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12296 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12297 iov.iov_len with the real length in use.
12299 2013-12-13 Joel Brobecker <brobecker@adacore.com>
12301 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12302 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12303 for all targets that use win32-low.c.
12304 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12305 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12307 2013-12-13 Pedro Alves <palves@redhat.com>
12309 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12310 if equal to TARGET_WAITKIND_LOADED.
12311 * win32-low.c (cached_status): New static global.
12312 (win32_wait): Add declaration.
12313 (do_initial_child_stuff): Flush all initial pending debug events
12314 up to the initial breakpoint.
12315 (win32_wait): If CACHED_STATUS was set, return that instead
12316 of doing a real wait. Remove the code resuming the execution
12317 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12318 during the initial phase. Also remove the code changing
12319 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12320 TARGET_WAITKIND_STOPPED.
12322 2013-12-11 Yao Qi <yao@codesourcery.com>
12324 * notif.c (handle_notif_ack): Return 0 if no notification
12327 2013-11-20 Doug Evans <dje@google.com>
12329 * linux-low.c (linux_set_resume_request): Fix comment.
12331 2013-11-20 Doug Evans <dje@google.com>
12333 * linux-low.c (resume_status_pending_p): Tweak comment.
12335 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12337 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12338 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12339 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12340 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12341 (srv_amd64_regobj): Add amd64-mpx.o.
12342 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12343 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12344 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12345 * i387-fp.c (num_pl_bnd_register) Added constant.
12346 (num_pl_bnd_cfg_registers) Added constant.
12347 (struct i387_xsave) Added reserved area and MPX fields.
12348 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12349 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12351 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12352 (init_registers_amd64_mpx_linux): Declare new function.
12353 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12354 (x86_64_regmap): Add MPX registers.
12355 (x86_linux_read_description): Add MPX case.
12356 (initialize_low_arch): Initialize MPX targets.
12358 2013-11-18 Tom Tromey <tromey@redhat.com>
12360 * configure: Rebuild.
12361 * configure.ac: Don't check for stdlib.h.
12362 * gdbreplay.c: Unconditionally include stdlib.h.
12364 2013-11-18 Tom Tromey <tromey@redhat.com>
12366 * config.in: Rebuild.
12367 * configure: Rebuild.
12368 * configure.ac: Don't use AC_HEADER_DIRENT.
12370 2013-11-18 Tom Tromey <tromey@redhat.com>
12372 * server.h: Don't check HAVE_STRING_H.
12373 * gdbreplay.c: Don't check HAVE_STRING_H.
12374 * configure: Rebuild.
12376 2013-11-18 Tom Tromey <tromey@redhat.com>
12378 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
12381 2013-11-08 Tom Tromey <tromey@redhat.com>
12383 * configure, config.in: Rebuild.
12384 * configure.ac: Remove unused configury.
12386 2013-11-08 Tom Tromey <tromey@redhat.com>
12388 * acinclude.m4: Include common.m4, codeset.m4.
12389 * configure, config.in: Rebuild.
12390 * configure.ac: Use GDB_AC_COMMON.
12392 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
12394 * linux-s390-low.c (HWCAP_S390_TE): New define.
12395 (s390_arch_setup): Consider the TE field in the HWCAP for
12396 determining 'have_regset_tdb'.
12398 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
12401 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
12404 2013-10-02 Pedro Alves <palves@redhat.com>
12406 * server.c (process_serial_event): Don't output "GDBserver
12407 exiting" if GDB is connected through stdio.
12408 * target.c (mywait): Likewise, be silent if GDB is connected
12411 2013-10-01 Joel Brobecker <brobecker@adacore.com>
12413 * lynx-low.c (lynx_add_threads_after_attach): New function.
12414 (lynx_attach): Remove call to add_thread. Add call to
12415 lynx_add_threads_after_attach instead.
12417 2013-09-28 Mike Frysinger <vapier@gentoo.org>
12419 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
12420 * config.in, configure: Regenerated.
12422 2013-09-18 Yao Qi <yao@codesourcery.com>
12425 * server.c (start_inferior): Clear 'resume_info'.
12427 2013-09-16 Jiong Wang <jiwang@tilera.com>
12429 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
12432 2013-09-16 Jiong Wang <jiwang@tilera.com>
12434 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
12435 linux-tile-low.o to srv_tgtobj.
12437 2013-09-16 Will Newton <will.newton@linaro.org>
12439 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
12442 2013-09-06 Pedro Alves <palves@redhat.com>
12444 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
12445 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
12446 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
12447 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
12448 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
12449 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
12451 2013-09-06 Pedro Alves <palves@redhat.com>
12453 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
12454 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
12456 2013-09-06 Pedro Alves <palves@redhat.com>
12458 * linux-amd64-ipa.c: Include tracepoint.h.
12459 * linux-i386-ipa.c: Include tracepoint.h.
12461 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12463 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
12464 (ps_get_thread_area): New function.
12466 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12468 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
12469 (initialize_low_arch): Call init_registers_crisv32 rather than
12470 init_register_crisv32.
12472 2013-09-05 Pedro Alves <palves@redhat.com>
12474 * server.h (handle_vFile, hostio_last_error_from_errno): Move
12476 * hostio.h: ... this new file.
12477 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
12478 win32-low.c: Include hostio.h.
12480 2013-09-05 Pedro Alves <palves@redhat.com>
12482 * server.h (gdb_client_data, handler_func, callback_handler_func)
12483 (delete_file_handler, add_file_handler, append_callback_event)
12484 (delete_callback_event, start_event_loop, initialize_event_loop):
12485 Move to event-loop.h and include it.
12486 * event-loop.h: New file.
12488 2013-09-05 Pedro Alves <palves@redhat.com>
12490 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
12491 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
12492 (loaded_dll, unloaded_dll): Move to ...
12493 * dll.h: ... this new file.
12494 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
12496 2013-09-05 Pedro Alves <palves@redhat.com>
12498 * server.h (current_process, get_thread_process, all_processes)
12499 (add_inferior_to_list, for_each_inferior, current_inferior)
12500 (remove_inferior, add_process, remove_process, find_process_pid)
12501 (have_started_inferiors_p, have_attached_inferiors_p)
12502 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
12503 (clear_inferiors, find_inferior, find_inferior_id)
12504 (inferior_target_data, set_inferior_target_data)
12505 (inferior_regcache_data, set_inferior_regcache_data): Move to
12506 inferiors.h, and include it.
12507 * inferiors.h: New file.
12509 2013-09-05 Pedro Alves <palves@redhat.com>
12511 * server.h (struct emit_ops, current_insn_ptr, emit_error):
12515 2013-09-05 Pedro Alves <palves@redhat.com>
12517 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
12519 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
12520 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
12521 (handle_tracepoint_general_set, handle_tracepoint_query)
12522 (tracepoint_finished_step, tracepoint_was_hit)
12523 (release_while_stepping_state_list, current_traceframe)
12524 (in_readonly_region, traceframe_read_mem)
12525 (fetch_traceframe_registers, traceframe_read_sdata)
12526 (traceframe_read_info, struct fast_tpoint_collect_status)
12527 (fast_tracepoint_collecting, force_unlock_trace_buffer)
12528 (handle_tracepoit_bkpts, initialize_low_tracepoint)
12529 (supply_fast_tracepoint_registers)
12530 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
12531 (ipa_tdesc, claim_trampoline_space)
12532 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
12533 (agent_mem_read, agent_get_trace_state_variable_value)
12534 (agent_set_trace_state_variable_value, agent_tsv_read)
12535 (agent_mem_read_string, get_raw_reg_func_addr)
12536 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
12537 * tracepoint.h: ... this new file.
12539 2013-09-05 Pedro Alves <palves@redhat.com>
12541 * server.h (perror_with_name, error, fatal, warning, paddress)
12542 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
12544 * utils.h: New file.
12546 2013-09-05 Pedro Alves <palves@redhat.com>
12548 * server.h (remote_debug, noack_mode, transport_is_reliable)
12549 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
12550 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
12551 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
12552 (write_enn, initialize_async_io, enable_async_io)
12553 (disable_async_io, check_remote_input_interrupt_request)
12554 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
12555 (dead_thread_notify, prepare_resume_reply)
12556 (decode_address_to_semicolon, decode_address, decode_m_packet)
12557 (decode_M_packet, decode_X_packet, decode_xfer_write)
12558 (decode_search_memory_packet, unhexify, hexify)
12559 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
12560 (look_up_one_symbol, relocate_instruction)
12561 (monitor_output): Move to remote-utils.h, and include it.
12562 * remote-utils.h: New file.
12564 2013-09-05 Pedro Alves <palves@redhat.com>
12566 * server.h (_): Delete.
12568 2013-09-02 Pedro Alves <palves@redhat.com>
12570 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
12571 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
12573 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
12575 2013-09-02 Pierre Muller <muller@sourceware.org>
12577 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
12578 or WriteProcessMemory complete successfully and handle
12579 ERROR_PARTIAL_COPY error.
12581 2013-09-02 Pedro Alves <palves@redhat.com>
12583 * server.c (gdb_read_memory): Return -1 on traceframe memory read
12584 error instead of EIO.
12586 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12589 * linux-low.c: Include filestuff.h.
12590 (linux_create_inferior) <pid == 0>: Call close_most_fds.
12591 * lynx-low.c: Include filestuff.h.
12592 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
12593 * server.c: Include filestuff.h.
12594 (main): Call notice_open_fds.
12595 * spu-low.c: Include filestuff.h.
12596 (spu_create_inferior) <pid == 0>: Call close_most_fds.
12598 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
12600 * Makefile.in: Explain why ../target and ../nat are not
12601 listed as include file search paths.
12602 (linux-waitpid.o): New object file rule.
12603 * configure.srv (srv_native_linux_obj): New variable.
12604 Replace all occurrences of linux native object files with
12605 $srv_native_linux_obj.
12606 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
12607 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
12608 (linux_enable_event_reporting): Remove declaration.
12609 (my_waitpid): Moved to common/linux-waitpid.c.
12610 (linux_wait_for_event): Pass ptid when calling
12611 linux_enable_event_reporting.
12612 (linux_supports_tracefork_flag): Remove.
12613 (linux_enable_event_reporting): Likewise.
12614 (linux_tracefork_grandchild): Remove.
12615 (STACK_SIZE): Moved to common/linux-ptrace.c.
12616 (linux_tracefork_child): Remove.
12617 (linux_test_for_tracefork): Remove.
12618 (linux_look_up_symbols): Call linux_supports_traceclone.
12619 (initialize_low): Remove call to linux_test_for_tracefork.
12620 * linux-low.h (PTRACE_TYPE_ARG3): Move to
12621 common/linux-ptrace.h.
12622 (PTRACE_TYPE_ARG4): Likewise.
12623 Include linux-ptrace.h.
12625 2013-08-21 Pedro Alves <palves@redhat.com>
12627 * config.in: Renegerate.
12629 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
12631 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
12632 (SFILES): Remove $(srcdir)/common/target-common.c and
12633 add $(srcdir)/target/waitstatus.c.
12634 (OBS): Remove target-common.o and add waitstatus.o.
12635 (server_h): Remove $(srcdir)/../common/target-common.h and
12636 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
12637 and $(srcdir)/../target/waitstatus.h.
12638 (target-common.o): Remove.
12639 (waitstatus.o): New target object file.
12640 * target.h: Do not include target-common.h and
12641 include target/resume.h, target/wait.h and
12642 target/waitstatus.h.
12644 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
12646 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12647 to PTRACE_TYPE_ARG3.
12648 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12649 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
12651 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
12652 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
12654 2013-07-27 Jie Zhang <jie@codesourcery.com>
12655 Daniel Jacobowitz <dan@codesourcery.com>
12656 Yao Qi <yao@codesourcery.com>
12658 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
12659 (mips-linux-watch.o): New rule.
12660 (mips_linux_watch_h): New variable.
12661 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
12663 * linux-mips-low.c: Include mips-linux-watch.h.
12664 (struct arch_process_info, struct arch_lwp_info): New.
12665 (update_watch_registers_callback): New function.
12666 (mips_linux_new_process, mips_linux_new_thread) New functions.
12667 (mips_linux_prepare_to_resume, mips_insert_point): New
12669 (mips_remove_point, mips_stopped_by_watchpoint): New
12671 (rsp_bp_type_to_target_hw_bp_type): New function.
12672 (mips_stopped_data_address): New function.
12673 (the_low_target): Add watchpoint support functions.
12675 2013-07-27 Yao Qi <yao@codesourcery.com>
12677 * i386-low.c: Include break-common.h.
12678 (enum target_hw_bp_type): Remove.
12680 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
12682 * Makefile.in (SFILES): /common/target-common.c.
12683 (OBS): Add target-common.o.
12684 (server_h): Add $(srcdir)/../common/target-common.h.
12685 (target-common.o): New target.
12686 * server.c (queue_stop_reply_callback): Free
12687 status string after use.
12688 * target.c (target_waitstatus_to_string): Remove.
12689 * target.h: Include target-common.h.
12690 (resume_kind): Likewise.
12691 (target_waitkind): Likewise.
12692 (target_waitstatus): Likewise.
12693 (TARGET_WNOHANG): Likewise.
12695 2013-07-04 Yao Qi <yao@codesourcery.com>
12697 * Makefile.in (host_alias): Use @host_noncanonical@.
12698 (target_alias): Use @target_noncanonical@.
12699 * configure.ac: Use ACX_NONCANONICAL_TARGET and
12700 ACX_NONCANONICAL_HOST.
12701 * configure: Regenerated.
12704 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12706 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12707 * configure: Rebuild.
12708 * Makefile.in (version_host, version_target): Get from configure.
12709 (version.c): Use $(version_host) and $(version_target).
12711 2013-07-03 Pedro Alves <palves@redhat.com>
12713 * Makefile.in (config.status): Depend on development.sh.
12714 * acinclude.m4: Include libmcheck.m4.
12715 * configure: Regenerate.
12717 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12719 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
12720 attribute inside the parentheses.
12721 (winapi_DebugSetProcessKillOnExit): Ditto.
12722 (winapi_DebugBreakProcess): Ditto.
12723 (winapi_GenerateConsoleCtrlEvent): Ditto.
12725 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12727 * notif.h (notif_event): Add a dummy member to avoid compiler
12730 2013-07-01 Pedro Alves <palves@redhat.com>
12732 * hostio.c (HOSTIO_PATH_MAX): Define.
12733 (require_filename, handle_open, handle_unlink, handle_readlink):
12736 2013-07-01 Pedro Alves <palves@redhat.com>
12738 * server.h: Include "pathmax.h".
12739 * linux-low.c: Don't include sys/param.h.
12740 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
12742 * win32-low.c: Don't include sys/param.h.
12743 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
12745 2013-07-01 Pedro Alves <palves@redhat.com>
12747 * event-loop.c: Don't check HAVE_UNISTD_H before including
12749 * gdbreplay.c: Likewise.
12750 * remote-utils.c: Likewise.
12751 * server.c: Likewise.
12752 * configure.ac: Don't check for unistd.h.
12753 * configure: Regenerate.
12755 2013-06-28 Tom Tromey <tromey@redhat.com>
12757 * Makefile.in (version.c): Use version.in, not
12760 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12762 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12763 * configure: Rebuild.
12764 * Makefile.in (version_host, version_target): Get from configure.
12765 (version.c): Use $(version_host) and $(version_target).
12767 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12769 Fix trace-status to output user name without trailing colon.
12770 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
12772 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12774 Fix trace-status to output proper start-time and stop-time.
12775 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
12776 output start time and stop time in hex as gdb expects.
12778 2013-06-26 Pedro Alves <pedro@codesourcery.com>
12780 * tracepoint.c (build_traceframe_info_xml): Output trace state
12781 variables present in the trace buffer.
12783 2013-06-24 Tom Tromey <tromey@redhat.com>
12785 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
12787 (version.o): Remove.
12788 * gdbreplay.c: Include version.h.
12789 (version, host_name): Don't declare.
12790 * server.h: Include version.h.
12791 (version, host_name): Don't declare.
12793 2013-06-12 Pedro Alves <palves@redhat.com>
12795 * linux-x86-low.c (linux_is_elf64): Delete global.
12796 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
12797 with local linux_pid_exe_is_elf_64_file use.
12799 2013-06-11 Pedro Alves <palves@redhat.com>
12801 * linux-low.c (regset_disabled, disable_regset): New functions.
12802 (regsets_fetch_inferior_registers)
12803 (regsets_store_inferior_registers): Use them.
12804 (initialize_regsets_info); Don't allocate the disabled_regsets
12806 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
12809 2013-06-11 Pedro Alves <palves@redhat.com>
12811 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
12814 2013-06-11 Pedro Alves <palves@redhat.com>
12816 * linux-x86-low.c (initialize_low_arch): Call
12817 init_registers_x32_avx_linux.
12819 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12821 Fix compatibility with Android Bionic.
12822 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
12825 2013-06-07 Pedro Alves <palves@redhat.com>
12828 * Makefile.in (OBS): Add tdesc.o.
12829 (IPA_OBJS): Add tdesc-ipa.o.
12830 (tdesc-ipa.o): New rule.
12831 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
12833 * linux-low.c (new_inferior): Delete.
12834 (disabled_regsets, num_regsets): Delete.
12835 (linux_add_process): Adjust to set the new per-process
12837 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
12838 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
12839 was a stop. When calling arch_setup, switch the current inferior
12840 to the thread that got an event.
12841 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
12842 (regsets_fetch_inferior_registers)
12843 (regsets_store_inferior_registers): New regsets_info parameter.
12845 (linux_register_in_regsets): New regs_info parameter. Adjust to
12847 (register_addr, fetch_register, store_register): New usrregs_info
12848 parameter. Adjust to use it.
12849 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
12850 parameter regs_info. Adjust to use it.
12851 (linux_fetch_registers): Get the current inferior's regs_info, and
12853 (linux_store_registers): Ditto.
12854 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
12855 (initialize_low): Don't initialize the target_regsets here. Call
12856 initialize_low_arch.
12857 * linux-low.h (target_regsets): Delete declaration.
12858 (struct regsets_info): New.
12859 (struct usrregs_info): New.
12860 (struct regs_info): New.
12861 (struct process_info_private) <new_inferior>: New field.
12862 (struct linux_target_ops): Delete the num_regs, regmap, and
12863 regset_bitmap fields. New field regs_info.
12864 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
12865 * i387-fp.c (num_xmm_registers): Delete.
12866 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
12867 calls to new interface.
12868 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
12869 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
12870 Infer the number of xmm registers from the regcache's target
12872 * i387-fp.h (num_xmm_registers): Delete.
12873 * inferiors.c (add_thread): Don't install the thread's regcache
12875 * proc-service.c (gregset_info): Fetch the current inferior's
12876 regs_info. Adjust to use it.
12877 * regcache.c: Include tdesc.h.
12878 (register_bytes, reg_defs, num_registers)
12879 (gdbserver_expedite_regs): Delete.
12880 (get_thread_regcache): If the thread doesn't have a regcache yet,
12881 create one, instead of aborting gdbserver.
12882 (regcache_invalidate_one): Rename to ...
12883 (regcache_invalidate_thread): ... this.
12884 (regcache_invalidate_one): New.
12885 (regcache_invalidate): Only invalidate registers of the current
12887 (init_register_cache): Add target_desc parameter, and use it.
12888 (new_register_cache): Ditto. Assert the target description has a
12889 non zero registers_size.
12890 (regcache_cpy): Add assertions. Adjust.
12891 (realloc_register_cache, set_register_cache): Delete.
12892 (registers_to_string, registers_from_string): Adjust.
12893 (find_register_by_name, find_regno, find_register_by_number)
12894 (register_cache_size): Add target_desc parameter, and use it.
12895 (free_register_cache_thread, free_register_cache_thread_one)
12896 (regcache_release, register_cache_size): New.
12897 (register_size): Add target_desc parameter, and use it.
12898 (register_data, supply_register, supply_register_zeroed)
12899 (supply_regblock, supply_register_by_name, collect_register)
12900 (collect_register_as_string, collect_register_by_name): Adjust.
12901 * regcache.h (struct target_desc): Forward declare.
12902 (struct regcache) <tdesc>: New field.
12903 (init_register_cache, new_register_cache): Add target_desc
12905 (regcache_invalidate_thread): Declare.
12906 (regcache_invalidate_one): Delete declaration.
12907 (regcache_release): Declare.
12908 (find_register_by_number, register_cache_size, register_size)
12909 (find_regno): Add target_desc parameter.
12910 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
12912 * remote-utils.c: Include tdesc.h.
12913 (outreg, prepare_resume_reply): Adjust.
12914 * server.c: Include tdesc.h.
12915 (gdbserver_xmltarget): Delete declaration.
12916 (get_features_xml, process_serial_event): Adjust.
12917 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
12919 (struct process_info) <tdesc>: New field.
12920 (ipa_tdesc): Declare.
12921 * tdesc.c: New file.
12922 * tdesc.h: New file.
12923 * tracepoint.c: Include tdesc.h.
12924 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
12925 (get_context_regcache): Adjust to pass ipa_tdesc down.
12926 (do_action_at_tracepoint): Adjust to get the register cache size
12927 from the context regcache's description.
12928 (traceframe_walk_blocks): Adjust to get the register cache size
12929 from the current trace frame's description.
12930 (traceframe_get_pc): Adjust to get current trace frame's
12931 description and pass it down.
12932 (gdb_collect): Adjust to get the register cache size from the
12934 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
12935 (gdbserver_xmltarget): Delete.
12936 (initialize_low_tracepoint): Set the ipa's target description.
12937 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
12938 (initialize_low_tracepoint): Set the ipa's target description.
12939 * linux-x86-low.c: Include tdesc.h.
12940 [__x86_64__] (is_64bit_tdesc): New.
12941 (ps_get_thread_area, x86_get_thread_area): Use it.
12942 (i386_cannot_store_register): Rename to ...
12943 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
12944 (i386_cannot_fetch_register): Rename to ...
12945 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
12946 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
12948 (target_regsets): Rename to ...
12949 (x86_regsets): ... this.
12950 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
12952 (x86_siginfo_fixup): Use is_64bit_tdesc.
12953 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
12954 (tdesc_x32_avx_linux, tdesc_x32_linux)
12955 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
12957 (x86_linux_update_xmltarget): Delete.
12958 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
12959 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
12960 (AMD64_LINUX_USER64_CS): New.
12961 (x86_linux_read_description): New, based on
12962 x86_linux_update_xmltarget.
12963 (same_process_callback): New.
12964 (x86_arch_setup_process_callback): New.
12965 (x86_linux_update_xmltarget): New.
12966 (x86_regsets_info): New.
12967 (amd64_linux_regs_info): New.
12968 (i386_linux_usrregs_info): New.
12969 (i386_linux_regs_info): New.
12970 (x86_linux_regs_info): New.
12971 (x86_arch_setup): Reimplement.
12972 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
12973 (x86_emit_ops): Ditto.
12974 (the_low_target): Adjust. Install x86_linux_regs_info,
12975 x86_cannot_fetch_register, and x86_cannot_store_register.
12976 (initialize_low_arch): New.
12977 * linux-ia64-low.c (tdesc_ia64): Declare.
12978 (ia64_fetch_register): Adjust.
12979 (ia64_usrregs_info, regs_info): New globals.
12980 (ia64_regs_info): New function.
12981 (the_low_target): Adjust.
12982 (initialize_low_arch): New function.
12983 * linux-sparc-low.c (tdesc_sparc64): Declare.
12984 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
12986 (sparc_arch_setup): New function.
12987 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
12988 (the_low_target): Adjust.
12989 (initialize_low_arch): New function.
12990 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
12991 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
12992 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
12993 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
12994 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
12995 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
12996 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
12997 (tdesc_powerpc_isa205_vsx64l): Declare.
12998 (ppc_cannot_store_register, ppc_collect_ptrace_register)
12999 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13000 (ppc_set_pc, ppc_get_hwcap): Adjust.
13001 (ppc_usrregs_info): Forward declare.
13002 (!__powerpc64__) ppc_regmap_adjusted: New global.
13003 (ppc_arch_setup): Adjust to the current process'es target
13005 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13006 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13007 (ppc_store_evrregset): Adjust.
13008 (target_regsets): Rename to ...
13009 (ppc_regsets): ... this, and make static.
13010 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13011 (ppc_regs_info): New function.
13012 (the_low_target): Adjust.
13013 (initialize_low_arch): New function.
13014 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13015 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13016 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13017 (tdesc_s390x_linux64v2): Declare.
13018 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13019 (s390_fill_gregset, s390_store_last_break): Adjust.
13020 (target_regsets): Rename to ...
13021 (s390_regsets): ... this, and make static.
13022 (s390_get_pc, s390_set_pc): Adjust.
13023 (s390_get_hwcap): New target_desc parameter, and use it.
13024 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13025 (s390_arch_setup): Adjust to set the current process'es target
13026 description. Don't adjust the regmap.
13027 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13028 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13029 (regs_info_3264): New globals.
13030 (s390_regs_info): New function.
13031 (the_low_target): Adjust.
13032 (initialize_low_arch): New function.
13033 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13034 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13035 [__mips64] (init_registers_mips_linux)
13036 (init_registers_mips_dsp_linux): Delete defines.
13037 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13038 (have_dsp): New global.
13039 (mips_read_description): New, based on mips_arch_setup.
13040 (mips_arch_setup): Reimplement.
13041 (get_usrregs_info): New function.
13042 (mips_cannot_fetch_register, mips_cannot_store_register)
13043 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13044 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13045 (target_regsets): Rename to ...
13046 (mips_regsets): ... this, and make static.
13047 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13048 (dsp_regs_info, regs_info): New globals.
13049 (mips_regs_info): New function.
13050 (the_low_target): Adjust.
13051 (initialize_low_arch): New function.
13052 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13053 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13055 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13056 (arm_read_description): New, with bits factored from
13058 (arm_arch_setup): Reimplement.
13059 (target_regsets): Rename to ...
13060 (arm_regsets): ... this, and make static.
13061 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13062 (arm_regs_info): New function.
13063 (the_low_target): Adjust.
13064 (initialize_low_arch): New function.
13065 * linux-m68k-low.c (tdesc_m68k): Declare.
13066 (target_regsets): Rename to ...
13067 (m68k_regsets): ... this, and make static.
13068 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13069 (m68k_regs_info): New function.
13070 (m68k_arch_setup): New function.
13071 (the_low_target): Adjust.
13072 (initialize_low_arch): New function.
13073 * linux-sh-low.c (tdesc_sharch): Declare.
13074 (target_regsets): Rename to ...
13075 (sh_regsets): ... this, and make static.
13076 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13077 (sh_regs_info, sh_arch_setup): New functions.
13078 (the_low_target): Adjust.
13079 (initialize_low_arch): New function.
13080 * linux-bfin-low.c (tdesc_bfin): Declare.
13081 (bfin_arch_setup): New function.
13082 (bfin_usrregs_info, regs_info): New globals.
13083 (bfin_regs_info): New function.
13084 (the_low_target): Adjust.
13085 (initialize_low_arch): New function.
13086 * linux-cris-low.c (tdesc_cris): Declare.
13087 (cris_arch_setup): New function.
13088 (cris_usrregs_info, regs_info): New globals.
13089 (cris_regs_info): New function.
13090 (the_low_target): Adjust.
13091 (initialize_low_arch): New function.
13092 * linux-cris-low.c (tdesc_crisv32): Declare.
13093 (cris_arch_setup): New function.
13094 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13095 (cris_regs_info): New function.
13096 (the_low_target): Adjust.
13097 (initialize_low_arch): New function.
13098 * linux-m32r-low.c (tdesc_m32r): Declare.
13099 (m32r_arch_setup): New function.
13100 (m32r_usrregs_info, regs_info): New globals.
13101 (m32r_regs_info): Adjust.
13102 (initialize_low_arch): New function.
13103 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13104 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13105 (tic6x_usrregs_info): Forward declare.
13106 (tic6x_read_description): New function, based on ...
13107 (tic6x_arch_setup): ... this. Reimplement.
13108 (target_regsets): Rename to ...
13109 (tic6x_regsets): ... this, and make static.
13110 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13111 (tic6x_regs_info): New function.
13112 (the_low_target): Adjust.
13113 (initialize_low_arch): New function.
13114 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13115 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13116 (target_regsets): Rename to ...
13117 (xtensa_regsets): ... this, and make static.
13118 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13120 (xtensa_arch_setup, xtensa_regs_info): New functions.
13121 (the_low_target): Adjust.
13122 (initialize_low_arch): New function.
13123 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13124 (nios2_arch_setup): Set the current process'es tdesc.
13125 (target_regsets): Rename to ...
13126 (nios2_regsets): ... this.
13127 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13128 (nios2_regs_info): New function.
13129 (the_low_target): Adjust.
13130 (initialize_low_arch): New function.
13131 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13132 (aarch64_arch_setup): Set the current process'es tdesc.
13133 (target_regsets): Rename to ...
13134 (aarch64_regsets): ... this.
13135 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13136 (aarch64_regs_info): New function.
13137 (the_low_target): Adjust.
13138 (initialize_low_arch): New function.
13139 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13141 (target_regsets): Rename to ...
13142 (tile_regsets): ... this.
13143 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13144 (tile_regs_info): New function.
13145 (tile_arch_setup): Set the current process'es tdesc.
13146 (the_low_target): Adjust.
13147 (initialize_low_arch): New function.
13148 * spu-low.c (tdesc_spu): Declare.
13149 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13150 * win32-arm-low.c (tdesc_arm): Declare.
13151 (arm_arch_setup): New function.
13152 (the_low_target): Install arm_arch_setup instead of
13153 init_registers_arm.
13154 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13155 (init_windows_x86): Rename to ...
13156 (i386_arch_setup): ... this. Set `win32_tdesc'.
13157 (the_low_target): Adjust.
13158 * win32-low.c (win32_tdesc): New global.
13159 (child_add_thread): Don't create the thread cache here.
13160 (do_initial_child_stuff): Set the new process'es tdesc.
13161 * win32-low.h (struct target_desc): Forward declare.
13162 (win32_tdesc): Declare.
13163 * lynx-i386-low.c (tdesc_i386): Declare global.
13164 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13165 * lynx-low.c (lynx_tdesc): New global.
13166 (lynx_add_process): Set the new process'es tdesc.
13167 * lynx-low.h (struct target_desc): Forward declare.
13168 (lynx_tdesc): Declare global.
13169 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13170 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13171 * nto-low.c (nto_tdesc): New global.
13172 (do_attach): Set the new process'es tdesc.
13173 * nto-low.h (struct target_desc): Forward declare.
13174 (nto_tdesc): Declare.
13175 * nto-x86-low.c (tdesc_i386): Declare.
13176 (nto_x86_arch_setup): Set `nto_tdesc'.
13178 2013-06-04 Gary Benson <gbenson@redhat.com>
13180 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13181 to qSupported response when appropriate.
13182 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13183 with nonzero-length annex.
13184 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13185 arguments supplied in annex.
13187 2013-05-31 Doug Evans <dje@google.com>
13190 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13191 64 bits in 64-cross-32 environment.
13193 2013-05-28 Pedro Alves <palves@redhat.com>
13195 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13196 (aarch64-without-fpu.c): Delete rule.
13197 * configure.srv (aarch64*-*-linux*): Remove references to
13198 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13199 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13202 2013-05-24 Pedro Alves <palves@redhat.com>
13204 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
13205 instead of strchr/decode_address. Error if the range isn't split
13206 with a ','. Don't assume there's be a ':' in the action.
13208 2013-05-23 Yao Qi <yao@codesourcery.com>
13209 Pedro Alves <palves@redhat.com>
13211 * linux-low.c (lwp_in_step_range): New function.
13212 (linux_wait_1): If the thread was range stepping and stopped
13213 outside the stepping range, report the stop to GDB. Otherwise,
13214 continue stepping. Add range stepping debug output.
13215 (linux_set_resume_request): Copy the step range from the resume
13216 request to the lwp.
13217 (linux_supports_range_stepping): New.
13218 (linux_target_ops) <supports_range_stepping>: Set to
13219 linux_supports_range_stepping.
13220 * linux-low.h (struct linux_target_ops)
13221 <supports_range_stepping>: New field.
13222 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13223 * linux-x86-low.c (x86_supports_range_stepping): New.
13224 (the_low_target) <supports_range_stepping>: Set to
13225 x86_supports_range_stepping.
13226 * server.c (handle_v_cont): Handle 'r' action.
13227 (handle_v_requests): Append ";r" if the target supports range
13229 * target.h (struct thread_resume) <step_range_start,
13230 step_range_end>: New fields.
13231 (struct target_ops) <supports_range_stepping>:
13233 (target_supports_range_stepping): New macro.
13235 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13237 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13238 confusion in comment.
13240 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13242 * lynx-low.c (struct process_info_private): New type.
13243 (lynx_add_process): New function.
13244 (lynx_create_inferior, lynx_attach): Replace calls to
13245 add_process by calls to lynx_add_process.
13246 (lynx_resume): If PTID is null, then try using
13247 current_process()->private->last_wait_event_ptid.
13249 (lynx_clear_inferiors): Delete. The contents of that function
13250 has been inlined in lynx_mourn;
13251 (lynx_wait_1): Save the ptid in the process's private data.
13252 (lynx_mourn): Free the process' private data. Replace call
13253 to lynx_clear_inferiors by call to clear_inferiors.
13255 2013-05-17 Yao Qi <yao@codesourcery.com>
13257 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13260 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
13262 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13263 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13264 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13265 PT_TEXT_END_ADDR guards. Update comments.
13266 (linux_target_op) <read_offsets>: Conditionally define to
13267 linux_read_offsets if the target is UCLIBC and if it defines
13268 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13270 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13271 Andrew Jenner <andrew@codesourcery.com>
13273 * Makefile.in (SFILES): Add linux-nios2-low.c.
13274 (clean): Add action to delete nios2-linux.c.
13275 (nios2-linux.c): New rule.
13276 * configure.srv: Add nios2*-*-linux*.
13277 * linux-nios2-low.c: New.
13279 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13281 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13283 2013-04-25 Hui Zhu <hui@codesourcery.com>
13286 * ax.c (ax_printf): Add fflush.
13288 2013-04-22 Tom Tromey <tromey@redhat.com>
13290 * Makefile.in (SFILES): Add filestuff.c.
13291 (OBS): Add filestuff.o.
13292 (filestuff.o): New target.
13293 * config.in, configure: Rebuild.
13294 * configure.ac: Check for fdwalk, pipe2.
13296 2013-04-17 Pedro Alves <palves@redhat.com>
13298 * configure.ac (USE_THREAD_DB): Delete variable.
13299 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13300 Don't AC_SUBST USE_THREAD_DB.
13301 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13302 * config.in, configure: Regenerate.
13304 2013-04-16 Pedro Alves <palves@redhat.com>
13306 * linux-low.h (struct lwp_info) <thread_known>: Move under
13307 the USE_THREAD_DB #ifdef.
13309 2013-04-16 Pedro Alves <palves@redhat.com>
13311 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13312 (linux-low.o): Delete rule.
13313 * linux-low.h: Always include "gdb_thread_db.h" instead of
13314 conditionally including thread_db.h.
13315 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13318 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13320 * Makefile.in (install-only): Fix make install regression.
13322 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13324 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13325 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13327 * gdbserver.1: Remove.
13329 2013-03-22 Pedro Alves <palves@redhat.com>
13331 * linux-low.c (handle_extended_wait): Don't call
13332 linux_enable_event_reporting.
13334 2013-03-15 Tony Theodore <tonyt@logyst.com>
13337 * Makefile.in (SHELL): Use @SHELL@.
13339 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13341 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13344 2013-03-13 Joel Brobecker <brobecker@adacore.com>
13346 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13347 Remove extraneous NULL element.
13349 2013-03-13 Yao Qi <yao@codesourcery.com>
13351 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13352 'V' block in trace frame.
13354 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13356 * target.h (struct target_ops): Add btrace ops.
13357 (target_supports_btrace): New macro.
13358 (target_enable_btrace): New macro.
13359 (target_disable_btrace): New macro.
13360 (target_read_btrace): New macro.
13361 * gdbthread.h (struct thread_info): Add btrace field.
13362 * server.c: Include btrace-common.h.
13363 (handle_btrace_general_set): New function.
13364 (handle_btrace_enable): New function.
13365 (handle_btrace_disable): New function.
13366 (handle_general_set): Call handle_btrace_general_set.
13367 (handle_qxfer_btrace): New function.
13368 (struct qxfer qxfer_packets[]): Add btrace entry.
13369 * inferiors.c (remove_thread): Disable btrace.
13370 * linux-low: Include linux-btrace.h.
13371 (linux_low_enable_btrace): New function.
13372 (linux_low_read_btrace): New function.
13373 (linux_target_ops): Add btrace ops.
13374 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
13375 Add srv_linux_btrace=yes.
13376 (x86_64-*-linux*): Add linux-btrace.o.
13377 Add srv_linux_btrace=yes.
13378 * configure.ac: Define HAVE_LINUX_BTRACE.
13379 * config.in: Regenerated.
13380 * configure: Regenerated.
13382 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13384 * server.c (handle_qxfer): Preserve error message if -3 is
13386 (qxfer): Document the -3 return value.
13388 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13390 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
13391 (linux_btrace_h): New variable.
13392 (linux-btrace.o): New rule.
13394 2013-03-08 Stan Shebs <stan@codesourcery.com>
13395 Hafiz Abid Qadeer <abidh@codesourcery.com>
13397 * tracepoint.c (trace_buffer_size): New global.
13398 (DEFAULT_TRACE_BUFFER_SIZE): New define.
13399 (init_trace_buffer): Change to one-argument function. Allocate
13400 trace buffer memory.
13401 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
13402 handle QTBuffer:size packet.
13403 (cmd_bigqtbuffer_size): New function.
13404 (initialize_tracepoint): Call init_trace_buffer with
13405 DEFAULT_TRACE_BUFFER_SIZE.
13406 * server.c (handle_query): Add QTBuffer:size in the
13409 2013-03-07 Yao Qi <yao@codesourcery.com>
13411 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
13412 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
13414 (cmd_qtsp): Adjust condition. Do post increment.
13415 Set cur_action and cur_step_action back to 0.
13417 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
13420 * linux-low.c (linux_write_memory): Return early success if LEN is
13423 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
13425 * configure.srv: Add x86_64-*-cygwin* as target.
13427 2013-02-28 Tom Tromey <tromey@redhat.com>
13429 * configure.ac: Invoke AC_SYS_LARGEFILE.
13430 * configure, config.in: Rebuild.
13432 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
13434 * win32-low.c: Throughout, fix format strings and casts of
13435 printf-like functions to avoid type related warnings on all
13437 (get_child_debug_event): Print dwDebugEventCode as hex since
13438 that's how it's usually documented.
13440 2013-02-28 Yao Qi <yao@codesourcery.com>
13442 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
13445 2013-02-27 Jiong Wang <jiwang@tilera.com>
13447 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
13448 (reg-tilegx32.c): New rule.
13449 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
13450 * linux-tile-low.c (tile_arch_setup): New function. Invoke
13451 different register info initializer according to elf class.
13452 (init_registers_tilgx32): New function. The tilegx32 register info
13454 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
13455 (tile_store_gregset): Likewise.
13457 2013-02-27 Yao Qi <yao@codesourcery.com>
13459 * server.c (process_point_options): Print debug message when
13460 debug_threads is true.
13462 2013-02-26 Yao Qi <yao@codesourcery.com>
13464 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
13466 2013-02-19 Pedro Alves <palves@redhat.com>
13467 Kai Tietz <ktietz@redhat.com>
13471 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
13472 instead of strtoul to extract address from packet.
13473 (process_serial_event) <'z'>: Likewise.
13475 2013-02-18 Yao Qi <yao@codesourcery.com>
13477 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
13479 2013-02-14 Pedro Alves <palves@redhat.com>
13483 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
13484 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
13486 2013-02-14 Pedro Alves <palves@redhat.com>
13488 * tracepoint.c (cmd_qtdpsrc): Use savestring.
13490 2013-02-14 Pedro Alves <palves@redhat.com>
13492 * tracepoint.c (save_string): Delete.
13493 (add_tracepoint_action): Use savestring instead of save_string.
13495 2013-02-12 Pedro Alves <palves@redhat.com>
13497 * linux-xtensa-low.c: Ditto.
13498 * xtensa-xtregs.c: Ditto.
13500 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13502 * thread-db.c (thread_db_get_tls_address): NULL pointer check
13505 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13507 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
13508 aarch64_num_wp_regs and aarch64_num_bp_regs to
13509 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
13511 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13513 * linux-aarch64-low.c (ps_get_thread_area): Replace
13514 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
13516 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
13517 Marcus Shawcroft <marcus.shawcroft@arm.com>
13518 Nigel Stephens <nigel.stephens@arm.com>
13519 Yufeng Zhang <yufeng.zhang@arm.com>
13521 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
13522 (aarch64.c, aarch64-without-fpu.c): New targets.
13523 * configure.srv (aarch64*-*-linux*): New.
13524 * linux-aarch64-low.c: New file.
13526 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
13528 * linux-low.c (handle_extended_wait, linux_create_inferior)
13529 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
13530 (dequeue_one_deferred_signal, linux_resume_one_thread)
13531 (fetch_register, linux_write_memory, linux_enable_event_reporting)
13532 (linux_tracefork_grandchild, linux_test_for_tracefork)
13533 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
13534 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
13535 where the argument is 0.
13537 2013-01-25 Yao Qi <yao@codesourcery.com>
13539 * event-loop.c: Include "queue.h".
13540 (gdb_event_p): New typedef.
13541 (struct gdb_event) <next_event>: Remove.
13542 (event_queue): Change to QUEUE(gdb_event_p).
13543 (async_queue_event): Remove.
13544 (gdb_event_xfree): New.
13545 (initialize_event_loop): New.
13546 (process_event): Use API from QUEUE.
13547 (wait_for_event): Likewise.
13548 * server.c (main): Call initialize_event_loop.
13549 * server.h (initialize_event_loop): Declare.
13551 2013-01-18 Yao Qi <yao@codesourcery.com>
13553 * ax.h (struct eval_agent_expr_context): New.
13554 (gdb_eval_agent_expr): Update declaration.
13555 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
13556 TFRAME. Add new argument CTX.
13557 * server.h (struct eval_agent_expr_context): Declare.
13558 (agent_mem_read, agent_tsv_read): Update declaration.
13559 (agent_mem_read_string): Likewise.
13560 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
13561 (add_traceframe_block): Add new argument TPOINT.
13562 Increase TPOINT->traceframe_usage.
13563 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
13564 eval_tracepoint_agent_expr.
13565 (condition_true_at_tracepoint): Likewise.
13566 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
13567 (agent_mem_read_string, agent_tsv_read): Likewise.
13569 2013-01-16 Yao Qi <yao@codesourcery.com>
13571 * linux-low.c (linux_resume_one_lwp): Don't check
13572 'lwp->bp_reinsert != 0'.
13574 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13575 Pedro Alves <palves@redhat.com>
13577 * lynx-low.c (ptrace_request_to_str): Define a temporary
13578 macro and use it to simplify this function's implementation.
13580 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13582 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
13585 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13587 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
13589 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13591 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
13593 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13595 * lynx-low.c (lynx_resume): Use the resume_info parameter
13596 to determine the ptid for the lynx_ptrace call, unless
13597 it is equal to minus_one_ptid, in which case we use the
13598 ptid of the current_inferior.
13599 (lynx_wait_1): After having received a thread create/exit
13600 event, resume the inferior's execution using the signaling
13601 thread's ptid, rather than the old ptid.
13603 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13605 * lynx-low.c (lynx_resume): Delete variable ret.
13607 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13609 * gdbreplay.c (gdbreplay_version): Update copyright year.
13610 * server.c (gdbserver_version): Likewise.
13612 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13614 * lynx-low.c (lynx_wait_1): Add debug trace before adding
13617 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13619 * lynx-low.c (ptrace_request_to_str): Add handling for
13620 PTRACE_GETTRACESIG.
13622 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13624 * lynx-low.c (lynx_attach): Delete variable new_process.
13626 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13628 * lynx-low.c (lynx_create_inferior): Delete variable
13631 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13633 * lynx-low.c (ptrace_request_to_str): Do not handle
13634 PTRACE_GETTHREADLIST if this macro does not exist.
13636 2012-12-15 Yao Qi <yao@codesourcery.com>
13638 * Makefile.in (OBS): Add notif.o.
13639 * notif.c, notif.h: New.
13640 * server.c: Include "notif.h".
13641 (struct vstop_notif) <next>: Remove.
13643 (queue_stop_reply): Update.
13644 (push_event, send_next_stop_reply): Remove.
13645 (discard_queued_stop_replies): Update.
13646 (notif_stop): New variable.
13647 (handle_v_stopped): Remove.
13648 (handle_v_requests): Don't call handle_v_stopped. Call
13649 handle_ack_notif instead.
13650 (queue_stop_reply_callback): Call notif_event_enque instead
13651 of queue_stop_reply.
13652 (handle_status): Don't call send_next_stop_reply, call
13653 notif_write_event instead.
13654 (kill_inferior_callback): Likewise.
13655 (detach_or_kill_inferior_callback): Likewise.
13656 (main): Call initialize_notif.
13657 (process_serial_event): Call QUEUE_is_empty.
13658 (handle_target_event): Call notif_push instead of push event.
13659 * server.h (push_event): Remove declaration.
13661 2012-12-10 Tom Tromey <tromey@redhat.com>
13663 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
13664 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
13667 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
13668 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
13669 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
13670 (amd64-linux-ipa.o, ax.o): Rewrite.
13671 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
13672 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
13673 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
13674 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
13675 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
13676 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
13677 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
13678 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
13679 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
13680 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
13681 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
13682 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
13683 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
13684 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
13685 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
13686 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
13687 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
13688 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
13689 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
13690 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
13691 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
13692 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
13693 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
13694 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
13695 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
13696 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
13697 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
13698 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
13699 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
13700 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
13701 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
13702 (reg-tilegx.o): Remove.
13703 (all_object_files): New macro.
13704 Include .deps files.
13705 * aclocal.m4, configure: Rebuild.
13706 * acinclude.m4: Include depstand.m4, lead-dot.m4.
13707 * configure.ac: Invoke ZW_CREATE_DEPDIR,
13708 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
13710 2012-12-05 Tom Tromey <tromey@redhat.com>
13713 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
13715 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
13717 * configure.ac: Check for linux/perf_event.h.
13718 * config.in: Regenerated.
13719 * configure: Regenerated.
13721 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
13723 * hostio.c (handle_readlink): Decrease buffer size
13724 parameter passed to readlink by one byte.
13726 2012-11-26 Yao Qi <yao@codesourcery.com>
13728 * configure.ac (build_warnings): Append '-Wempty-body'.
13729 * configure: Regenerated.
13730 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
13733 2012-11-15 Pierre Muller <muller@sourceware.org>
13735 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
13736 * config.in: Regenerate.
13737 * configure: Regenerate.
13738 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
13739 Use "gdb_wait.h" header instead of <sys/wait.h> header.
13740 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13741 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
13743 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
13744 instead of <sys/wait.h> header.
13745 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13747 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
13749 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
13750 (various make rules): Remove -DGDBSERVER
13752 2012-11-09 Yao Qi <yao@codesourcery.com>
13754 * spu-low.c (current_ptid): Move it to ..
13755 * gdbthread.h: ... here. New.
13756 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
13757 * server.c (myresume, process_serial_event): Likewise.
13758 * thread-db.c (thread_db_find_new_threads): Likewise.
13759 * tracepoint.c (run_inferior_command): Likewise.
13761 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
13763 * server.c (handle_search_memory_1): Include access length in
13766 2012-09-05 Michael Brandt <michael.brandt@axis.com>
13768 * linux-crisv32-low.c: Fix compile errors.
13770 2012-09-04 Yao Qi <yao@codesourcery.com>
13772 * tracepoint.c (cmd_qtsv): Adjust debug message.
13773 Don't check CUR_TPOINT.
13775 2012-08-28 Yao Qi <yao@codesourcery.com>
13777 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
13778 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
13779 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
13780 Remove declarations of xmalloc, xreallloc, xstrdup and
13782 * Makefile.in (libiberty_h): New.
13783 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
13784 (linux-bfin-low.o): Append dependency 'libiberty.h'.
13786 2012-08-23 Yao Qi <yao@codesourcery.com>
13788 * server.h: Remove declaration of 'xsnprintf'.
13790 2012-08-22 Keith Seitz <keiths@redhat.com>
13792 * server.h: Include build-gnulib-gbserver/config.h.
13793 * gdbreplay.c: Likewise.
13795 2012-08-08 Doug Evans <dje@google.com>
13797 * Makefile.in (SFILES): Add gdb_vecs.c.
13798 (OBS): Add gdb_vecs.o.
13799 (gdb_vecs_h, host_defs_h): New variables.
13800 (thread-db.o): Add $(gdb_vecs_h) dependency.
13801 (gdb_vecs.o): New rule.
13802 * thread-db.c: #include "gdb_vecs.h".
13803 (thread_db_load_search): Use a vector to iterate over path elements.
13804 Handle text appearing after "$pdir".
13806 * configure.ac: Add check for strstr.
13807 * config.in: Regenerate.
13808 * configure: Regenerate.
13810 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13812 * hostio.c (handle_pread): If pread fails, fall back to attempting
13814 (handle_pwrite): Likewise for pwrite.
13816 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
13818 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
13819 between unsupported TYPE and unimplementable ADDR/LEN combination.
13820 (arm_insert_point): Act on new return value.
13822 2012-07-31 Pedro Alves <palves@redhat.com>
13824 * server.c (process_point_options): Only skip tokens if we find
13825 one that is unrecognized. Don't treat 'X' specially while
13826 skipping unrecognized tokens.
13828 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
13830 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
13831 to 4-byte-align HW breakpoint addresses for Thumb.
13833 2012-07-27 Yao Qi <yao@codesourcery.com>
13837 * server.h: Declare gdb_agent_about_to_close.
13838 * target.c (kill_inferior): Include "agent.h".
13839 New. Send command 'kill'.
13840 * target.h (kill_inferior): Removed macro.
13841 * tracepoint.c (gdb_agent_about_to_close): New.
13842 (gdb_agent_helper_thread): Handle command 'close'.
13843 Wait endlessly until the inferior stops.
13844 Install gdb_agent_remove_socket to atexit hook.
13845 (agent_socket_name): New static variable.
13846 (gdb_agent_socket_init): Replace local variable 'name' with
13847 'agent_socket_name'.
13848 (gdb_agent_remove_socket): New.
13850 2012-07-27 Yao Qi <yao@codesourcery.com>
13852 * server.c (process_point_options): Stop at 'X' when parsing.
13854 2012-07-19 Michael Eager <eager@eagercon.com>
13856 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
13858 * linux-x86-low.c (x86_insert_point, x86_remove_point):
13859 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
13860 hardware breakpoint.
13862 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13864 * gdbserver/linux-low.c (initialize_low): Call
13865 linux_ptrace_init_warnings.
13867 2012-07-02 Doug Evans <dje@google.com>
13869 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
13872 2012-07-02 Stan Shebs <stan@codesourcery.com>
13874 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
13875 (ax.o): Add it to build rule.
13877 (OBS): Add format.o.
13878 (IPA_OBS): Add format.o.
13879 * server.c (handle_query): Claim support for breakpoint commands.
13880 (process_point_options): Add command case.
13881 (process_serial_event): Leave running if there are printfs in
13883 * mem-break.h (any_persistent_commands): Declare.
13884 (add_breakpoint_commands): Declare.
13885 (gdb_no_commands_at_breakpoint): Declare.
13886 (run_breakpoint_commands): Declare.
13887 * mem-break.c (struct point_command_list): New struct.
13888 (struct breakpoint): New field command_list.
13889 (any_persistent_commands): New function.
13890 (add_commands_to_breakpoint): New function.
13891 (add_breakpoint_commands): New function.
13892 (gdb_no_commands_at_breakpoint): New function.
13893 (run_breakpoint_commands): New function.
13894 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
13896 * ax.c: Include format.h.
13897 (ax_printf): New function.
13898 (gdb_eval_agent_expr): Add printf opcode.
13900 2012-06-13 Yao Qi <yao@codesourcery.com>
13902 * server.c (start_inferior): Remove duplicated writes to fields
13903 'last_resume_kind' and 'last_status' of 'current_inferior'.
13905 2012-06-12 Yao Qi <yao@codesourcery.com>
13906 Pedro Alves <palves@redhat.com>
13908 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
13910 * server.c (handle_v_cont): Extend comment.
13912 2012-06-11 Yao Qi <yao@codesourcery.com>
13914 * linux-low.c (linux_attach): Add 'static'.
13916 2012-06-06 Yao Qi <yao@codesourcery.com>
13918 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
13920 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
13922 Fix gcc -flto compilation warning.
13923 * server.c (main): Make variable multi_mode and attach volatile.
13925 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13927 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
13928 if the platform doesn't know about it.
13930 2012-05-30 Jeff Kenton <jkenton@tilera.com>
13932 * Makefile.in (SFILES): Add linux-tile-low.c.
13933 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
13934 * configure.srv: Handle tilegx-*-linux*.
13935 * linux-tile-low.c: New file.
13937 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13939 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
13941 2012-05-24 Pedro Alves <palves@redhat.com>
13945 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
13947 2012-05-24 Pedro Alves <palves@redhat.com>
13951 Replace target_signal with gdb_signal throughout.
13953 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
13955 * linux-low.c (linux_store_registers): Avoid the copying sequence
13956 when no data has been retrieved by ptrace.
13958 2012-05-22 Will Deacon <will.deacon@arm.com>
13960 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
13961 Include asm/ptrace.h.
13962 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
13965 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
13967 * linux-low.c (linux_store_registers): Don't re-retrieve data
13968 with ptrace that has already been obtained from /proc. Always
13969 copy any data retrieved with ptrace to the buffer supplied.
13971 2012-05-11 Yao Qi <yao@codesourcery.com>
13972 Pedro Alves <palves@redhat.com>
13974 * linux-low.c (enum stopping_threads_kind): New.
13975 (stopping_threads): Change type to `enum stopping_threads_kind'.
13976 (handle_extended_wait): If stopping and suspending threads, leave
13977 the new_lwp suspended too.
13978 (linux_wait_for_event): Adjust.
13979 (stop_all_lwps): Set `stopping_threads' to
13980 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
13981 whether we're suspending threads or just stopping them. Assert no
13984 2012-04-29 Yao Qi <yao@codesourcery.com>
13986 * server.h: Move some code to ...
13987 * gdbthread.h: ... here. New.
13988 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
13989 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
13990 (nto-low.o, win32-low.o): Likewise.
13991 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
13992 * regcache.c, remote-utils.c, server.c: Likewise.
13993 * target.c, tracepoint.c, win32-low.c: Likewise.
13995 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13997 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
13998 (PTRACE_ARG4_TYPE): Likewise.
13999 (PTRACE_XFER_TYPE): Likewise.
14000 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14001 ptrace to PTRACE_ARG3_TYPE.
14002 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14003 (PTRACE_ARG4_TYPE): Likewise.
14004 (PTRACE_XFER_TYPE): Likewise.
14005 (linux_detach_one_lwp): Cast fourth argument of
14006 ptrace to long then PTRACE_ARG4_TYPE.
14007 (regsets_fetch_inferior_registers): Cast third argument of
14008 ptrace to long then PTRACE_ARG3_TYPE.
14009 (regsets_store_inferior_registers): Likewise.
14011 2012-04-20 Pedro Alves <palves@redhat.com>
14013 * configure: Regenerate.
14015 2012-04-19 Pedro Alves <palves@redhat.com>
14017 * Makefile.in (GNULIB_BUILDDIR): New.
14018 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14019 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14020 (all, install-only, uninstall, clean-info, all-lib, clean): No
14021 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14022 (maintainer-clean realclean distclean): Use subdir_do.
14024 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14025 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14026 * acinclude.m4: Include acx_configure_dir.m4.
14027 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14028 calls. Call AC_PROG_RANLIB. Configure gnulib using
14031 (GNULIB_STDINT_H): Adjust.
14032 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14033 * gdbreplay.c: Include build-gnulib/config.h.
14034 * server.h: Likewise.
14035 * aclocal.m4: Regenerate.
14036 * config.in: Regenerate.
14037 * configure: Regenerate.
14039 2012-04-19 Pedro Alves <palves@redhat.com>
14041 * Makefile.in (LIBGNU, INCGNU): Adjust.
14042 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14043 (all, install-only, uninstall, clean-info, all-lib, clean)
14044 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14045 * configure.ac: Adjust AC_OUTPUT output.
14046 * aclocal.m4: Regenerate.
14047 * configure: Regenerate.
14049 2012-04-19 Pedro Alves <palves@redhat.com>
14051 * Makefile.in (generated_files): New.
14052 (server_h): Remove the explicit dependency on config.h, and depend
14053 on $generated_files.
14055 2012-04-19 Pedro Alves <palves@redhat.com>
14057 * Makefile.in (INCGNU): Add -Ignulib.
14059 2012-04-19 Pedro Alves <palves@redhat.com>
14061 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14062 (INCGNU): ... this, and spell out -I here.
14063 (GNULIB_LIB): Rename to ...
14064 (LIBGNU): ... this.
14065 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14067 2012-04-19 Pedro Alves <palves@redhat.com>
14069 * config.in: Regenerate.
14071 2012-04-19 Pedro Alves <palves@redhat.com>
14073 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14074 * server.h (memmem): Remove declaration.
14075 * config.in: Regenerate.
14076 * configure: Regenerate.
14078 2012-04-19 Yao Qi <yao@codesourcery.com>
14080 * Makefile.in (SFILES): Add common/vec.c.
14084 2012-04-19 Yao Qi <yao@codesourcery.com>
14086 * remote-utils.c (prepare_resume_reply): Replace with macro
14087 target_core_of_thread.
14088 * server.c (handle_qxfer_threads_proper): Likewise.
14089 * target.h (traget_core_of_thread): New macro.
14091 2012-04-18 Pedro Alves <palves@redhat.com>
14093 * aclocal.m4: Regenerate.
14094 * configure: Regenerate.
14096 2012-04-16 Yao Qi <yao@codesourcery.com>
14098 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14099 duplicated on address.
14101 2012-04-16 Yao Qi <yao@codesourcery.com>
14103 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14104 (struct tracepoint_action_ops) <send>: New field.
14105 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14106 (agent_expr_send, x_tracepoint_action_send): New.
14107 (l_tracepoint_action_send): New.
14108 (cmd_qtdp): Download and install tracepoint
14109 according to `use_agent'.
14110 (run_inferior_command): Add one more parameter `len'.
14112 (tracepoint_send_agent): New.
14113 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14115 2012-04-16 Yao Qi <yao@codesourcery.com>
14117 * tracepoint.c (download_tracepoints): Moved to ...
14118 (cmd_qtstart): ... here.
14120 2012-04-14 Yao Qi <yao@codesourcery.com>
14122 * tracepoint.c: Include inttypes.h.
14123 (struct collect_memory_action): Use sized types.
14124 (struct tracepoint): Likewise.
14125 (cmd_qtdp, stop_tracing): Update print specifiers.
14126 (cmd_qtp, response_tracepoint): Likewise.
14127 (collect_data_at_tracepoint): Likewise.
14128 (collect_data_at_step): Likewise.
14130 2012-04-14 Yao Qi <yao@codesourcery.com>
14132 Import gnulib module inttypes.
14133 * aclocal.m4, config.in, configure: Regenerated.
14135 2012-04-14 Yao Qi <yao@codesourcery.com>
14137 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14138 Makefile and config.status at last.
14140 2012-04-13 Yao Qi <yao@codesourcery.com>
14142 * tracepoint.c: Include stdint.h unconditionally.
14144 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14146 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14147 on BFD_HAVE_SYS_PROCFS_TYPE.
14148 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14149 * configure: Regenerate.
14150 * config.in: Likewise.
14152 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14154 * Makefile.in (clean): Also remove x32.c x32-linux.c
14155 x32-avx.c x32-avx-linux.c.
14156 (x32.o): New target.
14158 (x32-linux.o): Likewise.
14159 (x32-linux.c): Likewise.
14160 (x32-avx.o): Likewise.
14161 (x32-avx.c): Likewise.
14162 (x32-avx-linux.o): Likewise.
14163 (x32-avx-linux.c): Likewise.
14165 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14166 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14167 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14168 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14169 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14170 i386/x32-avx-linux.xml.
14172 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14173 (init_registers_x32_avx_linux): Likwise.
14174 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14175 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14177 2012-04-13 Pedro Alves <palves@redhat.com>
14179 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14180 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14181 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14182 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14185 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14187 * linux-x86-low.c (compat_x32_clock_t): New.
14188 (compat_x32_siginfo_t): Likewise.
14189 (compat_x32_siginfo_from_siginfo): Likewise.
14190 (siginfo_from_compat_x32_siginfo): Likewise.
14191 (linux_is_elf64): Likewise.
14192 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14193 and siginfo_from_compat_x32_siginfo for x32.
14194 (x86_arch_setup): Set linux_is_elf64.
14196 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14199 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14201 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14202 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14203 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
14204 compatible with process.
14206 2012-04-12 Yao Qi <yao@codesourcery.com>
14208 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14209 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14210 (install-only, install-info, clean): Handle sub dir gnulib.
14211 (all-lib, am--refresh): New targets.
14212 (memmem.o): Remove target.
14213 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14214 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14215 (AC_REPLACE_FUNCS): Remove memmem.
14216 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14217 (AC_OUTPUT): Generate Makefile in gnulib/.
14218 * aclocal.m4, config.in, configure: Regenerated.
14220 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14222 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14224 2012-04-05 Pedro Alves <palves@redhat.com>
14226 -Werror=strict-aliasing
14228 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14231 2012-04-04 Pedro Alves <palves@redhat.com>
14233 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14234 (sparc_store_gregset_from_stack, sparc_store_gregset)
14235 (sparc_breakpoint_at): Fix formatting.
14237 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14239 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14241 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14242 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14243 * config.in: Regenerate.
14244 * configure: Likewise.
14246 2012-03-29 Pedro Alves <palves@redhat.com>
14248 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14249 Correct ptrace arguments.
14251 2012-03-28 Pedro Alves <palves@redhat.com>
14253 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14254 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14255 (IA64_FR1_REGNUM): New defines.
14256 (ia64_fetch_register): New.
14257 (the_low_target): Install it.
14258 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14260 * linux-low.c (linux_fetch_registers): Try the
14261 the_low_target.fetch_register hook first.
14263 * linux-arm-low.c (the_low_target): Adjust.
14264 * linux-bfin-low.c (the_low_target): Adjust.
14265 * linux-cris-low.c (the_low_target): Adjust.
14266 * linux-crisv32-low.c (the_low_target): Adjust.
14267 * linux-m32r-low.c (the_low_target): Adjust.
14268 * linux-m68k-low.c (the_low_target): Adjust.
14269 * linux-mips-low.c (the_low_target): Adjust.
14270 * linux-ppc-low.c (the_low_target): Adjust.
14271 * linux-s390-low.c (the_low_target): Adjust.
14272 * linux-sh-low.c (the_low_target): Adjust.
14273 * linux-sparc-low.c (the_low_target): Adjust.
14274 * linux-tic6x-low.c (the_low_target): Adjust.
14275 * linux-x86-low.c (the_low_target): Adjust.
14276 * linux-xtensa-low.c (the_low_target): Adjust.
14278 2012-03-26 Pedro Alves <palves@redhat.com>
14280 * server.c (handle_qxfer_libraries): Don't bail early if
14281 the_target->qxfer_libraries_svr4 is not NULL.
14283 2012-03-26 Pedro Alves <palves@redhat.com>
14285 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14287 2012-03-23 Pedro Alves <palves@redhat.com>
14289 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14290 "library-list-svr4" element's start tag when the the DSO list is
14293 2012-03-23 Pedro Alves <palves@redhat.com>
14295 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14296 a variable whose type size is the same as the inferior's pointer
14299 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14301 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14303 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14304 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14305 * linux-low.h: Include <signal.h>.
14306 (struct siginfo): Remove forward declaration.
14307 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14310 2012-03-21 Mike Frysinger <vapier@gentoo.org>
14312 * .gitignore: Ignore more files.
14314 2012-03-19 Pedro Alves <palves@redhat.com>
14315 Jan Kratochvil <jan.kratochvil@redhat.com>
14317 * server.c (cont_thread, general_thread): Add describing comments.
14318 (start_inferior): Clear `cont_thread'.
14319 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14322 2012-03-15 Yao Qi <yao@codesourcery.com>
14324 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14326 (cmd_qtdp): ... here.
14328 2012-03-15 Yao Qi <yao@codesourcery.com>
14330 * tracepoint.c (struct tracepoint_action_ops): New.
14331 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14332 (m_tracepoint_action_download): New.
14333 (r_tracepoint_action_download): New.
14334 (x_tracepoint_action_download): New.
14335 (l_tracepoint_action_download): New.
14336 (add_tracepoint_action): Install `action->ops' according type.
14337 (download_tracepoint_1): Move code `download' function pointer
14338 of various tracepoint_action_ops.
14340 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14342 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14343 linux_ptrace_attach_warnings.
14345 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14347 * Makefile.in (linux-ptrace.o): New.
14348 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14349 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14350 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14351 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14352 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14354 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14356 2012-03-08 Yao Qi <yao@codesourcery.com>
14357 Pedro Alves <palves@redhat.com>
14359 Fix PR server/13392.
14360 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14361 offset of JMP insn.
14362 * tracepoint.c (remove_tracepoint): New.
14363 (cmd_qtdp): Call remove_tracepoint when failed to install.
14365 2012-03-07 Pedro Alves <palves@redhat.com>
14367 * linux-low.c (get_detach_signal): New.
14368 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14369 Pass on pending signals to PTRACE_DETACH. Check the result of the
14371 * server.c (program_signals, program_signals_p): New.
14372 (handle_general_set): Handle QProgramSignals.
14373 * server.h (program_signals, program_signals_p): Declare.
14375 2012-03-05 Pedro Alves <palves@redhat.com>
14376 Jan Kratochvil <jan.kratochvil@redhat.com>
14378 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
14381 2012-03-03 Yao Qi <yao@codesourcery.com>
14383 * tracepoint.c (tracepoint_look_up_symbols): Update call to
14384 agent_look_up_symbols.
14386 2012-03-03 Yao Qi <yao@codesourcery.com>
14388 * Makefile.in (linux-low.o): Keep dependence on agent.h.
14389 (linux-x86-low.o): Likewise.
14390 * server.h: Remove in_process_agent_loaded.
14391 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
14395 2012-03-03 Yao Qi <yao@codesourcery.com>
14397 * tracepoint.c (gdb_agent_capability): New global.
14398 (in_process_agent_loaded_ust): Renamed to
14399 `in_process_agent_supports_ust'.
14401 (in_process_agent_supports_ust): Call agent_capability_check.
14402 (clear_installed_tracepoints): Assert that agent supports
14405 2012-03-03 Yao Qi <yao@codesourcery.com>
14407 * linux-low.c (linux_supports_agent): New.
14408 (linux_target_ops): Initialize field `supports_agent' with
14409 linux_supports_agent.
14410 * target.h (struct target_ops) <supports_agent>: New.
14411 (target_supports_agent): New macro.
14412 * server.c (handle_general_set): Handle packet 'QAgent'.
14413 (handle_query): Send `QAgent+'.
14414 * Makefile.in (server.o): Depends on agent.h.
14416 2012-03-03 Yao Qi <yao@codesourcery.com>
14418 * Makefile.in (OBS): Add agent.o.
14419 Add new rule for agent.o.
14420 Track dependence of tracepoint.c on agent.h.
14421 * tracepoint.c (run_inferior_command_1):
14422 (run_inferior_command): Call agent_run_command.
14423 (gdb_ust_connect_sync_socket): Deleted. Move it to
14425 (resume_thread, stop_thread): Likewise.
14426 (gdb_ust_socket_init): Renamed to ...
14427 (gdb_agent_socket_init): ... New.
14428 (gdb_ust_thread): Renamed to ...
14429 (gdb_agent_helper_thread): ... New.
14430 (gdb_ust_init): Move some code to ...
14431 (gdb_agent_init): ... here. New.
14432 [HAVE_UST]: Call gdb_ust_init.
14433 (initialize_tracepoint_ftlib): Call gdb_agent_init.
14434 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
14435 * config.in, configure: Regenerated.
14437 2012-03-02 Pedro Alves <palves@redhat.com>
14439 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
14440 * linux-low.c (struct simple_pid_list): New.
14441 (stopped_pids): New a struct simple_pid_list pointer.
14442 (add_to_pid_list, pull_pid_from_list): New.
14443 (handle_extended_wait): Don't assume the first signal new children
14444 report is SIGSTOP. Adjust call to pull_pid_from_list.
14445 (linux_wait_for_lwp): Adjust.
14447 2012-03-02 Yao Qi <yao@codesourcery.com>
14449 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
14452 2012-03-02 Yao Qi <yao@codesourcery.com>
14454 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
14455 `stop_pc' and `tpoint'. Update caller.
14457 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
14459 * linux-low.h (linux_target_ops): Add regset_bitmap member.
14460 * linux-low.c (use_linux_regsets): New macro.
14461 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
14462 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
14463 (linux_register_in_regsets): New function.
14464 (usr_fetch_inferior_registers): Skip registers covered by
14466 (usr_store_inferior_registers): Likewise.
14467 (usr_fetch_inferior_registers): New macro.
14468 (usr_store_inferior_registers): Likewise.
14469 (linux_fetch_registers): Handle mixed regset/non-regset targets.
14470 (linux_store_registers): Likewise.
14471 * linux-mips-low.c (init_registers_mips_dsp_linux): New
14473 (init_registers_mips64_dsp_linux): Likewise.
14474 (init_registers_mips_linux): New macro.
14475 (init_registers_mips_dsp_linux): Likewise.
14476 (mips_dsp_num_regs): Likewise.
14477 (DSP_BASE, DSP_CONTROL): New fallback macros.
14478 (mips_base_regs): New macro.
14479 (mips_regmap): Use it. Fix the size.
14480 (mips_dsp_regmap): New variable.
14481 (mips_dsp_regset_bitmap): Likewise.
14482 (mips_arch_setup): New function.
14483 (mips_cannot_fetch_register): Use the_low_target.regmap rather
14485 (mips_cannot_store_register): Likewise.
14486 (the_low_target): Update .arch_setup, .num_regs and .regmap
14487 initializers. Add .regset_bitmap initializer.
14488 * linux-arm-low.c (the_low_target): Add .regset_bitmap
14490 * linux-bfin-low.c (the_low_target): Likewise.
14491 * linux-cris-low.c (the_low_target): Likewise.
14492 * linux-crisv32-low.c (the_low_target): Likewise.
14493 * linux-ia64-low.c (the_low_target): Likewise.
14494 * linux-m32r-low.c (the_low_target): Likewise.
14495 * linux-m68k-low.c (the_low_target): Likewise.
14496 * linux-ppc-low.c (the_low_target): Likewise.
14497 * linux-s390-low.c (the_low_target): Likewise.
14498 * linux-sh-low.c (the_low_target): Likewise.
14499 * linux-sparc-low.c (the_low_target): Likewise.
14500 * linux-tic6x-low.c (the_low_target): Likewise.
14501 * linux-x86-low.c (the_low_target): Likewise.
14502 * linux-xtensa-low.c (the_low_target): Likewise.
14503 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
14504 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
14505 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
14507 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
14508 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
14510 2012-02-29 Yao Qi <yao@codesourcery.com>
14511 Pedro Alves <palves@redhat.com>
14513 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
14514 `step_over_finished' is true.
14516 2012-02-27 Pedro Alves <palves@redhat.com>
14518 * linux-low.c (pid_is_stopped): Delete, moved to common/.
14519 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
14521 2012-02-27 Pedro Alves <palves@redhat.com>
14524 * linux-low.c (pid_is_stopped): New.
14525 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
14527 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
14529 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
14532 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
14534 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
14536 2012-02-24 Luis Machado <lgustavo@codesourcery>
14538 * server.c (handle_query): Advertise support for target-side
14539 breakpoint condition evaluation.
14540 (process_point_options): New function.
14541 (process_serial_event): When inserting a breakpoint, check for
14542 a target-side condition that should be evaluated.
14544 * mem-break.c: Include regcache.h and ax.h.
14545 (point_cond_list_t): New data structure.
14546 (breakpoint) <cond_list>: New field.
14547 (find_gdb_breakpoint_at): Make non-static.
14548 (delete_gdb_breakpoint_at): Clear any target-side
14550 (clear_gdb_breakpoint_conditions): New function.
14551 (add_condition_to_breakpoint): Likewise.
14552 (add_breakpoint_condition): Likewise.
14553 (gdb_condition_true_at_breakpoint): Likewise.
14554 (gdb_breakpoint_here): Return result directly instead
14555 of going through a local variable.
14557 * mem-break.h (find_gdb_breakpoint_at): New prototype.
14558 (clear_gdb_breakpoint_conditions): Likewise.
14559 (add_breakpoint_condition): Likewise.
14560 (gdb_condition_true_at_breakpoint): Likewise.
14562 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
14563 (need_step_over_p): Take target-side breakpoint condition into
14566 2012-02-24 Luis Machado <lgustavo@codesourcery>
14568 * server.h: Include tracepoint.h.
14569 (agent_mem_read, agent_get_trace_state_variable_value,
14570 agent_set_trace_state_variable_value,
14571 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
14572 get_set_tsv_func_addr): New prototypes.
14574 * ax.h: New include file.
14575 * ax.c: New source file.
14577 * tracepoint.c: Include ax.h.
14578 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
14579 agent_expr, eval_result_type): Move to ax.h.
14580 (parse_agent_expr): Rename to ...
14581 (gdb_parse_agent_expr): ... this, make it non-static and move
14583 (unparse_agent_expr) Rename to ...
14584 (gdb_unparse_agent_expr): ... this, make it non-static and move
14586 (eval_agent_expr): Rename to ...
14587 (eval_tracepoint_agent_expr): ... this.
14588 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
14589 forward declarations.
14590 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
14591 (agent_get_trace_state_variable_value): New function.
14592 (agent_set_trace_state_variable_value): New function.
14593 (cmd_qtdp): Call gdb_parse_agent_expr (...).
14594 (response_tracepoint): Call gdb_unparse_agent_expr (...).
14595 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
14596 (condition_true_at_tracepoint): Likewise.
14597 (parse_agent_expr): Rename to ...
14598 (gdb_parse_agent_expr): ... this and move to ax.c.
14599 (unparse_agent_expr): Rename to ...
14600 (gdb_unparse_agent_expr): ... this and move to ax.c.
14601 (gdb_agent_op_name): Move to ax.c.
14602 (eval_agent_expr): Rename to ...
14603 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
14605 (eval_tracepoint_agent_expr): New function.
14606 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
14608 (current_insn_ptr, emit_error, struct bytecode_address): Move to
14610 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
14611 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
14612 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
14613 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
14614 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
14615 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
14616 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
14617 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
14618 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
14619 (compile_bytecodes): Remove forward declaration.
14620 (is_goto_target): Move to ax.c.
14621 (compile_bytecodes): Move to ax.c and call
14622 agent_get_trace_state_variable_value (...) and
14623 agent_set_trace_state_variable_value (...).
14625 * Makefile.in: Update ax.c and IPA dependencies.
14627 2012-02-24 Pedro Alves <palves@redhat.com>
14629 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
14630 (cmd_bigqtbuffer_circular): ... this. Only handle
14631 'QTBuffer:circular:'.
14632 (handle_tracepoint_general_set): Adjust.
14634 2012-02-16 Yao Qi <yao@codesourcery.com>
14636 * inferiors.c: Move code to ...
14637 * dll.c: .... here. New.
14638 * server.h: Declare clear_dlls.
14639 * Makefile.in (SFILES): Add dll.c.
14643 2012-02-11 Yao Qi <yao@codesourcery.com>
14645 * server.c: (handle_monitor_command): Add a new parameter
14647 (handle_query): Update caller.
14649 2012-02-09 Joel Brobecker <brobecker@adacore.com>
14651 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
14652 * configure, config.in: Regenerate.
14653 * hostio.c: Provide an alternate implementation if HAVE_READLINK
14656 2012-02-02 Pedro Alves <palves@redhat.com>
14658 Try SIGKILL first, then PTRACE_KILL.
14659 * linux-low.c (linux_kill_one_lwp): New.
14660 (linux_kill_one_lwp): Rename to ...
14661 (kill_one_lwp_callback): ... this. Use the new
14662 linux_kill_one_lwp.
14664 2012-02-02 Pedro Alves <palves@redhat.com>
14666 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
14669 2012-01-27 Pedro Alves <palves@redhat.com>
14671 * linux-low.c (linux_child_pid_to_exec_file): Delete.
14672 (elf_64_file_p): Make static.
14673 (linux_pid_exe_is_elf_64_file): New.
14674 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
14675 Delete declarations.
14676 (linux_pid_exe_is_elf_64_file): Declare.
14677 * linux-x86-low.c (x86_arch_setup): Use
14678 linux_pid_exe_is_elf_64_file.
14680 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14682 * linux-low.c (linux_wait_for_event_1): Rename to ...
14683 (linux_wait_for_event): ... here and merge it with former
14684 linux_wait_for_event - new variable wait_ptid, use it.
14685 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
14687 2012-01-23 Pedro Alves <palves@redhat.com>
14689 * server.c (main): Avoid yet another case of infinite loop while
14690 detaching/killing after a longjmp.
14692 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14695 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
14697 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
14699 * hostio.c (handle_readlink): New function.
14700 (handle_vFile): Call it to handle "vFile:readlink" packets.
14702 2012-01-20 Pedro Alves <palves@redhat.com>
14703 Ulrich Weigand <ulrich.weigand@linaro.org>
14705 * server.c (handle_v_requests): Only support vAttach and vRun to
14706 start multiple processes when in extended protocol mode.
14708 2012-01-17 Pedro Alves <palves@redhat.com>
14710 * tracepoint.c (initialize_tracepoint): Use mmap instead of
14711 memalign plus mprotect to allocate the scratch buffer.
14713 2012-01-13 Pedro Alves <palves@redhat.com>
14715 * server.c (attach_inferior): Clear `cont_thread'.
14717 2012-01-13 Pedro Alves <palves@redhat.com>
14719 * server.c (main): Avoid infinite loop while detaching/killing
14722 2012-01-09 Doug Evans <dje@google.com>
14724 * server.c (start_inferior): Set last_ptid in --wrapper case.
14726 2012-01-06 Yao Qi <yao@codesourcery.com>
14728 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
14730 [IN_PROCESS_AGENT] (debug_agent): New global variable.
14732 2012-01-04 Yao Qi <yao@codesourcery.com>
14734 * tracepoint.c (cmd_qtdp): Print debug message
14735 for static tracepoint.
14737 2012-01-04 Yao Qi <yao@codesourcery.com>
14739 * tracepoint.c (trace_vdebug): Differentiate debug message
14740 between gdbserver and IPA.
14742 2012-01-03 Yao Qi <yao@codesourcery.com>
14744 * tracepoint.c (tracepoint_was_hit): Don't collect for
14747 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14749 * terminal.h: Reformat copyright header.
14751 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14753 * server.c (gdbserver_version): Update copyright year.
14754 * gdbreplay.c (gdbreplay_version): Likewise.
14756 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
14758 * linux-low.c (linux_create_inferior): Put empty if clause for write.
14761 2011-12-18 Hui Zhu <teawater@gmail.com>
14762 * linux-low.c (linux_create_inferior): Save return value to ret.
14764 2011-12-18 Hui Zhu <teawater@gmail.com>
14766 * linux-low.c (linux_create_inferior): Save return value to ret.
14768 2011-12-16 Doug Evans <dje@google.com>
14770 * linux-low.c (linux_create_inferior): If stdio connection,
14771 redirect stdin from /dev/null, stdout to stderr.
14772 * remote-utils.c (remote_is_stdio): New static global.
14773 (remote_connection_is_stdio): New function.
14774 (remote_prepare): Handle stdio connection.
14775 (remote_open): Ditto.
14776 (remote_close): Don't close stdin for stdio connections.
14777 (read_prim,write_prim): New functions. Replace all calls to
14778 read/write to these.
14779 * server.c (main): Watch for "-" argument. Move call to
14780 remote_prepare before start_inferior.
14781 * server.h (STDIO_CONNECTION_NAME): New macro.
14782 (remote_connection_is_stdio): Declare.
14784 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
14785 in debugging output.
14787 2011-12-15 Yao Qi <yao@codesourcery.com>
14789 * tracepoint.c: Include sys/syscall.h.
14790 (gdb_ust_thread): Remove preprocessor conditional.
14792 2011-12-14 Pedro Alves <pedro@codesourcery.com>
14794 * linux-low.c (linux_detach_one_lwp): Call
14795 the_low_target.prepare_to_resume before detaching.
14797 2011-12-14 Yao Qi <yao@codesourcery.com>
14799 * tracepoint.c (gdb_ust_thread): Don't ignore return value
14802 2011-12-14 Yao Qi <yao@codesourcery.com>
14804 * i386-low.c (i386_low_stopped_data_address): Initialize local
14805 variable `control'.
14807 2011-12-13 Pedro Alves <pedro@codesourcery.com>
14811 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
14812 DR_CONTROL unless necessary. Extend comments.
14813 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
14814 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
14816 2011-12-13 Yao Qi <yao@codesourcery.com>
14818 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
14820 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
14822 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14824 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
14825 Print new debug message for such case.
14827 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14829 Fix overlapping memcpy.
14830 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
14831 the read_inferior_memory transfer.
14832 (delete_fast_tracepoint_jump): New variable buf. Use it for the
14833 write_inferior_memory transfer.
14834 (set_fast_tracepoint_jump): New variable buf. Use it for the
14835 read_inferior_memory and write_inferior_memory transfers.
14836 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
14837 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
14838 Use it for the write_inferior_memory transfer.
14839 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
14842 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14844 * linux-low.c (fetch_register, store_register): Make code
14845 consistent, fix formatting.
14847 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14849 * linux-low.c (usr_store_inferior_registers): Factor out code
14850 to handle individual registers into...
14851 (store_register): ... this new function.
14853 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
14855 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
14856 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
14857 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
14858 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
14859 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
14860 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
14861 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
14862 (srv_xmlfiles): Add new XML files.
14864 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
14866 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
14867 (init_registers_s390_linux32v1): Add prototype.
14868 (init_registers_s390_linux32v2): Likewise.
14869 (init_registers_s390_linux64v1): Likewise.
14870 (init_registers_s390_linux64v2): Likewise.
14871 (init_registers_s390x_linux64v1): Likewise.
14872 (init_registers_s390x_linux64v2): Likewise.
14873 (s390_num_regs): Increment to 52.
14874 (s390_regmap): Add orig_r2 register.
14875 (s390_num_regs_3264): Increment to 68.
14876 (s390_regmap_3264): Add orig_r2 register.
14877 (s390_collect_ptrace_register): Handle orig_r2 register.
14878 (s390_supply_ptrace_register): Likewise.
14879 (s390_fill_last_break): New function.
14880 (s390_store_last_break): Likewise.
14881 (s390_fill_system_call): New function.
14882 (s390_store_system_call): Likewise.
14883 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
14885 (s390_check_regset): New function.
14886 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
14887 NT_S390_SYSTEM_CALL regsets and use appropriate description.
14888 Update target_regsets for available register sets.
14890 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
14891 Jan Kratochvil <jan.kratochvil@redhat.com>
14893 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
14894 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
14896 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
14897 * linux-low.h (struct process_info_private): New member r_debug.
14898 * server.c (handle_qxfer_libraries): Call
14899 the_target->qxfer_libraries_svr4.
14900 (handle_qxfer_libraries_svr4): New function.
14901 (qxfer_packets): New entry "libraries-svr4".
14902 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
14903 * target.h (struct target_ops): New member qxfer_libraries_svr4.
14904 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
14905 PACKET_qXfer_libraries_svr4.
14907 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
14909 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
14910 PSW address/mask between 8-byte and 16-byte formats.
14911 (s390_supply_ptrace_register): Likewise.
14912 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
14913 basic addressing mode bit.
14915 2011-11-24 Stan Shebs <stan@codesourcery.com>
14917 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
14919 2011-11-17 Stan Shebs <stan@codesourcery.com>
14921 * tracepoint.c (struct tracepoint): New field traceframe_usage.
14922 (tracing_start_time): New global.
14923 (tracing_stop_time): New global.
14924 (tracing_user_name): New global.
14925 (tracing_notes): New global.
14926 (tracing_stop_note): New global.
14927 (cmd_qtstart): Set traceframe_usage, start_time.
14928 (stop_tracing): Set stop_time.
14929 (cmd_qtstatus): Report additional status.
14930 (cmd_qtp): New function.
14931 (handle_tracepoint_query): Call it.
14932 (cmd_qtnotes): New function.
14933 (handle_tracepoint_general_set): Call it.
14934 (get_timestamp): Rename from tsv_get_timestamp.
14936 2011-11-14 Stan Shebs <stan@codesourcery.com>
14937 Kwok Cheung Yeung <kcy@codesourcery.com>
14939 * linux-x86-low.c (small_jump_insn): New.
14940 (i386_install_fast_tracepoint_jump_pad): Add arguments for
14941 trampoline and error message, build a trampoline and issue a small
14942 jump instruction to it.
14943 (x86_install_fast_tracepoint_jump_pad): Add arguments for
14944 trampoline and error message.
14945 (x86_get_min_fast_tracepoint_insn_len): New.
14946 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
14947 * linux-low.h (struct linux_target_ops): Add arguments to
14948 install_fast_tracepoint_jump_pad operation, add new operation.
14949 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
14951 (linux_get_min_fast_tracepoint_insn_len): New function.
14952 (linux_target_op): Add new operation.
14953 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
14954 (gdb_trampoline_buffer_end): Ditto.
14955 (gdb_trampoline_buffer_error): Ditto.
14956 (struct ipa_sym_addresses): Add fields for new IPA variables.
14957 (symbol_list): Add entries for new IPA variables.
14958 (struct tracepoint): Add fields to hold the address range of the
14959 trampoline used by the tracepoint.
14960 (trampoline_buffer_head): New static variable.
14961 (trampoline_buffer_tail): Ditto.
14962 (claim_trampoline_space): New function.
14963 (have_fast_tracepoint_trampoline_buffer): New function.
14964 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
14966 (install_fast_tracepoint): Ditto, also add error buffer argument.
14967 (cmd_qtminftpilen): New function.
14968 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
14969 (fast_tracepoint_from_trampoline_address): New function.
14970 (fast_tracepoint_collecting): Handle trampoline as part of jump
14972 (set_trampoline_buffer_space): New function.
14973 (initialize_tracepoint): Initialize new IPA variables.
14974 * target.h (struct target_ops): Add arguments to
14975 install_fast_tracepoint_jump_pad operation, add new
14976 get_min_fast_tracepoint_insn_len operation.
14977 (target_get_min_fast_tracepoint_insn_len): New.
14978 (install_fast_tracepoint_jump_pad): Add arguments.
14979 * server.h (IPA_BUFSIZ): Define.
14980 * linux-i386-ipa.c: Include extra header files.
14981 (initialize_fast_tracepoint_trampoline_buffer): New function.
14982 (initialize_low_tracepoint): Call it.
14983 * server.h (set_trampoline_buffer_space): Declare.
14984 (claim_trampoline_space): Ditto.
14985 (have_fast_tracepoint_trampoline_buffer): Ditto.
14987 2011-11-14 Yao Qi <yao@codesourcery.com>
14989 * server.c (handle_query): Handle InstallInTrace for qSupported.
14990 * tracepoint.c (add_tracepoint): Sort list.
14991 (install_tracepoint, download_tracepoint): New.
14992 (cmd_qtdp): Call them to install and download tracepoints.
14993 (sort_tracepoints): Removed.
14994 (cmd_qtstart): Update.
14996 2011-11-14 Yao Qi <yao@codesourcery.com>
14998 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
14999 * mem-break.h: Declare.
15000 * tracepoint.c (cmd_qtstart): Move some code to ...
15001 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15003 (download_tracepoints): Move some code to ...
15004 (download_tracepoint_1): ... here. New.
15006 2011-11-08 Yao Qi <yao@codesourcery.com>
15008 * remote-utils.c (relocate_instruction): A comment fix.
15010 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15012 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15013 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15014 dr_status_mirror and dr_control_mirror from debug_reg_state.
15015 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15016 (i386_initial_stuff): Remove use of deleted globals.
15017 (i386_get_thread_context, i386_set_thread_context,
15018 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15019 from debug_reg_state.
15021 2011-11-05 Yao Qi <yao@codesourcery.com>
15023 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15024 address as TPOINT's.
15026 2011-11-02 Stan Shebs <stan@codesourcery.com>
15028 * tracepoint.c (agent_mem_read_string): New function.
15029 (eval_agent_expr): Call it for tracenz.
15030 * server.c (handle_query): Report support for tracenz.
15032 2011-11-02 Yao Qi <yao@codesourcery.com>
15034 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15036 2011-11-02 Yao Qi <yao@codesourcery.com>
15038 * target.h: Fix a typo in comment.
15040 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15042 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15043 clobber the breakpoints' shadows with fast tracepoint jumps.
15044 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15045 * target.c (write_inferior_memory): Also pass MYADDR down to
15048 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15050 * configure.ac: Check support for personality routine.
15051 * configure: Regenerate.
15052 * config.in: Likewise.
15053 * linux-low.c: Include <sys/personality.h>.
15054 Define ADDR_NO_RANDOMIZE if necessary.
15055 (linux_create_inferior): Disable address space randomization when
15056 forking inferior, if requested.
15057 (linux_supports_disable_randomization): New function.
15058 (linux_target_ops): Install it.
15059 * server.h (disable_randomization): Declare.
15060 * server.c (disable_randomization): New global variable.
15061 (handle_general_set): Handle QDisableRandomization.
15062 (handle_query): Likewise for qSupported.
15063 (main): Support --disable-randomization and --no-disable-randomization
15064 command line arguments.
15065 * target.h (struct target_ops): Add supports_disable_randomization.
15066 (target_supports_disable_randomization): New macro.
15068 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15070 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15072 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15073 [!PT_GETDSBT] (target_loadmap): New definition.
15074 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15075 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15076 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15077 and PT_GETDSBT to LINUX_LOADMAP.
15078 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15079 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15081 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15083 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15084 (arm_linux_hwbp_cap): New static variable.
15085 (arm_linux_get_hwbp_cap): Replace by ...
15086 (arm_linux_init_hwbp_cap): ... this new function.
15087 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15088 (arm_linux_get_hw_watchpoint_count): Likewise.
15089 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15090 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15091 (arm_prepare_to_resume): Use perror_with_name instead of error.
15093 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15095 * linux-arm-low.c: Include <signal.h>.
15096 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15097 (struct arm_linux_hwbp_cap): New data type.
15098 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15099 (struct arm_linux_hw_breakpoint): New data type.
15100 (MAX_BPTS, MAX_WPTS): Define.
15101 (struct arch_process_info, struct arch_lwp_info): New data types.
15102 (arm_linux_get_hwbp_cap): New function.
15103 (arm_linux_get_hw_breakpoint_count): Likewise.
15104 (arm_linux_get_hw_watchpoint_count): Likewise.
15105 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15106 (arm_hwbp_control_initialize): Likewise.
15107 (arm_hwbp_control_is_enabled): Likewise.
15108 (arm_hwbp_control_is_initialized): Likewise.
15109 (arm_hwbp_control_disable): Likewise.
15110 (arm_linux_hw_breakpoint_equal): Likewise.
15111 (arm_linux_hw_point_initialize): Likewise.
15112 (struct update_registers_data): New data structure.
15113 (update_registers_callback: New function.
15114 (arm_insert_point): Likewise.
15115 (arm_remove_point): Likewise.
15116 (arm_stopped_by_watchpoint): Likewise.
15117 (arm_stopped_data_address): Likewise.
15118 (arm_new_process): Likewise.
15119 (arm_new_thread): Likewise.
15120 (arm_prepare_to_resume): Likewise.
15121 (the_low_target): Register arm_insert_point, arm_remove_point,
15122 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15123 arm_new_thread, and arm_prepare_to_resume.
15125 2011-09-15 Stan Shebs <stan@codesourcery.com>
15127 * server.h (struct emit_ops): Add compare-goto fields.
15128 * tracepoint.c (gdb_agent_op_sizes): New table.
15129 (emit_eq_goto): New function.
15130 (emit_ne_goto): New function.
15131 (emit_lt_goto): New function.
15132 (emit_le_goto): New function.
15133 (emit_gt_goto): New function.
15134 (emit_ge_goto): New function.
15135 (is_goto_target): New function.
15136 (compile_bytecodes): Recognize special cases of compare-goto
15137 combinations and call specialized emitters for them.
15138 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15139 (amd64_emit_ne_goto): New function.
15140 (amd64_emit_lt_goto): New function.
15141 (amd64_emit_le_goto): New function.
15142 (amd64_emit_gt_goto): New function.
15143 (amd64_emit_ge_goto): New function.
15144 (amd64_emit_ops): Add the new functions.
15145 (i386_emit_eq_goto): New function.
15146 (i386_emit_ne_goto): New function.
15147 (i386_emit_lt_goto): New function.
15148 (i386_emit_le_goto): New function.
15149 (i386_emit_gt_goto): New function.
15150 (i386_emit_ge_goto): New function.
15151 (i386_emit_ops): Add the new functions.
15153 2011-09-08 Stan Shebs <stan@codesourcery.com>
15155 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15156 (i386_emit_epilogue): Restore %ebx.
15158 2011-08-31 Jie Zhang <jzhang918@gmail.com>
15160 * server.c (step_thread): Remove definition.
15161 (process_serial_event): Don't handle Hs.
15162 * server.h (step_thread): Remove declaration.
15163 * target.c (set_desired_inferior): Remove use of step_thread.
15165 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15167 * linux-low.c: Include linux-procfs.h.
15168 (linux_attach_lwp_1): Update comments.
15169 (linux_attach): Scan for existing threads when attaching to a
15170 process that is the tgid.
15171 * Makefile.in: Update dependencies.
15173 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15175 * configure.srv: Add linux-procfs.o dependencies.
15177 2011-08-14 Yao Qi <yao@codesourcery.com>
15179 * target.h (struct target_ops): Fix indent.
15180 * win32-low.c (win32_target_ops): Fix comment.
15182 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
15183 Yao Qi <yao@codesourcery.com>
15185 * Makefile.in (clean): Remove tic6x-*.c files.
15186 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15187 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15188 (tic6x-c64xp-linux.c): Likewise.
15189 * configure.srv: Add support for tic6x-*-uclinux.
15190 * linux-tic6x-low.c: New.
15191 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15193 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
15194 Yao Qi <yao@codesourcery.com>
15196 * target.h (struct target_ops): Add read_loadmap.
15197 * linux-low.c (struct target_loadseg): New type.
15198 (struct target_loadmap): New type.
15199 (linux_read_loadmap): New function.
15200 (linux_target_ops): Add linux_read_loadmap.
15201 * server.c (handle_query): Support qXfer:fdpic:read packet.
15202 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15205 2011-08-05 Eli Zaretskii <eliz@gnu.org>
15207 * win32-low.c: Include <stdint.h>.
15209 2011-07-22 Pedro Alves <pedro@codesourcery.com>
15211 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15212 to the inferior here.
15213 (i386_remove_aligned_watchpoint): Ditto.
15214 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15215 fit part of the watchpoint in the debug registers.
15216 (i386_update_inferior_debug_regs): New.
15217 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15218 registers, and only update the inferior on success.
15219 (i386_low_remove_watchpoint): Ditto.
15221 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15223 * linux-low.c (compare_ints, unique, list_threads, show_process,
15224 linux_core_of_thread): Delete.
15225 (linux_target_ops): Change linux_core_of_thread to
15226 linux_common_core_of_thread.
15227 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15228 * utils.c (malloc_failure): Change type of argument.
15229 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15230 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15231 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15232 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15233 (IPA_OBJS): Add common-utils-ipa.o.
15234 (ptid_h, linux_osdata_h): New macros.
15235 (server_h): Add common/common-utils.h, common/xml-utils.h,
15236 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15238 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15239 ptid.o, buffer.o): New rules.
15240 (linux-low.o): Add common/linux-osdata.h as a dependency.
15241 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15242 * configure.ac: Add AC_HEADER_DIRENT check.
15243 * config.in: Regenerate.
15244 * configure: Regenerate.
15245 * remote-utils.c (xml_escape_text): Delete.
15246 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15247 buffer_xml_printf): Move to common/buffer.c.
15248 * server.c (main): Remove call to initialize_inferiors.
15249 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15250 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15251 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15252 internal_error, gdb_assert, gdb_assert_fail): Delete.
15253 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15254 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15256 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15257 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15258 initialize_inferiors): Delete.
15260 2011-07-20 Pedro Alves <pedro@codesourcery.com>
15262 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15265 2011-05-31 Pedro Alves <pedro@codesourcery.com>
15267 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15269 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15271 2011-05-26 Yao Qi <yao@codesourcery.com>
15273 * Makefile.in (thread-db.o): Track dependence to
15274 common/gdb_thread_db.h.
15275 * thread-db.c: include gdb_thread_db.h from right place.
15277 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15279 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15280 __FILE__ and __LINE__ to internal_error.
15282 2011-05-13 Doug Evans <dje@google.com>
15284 * thread-db.c (try_thread_db_load_from_sdir): New function.
15285 (try_thread_db_load_from_dir): New function.
15286 (thread_db_load_search): Handle $sdir, ignore $pdir.
15287 Remove trying of system directories if search of
15288 libthread-db-search-path fails, that is now done via $sdir.
15290 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15292 * server.c (handle_query): Add EnableDisableTracepoints to the list
15293 of supported features.
15294 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
15296 (cmd_qtenable_disable): New.
15297 (cmd_qtstart): Install tracepoints even if disabled.
15298 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15299 receiving a QTEnable or QTDisable packet.
15300 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15301 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15303 (gdb_probe): Skip data collection if static tracepoint is disabled.
15305 2011-05-10 Doug Evans <dje@google.com>
15307 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15309 2011-05-04 Doug Evans <dje@google.com>
15311 * linux-low.c (linux_join): Skip process lookup.
15312 * spu-low.c (spu_join): Ditto.
15313 * server.c (join_inferiors_callback): Delete.
15314 (process_serial_event): For 'D' packet (detach) call join_inferior
15317 2011-05-04 Joseph Myers <joseph@codesourcery.com>
15319 * README: Don't mention xscale*-*-linux*.
15320 * configure.srv (xscale*-*-linux*): Don't handle target.
15322 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15324 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15326 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15327 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15328 (i386_emit_void_call_2): Likewise.
15330 2011-04-26 Yao Qi <yao@codesourcery.com>
15332 * linux-low.c: Move common macros to linux-ptrace.h.
15333 Include linux-ptrace.h.
15334 * Makefile.in (linux_ptrace_h): New.
15335 (linux-low.o): Depends on linux-ptrace.h.
15337 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15339 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15340 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15341 (remote_prepare): New function with most of the TCP code from ...
15342 (remote_open): ... here. Detect PORT here unconditionally. Move also
15343 setting transport_is_reliable.
15344 * server.c (run_once): New variable.
15345 (gdbserver_usage): Document it.
15346 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15347 the first run if RUN_ONCE.
15348 * server.h (run_once, remote_prepare): New declarations.
15350 2011-04-19 Tom Tromey <tromey@redhat.com>
15352 * win32-low.c (handle_load_dll): Remove duplicate "the".
15354 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15356 Remove support for old Cygwin 1.5 versions.
15357 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15358 function to avoid warning.
15359 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15362 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15364 * gdbserver/server.h (Macro _): Define it if not available.
15366 2011-03-14 Michael Snyder <msnyder@vmware.com>
15368 * hostio.c (handle_close): Remove unnecessary null test.
15370 2011-03-10 Joel Brobecker <brobecker@adacore.com>
15372 * Makefile.in (maintainer-clean realclean distclean): Remove
15373 "make ... subdir_do" command.
15375 2011-03-10 Michael Snyder <msnyder@vmware.com>
15377 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
15379 * server.c (handle_v_run): Free alloced buffer on early return.
15381 2011-03-09 Yao Qi <yao@codesourcery.com>
15384 2011-03-04 Yao Qi <yao@codesourcery.com>
15386 * Makefile.in: Remove GNU make feature --directory.
15388 2011-03-05 Yao Qi <yao@codesourcery.com>
15390 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15391 (subdir_do): New make target. Copied from gdb/Makefile.
15392 (maintainer-clean, realclean, distclean, clean): Call corresponding
15393 make targets in common/Makefile.
15395 2011-02-11 Yao Qi <yao@codesourcery.com>
15397 * configure.ac: Call AC_PROG_RANLIB.
15398 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15399 * configure: Regenerate.
15401 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15403 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
15405 2011-03-06 Yao Qi <yao@codesourcery.com>
15407 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
15409 2011-03-05 Yao Qi <yao@codesourcery.com>
15411 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15412 (subdir_do): New make target. Copied from gdb/Makefile.
15413 (maintainer-clean, realclean, distclean, clean): Call corresponding
15414 make targets in common/Makefile.
15416 2011-03-04 Yao Qi <yao@codesourcery.com>
15418 * Makefile.in: Remove GNU make feature --directory.
15420 2011-03-04 Michael Snyder <msnyder@vmware.com>
15422 * server.c (queue_stop_reply): Call xmalloc not malloc.
15424 2011-03-02 Michael Snyder <msnyder@vmware.com>
15426 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
15428 2011-02-28 Michael Snyder <msnyder@vmware.com>
15430 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
15431 (cmd_qtframe): Ditto.
15432 (cmd_qtbuffer): Ditto.
15433 (cmd_bigqtbuffer): Ditto.
15435 * utils.c (decimal2str): Initialize 'width' to nine, then
15436 don't mess with it.
15438 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15440 * hostio.c (require_data): Free *data, not data.
15442 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15444 * hostio.c (require_data): Use free, not xfree.
15446 2011-02-27 Michael Snyder <msnyder@vmware.com>
15448 * server.c (handle_query): Discard unused value.
15450 * hostio.c (require_data): Free malloc memory before returning
15453 2011-02-26 Michael Snyder <msnyder@vmware.com>
15455 * linux-low.c (list_threads): Call closedir for dirent.
15457 2011-02-27 Michael Snyder <msnyder@vmware.com>
15459 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
15460 a case statement falls through.
15462 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
15464 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
15467 2011-02-26 Michael Snyder <msnyder@vmware.com>
15469 * utils.c (decimal2str): Eliminate dead code and dead param.
15470 (pulongest): Drop dead param from call to decimal2str.
15473 2011-02-24 Joel Brobecker <brobecker@adacore.com>
15475 Revert the following patch (not approved yet):
15476 2011-02-21 Hui Zhu <teawater@gmail.com>
15477 * tracepoint.c (tp_printf): New function.
15478 (eval_agent_expr): Handle gdb_agent_op_printf.
15480 2011-02-21 Hui Zhu <teawater@gmail.com>
15482 * tracepoint.c (tp_printf): New function.
15483 (eval_agent_expr): Handle gdb_agent_op_printf.
15485 2011-02-18 Tom Tromey <tromey@redhat.com>
15487 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
15488 (tracepoint.o): Likewise.
15489 * tracepoint.c (enum gdb_agent_op): Use ax.def.
15490 (gdb_agent_op_names): Likewise.
15492 2011-02-18 Tom Tromey <tromey@redhat.com>
15494 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
15495 gdb_agent_op_rot>: New constants.
15496 (gdb_agent_op_names): Add pick and roll.
15497 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
15500 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15502 * aclocal.m4: Regenerated with aclocal-1.11.1.
15504 2011-02-14 Pedro Alves <pedro@codesourcery.com>
15506 * server.c (handle_qxfer_traceframe_info): New.
15507 (qxfer_packets): Register "traceframe-info".
15508 (handle_query): Report support for qXfer:traceframe-info:read+.
15509 * tracepoint.c (match_blocktype): New.
15510 (traceframe_find_block_type): Rename to ...
15511 (traceframe_walk_blocks): ... this. Add callback filter argument,
15513 (traceframe_find_block_type): New, reimplemented on top of
15514 traceframe_walk_blocks.
15515 (build_traceframe_info_xml): New.
15516 (traceframe_read_info): New.
15517 * server.h (traceframe_read_info): Declare.
15519 2011-02-11 Yao Qi <yao@codesourcery.com>
15521 * configure.ac: Call AC_PROG_RANLIB.
15522 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15523 * configure: Regenerate.
15525 2011-02-07 Pedro Alves <pedro@codesourcery.com>
15527 * server.c (gdb_read_memory): Change return semantics to allow
15529 (handle_search_memory_1): Adjust.
15530 (process_serial_event) <'m' packet>: Handle partial transfers.
15531 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
15533 2011-01-28 Pedro Alves <pedro@codesourcery.com>
15535 * regcache.c (init_register_cache): Initialize
15536 regcache->register_status.
15537 (free_register_cache): Release regcache->register_status.
15538 (regcache_cpy): Copy register_status.
15539 (registers_to_string): Print 'x's for unavailable registers.
15540 (supply_register): Mark the register's status valid or
15541 unavailable, depending on whether a buffer was passed in or not.
15542 (supply_register_zeroed): New.
15543 (supply_regblock): Mark the registers' status valid or
15544 unavailable, depending on whether a buffer was passed in or not.
15545 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
15546 (struct regcache): New `register_status' field.
15547 (supply_register_zeroed): Declare.
15548 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
15549 supply_register_zeroed, rather than passing a NULL buffer to
15551 * tracepoint.c (fetch_traceframe_registers): Update comment.
15553 2011-01-28 Pedro Alves <pedro@codesourcery.com>
15555 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
15558 2011-01-25 Pedro Alves <pedro@codesourcery.com>
15560 * server.h (decode_xfer_write): Change prototype.
15561 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
15562 and don't extract the annex here.
15563 * server.c (decode_xfer_read): Remove `annex' parameter,
15564 and don't extract the annex here.
15565 (decode_xfer): New.
15566 (struct qxfer): New.
15567 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
15568 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
15569 (handle_qxfer_statictrace): New functions, abstracted out from
15570 handle_query, and made to use the struct qxfer interface.
15571 (handle_threads_qxfer_proper): Rename to ...
15572 (handle_qxfer_threads_proper): ... this.
15573 (handle_threads_qxfer): Rename to ...
15574 (handle_qxfer_threads): ... this. Adjust.
15575 (qxfer_packets): New array.
15576 (handle_qxfer): New function.
15577 (handle_query): Use handle_qxfer.
15579 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
15581 * gdbreplay.c: Shorten lines of >= 80 columns.
15582 * linux-low.c: Ditto.
15583 * linux-ppc-low.c: Ditto.
15584 * linux-s390-low.c: Ditto.
15585 * linux-sparc-low.c: Ditto.
15586 * linux-x86-low.c: Ditto.
15587 * linux-xtensa-low.c: Ditto.
15588 * mem-break.c: Ditto.
15589 * nto-low.c: Ditto.
15590 * regcache.h: Ditto.
15591 * remote-utils.c: Ditto.
15594 * thread-db.c: Ditto.
15595 * tracepoint.c: Ditto.
15597 * win32-low.h: Ditto.
15599 2011-01-05 Joel Brobecker <brobecker@adacore.com>
15601 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
15604 2011-01-01 Joel Brobecker <brobecker@adacore.com>
15606 * server.c (gdbserver_version): Update copyright year in version
15608 * gdbreplay.c (gdbreplay_version): Ditto.
15610 2010-12-29 Jie Zhang <jie.zhang@analog.com>
15612 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
15613 * linux-bfin-low.c: New file.
15614 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
15615 PT_DATA_ADDR for BFIN targets.
15616 * Makefile.in (SFILES): Add linux-bfin-low.c.
15617 (clean): Remove reg-bfin.c.
15618 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
15619 * README: Mention supported Blackfin targets.
15621 2010-12-23 Mike Frysinger <vapier@gentoo.org>
15623 * .gitignore: New file.
15625 2010-11-16 Mike Frysinger <vapier@gentoo.org>
15627 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
15629 2010-10-22 Jie Zhang <jie@codesourcery.com>
15631 * Makefile.in: Add FLAGS_TO_PASS variable.
15632 (install): Remove dependency of install-only and recursively
15633 invoke make for install-only.
15635 2010-10-04 Doug Evans <dje@google.com>
15637 * Makefile.in (uninstall): Use $(DESTDIR).
15639 2010-09-24 Pedro Alves <pedro@codesourcery.com>
15643 * linux-x86-low.c (compat_siginfo_from_siginfo)
15644 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
15645 si_code is < 0. Check for si_code == SI_TIMER before checking for
15648 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15650 * lynx-i386-low.c: New file.
15651 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
15653 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15655 * lynx-low.c (ptrace_request_to_str): Remove handling for
15656 request values that have been removed in LynxOS 5.x.
15658 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15660 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
15663 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
15665 * configure.ac: Add --enable-inprocess-agent option.
15666 * configure: Rebuilt.
15668 2010-09-06 Yao Qi <yao@codesourcery.com>
15670 * linux-low.c (linux_kill): Remove unused variable.
15671 (linux_stabilize_threads): Likewise.
15672 * server.c (start_inferior): Likewise.
15673 (queue_stop_reply_callback): Likewise.
15674 * tracepoint.c (do_action_at_tracepoint): Likewise.
15676 2010-09-06 Yao Qi <yao@codesourcery.com>
15678 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
15681 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15683 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
15685 2010-09-06 Pedro Alves <pedro@codesourcery.com>
15687 * Makefile.in (install-only): Replace $IPA_DEPFILES with
15690 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15692 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
15693 gdbserver/lynx-ppc-low.c: New files.
15694 * Makefile.in (lynx_low_h): New variable.
15695 (lynx-low.o, lynx-ppc-low.o): New rules.
15696 * configure.ac: On LynxOS, link with -lnetinet.
15697 * configure.srv: Add handling of powerpc-*-lynxos* targets.
15698 * configure: regenerate.
15700 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15702 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
15703 * configure.ac: Add check for vasprintf and vsnprintf.
15704 * configure, config.in: Regenerate.
15705 * server.h (vasprintf, vsnprintf): Add conditional declarations.
15707 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15709 * gdbreplay.c: Move include of alloca.h up, next to include of
15711 * server.h: Add include of malloc.h.
15712 * mem-break.c: Remove include of malloc.h.
15713 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
15715 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15717 * Makefile.in (memmem.o): Build with -Wno-error.
15719 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15721 * utils.c (xsnprintf): Make non-static.
15722 * server.h: Add xsnprintf declaration.
15723 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
15724 replace calls to snprintf by calls to xsnprintf throughout.
15726 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15728 * configure.ac: Add configure check for alloca.
15729 * configure, config.in: Regenerate.
15730 * server.h: Include alloca.h if it exists.
15731 * gdbreplay.c: Include alloca.h if it exists.
15733 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15735 * linux-low.c (__SIGRTMIN): Define if not already defined.
15736 (linux_create_inferior): Check for __ANDROID__ rather than
15738 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
15739 are already deferred.
15740 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
15741 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
15742 stopped and already has a pending signal to report.
15743 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
15744 a pending signal to report or is moving out of a jump pad.
15745 (linux_init_signals): Check for __ANDROID__ rather than
15748 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15750 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
15751 debug_threads check. Avoid a linear search when not doing debug
15754 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15756 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
15757 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
15758 (struct file_handler) <fd>: Change type to gdb_fildes_t.
15759 (process_event): Change local fd's type to gdb_fildes_t.
15760 (create_file_handler): Adjust prototype.
15761 (delete_file_handler): Adjust prototype.
15762 (handle_file_event): Adjust prototype. Use pfildes.
15763 (create_file_event): Adjsut prototype.
15764 * remote-utils.c (remote_desc, listen_desc): Change type to
15766 * server.h: New gdb_fildes_t typedef.
15767 [USE_WIN32API]: Include winsock2.h.
15768 (delete_file_handler, add_file_handler): Adjust prototypes.
15769 (pfildes): Declare.
15770 * utils.c (pfildes): New.
15772 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15774 * configure.ac (build_warnings): Add -Wno-char-subscripts.
15775 * configure: Regenerate.
15777 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15779 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
15780 (linux_done_accessing_memory): ... this.
15781 (linux_target_ops): Adjust.
15782 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
15783 * nto-low.c (nto_target_ops): Adjust comment.
15784 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
15785 * spu-low.c (spu_target_ops): Adjust comment.
15786 * target.h (target_ops): Rename unprepare_to_access_memory field
15787 to done_accessing_memory.
15788 (unprepare_to_access_memory): Rename to ...
15789 (done_accessing_memory): ... this.
15791 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15793 * linux-low.c (linux_prepare_to_access_memory): New.
15794 (linux_unprepare_to_access_memory): New.
15795 (linux_target_ops): Install them.
15796 * server.c (read_memory): Rename to ...
15797 (gdb_read_memory): ... this. Use
15798 prepare_to_access_memory/prepare_to_access_memory.
15799 (write_memory): Rename to ...
15800 (gdb_write_memory): ... this. Use
15801 prepare_to_access_memory/prepare_to_access_memory.
15802 (handle_search_memory_1): Adjust.
15803 (process_serial_event): Adjust.
15804 * target.h (struct target_ops): New fields
15805 prepare_to_access_memory and unprepare_to_access_memory.
15806 (prepare_to_access_memory, unprepare_to_access_memory): New.
15807 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
15808 prepare_to_access_memory/prepare_to_access_memory.
15809 * nto-low.c (nto_target_ops): Adjust.
15810 * spu-low.c (spu_target_ops): Adjust.
15811 * win32-low.c (win32_target_ops): Adjust.
15813 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15815 * Makefile.in (WARN_CFLAGS): Get it from configure.
15816 (WERROR_CFLAGS): New.
15817 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
15818 * configure.ac: Introduce --enable-werror, which adds -Werror to
15819 the compiler command line. Enabled by default. Disable with
15820 --disable-werror. Add -Wdeclaration-after-statement
15821 Wpointer-arith and -Wformat-nonliteral to warning flags.
15822 * configure: Regenerate.
15824 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15826 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
15828 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15830 * gdbreplay.c (remote_error): New.
15832 (expect): Use gdbchar. Check for error reading from GDB.
15833 Clarify sync error output.
15834 (play): Check for errors writing to GDB.
15835 * linux-low.c (sigchld_handler): Really ignore `write' errors.
15836 * remote-utils.c (getpkt): Check for errors writing to the remote
15839 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15841 * linux-low.c (linux_wait_1): Move non-debugging code out of
15842 `debug_threads' control.
15844 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15846 * linux-low.c (linux_wait_1): Don't set last_status here.
15847 * server.c (push_event, queue_stop_reply_callback): Assert we're
15848 not pushing a TARGET_WAITKIND_IGNORE event.
15849 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
15850 (myresume, handle_target_event): Set the thread's last_resume_kind
15851 and last_status from the target returned status.
15853 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15857 * linux-x86-low.c (update_debug_registers_callback): New.
15858 (i386_dr_low_set_addr): Use it.
15859 (i386_dr_low_get_addr): New.
15860 (i386_dr_low_set_control): Use update_debug_registers_callback.
15861 (i386_dr_low_get_control): New.
15862 (i386_dr_low_get_status): Adjust.
15863 * linux-low.c (linux_stop_lwp): New.
15864 * linux-low.h (linux_stop_lwp): Declare.
15866 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
15867 argument instead of a i386_debug_reg_state.
15868 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
15869 a i386_debug_reg_state.
15870 (i386_insert_aligned_watchpoint): Adjust.
15871 (i386_remove_aligned_watchpoint): Adjust.
15872 (i386_low_stopped_data_address): Read the debug registers from the
15873 inferior instead of from the mirrors.
15874 * i386-low.h (struct i386_debug_reg_state): Extend comment.
15875 (i386_dr_low_get_addr): Declare.
15876 (i386_dr_low_get_control): Declare.
15877 (i386_dr_low_get_status): Change prototype.
15879 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
15880 (i386_dr_low_get_addr): New.
15881 (i386_dr_low_get_control): New.
15882 (i386_dr_low_get_status): Adjust prototype. Return
15884 (i386_initial_stuff): Clear dr_status_mirror and
15886 (i386_get_thread_context): Adjust.
15887 (i386_set_thread_context): Adjust.
15888 (i386_thread_added): Adjust.
15890 2010-08-24 Pedro Alves <pedro@codesourcery.com>
15892 * linux-low.h (linux_thread_area): Delete declaration.
15894 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
15896 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
15897 after its termination.
15899 2010-08-09 Pedro Alves <pedro@codesourcery.com>
15901 * linux-low.c (gdb_wants_lwp_stopped): Delete.
15902 (gdb_wants_all_stopped): Delete.
15903 (linux_wait_1): Don't call them.
15904 * server.c (handle_v_cont): Tag all threads as want-stopped.
15905 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
15906 stopped as "client-wants-stopped".
15908 2010-07-31 Pedro Alves <pedro@codesourcery.com>
15910 * Makefile.in (signals_h): New.
15911 (server_h): Depend on it.
15912 (server.o): Don't depend on $(signals_def).
15913 (signals.o): Depend on $(signals_def).
15915 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
15917 * Makefile.in (signals_def): New.
15918 (server_h): Append include/gdb/signals.h and signals_def.
15919 (server.o): Append signals_def.
15921 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15923 * server.c (handle_target_event): Use target_signal_to_host for
15924 resume_info.sig initialization.
15925 * target.h (struct thread_resume) <sig>: New comment.
15927 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
15929 * server.c (handle_query): strcpy() the returned string from paddress()
15930 instead of sprintf().
15931 * utils.c (paddress): Return phex_nz().
15933 2010-07-07 Joel Brobecker <brobecker@adacore.com>
15935 * server.c (handle_v_cont): Call mourn_inferior if process
15937 (myresume): Likewise.
15939 2010-07-01 Pedro Alves <pedro@codesourcery.com>
15941 Static tracepoints, and integration with UST.
15943 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
15944 * mem-break.c (uninsert_all_breakpoints)
15945 (reinsert_all_breakpoints): New.
15946 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
15947 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
15948 (gdb_agent_ust_loaded, helper_thread_id)
15949 (gdb_agent_helper_thread_id): New macros.
15950 (struct ipa_sym_addresses): Add addr_ust_loaded,
15951 addr_helper_thread_id, addr_cmd_buf.
15952 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
15953 (in_process_agent_loaded_ust): New.
15954 (write_e_ust_not_loaded): New.
15955 (maybe_write_ipa_ust_not_loaded): New.
15956 (struct collect_static_trace_data_action): New.
15957 (enum tracepoint_type) <static_tracepoint>: New.
15958 (struct tracepoint) <handle>: Mention static tracepoints.
15959 (struct static_tracepoint_ctx): New.
15960 (CMD_BUF_SIZE): New.
15961 (add_tracepoint_action): Handle static tracepoint actions.
15962 (unprobe_marker_at): New.
15963 (clear_installed_tracepoints): Handle static tracepoints.
15964 (cmd_qtdp): Handle static tracepoints.
15965 (probe_marker_at): New.
15966 (cmd_qtstart): Handle static tracepoints.
15967 (response_tracepoint): Handle static tracepoints.
15968 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
15969 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
15970 (get_context_regcache): Handle static tracepoints.
15971 (do_action_at_tracepoint): Handle static tracepoint actions.
15972 (traceframe_find_block_type): Handle static trace data blocks.
15973 (traceframe_read_sdata): New.
15974 (download_tracepoints): Download static tracepoint actions.
15975 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
15976 (GDB_PROBE_NAME): New.
15978 (GET_UST_SYM): New.
15981 (ust_marker_to_static_tracepoint): New.
15983 (collect_ust_data_at_tracepoint): New.
15984 (gdb_ust_probe): New.
15985 (UNIX_PATH_MAX, SOCK_DIR): New.
15986 (gdb_ust_connect_sync_socket): New.
15987 (resume_thread, stop_thread): New.
15988 (run_inferior_command): New.
15989 (init_named_socket): New.
15990 (gdb_ust_socket_init): New.
15991 (cstr_to_hexstr): New.
15993 (first_marker, next_marker): New.
15994 (response_ust_marker): New.
15995 (cmd_qtfstm, cmd_qtsstm): New.
15996 (unprobe_marker_at, probe_marker_at): New.
15997 (cmd_qtstmat, gdb_ust_thread): New.
15998 (gdb_ust_init): New.
15999 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16000 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16001 (ST_REGENTRY): New.
16002 (x86_64_st_collect_regmap): New.
16003 (X86_64_NUM_ST_COLLECT_GREGS): New.
16004 (AMD64_RIP_REGNUM): New.
16005 (supply_static_tracepoint_registers): New.
16006 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16007 (ST_REGENTRY): New.
16008 (i386_st_collect_regmap): New.
16009 (i386_NUM_ST_COLLECT_GREGS): New.
16010 (supply_static_tracepoint_registers): New.
16011 * server.c (handle_query): Handle qXfer:statictrace:read.
16012 <qSupported>: Report support for StaticTracepoints, and
16013 qXfer:statictrace:read features.
16014 * server.h (traceframe_read_sdata)
16015 (supply_static_tracepoint_registers): Declare.
16016 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16017 (unpack_varlen_hex): Include in IPA build.
16018 * Makefile.in (ustlibs, ustinc): New.
16019 (IPA_OBJS): Add remote-utils-ipa.o.
16020 ($(IPA_LIB)): Link -ldl and -lpthread.
16022 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16023 * config.in, configure: Regenerate.
16025 2010-06-20 Ian Lance Taylor <iant@google.com>
16026 Pedro Alves <pedro@codesourcery.com>
16028 * linux-x86-low.c (always_true): Delete.
16029 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16030 trying to fool the compiler with always_true.
16032 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16034 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16035 conditions in gdbserver.
16037 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16039 * spu-low.c (spu_read_memory): Wrap around local store limit.
16040 (spu_write_memory): Likewise.
16042 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16044 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16045 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16047 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16049 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16050 uses with LONGEST uses.
16052 2010-06-14 Stan Shebs <stan@codesourcery.com>
16053 Pedro Alves <pedro@codesourcery.com>
16057 * linux-x86-low.c: Include limits.h.
16059 (always_true): New.
16062 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16063 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16064 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16065 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16066 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16067 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16068 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16069 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16070 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16071 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16072 (amd64_emit_void_call_2): New.
16073 (amd64_emit_ops): New.
16074 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16075 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16076 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16077 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16078 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16079 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16080 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16081 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16082 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16083 (i386_emit_stack_adjust, i386_emit_int_call_1)
16084 (i386_emit_void_call_2): New.
16085 (i386_emit_ops): New.
16086 (x86_emit_ops): New.
16087 (the_low_target): Install x86_emit_ops.
16088 * server.h (struct emit_ops): New.
16089 (get_raw_reg_func_addr): Declare.
16090 (current_insn_ptr, emit_error): Declare.
16091 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16092 (set_trace_state_variable_value): New defines.
16093 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16094 addr_get_trace_state_variable_value and
16095 addr_set_trace_state_variable_value.
16096 (symbol_list): New fields for get_raw_reg,
16097 get_trace_state_variable_value and set_trace_state_variable_value.
16098 (condfn): New typedef.
16099 (struct tracepoint): New field `compiled_cond'.
16100 (do_action_at_tracepoint): Clear compiled_cond.
16101 (get_trace_state_variable_value, set_trace_state_variable_value):
16103 (condition_true_at_tracepoint): If there's a compiled condition,
16105 (current_insn_ptr, emit_error): New globals.
16106 (struct bytecode_address): New.
16107 (get_raw_reg_func_addr): New.
16108 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16109 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16110 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16111 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16112 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16113 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16114 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16115 (compile_tracepoint_condition, compile_bytecodes): New.
16116 * target.h (emit_ops): Forward declare.
16117 (struct target_ops): New field emit_ops.
16118 (target_emit_ops): New.
16119 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16120 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16121 * linux-low.c (linux_emit_ops): New.
16122 (linux_target_ops): Install it.
16123 * linux-low.h (struct linux_target_ops): New field emit_ops.
16125 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16127 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16128 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16130 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16131 Stan Shebs <stan@codesourcery.com>
16133 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16134 (all): Depend on $(extra_libraries).
16135 (install-only): Install the IPA.
16136 (IPA_OBJS, IPA_LIB): New.
16137 (clean): Remove the IPA lib.
16138 (IPAGENT_CFLAGS): New.
16139 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16140 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16141 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16142 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16143 * configure.ac: Check for atomic builtins support in the compiler.
16144 (IPA_DEPFILES, extra_libraries): Define.
16145 * configure.srv (ipa_obj): Add description.
16146 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16147 (i[34567]86-*-linux*): Set ipa_obj.
16148 (x86_64-*-linux*): Set ipa_obj.
16149 * linux-low.c (stabilizing_threads): New.
16150 (supports_fast_tracepoints): New.
16151 (linux_detach): Stabilize threads before detaching.
16152 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16153 the lwp is either not stabilizing, or is moving out of a jump pad.
16154 (linux_fast_tracepoint_collecting): New.
16155 (maybe_move_out_of_jump_pad): New.
16156 (enqueue_one_deferred_signal): New.
16157 (dequeue_one_deferred_signal): New.
16158 (linux_wait_for_event_1): If moving out of a jump pad, defer
16159 pending signals to later.
16160 (linux_stabilize_threads): New.
16161 (linux_wait_1): Check if threads need moving out of jump pads, and
16163 (stuck_in_jump_pad_callback): New.
16164 (move_out_of_jump_pad_callback): New.
16165 (lwp_running): New.
16166 (linux_resume_one_lwp): Handle moving out of jump pads.
16167 (linux_set_resume_request): Dequeue deferred signals.
16168 (need_step_over_p): Also step over fast tracepoint jumps.
16169 (start_step_over): Also uninsert fast tracepoint jumps.
16170 (finish_step_over): Also reinsert fast tracepoint jumps.
16171 (linux_install_fast_tracepoint_jump): New.
16172 (linux_target_ops): Install linux_stabilize_threads and
16173 linux_install_fast_tracepoint_jump_pad.
16174 * linux-low.h (linux_target_ops) <get_thread_area,
16175 install_fast_tracepoint_jump_pad>: New fields.
16176 (struct lwp_info) <collecting_fast_tracepoint,
16177 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16178 (linux_get_thread_area): Declare.
16179 * linux-x86-low.c (jump_insn): New.
16180 (x86_get_thread_area): New.
16181 (append_insns): New.
16182 (push_opcode): New.
16183 (amd64_install_fast_tracepoint_jump_pad): New.
16184 (i386_install_fast_tracepoint_jump_pad): New.
16185 (x86_install_fast_tracepoint_jump_pad): New.
16186 (the_low_target): Install x86_get_thread_area and
16187 x86_install_fast_tracepoint_jump_pad.
16188 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16189 (struct fast_tracepoint_jump): New.
16190 (fast_tracepoint_jump_insn): New.
16191 (fast_tracepoint_jump_shadow): New.
16192 (find_fast_tracepoint_jump_at): New.
16193 (fast_tracepoint_jump_here): New.
16194 (delete_fast_tracepoint_jump): New.
16195 (set_fast_tracepoint_jump): New.
16196 (uninsert_fast_tracepoint_jumps_at): New.
16197 (reinsert_fast_tracepoint_jumps_at): New.
16198 (set_breakpoint_at): Use write_inferior_memory.
16199 (uninsert_raw_breakpoint): Use write_inferior_memory.
16200 (check_mem_read): Mask out fast tracepoint jumps.
16201 (check_mem_write): Mask out fast tracepoint jumps.
16202 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16203 (set_fast_tracepoint_jump): Declare.
16204 (delete_fast_tracepoint_jump)
16205 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
16206 (reinsert_fast_tracepoint_jumps_at): Declare.
16207 * regcache.c: Don't compile many functions when building the
16208 in-process agent library.
16209 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16210 the register buffer in the heap.
16211 (free_register_cache): If the register buffer isn't owned by the
16212 regcache, don't free it.
16213 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16214 pre-existing register caches.
16215 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16217 (convert_ascii_to_int): : Constify `from' parameter type.
16218 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16219 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16220 the needed buffer in-place.
16221 (relocate_instruction): New.
16222 * server.c (handle_query) <qSymbols>: If the target supports
16223 tracepoints, give it a chance of looking up symbols. Report
16224 support for fast tracepoints.
16225 (handle_status): Stabilize threads.
16226 (process_serial_event): Adjust.
16227 * server.h (struct fast_tracepoint_jump): Forward declare.
16228 (struct process_info) <fast_tracepoint_jumps>: New field.
16229 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16230 (decode_X_packet, decode_M_packet): Adjust.
16231 (relocate_instruction): Declare.
16232 (in_process_agent_loaded): Declare.
16233 (tracepoint_look_up_symbols): Declare.
16234 (struct fast_tpoint_collect_status): Declare.
16235 (fast_tracepoint_collecting): Declare.
16236 (force_unlock_trace_buffer): Declare.
16237 (handle_tracepoint_bkpts): Declare.
16238 (initialize_low_tracepoint)
16239 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16240 * target.h (struct target_ops) <stabilize_threads,
16241 install_fast_tracepoint_jump_pad>: New fields.
16242 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16243 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16244 [HAVE_STDINT_H]: Include stdint.h.
16245 (trace_debug_1): Rename to ...
16246 (trace_vdebug): ... this.
16247 (trace_debug): Rename to ...
16248 (trace_debug_1): ... this. Add `level' parameter.
16249 (trace_debug): New.
16250 (ATTR_USED, ATTR_NOINLINE): New.
16251 (IP_AGENT_EXPORT): New.
16252 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16253 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16254 (about_to_request_buffer_space, trace_buffer_is_full)
16255 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16256 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16257 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16258 (traceframe_write_count, traceframes_created)
16259 (trace_state_variables)
16260 New renaming defines.
16261 (struct ipa_sym_addresses): New.
16262 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16263 (symbol_list): New.
16264 (ipa_sym_addrs): New.
16265 (all_tracepoint_symbols_looked_up): New.
16266 (in_process_agent_loaded): New.
16267 (write_e_ipa_not_loaded): New.
16268 (maybe_write_ipa_not_loaded): New.
16269 (tracepoint_look_up_symbols): New.
16270 (debug_threads) [IN_PROCESS_AGENT]: New.
16271 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16272 (UNKNOWN_SIDE_EFFECTS): New.
16273 (stop_tracing): New.
16274 (flush_trace_buffer): New.
16275 (stop_tracing_bkpt): New.
16276 (flush_trace_buffer_bkpt): New.
16277 (read_inferior_integer): New.
16278 (read_inferior_uinteger): New.
16279 (read_inferior_data_pointer): New.
16280 (write_inferior_data_pointer): New.
16281 (write_inferior_integer): New.
16282 (write_inferior_uinteger): New.
16283 (struct collect_static_trace_data_action): Delete.
16284 (enum tracepoint_type): New.
16285 (struct tracepoint) <type>: New field `type'.
16286 <actions_str, step_actions, step_actions_str>: Only include in
16288 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16289 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16290 (tracepoints): Use IP_AGENT_EXPORT.
16291 (last_tracepoint): Don't include in the IPA.
16292 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16293 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16294 (alloced_trace_state_variables): New.
16295 (trace_state_variables): Use IP_AGENT_EXPORT.
16296 (traceframe_t): Delete unused variable.
16297 (circular_trace_buffer): Don't include in the IPA.
16298 (trace_buffer_start): Delete.
16299 (struct trace_buffer_control): New.
16300 (trace_buffer_free): Delete.
16301 (struct ipa_trace_buffer_control): New.
16302 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16303 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16305 (trace_buffer_ctrl): New.
16306 (TRACE_BUFFER_CTRL_CURR): New.
16307 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16308 Reimplement as macros.
16309 (trace_buffer_wrap): Delete.
16310 (traceframe_write_count, traceframe_read_count)
16311 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16312 (struct tracepoint_hit_ctx) <type>: New field.
16313 (struct fast_tracepoint_ctx): New.
16314 (memory_barrier): New.
16316 (record_tracepoint_error): Update atomically in the IPA.
16317 (clear_inferior_trace_buffer): New.
16318 (about_to_request_buffer_space): New.
16319 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16320 updating the same buffer.
16321 (add_tracepoint): Default the tracepoint's type to trap
16322 tracepoint, and orig_size to -1.
16323 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16324 internal variables.
16325 (create_trace_state_variable): New parameter `gdb'. Handle it.
16326 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16327 (cmd_qtdp): Handle fast tracepoints.
16328 (cmd_qtdv): Adjust.
16329 (max_jump_pad_size): New.
16330 (gdb_jump_pad_head): New.
16331 (get_jump_space_head): New.
16332 (claim_jump_space): New.
16333 (sort_tracepoints): New.
16334 (MAX_JUMP_SIZE): New.
16335 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16337 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16338 support. Upload fast traceframes, and delete internal IPA
16340 (stop_tracing_handler): New.
16341 (flush_trace_buffer_handler): New.
16342 (cmd_qtstop): Upload fast tracepoints.
16343 (response_tracepoint): Handle fast tracepoints.
16344 (tracepoint_finished_step): Upload fast traceframes. Set the
16345 tracepoint hit context's tracepoint type.
16346 (handle_tracepoint_bkpts): New.
16347 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16348 type. Add comment about fast tracepoints.
16349 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16350 non-existing action_str field.
16351 (get_context_regcache): Handle fast tracepoints.
16352 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16354 (fast_tracepoint_from_jump_pad_address): New.
16355 (fast_tracepoint_from_ipa_tpoint_address): New.
16356 (collecting_t): New.
16357 (force_unlock_trace_buffer): New.
16358 (fast_tracepoint_collecting): New.
16360 (gdb_collect): New.
16361 (write_inferior_data_ptr): New.
16362 (target_tp_heap): New.
16363 (target_malloc): New.
16364 (download_agent_expr): New.
16366 (download_tracepoints): New.
16367 (download_trace_state_variables): New.
16368 (upload_fast_traceframes): New.
16369 (IPA_FIRST_TRACEFRAME): New.
16370 (IPA_NEXT_TRACEFRAME_1): New.
16371 (IPA_NEXT_TRACEFRAME): New.
16372 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
16373 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
16374 (gdb_jump_pad_buffer_end): New.
16375 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
16376 (initialize_tracepoint): Adjust.
16377 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
16378 buffer. Initialize the low module.
16379 * utils.c (PREFIX, TOOLNAME): New.
16380 (malloc_failure): Use PREFIX.
16381 (error): In the IPA, an error causes an exit.
16382 (fatal, warning): Use PREFIX.
16383 (internal_error): Use TOOLNAME.
16384 (NUMCELLS): Increase to 10.
16385 * configure, config.in: Regenerate.
16387 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16389 * server.c (handle_query) <qSupported>: Do two passes over the
16390 qSupported string to avoid nesting strtok.
16392 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16394 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
16396 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
16397 -Wl,--dynamic-list.
16398 * configure: Regenerate.
16399 * proc-service.list: New.
16401 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16403 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
16406 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
16408 * gdbreplay.c (remote_open): Check error return from socket() call by
16409 its equality to -1 not by it being negative.
16410 * remote-utils.c (remote_open): Likewise.
16412 2010-05-23 Pedro Alves <pedro@codesourcery.com>
16414 * config.h: Regenerate.
16416 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16418 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
16419 doesn't provide PTRACE_GET_THREAD_AREA.
16421 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16423 * linux-m68k-low.c: Include <asm/ptrace.h>
16424 (ps_get_thread_area): Implement.
16426 2010-05-03 Doug Evans <dje@google.com>
16428 * event-loop.c (struct callback_event): New struct.
16429 (callback_list): New global.
16430 (append_callback_event, delete_callback_event): New functions.
16431 (process_callback): New function.
16432 (start_event_loop): Call it.
16433 * remote-utils.c (NOT_SCHEDULED): Define.
16434 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
16435 moved out of readchar.
16436 (readchar): Rewrite. Call reschedule before returning.
16437 (reset_readchar): New function.
16438 (remote_close): Call it.
16439 (process_remaining, reschedule): New functions.
16440 * server.h (callback_handler_func): New typedef.
16441 (append_callback_event, delete_callback_event): Declare.
16443 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16445 * proc-service.c (ps_pglobal_lookup): Use
16446 thread_db_look_up_one_symbol.
16447 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
16448 parameter. Use it instead of all_symbols_looked_up.
16449 * server.h (struct process_info) <all_symbols_looked_up>: Delete
16451 (all_symbols_looked_up): Don't declare.
16452 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
16453 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
16455 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
16456 Set all_symbols_looked_up here.
16457 (thread_db_look_up_one_symbol): New.
16458 (thread_db_get_tls_address): Adjust.
16459 (thread_db_load_search, try_thread_db_load_1): Always allocate the
16460 thread_db object on the heap, and tentatively set it in the
16462 (thread_db_init): Don't set all_symbols_looked_up here.
16463 * linux-low.h (thread_db_look_up_one_symbol): Declare.
16465 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16467 * linux-low.c (linux_kill, linux_detach): Adjust.
16468 (status_pending_p_callback): Remove redundant statement. Check
16469 for !TARGET_WAITIKIND_IGNORE, instead of
16470 TARGET_WAITKIND_STOPPED.
16471 (handle_tracepoints): Make sure LWP is locked. Adjust.
16472 (linux_wait_for_event_1): Adjust.
16473 (linux_cancel_breakpoints): New.
16474 (unsuspend_one_lwp): New.
16475 (unsuspend_all_lwps): New.
16476 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
16477 (send_sigstop_callback): Change return type to int, add new
16478 `except' parameter and handle it.
16479 (suspend_and_send_sigstop_callback): New.
16480 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
16481 pass them down. If SUSPEND, also increment the lwp's suspend
16483 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
16484 (need_step_over_p): Don't consider suspended LWPs.
16485 (start_step_over): Adjust.
16486 (proceed_one_lwp): Change return type to int, add new `except'
16487 parameter and handle it.
16488 (unsuspend_and_proceed_one_lwp): New.
16489 (proceed_all_lwps): Use find_inferior instead of
16491 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
16492 also decrement the suspend count of LWPs. Pass `except' down,
16493 instead of hacking its suspend count.
16494 (linux_pause_all): Add `freeze' parameter. Adjust.
16495 (linux_unpause_all): New.
16496 (linux_target_ops): Install linux_unpause_all.
16497 * server.c (handle_status): Adjust.
16498 * target.h (struct target_ops): New fields `unpause_all' and
16499 `cancel_breakpoints'. Add new parameter to `pause_all'.
16500 (pause_all): Add new `freeze' parameter.
16501 (unpause_all): New.
16502 (cancel_breakpoints): New.
16503 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
16504 cancel breakpoints.
16505 (cmd_qtstart): Pause threads.
16506 (stop_tracing): Pause threads, and cancel breakpoints.
16507 * win32-low.c (win32_target_ops): Adjust.
16509 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16511 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
16512 the inferior right away from here...
16513 (linux_wait_1): ... to here, and adjust to check the thread's
16514 last_resume_kind instead of the lwp's step or stop_expected flags.
16516 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16518 * README: Use consistent `GDB' and `GDBserver' spellings.
16520 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16522 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
16523 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
16524 (linux_detach_one_lwp): Assume the lwp is stopped.
16525 (any_thread_of): Delete.
16526 (linux_detach): Stop all lwps here. Don't blindly delete all
16528 (delete_lwp_callback): New.
16529 (linux_mourn): Delete all lwps of the process that is gone.
16530 (linux_wait_1): Don't delete the last lwp of the process here.
16531 * mem-break.h (mark_breakpoints_out): Declare.
16532 * mem-break.c (mark_breakpoints_out): New.
16533 (free_all_breakpoints): Use it.
16534 * server.c (handle_target_event): If the process is gone, mark
16536 * thread-db.c (struct thread_db) <create_bp>: New field.
16537 (thread_db_enable_reporting): Fix prototype. Store a thread event
16538 breakpoint reference in the thread_db struct.
16539 (thread_db_load_search): Clear the thread_db object.
16540 (try_thread_db_load_1): Ditto.
16541 (switch_to_process): New.
16542 (disable_thread_event_reporting): Use it.
16543 (remove_thread_event_breakpoints): New.
16544 (thread_db_detach, thread_db_mourn): Use it.
16546 2010-05-01 Pedro Alves <pedro@codesourcery.com>
16548 * linux-low.c (linux_enable_event_reporting): New.
16549 (linux_wait_for_event_1, handle_extended_wait): Use it.
16551 2010-04-30 Pedro Alves <pedro@codesourcery.com>
16553 * linux-low.c (linux_kill_one_lwp, linux_kill)
16554 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
16555 (send_sigstop): Take an lwp_info as parameter instead. Queue a
16556 SIGSTOP even if the LWP is stopped.
16557 (send_sigstop_callback): New.
16558 (stop_all_lwps): Use send_sigstop_callback instead.
16559 (linux_resume_one_thread): Adjust.
16560 (proceed_one_lwp): Still proceed an LWP that the client has
16561 requested to stop, if we haven't reported it as stopped yet. Make
16562 sure that LWPs the client want stopped, have a pending SIGSTOP.
16564 2010-04-26 Doug Evans <dje@google.com>
16566 * server.c (handle_general_set): Make static.
16568 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
16569 Print received char after testing for error/eof instead of before.
16570 (input_interrupt): Tweak comment.
16572 2010-04-23 Doug Evans <dje@google.com>
16574 * server.c (start_inferior): Print inferior argv if --debug.
16576 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
16578 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
16579 * nto-x86-low.c: Include server.h
16581 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
16583 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
16584 be consistent with other sources of this directory.
16585 (init_registers_amd64): Correct name of source file of this function
16588 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16590 * configure.srv (x86_64-*-mingw*): New configuration for Windows
16591 64-bit executables.
16593 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16595 * win32-i386-low.c: Add 64-bit support.
16596 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
16597 (init_registers_amd64): Declare.
16598 (mappings): Add 64-bit version of array.
16599 (init_windows_x86): New function.
16600 (the_low_target): Change init_arch field to init_windows_x86.
16602 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16604 * win32-low.c: Adapt to support also 64-bit architecture.
16605 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
16606 (get_image_name): Use SIZE_T type for local variable `done'.
16607 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
16608 (toolhelp_get_dll_name): Idem.
16609 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
16610 Use uintptr_t typecast to avoid warning.
16611 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
16612 (handle_exception): Use phex_nz to avoid warning.
16613 (win32_wait): Remove unused local variable `process'.
16615 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16617 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
16620 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
16622 * configure.ac: Use `ws2_32' library for srv_mingw.
16623 * configure: Regenerate.
16624 * gdbreplay.c: Include winsock2.h instead of winsock.h.
16625 * remote-utils.c: Likewise.
16627 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
16629 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
16630 if __x86_64__ is defined.
16632 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16634 * configure: Regenerate.
16636 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16638 * server.c (handle_query): Handle 'qGetTIBAddr' query.
16639 * target.h (target_ops): New get_tib_address field.
16640 * win32-low.h (win32_thread_info): Add thread_local_base field.
16641 * win32-low.c (child_add_thread): Add tlb argument.
16642 Set thread_local_base field to TLB.
16643 (get_child_debug_event): Adapt to child_add_thread change.
16644 (win32_get_tib_address): New function.
16645 (win32_target_ops): Set get_tib_address field to
16646 win32_get_tib_address.
16647 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
16649 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16651 * linux-low.c (linux_mourn): Also remove the process.
16652 * server.c (handle_target_event): Don't remove the process here.
16653 * nto-low.c (nto_mourn): New.
16654 (nto_target_ops): Install it.
16655 * spu-low.c (spu_mourn): New.
16656 (spu_target_ops): Install it.
16657 * win32-low.c (win32_mourn): New.
16658 (win32_target_ops): Install it.
16660 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16662 * server.h (buffer_xml_printf): Remove redundant `;'.
16664 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16666 * regcache.c (set_register_cache): Invalidate regcaches before
16667 changing the register cache layout.
16668 (regcache_invalidate_one): Allow a NULL regcache.
16669 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
16670 regcaches before changing the register cache layout or the target
16673 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
16675 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
16676 variable warning on Linux/x86-64.
16678 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16680 GDBserver disconnected tracing support.
16682 * linux-low.c (linux_remove_process): Delete.
16683 (add_lwp): Don't set last_resume_kind here.
16684 (linux_kill): Use `mourn'.
16685 (linux_detach): Use `thread_db_detach', and `mourn'.
16686 (linux_mourn): New.
16687 (linux_attach_lwp_1): Adjust comment.
16688 (linux_attach): last_resume_kind moved the thread_info; adjust.
16689 (status_pending_p_callback): Adjust.
16690 (linux_wait_for_event_1): Adjust.
16691 (count_events_callback, select_singlestep_lwp_callback)
16692 (select_event_lwp_callback, cancel_breakpoints_callback)
16693 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
16694 (proceed_one_lwp): Adjust.
16695 (linux_async): Add debug output.
16696 (linux_thread_stopped): New.
16697 (linux_pause_all): New.
16698 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
16700 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
16701 (thread_db_free): Delete declaration.
16702 (thread_db_detach, thread_db_mourn): Declare.
16703 * thread-db.c (thread_db_init): Use thread_db_mourn.
16704 (thread_db_free): Delete, split in two.
16705 (disable_thread_event_reporting): New.
16706 (thread_db_detach): New.
16707 (thread_db_mourn): New.
16709 * server.h (struct thread_info) <last_resume_kind>: New field.
16710 <attached>: Add comment.
16711 <gdb_detached>: New field.
16712 (handler_func): Change return type to int.
16713 (handle_serial_event, handle_target_event): Ditto.
16714 (gdb_connected): Declare.
16716 (disconnected_tracing): Declare.
16717 (stop_tracing): Declare.
16719 * server.c (handle_query) <qSupported>: Report support for
16720 disconnected tracing.
16721 (queue_stop_reply_callback): Account for running threads.
16722 (gdb_wants_thread_stopped): New.
16723 (gdb_wants_all_threads_stopped): New.
16724 (gdb_reattached_process): New.
16725 (handle_status): Clear the `gdb_detached' flag of all processes.
16726 In all-stop, stop all threads.
16727 (main): Be sure to leave tfind mode. Handle disconnected tracing.
16728 (process_serial_event): If the remote connection breaks, or if an
16729 exit was forced with "monitor exit", force an event loop exit.
16730 Handle disconnected tracing on detach.
16731 (handle_serial_event): Adjust.
16732 (handle_target_event): If GDB isn't connected, forward events back
16733 to the inferior, unless the last process exited, in which case,
16734 exit gdbserver. Adjust interface.
16736 * remote-utils.c (remote_open): Don't block in accept. Instead
16737 register an event loop source on the listen socket file
16738 descriptor. Refactor bits into ...
16739 (listen_desc): ... this new global.
16740 (gdb_connected): ... this new function.
16741 (enable_async_notification): ... this new function.
16742 (handle_accept_event): ... this new function.
16743 (remote_close): Clear remote_desc.
16745 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
16747 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
16749 (mourn_inferior): Define.
16750 (target_process_qsupported): Avoid the dangling else problem.
16751 (thread_stopped): Define.
16752 (pause_all): Define.
16753 (target_waitstatus_to_string): Declare.
16754 * target.c (target_waitstatus_to_string): New.
16756 * tracepoint.c (tracing): Make extern.
16757 (disconnected_tracing): New.
16758 (stop_tracing): Make extern. Handle tracing stops due to GDB
16760 (cmd_qtdisconnected): New.
16761 (cmd_qtstatus): Report disconnected tracing status in trace reply.
16762 (handle_tracepoint_general_set): Handle QTDisconnected.
16764 * event-loop.c (event_handler_func): Change return type to int.
16765 (process_event): Bail out if the event handler wants the event
16767 (handle_file_event): Ditto.
16768 (start_event_loop): Bail out if the event handler wants the event
16771 * nto-low.c (nto_target_ops): Adjust.
16772 * spu-low.c (spu_wait): Don't remove the process here.
16773 (spu_target_ops): Adjust.
16774 * win32-low.c (win32_wait): Don't remove the process here.
16775 (win32_target_ops): Adjust.
16777 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16779 * regcache.c (realloc_register_cache): Invalidate inferior's
16780 regcache before recreating it.
16782 2010-04-09 Pedro Alves <pedro@codesourcery.com>
16784 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
16786 2010-04-09 Stan Shebs <stan@codesourcery.com>
16787 Pedro Alves <pedro@codesourcery.com>
16789 * server.h (LONGEST): New.
16790 (struct thread_info) <while_stepping>: New field.
16791 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
16793 (initialize_tracepoint, handle_tracepoint_general_set)
16794 (handle_tracepoint_query, tracepoint_finished_step)
16795 (tracepoint_was_hit, release_while_stepping_state_list):
16796 (current_traceframe): Declare.
16797 * server.c (handle_general_set): Handle tracepoint packets.
16798 (read_memory): New.
16799 (write_memory): New.
16800 (handle_search_memory_1): Use read_memory.
16801 (handle_query): Report support for conditional tracepoints, trace
16802 state variables, and tracepoint sources. Handle tracepoint
16804 (main): Initialize the tracepoints module.
16805 (process_serial_event): Handle traceframe reads/writes.
16807 * linux-low.c (handle_tracepoints): New.
16808 (linux_wait_1): Call it.
16809 (linux_resume_one_lwp): Handle while-stepping.
16810 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
16811 (linux_target_ops): Install them.
16812 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
16814 * linux-x86-low.c (x86_supports_tracepoints): New.
16815 (the_low_target). Install it.
16817 * mem-break.h (delete_breakpoint): Declare.
16818 * mem-break.c (delete_breakpoint): Make external.
16820 * target.h (struct target_ops): Add `supports_tracepoints',
16821 `read_pc', and `write_pc' fields.
16822 (target_supports_tracepoints): Define.
16823 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
16826 * regcache.h (struct regcache) <registers_owned>: New field.
16827 (init_register_cache, regcache_cpy): Declare.
16828 (regcache_read_pc, regcache_write_pc): Declare.
16829 (register_cache_size): Declare.
16830 (supply_regblock): Declare.
16831 * regcache.c (init_register_cache): New.
16832 (new_register_cache): Use it.
16833 (regcache_cpy): New.
16834 (register_cache_size): New.
16835 (supply_regblock): New.
16836 (regcache_read_pc, regcache_write_pc): New.
16838 * tracepoint.c: New.
16840 * Makefile.in (OBS): Add tracepoint.o.
16841 (tracepoint.o): New rule.
16843 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
16845 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
16847 (i386-mmx.c): Likewise.
16848 (i386-mmx-linux.o): Likewise.
16849 (i386-mmx-linux.c): Likewise.
16851 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
16852 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
16853 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
16854 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
16856 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
16857 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
16858 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
16860 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
16862 * Makefile.in (clean): Updated.
16864 (i386-avx.c): Likewise.
16865 (i386-avx-linux.o): Likewise.
16866 (i386-avx-linux.c): Likewise.
16867 (amd64-avx.o): Likewise.
16868 (amd64-avx.c): Likewise.
16869 (amd64-avx-linux.o): Likewise.
16870 (amd64-avx-linux.c): Likewise.
16872 * configure.srv (srv_i386_regobj): Add i386-avx.o.
16873 (srv_i386_linux_regobj): Add i386-avx-linux.o.
16874 (srv_amd64_regobj): Add amd64-avx.o.
16875 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
16876 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
16877 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
16878 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
16879 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
16880 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
16881 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
16883 * i387-fp.c: Include "i386-xstate.h".
16885 (i387_cache_to_xsave): Likewise.
16886 (i387_xsave_to_cache): Likewise.
16887 (x86_xcr0): Likewise.
16889 * i387-fp.h (i387_cache_to_xsave): Likewise.
16890 (i387_xsave_to_cache): Likewise.
16891 (x86_xcr0): Likewise.
16893 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
16894 * linux-crisv32-low.c (target_regsets): Likewise.
16895 * linux-m68k-low.c (target_regsets): Likewise.
16896 * linux-mips-low.c (target_regsets): Likewise.
16897 * linux-ppc-low.c (target_regsets): Likewise.
16898 * linux-s390-low.c (target_regsets): Likewise.
16899 * linux-sh-low.c (target_regsets): Likewise.
16900 * linux-sparc-low.c (target_regsets): Likewise.
16901 * linux-xtensa-low.c (target_regsets): Likewise.
16903 * linux-low.c: Include <sys/uio.h>.
16904 (regsets_fetch_inferior_registers): Support nt_type.
16905 (regsets_store_inferior_registers): Likewise.
16906 (linux_process_qsupported): New.
16907 (linux_target_ops): Add linux_process_qsupported.
16909 * linux-low.h (regset_info): Add nt_type.
16910 (linux_target_ops): Add process_qsupported.
16912 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
16914 (init_registers_i386_avx_linux): New.
16915 (init_registers_amd64_avx_linux): Likewise.
16916 (xmltarget_i386_linux_no_xml): Likewise.
16917 (xmltarget_amd64_linux_no_xml): Likewise.
16918 (PTRACE_GETREGSET): Likewise.
16919 (PTRACE_SETREGSET): Likewise.
16920 (x86_fill_xstateregset): Likewise.
16921 (x86_store_xstateregset): Likewise.
16922 (use_xml): Likewise.
16923 (x86_linux_update_xmltarget): Likewise.
16924 (x86_linux_process_qsupported): Likewise.
16925 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
16926 (x86_arch_setup): Don't call init_registers_amd64_linux nor
16927 init_registers_i386_linux here. Call
16928 x86_linux_update_xmltarget.
16929 (the_low_target): Add x86_linux_process_qsupported.
16931 * server.c (handle_query): Call target_process_qsupported.
16933 * target.h (target_ops): Add process_qsupported.
16934 (target_process_qsupported): New.
16936 2010-04-03 Pedro Alves <pedro@codesourcery.com>
16938 * inferiors.c (add_thread): Set last_status kind to
16939 TARGET_WAITKIND_IGNORE.
16940 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
16941 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
16942 (linux_wait_1): Move `thread' local definition to block that uses
16943 it. Don't NULL initialize `event_child'.
16944 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
16945 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
16946 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
16948 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16950 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
16951 an extended waitstatus, or by a watchpoint.
16952 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
16953 thread was stepping or has been stopped by a watchpoint.
16955 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16957 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
16958 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
16959 of another, then delete the previous, and validate all
16961 (validate_inserted_breakpoint): New.
16962 (delete_disabled_breakpoints): New.
16963 (validate_breakpoints): New.
16964 (check_mem_read): Validate breakpoints before trusting their
16965 shadow. Delete disabled breakpoints.
16966 (check_mem_write): Validate breakpoints before trusting they
16967 should be inserted. Delete disabled breakpoints.
16968 * mem-break.h (validate_breakpoints):
16969 * server.c (handle_query): Validate breakpoints when we see a
16972 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16974 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
16975 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
16976 if we could tell there's a GDB breakpoint at stop_pc.
16977 (need_step_over_p): Don't do a step over if we find a GDB
16978 breakpoint at the resume PC.
16980 * mem-break.c (struct raw_breakpoint): New.
16981 (enum bkpt_type): New type `gdb_breakpoint'.
16982 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
16983 fields. New field `raw'.
16984 (find_raw_breakpoint_at): New.
16985 (set_raw_breakpoint_at): Handle refcounting. Create a raw
16986 breakpoint instead.
16987 (set_breakpoint_at): Adjust.
16988 (delete_raw_breakpoint): New.
16989 (release_breakpoint): New.
16990 (delete_breakpoint): Rename to...
16991 (delete_breakpoint_1): ... this. Add proc parameter. Use
16992 release_breakpoint. Return ENOENT.
16993 (delete_breakpoint): Reimplement.
16994 (find_breakpoint_at): Delete.
16995 (find_gdb_breakpoint_at): New.
16996 (delete_breakpoint_at): Delete.
16997 (set_gdb_breakpoint_at): New.
16998 (delete_gdb_breakpoint_at): New.
16999 (gdb_breakpoint_here): New.
17000 (set_reinsert_breakpoint): Use release_breakpoint.
17001 (uninsert_breakpoint): Rename to ...
17002 (uninsert_raw_breakpoint): ... this.
17003 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17004 (reinsert_raw_breakpoint): Change parameter type to
17006 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17008 (check_breakpoints): Adjust. Use release_breakpoint.
17009 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17010 (breakpoint_inserted_here): Ditto.
17011 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17012 Don't trust the breakpoint's shadow if it is not inserted.
17013 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17014 (delete_all_breakpoints): Adjust.
17015 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17016 use delete_breakpoint_1.
17018 * mem-break.h (breakpoints_supported): Delete declaration.
17019 (set_gdb_breakpoint_at): Declare.
17020 (gdb_breakpoint_here): Declare.
17021 (delete_breakpoint_at): Delete.
17022 (delete_gdb_breakpoint_at): Declare.
17024 * server.h (struct raw_breakpoint): Forward declare.
17025 (struct process_info): New field `raw_breakpoints'.
17027 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17030 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17032 * linux-low.c (status_pending_p_callback): Fix comment.
17033 (linux_wait_for_event_1): Move most of the internal breakpoint
17034 handling from here...
17035 (linux_wait_1): ... to here.
17036 (count_events_callback): New.
17037 (select_singlestep_lwp_callback): New.
17038 (select_event_lwp_callback): New.
17039 (cancel_breakpoints_callback): New.
17040 (select_event_lwp): New.
17041 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17042 priority to all LWPs that have had events that should be reported
17043 to the client. Cancel breakpoints when about to reporting the
17044 event to the client, not while stopping lwps. No longer cancel
17045 finished single-steps here.
17046 (cancel_finished_single_step): Delete.
17047 (cancel_finished_single_steps): Delete.
17049 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17051 * mem-break.c (enum bkpt_type): New.
17052 (struct breakpoint): New field `type'.
17053 (set_breakpoint_at): Change return type to struct breakpoint
17054 pointer. Set type to `other_breakpoint' by default.
17055 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17056 in the breakpoint list.
17057 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17058 (reinsert_breakpoint): Rename to ...
17059 (reinsert_raw_breakpoint): ... this.
17060 (reinsert_breakpoints_at): Adjust.
17061 * mem-break.h (struct breakpoint): Declare.
17062 (set_breakpoint_at): Change return type to struct breakpoint
17065 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17067 * server.c (handle_query): Assign, not compare.
17069 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17071 Teach linux gdbserver to step-over-breakpoints.
17073 * linux-low.c (can_hardware_single_step): New.
17074 (supports_breakpoints): New.
17075 (handle_extended_wait): If stopping threads, read the stop pc of
17076 the new cloned LWP.
17078 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17079 low target doesn't support retrieving the PC.
17080 (add_lwp): Set last_resume_kind to resume_continue.
17081 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17082 (linux_attach): Don't clear stop_expected. Set the lwp's
17083 last_resume_kind to resume_stop.
17084 (linux_detach_one_lwp): Don't check for removed breakpoints.
17085 (check_removed_breakpoint): Delete.
17086 (status_pending_p): Rename to ...
17087 (status_pending_p_callback): ... this. Don't check for removed
17088 breakpoints. Don't consider threads that are stopped from GDB's
17090 (linux_wait_for_lwp): Always read the stop_pc here.
17091 (cancel_breakpoint): New.
17092 (step_over_bkpt): New global.
17093 (linux_wait_for_event_1): Implement stepping over breakpoints.
17094 (gdb_wants_lwp_stopped): New.
17095 (gdb_wants_all_stopped): New.
17096 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17097 single-step traps here. Store the thread's last reported target
17099 (send_sigstop): Don't clear stop_expected. Always set it,
17101 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17102 (cancel_finished_single_step): New.
17103 (cancel_finished_single_steps): New.
17104 (wait_for_sigstop): Don't cancel finished single-step traps here.
17105 (linux_resume_one_lwp): Don't check for removed breakpoints.
17106 Don't set `step' on non-hardware step archs.
17107 (linux_set_resume_request): Ignore resume_stop requests if already
17108 stopping or stopped. Set the lwp's last_resume_kind.
17109 (resume_status_pending_p): Don't check for removed breakpoints.
17110 (need_step_over_p): New.
17111 (start_step_over): New.
17112 (finish_step_over): New.
17113 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17114 requests. Clear the thread's last reported target waitstatus.
17115 Don't use the `suspended' flag. Don't consider pending breakpoints.
17116 (linux_resume): Start a step-over if necessary.
17117 (proceed_one_lwp): New.
17118 (proceed_all_lwps): New.
17119 (unstop_all_lwps): New.
17120 * linux-low.h (struct lwp_info): Rewrite comment for the
17121 `suspended' flag. Add the `stop_pc' field. Delete the
17122 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17123 Add `'last_resume_kind' and `need_step_over' fields.
17124 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17125 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17126 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17127 (set_raw_breakpoint_at): New.
17128 (set_breakpoint_at): Rewrite to use it.
17129 (reinsert_breakpoint_handler): Delete.
17130 (set_reinsert_breakpoint): New.
17131 (reinsert_breakpoint_by_bp): Delete.
17132 (delete_reinsert_breakpoints): New.
17133 (uninsert_breakpoint): Rewrite.
17134 (uninsert_breakpoints_at): New.
17135 (reinsert_breakpoint): Rewrite.
17136 (reinsert_breakpoints_at): New.
17137 (check_breakpoints): Rewrite.
17138 (breakpoint_here): New.
17139 (breakpoint_inserted_here): New.
17140 (check_mem_read): Adjust.
17141 * mem-break.h (breakpoints_supported, breakpoint_here)
17142 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17143 (reinsert_breakpoint_by_bp): Delete declaration.
17144 (delete_reinsert_breakpoints): Declare.
17145 (reinsert_breakpoint): Delete declaration.
17146 (reinsert_breakpoints_at): Declare.
17147 (uninsert_breakpoint): Delete declaration.
17148 (uninsert_breakpoints_at): Declare.
17149 (check_breakpoints): Adjust prototype.
17150 * server.h: Adjust include order.
17151 (struct thread_info): Declare here. Add a `last_status' field.
17153 2010-03-23 Michael Snyder <msnyder@vmware.com>
17155 * server.c (crc32): New function.
17156 (handle_query): Add handling for 'qCRC:' request.
17158 2010-03-23 Pedro Alves <pedro@codesourcery.com>
17160 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17161 lwp had been stopped by a watchpoint.
17163 2010-03-16 Pedro Alves <pedro@codesourcery.com>
17165 * server.h (internal_error): Declare.
17166 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17167 * utils.c (internal_error): New function.
17169 2010-03-15 Andreas Schwab <schwab@redhat.com>
17171 * configure.srv: Fix typo setting srv_regobj.
17173 2010-03-15 Pedro Alves <pedro@codesourcery.com>
17175 * linux-low.c (fetch_register): Avoid passing a non string literal
17177 (usr_store_inferior_registers): Ditto.
17179 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17181 * linux-low.c (linux_write_memory): Bail out early if peeking
17184 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17186 * linux-low.h (struct lwp_info): New fields
17187 `stopped_by_watchpoint' and `stopped_data_address'.
17188 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17189 here, and cache them in the lwp object.
17190 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17192 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17194 (linux_stopped_by_watchpoint): Rewrite.
17195 (linux_stopped_data_address): Rewrite.
17197 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
17199 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17200 switching the current inferior, not before.
17202 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17204 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
17205 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
17206 i386-linux.c and amd64-linux.c.
17207 (reg-i386.o): Removed.
17208 (reg-i386.c): Likewise.
17209 (reg-i386-linux.o): Likewise.
17210 (reg-i386-linux.c): Likewise.
17211 (reg-x86-64.o): Likewise.
17212 (reg-x86-64.c): Likewise.
17213 (reg-x86-64-linux.o): Likewise.
17214 (reg-x86-64-linux.c): Likewise.
17216 (i386.c): Likewise.
17217 (i386-linux.o): Likewise.
17218 (i386-linux.c): Likewise.
17219 (amd64.o): Likewise.
17220 (amd64.c): Likewise.
17221 (amd64-linux.o): Likewise.
17222 (amd64-linux.c): Likewise.
17224 * configure.srv (srv_i386_regobj): New.
17225 (srv_i386_linux_regobj): Likewise.
17226 (srv_amd64_regobj): Likewise.
17227 (srv_amd64_linux_regobj): Likewise.
17228 (srv_i386_32bit_xmlfiles): Likewise.
17229 (srv_i386_64bit_xmlfiles): Likewise.
17230 (srv_i386_xmlfiles): Likewise.
17231 (srv_amd64_xmlfiles): Likewise.
17232 (srv_i386_linux_xmlfiles): Likewise.
17233 (srv_amd64_linux_xmlfiles): Likewise.
17234 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17235 srv_xmlfiles to $srv_i386_xmlfiles.
17236 (i[34567]86-*-mingw32ce*): Likewise.
17237 (i[34567]86-*-mingw*): Likewise.
17238 (i[34567]86-*-nto*): Likewise.
17239 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17240 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17241 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17242 (x86_64-*-linux*): Likewise.
17244 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17245 (init_registers_amd64_linux): New.
17246 (x86_arch_setup): Replace init_registers_x86_64_linux with
17247 init_registers_amd64_linux.
17249 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17251 * configure.ac: Check for libdl. If it is not available link against
17252 static libthread_db.
17253 * configure: Regenerate.
17255 2010-02-22 Pedro Alves <pedro@codesourcery.com>
17259 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17260 handing a read watchpoint.
17261 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17263 2010-02-12 Doug Evans <dje@google.com>
17265 * linux-low.c (linux_supports_tracefork_flag): Document.
17266 (linux_look_up_symbols): Add comment.
17268 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17270 * regcache.c (supply_register): Clear regcache if buf is NULL.
17272 2010-02-02 Nicolas Roche <roche@sourceware.org>
17273 Joel Brobecker <brobecker@adacore.com>
17275 * inferiors.c (find_inferior): Add function documentation.
17276 (unloaded_dll): Handle the case where the unloaded dll has not
17277 been previously registered in the dll list.
17279 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17281 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17282 (thumb2_breakpoint): New.
17283 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17285 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17287 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17288 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17291 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17293 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17295 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17297 * linux-s390-low.c (s390_collect_ptrace_register)
17298 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17300 2010-01-21 Doug Evans <dje@google.com>
17302 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17303 (PTRACE_ARG4_TYPE): New macro.
17304 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17305 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17306 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17307 (usr_store_inferior_registers): Ditto.
17308 (linux_read_memory, linux_write_memory): Ditto.
17309 (linux_test_for_tracefork): Ditto.
17311 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17312 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17314 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17316 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17319 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17321 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17322 prototype to take a regcache. Adjust.
17324 2010-01-20 Pedro Alves <pedro@codesourcery.com>
17326 * regcache.h (struct thread_info): Forward declare.
17327 (struct regcache): New.
17328 (new_register_cache): Adjust prototype.
17329 (get_thread_regcache): Declare.
17330 (free_register_cache): Adjust prototype.
17331 (registers_to_string, registers_from_string): Ditto.
17332 (supply_register, supply_register_by_name, collect_register)
17333 (collect_register_as_string, collect_register_by_name): Ditto.
17334 * regcache.c (struct inferior_regcache_data): Delete.
17335 (get_regcache): Rename to ...
17336 (get_thread_regcache): ... this. Adjust. Switch inferior before
17337 fetching registers.
17338 (regcache_invalidate_one): Adjust.
17339 (regcache_invalidate): Fix prototype.
17340 (new_register_cache): Return the new register cache.
17341 (free_register_cache): Change prototype.
17342 (realloc_register_cache): Adjust.
17343 (registers_to_string): Change prototype to take a regcache. Adjust.
17344 (registers_from_string): Ditto.
17345 (register_data): Ditto.
17346 (supply_register): Ditto.
17347 (supply_register_by_name): Ditto.
17348 (collect_register): Ditto.
17349 (collect_register_as_string): Ditto.
17350 (collect_register_by_name): Ditto.
17351 * server.c (process_serial_event): Adjust.
17352 * linux-low.h (regset_fill_func, regset_store_func): Change
17354 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17356 * linux-low.c (get_stop_pc): Adjust.
17357 (check_removed_breakpoint): Adjust.
17358 (linux_wait_for_event): Adjust.
17359 (linux_resume_one_lwp): Adjust.
17360 (fetch_register): Add regcache parameter. Adjust.
17361 (usr_store_inferior_registers): Ditto.
17362 (regsets_fetch_inferior_registers): Ditto.
17363 (regsets_store_inferior_registers): Ditto.
17364 (linux_fetch_registers, linux_store_registers): Ditto.
17365 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17367 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17369 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17370 prototype to take a regcache.
17371 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17372 * remote-utils.c (convert_ascii_to_int, outreg)
17373 (prepare_resume_reply): Change prototype to take a regcache.
17375 * target.h (struct target_ops) <fetch_registers, store_registers>:
17376 Change prototype to take a regcache.
17377 (fetch_inferior_registers, store_inferior_registers): Change
17378 prototype to take a regcache. Adjust.
17379 * proc-service.c (ps_lgetregs): Adjust.
17380 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
17381 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
17382 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
17383 take a regcache. Adjust.
17384 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
17385 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
17386 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
17387 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
17388 * linux-cris-low.c (cris_get_pc, cris_set_pc)
17389 (cris_cannot_fetch_register):
17390 (cris_breakpoint_at): Change prototype to take a regcache.
17392 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
17393 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
17394 to take a regcache. Adjust.
17395 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
17397 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
17398 take a regcache. Adjust.
17399 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
17400 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
17401 (m68k_set_pc): Change prototype to take a regcache. Adjust.
17402 * linux-mips-low.c (mips_get_pc):
17403 (mips_set_pc): Change prototype to take a regcache. Adjust.
17404 (mips_reinsert_addr): Adjust.
17405 (mips_collect_register): Change prototype to take a regcache.
17407 (mips_supply_register):
17408 (mips_collect_register_32bit, mips_supply_register_32bit)
17409 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17410 (mips_store_fpregset): Ditto.
17411 * linux-ppc-low.c (ppc_supply_ptrace_register)
17412 (ppc_supply_ptrace_register): Ditto.
17413 (parse_spufs_run): Adjust.
17414 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
17415 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
17416 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
17417 take a regcache. Adjust.
17418 * linux-s390-low.c (s390_collect_ptrace_register)
17419 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
17420 (s390_set_pc): Change prototype to take a regcache. Adjust.
17421 (s390_arch_setup): Adjust.
17422 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
17423 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
17424 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
17425 (sparc_fill_gregset, sparc_store_gregset_from_stack)
17426 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
17428 (sparc_breakpoint_at): Adjust.
17429 * linux-xtensa-low.c (xtensa_fill_gregset):
17430 (xtensa_store_gregset):
17431 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
17432 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
17433 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
17434 prototype to take a regcache. Adjust.
17435 * win32-arm-low.c (arm_fetch_inferior_register)
17436 (arm_store_inferior_register): Change prototype to take a
17438 * win32-i386-low.c (i386_fetch_inferior_register)
17439 (i386_store_inferior_register): Change prototype to take a
17441 * win32-low.c (child_fetch_inferior_registers)
17442 (child_store_inferior_registers): Change prototype to take a
17444 (win32_wait): Adjust.
17445 (win32_fetch_inferior_registers): Change prototype to take a
17447 (win32_store_inferior_registers): Adjust.
17448 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
17449 store_inferior_register>: Change prototype to take a regcache.
17451 2010-01-20 Doug Evans <dje@google.com>
17453 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
17455 (linux_wait_for_event1, linux_init_signals): Ditto.
17456 (W_STOPCODE): Provide definition if missing.
17458 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
17460 * linux-low.c (linux_core_of_thread): New.
17461 (compare_ints, show_process, list_threads): New.
17462 (linux_qxfer_osdata): Report threads and cores.
17463 (linux_target_op): Register linux_core_of_thread.
17464 * remote-utils.c (prepare_resume_reply): Report the core.
17465 (buffer_xml_printf): Support %d specifier.
17466 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
17468 (handle_query): Handle qXfer:threads. Announce availability
17470 * target.h (struct target_ops): New field core_of_thread.
17472 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
17474 * Makefile.in (clean): Remove new generated files.
17475 (reg-s390.o, reg-s390.c): Remove rules.
17476 (reg-s390x.o, reg-s390x.c): Likewise.
17477 (s390-linux32.o, s390-linux32.c): Add rules.
17478 (s390-linux64.o, s390-linux64.c): Likewise.
17479 (s390x-linux64.o, s390x-linux64.c): Likewise.
17480 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
17481 * linux-s390-low.c: Include <elf.h>.
17482 (HWCAP_S390_HIGH_GPRS): Define if undefined.
17483 (init_registers_s390): Remove prototype.
17484 (init_registers_s390x): Likewise.
17485 (init_registers_s390_linux32): Add prototype.
17486 (init_registers_s390_linux64): Likewise.
17487 (init_registers_s390x_linux64): Likewise.
17488 (s390_num_regs_3264): New define.
17489 (s390_regmap_3264): New global variable.
17490 (s390_cannot_fetch_register): Remove obsolete check.
17491 (s390_cannot_store_register): Likewise.
17492 (s390_collect_ptrace_register): Handle upper/lower register halves.
17493 (s390_supply_ptrace_register): Likewise.
17494 (s390_fill_gregset): Update to register number changes.
17495 (s390_get_hwcap): New routine.
17496 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
17497 Install appropriate regmap and register set.
17499 2010-01-01 Joel Brobecker <brobecker@adacore.com>
17501 * server.c (gdbserver_version): Update copyright year to 2010.
17502 * gdbreplay.c (gdbreplay_version): Likewise.
17504 2009-12-28 Doug Evans <dje@google.com>
17506 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
17507 elf/external.h. Include <elf.h> instead but only if necessary.
17509 2009-12-28 Pedro Alves <pedro@codesourcery.com>
17511 * linux-low.c (linux_remove_process): Remove `detaching'
17512 parameter. Don't release/detach from thread_db here.
17513 (linux_kill): Release/detach from thread_db here, ...
17514 (linux_detach): ... and here, before actually detaching.
17515 (linux_wait_1): ... and here, when a process exits.
17516 * thread-db.c (any_thread_of): New.
17517 (thread_db_free): Switch the current inferior to a thread of the
17520 2009-12-21 Doug Evans <dje@google.com>
17522 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
17524 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
17525 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
17526 warning ifndef __NR_tkill. Move setting of errno there too.
17527 Delete unnecessary resetting of errno after syscall.
17528 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
17530 * configure.ac: Check for dladdr.
17531 * config.in: Regenerate.
17532 * configure: Regenerate.
17533 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
17534 (try_thread_db_load): Update.
17536 * linux-low.c (my_waitpid): Delete unnecessary prototype.
17538 2009-12-18 Doug Evans <dje@google.com>
17540 * event-loop.c: Include unistd.h if it exists.
17542 * linux-low.c (my_waitpid): Move definition away from being in
17543 between linux_tracefork_child/linux_test_for_tracefork.
17545 * gdb_proc_service.h (psaddr_t): Fix type.
17546 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
17547 signature to match glibc.
17549 2009-12-16 Doug Evans <dje@google.com>
17551 * linux-low.c (linux_read_memory): Fix argument to read.
17553 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17555 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
17556 events, don't leave current_inferior pointing at null.
17558 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17560 * win32-low.c (LOG): Delete.
17561 (OUTMSG): Output to stderr.
17562 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
17563 on compile time LOG macro.
17564 (win32_wait): Fix debug output.
17566 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17568 * win32-low.c (win32_add_one_solib): If the dll name is
17569 "ntdll.dll", prepend the system directory to the dll path.
17571 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
17573 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
17575 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
17576 Vladimir Prus <vladimir@codesourcery.com>
17578 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
17579 * configure.ac: Check for __mcoldfire__ and set
17580 gdb_cv_m68k_is_coldfire.
17581 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
17582 reg-cf.o and reg-m68k.o.
17583 * configure: Regenerated.
17585 2009-11-16 Pedro Alves <pedro@codesourcery.com>
17587 * linux-low.c (linux_remove_process): Add `detaching' parameter.
17588 Pass it to thread_db_free.
17589 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
17590 proper `detaching' argument to linux_remove_process.
17591 * linux-low.h (thread_db_free): Add `detaching' parameter.
17592 * thread-db.c (thread_db_init): Pass false as `detaching' argument
17594 (thread_db_free): Add `detaching' parameter. Only
17595 call td_ta_clear_event if detaching from process.
17597 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
17599 * thread-db.c (thread_db_free): Fix typo.
17601 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
17604 * thread-db.c (thread_db_free): Call td_ta_clear_event.
17606 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
17608 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
17609 with an i686 compiler.
17610 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
17612 * configure: Rebuilt.
17614 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
17618 * server.c (handle_search_memory_1): Correct read_addr initialization
17619 in loop for searching subsequent chunks.
17621 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
17623 * configure.ac: New --with-libthread-db option.
17624 * thread-db.c: Allow direct dependence on libthread_db.
17625 (thread_db_free): Adjust.
17626 * config.in: Regenerate.
17627 * configure: Likewise.
17629 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
17632 * thread-db.c (attach_thread): New function.
17633 (maybe_attach_thread): Return success/failure.
17634 (find_new_threads_callback): Adjust.
17635 (thread_db_find_new_threads): Loop until no new threads.
17637 2009-10-13 Pedro Alves <pedro@codesourcery.com>
17639 * proc-service.c (ps_lgetregs): Formatting.
17641 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
17643 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
17644 * configure.ac: Adjust.
17645 * linux-low.h (struct process_info_private): Move members to struct
17647 (thread_db_free, thread_db_handle_monitor_command): New prototype.
17648 * linux-low.c (linux_remove_process): Adjust.
17649 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
17650 * server.c (handle_query): Move code ...
17651 (handle_monitor_command): ... here. New function.
17652 * target.h (struct target_ops): New member.
17653 * thread-db.c (struct thread_db): New.
17654 (libthread_db_search_path): New variable.
17655 (thread_db_create_event, thread_db_enable_reporting)
17656 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
17657 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
17658 (try_thread_db_load_1, dladdr_to_soname): New functions.
17659 (try_thread_db_load, thread_db_load_search): New functions.
17660 (thread_db_init): Search for libthread_db.
17661 (thread_db_free): New function.
17662 (thread_db_handle_monitor_command): Likewise.
17663 * config.in: Regenerate.
17664 * configure: Regenerate.
17666 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
17668 * spu-low.c (spu_kill): Wait for inferior to terminate.
17669 Call clear_inferiors.
17670 (spu_detach): Call clear_inferiors.
17672 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17674 * aclocal.m4: Regenerate.
17675 * config.in: Likewise.
17676 * configure: Likewise.
17678 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17680 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
17681 (parse_spufs_run): New function.
17682 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
17683 (ppc_breakpoint_at): Handle SPU breakpoints.
17685 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17687 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
17688 (SPUFS_MAGIC): Define.
17689 (spu_enumerate_spu_ids): New function.
17690 (linux_qxfer_spu): New function.
17691 (linux_target_ops): Install linux_qxfer_spu.
17693 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17695 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
17696 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
17697 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
17698 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
17699 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
17700 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
17701 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
17702 (init_registers_powerpc_cell32l): Add prototype.
17703 (init_registers_powerpc_cell64l): Likewise.
17704 (ppc_arch_setup): Detect Cell/B.E. architecture.
17706 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17708 * Makefile.in (datarootdir): New variable.
17710 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17712 * linux-low.c (linux_write_memory): Update debugging output.
17713 * Makefile.in (clean): Add new descriptions.
17714 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
17715 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
17716 * configure.srv: Add new files for arm*-*-linux*.
17717 * linux-arm-low.c: Add new declarations.
17718 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
17719 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
17720 (HWCAP_VFPv3D16): New.
17721 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
17722 instead of __IWMMXT__.
17723 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
17724 (arm_arch_setup): New.
17725 (target_regsets): Remove #ifdef. Add VFP regset.
17726 (the_low_target): Use arm_arch_setup.
17728 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17730 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
17731 the main thread again.
17733 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
17735 Adding Neutrino gdbserver.
17736 * configure: Regenerated.
17737 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
17738 * configure.srv (i[34567]86-*-nto*): New target.
17739 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
17740 * remote-utils.c [__QNX__]: Include sys/iomgr.h
17741 (nto_comctrl) [__QNX__]: New function.
17742 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
17744 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
17746 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
17749 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
17750 Pedro Alves <pedro@codesourcery.com>
17752 * win32-i386-low.c (i386_get_thread_context): Handle systems that
17753 don't support CONTEXT_EXTENDED_REGISTERS.
17754 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
17755 (the_low_target): Install them.
17756 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
17757 failing with ERROR_PIPE_NOT_CONNECTED.
17759 2009-06-30 Doug Evans <dje@google.com>
17760 Pierre Muller <muller@ics.u-strasbg.fr>
17762 Add h/w watchpoint support to x86-linux, win32-i386.
17763 * Makefile.in (SFILES): Add i386-low.c
17764 (i386_low_h): Define.
17765 (i386-low.o): Add dependencies.
17766 (linux-x86-low.o): Add i386-low.h dependency.
17767 (win32-i386-low.o): Ditto.
17768 * i386-low.c: New file.
17769 * i386-low.h: New file.
17770 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
17771 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
17772 * linux-low.c (linux_add_process): Initialize arch_private.
17773 (linux_remove_process): Free arch_private.
17774 (add_lwp): Initialize arch_private.
17775 (delete_lwp): Free arch_private.
17776 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
17778 * linux-low.h (process_info_private): New member arch_private.
17779 (lwp_info): New member arch_private.
17780 (linux_target_ops): New members new_process, new_thread,
17782 (ptid_of): New macro.
17783 * linux-x86-low.c: Include stddef.h, i386-low.h.
17784 (arch_process_info): New struct.
17785 (arch_lwp_info): New struct.
17786 (x86_linux_dr_get, x86_linux_dr_set): New functions.
17787 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17788 (i386_dr_low_get_status): New function.
17789 (x86_insert_point, x86_remove_point): New functions.
17790 (x86_stopped_by_watchpoint): New function.
17791 (x86_stopped_data_address): New function.
17792 (x86_linux_new_process, x86_linux_new_thread): New functions.
17793 (x86_linux_prepare_to_resume): New function.
17794 (the_low_target): Add entries for insert_point, remove_point,
17795 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
17797 * server.c (debug_hw_points): New global.
17798 (monitor_show_help): Document set debug-hw-points.
17799 (handle_query): Process "set debug-hw-points".
17800 * server.h (debug_hw_points): Declare.
17801 (paddress): Declare.
17802 * utils.c (NUMCELLS, CELLSIZE): New macros.
17803 (get_sell, xsnprintf, paddress): New functions.
17804 * win32-arm-low.c (the_low_target): Add entries for insert_point,
17805 remove_point, stopped_by_watchpoint, stopped_data_address.
17806 * win32-i386-low.c: Include i386-low.h.
17807 (debug_reg_state): Replaces dr.
17808 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17809 (i386_dr_low_get_status): New function.
17810 (i386_insert_point, i386_remove_point): New functions.
17811 (i386_stopped_by_watchpoint): New function.
17812 (i386_stopped_data_address): New function.
17813 (i386_initial_stuff): Update.
17814 (get_thread_context,set_thread_context,i386_thread_added): Update.
17815 (the_low_target): Add entries for insert_point,
17816 remove_point, stopped_by_watchpoint, stopped_data_address.
17817 * win32-low.c (win32_insert_watchpoint): New function.
17818 (win32_remove_watchpoint): New function.
17819 (win32_stopped_by_watchpoint): New function.
17820 (win32_stopped_data_address): New function.
17821 (win32_target_ops): Add entries for insert_watchpoint,
17822 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
17823 * win32-low.h (win32_target_ops): New members insert_point,
17824 remove_point, stopped_by_watchpoint, stopped_data_address.
17826 2009-06-25 Pedro Alves <pedro@codesourcery.com>
17828 * server.c (process_serial_event): Re-return unsupported, not
17829 error, if the type isn't recognized. Re-allow supporting only
17830 insert or remove packets. Also call require_running for
17831 breakpoints. Add missing break statement to default case. Tidy.
17832 * target.h (struct target_ops): Rename insert_watchpoint to
17833 insert_point, and remove_watchpoint to remove_point.
17835 * linux-low.h (struct linux_target_ops): Likewise.
17836 * linux-low.c (linux_insert_watchpoint): Rename to ...
17837 (linux_insert_point): ... this. Adjust.
17838 (linux_remove_watchpoint): Rename to ...
17839 (linux_remove_point): ... this. Adjust.
17840 (linux_target_ops): Adjust.
17841 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
17842 (cris_insert_point): ... this.
17843 (cris_remove_watchpoint): Rename to ...
17844 (cris_remove_point): ... this.
17845 (the_low_target): Adjust.
17847 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
17849 * server.c (handle_v_kill): Pass signal_pid to
17850 kill_inferior if multi_process is zero.
17852 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
17854 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
17855 * target.h (target_ops): Comment for *_watchpoint to make it clear
17856 the functions can get types '0' and '1'.
17858 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
17860 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
17861 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
17862 * regcache.c (get_regcache): Likewise.
17863 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
17864 * win32-low.c (child_fetch_inferior_registers): Remove check for
17867 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
17868 Pedro Alves <pedro@codesourcery.com>
17870 * target.h (struct target_ops) <supports_multi_process>: New
17872 (target_supports_multi_process): New.
17873 * server.c (handle_query): Even if GDB reports support, only
17874 enable multi-process if the target also supports it. Report
17875 multi-process support only if the target backend supports it.
17876 * linux-low.c (linux_supports_multi_process): New function.
17877 (linux_target_ops): Install it as target_supports_multi_process
17880 2009-05-24 Doug Evans <dje@google.com>
17882 Global renaming of find_thread_pid to find_thread_ptid.
17883 * server.h (find_thread_ptid): Renamed from find_thread_pid.
17884 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
17885 All callers updated.
17887 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
17888 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
17891 * linux-low.c (get_stop_pc): Print pc if debug_threads.
17892 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
17893 (linux_resume_one_lwp): Ditto.
17895 2009-05-23 Doug Evans <dje@google.com>
17897 * linux-low.c (linux_resume_one_lwp): Change type of first arg
17898 from struct inferior_list_entry * to struct lwp_info *.
17899 All callers updated.
17901 2009-05-13 Doug Evans <dje@google.com>
17903 * linux-x86-low.c: Don't include assert.h.
17904 (x86_siginfo_fixup): Use fatal, not assert.
17905 (x86_arch_setup): Fix comment.
17907 2009-05-12 Doug Evans <dje@google.com>
17909 Biarch support for i386/amd64 gdbserver.
17910 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
17911 Add linux-x86-low.c.
17912 (linux-i386-low.o, linux-x86-64-low.o): Delete.
17913 (linux-x86-low.o): Add.
17914 * linux-x86-64-low.c: Delete.
17915 * linux-i386-low.c: Delete.
17916 * linux-x86-low.c: New file.
17917 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
17919 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
17921 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
17922 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
17923 (linux_child_pid_to_exec_file): New function.
17924 (elf_64_header_p, elf_64_file_p): New functions.
17925 (siginfo_fixup): New function.
17926 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
17927 give target a chance to convert layout.
17928 * linux-low.h (linux_target_ops): New member siginfo_fixup.
17929 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
17931 2009-05-07 Doug Evans <dje@google.com>
17933 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
17934 (regsets_store_inferior_registers): Ditto.
17936 2009-05-06 Pedro Alves <pedro@codesourcery.com>
17940 * linux-low.c (must_set_ptrace_flags): Delete.
17941 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
17943 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
17944 `lwp->must_set_ptrace_flags' instead.
17945 (linux_wait_for_event_1): Set ptrace options here.
17946 (linux_wait_1): ... not here.
17948 2009-04-30 Doug Evans <dje@google.com>
17950 * inferiors.c (started_inferior_callback): New function.
17951 (attached_inferior_callback): New function.
17952 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
17953 * server.c (print_started_pid, print_attached_pid): New functions.
17954 (detach_or_kill_for_exit): New function.
17955 (main): Call it instead of for_each_inferior (kill_inferior_callback).
17956 * server.h (have_started_inferiors_p): Declare.
17957 (have_attached_inferiors_p): Declare.
17959 * inferiors.c (remove_process): Fix memory leak, free process.
17960 * linux-low.c (linux_remove_process): New function.
17961 (linux_kill): Call it instead of remove_process.
17962 (linux_detach, linux_wait_1): Ditto.
17964 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
17966 * configure.srv: Add x86 Windows CE target.
17968 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17970 * inferiors.c (get_thread_process): Make global.
17971 * server.h (get_thread_process): Add prototype.
17972 * thread-db.c (find_one_thread): Use get_thread_process
17973 instead of current_process.
17974 (thread_db_get_tls_address): Do not crash if called when
17975 thread layer is not yet initialized.
17977 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17979 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
17980 * spu-low.c (current_tid): Rename to ...
17981 (current_ptid): ... this.
17982 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
17983 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
17984 ptid_get_lwp (current_ptid) instead of current_tid.
17985 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
17986 instead of current_tid. Use find_process_pid to verify pid
17987 argument is valid. Pass proper argument to remove_process.
17988 (spu_thread_alive): Compare current_ptid instead of current_tid.
17989 (spu_resume): Likewise.
17991 2009-04-02 Pedro Alves <pedro@codesourcery.com>
17993 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
17996 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17998 Implement the multiprocess extensions, and add linux multiprocess
18001 * server.h (ULONGEST): Declare.
18002 (struct ptid, ptid_t): New.
18003 (minus_one_ptid, null_ptid): Declare.
18004 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18005 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18006 (struct inferior_list_entry): Change `id' type from unsigned from
18008 (struct sym_cache, struct breakpoint, struct
18009 process_info_private): Forward declare.
18010 (struct process_info): Declare.
18011 (current_process): Declare.
18012 (all_processes): Declare.
18013 (initialize_inferiors): Declare.
18014 (add_thread): Adjust to use ptid_t.
18015 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18016 (add_process, remove_process, find_thread_pid): Declare.
18017 (find_inferior_id): Adjust to use ptid_t.
18018 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18019 (multi_process): Declare.
18020 (push_event): Adjust to use ptid_t.
18021 (read_ptid, write_ptid): Declare.
18022 (prepare_resume_reply): Adjust to use ptid_t.
18023 (clear_symbol_cache): Declare.
18024 * inferiors.c (all_processes): New.
18025 (null_ptid, minus_one_ptid): New.
18026 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18027 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18028 (add_thread): Change unsigned long to ptid. Remove gdb_id
18030 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18031 (gdb_id_to_thread): Rename to ...
18032 (find_thread_pid): ... this. Change unsigned long to ptid.
18033 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18034 (loaded_dll, pull_pid_from_list): Adjust.
18035 (add_process, remove_process, find_process_pid)
18036 (get_thread_process, current_process, initialize_inferiors): New.
18037 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18038 (struct target_waitstatus) <related_pid>: Ditto.
18039 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18040 return type to int.
18041 (struct target_ops) <join>: Add `pid' argument.
18042 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18043 (struct target_ops) <wait>: Add `ptid' field. Change return type
18045 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18046 (mywait): Add `ptid' argument. Change return type to ptid_t.
18047 (target_pid_to_str): Declare.
18048 * target.c (set_desired_inferior): Adjust to use ptids.
18049 (mywait): Add new `ptid' argument. Adjust.
18050 (target_pid_to_str): New.
18051 * mem-break.h (free_all_breakpoints): Declare.
18052 * mem-break.c (breakpoints): Delelete.
18053 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18054 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18055 to use per-process breakpoint list.
18056 (free_all_breakpoints): New.
18057 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18058 (symbol_cache, all_symbols_looked_up): Delete.
18060 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18062 (prepare_resume_reply): Change ptid argument's type from unsigned
18063 long to ptid_t. Adjust. Implement W;process and X;process.
18064 (free_sym_cache, clear_symbol_cache): New.
18065 (look_up_one_symbol): Adjust to per-process symbol cache. *
18066 * server.c (cont_thread, general_thread, step_thread): Change type
18068 (attached): Delete.
18069 (multi_process): New.
18070 (last_ptid): Change type to ptid_t.
18071 (struct vstop_notif) <ptid>: Change type to ptid_t.
18072 (queue_stop_reply, push_event): Change `ptid' argument's type to
18074 (discard_queued_stop_replies): Add `pid' argument.
18075 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18076 changes. Don't reference the `attached' global.
18077 (attach_inferior): Adjust to mywait interface changes.
18078 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18079 features. Handle and report "multiprocess+". Handle
18081 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18083 (handle_v_kill): New.
18084 (handle_v_stopped): Adjust to use target_pid_to_str.
18085 (handle_v_requests): Allow multiple attaches and runs when
18086 multiprocess extensions are in effect. Handle "vKill".
18087 (myresume): Adjust to use ptids.
18088 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18089 (handle_status): Adjust to discard_queued_stop_replies interface
18091 (first_thread_of, kill_inferior_callback)
18092 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18093 (main): Call initialize_inferiors. Adjust to use ptids, killing
18094 and detaching from all inferiors. Handle multiprocess packet
18096 * linux-low.h: Include gdb_proc_service.h.
18097 (struct process_info_private): New.
18098 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18099 <lwpid_of>: Use ptid_get_lwp.
18100 (get_lwp_thread): Adjust.
18101 (struct lwp_info): Add `dead' member.
18102 (find_lwp_pid): Declare.
18103 * linux-low.c (thread_db_active): Delete.
18104 (new_inferior): Adjust comment.
18105 (inferior_pid): Delete.
18106 (linux_add_process): New.
18107 (handle_extended_wait): Adjust.
18108 (add_lwp): Change unsigned long to ptid.
18109 (linux_create_inferior): Add process to processes table. Adjust
18110 to use ptids. Don't set new_inferior here.
18111 (linux_attach_lwp): Rename to ...
18112 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18113 it. Adjust to use ptids.
18114 (linux_attach_lwp): New.
18115 (linux_attach): Add process to processes table. Don't set
18117 (struct counter): New.
18118 (second_thread_of_pid_p, last_thread_of_process_p): New.
18119 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18120 multiple processes.
18121 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18122 processes. Remove process from process table.
18123 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18124 to multiple processes.
18125 (any_thread_of): New.
18126 (linux_detach): Add `pid' argument, and handle it. Remove process
18127 from processes table.
18128 (linux_join): Add `pid' argument. Handle it.
18129 (linux_thread_alive): Change unsighed long argument to ptid_t.
18130 Consider dead lwps as not being alive.
18131 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18132 threads we're not interested in.
18133 (same_lwp, find_lwp_pid): New.
18134 (linux_wait_for_lwp): Change `pid' argument's type from int to
18136 (linux_wait_for_event): Rename to ...
18137 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18138 from int to ptid_t. Adjust.
18139 (linux_wait_for_event): New.
18140 (linux_wait_1): Add `ptid' argument. Change return type to
18141 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18142 that exit from the process table.
18143 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18145 (mark_lwp_dead): New.
18146 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18147 stopping all threads, mark its main lwp as dead.
18148 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18150 (fetch_register, usr_store_inferior_registers)
18151 (regsets_fetch_inferior_registers)
18152 (regsets_store_inferior_registers, linux_read_memory)
18153 (linux_write_memory): Inline `inferior_pid'.
18154 (linux_look_up_symbols): Adjust to use per-process
18155 `thread_db_active'.
18156 (linux_request_interrupt): Adjust to use ptids.
18157 (linux_read_auxv): Inline `inferior_pid'.
18158 (initialize_low): Don't reference thread_db_active.
18159 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18160 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18161 (ps_getpid): Return the pid of the current inferior.
18162 * thread-db.c (proc_handle, thread_agent): Delete.
18163 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18165 (find_one_thread): Change argument type to ptid_t. Adjust to
18167 (maybe_attach_thread): Adjust to per-process data and ptids.
18168 (thread_db_find_new_threads): Ditto.
18169 (thread_db_init): Ditto.
18170 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18171 processes table. Adjust to use ptids.
18172 (spu_kill, spu_detach): Adjust interface. Remove process from
18174 (spu_join, spu_thread_alive): Adjust interface.
18175 (spu_wait): Adjust interface. Remove process from processes
18176 table. Adjust to use ptids.
18177 * win32-low.c (current_inferior_tid): Delete.
18178 (current_inferior_ptid): New.
18179 (debug_event_ptid): New.
18180 (thread_rec): Take a ptid. Adjust.
18181 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18182 (child_delete_thread): Ditto.
18183 (do_initial_child_stuff): Add `attached' argument. Add process to
18185 (child_fetch_inferior_registers, child_store_inferior_registers):
18187 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18188 (win32_attach): Pass 1 to do_initial_child_stuff.
18189 (win32_kill): Adjust interface. Remove process from processes
18191 (win32_detach): Ditto.
18192 (win32_join): Adjust interface.
18193 (win32_thread_alive): Take a ptid.
18194 (win32_resume): Adjust to use ptids.
18195 (get_child_debug_event): Ditto.
18196 (win32_wait): Adjust interface. Remove exiting process from
18199 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18201 Non-stop mode support.
18203 * server.h (non_stop): Declare.
18204 (gdb_client_data, handler_func): Declare.
18205 (delete_file_handler, add_file_handler, start_event_loop):
18207 (handle_serial_event, handle_target_event, push_event)
18208 (putpkt_notif): Declare.
18209 * target.h (enum resume_kind): New.
18210 (struct thread_resume): Replace `step' field by `kind' field.
18211 (TARGET_WNOHANG): Define.
18212 (struct target_ops) <wait>: Add `options' argument.
18213 <supports_non_stop, async, start_non_stop>: New fields.
18214 (target_supports_non_stop, target_async): New.
18215 (start_non_stop): Declare.
18216 (mywait): Add `options' argument.
18217 * target.c (mywait): Add `options' argument. Print child exit
18218 notifications here.
18219 (start_non_stop): New.
18220 * server.c (non_stop, own_buf, mem_buf): New globals.
18221 (struct vstop_notif): New.
18222 (notif_queue): New global.
18223 (queue_stop_reply, push_event, discard_queued_stop_replies)
18224 (send_next_stop_reply): New.
18225 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18227 (attach_inferior): In non-stop mode, don't wait for the target
18229 (handle_general_set): Handle QNonStop.
18230 (handle_query): When handling qC, return the current general
18231 thread, instead of the first thread of the list.
18232 (handle_query): If the backend supports non-stop mode, include
18233 QNonStop+ in the qSupported query response.
18234 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18236 (handle_v_attach, handle_v_run): Handle non-stop mode.
18237 (handle_v_stopped): New.
18238 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18239 (myresume): Adjust to use resume_kind. Handle non-stop.
18240 (queue_stop_reply_callback): New.
18241 (handle_status): Handle non-stop mode.
18242 (main): Clear non_stop flag on reconnection. Use the event-loop.
18243 Refactor serial protocol handling from here ...
18244 (process_serial_event): ... to this new function. When GDB
18245 selects any thread, select one here. In non-stop mode, wait until
18246 GDB acks all pending events before exiting.
18247 (handle_serial_event, handle_target_event): New.
18248 * remote-utils.c (remote_open): Install remote_desc in the event
18250 (remote_close): Remove remote_desc from the event loop.
18251 (putpkt_binary): Rename to...
18252 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18253 (putpkt_binary): New as wrapper around putpkt_binary_1.
18254 (putpkt_notif): New.
18255 (prepare_resume_reply): In non-stop mode, don't change the
18257 * event-loop.c: New.
18258 * Makefile.in (OBJ): Add event-loop.o.
18259 (event-loop.o): New rule.
18261 * linux-low.h (pid_of): Moved here.
18263 (get_lwp_thread): Use lwpid_of.
18264 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18265 * linux-low.c (pid_of): Delete.
18266 (inferior_pid): Use lwpid_of.
18267 (linux_event_pipe): New.
18268 (target_is_async_p): New.
18270 (handle_extended_wait): Use lwpid_of.
18271 (add_lwp): Don't set lwpid field.
18272 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18273 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18274 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18275 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18276 first. Adjust to linux_wait_for_event interface changes. Use
18278 (linux_detach): Don't delete the main lwp here.
18279 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18280 (status_pending_p): Don't consider explicitly suspended lwps.
18281 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18282 pointer. Add OPTIONS argument. Change return type to int. Use
18283 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18284 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18285 pointer. Add status pointer argument. Return a pid instead of a
18286 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18287 changes. In non-stop mode, don't switch to a random thread.
18288 (linux_wait): Rename to...
18289 (linux_wait_1): ... this. Add target_options argument, and handle
18290 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18291 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18292 clean exit and signal exit code. Don't stop all threads in
18293 non-stop mode. In all-stop mode, only stop all threads when
18294 reporting a stop to GDB. Handle explicit thread stop requests.
18295 (async_file_flush, async_file_mark): New.
18297 (send_sigstop): Use lwpid_of.
18298 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18299 interface changes. In non-stop mode, don't switch to a random
18301 (linux_resume_one_lwp): Use lwpid_of.
18302 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18303 (linux_resume_one_thread): ... this. Handle resume_stop. In
18304 non-stop mode, don't look for pending flag in all threads.
18305 (resume_status_pending_p): Don't consider explicitly suspended
18307 (my_waitpid): Reimplement. Emulate __WALL.
18308 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18310 (sigchld_handler, linux_supports_non_stop, linux_async)
18311 (linux_start_non_stop): New.
18312 (linux_target_ops): Register linux_supports_non_stop, linux_async
18313 and linux_start_non_stop.
18314 (initialize_low): Install SIGCHLD handler.
18315 * thread-db.c (thread_db_create_event, find_one_thread)
18316 (thread_db_get_tls_address): Use lwpid_of.
18317 * win32-low.c (win32_detach): Adjust to use resume_kind.
18318 (win32_wait): Add `options' argument.
18319 * spu-low.c (spu_resume): Adjust to use resume_kind.
18320 (spu_wait): Add `options' argument.
18322 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18324 Decouple target code from remote protocol.
18326 * target.h (enum target_waitkind): New.
18327 (struct target_waitstatus): New.
18328 (struct target_ops) <wait>: Return an unsigned long. Take a
18329 target_waitstatus pointer instead of a char pointer.
18330 (mywait): Likewise.
18331 * target.c (mywait): Change prototype to return an unsigned long.
18332 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18333 * server.h (thread_from_wait, old_thread_from_wait): Delete
18335 (prepare_resume_reply): Change prototype to take a
18337 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18338 (last_status, last_ptid): New.
18339 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18340 pid instead of a signal.
18341 (attach_inferior): Remove "status" and "signal" parameters.
18343 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18345 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18346 (handle_v_requests, myresume): Remove "status" and "signal"
18347 parameters. Adjust.
18348 (handle_status): New.
18349 (main): Delete local `status'. Adjust.
18350 * remote-utils.c: Include target.h.
18351 (prepare_resume_reply): Change prototype to take a
18352 target_waitstatus. Adjust.
18354 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18356 * spu-low.c (spu_wait): Adjust.
18357 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18359 (win32_wait): Adjust.
18361 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18363 * target.h (struct thread_resume): Delete leave_stopped member.
18364 (struct target_ops): Add a `n' argument to the `resume' callback.
18365 * server.c (start_inferior): Adjust.
18366 (handle_v_cont, myresume): Adjust.
18367 * linux-low.c (check_removed_breakpoint): Adjust to resume
18368 interface change, and to removed leave_stopped field.
18369 (resume_ptr): Delete.
18370 (struct thread_resume_array): New.
18371 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18372 resume interface change.
18373 (linux_continue_one_thread, linux_queue_one_thread)
18374 (resume_status_pending_p): Check if the resume field is NULL
18375 instead of checking the leave_stopped member.
18376 (linux_resume): Adjust to the target resume interface change.
18377 * spu-low.c (spu_resume): Adjust to the target resume interface
18379 * win32-low.c (win32_detach, win32_resume): Ditto.
18381 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18383 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
18385 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
18387 (linux_continue_one_thread): Only preserve the stepping flag if
18388 there's a pending breakpoint.
18390 2009-03-31 Pedro Alves <pedro@codesourcery.com>
18392 * server.c (main): After the inferior having exited, call
18393 remote_close before exiting gdbserver.
18395 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
18397 Fix size of FPSCR in Power 7 processors.
18398 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
18399 (PPC_FEATURE_HAS_DFP): New #define.
18400 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
18403 2009-03-23 Pedro Alves <pedro@codesourcery.com>
18405 * server.c (handle_query) Whitespace and formatting.
18407 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18409 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
18410 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
18411 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
18412 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
18413 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
18414 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
18415 Makefile.in, configure.ac: Fix whitespace throughout.
18416 * configure: Regenerate.
18418 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18420 * inferiors.c (find_inferior): Make it safe for the callback
18421 function to delete the currently iterated inferior.
18423 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18425 * Makefile.in (linuw_low_h): Move higher.
18426 (thread-db.o): Depend on $(linux_low_h).
18428 2009-03-17 Pedro Alves <pedro@codesourcery.com>
18430 Rename "process" to "lwp" throughout.
18432 * linux-low.c (all_processes): Rename to...
18433 (all_lwps): ... this.
18434 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
18435 (add_process): Rename to ...
18436 (add_lwp): ... this. Adjust.
18437 (linux_create_inferior): Adjust.
18438 (linux_attach_lwp): Adjust.
18439 (linux_attach): Adjust.
18440 (linux_kill_one_process): Rename to ...
18441 (linux_kill_one_lwp): ... this. Adjust.
18442 (linux_kill): Adjust.
18443 (linux_detach_one_process): Rename to ...
18444 (linux_detach_one_lwp): ... this. Adjust.
18445 (linux_detach): Adjust.
18446 (check_removed_breakpoint): Adjust.
18447 (status_pending_p): Adjust.
18448 (linux_wait_for_process): Rename to ...
18449 (linux_wait_for_lwp): ... this. Adjust.
18450 (linux_wait_for_event): Adjust.
18451 (send_sigstop): Adjust.
18452 (wait_for_sigstop): Adjust.
18453 (stop_all_processes): Rename to ...
18454 (stop_all_lwps): ... this.
18455 (linux_resume_one_process): Rename to ...
18456 (linux_resume_one_lwp): ... this. Adjust.
18457 (linux_set_resume_request, linux_continue_one_thread)
18458 (linux_queue_one_thread, resume_status_pending_p)
18459 (usr_store_inferior_registers, regsets_store_inferior_registers)
18460 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18462 * linux-low.h (get_process): Rename to ...
18463 (get_lwp): ... this. Adjust.
18464 (get_thread_process): Rename to ...
18465 (get_thread_lwp): ... this. Adjust.
18466 (get_process_thread): Rename to ...
18467 (get_lwp_thread): ... this. Adjust.
18468 (struct process_info): Rename to ...
18469 (struct lwp_info): ... this.
18470 (all_processes): Rename to ...
18471 (all_lwps): ... this.
18472 * proc-service.c (ps_lgetregs): Adjust.
18473 * thread-db.c (thread_db_create_event, find_one_thread)
18474 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
18476 2009-03-14 Pedro Alves <pedro@codesourcery.com>
18478 * server.c (handle_query): Handle "qAttached".
18480 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
18482 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
18483 GPLv3, update license URL.
18485 2009-03-01 Doug Evans <dje@google.com>
18487 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
18488 (server_h): Add gdb_signals.h.
18489 (signals.o): Update.
18490 * server.h (target_signal_from_host,target_signal_to_host_p)
18491 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
18493 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
18495 * remote-utils.c (getpkt): Also generate remote-debug
18496 information if noack_mode is set.
18498 2009-02-06 Pedro Alves <pedro@codesourcery.com>
18500 * server.c (handle_query): Report qXfer:siginfo:read and
18501 qXfer:siginfo:write as supported and handle them.
18502 * target.h (struct target_ops) <qxfer_siginfo>: New field.
18503 * linux-low.c (linux_xfer_siginfo): New.
18504 (linux_target_ops): Set it.
18506 2009-01-26 Pedro Alves <pedro@codesourcery.com>
18508 * server.c (gdbserver_usage): Mention --remote-debug.
18509 (main): Accept '--remote-debug' switch.
18511 2009-01-18 Doug Evans <dje@google.com>
18513 * regcache.c (new_register_cache): No need to check result of xcalloc.
18514 * server.c (handle_search_memory): Back out calls to xmalloc,
18515 result is checked and error is returned to user upon failure.
18516 (handle_query): Ditto. Add more checks for result of malloc.
18517 (handle_v_cont): Check result of malloc, report error back to
18519 (handle_v_run): Ditto. Call freeargv.
18520 * server.h (freeargv): Declare.
18521 * utils.c (freeargv): New fn.
18523 2009-01-15 Doug Evans <dje@google.com>
18525 * gdbreplay.c (perror_with_name): Make arg const char *.
18526 * server.h (target_signal_to_name): Make return type const char *.
18527 * thread-db.c (thread_db_err_str): Make return type const char *.
18528 * utils.c (perror_with_name): Make arg const char *.
18530 2009-01-14 Pedro Alves <pedro@codesourcery.com>
18532 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
18533 when handling a EXIT_PROCESS_DEBUG_EVENT.
18535 2009-01-06 Joel Brobecker <brobecker@adacore.com>
18537 * gdbreplay.c (gdbreplay_version): Update copyright year.
18538 * server.c (gdbserver_version): Likewise.
18540 2009-01-05 Doug Evans <dje@google.com>
18542 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
18543 (handle_extended_wait): Improve comment.
18545 2008-12-13 Doug Evans <dje@google.com>
18547 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
18548 * server.h (ATTR_MALLOC): New macro.
18549 (xmalloc,xcalloc,xstrdup): Declare.
18550 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
18551 * inferiors.c: Ditto.
18552 * linux-low.c: Ditto.
18553 * mem-break.c: Ditto.
18554 * regcache.c: Ditto.
18555 * remote-utils.c: Ditto.
18558 * win32-low.c: Ditto.
18560 2008-12-12 Doug Evans <dje@google.com>
18562 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
18563 in debugging printf.
18565 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
18567 2008-12-09 Doug Evans <dje@google.com>
18569 * linux-low.h (struct process_info): Delete member tid, unused.
18570 * thread-db.c (find_one_thread): Update.
18571 (maybe_attach_thread): Update.
18573 2008-12-02 Pedro Alves <pedro@codesourcery.com>
18575 * target.h (struct target_ops): Add qxfer_osdata member.
18576 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
18578 (linux_qxfer_osdata): New functions.
18579 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
18581 * server.c (handle_query): Handle "qXfer:osdata:read:".
18582 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
18583 (buffer_xml_printf): New functions.
18584 * server.h (struct buffer): New.
18585 (buffer_grow_str, buffer_grow_str0): New macros.
18586 (buffer_grow, buffer_free, buffer_init, buffer_finish)
18587 (buffer_xml_printf): Declare.
18589 2008-11-24 Doug Evans <dje@google.com>
18591 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
18593 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
18595 * server.c (handle_v_run): Always use the supplied argument list.
18597 2008-11-19 Bob Wilson <bob.wilson@acm.org>
18599 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
18600 (xtensa_regmap_table): Add entry for scompare1.
18602 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
18604 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
18605 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
18606 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
18607 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
18608 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
18609 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
18610 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
18611 XML target descriptions.
18612 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
18613 when inferior is running on an ISA 2.05 or later processor. Add
18614 special case to return offset for full 64-bit slot of FPSCR when
18617 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
18619 * Makefile.in (SFILES, clean): Added sparc64 files.
18620 (reg-sparc64.o, reg-sparc64.c): New.
18621 * configure.srv (sparc*-*-linux*): New configuration.
18622 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
18623 syscall arguments for SPARC.
18624 (regsets_store_inferior_registers): Likewise.
18625 * linux-sparc-low.c: New file.
18627 2008-10-21 Doug Evans <dje@google.com>
18629 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
18630 (READLINE_DIR,READLINE_DEP): Delete.
18631 (INTERNAL_CFLAGS): Update.
18632 (LINTFLAGS): Update.
18634 2008-10-10 Pedro Alves <pedro@codesourcery.com>
18636 * server.c (handle_v_run): If GDB didn't specify an argv, use the
18637 whole argv from the last run, not just argv[0].
18639 2008-09-08 Pedro Alves <pedro@codesourcery.com>
18641 * regcache.c (new_register_cache): Return NULL if the register
18642 cache size isn't known yet.
18643 (free_register_cache): Avoid dereferencing a NULL regcache.
18645 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18647 * configure.srv: Merge MIPS and MIPS64.
18649 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
18651 * Makefile.in (uninstall): Apply $(EXEEXT) too.
18653 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
18655 * Makefile.in: Add required vsx dependencies.
18657 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
18658 Declare init_registers_powerpc_vsx32l.
18659 Declare init_registers_powerpc_vsx64l.
18660 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
18661 (ppc_arch_setup): Check for VSX in hwcap.
18662 (ppc_fill_vsxregset): New function.
18663 (ppc_store_vsxregset): New function.
18664 Add new VSX entry in regset_info target_regsets.
18666 * configure.srv: Add new VSX dependencies.
18668 2008-08-12 Pedro Alves <pedro@codesourcery.com>
18670 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
18671 (remote_open): Set or clear transport_is_reliable.
18672 (putpkt_binary): Don't expect acks in noack mode.
18673 (getpkt): Don't send ack/nac in noack mode.
18674 * server.c (handle_general_set): Handle QStartNoAckMode.
18675 (handle_query): If connected by tcp pass QStartNoAckMode+ in
18677 (main): Reset noack_mode on every connection.
18678 * server.h (noack_mode): Declare.
18680 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18682 * Makefile.in (GDBREPLAY_OBS): New variable.
18683 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
18685 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
18686 Daniel Jacobowitz <dan@codesourcery.com>
18688 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
18689 (usr_store_inferior_registers): Likewise.
18690 (regsets_store_inferior_registers): Likewise.
18692 2008-07-31 Rolf Jansen <rj@surtec.com>
18693 Pedro Alves <pedro@codesourcery.com>
18695 * configure.ac: Check for memmem declaration.
18696 * server.c [HAVE_MALLOC_H]: Include malloc.h.
18697 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
18698 (disable_packet_qfThreadInfo): Unconditionally compile.
18699 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
18700 * configure, config.in: Regenerate.
18702 2008-07-28 Doug Kwan <dougkwan@google.com>
18704 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
18705 (linux_write_memory): Remove declaration of errno.
18707 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
18709 * linux-low.c (handle_extended_wait): Do not use "status"
18710 variable uninitialized.
18712 2008-07-07 Pedro Alves <pedro@codesourcery.com>
18714 * server.c (handle_v_attach): Inhibit reporting dll changes.
18716 2008-06-27 Pedro Alves <pedro@codesourcery.com>
18718 * remote-utils.c (prepare_resume_reply): If requested, don't
18719 output "thread:TID" in the T stop reply.
18721 * server.c (disable_packet_vCont, disable_packet_Tthread)
18722 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
18723 (handle_query): If requested, disable support for qC, qfThreadInfo
18725 (handle_v_requests): If requested, disable support for vCont.
18726 (gdbserver_show_disableable): New.
18727 (main): Handle --disable-packet and --disable-packet=LIST.
18729 * server.h (disable_packet_vCont, disable_packet_Tthread)
18730 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
18732 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
18734 * server.c (gdbserver_usage): Mention --version.
18736 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
18738 * Makefile.in (gdbreplay.o): New rule.
18740 2008-06-06 Joseph Myers <joseph@codesourcery.com>
18742 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
18743 message, not gdbserver.
18745 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
18746 Nathan Sidwell <nathan@codesourcery.com>
18747 Joseph Myers <joseph@codesourcery.com>
18749 * acinclude.m4: Include ../../config/acx.m4.
18750 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
18751 * configure, config.in: Regenerate.
18752 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
18753 * server.c (gdbserver_version): Print PKGVERSION.
18754 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
18755 (main): Adjust gdbserver_usage calls.
18756 * gdbreplay.c (version, host_name): Add declarations.
18757 (gdbreplay_version, gdbreplay_usage): New.
18758 (main): Accept --version and --help options.
18760 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
18762 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
18763 (arm_breakpoint_at): Handle Thumb.
18764 (the_low_target): Add comment.
18766 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
18768 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
18770 2008-05-09 Doug Evans <dje@google.com>
18772 * server.h (decode_search_memory_packet): Declare.
18773 * remote-utils.c (decode_search_memory_packet): New fn.
18774 * server.c (handle_search_memory_1): New fn.
18775 (handle_search_memory): New fn.
18776 (handle_query): Process qSearch:memory packets.
18778 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
18780 * regcache.c (registers_length): Remove.
18781 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
18782 full register packet.
18783 * regcache.h (registers_length): Remove prototype.
18784 * server.h (PBUFSIZ): Define to 16384.
18786 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
18788 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
18789 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
18790 powerpc-64l.o, and powerpc-altivec64l.o.
18791 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
18792 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
18793 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
18794 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
18795 rs6000/power-linux.xml, and rs6000/power64-linux.xml
18798 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
18799 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
18800 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
18801 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
18802 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
18803 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
18804 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
18805 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
18806 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
18807 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
18810 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
18811 (init_registers_powerpc_32l): ... this new prototype.
18812 (init_registers_powerpc_32): Remove, replace by ...
18813 (init_registers_powerpc_altivec32l): ... this new prototype.
18814 (init_registers_powerpc_e500): Remove, replace by ...
18815 (init_registers_powerpc_e500l): ... this new prototype.
18816 (init_registers_ppc64): Remove, replace by ...
18817 (init_registers_powerpc_64l): ... this new prototype.
18818 (init_registers_powerpc_64): Remove, replace by ...
18819 (init_registers_powerpc_altivec64l): ... this new prototype.
18820 (ppc_num_regs): Set to 73.
18821 (PT_ORIG_R3, PT_TRAP): Define if necessary.
18822 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
18823 (ppc_cannot_store_register): Handle orig_r3 and trap.
18824 (ppc_arch_setup): Update init_registers_... calls.
18825 (ppc_fill_gregset): Handle orig_r3 and trap.
18827 * inferiors.c (clear_inferiors): Reset current_inferior.
18829 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
18831 * acinclude.m4: Add override.m4.
18832 * configure: Regenerate.
18834 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18836 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
18837 initial call to init_register_ppc64.
18839 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18841 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
18842 single powerpc*-*-linux* case.
18843 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
18845 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
18847 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
18848 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
18850 * linux-ppc-low.c: Include <elf.h>.
18851 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
18852 (ppc_hwcap): New global variable.
18853 (ppc_regmap): Remove __SPE__ #ifdef sections.
18854 (ppc_regmap_e500): New global variable.
18855 (ppc_cannot_store_register): Update __SPE__ special case.
18856 (ppc_get_hwcap): New function.
18857 (ppc_arch_setup): Use it to determine whether inferior supports
18858 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
18859 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
18860 Do not access registers if target does not support AltiVec.
18861 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
18862 Do not access registers if target does not support SPE.
18863 (target_regsets): Unconditionally include AltiVec and SPE regsets.
18865 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
18867 * linux-low.c (disabled_regsets, num_regsets): New.
18868 (use_regsets_p): Delete.
18869 (linux_wait_for_process): Clear disabled_regsets.
18870 (regsets_fetch_inferior_registers): Check and set it.
18871 (regsets_store_inferior_registers): Likewise.
18872 (linux_fetch_registers, linux_store_registers): Do not use
18874 (initialize_low): Allocate disabled_regsets.
18876 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
18878 * Makefile.in (LIBOBJS): New.
18879 (OBS): Use LIBOBJS.
18880 (memmem.o): New rule.
18881 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
18882 * configure: Regenerated.
18884 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
18886 * server.c (handle_query): Never return "unsupported" for
18887 qXfer:features:read queries.
18889 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
18891 * server.c (get_features_xml): Fix inverted condition.
18892 (handle_query): Always support qXfer:feature:read.
18894 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
18896 * server.c (wrapper_argv): New.
18897 (start_inferior): Handle wrapper_argv. If set, expect an extra
18899 (gdbserver_usage): Document --wrapper.
18900 (main): Parse --wrapper.
18902 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18904 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
18905 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
18906 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
18907 (ppc_set_pc): Likewise.
18908 (ppc_arch_setup): New function.
18909 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
18910 of collect_register.
18911 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
18913 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18915 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
18916 instead of linux-ppc64-low.o.
18917 * linux-ppc64-low.c: Remove file.
18918 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
18919 (linux-ppc64-low.o): Remove rule.
18921 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
18922 (init_registers_powerpc_64): Likewise.
18923 (ppc_regmap): Conditionally define depending on __powerpc64__.
18924 (ppc_cannot_store_register): Do not special-case "fpscr" when
18925 compiled on __powerpc64__.
18926 (ppc_collect_ptrace_register): New function.
18927 (ppc_supply_ptrace_register): New function.
18928 (ppc_breakpoint): Change type to "unsigned int".
18929 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
18930 (the_low_target): Conditionally provide initializers for the
18931 arch_setup member depending on __powerpc64__. Install
18932 collect_ptrace_register and supply_ptrace_register members.
18934 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18936 * regcache.h (gdbserver_xmltarget): Add extern declaration.
18937 * server.c (gdbserver_xmltarget): Define.
18938 (get_features_xml): Use it to replace "target.xml" and arch_string.
18940 * configure.srv: Remove srv_xmltarget. Add XML files that were
18941 mentioned there to srv_xmlfiles instead. Remove conditional tests
18942 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
18943 srv_xmlfiles and srv_regobj to include all possible choices.
18944 * configure.ac (srv_xmltarget): Remove.
18945 (srv_xmlfiles): Do not add "target.xml".
18946 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
18947 checks for supplementary target information.
18948 * configure: Regenerate.
18949 * Makefile.in (XML_TARGET): Remove.
18950 (target.xml): Remove rule.
18951 (clean): Do not clean up target.xml.
18952 (.PRECIOUS): Do not mention target.xml.
18954 * target.h (struct target_ops): Remove arch_string member.
18955 * linux-low.c (linux_arch_string): Remove.
18956 (linux_target_ops): Remove arch_string initializer.
18957 * linux-low.h (struct linux_target_ops): Remove arch_string member.
18958 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
18959 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
18960 * spu-low.c (spu_arch_string): Remove.
18961 (spu_target_ops): Remove arch_string initializer.
18962 * win32-low.c (win32_arch_string): Remove.
18963 (win32_target_ops): Remove arch_string initializer.
18964 * win32-low.h (struct win32_target_ops): Remove arch_string member.
18965 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
18966 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
18968 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18970 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
18971 by collect_ptrace_register and supply_ptrace_register hooks.
18972 * linux-low.c (fetch_register): Use supply_ptrace_register callback
18973 instead of checking for the_low_target.left_pad_xfer.
18974 (usr_store_inferior_registers): Use collect_ptrace_register callback
18975 instead of checking for the_low_target.left_pad_xfer.
18977 * linux-s390-low.c (s390_collect_ptrace_register): New function.
18978 (s390_supply_ptrace_register): Likewise.
18979 (s390_fill_gregset): Call s390_collect_ptrace_register.
18980 (the_low_target): Update.
18982 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
18983 (ppc_supply_ptrace_register): Likewise.
18984 (the_low_target): Update.
18986 * linux-i386-low.c (the_low_target): Update.
18987 * linux-x86-64-low.c (the_low_target): Update.
18989 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18991 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
18992 reg-s390.o and reg-s390x.o.
18994 * linux-low.c (new_inferior): New global variable.
18995 (linux_create_inferior, linux_attach): Set it.
18996 (linux_wait_for_process): Call the_low_target.arch_setup after the
18997 target has stopped for the first time.
18998 (initialize_low): Do not call the_low_target.arch_setup.
19000 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19001 (s390_set_pc): Likewise.
19002 (s390_arch_setup): New function.
19003 (the_low_target): Use s390_arch_setup as arch_setup routine.
19005 * regcache.c (realloc_register_cache): New function.
19006 (set_register_cache): Call it for each existing regcache.
19008 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19010 * server.h (init_registers): Remove prototype.
19012 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19013 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19014 instead of init_registers ().
19015 * linux-arm-low.c (init_registers_arm): Add prototype.
19016 (init_registers_arm_with_iwmmxt): Likewise.
19017 (the_low_target): Add initializer for arch_setup field.
19018 * linux-cris-low.c (init_registers_cris): Add prototype.
19019 (the_low_target): Add initializer for arch_setup field.
19020 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19021 (the_low_target): Add initializer for arch_setup field.
19022 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19023 (the_low_target): Add initializer for arch_setup field.
19024 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19025 (the_low_target): Add initializer for arch_setup field.
19026 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19027 (the_low_target): Add initializer for arch_setup field.
19028 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19029 (the_low_target): Add initializer for arch_setup field.
19030 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19031 (init_registers_mips64_linux): Likewise.
19032 (the_low_target): Add initializer for arch_setup field.
19033 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19034 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19035 (the_low_target): Add initializer for arch_setup field.
19036 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19037 (init_registers_powerpc_64): Likewise.
19038 (the_low_target): Add initializer for arch_setup field.
19039 * linux-s390-low.c (init_registers_s390): Add prototype.
19040 (init_registers_s390x): Likewise.
19041 (the_low_target): Add initializer for arch_setup field.
19042 * linux-sh-low.c (init_registers_sh): Add prototype.
19043 (the_low_target): Add initializer for arch_setup field.
19044 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19045 (the_low_target): Add initializer for arch_setup field.
19046 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19047 (the_low_target): Add initializer for arch_setup field.
19049 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19050 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19051 instead of init_registers ().
19052 * win32-arm-low.c (init_registers_arm): Add prototype.
19053 (the_low_target): Add initializer for arch_setup field.
19054 * win32-i386-low.c (init_registers_i386): Add prototype.
19055 (the_low_target): Add initializer for arch_setup field.
19057 * spu-low.c (init_registers_spu): Add prototype.
19058 (initialize_low): Call initialie_registers_spu () instead of
19059 initialize_registers ().
19061 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19063 * server.c (handle_v_requests): When handling the vRun and vAttach
19064 packets, if already debugging a process, don't kill it. Return an
19067 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19069 * server.c (handle_query): Correct length check.
19071 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19073 * win32-low.c (do_initial_child_stuff): Add process handle
19074 parameter. Set current_process_handle and current_process_id from the
19075 parameters. Clear globals.
19076 (win32_create_inferior): Don't set current_process_handle and
19077 current_process_id here. Instead pass them on the call to
19078 do_initial_child_stuff.
19079 (win32_attach): Likewise.
19080 (win32_clear_inferiors): New.
19081 (win32_kill): Don't close the current process handle or the
19082 current thread handle here. Instead call win32_clear_inferiors.
19083 (win32_detach): Don't open a new handle to the process. Call
19084 win32_clear_inferiors.
19085 (win32_join): Don't rely on current_process_handle; open a new
19086 handle using the process id.
19087 (win32_wait): Call win32_clear_inferiors when the inferior process
19090 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19092 * server.c (monitor_show_help): Add "exit".
19094 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19096 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19097 (clean): Add reg-xtensa.c.
19098 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19099 * configure.srv (xtensa*-*-linux*) New target.
19100 * linux-xtensa-low.c: New.
19101 * xtensa-xtregs.c: New.
19103 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19105 * hostio.c: Don't include errno.h.
19106 (errno_to_fileio_errno): Move to hostio-errno.
19107 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19108 error number outputting to the target->hostio_last_error callback.
19109 (hostio_packet_error): Use FILEIO_EINVAL directly.
19110 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19111 calls to hostio_error.
19112 * hostio-errno.c: New.
19113 * server.h (hostio_last_error_from_errno): Declare.
19114 * target.h (target_ops): Add hostio_last_error member.
19115 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19116 as hostio_last_error handler.
19117 * spu-low.c (spu_target_ops): Likewise.
19118 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19119 (wince_hostio_last_error): New functions.
19120 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19121 as hostio_last_error handler.
19122 (win32_target_ops) [!_WIN32_WCE]: Register
19123 hostio_last_error_from_errno as hostio_last_error handler.
19124 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19125 (hostio-errno.o): New rule.
19126 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19127 * configure.srv (srv_hostio_err_objs): New variable. Default to
19129 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19130 * configure: Regenerate.
19132 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19134 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19135 (linux_kill, linux_detach): Clean up the process list.
19136 * remote-utils.c (remote_open): Improve port number parsing.
19137 (putpkt_binary, input_interrupt): Only send interrupts if the target
19139 * server.c (extended_protocol): Make static.
19140 (attached): Define earlier.
19141 (exit_requested, response_needed, program_argv): New variables.
19142 (target_running): New.
19143 (start_inferior): Clear attached here.
19144 (attach_inferior): Set attached here.
19145 (require_running): Define.
19146 (handle_query): Use require_running and target_running. Implement
19148 (handle_v_attach, handle_v_run): New.
19149 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19150 (gdbserver_usage): Update.
19151 (main): Redo argument parsing. Handle --debug and --multi. Handle
19152 --attach along with other options or after the port. Save
19153 program_argv. Support no initial program. Resynchronize
19154 communication with GDB after an error. Handle "monitor exit".
19155 Use require_running and target_running. Always allow the extended
19156 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19157 restart in extended mode.
19158 * README: Refer to the GDB manual. Update --attach usage.
19160 2007-12-20 Andreas Schwab <schwab@suse.de>
19162 * linux-low.c (STACK_SIZE): Define.
19163 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19164 (linux_test_for_tracefork): Likewise.
19166 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19168 * linux-low.c (linux_wait_for_event): Update messages. Do not
19169 reinsert auto-delete breakpoints.
19170 * mem-break.c (struct breakpoint): Change return type of handler to
19172 (set_breakpoint_at): Update handler type.
19173 (reinsert_breakpoint_handler): Return 1 instead of calling
19175 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19177 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19178 * mem-break.h (set_breakpoint_at): Update handler type.
19179 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19180 * win32-low.c (auto_delete_breakpoint): New.
19181 (get_child_debug_event): Use it.
19183 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19185 * configure.ac: Check for pread and pwrite.
19186 * hostio.c (handle_pread): Fall back to lseek and read.
19187 (handle_pwrite): Fall back to lseek and write.
19188 * config.in, configure: Regenerated.
19190 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19192 * server.c (myresume): Add own_buf argument.
19193 (main): Update calls.
19195 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19197 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19198 * remote-utils.c (remote_open): Do not call disable_async_io.
19199 (block_async_io): Delete.
19200 (unblock_async_io): Make static.
19201 (initialize_async_io): New.
19202 * server.c (handle_v_cont): Handle async I/O here.
19203 (myresume): Likewise. Move other common resume tasks here...
19204 (main): ... from here. Call initialize_async_io. Disable async
19205 I/O before the main loop.
19206 * server.h (initialize_async_io): Declare.
19207 (block_async_io, unblock_async_io): Delete prototypes.
19208 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19210 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19212 * remote-utils.c (readchar): Allow binary data in received messages.
19214 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19216 * win32-low.c (attaching): New global.
19217 (win32_create_inferior): Clear the `attaching' global.
19218 (win32_attach): Set the `attaching' global.
19219 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19220 attaching. Only set a breakpoint at the entry point if not
19223 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19225 * server.c (main): Don't report dll events on the initial
19226 connection on attaches.
19228 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19230 * server.c (main): Relax numerical bases supported for the pid of
19231 the --attach command line argument.
19233 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19235 * win32-low.c (win32_attach): Call OpenProcess before
19236 DebugActiveProcess, not after. Add last error output to error
19239 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19241 * win32-low.c (win32_get_thread_context)
19242 (win32_set_thread_context): New functions.
19243 (thread_rec): Use win32_get_thread_context.
19244 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19245 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19248 2007-12-03 Leo Zayas
19249 Pedro Alves <pedro_alves@portugalmail.pt>
19251 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19253 (child_add_thread): Minor cleanup.
19254 (child_continue): Resume artificially suspended threads before
19255 calling ContinueDebugEvent.
19256 (suspend_one_thread): New.
19257 (fake_breakpoint_event): New.
19258 (get_child_debug_event): Change return type to int. Check here if
19259 gdb sent an interrupt request. If a soft interrupt was requested,
19260 fake a breakpoint event. Return 0 if there is no event to handle,
19262 (win32_wait): Don't check here if gdb sent an interrupt request.
19263 Ensure there is a valid event to handle.
19264 (win32_request_interrupt): Add soft interruption method as last
19267 2007-12-03 Leo Zayas
19268 Pedro Alves <pedro_alves@portugalmail.pt>
19270 * win32-low.h (win32_thread_info): Add descriptions to the
19271 structure members. Replace `suspend_count' counter by a
19273 * win32-low.c (thread_rec): Update condition of when to get the
19274 context from the inferior. Rely on ContextFlags being set if it
19275 has already been retrieved. Only suspend the inferior thread if
19276 we haven't already. Warn if that fails.
19277 (continue_one_thread): s/suspend_count/suspended/. Only call
19278 ResumeThread once. Warn if that fails.
19280 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19282 * win32-low.c (win32_wait): Don't read from the inferior when it
19283 has already exited.
19285 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19287 * Makefile.in (win32_low_h): New variable.
19288 (win32-low.o): Add dependency on $(win32_low_h).
19289 (win32-arm-low.o, win32-i386-low.o): New rules.
19291 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19293 * hostio.c: Correct copyright year.
19295 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19297 * Makefile.in (OBS): Add hostio.o.
19298 (hostio.o): New rule.
19299 * server.h (handle_vFile): Declare.
19300 * hostio.c: New file.
19301 * server.c (handle_v_requests): Take packet_len and new_packet_len
19302 for binary packets. Call handle_vFile.
19303 (main): Update call to handle_v_requests.
19305 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19307 * linux-low.c: Include <sched.h>.
19309 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19311 * linux-low.c (linux_tracefork_grandchild): New.
19312 (linux_tracefork_child): Use clone.
19313 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19315 2007-10-31 Joel Brobecker <brobecker@adacore.com>
19317 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19319 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19321 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19323 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19325 * inferiors.c (change_inferior_id): Delete.
19326 (add_pid_to_list, pull_pid_from_list): New.
19327 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19328 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19329 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19330 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19331 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19332 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19333 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19334 (using_threads): Always set to 1.
19335 (handle_extended_wait): New.
19336 (add_process): Do not set TID.
19337 (linux_create_inferior): Set must_set_ptrace_flags.
19338 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19339 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19340 (linux_thread_alive): Rename TID argument to LWPID.
19341 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19342 (linux_wait_for_event): Do not use TID or check using_threads. Update
19343 call to dead_thread_notify. Call handle_extended_wait.
19344 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19345 (send_sigstop): Delete sigstop_sent.
19346 (wait_for_sigstop): Avoid TID.
19347 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19348 (linux_test_for_tracefork): New.
19349 (linux_lookup_signals): Use thread_db_active and
19350 linux_supports_tracefork_flag.
19351 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19352 * linux-low.h (get_process_thread): Avoid TID.
19353 (struct process_ifo): Move thread_known and tid to the end. Remove
19355 (linux_attach_lwp, thread_db_init): Update prototypes.
19356 * server.h (change_inferior_id): Delete prototype.
19357 (add_pid_to_list, pull_pid_from_list): New prototypes.
19358 * thread-db.c (thread_db_use_events): New.
19359 (find_first_thread): Rename to...
19360 (find_one_thread): ...this. Update callers and messages. Do not
19361 call fatal. Check thread_db_use_events. Do not call
19362 change_inferior_id or new_thread_notify.
19363 (maybe_attach_thread): Update. Do not call new_thread_notify.
19364 (thread_db_init): Set thread_db_use_events. Check use_events.
19365 * utils.c (fatal, warning): Correct message prefix.
19367 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19369 * Makefile.in (clean): Remove new files.
19370 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19371 (powerpc-64.o, powerpc-64.c): New rules.
19372 * configure.srv: Use alternate register sets for powerpc64-*-linux*
19373 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
19375 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
19377 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
19378 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
19379 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
19380 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
19381 (target_regsets): Add AltiVec and SPE register sets.
19382 * configure.ac: Check for AltiVec and SPE.
19383 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
19384 (ppc_fill_vrregset, ppc_store_vrregset): New.
19385 (target_regsets): Add AltiVec register set.
19386 * configure: Regenerated.
19388 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
19390 * linux-low.c (O_LARGEFILE): Define.
19391 (linux_read_memory): Use /proc/PID/mem.
19392 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
19393 * configure, config.in: Regenerated.
19395 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19397 * linux-low.c (linux_wait_for_event): Do not pass signals while
19400 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19402 * win32-low.c (create_process): New.
19403 (win32_create_inferior): Use create_process instead of
19404 CreateProcess. If create_process failed retry appending an ".exe"
19405 suffix. Store the GetLastError result immediatelly after
19406 create_process calls and use it on the call to error.
19408 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19410 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
19412 2007-08-23 Joel Brobecker <brobecker@adacore.com>
19414 * configure.ac: Switch license to GPLv3.
19416 2007-08-01 Michael Snyder <msnyder@access-company.com>
19418 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
19420 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
19422 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
19424 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
19425 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
19426 CloseToolhelp32Snapshot.
19427 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
19428 CloseToolhelp32Snapshot.
19430 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
19432 * server.c (main): Check for inferior exit before main loop.
19434 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
19436 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
19437 instead of on tmp_desc.
19439 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
19440 Daniel Jacobowitz <dan@codesourcery.com>
19442 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
19443 (add_thread): Minor cleanups.
19444 (clear_inferiors): Move lower in the file. Clear the DLL
19446 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
19447 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
19448 (xml_escape_text): New.
19449 * server.c (handle_query): Handle qXfer:libraries:read. Report it
19451 (handle_v_cont): Report errors.
19452 (gdbserver_version): Update.
19453 (main): Correct size of own_buf. Do not report initial DLL events.
19454 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
19455 (unloaded_dll, xml_escape_text): New.
19456 * win32-low.c (enum target_waitkind): Update comments.
19457 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
19458 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
19459 (win32_EnumProcessModules, win32_GetModuleInformation)
19460 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
19461 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
19462 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
19463 (win32_Module32First, win32_Module32Next, load_toolhelp)
19464 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
19465 (get_child_debug_event): Handle DLL events.
19466 (win32_wait): Likewise.
19468 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19470 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
19471 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
19473 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19475 * win32-low.c (handle_output_debug_string): Ignore event if not
19478 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19480 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
19482 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
19484 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
19486 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19488 * inferiors.c (change_inferior_id): Add comment.
19489 * linux-low.c (check_removed_breakpoint): Add an early
19490 prototype. Improve debug output.
19491 (linux_attach): Doc update.
19492 (linux_detach_one_process, linux_detach): Clean up before releasing
19494 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
19495 * linux-low.h (struct process_info): Doc improvement.
19496 * mem-break.c (delete_all_breakpoints): New.
19497 * mem-break.h (delete_all_breakpoints): New prototype.
19498 * thread-db.c (find_first_thread): New.
19499 (thread_db_create_event): Call it instead of
19500 thread_db_find_new_threads. Clean up unused variables.
19501 (maybe_attach_thread): Remove first thread handling.
19502 (thread_db_find_new_threads): Use find_first_thread.
19503 (thread_db_get_tls_address): Likewise.
19505 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
19507 * thread-db.c (thread_db_find_new_threads): Add prototype.
19508 (thread_db_create_event): Check for the main thread before adding
19510 (maybe_attach_thread): Only enable event reporting if TID == 0.
19511 (thread_db_get_tls_address): Check for new threads.
19513 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
19515 * linux-low.c (linux_create_inferior): Try execv before execvp.
19516 * spu-low.c (spu_create_inferior): Likewise.
19518 2007-06-13 Mike Frysinger <vapier@gentoo.org>
19520 * linux-low.c (linux_create_inferior): Change execv to execvp.
19521 * spu-low.c (spu_create_inferior): Likewies.
19523 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
19525 * Makefile.in (clean): Clean new files instead of deleted ones.
19526 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
19527 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
19529 * configure.srv: Specify XML files and new regformats for MIPS and
19531 * linux-mips-low.c (mips_num_regs): Set to only used registers.
19532 (mips_regmap): Do not fetch $0. Remove unused registers. Add
19533 an entry for the restart register.
19534 (mips_cannot_fetch_register, mips_cannot_store_register)
19535 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
19536 register names to match the XML descriptions.
19537 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
19538 restart register instead of $0.
19540 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19541 Markus Deuling <deuling@de.ibm.com>
19543 * remote-utils.c (decode_xfer_write): New function.
19544 * server.h (decode_xfer_write): Add prototype.
19545 * server.c (handle_query): Add PACKET_LEN argument. Support
19546 qXfer:spu:read and qXfer:spu:write packets.
19547 (main): Pass packet_len to handle_query.
19548 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
19549 * target.h (target_ops): Add qxfer_spu.
19551 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19553 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
19554 accessing non-seekable spufs files.
19556 2007-05-16 Markus Deuling <deuling@de.ibm.com>
19558 * server.c (handle_query): Add reply for qC packet.
19560 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19561 Leo Zayas <lerele@champenstudios@com>
19563 * server.h (check_remote_input_interrupt_request): New function.
19564 * remote_utils.c (INVALID_DESCRIPTOR): New define.
19565 (remote_desc): Initialize with INVALID_DESCRIPTOR.
19566 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
19567 (check_remote_input_interrupt_request): New function.
19568 * server.h (check_remote_input_interrupt_request): Declare.
19569 * win32-low.c (winapi_DebugBreakProcess,
19570 winapi_GenerateConsoleCtrlEvent): New typedefs.
19571 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
19573 (win32_wait): Check for remote interrupt request
19574 with check_remote_input_interrupt_request.
19575 (win32_request_interrupt): New function.
19576 (win32_target_op): Set request_interrupt to win32_request_interrupt.
19578 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19580 * win32-low.c (debug_registers_changed,
19581 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
19582 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
19583 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
19584 (thread_rec): Get context using the low target.
19585 (child_add_thread): Call thread_added on the low target,
19586 which does the same thing.
19588 (do_initial_child_stuff): Remove debug registers references.
19589 Set context using the low target. Resume threads after
19590 setting the contexts.
19591 (child_continue): Remove dead variable. Remove debug
19592 registers references.
19593 (child_fetch_inferior_registers): Go through the low target.
19594 (do_child_store_inferior_registers): Remove.
19595 (child_store_inferior_registers): Go through the low target.
19596 (win32_resume): Remove debug registers references.
19597 Set context using the low target.
19598 (handle_exception): Change return type to void. Don't record
19599 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
19600 first chance exception.
19601 (get_child_debug_event): Change return type to void. Remove
19602 goto loop. Always return after waiting for debug event.
19603 (win32_wait): Convert to switch statement. Handle spurious
19606 * win32-i386-low.c (debug_registers_changed,
19607 debug_registers_used): New.
19608 (initial_stuff): Rename to ...
19609 (i386_initial_stuff): ... this. Clear debug registers
19611 (store_debug_registers): Delete.
19612 (i386_get_thread_context): New.
19613 (load_debug_registers): Delete.
19614 (i386_set_thread_context): New.
19615 (i386_thread_added): New.
19616 (single_step): Rename to ...
19617 (i386_single_step): ... this.
19618 (do_fetch_inferior_registers): Rename to ...
19619 (i386_fetch_inferior_register): ... this.
19620 (i386_store_inferior_register): New.
19621 (the_low_target): Adapt to new interface.
19623 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
19624 (arm_get_thread_context): New.
19625 (arm_set_thread_context): New.
19627 (do_fetch_inferior_registers): Rename to ...
19628 (arm_fetch_inferior_register): ... this.
19629 (arm_store_inferior_register): New.
19630 (arm_wince_breakpoint): Reimplement as unsigned long.
19631 (arm_wince_breakpoint_len): Define.
19632 (the_low_target): Adapt to new interface.
19634 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
19635 load_debug_registers. Add get_thread_context, set_thread_context,
19636 thread_added and store_inferior_register. Rename
19637 fetch_inferior_registers to fetch_inferior_register.
19638 (regptr): Remove declaration.
19640 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19642 * linux-low.c (linux_detach): Change return type to int. Return 0.
19643 * spu-low.c (spu_detach): Likewise.
19645 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19647 * target.h (target_ops): Change return type of detach to int.
19649 (join_inferior): New.
19650 * server.c (main): Don't skip detach support on mingw32.
19651 If the inferior doesn't support detaching return error.
19652 Call join_inferior instead of using waitpid.
19653 * linux-low.c (linux_join): New.
19654 (linux_target_op): Add linux_join.
19655 * spu-low.c (spu_join): New.
19656 (spu_target_ops): Add spu_join.
19657 * win32-low.c (win32_detach): Adapt to new interface.
19658 Reopen current_process_handle before detaching. Issue a child
19659 resume before detaching.
19661 (win32_target_op): Add win32_join.
19663 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19665 * win32-low.c (win32-attach): Fix return value.
19666 * target.h (target_ops): Describe ATTACH return values.
19668 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19670 * win32-low.c (GETPROCADDRESS): Define.
19671 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
19672 (winapi_DebugSetProcessKillOnExit): Likewise.
19673 (win32_create_inferior): Force usage of ansi CreateProcessA.
19674 (win32_attach): Use GETPROCADDRESS.
19675 (win32_detach): Likewise.
19677 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19679 * win32-low.c (win32_wait): Don't use WSTOPSIG.
19681 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
19683 * win32-low.c: Commit leftover changes from 2007-03-29.
19685 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19687 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
19688 fields short instead of int. Add explicit padding.
19689 (i387_cache_to_fsave): Remove unnecessary casts.
19690 (i387_fsave_to_cache): Doc fix.
19691 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
19693 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19695 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
19696 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
19698 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19700 * configure.srv (arm*-*-mingw32ce*): Move near the other
19703 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19705 * configure.ac: Add errno checking.
19706 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
19707 sys/file.h and malloc.h.
19708 (AC_CHECK_DECLS): Add perror.
19709 (srv_mingwce): Handle.
19710 * configure.srv (i[34567]86-*-cygwin*): Add
19711 win32-i386-low.o to srv_tgtobj.
19712 (i[34567]86-*-mingw*): Likewise.
19713 (arm*-*-mingw32ce*): Add case.
19714 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19715 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
19716 [__MINGW32CE__] (strerror): New function.
19717 [__MINGW32CE__] (errno): Define to GetLastError.
19718 [__MINGW32CE__] (COUNTOF): New macro.
19719 (remote_open): Remove extra close call.
19720 * mem-break.c (delete_breakpoint_at): New function.
19721 * mem-break.h (delete_breakpoint_at): Declare.
19722 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19723 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
19724 [USE_WIN32API] (read, write): Add char* casts.
19725 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
19726 * server.h: Include wincecompat.h on Windows CE.
19727 [HAVE_ERRNO_H]: Check.
19728 (perror): Declare if not declared.
19729 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
19730 (perror_with_name): Remove errno declaration.
19731 * wincecompat.h: New.
19732 * wincecompat.c: New.
19733 * win32-low.h: New.
19734 * win32-arm-low.c: New.
19735 * win32-i386-low.c: New.
19736 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
19737 (OUTMSG2): Make it safe.
19739 (COUNTOF): New macro.
19740 (NUM_REGS): Get it from the low target.
19741 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
19742 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
19743 (thread_rec): Let low target handle debug registers.
19744 (child_add_thread): Likewise.
19745 (child_init_thread_list): Likewise.
19746 (continue_one_thread): Likewise.
19748 (do_child_fetch_inferior_registers): Move to ...
19749 * win32-i386-low.c: ... here, and rename to ...
19750 (do_fetch_inferior_registers): ... this.
19751 * win32-low.c (child_fetch_inferior_registers):
19752 Go through the low target.
19753 (do_child_store_inferior_registers): Use regptr.
19754 (strwinerror): New function.
19755 (win32_create_inferior): Handle Windows CE.
19756 Use strwinerror instead of strerror on Windows error
19757 codes. Add program to the error output.
19758 Don't close the main thread handle on Windows CE.
19759 (win32_attach): Use coredll.dll on Windows CE.
19760 (win32_kill): Close current process and current
19762 (win32_detach): Use coredll.dll on Windows CE.
19763 (win32_resume): Let low target handle debug registers, and
19765 (handle_exception): Add/Remove initial breakpoint. Avoid
19766 non-existant WSTOPSIG on Windows CE.
19767 (win32_read_inferior_memory): Cast to remove warning.
19768 (win32_arch_string): Go through the low target.
19769 (initialize_low): Call set_breakpoint_data with the low
19770 target's breakpoint.
19771 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
19772 FOP_REGNUM, mappings): Move to ...
19773 * win32-i386-low.c: ... here.
19774 * win32-low.c (win32_thread_info): Move to ...
19775 * win32-low.h: ... here.
19776 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
19777 win32-arm-low.c and wincecompat.c.
19778 (all:): Add $EXEEXT.
19779 (install-only:): Likewise.
19780 (gdbserver:): Likewise.
19781 (gdbreplay:): Likewise.
19782 * config.in: Regenerate.
19783 * configure: Regenerate.
19785 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19787 * win32-low.c: Rename typedef thread_info to
19788 win32_thread_info throughout.
19790 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19792 * win32-i386-low.c: Rename to ...
19793 * win32-low.c: ... this.
19794 * configure.srv: Replace win32-i386-low.o with win32-low.o.
19795 * Makefile.in: Likewise.
19797 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
19799 * remote-utils.c (monitor_output): Constify msg parameter.
19800 * server.h (monitor_output): Likewise.
19801 * win32-i386-low.c (handle_output_debug_string): New.
19802 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
19803 handle_output_debug_string.
19804 (get_child_debug_event): Likewise.
19806 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
19808 * server.c (main): Correct strtoul check.
19810 2007-03-27 Jon Ringle <jon@ringle.org>
19812 * linux-low.c: Check __ARCH_HAS_MMU__ also.
19814 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
19816 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
19818 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
19820 * terminal.h: Check HAVE_SGTTY_H.
19822 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
19824 * remote-utils.c (remote_open): Print out the assigned port number.
19826 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
19828 * remote-utils.c (monitor_output): New function.
19829 * server.c (debug_threads): Define here.
19830 (monitor_show_help): New function.
19831 (handle_query): Handle qRcmd.
19832 (main): Do not handle 'd' packet.
19833 * server.h (debug_threads, remote_debug, monitor_output): Declare.
19834 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
19837 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19839 * Makefile.in (EXEEXT): New.
19840 (clean): Use $(EXEEXT).
19842 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19844 * target.h (target_ops): Rename send_signal to request_interrupt,
19845 and remove enum target_signal parameter.
19846 * linux-low.c (linux_request_interrupt): Rename from
19847 linux_send_signal, and always send SIGINT.
19848 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
19849 and always send SIGINT.
19850 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
19852 (input_interrupt): Likewise.
19854 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19856 * server.c (get_features_xml): Check if target implemented
19858 * win32-i386-low.c (win32_arch_string): New.
19859 (win32_target_ops): Add win32_arch_string as arch_string member.
19861 2007-02-22 Markus Deuling <deuling@de.ibm.com>
19863 * spu-low.c (spu_arch_string): New.
19864 (spu_target_ops): Add spu_arch_string.
19866 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
19868 * remote-utils.c: Remove HAVE_TERMINAL_H check.
19869 * configure.ac: Do not check for terminal.h.
19870 * configure, config.in: Regenerated.
19872 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19874 * Makefile.in (OBS): Add $(XML_BUILTIN).
19875 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
19877 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
19878 (arm-with-iwmmxt.c): New.
19879 * config.in, configure: Regenerate.
19880 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
19881 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
19882 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
19883 (arm*-*-linux*): Add iWMMXt and regset support.
19884 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
19885 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
19886 (arm_store_wmmxregset, target_regsets): New.
19887 * server.c (get_features_xml): Take annex argument. Check builtin
19889 (handle_query): Handle multiple annexes.
19891 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19893 * remote-utils.c [USE_WIN32API] (read, write): Define.
19894 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
19897 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
19899 * linux-i386-low.c (the_low_target): Set arch_string.
19900 * linux-x86-64-low.c (the_low_target): Likewise.
19901 * linux-low.c (linux_arch_string): New.
19902 (linux_target_ops): Add it.
19903 * linux-low.h (struct linux_target_ops): Add arch_string.
19904 * server.c (write_qxfer_response): Use const void * for DATA.
19905 (get_features_xml): New.
19906 (handle_query): Handle qXfer:features:read. Report it for qSupported.
19907 * target.h (struct target_ops): Add arch_string method.
19909 2007-01-03 Denis Pilat <denis.pilat@st.com>
19910 Daniel Jacobowitz <dan@codesourcery.com>
19912 * linux-low.c (linux_kill): Handle being called with no threads.
19913 * win32-i386-low.c (win32_kill): Likewise.
19914 (get_child_debug_event): Clear current_process_handle.
19916 2006-12-30 Denis PILAT <denis.pilat@st.com>
19917 Daniel Jacobowitz <dan@codesourcery.com>
19919 * remote-utils.c (remote_open): Check the type of specified
19920 serial port devices before opening them.
19921 * server.c (main): Kill the inferior if an error occurs during
19922 the first remote_open.
19924 2006-12-05 Markus Deuling <deuling@de.ibm.com>
19926 * README: Update supported targets.
19928 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
19930 * Makefile.in (clean): Remove reg-mips64.c.
19931 (reg-mips64.c, reg-mips64.o): New rules.
19932 * configure.srv: Handle mips64. Include regset support for mips.
19933 * linux-mips-low.c (union mips_register): New.
19934 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
19935 (mips_breakpoint, mips_breakpoint_at): Use int.
19936 (mips_collect_register, mips_supply_register)
19937 (mips_collect_register_32bit, mips_supply_register_32bit)
19938 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19939 (mips_store_fpregset, target_regsets): New.
19940 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
19942 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
19944 * configure.srv: Add target "spu*-*-*".
19945 * Makefile.in (clean): Remove reg-spu.c.
19946 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
19947 * spu-low.c: New file.
19949 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19951 * configure.ac: Correct td_thr_tls_get_addr test.
19952 * configure: Regenerated.
19954 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19956 * linux-low.c (linux_wait_for_event): Reformat. Use the
19957 pass_signals array.
19958 * remote-utils.c (decode_address_to_semicolon): New.
19959 * server.c (pass_signals, handle_general_set): New.
19960 (handle_query): Mention QPassSignals for qSupported.
19961 (main): Call handle_general_set.
19962 * server.h (pass_signals, decode_address_to_semicolon): New.
19964 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
19966 * server.c (handle_query): Correct error handling for read_auxv.
19968 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
19970 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
19971 and srv_linux_thread_db to yes.
19972 * linux-s390-low.c (s390_fill_gregset): New function.
19973 (target_regsets): Define data structure.
19975 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
19977 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
19978 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
19979 * config.in, configure: Regenerated.
19980 * inferiors.c (gdb_id_to_thread): New function.
19981 (gdb_id_to_thread_id): Use it.
19982 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
19983 * linux-low.h (struct process_info): Add th member.
19984 (thread_db_get_tls_address): New prototype.
19985 * remote-utils.c (decode_address): Make non-static.
19986 * server.c (handle_query): Handle qGetTLSAddr.
19987 * server.h (gdb_id_to_thread, decode_address): New prototypes.
19988 * target.h (struct target_ops): Add get_tls_address.
19989 * thread-db.c (maybe_attach_thread): Save the thread handle.
19990 (thread_db_get_tls_address): New.
19992 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
19994 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
19995 (linux_resume_one_process): Take a siginfo_t *. Update all
19996 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
19997 (struct pending_signals): Add a siginfo_t.
19998 (linux_wait_for_process): Always set last_status.
19999 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20000 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20001 * linux-low.h (struct process_info): Add last_status.
20003 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20005 * remote-utils.c (try_rle): New function.
20006 (putpkt_binary): Use it.
20008 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20010 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20011 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20012 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20013 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20014 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20017 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20019 * server.c (terminal_fd): New variable.
20020 (old_foreground_pgrp): Likewise.
20021 (restore_old_foreground_pgrp): New function.
20022 (start_inferior): Record the terminal file descriptor in terminal_fd
20023 and its original foreground group in old_foreground_pgrp. Register
20024 restore_old_foreground_pgrp with atexit().
20026 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20028 * server.c (handle_query): Correct qPart to qXfer.
20030 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20032 * configure.ac: Check for more headers which are missing on
20033 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20034 * configure.srv: Add Cygwin and mingw32.
20035 * remote-utils.c: Don't include headers unconditionally which
20036 are missing on mingw32. Include <winsock.h> for mingw32.
20037 (remote_open): Adjust for mingw32 support. Flush
20038 standard error after writing to it.
20039 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20040 (unblock_async_io, enable_async_io, disable_async_io)
20041 (readchar, getpkt): Update for Winsock support.
20042 (prepare_resume_reply): Expect a protocol signal number.
20043 * server.c: Disable <sys/wait.h> on mingw32.
20044 (start_inferior): Adjust for mingw32 support. Flush
20045 standard error after writing to it.
20046 (attach_inferior): Likewise. Use protocol signal
20048 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20050 * win32-i386-low.c: New file.
20051 * Makefile.in (XM_CLIBS): Set.
20052 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20053 (win32-i386-low.o): New dependency rule.
20054 * linux-low.c (linux_wait): Use target signal numbers.
20055 * target.h (struct target_ops): Doc fix.
20056 * server.h (target_signal_to_name): New prototype.
20057 * gdbreplay.c: Don't include headers unconditionally which
20058 are missing on mingw32. Include <winsock.h> for mingw32.
20059 (remote_close, remote_open): Adjust for Winsock support.
20060 * configure, config.in: Regenerated.
20062 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20064 * server.c (decode_xfer_read, write_qxfer_response): New.
20065 (handle_query): Take a packet length argument. Handle
20066 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20067 the qSupported response.
20068 (main): Update call to handle_query.
20070 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20072 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20073 (putpkt_binary): Renamed from putpkt and adjusted for binary
20075 (putpkt): New wrapper for putpkt_binary.
20076 (readchar): Don't mask off the high bit.
20077 (decode_X_packet): New function.
20078 * server.c (main): Call putpkt_binary if a handler sets the packet
20079 length. Save the length of the incoming packet. Handle 'X'.
20080 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20082 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20084 * server.c (handle_query): Handle qSupported.
20086 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20088 * remote-utils.c (all_symbols_looked_up): New variable.
20089 (look_up_one_symbol): Check it.
20090 * server.h (look_up_one_symbol): New declaration.
20091 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20093 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20095 * Makefile.in (linux-arm-low.o): Update dependencies.
20096 * linux-arm-low.c: Include "gdb_proc_service.h".
20097 (PTRACE_GET_THREAD_AREA): Define.
20098 (ps_get_thread_area): New function.
20100 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20102 * configure.srv (m68k*-*-uclinux*): New target.
20103 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20104 (linux_resume_one_process): Remove extraneous cast.
20105 (linux_read_offsets): New.
20106 (linux_target_op): Add linux_read_offsets on mmuless systems.
20107 * server.c (handle_query): Add qOffsets logic.
20108 * target.h (struct target_ops): Add read_offsets.
20110 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20112 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20113 (PTRACE_GET_THREAD_AREA): Define.
20114 (ps_get_thread_area): New function.
20115 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20116 (linux-x86-64-low.o): Update.
20118 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20120 * configure.ac: Remove checks for prfpregset_t.
20121 * gdb_proc_service.h: New file.
20122 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20123 new "gdb_proc_service.h".
20124 * proc-service.c: Likewise.
20125 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20126 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20127 * Makefile.in (gdb_proc_service_h): Updated.
20128 * configure, config.in: Regenerated.
20130 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20132 * remote-utils.c (prepare_resume_reply): Move declaration
20133 of gdb_id_from_wait to the top of the block.
20135 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20137 * linux-low.c (regsets_store_inferior_registers): Read the regset
20138 from the target before filling it.
20140 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20142 * server.c (attach_inferior): Return SIGTRAP for a successful
20145 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20147 * Makefile.in (OBS): Add version.o.
20148 (STAGESTUFF): Delete.
20149 (version.o): Add dependencies.
20150 (version.c): Replace rule.
20151 (clean): Remove version.c.
20152 * server.c (gdbserver_version): New.
20153 (gdbserver_usage): Use printf.
20154 (main): Handle --version and --help.
20155 * server.h (version, host_name): Add declarations.
20157 2005-12-23 Eli Zaretskii <eliz@gnu.org>
20169 * linux-x86-64-low.c:
20171 * linux-s390-low.c:
20172 * linux-ppc64-low.c:
20174 * linux-mips-low.c:
20175 * linux-m68k-low.c:
20176 * linux-m32r-low.c:
20179 * linux-ia64-low.c:
20180 * linux-i386-low.c:
20181 * linux-crisv32-low.c:
20193 * gdbserver.1: Add (C) after Copyright. Update the FSF
20196 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20198 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20199 (arm_breakpoint_at): Recognize both breakpoints.
20200 (the_low_target): Use the correct breakpoint instruction.
20202 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20204 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
20205 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
20206 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
20207 (the_low_target): Update.
20209 2005-10-25 Andreas Schwab <schwab@suse.de>
20211 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20213 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20214 (ia64_num_regs): Reduce to 462.
20216 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20218 * acinclude.m4: Correct quoting.
20219 * aclocal.m4: Regenerated.
20221 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20222 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20223 (thread_db_init): Call thread_db_err_str.
20224 * configure.ac: Check for TD_VERSION.
20225 * config.in, configure: Regenerated.
20227 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20229 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20231 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20233 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20234 is not available. Define HAVE_PTRACE_GETREGS if it is.
20235 * config.in, configure: Regenerated.
20236 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20237 * linux-i386-low.c, linux-m68k-low.c: Update to use
20238 HAVE_PTRACE_GETREGS.
20239 * linux-low.c (regsets_fetch_inferior_registers)
20240 (regsets_store_inferior_registers): Only return 0 if we processed
20242 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20243 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20245 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20247 * inferiors.c (struct thread_info): Add gdb_id.
20248 (add_thread): Add gdb_id argument.
20249 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20250 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20251 calls to add_thread.
20252 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20253 * server.c (handle_query): Use thread_to_gdb_id.
20254 (handle_v_cont, main): Use gdb_id_to_thread_id.
20255 * server.h (add_thread): Update prototype.
20256 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20259 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20261 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20262 left-padded registers.
20263 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20264 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20266 2005-07-01 Steve Ellcey <sje@cup.hp.com>
20268 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20269 * configure: Regenerate.
20270 * config.in: Regenerate.
20271 * server.h (NEED_DECLARATION_STRERROR):
20272 Replace with !HAVE_DECL_STRERROR.
20274 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20276 * linux-low.c (linux_wait, linux_send_signal): Don't test
20277 an unsigned long variable for > 0 if it could be MAX_ULONG.
20278 * server.c (myresume): Likewise.
20279 * target.c (set_desired_inferior): Likewise.
20281 2005-06-13 Mark Kettenis <kettenis@gnu.org>
20283 * configure.ac: Simplify and improve check for socklen_t.
20284 * configure, config.in: Regenerate.
20286 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20288 * acconfig.h: Remove.
20289 * configure.ac: Add a test for socklen_t. Use three-argument
20290 AC_DEFINE throughout.
20291 * config.in: Regenerated using autoheader 2.59.
20292 * configure: Regenerated.
20294 * gdbreplay.c (socklen_t): Provide a default.
20295 (remote_open): Use socklen_t.
20296 * remote-utils.c (socklen_t): Provide a default.
20297 (remote_open): Use socklen_t.
20298 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20301 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20303 * linux-low.c (linux_read_memory, linux_write_memory)
20304 (linux_read_auxv): Likewise.
20305 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20306 (check_mem_write): Likewise.
20307 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20309 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20310 (registers_from_string, register_data): Likewise.
20311 * server.c (handle_query, main): Likewise.
20312 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20313 (decode_M_packet): Likewise.
20314 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20315 * target.h (struct target_ops): Update read_memory, write_memory,
20317 (read_inferior_memory, write_inferior_memory): Update.
20318 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20319 to unsigned char *.
20320 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20321 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20322 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20323 linux-s390-low.c, linux-sh-low.c: Update for changes in
20324 read_inferior_memory and the_low_target->breakpoint.
20326 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20328 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20329 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20330 * configure.srv: Add powerpc64-*-linux*.
20331 * linux-ppc64-low.c: New file.
20333 2005-05-23 Orjan Friberg <orjanf@axis.com>
20335 * linux-cris-low.c: New file with support for CRIS.
20336 * linux-crisv32-low.c: Ditto for CRISv32.
20337 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20338 (clean): Add reg-cris.c and reg-crisv32.c.
20339 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
20340 reg-crisv32.o, and reg-crisv32.c to make rules.
20341 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20342 recognized targets.
20344 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20346 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20347 of sizeof (PTRACE_XFER_TYPE).
20348 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20350 2005-05-12 Orjan Friberg <orjanf@axis.com>
20352 * target.h (struct target_ops): Add insert_watchpoint,
20353 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20354 pointers for hardware watchpoint support.
20355 * linux-low.h (struct linux_target_ops): Ditto.
20356 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20357 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20358 to linux_target_ops.
20359 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20361 * server.c (main): Recognize 'Z' and 'z' packets.
20363 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20365 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20366 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20367 (the_low_target): Add new members.
20369 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20371 * proc-service.c (ps_lgetregs): Search all_processes instead of
20374 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20376 * server.c (start_inferior): Change return type to int.
20377 (attach_inferior): Change sigptr to int *.
20378 (handle_v_cont, handle_v_requests): Change signal to int *.
20379 (main): Change signal to int.
20381 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
20383 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
20384 * configure.srv: Add m32r*-*-linux*.
20385 * linux-m32r-low.c: New file.
20387 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
20389 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
20391 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20393 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
20394 Take unsigned long arguments for PIDs.
20395 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
20396 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
20397 (wait_for_sigstop, linux_resume_one_process)
20398 (regsets_fetch_inferior_registers, linux_send_signal)
20399 (linux_read_auxv): Likewise. Update the types of variables holding
20400 PIDs. Update format string specifiers.
20401 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
20402 * remote-utils.c (prepare_resume_reply): Likewise.
20403 * server.c (cont_thread, general_thread, step_thread)
20404 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
20406 (handle_query): Update format specifiers.
20407 (handle_v_cont, main): Use strtoul for thread IDs.
20408 * server.h (struct inferior_list_entry): Use unsigned long for ID.
20409 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
20410 (general_thread, step_thread, thread_from_wait)
20411 (old_thread_from_wait): Update.
20412 * target.h (struct thread_resume): Use unsigned long for THREAD.
20413 (struct target_ops): Use unsigned long for arguments to attach and
20416 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
20418 * acinclude.m4: Include bfd/bfd.m4 directly.
20419 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
20420 <agriffis@toolchain.org>.
20421 * aclocal.m4, configure: Regenerated.
20423 2005-01-07 Andrew Cagney <cagney@gnu.org>
20425 * configure.ac: Rename configure.in, require autoconf 2.59.
20426 * configure: Re-generate.
20428 2004-12-08 Daniel Jacobowitz <dan@debian.org>
20430 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
20431 LIBS when finished.
20432 * aclocal.m4: Regenerated.
20433 * configure: Regenerated.
20435 2004-11-21 Andreas Schwab <schwab@suse.de>
20437 * linux-m68k-low.c (m68k_num_gregs): Define.
20438 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
20439 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
20440 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
20441 (m68k_breakpoint_at): New. Add to the_low_target.
20443 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
20444 srv_linux_thread_db to yes.
20446 2004-10-20 Joel Brobecker <brobecker@gnat.com>
20448 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
20449 (ARCH_SET_FS): Likewise.
20450 (ARCH_GET_FS): Likewise.
20451 (ARCH_GET_GS): Likewise.
20453 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20455 * linux-i386-low.c (ps_get_thread_area): New.
20456 * linux-x86-64-low.c (ps_get_thread_area): New.
20457 * linux-low.c: Include <sys/syscall.h>.
20458 (linux_kill_one_process): Don't kill the first thread here.
20459 (linux_kill): Kill the first thread here.
20460 (kill_lwp): New function.
20461 (send_sigstop, linux_send_signal): Use it.
20462 * proc-service.c: Clean up #ifdefs.
20463 (fpregset_info): Delete.
20464 (ps_lgetregs): Update and enable implementation.
20465 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
20467 * remote-utils.c (struct sym_cache, symbol_cache): New.
20468 (input_interrupt): Print a clearer message.
20469 (async_io_enabled): New variable.
20470 (enable_async_io, disable_async_io): Use it. Update comments.
20471 (look_up_one_symbol): Use the symbol cache.
20472 * thread-db.c (thread_db_look_up_symbols): New function.
20473 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
20475 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20477 * configure.in: Test for -rdynamic.
20478 * configure: Regenerated.
20479 * Makefile (INTERNAL_LDFLAGS): New.
20480 (gdbserver, gdbreplay): Use it.
20482 2004-09-02 Andrew Cagney <cagney@gnu.org>
20484 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
20486 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
20488 * linux-low.c (linux_wait): Clear all_processes list also.
20490 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20492 * linux-low.c: Include <errno.h>. Remove extern declaration of
20495 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20497 * gdbreplay.c, server.h, utils.c: Update copyright years.
20499 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20501 * server.c (main): Print child status or termination signal from
20502 variable 'signal', not 'sig'.
20504 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20506 * linux-low.c (linux_read_memory): Change return type to
20507 int. Check for and return error from ptrace().
20508 * target.c (read_inferior_memory): Change return type to int. Pass
20509 back return status from the_target->read_memory().
20510 * target.h (struct target_ops): Adapt *read_memory() prototype.
20512 (read_inferior_memory): Adapt prototype.
20513 * server.c (main): Return an error packet if
20514 read_inferior_memory() returns an error.
20516 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
20518 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
20519 Unify with other clean targets.
20521 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20523 * server.c (handle_v_cont): Call set_desired_inferior.
20525 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20527 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
20529 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20531 * linux-low.c (linux_wait): Unblock async I/O.
20532 (linux_resume): Block and enable async I/O.
20533 * remote-utils.c (block_async_io, unblock_async_io): New functions.
20534 * server.h (block_async_io, unblock_async_io): Add prototypes.
20536 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20538 * remote-utils.c (remote_open): Print a status notice after
20539 opening a TCP port.
20540 * server.c (attach_inferior): Print a status notice after
20543 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20545 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
20547 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
20549 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
20551 * server.c, target.h: Update copyright years.
20553 2004-02-25 Roland McGrath <roland@redhat.com>
20555 * target.h (struct target_ops): New member `read_auxv'.
20556 * server.c (handle_query): Handle qPart:auxv:read: query using that.
20557 * linux-low.c (linux_read_auxv): New function.
20558 (linux_target_ops): Initialize `read_auxv' member to that.
20560 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20562 Committed by Jim Blandy <jimb@redhat.com>.
20564 * linux-s390-low.c (s390_num_regs): Update.
20565 (s390_regmap): Remove control registers. Use __s390x__ predefine
20566 instead of GPR_SIZE to distiguish s390 and s390x targets.
20568 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
20570 * linux-low.c: Update copyright year.
20571 (check_removed_breakpoint): Clear pending_is_breakpoint.
20572 (linux_set_resume_request, linux_queue_one_thread)
20573 (resume_status_pending_p): New functions.
20574 (linux_continue_one_thread): Use process->resume.
20575 (linux_resume): Only resume threads if there are no pending events.
20576 * linux-low.h (struct process_info): Add resume request
20579 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
20581 * regcache.c (new_register_cache): Clear the allocated register
20582 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
20584 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
20586 * linux-low.c (linux_resume): Take a struct thread_resume *
20588 (linux_wait): Update call.
20589 (resume_ptr): New static variable.
20590 (linux_continue_one_thread): Renamed from
20591 linux_continue_one_process. Use resume_ptr.
20592 (linux_resume): Use linux_continue_one_thread.
20593 * server.c (handle_v_cont, handle_v_requests): New functions.
20594 (myresume): New function.
20595 (main): Handle 'v' case.
20596 * target.h (struct thread_resume): New type.
20597 (struct target_ops): Change argument of "resume" to struct
20599 (myresume): Delete macro.
20601 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
20603 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
20604 (uninstall): Support DESTDIR.
20606 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
20608 * configure.srv: Add xscale*linux copy of arm*linux entry.
20610 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
20612 * linux-arm-low.c (arm_reinsert_addr): New function.
20613 (the_low_target): Add arm_reinsert_addr.
20615 2003-07-08 Mark Kettenis <kettenis@gnu.org>
20617 * mem-break.c: Remove whitespace at end of file.
20619 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
20621 * configure.in: Check whether we need to prototype strerror.
20622 * server.h: Optionally prototype strerror.
20623 * gdbreplay.c (perror_with_name): Use strerror.
20624 * linux-low.c (linux_attach_lwp): Use strerror.
20625 * utils.c (perror_with_name): Use strerror.
20626 * config.in, configure: Regenerated.
20628 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
20630 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
20631 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
20633 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
20635 * Makefile.in (SFILES): Update.
20636 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
20637 low-sun3.c: Remove files.
20639 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
20641 * linux-low.c: Move comment to linux_thread_alive where it belonged.
20642 (linux_detach_one_process, linux_detach): New functions.
20643 (linux_target_ops): Add linux_detach.
20644 * server.c (main): Handle 'D' packet.
20645 * target.h (struct target_ops): Add "detach" member.
20646 (detach_inferior): Define.
20648 2003-06-13 Mark Kettenis <kettenis@gnu.org>
20650 From Kelley Cook <kelleycook@wideopenwest.com>:
20651 * configure.srv: Accept i[34567]86 variants.
20653 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
20655 * linux-low.c (linux_wait_for_event): Correct comment typos.
20656 (linux_resume_one_process): Call check_removed_breakpoint.
20657 (linux_send_signal): New function.
20658 (linux_target_ops): Add linux_send_signal.
20659 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
20661 * target.h (struct target_ops): Add send_signal.
20663 2003-05-29 Jim Blandy <jimb@redhat.com>
20665 * linux-low.c (usr_store_inferior_registers): Transfer buf in
20666 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
20667 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
20668 away part of the register's value.
20670 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
20672 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
20673 (linux_wait_for_event, linux_init_signals): Likewise.
20675 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
20677 * configure.in: Check for stdlib.h.
20678 * configure: Regenerated.
20679 * config.in: Regenerated.
20681 2003-01-04 Andreas Schwab <schwab@suse.de>
20683 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
20685 2003-01-02 Andrew Cagney <ac131313@redhat.com>
20687 * Makefile.in: Remove obsolete code.
20689 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
20691 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
20692 defined(PT_FPR0_HI).
20694 2002-11-17 Stuart Hughes <seh@zee2.com>
20696 * linux-arm-low.c (arm_num_regs): Increase.
20697 (arm_regmap): Include status register.
20699 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
20701 * linux-low.c (register_addr): Remove incorrect -1 check.
20703 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
20705 * linux-low.c (linux_create_inferior): Call setpgid. Return
20707 (unstopped_p, linux_signal_pid): Remove.
20708 (linux_target_ops): Remove linux_signal_pid.
20709 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
20710 global instead of target method.
20711 * target.h (struct target_ops): Remove signal_pid. Update comment
20712 for create_inferior.
20713 * server.c (signal_pid): New variable.
20714 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
20715 gdbserver. Set the child to be the foreground process group.
20716 (attach_inferior): Set signal_pid.
20718 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
20720 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
20722 2002-08-20 Jim Blandy <jimb@redhat.com>
20724 * Makefile.in (LDFLAGS): Allow the configure script to establish a
20727 2002-08-01 Andrew Cagney <cagney@redhat.com>
20729 * Makefile.in: Make chill references obsolete.
20731 2002-07-24 Kevin Buettner <kevinb@redhat.com>
20733 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
20734 * configure: Regenerate.
20735 * config.in: Regenerate.
20737 2002-07-09 David O'Brien <obrien@FreeBSD.org>
20739 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
20740 (perror_with_name, remote_close, remote_open, expect, play): Static.
20742 2002-07-04 Michal Ludvig <mludvig@suse.cz>
20744 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
20745 byte offsets instead of an array of indexes.
20746 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
20748 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
20750 * regcache.c: Add comment.
20752 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
20754 * thread-db.c: New file.
20755 * proc-service.c: New file.
20756 * acinclude.m4: New file.
20757 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
20758 proc-service.o, and thread-db.o.
20759 (linux-low.o): Add USE_THREAD_DB.
20760 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
20761 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
20762 * aclocal.m4: Regenerated.
20763 * config.in: Regenerated.
20764 * configure: Regenerated.
20765 * configure.in: Check for proc_service.h, sys/procfs.h,
20766 thread_db.h, and linux/elf.h headrs.
20767 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
20768 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
20769 Check for -lthread_db and thread support.
20770 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
20771 PowerPC, and SuperH.
20772 * i387-fp.c: Constify arguments.
20773 * i387-fp.h: Likewise.
20774 * inferiors.c: (struct thread_info): Renamed from
20775 `struct inferior_info'. Remove PID member. Use generic inferior
20776 list header. All uses updated.
20777 (inferiors, signal_pid): Removed.
20778 (all_threads): New variable.
20779 (get_thread): Define.
20780 (add_inferior_to_list): New function.
20781 (for_each_inferior): New function.
20782 (change_inferior_id): New function.
20783 (add_inferior): Removed.
20784 (remove_inferior): New function.
20785 (add_thread): New function.
20786 (free_one_thread): New function.
20787 (remove_thread): New function.
20788 (clear_inferiors): Use for_each_inferior and free_one_thread.
20789 (find_inferior): New function.
20790 (find_inferior_id): New function.
20791 (inferior_target_data): Update argument type.
20792 (set_inferior_target_data): Likewise.
20793 (inferior_regcache_data): Likewise.
20794 (set_inferior_regcache_data): Likewise.
20795 * linux-low.c (linux_bp_reinsert): Remove.
20796 (all_processes, stopping_threads, using_thrads)
20797 (struct pending_signals, debug_threads, pid_of): New.
20798 (inferior_pid): Replace with macro.
20799 (struct inferior_linux_data): Remove.
20800 (get_stop_pc, add_process): New functions.
20801 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
20802 Use add_process and add_thread.
20803 (linux_attach_lwp): New function, based on old linux_attach. Use
20804 add_process and add_thread. Set stop_expected for new threads.
20805 (linux_attach): New function.
20806 (linux_kill_one_process): New function.
20807 (linux_kill): Kill all LWPs.
20808 (linux_thread_alive): Use find_inferior_id.
20809 (check_removed_breakpoints, status_pending_p): New functions.
20810 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
20811 Update. Use WNOHANG. Wait for cloned processes also. Update process
20812 struct for the found process.
20813 (linux_wait_for_event): New function.
20814 (linux_wait): Use it. Support LWPs.
20815 (send_sigstop, wait_for_sigstop, stop_all_processes)
20816 (linux_resume_one_process, linux_continue_one_process): New functions.
20817 (linux_resume): Support LWPs.
20818 (REGISTER_RAW_SIZE): Remove.
20819 (fetch_register): Use register_size instead. Call supply_register.
20820 (usr_store_inferior_registers): Likewise. Call collect_register.
20821 Fix recursive case.
20822 (regsets_fetch_inferior_registers): Improve error message.
20823 (regsets_store_inferior_registers): Add debugging.
20824 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
20825 (unstopped_p, linux_signal_pid): New functions.
20826 (linux_target_ops): Add linux_signal_pid.
20827 (linux_init_signals): New function.
20828 (initialize_low): Call it. Initialize using_threads.
20829 * regcache.c (inferior_regcache_data): Add valid
20831 (get_regcache): Fetch registers lazily. Add fetch argument
20832 and update all callers.
20833 (regcache_invalidate_one, regcache_invalidate): New
20835 (new_register_cache): Renamed from create_register_cache.
20836 Return the new regcache.
20837 (free_register_cache): Change argument to a void *.
20838 (registers_to_string, registers_from_string): Call get_regcache
20839 with fetch flag set.
20840 (register_data): Make static. Pass fetch flag to get_regcache.
20841 (supply_register): Call get_regcache with fetch flag clear.
20842 (collect_register): Call get_regcache with fetch flag set.
20843 (collect_register_as_string): New function.
20844 * regcache.h: Update.
20845 * remote-utils.c (putpkt): Flush after debug output and use
20847 Handle input interrupts while waiting for an ACK.
20848 (input_interrupt): Use signal_pid method.
20849 (getpkt): Flush after debug output and use stderr.
20850 (outreg): Use collect_register_as_string.
20851 (new_thread_notify, dead_thread_notify): New functions.
20852 (prepare_resume_reply): Check using_threads. Set thread_from_wait
20853 and general_thread.
20854 (look_up_one_symbol): Flush after debug output.
20855 * server.c (step_thread, server_waiting): New variables.
20856 (start_inferior): Don't use signal_pid. Update call to mywait.
20857 (attach_inferior): Update call to mywait.
20858 (handle_query): Handle qfThreadInfo and qsThreadInfo.
20859 (main): Don't fetch/store registers explicitly. Use
20860 set_desired_inferior. Support proposed ``Hs'' packet. Update
20862 * server.h: Update.
20863 (struct inferior_list, struct_inferior_list_entry): New.
20864 * target.c (set_desired_inferior): New.
20865 (write_inferior_memory): Constify.
20866 (mywait): New function.
20867 * target.h: Update.
20868 (struct target_ops): New signal_pid method.
20869 (mywait): Removed macro, added prototype.
20871 * linux-low.h (regset_func): Removed.
20872 (regset_fill_func, regset_store_func): New.
20873 (enum regset_type): New.
20874 (struct regset_info): Add type field. Use new operation types.
20875 (struct linux_target_ops): stop_pc renamed to get_pc.
20876 Add decr_pc_after_break and breakpoint_at.
20877 (get_process, get_thread_proess, get_process_thread)
20878 (strut process_info, all_processes, linux_attach_lwp)
20879 (thread_db_init): New.
20881 * linux-arm-low.c (arm_get_pc, arm_set_pc,
20882 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
20883 (the_low_target): Add new members.
20884 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
20885 (i386_store_fpxregset): Constify.
20886 (target_regsets): Add new kind identifier.
20887 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
20888 (i386_set_pc): Add debugging.
20889 (i386_breakpoint_at): New function.
20890 (the_low_target): Add new members.
20891 * linux-mips-low.c (mips_get_pc, mips_set_pc)
20892 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
20893 (mips_breakpoint_at): New.
20894 (the_low_target): Add new members.
20895 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
20896 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
20897 (the_low_target): Add new members.
20898 * linux-sh-low.c (sh_get_pc, sh_set_pc)
20899 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
20900 (the_low_target): Add new members.
20901 * linux-x86-64-low.c (target_regsets): Add new kind
20904 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
20906 From Martin Pool <mbp@samba.org>:
20907 * server.c (gdbserver_usage): New function.
20910 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
20912 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
20913 stop_at -> stop_pc.
20915 2002-05-04 Andrew Cagney <ac131313@redhat.com>
20917 * Makefile.in: Remove obsolete code.
20919 2002-04-24 Michal Ludvig <mludvig@suse.cz>
20921 * linux-low.c (regsets_fetch_inferior_registers),
20922 (regsets_store_inferior_registers): Removed cast to int from
20924 * regcache.h: Added declaration of struct inferior_info.
20926 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20928 * inferiors.c (struct inferior_info): Add regcache_data.
20929 (add_inferior): Call create_register_cache.
20930 (clear_inferiors): Call free_register_cache.
20931 (inferior_regcache_data, set_inferior_regcache_data): New functions.
20932 * regcache.c (struct inferior_regcache_data): New.
20933 (registers): Remove.
20934 (get_regcache): New function.
20935 (create_register_cache, free_register_cache): New functions.
20936 (set_register_cache): Don't initialize the register cache here.
20937 (registers_to_string, registers_from_string, register_data): Call
20939 * regcache.h: Add prototypes.
20940 * server.h: Likewise.
20942 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20944 * mem-break.c: New file.
20945 * mem-break.h: New file.
20946 * Makefile.in: Add mem-break.o rule; update server.h
20948 * inferiors.c (struct inferior_info): Add target_data
20950 (clear_inferiors): Free target_data member if set.
20951 (inferior_target_data, set_inferior_target_data): New functions.
20952 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
20953 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
20954 * linux-low.c (linux_bp_reinsert): New variable.
20955 (struct inferior_linux_data): New.
20956 (linux_create_inferior): Use set_inferior_target_data.
20957 (linux_attach): Likewise. Call add_inferior.
20958 (linux_wait_for_one_inferior): New function.
20959 (linux_wait): Call it.
20960 (linux_write_memory): Add const.
20961 (initialize_low): Call set_breakpoint_data.
20962 * linux-low.h (struct linux_target_ops): Add breakpoint
20964 * server.c (attach_inferior): Remove extra add_inferior
20966 * server.h: Include mem-break.h. Update inferior.c
20968 * target.c (read_inferior_memory)
20969 (write_inferior_memory): New functions.
20970 * target.h (read_inferior_memory)
20971 (write_inferior_memory): Change macros to prototypes.
20972 (struct target_ops): Update comments. Add const to write_memory
20975 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
20977 * linux-low.c (usr_store_inferior_registers): Support
20978 registers which are allowed to fail to store.
20979 * linux-low.h (linux_target_ops): Likewise.
20980 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
20981 (ppc_cannot_store_register): FPSCR may not be storable.
20983 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20985 * server.h: Include <string.h> if HAVE_STRING_H.
20986 * ChangeLog: Correct paths in last ChangeLog entry.
20988 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20990 * linux-low.h: Remove obsolete prototypes.
20991 (struct linux_target_ops): New.
20992 (extern the_low_target): New.
20993 * linux-low.c (num_regs, regmap): Remove declarations.
20994 (register_addr): Use the_low_target explicitly.
20995 (fetch_register): Likewise.
20996 (usr_fetch_inferior_registers): Likewise.
20997 (usr_store_inferior_registers): Likewise.
20998 * linux-arm-low.c (num_regs): Remove.
20999 (arm_num_regs): Define.
21000 (arm_regmap): Renamed from regmap, made static.
21001 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21003 (arm_cannot_store_register): Renamed from cannot_store_register,
21005 (the_low_target): New.
21006 * linux-i386-low.c (num_regs): Remove.
21007 (i386_num_regs): Define.
21008 (i386_regmap): Renamed from regmap, made static.
21009 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21011 (i386_cannot_store_register): Renamed from cannot_store_register,
21013 (the_low_target): New.
21014 * linux-ia64-low.c (num_regs): Remove.
21015 (ia64_num_regs): Define.
21016 (ia64_regmap): Renamed from regmap, made static.
21017 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21019 (ia64_cannot_store_register): Renamed from cannot_store_register,
21021 (the_low_target): New.
21022 * linux-m68k-low.c (num_regs): Remove.
21023 (m68k_num_regs): Define.
21024 (m68k_regmap): Renamed from regmap, made static.
21025 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21027 (m68k_cannot_store_register): Renamed from cannot_store_register,
21029 (the_low_target): New.
21030 * linux-mips-low.c (num_regs): Remove.
21031 (mips_num_regs): Define.
21032 (mips_regmap): Renamed from regmap, made static.
21033 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21035 (mips_cannot_store_register): Renamed from cannot_store_register,
21037 (the_low_target): New.
21038 * linux-ppc-low.c (num_regs): Remove.
21039 (ppc_num_regs): Define.
21040 (ppc_regmap): Renamed from regmap, made static.
21041 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21043 (ppc_cannot_store_register): Renamed from cannot_store_register,
21045 (the_low_target): New.
21046 * linux-s390-low.c (num_regs): Remove.
21047 (s390_num_regs): Define.
21048 (s390_regmap): Renamed from regmap, made static.
21049 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21051 (s390_cannot_store_register): Renamed from cannot_store_register,
21053 (the_low_target): New.
21054 * linux-sh-low.c (num_regs): Remove.
21055 (sh_num_regs): Define.
21056 (sh_regmap): Renamed from regmap, made static.
21057 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21059 (sh_cannot_store_register): Renamed from cannot_store_register,
21061 (the_low_target): New.
21062 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21063 (the_low_target): New.
21065 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21067 * Makefile.in: Add stamp-h target.
21068 * configure.in: Create stamp-h.
21069 * configure: Regenerated.
21071 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21073 * inferiors.c: New file.
21074 * target.c: New file.
21075 * target.h: New file.
21076 * Makefile.in: Add target.o and inferiors.o. Update
21078 * linux-low.c (inferior_pid): New static variable,
21079 moved from server.c.
21080 (linux_create_inferior): Renamed from create_inferior.
21081 Call add_inferior. Return 0 on success instead of a PID.
21082 (linux_attach): Renamed from myattach.
21083 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21084 (linux_thread_alive): Renamed from mythread_alive.
21085 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21087 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21088 (regsets_store_inferior_registers): Correct error message.
21089 Add missing ``return 0''.
21090 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21091 (linux_store_registers): Renamed from store_inferior_registers.
21092 (linux_read_memory): Renamed from read_inferior_memory.
21093 (linux_write_memory): Renamed from write_inferior_memory.
21094 (linux_target_ops): New structure.
21095 (initialize_low): Call set_target_ops ().
21096 * remote-utils.c (unhexify): New function.
21097 (hexify): New function.
21098 (input_interrupt): Send signals to ``signal_pid''.
21099 * server.c (inferior_pid): Remove.
21100 (start_inferior): Update create_inferior call.
21101 (attach_inferior): Call add_inferior.
21102 (handle_query): New function.
21103 (main): Call handle_query for `q' packets.
21104 * server.h: Include "target.h". Remove obsolete prototypes.
21105 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21107 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21109 * Makefile.in: Add WARN_CFLAGS. Update configury
21111 * configure.in: Check for <string.h>
21112 * configure: Regenerate.
21113 * config.in: Regenerate.
21114 * gdbreplay.c: Include needed system headers.
21115 (remote_open): Remove strchr prototype.
21116 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21117 * regcache.c (supply_register): Change buf argument to const void *.
21118 (supply_register_by_name): Likewise.
21119 (collect_register): Change buf argument to void *.
21120 (collect_register_by_name): Likewise.
21121 * regcache.h: Add missing prototypes.
21122 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21123 * server.c (handle_query): New function.
21124 (attached): New static variable, moved out of main.
21125 (main): Quiet longjmp clobber warnings.
21126 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21127 * utils.c (error): Remove NORETURN.